Interface TriggerEvent
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;
}
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
consumerKey : string = ...
createdAt
createdAt : Date = ...
id
id: string = ...
payload
payload: any = ...
source
source: {
type: "PUSH_TRIGGER";
} | {
automationId: string;
type: "WEBHOOK";
} | {
automationId: string;
type: "POLLING";
} = ...
type: "PUSH_TRIGGER";
} | {
automationId: string;
type: "WEBHOOK";
} | {
automationId: string;
type: "POLLING";
} = ...
Type declaration
type: "PUSH_TRIGGER"
Type declaration
automation
Id : stringtype: "WEBHOOK"
Type declaration
automation
Id : stringtype: "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 = ...