diff --git a/classes/AWSHttpRequestBuilder.html b/classes/AWSHttpRequestBuilder.html index a77723a..6a79ba9 100644 --- a/classes/AWSHttpRequestBuilder.html +++ b/classes/AWSHttpRequestBuilder.html @@ -1,7 +1,7 @@ AWSHttpRequestBuilder | @lemoncloud/lemon-web-core

Class to build and execute HTTP requests with AWS signing

Example

const response: HttpResponse<OAuthResponse> = await new AWSHttpRequestBuilder({
method: 'GET',
baseURL: `https://api.lemoncloud.io/v1/oauth`,
})
.addHeaders({ Cookie: this.cookie })
.setParams({ page: 0 })
.execute();
-

Constructors

Constructors

Properties

axiosInstance config logger @@ -21,60 +21,60 @@

Parameters

  • tokenStorage: AWSStorageService

    The AWS storage service for token management.

  • config: AxiosRequestConfig<any>

    The Axios request configuration.

Returns AWSHttpRequestBuilder

Throws

If tokenStorage, method, or baseURL are not defined.

-

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...
tokenStorage: AWSStorageService

The AWS storage service for token management.

-

Methods

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...
tokenStorage: AWSStorageService

The AWS storage service for token management.

+

Methods

  • Adds x-lemon-identity to the header.

    Parameters

    • header: any

      The header to be added

    Returns Promise<AxiosHeaders>

    The header with x-lemon-identity added

    -
  • Private

    Extracts the hostname from a URL.

    Parameters

    • url: string

      The URL to extract the hostname from.

    Returns any

    • The extracted hostname.
    -
  • Private

    Gets the signed AWS client.

    Parameters

    • endpoint: string

      The endpoint for the client.

    Returns Promise<any>

    • The signed AWS client.

    Throws

    If endpoint is not provided or signed client is not available.

    -
  • Private

    Gets the signed headers for the request.

    Parameters

    • signedClient: any

      The signed AWS client.

    • data: HttpRequestData

      The request data.

    Returns Promise<any>

    • The signed headers.
    -
\ No newline at end of file +
\ No newline at end of file diff --git a/classes/AWSStorageService.html b/classes/AWSStorageService.html index 52867ba..d1d29ce 100644 --- a/classes/AWSStorageService.html +++ b/classes/AWSStorageService.html @@ -1,7 +1,7 @@ AWSStorageService | @lemoncloud/lemon-web-core

Abstract class representing a token storage service. Provides methods to set and get items in storage, and abstract methods to check and manage cached tokens.

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

config: WebCoreConfig<"aws">

The configuration for the web core.

-
credentialKeys: string[] = ...
prefix: string = 'lemon'
storage: Storage = ...

Methods

  • Gets all items from the storage.

    +

Constructors

Properties

config: WebCoreConfig<"aws">

The configuration for the web core.

+
credentialKeys: string[] = ...
prefix: string = 'lemon'
storage: Storage = ...

Methods

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/classes/AWSWebCore.html b/classes/AWSWebCore.html index 9a34019..146d2b2 100644 --- a/classes/AWSWebCore.html +++ b/classes/AWSWebCore.html @@ -1,5 +1,5 @@ AWSWebCore | @lemoncloud/lemon-web-core

AWSWebCore class implements AWS-based operations for Lemoncloud authentication logic

-

Implements

Constructors

Implements

Constructors

Properties

Constructors

Properties

config: WebCoreConfig<"aws">

The configuration for the AWS WebCore.

-
tokenStorage: AWSStorageService

Methods

  • Builds AWS credentials using the cached credentials from storage.

    +

Returns AWSWebCore

Properties

config: WebCoreConfig<"aws">

The configuration for the AWS WebCore.

+
tokenStorage: AWSStorageService

Methods

  • Builds AWS credentials using the cached credentials from storage.

    Returns Promise<void>

    • A promise that resolves when the credentials are built.
    -
  • Private

    Retrieves the current AWS credentials.

    +
  • Private

    Retrieves the current AWS credentials.

    Parameters

    Returns Promise<void>

    • The AWS credentials.
    -
  • Builds AWS credentials using the cached credentials from storage.

    +
  • Builds AWS credentials using the cached credentials from storage.

    Returns Promise<Credentials>

    • The AWS credentials.
    -
  • Builds AWS credentials using an OAuth token.

    +
  • Builds AWS credentials using an OAuth token.

    Parameters

    Returns Promise<Credentials>

    • The AWS credentials.
    -
  • Changes the user site and returns new AWS credentials.

    +
  • Changes the user site and returns new AWS credentials.

    Parameters

    • changeSiteBody: ChangeSiteBody

      The body containing site change details.

    • Optional url: string

      Optional URL for the OAuth endpoint.

    Returns Promise<Credentials>

      @@ -63,31 +63,31 @@

      Throws

      Will throw an error if changeSiteBody, changeSiteBody.siteId, or changeSiteBody.userId are not provided.

      Example

      const changeSiteBody = { siteId: 'newSiteId', userId: 'userId123' };
      const credentials = await changeUserSite(changeSiteBody);
      -
  • Private

    Builds AWS credentials using an OAuth token.

    +
  • Private

    Builds AWS credentials using an OAuth token.

    Parameters

    Returns void

    • A promise that resolves when the credentials are built.
    -
  • Retrieves the AWS credentials.

    Returns Promise<Credentials>

    • The AWS credentials or null if no cached token exists.
    -
  • Private

    Retrieves the current AWS credentials.

    +
  • Private

    Retrieves the current AWS credentials.

    Returns Promise<Credentials>

    • The AWS credentials.
    -
  • Retrieves the saved tokens from the storage.

    +
  • Retrieves the saved tokens from the storage.

    Returns Promise<{
        [key: string]: string;
    }>

    • The saved tokens.
    -
  • Checks if there is a cached token and refreshes it if needed. If the token should be refreshed, it refreshes the token and updates the AWS credentials. If the token is still valid, it uses the cached credentials to build AWS credentials.

    Returns Promise<AWSWebCoreState>

      @@ -96,21 +96,21 @@

      Example

      const

      Throws

      • Throws an error if there is no cached token.
      -
  • Refreshes the cached token.

    Parameters

    • Optional domain: string = ''

      The domain for the refresh request.

    • Optional url: string = ''

      The request url for refresh token

    Returns Promise<Credentials>

    • The AWS credentials or null if refresh fails.
    -
  • Executes a HTTP request without Credentials.

    Type Parameters

    • T

    Parameters

    • method: string

      The HTTP method.

    • url: string

      The request URL.

    • Optional params: Params = {}

      The request parameters.

      @@ -119,14 +119,14 @@

      Example

      const

    Returns Promise<HttpResponse<T>>

    • The Axios response.
    -
  • Saves the KMS (Key Management Service) details to storage.

    +
  • Saves the KMS (Key Management Service) details to storage.

    Parameters

    Returns Promise<void>

    • A promise that resolves when the KMS details are saved.
    -
  • Executes a signed HTTP request.

    +

