Version: 0.15.2

cnd/action_to_http_request

Index

Type aliases

Functions

Type aliases

FieldValueResolverFn

Ƭ FieldValueResolverFn: function

Defined in src/cnd/action_to_http_request.ts:6

Type declaration:

▸ (field: Field): Promise‹string | undefined›

Parameters:

NameType
fieldField

Functions

actionToHttpRequest

actionToHttpRequest(action: Action, resolver?: FieldValueResolverFn): Promise‹AxiosRequestConfig›

Defined in src/cnd/action_to_http_request.ts:10

Parameters:

NameType
actionAction
resolver?FieldValueResolverFn

Returns: Promise‹AxiosRequestConfig›


failIfNotBuffer

failIfNotBuffer(data: any, headers: any): any

Defined in src/cnd/action_to_http_request.ts:58

Parameters:

NameType
dataany
headersany

Returns: any


jsonRequestTransformer

jsonRequestTransformer(data: any, headers: any): any

Defined in src/cnd/action_to_http_request.ts:42

Parameters:

NameType
dataany
headersany

Returns: any


resolveAllFieldValues

resolveAllFieldValues(fields: Field[], resolver?: FieldValueResolverFn): Promise‹any›

Defined in src/cnd/action_to_http_request.ts:68

Parameters:

NameType
fieldsField[]
resolver?FieldValueResolverFn

Returns: Promise‹any›