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;
};
}
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
Index
Properties
Properties
automation
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
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
blueprint
Key : null | stringconsumer
Key : stringcreated
At : Datecustom
Data : 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; }
updated
At : Date
execution
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
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
ended
At : Dateoutput: (({ 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; }))
started
At : Date
triggerEvent
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
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
See TriggerEvent
Type declaration
consumer
Key : stringcreated
At : Dateid: string
Optional
payload?: anysource: (({ 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; }
updated
At : Date
See Automation