Version: 0.13.0

cnd/action_to_http_request

Index

Type aliases

Functions

Type aliases

FieldValueResolverFn

Ƭ FieldValueResolverFn: function

Defined in 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 cnd/action_to_http_request.ts:10

Parameters:

NameType
actionAction
resolver?FieldValueResolverFn

Returns: Promise‹AxiosRequestConfig›


failIfNotBuffer

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

Defined in cnd/action_to_http_request.ts:58

Parameters:

NameType
dataany
headersany

Returns: any


jsonRequestTransformer

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

Defined in cnd/action_to_http_request.ts:42

Parameters:

NameType
dataany
headersany

Returns: any


resolveAllFieldValues

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

Defined in cnd/action_to_http_request.ts:68

Parameters:

NameType
fieldsField[]
resolver?FieldValueResolverFn

Returns: Promise‹any›