Returns Promise<void>

  • Executes a signed HTTP request.

    Type Parameters

    • T

    Parameters

    • method: string

      The HTTP method.

    • url: string

      The request URL.

    • Optional params: Params = {}

      The request parameters.

      @@ -135,4 +135,4 @@

      Example

      const

    Returns Promise<HttpResponse<T>>

    • The Axios response.
    -
\ No newline at end of file +
\ No newline at end of file diff --git a/classes/AzureHttpRequestBuilder.html b/classes/AzureHttpRequestBuilder.html index 3ec6af6..90f671f 100644 --- a/classes/AzureHttpRequestBuilder.html +++ b/classes/AzureHttpRequestBuilder.html @@ -1,7 +1,7 @@ AzureHttpRequestBuilder | @lemoncloud/lemon-web-core

Class to build and execute HTTP requests with AWS signing

Example

const response: HttpResponse<OAuthResponse> = await new AzureHttpRequestBuilder({
method: 'GET',
baseURL: `https://api.lemoncloud.io/v1/oauth`,
})
.addHeaders({ Cookie: this.cookie })
.setParams({ page: 0 })
.execute();
-

Constructors

Constructors

Properties

axiosInstance config tokenStorage @@ -19,56 +19,56 @@

Parameters

  • tokenStorage: AzureStorageService

    The AWS storage service for token management.

  • config: AxiosRequestConfig<any>

    The Axios request configuration.

Returns AzureHttpRequestBuilder

Throws

If tokenStorage, method, or baseURL are not defined.

-

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...
tokenStorage: AzureStorageService

The AWS storage service for token management.

-

Methods

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...
tokenStorage: AzureStorageService

The AWS storage service for token management.

+

Methods

  • Private

    Adds a Bearer token to the request headers. Retrieves the identityToken from the token storage and sets it as the Authorization header.

    Returns Promise<void>

    • A promise that resolves when the token is added.
    -

    Async

  • Private

    Adds code parameters to the request configuration. Retrieves the hostKey and clientId from the token storage and sets them as request parameters.

    Returns Promise<void>

    • A promise that resolves when the parameters are added.
    -

    Async

  • Private

    Adds the x-lemon-identity token to the request headers if required. Checks if the USE_X_LEMON_IDENTITY_KEY is set in the token storage and, if true, retrieves the identityToken and sets it as the x-lemon-identity header.

    Returns Promise<void>

    • A promise that resolves when the token is added.
    -

    Async

\ No newline at end of file +
\ No newline at end of file diff --git a/classes/AzureStorageService.html b/classes/AzureStorageService.html index 4d664d4..2c8a715 100644 --- a/classes/AzureStorageService.html +++ b/classes/AzureStorageService.html @@ -1,5 +1,5 @@ AzureStorageService | @lemoncloud/lemon-web-core

A service to manage Azure-specific storage operations.

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

config: WebCoreConfig<"azure">

The configuration for the web core.

-
credentialKeys: string[] = ...

The list of keys used to store credentials in the storage.

-
prefix: string = 'lemon'
storage: Storage = ...

Methods

  • Retrieves all items from the storage.

    +

Constructors

Properties

config: WebCoreConfig<"azure">

The configuration for the web core.

+
credentialKeys: string[] = ...

The list of keys used to store credentials in the storage.

+
prefix: string = 'lemon'
storage: Storage = ...

Methods

  • Sets an item in the storage.

    +

Returns Promise<void>

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/classes/AzureWebCore.html b/classes/AzureWebCore.html index 6f36cb3..c68ab22 100644 --- a/classes/AzureWebCore.html +++ b/classes/AzureWebCore.html @@ -1,6 +1,6 @@ AzureWebCore | @lemoncloud/lemon-web-core

Class to handle Azure-specific web core operations. Implements the WebCoreService interface.

-

Implements

Constructors

Implements

Constructors

Properties

Constructors

Properties

config: WebCoreConfig<"azure">

The configuration for the Azure web core.

-
tokenStorage: AzureStorageService

Methods

  • Builds a request using HttpRequestBuilder without Credentials.

    +

Returns AzureWebCore

Properties

config: WebCoreConfig<"azure">

The configuration for the Azure web core.

+
tokenStorage: AzureStorageService

