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

Hierarchy

  • Static<typeof tTriggerEvent>
    • TriggerEvent

Properties

consumerKey: string = ...
createdAt: Date = ...
id: string = ...
payload: any = ...
source: {
    type: "PUSH_TRIGGER";
} | {
    automationId: string;
    type: "WEBHOOK";
} | {
    automationId: string;
    type: "POLLING";
} = ...

Type declaration

  • type: "PUSH_TRIGGER"

Type declaration

  • automationId: string
  • type: "WEBHOOK"

Type declaration

  • automationId: string
  • type: "POLLING"
status: "HANDLED" | "ERROR" = ...
trigger: {
    appKey: string;
    triggerKey: string;
} = ...

Type declaration

  • appKey: string
  • triggerKey: string
updatedAt: Date = ...