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:
Name | Type |
---|---|
field | Field |
Functions
actionToHttpRequest
▸ actionToHttpRequest(action
: Action, resolver?
: FieldValueResolverFn): Promise‹AxiosRequestConfig›
Defined in cnd/action_to_http_request.ts:10
Parameters:
Name | Type |
---|---|
action | Action |
resolver? | FieldValueResolverFn |
Returns: Promise‹AxiosRequestConfig›
failIfNotBuffer
▸ failIfNotBuffer(data
: any, headers
: any): any
Defined in cnd/action_to_http_request.ts:58
Parameters:
Name | Type |
---|---|
data | any |
headers | any |
Returns: any
jsonRequestTransformer
▸ jsonRequestTransformer(data
: any, headers
: any): any
Defined in cnd/action_to_http_request.ts:42
Parameters:
Name | Type |
---|---|
data | any |
headers | any |
Returns: any
resolveAllFieldValues
▸ resolveAllFieldValues(fields
: Field[], resolver?
: FieldValueResolverFn): Promise‹any›
Defined in cnd/action_to_http_request.ts:68
Parameters:
Name | Type |
---|---|
fields | Field[] |
resolver? | FieldValueResolverFn |
Returns: Promise‹any›