Interface OnAutomationRunResultsCtx

interface OnAutomationRunResultsCtx {
    automation: {
        action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; };
        active: boolean;
        blueprintKey: null | string;
        consumerKey: string;
        createdAt: Date;
        customData: null | ({ [x: string]: any; });
        id: string;
        live: boolean;
        name: string;
        status: "INVALID" | "READY";
        trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; };
        updatedAt: Date;
    };
    execution: {
        endedAt: Date;
        output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; });
        startedAt: Date;
    };
    triggerEvent: {
        consumerKey: string;
        createdAt: Date;
        id: string;
        payload: any;
        source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; });
        status: "HANDLED" | "ERROR";
        trigger: { appKey: string; triggerKey: string; };
        updatedAt: Date;
    };
}

Hierarchy

  • StaticDecode<typeof tOnAutomationRunResultsCtx>
    • OnAutomationRunResultsCtx

Properties

automation: {
    action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; };
    active: boolean;
    blueprintKey: null | string;
    consumerKey: string;
    createdAt: Date;
    customData: null | ({ [x: string]: any; });
    id: string;
    live: boolean;
    name: string;
    status: "INVALID" | "READY";
    trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; };
    updatedAt: Date;
} = tAutomation

Type declaration

  • action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; }
  • active: boolean
  • blueprintKey: null | string
  • consumerKey: string
  • createdAt: Date
  • customData: null | ({ [x: string]: any; })
  • id: string
  • live: boolean
  • name: string
  • status: "INVALID" | "READY"
  • trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; }
  • updatedAt: Date
execution: {
    endedAt: Date;
    output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; });
    startedAt: Date;
} = tAutomationRunExecution

Type declaration

  • endedAt: Date
  • output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; })
  • startedAt: Date
triggerEvent: {
    consumerKey: string;
    createdAt: Date;
    id: string;
    payload: any;
    source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; });
    status: "HANDLED" | "ERROR";
    trigger: { appKey: string; triggerKey: string; };
    updatedAt: Date;
} = tTriggerEvent

Type declaration

  • consumerKey: string
  • createdAt: Date
  • id: string
  • payload: any
  • source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; })
  • status: "HANDLED" | "ERROR"
  • trigger: { appKey: string; triggerKey: string; }
  • updatedAt: Date