DataConnectorRoute

type DataConnectorRoute: (args) => Promise<object>;

Type to define an arbitrary non-action request to this server. Useful for handling webhook responses in the same
lambda that handles data actions

Parameters

ParameterType
argsobject
args.bodystring
args.headersRecord<string, string[] | string | undefined>
args.queryRecord<string, undefined | string>

Returns

Promise<object>

body?

optional body: string;

headers?

optional headers: Record<string, string | undefined>;

status

status: number;