Methods

  • Retrieves all saved tokens from the storage.

    +
  • Retrieves all saved tokens from the storage.

    Returns Promise<{
        [key: string]: string;
    }>

    • An object containing all saved tokens.
    -
  • Logs the user out by clearing the OAuth token from the storage.

    Returns Promise<void>

    • A promise that resolves when the user is logged out.
    -
  • Executes a HTTP request without Credentials.

    Type Parameters

    • T

    Parameters

    • method: string

      The HTTP method.

    • url: string

      The request URL.

    • Optional params: Params = {}

      The request parameters.

      @@ -57,17 +57,17 @@

    Returns Promise<HttpResponse<T>>

    • The Axios response.
    -
  • Saves an OAuth token to the storage.

    Parameters

    Returns Promise<void>

    • A promise that resolves when the token is saved.
    -
  • Sets whether to use the x-lemon-identity header.

    Parameters

    • use: boolean

      True to use the x-lemon-identity header, otherwise false.

    Returns Promise<void>

    • A promise that resolves when the setting is updated.
    -
  • Executes a signed HTTP request.

    Type Parameters

    • T

    Parameters

    • method: string

      The HTTP method to use for the request.

    • url: string

      The URL for the request.

    • Optional params: Params = {}

      The URL parameters for the request.

      @@ -76,4 +76,4 @@

    Returns Promise<HttpResponse<T>>

    • The Axios response.
    -
\ No newline at end of file +
\ No newline at end of file diff --git a/classes/HttpRequestBuilder.html b/classes/HttpRequestBuilder.html index 33a16e5..b0047c9 100644 --- a/classes/HttpRequestBuilder.html +++ b/classes/HttpRequestBuilder.html @@ -1,7 +1,7 @@ HttpRequestBuilder | @lemoncloud/lemon-web-core

Class to build and execute HTTP requests

Example

const response: HttpResponse<OAuthResponse> = await new HttpRequestBuilder({
method: 'GET',
baseURL: `https://api.lemoncloud.io/v1/oauth`,
})
.setHeaders({ Cookie: this.cookie })
.setParams({ page: 0 })
.execute();
-

Constructors

Constructors

Properties

Methods

addAxiosRequestConfig @@ -14,39 +14,39 @@

Constructors

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...

Methods

Properties

axiosInstance: AxiosInstance
config: AxiosRequestConfig<any> = ...

Methods

\ No newline at end of file +
\ No newline at end of file diff --git a/classes/LocalStorageService.html b/classes/LocalStorageService.html index 0e2e8b5..281f8d8 100644 --- a/classes/LocalStorageService.html +++ b/classes/LocalStorageService.html @@ -1,6 +1,6 @@ -LocalStorageService | @lemoncloud/lemon-web-core

Constructors

constructor +LocalStorageService | @lemoncloud/lemon-web-core

Constructors

Properties

Methods

Constructors

Properties

storage: any

Methods

\ No newline at end of file +

Constructors

Properties

storage: any

Methods

\ No newline at end of file diff --git a/classes/LoggerHelperService.html b/classes/LoggerHelperService.html index 6ce332b..ca438e8 100644 --- a/classes/LoggerHelperService.html +++ b/classes/LoggerHelperService.html @@ -1,4 +1,4 @@ -LoggerHelperService | @lemoncloud/lemon-web-core

Constructors

constructor +LoggerHelperService | @lemoncloud/lemon-web-core

Constructors

Properties

Methods

Constructors

Properties

colorSet: any
logColors: any

Methods

  • Returns {
        Black: number;
        Blue: number;
        Cyan: number;
        Green: number;
        Grey: number;
        Magenta: number;
        Red: number;
        White: number;
        Yellow: number;
    } | {
        Black: string;
        Blue: string;
        Cyan: string;
        Green: string;
        Grey: string;
        Magenta: string;
        Red: string;
        White: string;
        Yellow: string;
    }

\ No newline at end of file +

Constructors

Properties

colorSet: any
logColors: any

Methods

  • Returns {
        Black: number;
        Blue: number;
        Cyan: number;
        Green: number;
        Grey: number;
        Magenta: number;
        Red: number;
        White: number;
        Yellow: number;
    } | {
        Black: string;
        Blue: string;
        Cyan: string;
        Green: string;
        Grey: string;
        Magenta: string;
        Red: string;
        White: string;
        Yellow: string;
    }

\ No newline at end of file diff --git a/classes/LoggerService.html b/classes/LoggerService.html index b611efc..1baaf41 100644 --- a/classes/LoggerService.html +++ b/classes/LoggerService.html @@ -1,4 +1,4 @@ -LoggerService | @lemoncloud/lemon-web-core

Implements

Constructors

constructor +LoggerService | @lemoncloud/lemon-web-core

Implements

Constructors

Properties

Constructors

Properties

isBrowser: boolean
isNode: boolean
namespace: string
options: LoggerOption = ...

Methods

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

\ No newline at end of file +

Constructors

Properties

isBrowser: boolean
isNode: boolean
namespace: string
options: LoggerOption = ...

Methods

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

\ No newline at end of file diff --git a/classes/TokenStorageService.html b/classes/TokenStorageService.html index d06f7be..d703549 100644 --- a/classes/TokenStorageService.html +++ b/classes/TokenStorageService.html @@ -1,7 +1,7 @@ TokenStorageService | @lemoncloud/lemon-web-core

Class TokenStorageServiceAbstract

Abstract class representing a token storage service. Provides methods to set and get items in storage, and abstract methods to check and manage cached tokens.

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

config prefix storage @@ -13,30 +13,30 @@ updatePrefix

Constructors

Properties

The configuration for the web core.

-
prefix: string = 'lemon'
storage: Storage = ...

Methods

  • Gets all items from the storage.

    +

Returns TokenStorageService

Properties

The configuration for the web core.

+
prefix: string = 'lemon'
storage: Storage = ...

Methods

  • Gets all items from the storage.

    Returns Promise<{
        [key: string]: string;
    }>

    • A promise that resolves to an object containing all items.
    -
  • Gets an item from the storage.

    Parameters

    • key: string

      The key to get.

    Returns Promise<string>

    • A promise that resolves to the value of the item.
    -
  • Checks if there is a cached token in the storage.

    Returns Promise<boolean>

    • A promise that resolves to true if a cached token exists, false otherwise.
    -
  • Sets an item in the storage.

    Parameters

    • key: string

      The key to set.

    • value: string

      The value to set.

    Returns Promise<void>

    • A promise that resolves when the item is set.
    -
  • Checks if the cached token should be refreshed.

    Returns Promise<boolean>

    • A promise that resolves to true if the token should be refreshed, false otherwise.
    -
