Interface OnAutomationRunResultsCtx

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

Hierarchy

  • TypeOf<typeof zOnAutomationRunResultsCtx>
    • OnAutomationRunResultsCtx

Properties

automation: {
    action: { credentialKey: string; appKey: string; actionKey: string; inputParams: Record<string, any>; };
    active: boolean;
    blueprintKey: null | string;
    consumerKey: string;
    createdAt: Date;
    customData: null | Record<string, any>;
    id: string;
    live: boolean;
    name: string;
    status: "INVALID" | "READY";
    trigger: { credentialKey: string; appKey: string; inputParams: Record<string, any>; triggerKey: string; subscription?: { createdAt: string; refreshedAt?: string | undefined; data?: Record<string, any> | undefined; } | undefined; };
    updatedAt: Date;
} = zAutomation

Type declaration

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

Type declaration

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

Type declaration

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