diff --git a/docs/classes/RateLimitError.html b/docs/classes/RateLimitError.html index 6952a85..3d3071c 100644 --- a/docs/classes/RateLimitError.html +++ b/docs/classes/RateLimitError.html @@ -1,4 +1,4 @@ -RateLimitError | @brainspore/hypernexus

Hierarchy (View Summary)

Constructors

constructor +RateLimitError | @brainspore/hypernexus

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
data?: any
message: string
name: string
retryAfter?: number
stack?: string
statusCode?: number
timeout?: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
data?: any
message: string
name: string
retryAfter?: number
stack?: string
statusCode?: number
timeout?: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/docs/classes/TimeoutError.html b/docs/classes/TimeoutError.html index 090ac51..7662794 100644 --- a/docs/classes/TimeoutError.html +++ b/docs/classes/TimeoutError.html @@ -1,4 +1,4 @@ -TimeoutError | @brainspore/hypernexus

Hierarchy (View Summary)

Constructors

constructor +TimeoutError | @brainspore/hypernexus

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
data?: any
message: string
name: string
stack?: string
statusCode?: number
timeout?: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
data?: any
message: string
name: string
stack?: string
statusCode?: number
timeout?: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/docs/classes/Transport.html b/docs/classes/Transport.html index aa47f18..b882e7f 100644 --- a/docs/classes/Transport.html +++ b/docs/classes/Transport.html @@ -16,7 +16,7 @@

When a request fails

When rate limit is exceeded

When request times out

-

Constructors

Constructors

Methods

Constructors

Methods

  • Parameters

    • middleware: (
          config: AxiosRequestConfig,
      ) => AxiosRequestConfig<any> | Promise<AxiosRequestConfig<any>>

    Returns void

  • Executes multiple HTTP requests in parallel or sequentially

    +

Constructors

Methods

  • Parameters

    • middleware: (
          config: AxiosRequestConfig,
      ) => AxiosRequestConfig<any> | Promise<AxiosRequestConfig<any>>

    Returns void

  • Parameters

    • endpoint: string
    • Optionaloptions: RequestOptions

    Returns void

  • Makes a POST request to a codeunit endpoint with optional payload and request options

    +
  • Parameters

    • endpoint: string
    • Optionaloptions: RequestOptions

    Returns void

  • Makes a POST request to a codeunit endpoint with optional payload and request options

    Type Parameters

    • T

      The expected response type

    Parameters

    • codeunit: string

      The codeunit endpoint URL

    • Optionalpayload: any

      Optional request payload/body data

    • Optionaloptions: RequestOptions

      Optional request configuration options

    Returns Promise<T>

    Promise that resolves with the response data

    When the request fails with status code 500

    -
  • Type Parameters

    • T

    Parameters

    • endpoint: string
    • Optionalpayload: any
    • Optionaloptions: RequestOptions

    Returns Promise<T>

  • Creates an OData filter query string from the provided parameters

    +
  • Type Parameters

    • T

    Parameters

    • endpoint: string
    • Optionalpayload: any
    • Optionaloptions: RequestOptions

    Returns Promise<T>

  • Creates an OData filter query string from the provided parameters

    Parameters

    • params: Record<string, any>

      An object containing key-value pairs to be converted into filter conditions

    Returns undefined | object

    An object with the '$filter' property containing the generated OData filter string, or undefined if no valid parameters

    When there is an error preparing the BC 365 filter query

    @@ -57,4 +57,4 @@
    filter({ name: "John", age: 30 })
    // Returns: { $filter: "name eq 'John' and age eq 30" }
    -
  • Type Parameters

    • T

    Parameters

    • endpoint: string
    • OptionalqueryParams: Record<string, any>
    • Optionaloptions: RequestOptions

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • endpoint: string
    • Optionalpayload: any
    • Optionaloptions: RequestOptions

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • endpoint: string
    • Optionalpayload: any
    • Optionaloptions: RequestOptions

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • endpoint: string
    • Optionalpayload: any
    • Optionaloptions: RequestOptions

    Returns Promise<T>

+
diff --git a/docs/classes/TransportError.html b/docs/classes/TransportError.html index 95b2835..1eb284d 100644 --- a/docs/classes/TransportError.html +++ b/docs/classes/TransportError.html @@ -1,4 +1,4 @@ -TransportError | @brainspore/hypernexus

Hierarchy (View Summary)

Constructors

constructor +TransportError | @brainspore/hypernexus

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
data?: any
message: string
name: string
stack?: string
statusCode?: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
data?: any
message: string
name: string
stack?: string
statusCode?: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/docs/functions/CreateAuthHandler.html b/docs/functions/CreateAuthHandler.html index c707d8b..7a562ad 100644 --- a/docs/functions/CreateAuthHandler.html +++ b/docs/functions/CreateAuthHandler.html @@ -1,2 +1,2 @@ CreateAuthHandler | @brainspore/hypernexus

Function CreateAuthHandler

  • Create AuthHandler Factory

    -

    Parameters

    • type: AuthTypes
    • credentials: Credentials
    • oath2Config: null | OAuth2Config = null
    • accesTokenURL: null | string = null
    • redisConfig: null | RedisConfig = null

    Returns AuthHandler

+

Parameters

Returns AuthHandler

diff --git a/docs/functions/getConfig.html b/docs/functions/getConfig.html index 000f33d..4aca9fe 100644 --- a/docs/functions/getConfig.html +++ b/docs/functions/getConfig.html @@ -1,2 +1,2 @@ getConfig | @brainspore/hypernexus

Get EnvConfig

-
+
diff --git a/docs/variables/transport-1.html b/docs/variables/transport-1.html index fdf1632..20aad2e 100644 --- a/docs/variables/transport-1.html +++ b/docs/variables/transport-1.html @@ -1 +1 @@ -transport | @brainspore/hypernexus

Variable transportConst

transport: Transport = ...
+transport | @brainspore/hypernexus

Variable transportConst

transport: Transport = ...