\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/classes/WebCoreFactory.html b/classes/WebCoreFactory.html index 4069971..94d8fc8 100644 --- a/classes/WebCoreFactory.html +++ b/classes/WebCoreFactory.html @@ -1,8 +1,8 @@ WebCoreFactory | @lemoncloud/lemon-web-core

A factory class to create instances of WebCoreService based on the cloud provider.

-

Constructors

Constructors

Methods

Constructors

Methods

\ No newline at end of file +
\ No newline at end of file diff --git a/enums/LogType.html b/enums/LogType.html index 82c77cd..968a675 100644 --- a/enums/LogType.html +++ b/enums/LogType.html @@ -1,5 +1,5 @@ -LogType | @lemoncloud/lemon-web-core

Enumeration Members

DEBUG +LogType | @lemoncloud/lemon-web-core

Enumeration Members

Enumeration Members

DEBUG: "DEBUG"
ERROR: "ERROR"
INFO: "INFO"
WARN: "WARN"
\ No newline at end of file +

Enumeration Members

DEBUG: "DEBUG"
ERROR: "ERROR"
INFO: "INFO"
WARN: "WARN"
\ No newline at end of file diff --git a/functions/calcSignature.html b/functions/calcSignature.html index 0b75b1f..c1714a9 100644 --- a/functions/calcSignature.html +++ b/functions/calcSignature.html @@ -1 +1 @@ -calcSignature | @lemoncloud/lemon-web-core
  • Parameters

    • payload: SignaturePayload
    • current: string = ...
    • userAgent: string = navigator.userAgent

    Returns any

\ No newline at end of file +calcSignature | @lemoncloud/lemon-web-core
  • Parameters

    • payload: SignaturePayload
    • current: string = ...
    • userAgent: string = navigator.userAgent

    Returns any

\ No newline at end of file diff --git a/functions/createAsyncDelay.html b/functions/createAsyncDelay.html index 65403d7..d148711 100644 --- a/functions/createAsyncDelay.html +++ b/functions/createAsyncDelay.html @@ -2,4 +2,4 @@

Returns Promise<void>

Description

create delay using async/await

Example

await createAsyncDelay(2000) // wait 2 seconds
 
-
\ No newline at end of file +
\ No newline at end of file diff --git a/functions/hmac.html b/functions/hmac.html index 39e44b8..0f014ac 100644 --- a/functions/hmac.html +++ b/functions/hmac.html @@ -1 +1 @@ -hmac | @lemoncloud/lemon-web-core
  • Parameters

    • message: string
    • key: string

    Returns any

\ No newline at end of file +hmac | @lemoncloud/lemon-web-core
  • Parameters

    • message: string
    • key: string

    Returns any

\ No newline at end of file diff --git a/functions/isEmptyObject.html b/functions/isEmptyObject.html index 8879339..bb70dff 100644 --- a/functions/isEmptyObject.html +++ b/functions/isEmptyObject.html @@ -1 +1 @@ -isEmptyObject | @lemoncloud/lemon-web-core
  • Parameters

    • obj: any

    Returns boolean

\ No newline at end of file +isEmptyObject | @lemoncloud/lemon-web-core
  • Parameters

    • obj: any

    Returns boolean

\ No newline at end of file diff --git a/functions/withRetries.html b/functions/withRetries.html index 6e02c68..af7946c 100644 --- a/functions/withRetries.html +++ b/functions/withRetries.html @@ -1 +1 @@ -withRetries | @lemoncloud/lemon-web-core
  • Parameters

    • attempt: any
    • nthTry: number
    • delay: number

    Returns ((...args) => Promise<any>)

      • (...args): Promise<any>
      • Parameters

        • Rest ...args: any[]

        Returns Promise<any>

\ No newline at end of file +withRetries | @lemoncloud/lemon-web-core
  • Parameters

    • attempt: any
    • nthTry: number
    • delay: number

    Returns ((...args) => Promise<any>)

      • (...args): Promise<any>
      • Parameters

        • Rest ...args: any[]

        Returns Promise<any>

\ No newline at end of file diff --git a/interfaces/ChangeSiteBody.html b/interfaces/ChangeSiteBody.html index 23464c3..bc46358 100644 --- a/interfaces/ChangeSiteBody.html +++ b/interfaces/ChangeSiteBody.html @@ -1,6 +1,6 @@ ChangeSiteBody | @lemoncloud/lemon-web-core

Represents the body of the request to change the user site.

-
interface ChangeSiteBody {
    siteId: string;
    userId: string;
}

Properties

interface ChangeSiteBody {
    siteId: string;
    userId: string;
}

Properties

Properties

siteId: string

The ID of the site to switch to.

-
userId: string

The ID of the user.

-
\ No newline at end of file +
userId: string

The ID of the user.

+
\ No newline at end of file diff --git a/interfaces/FormatInterface.html b/interfaces/FormatInterface.html index d9dcb30..380ac89 100644 --- a/interfaces/FormatInterface.html +++ b/interfaces/FormatInterface.html @@ -1,5 +1,5 @@ -FormatInterface | @lemoncloud/lemon-web-core
interface FormatInterface {
    namespaceFormat: string;
    textFormat: string;
    timestampFormat: string;
    typeFormat: string;
}

Properties

namespaceFormat +FormatInterface | @lemoncloud/lemon-web-core
interface FormatInterface {
    namespaceFormat: string;
    textFormat: string;
    timestampFormat: string;
    typeFormat: string;
}

Properties

namespaceFormat: string
textFormat: string
timestampFormat: string
typeFormat: string
\ No newline at end of file +

Properties

