Type alias ExecuteActionFunction<InputParamsSchema, AppCredential>
ExecuteActionFunction <InputParamsSchema, AppCredential>: ((props) => Promise<any>)
Type Parameters
InputParamsSchema extends TObject
AppCredential extends AnyAppCredential
Type declaration
- (props): Promise<any>
Parameters
props: {
consumer: Consumer;
credential: AppCredential;
rawInputParams: Static<InputParamsSchema>;
resolvedInputParams: Static<InputParamsSchema>;
triggerPayload: Record<string, any>;
triggerRef: AutomationTrigger;
}consumer: Consumer
credential: AppCredential
Credential that was used to set up the action.
raw
Input : Static<InputParamsSchema>Params resolved
Input : Static<InputParamsSchema>Params trigger
Payload : Record<string, any>Contains trigger event payload for this action execution.
trigger
Ref : AutomationTrigger
Returns Promise<any>
Consumer the automation being executed belongs to.