Type aliases
BatchConfig
BatchConfig: { delay?: number; includeHeaders?: boolean; retryTimes?: number; shouldRetry?: any }
Type declaration
Optional delay?: number
Optional includeHeaders?: boolean
Optional retryTimes?: number
shouldRetry?:function
Parameters
Returns boolean
BatchErrorResponse
Batch
Error
Response
: BatchResponse<{ error
: { code
: number; message
: string; type
: string } }>BatchRequest
Batch
Request
: { body
?: JsonObject; method
: string; name
?: string; relativeUrl
: string; responseAccessPath
?: string } & BatchRequestOptionsBatchRequestOptions
BatchRequestOptions: { dependsOn?: string; name?: string }
Type declaration
Optional dependsOn?: string
Optional name?: string
BatchResponse
BatchResponse<T>: { body: T; code: number; headers?: { name: string; value: string }[] }
Type parameters
T: JsonObject = JsonObject
Type declaration
body: T
code: number
Optional headers?: { name: string; value: string }[]
QueueItem
Queue
Item
: { request
: BatchRequest; retry
?: number; reject
: any; resolve
: any }Type declaration
Optional retry?: number
reject:function
- reject(reason?: any): void
resolve:function
- resolve(value?: unknown): void