namespaceFormat: string
textFormat: string
timestampFormat: string
typeFormat: string
\ No newline at end of file diff --git a/interfaces/HttpRequestData.html b/interfaces/HttpRequestData.html index 5a0938d..8f3321b 100644 --- a/interfaces/HttpRequestData.html +++ b/interfaces/HttpRequestData.html @@ -1,10 +1,10 @@ HttpRequestData | @lemoncloud/lemon-web-core

Defines the structure of an HTTP request.

-
interface HttpRequestData {
    body?: Body;
    method: string;
    params?: Params;
    path?: string;
}

Properties

interface HttpRequestData {
    body?: Body;
    method: string;
    params?: Params;
    path?: string;
}

Properties

body?: Body

The request body.

-
method: string

The HTTP method (e.g., GET, POST, PUT, etc.).

-
params?: Params

The query parameters of the request.

-
path?: string

The path of the request URL.

-
\ No newline at end of file +
method: string

The HTTP method (e.g., GET, POST, PUT, etc.).

+
params?: Params

The query parameters of the request.

+
path?: string

The path of the request URL.

+
\ No newline at end of file diff --git a/interfaces/HttpResponse.html b/interfaces/HttpResponse.html index 04ca61d..b8d7af5 100644 --- a/interfaces/HttpResponse.html +++ b/interfaces/HttpResponse.html @@ -1,7 +1,7 @@ -HttpResponse | @lemoncloud/lemon-web-core
interface HttpResponse<T> {
    config?: any;
    data: T;
    headers?: any;
    request?: any;
    status: number;
    statusText: string;
}

Type Parameters

  • T = any

Properties

config? +HttpResponse | @lemoncloud/lemon-web-core
interface HttpResponse<T> {
    config?: any;
    data: T;
    headers?: any;
    request?: any;
    status: number;
    statusText: string;
}

Type Parameters

  • T = any

Properties

config?: any
data: T
headers?: any
request?: any
status: number
statusText: string
\ No newline at end of file +

Properties

config?: any
data: T
headers?: any
request?: any
status: number
statusText: string
\ No newline at end of file diff --git a/interfaces/LemonCredentials.html b/interfaces/LemonCredentials.html index e126875..a08d7ed 100644 --- a/interfaces/LemonCredentials.html +++ b/interfaces/LemonCredentials.html @@ -1,14 +1,14 @@ LemonCredentials | @lemoncloud/lemon-web-core

Represents the credentials associated with an OAuth token.

-
interface LemonCredentials {
    AccessKeyId: string;
    Expiration?: string;
    SecretKey: string;
    SessionToken?: string;
    clientId?: string;
    hostKey?: string;
}

Properties

interface LemonCredentials {
    AccessKeyId: string;
    Expiration?: string;
    SecretKey: string;
    SessionToken?: string;
    clientId?: string;
    hostKey?: string;
}

Properties

AccessKeyId: string

The Access Key ID.

-
Expiration?: string

The expiration time of the credentials (optional).

-
SecretKey: string

The Secret Key.

-
SessionToken?: string

The session token associated with the credentials (optional).

-
clientId?: string

The client id for Azure (optional).

-
hostKey?: string

The host key associated with the credentials for Azure (optional).

-
\ No newline at end of file +
Expiration?: string

The expiration time of the credentials (optional).

+
SecretKey: string

The Secret Key.

+
SessionToken?: string

The session token associated with the credentials (optional).

+
clientId?: string

The client id for Azure (optional).

+
hostKey?: string

The host key associated with the credentials for Azure (optional).

+
\ No newline at end of file diff --git a/interfaces/LemonKMS.html b/interfaces/LemonKMS.html index 363fb3a..684559c 100644 --- a/interfaces/LemonKMS.html +++ b/interfaces/LemonKMS.html @@ -1,3 +1,3 @@ LemonKMS | @lemoncloud/lemon-web-core

Represents the ARN of a KMS key in AWS.

-
interface LemonKMS {
    arn: string;
}

Properties

arn -

Properties

arn: string
\ No newline at end of file +
interface LemonKMS {
    arn: string;
}

Properties

arn +

Properties

arn: string
\ No newline at end of file diff --git a/interfaces/LemonOAuthToken.html b/interfaces/LemonOAuthToken.html index 8ba03bb..816a076 100644 --- a/interfaces/LemonOAuthToken.html +++ b/interfaces/LemonOAuthToken.html @@ -1,5 +1,5 @@ LemonOAuthToken | @lemoncloud/lemon-web-core

Represents an OAuth token returned by Lemon.

-
interface LemonOAuthToken {
    accessToken?: string;
    accountId: string;
    authId: string;
    credential: LemonCredentials;
    error?: any;
    identityId: string;
    identityPoolId?: string;
    identityToken: string;
}

Properties

interface LemonOAuthToken {
    accessToken?: string;
    accountId: string;
    authId: string;
    credential: LemonCredentials;
    error?: any;
    identityId: string;
    identityPoolId?: string;
    identityToken: string;
}

Properties

accessToken?: string

The access token associated with the token (optional).

-
accountId: string

The account ID associated with the token.

-
authId: string

The authentication ID associated with the token.

-
credential: LemonCredentials

The credentials associated with the token.

-
error?: any

Any error information associated with the token (optional).

-
identityId: string

The identity ID associated with the token.

-
identityPoolId?: string

The identity pool ID associated with the token (optional).

-
identityToken: string

The identity token associated with the token.

-
\ No newline at end of file +
accountId: string

The account ID associated with the token.

+
authId: string

The authentication ID associated with the token.

+
credential: LemonCredentials

The credentials associated with the token.

+
error?: any

Any error information associated with the token (optional).

+
identityId: string

The identity ID associated with the token.

+
identityPoolId?: string

The identity pool ID associated with the token (optional).

+
identityToken: string

The identity token associated with the token.

