Skip to main content

modules

@appfire/fuse-http-client / Exports

@appfire/fuse-http-client

Table of contents

Classes

Type Aliases

Type Aliases

ActionFunction

Ƭ ActionFunction<T>: () => Promise<T>

Type parameters

Name
T

Type declaration

▸ (): Promise<T>

Returns

Promise<T>

Defined in

types/config.types.ts:3


BackOffOptions

Ƭ BackOffOptions: Partial<IBackOffOptions>

Defined in

types/config.types.ts:57


ConfigType

Ƭ ConfigType<T>: T extends JiraKeyType ? JiraConfig : T extends MondayKeyType ? MondayConfig : ConfluenceConfig

Type parameters

Name
T

Defined in

types/config.types.ts:104


ConfluenceConfig

Ƭ ConfluenceConfig: ServiceConfig

Defined in

types/config.types.ts:94


ConfluenceKeyType

Ƭ ConfluenceKeyType: "Confluence"

Defined in

types/config.types.ts:78


HttpConfig

Ƭ HttpConfig<T>: Object

Type parameters

NameType
TRecord<string, unknown>

Type declaration

NameType
appfireUrl?string
config?{ headers: Record<string, string> }
config.headersRecord<string, string>
requestBodyT

Defined in

types/config.types.ts:59


HttpResponse

Ƭ HttpResponse<T>: Object

Type parameters

Name
T

Type declaration

NameType
dataT
statusnumber

Defined in

types/config.types.ts:72


IBackOffOptions

Ƭ IBackOffOptions: Object

Type declaration

NameTypeDescription
delayFirstAttemptbooleanDecides whether the startingDelay should be applied before the first call. If false, the first call will occur without a delay. Default ts false
jitterJitterTypeDecides whether a jitter should be applied to the delay. Possible values are full and none. Default ts none
logRetrybooleanlogs error and current attempt when retryFn is not passes Default ts true
maxDelaynumberThe maximum delay, in milliseconds, between two consecutive attempts. Default ts Infinity
numOfAttemptsnumberThe maximum number of times to attempt the function. Default ts 10 Min 1
retryFn?RetryFunctionParam Error Param current attempt Number Default ts By default, returns true and retries until retries exhausts or retry is successful. It also logs error using console.error and prints current attempt number. returns false will end execution
startingDelaynumberThe delay, in milliseconds, before executing the function for the first time. Default ts 100ms
timeMultiplenumberThe startingDelay is multiplied by the timeMultiple to increase the delay between reattempts. Default ts 2

Defined in

types/config.types.ts:9


Input

Ƭ Input<T>: Object

Type parameters

Name
T

Type declaration

NameType
backOffOptions?BackOffOptions
httpConfigHttpConfig<T>
tokenFn?() => string | Promise<string>

Defined in

types/config.types.ts:66


JiraConfig

Ƭ JiraConfig: ServiceConfig

Defined in

types/config.types.ts:92


JiraKeyType

Ƭ JiraKeyType: "Jira"

Defined in

types/config.types.ts:77


JitterType

Ƭ JitterType: "none" | "full"

Defined in

types/config.types.ts:1


MondayConfig

Ƭ MondayConfig: ServiceConfig

Defined in

types/config.types.ts:96


MondayKeyType

Ƭ MondayKeyType: "Monday"

Defined in

types/config.types.ts:76


MondaySdkTokenResponse

Ƭ MondaySdkTokenResponse: Object

Type declaration

NameType
datastring

Defined in

types/config.types.ts:99


ParamsType

Ƭ ParamsType: Record<string, unknown>

Defined in

types/config.types.ts:103


ProductType

Ƭ ProductType: MondayKeyType | JiraKeyType | ConfluenceKeyType

Defined in

types/config.types.ts:79


RetryFunction

Ƭ RetryFunction: (e: unknown, attempt: number) => boolean | Promise<boolean>

Type declaration

▸ (e, attempt): boolean | Promise<boolean>

Parameters
NameType
eunknown
attemptnumber
Returns

boolean | Promise<boolean>

Defined in

types/config.types.ts:4


ServiceConfig

Ƭ ServiceConfig: Object

Type declaration

NameType
appKeystring
backOffOptions?BackOffOptions
cacheDuration?number
customHeaders?Record<string, string>
fingerprintAccessKey?string
fingerprintEndpoint?string
serviceUrlstring
tokenFn?() => string | Promise<string>

Defined in

types/config.types.ts:81