Interface TriggerEvent
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;
}
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
consumerKey : string = ...
createdAt
createdAt : Date = ...
id
id: string = ...
Optional
payload
payload?: any = ...
source
source: ({
type: "PUSH_TRIGGER";
} | {
automationId: string;
type: "WEBHOOK";
} | {
automationId: string;
type: "POLLING";
}) & (undefined | {
type: "PUSH_TRIGGER";
} | {
automationId: string;
type: "WEBHOOK";
} | {
automationId: string;
type: "POLLING";
}) = ...
type: "PUSH_TRIGGER";
} | {
automationId: string;
type: "WEBHOOK";
} | {
automationId: string;
type: "POLLING";
}) & (undefined | {
type: "PUSH_TRIGGER";
} | {
automationId: string;
type: "WEBHOOK";
} | {
automationId: string;
type: "POLLING";
}) = ...
status
status: "HANDLED" | "ERROR" = ...
trigger
trigger: {
appKey: string;
triggerKey: string;
} = ...
appKey: string;
triggerKey: string;
} = ...
Type declaration
app
Key : stringtrigger
Key : string
updatedAt
updatedAt : Date = ...