+
\ No newline at end of file diff --git a/interfaces/LemonRefreshToken.html b/interfaces/LemonRefreshToken.html index f810a8e..e343129 100644 --- a/interfaces/LemonRefreshToken.html +++ b/interfaces/LemonRefreshToken.html @@ -1,10 +1,10 @@ LemonRefreshToken | @lemoncloud/lemon-web-core

Interface representing a Lemon refresh token.

-
interface LemonRefreshToken {
    accountId: string;
    authId: string;
    credential: LemonCredentials;
    identityId: string;
}

Properties

interface LemonRefreshToken {
    accountId: string;
    authId: string;
    credential: LemonCredentials;
    identityId: string;
}

Properties

accountId: string

The account ID associated with the refresh token.

-
authId: string

The authentication ID associated with the refresh token.

-
credential: LemonCredentials

The credentials associated with the refresh token.

-
identityId: string

The identity ID associated with the refresh token.

-
\ No newline at end of file +
authId: string

The authentication ID associated with the refresh token.

+
credential: LemonCredentials

The credentials associated with the refresh token.

+
identityId: string

The identity ID associated with the refresh token.

+
\ No newline at end of file diff --git a/interfaces/LogInterface.html b/interfaces/LogInterface.html index da0f8c4..7994dfc 100644 --- a/interfaces/LogInterface.html +++ b/interfaces/LogInterface.html @@ -1,5 +1,5 @@ -LogInterface | @lemoncloud/lemon-web-core
interface LogInterface {
    debug(message, ...extraParams): void;
    error(message, ...extraParams): void;
    info(message, ...extraParams): void;
    warn(message, ...extraParams): void;
}

Implemented by

Methods

debug +LogInterface | @lemoncloud/lemon-web-core
interface LogInterface {
    debug(message, ...extraParams): void;
    error(message, ...extraParams): void;
    info(message, ...extraParams): void;
    warn(message, ...extraParams): void;
}

Implemented by

Methods

Methods

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

\ No newline at end of file +

Methods

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...extraParams: any[]

    Returns void

\ No newline at end of file diff --git a/interfaces/LoggerOption.html b/interfaces/LoggerOption.html index eb3ad64..aae2444 100644 --- a/interfaces/LoggerOption.html +++ b/interfaces/LoggerOption.html @@ -1,6 +1,6 @@ LoggerOption | @lemoncloud/lemon-web-core

Options for configuring the logger behavior.

-
interface LoggerOption {
    showLogType?: boolean;
    showTimestamp?: boolean;
}

Properties

interface LoggerOption {
    showLogType?: boolean;
    showTimestamp?: boolean;
}

Properties

showLogType?: boolean

Whether to show log types (e.g., info, error) in the log output.

-
showTimestamp?: boolean

Whether to show timestamps in the log output.

-
\ No newline at end of file +
showTimestamp?: boolean

Whether to show timestamps in the log output.

+
\ No newline at end of file diff --git a/interfaces/RefreshTokenBody.html b/interfaces/RefreshTokenBody.html index cfc1391..e5ee6e9 100644 --- a/interfaces/RefreshTokenBody.html +++ b/interfaces/RefreshTokenBody.html @@ -1,8 +1,8 @@ RefreshTokenBody | @lemoncloud/lemon-web-core

Interface representing the body of a refresh token request.

-
interface RefreshTokenBody {
    current: string;
    domain?: string;
    signature: string;
}

Properties

interface RefreshTokenBody {
    current: string;
    domain?: string;
    signature: string;
}

Properties

current: string

The current token.

-
domain?: string

Optional. The domain of the token.

-
signature: string

The signature of the token.

-
\ No newline at end of file +
domain?: string

Optional. The domain of the token.

+
signature: string

The signature of the token.

+
\ No newline at end of file diff --git a/interfaces/SignaturePayload.html b/interfaces/SignaturePayload.html index b419035..6a34827 100644 --- a/interfaces/SignaturePayload.html +++ b/interfaces/SignaturePayload.html @@ -1,10 +1,10 @@ SignaturePayload | @lemoncloud/lemon-web-core

The payload used for signature generation.

-
interface SignaturePayload {
    accountId?: string;
    authId?: string;
    identityId?: string;
    identityToken?: string;
}

Properties

interface SignaturePayload {
    accountId?: string;
    authId?: string;
    identityId?: string;
    identityToken?: string;
}

Properties

accountId?: string

The account ID.

-
authId?: string

The authentication ID.

-
identityId?: string

The identity ID.

-
identityToken?: string

The identity token.

-
\ No newline at end of file +
authId?: string

The authentication ID.

+
identityId?: string

The identity ID.

+
identityToken?: string

The identity token.

+
\ No newline at end of file diff --git a/interfaces/Storage.html b/interfaces/Storage.html index 3e17e6c..6e7f5ee 100644 --- a/interfaces/Storage.html +++ b/interfaces/Storage.html @@ -1,16 +1,16 @@ Storage | @lemoncloud/lemon-web-core

Interface for storage operations.

-
interface Storage {
    getItem(key, ...params): any;
    removeItem(key, ...params): any;
    setItem(key, value, ...params): any;
}

Methods

interface Storage {
    getItem(key, ...params): any;
    removeItem(key, ...params): any;
    setItem(key, value, ...params): any;
}

Methods

  • Get the value associated with the given key.

    Parameters

    • key: string

      The key to retrieve the value for.

    • Rest ...params: any

      Additional parameters for the operation.

    Returns any

    The value associated with the given key.

    -
  • Remove the value associated with the given key.

    +
  • Remove the value associated with the given key.

    Parameters

    • key: string

      The key to remove the value for.

    • Rest ...params: any

      Additional parameters for the operation.

      -

    Returns any

  • Set the value for the given key.

    +

Returns any

  • Set the value for the given key.

    Parameters

    • key: string

      The key to set the value for.

    • value: string

      The value to be stored.

    • Rest ...params: any

      Additional parameters for the operation.

      -

    Returns any

