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

Hierarchy

  • TypeOf<typeof zTriggerEvent>
    • TriggerEvent

Properties

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

Type declaration

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