Type alias ExecuteActionFunction<InputParamsSchema, AppCredential>

ExecuteActionFunction<InputParamsSchema, AppCredential>: ((props) => Promise<any>)

Type Parameters

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

          Consumer the automation being executed belongs to.

        • credential: AppCredential

          Credential that was used to set up the action.

        • rawInputParams: Static<InputParamsSchema>
        • resolvedInputParams: Static<InputParamsSchema>
        • triggerPayload: Record<string, any>

          Contains trigger event payload for this action execution.

        • triggerRef: AutomationTrigger

      Returns Promise<any>