\ No newline at end of file +

Returns any

\ No newline at end of file diff --git a/interfaces/TokenSignature.html b/interfaces/TokenSignature.html index be49ef8..c1bde7a 100644 --- a/interfaces/TokenSignature.html +++ b/interfaces/TokenSignature.html @@ -1,10 +1,10 @@ TokenSignature | @lemoncloud/lemon-web-core

The token signature object.

-
interface TokenSignature {
    authId: string;
    current: string;
    originToken: LemonOAuthToken;
    signature: string;
}

Properties

interface TokenSignature {
    authId: string;
    current: string;
    originToken: LemonOAuthToken;
    signature: string;
}

Properties

authId: string

The authentication ID.

-
current: string

The current token.

-
originToken: LemonOAuthToken

The original token.

-
signature: string

The signature of the token.

-
\ No newline at end of file +
current: string

The current token.

+
originToken: LemonOAuthToken

The original token.

+
signature: string

The signature of the token.

+
\ No newline at end of file diff --git a/interfaces/WebCoreService.html b/interfaces/WebCoreService.html index 7b8ab84..98a8e96 100644 --- a/interfaces/WebCoreService.html +++ b/interfaces/WebCoreService.html @@ -1,5 +1,5 @@ WebCoreService | @lemoncloud/lemon-web-core

Interface representing a web core service.

-
interface WebCoreService {
    getSavedToken(): Promise<{
        [key: string]: string;
    }>;
    isAuthenticated(): Promise<boolean>;
    logout(): Promise<void>;
    setUseXLemonIdentity(use): void;
}

Implemented by

Methods

interface WebCoreService {
    getSavedToken(): Promise<{
        [key: string]: string;
    }>;
    isAuthenticated(): Promise<boolean>;
    logout(): Promise<void>;
    setUseXLemonIdentity(use): void;
}

Implemented by

Methods

Returns Promise<{
    [key: string]: string;
}>

  • A promise that resolves to an object containing the saved token.
-
  • Checks if the user is authenticated.

    +
  • Checks if the user is authenticated.

    Returns Promise<boolean>

    • A promise that resolves to true if the user is authenticated, false otherwise.
    -
  • Logs out the user.

    Returns Promise<void>

    • A promise that resolves when the user is logged out.
    -
  • Sets the use of X-Lemon-Identity.

    +
  • Sets the use of X-Lemon-Identity.

    Parameters

    • use: boolean

      Whether to use X-Lemon-Identity.

      -

    Returns void

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/types/AWSWebCoreState.html b/types/AWSWebCoreState.html index f57a592..3bae76f 100644 --- a/types/AWSWebCoreState.html +++ b/types/AWSWebCoreState.html @@ -1,2 +1,2 @@ AWSWebCoreState | @lemoncloud/lemon-web-core
AWSWebCoreState: "no-token" | "refreshed" | "build"

Represents the state of the AWS Web Core service.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/types/AzureWebCoreState.html b/types/AzureWebCoreState.html index b238f25..2d141b5 100644 --- a/types/AzureWebCoreState.html +++ b/types/AzureWebCoreState.html @@ -1,2 +1,2 @@ AzureWebCoreState | @lemoncloud/lemon-web-core
AzureWebCoreState: "no-token" | "has-token"

Represents the state of the Azure Web Core service.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/types/Body.html b/types/Body.html index 304eb8e..4bbc18f 100644 --- a/types/Body.html +++ b/types/Body.html @@ -1,2 +1,2 @@ Body | @lemoncloud/lemon-web-core
Body: {
    [key: string]: any;
}

Represents the body of an HTTP request, which can contain any key-value pairs.

-

Type declaration

  • [key: string]: any
\ No newline at end of file +

Type declaration

  • [key: string]: any
\ No newline at end of file diff --git a/types/CloudProvider.html b/types/CloudProvider.html index 15e0369..0d3bf4d 100644 --- a/types/CloudProvider.html +++ b/types/CloudProvider.html @@ -1,2 +1,2 @@ CloudProvider | @lemoncloud/lemon-web-core
CloudProvider: keyof WebCoreServiceMap

Type representing a cloud provider.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/types/Headers.html b/types/Headers.html index baaf201..06e27da 100644 --- a/types/Headers.html +++ b/types/Headers.html @@ -1,2 +1,2 @@ Headers | @lemoncloud/lemon-web-core
Headers: {
    [key: string]: any;
}

Represents the headers of an HTTP request, which can contain any key-value pairs.

-

Type declaration

  • [key: string]: any
\ No newline at end of file +

Type declaration

  • [key: string]: any
\ No newline at end of file diff --git a/types/Params.html b/types/Params.html index 254ad1d..4204e81 100644 --- a/types/Params.html +++ b/types/Params.html @@ -1,2 +1,2 @@ Params | @lemoncloud/lemon-web-core
Params: {
    [key: string]: any;
}

Represents the query parameters of an HTTP request, which can contain any key-value pairs.

-

Type declaration

  • [key: string]: any
\ No newline at end of file +

Type declaration

  • [key: string]: any
\ No newline at end of file diff --git a/types/WebCoreConfig.html b/types/WebCoreConfig.html index d673f38..fe45c63 100644 --- a/types/WebCoreConfig.html +++ b/types/WebCoreConfig.html @@ -1,3 +1,3 @@ WebCoreConfig | @lemoncloud/lemon-web-core

Type alias WebCoreConfig<T>

WebCoreConfig<T>: {
    cloud: T;
    oAuthEndpoint: string;
    project: string;
    region?: string;
    storage?: Storage;
}

Type representing the configuration for the web core.

Type Parameters

Type declaration

  • cloud: T
  • oAuthEndpoint: string
  • project: string
  • Optional region?: string
  • Optional storage?: Storage
\ No newline at end of file +

Type declaration

  • cloud: T
  • oAuthEndpoint: string
  • project: string
  • Optional region?: string
  • Optional storage?: Storage
\ No newline at end of file diff --git a/types/WebCoreConstructor.html b/types/WebCoreConstructor.html index 2b48115..5a6397e 100644 --- a/types/WebCoreConstructor.html +++ b/types/WebCoreConstructor.html @@ -1,3 +1,3 @@ WebCoreConstructor | @lemoncloud/lemon-web-core

Type alias WebCoreConstructor<T>

WebCoreConstructor<T>: (new (config) => T)

Type representing a constructor for a web core service.

Type Parameters

Type declaration

\ No newline at end of file +

Type declaration

\ No newline at end of file diff --git a/types/WebCoreServiceMap.html b/types/WebCoreServiceMap.html index 38c36a2..93dfb65 100644 --- a/types/WebCoreServiceMap.html +++ b/types/WebCoreServiceMap.html @@ -1,2 +1,2 @@ WebCoreServiceMap | @lemoncloud/lemon-web-core
WebCoreServiceMap: {
    aws: AWSWebCore;
    azure: AzureWebCore;
}

Type representing a map of web core services.

-

Type declaration

\ No newline at end of file +

Type declaration

\ No newline at end of file diff --git a/variables/BROWSER_COLORS.html b/variables/BROWSER_COLORS.html index d6d430d..cce119c 100644 --- a/variables/BROWSER_COLORS.html +++ b/variables/BROWSER_COLORS.html @@ -1 +1 @@ -BROWSER_COLORS | @lemoncloud/lemon-web-core

Variable BROWSER_COLORSConst

BROWSER_COLORS: {
    Black: string;
    Blue: string;
    Cyan: string;
    Green: string;
    Grey: string;
    Magenta: string;
    Red: string;
    White: string;
    Yellow: string;
} = ...

Type declaration

  • Black: string
  • Blue: string
  • Cyan: string
  • Green: string
  • Grey: string
  • Magenta: string
  • Red: string
  • White: string
  • Yellow: string
\ No newline at end of file +BROWSER_COLORS | @lemoncloud/lemon-web-core

Variable BROWSER_COLORSConst

BROWSER_COLORS: {
    Black: string;
    Blue: string;
    Cyan: string;
    Green: string;
    Grey: string;
    Magenta: string;
    Red: string;
    White: string;
    Yellow: string;
} = ...

Type declaration

  • Black: string
  • Blue: string
  • Cyan: string
  • Green: string
  • Grey: string
  • Magenta: string
  • Red: string
  • White: string
  • Yellow: string
\ No newline at end of file diff --git a/variables/NODE_COLORS.html b/variables/NODE_COLORS.html index 4994af1..30e9d1c 100644 --- a/variables/NODE_COLORS.html +++ b/variables/NODE_COLORS.html @@ -1 +1 @@ -NODE_COLORS | @lemoncloud/lemon-web-core

Variable NODE_COLORSConst

NODE_COLORS: {
    Black: number;
    Blue: number;
    Cyan: number;
    Green: number;
    Grey: number;
    Magenta: number;
    Red: number;
    White: number;
    Yellow: number;
} = ...

Type declaration

  • Black: number
  • Blue: number
  • Cyan: number
  • Green: number
  • Grey: number
  • Magenta: number
  • Red: number
  • White: number
  • Yellow: number
\ No newline at end of file +NODE_COLORS | @lemoncloud/lemon-web-core

Variable NODE_COLORSConst

NODE_COLORS: {
    Black: number;
    Blue: number;
    Cyan: number;
    Green: number;
    Grey: number;
    Magenta: number;
    Red: number;
    White: number;
    Yellow: number;
} = ...

Type declaration

  • Black: number
  • Blue: number
  • Cyan: number
  • Green: number
  • Grey: number
  • Magenta: number
  • Red: number
  • White: number
  • Yellow: number
\ No newline at end of file diff --git a/variables/REGION_KEY.html b/variables/REGION_KEY.html index d642c3d..1359970 100644 --- a/variables/REGION_KEY.html +++ b/variables/REGION_KEY.html @@ -1 +1 @@ -REGION_KEY | @lemoncloud/lemon-web-core

Variable REGION_KEYConst

REGION_KEY: "region" = 'region'
\ No newline at end of file +REGION_KEY | @lemoncloud/lemon-web-core

Variable REGION_KEYConst

REGION_KEY: "region" = 'region'
\ No newline at end of file diff --git a/variables/USE_X_LEMON_IDENTITY_KEY.html b/variables/USE_X_LEMON_IDENTITY_KEY.html index f995f6c..5027c7a 100644 --- a/variables/USE_X_LEMON_IDENTITY_KEY.html +++ b/variables/USE_X_LEMON_IDENTITY_KEY.html @@ -1 +1 @@ -USE_X_LEMON_IDENTITY_KEY | @lemoncloud/lemon-web-core

Variable USE_X_LEMON_IDENTITY_KEYConst

USE_X_LEMON_IDENTITY_KEY: "use_x_lemon_identity_key" = 'use_x_lemon_identity_key'
\ No newline at end of file +USE_X_LEMON_IDENTITY_KEY | @lemoncloud/lemon-web-core

Variable USE_X_LEMON_IDENTITY_KEYConst

USE_X_LEMON_IDENTITY_KEY: "use_x_lemon_identity_key" = 'use_x_lemon_identity_key'
\ No newline at end of file diff --git a/variables/sigV4Client.html b/variables/sigV4Client.html index f83e0f6..23308c2 100644 --- a/variables/sigV4Client.html +++ b/variables/sigV4Client.html @@ -1 +1 @@ -sigV4Client | @lemoncloud/lemon-web-core

Variable sigV4ClientConst

sigV4Client: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
\ No newline at end of file +sigV4Client | @lemoncloud/lemon-web-core

Variable sigV4ClientConst

sigV4Client: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
\ No newline at end of file