Interface OnAutomationRunResultsCtx
interface OnAutomationRunResultsCtx {
automation: {
action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; };
active: boolean;
blueprintKey: null | string;
consumerKey: string;
createdAt: Date;
customData: null | ({ [x: string]: any; });
id: string;
live: boolean;
name: string;
status: "INVALID" | "READY";
trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; };
updatedAt: Date;
};
execution: {
endedAt: Date;
output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; });
startedAt: Date;
};
triggerEvent: {
consumerKey: string;
createdAt: Date;
id: string;
payload: any;
source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; });
status: "HANDLED" | "ERROR";
trigger: { appKey: string; triggerKey: string; };
updatedAt: Date;
};
}
automation: {
action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; };
active: boolean;
blueprintKey: null | string;
consumerKey: string;
createdAt: Date;
customData: null | ({ [x: string]: any; });
id: string;
live: boolean;
name: string;
status: "INVALID" | "READY";
trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; };
updatedAt: Date;
};
execution: {
endedAt: Date;
output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; });
startedAt: Date;
};
triggerEvent: {
consumerKey: string;
createdAt: Date;
id: string;
payload: any;
source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; });
status: "HANDLED" | "ERROR";
trigger: { appKey: string; triggerKey: string; };
updatedAt: Date;
};
}
Hierarchy
- StaticDecode<typeof tOnAutomationRunResultsCtx>
- OnAutomationRunResultsCtx
Index
Properties
Properties
automation
automation: {
action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; };
active: boolean;
blueprintKey: null | string;
consumerKey: string;
createdAt: Date;
customData: null | ({ [x: string]: any; });
id: string;
live: boolean;
name: string;
status: "INVALID" | "READY";
trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; };
updatedAt: Date;
} = tAutomation
action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; };
active: boolean;
blueprintKey: null | string;
consumerKey: string;
createdAt: Date;
customData: null | ({ [x: string]: any; });
id: string;
live: boolean;
name: string;
status: "INVALID" | "READY";
trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; };
updatedAt: Date;
} = tAutomation
Type declaration
action: { appKey: string; actionKey: string; credentialKey: string; inputParams: { [x: string]: any; }; }
active: boolean
blueprint
Key : null | stringconsumer
Key : stringcreated
At : Datecustom
Data : null | ({ [x: string]: any; })id: string
live: boolean
name: string
status: "INVALID" | "READY"
trigger: { subscription?: { refreshedAt?: string | undefined; data?: { [x: string]: any; } | undefined; createdAt: string; } | undefined; appKey: string; credentialKey: string; inputParams: { [x: string]: any; }; triggerKey: string; }
updated
At : Date
execution
execution: {
endedAt: Date;
output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; });
startedAt: Date;
} = tAutomationRunExecution
endedAt: Date;
output: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; });
startedAt: Date;
} = tAutomationRunExecution
Type declaration
ended
At : Dateoutput: ({ status: "USER_ERROR"; error: any; }) | ({ status: "SERVER_ERROR"; error: any; }) | ({ data?: any; status: "SUCCESS"; })
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; });
status: "HANDLED" | "ERROR";
trigger: { appKey: string; triggerKey: string; };
updatedAt: Date;
} = tTriggerEvent
consumerKey: string;
createdAt: Date;
id: string;
payload: any;
source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; });
status: "HANDLED" | "ERROR";
trigger: { appKey: string; triggerKey: string; };
updatedAt: Date;
} = tTriggerEvent
See TriggerEvent
Type declaration
consumer
Key : stringcreated
At : Dateid: string
payload: any
source: ({ type: "PUSH_TRIGGER"; }) | ({ type: "WEBHOOK"; automationId: string; }) | ({ type: "POLLING"; automationId: string; })
status: "HANDLED" | "ERROR"
trigger: { appKey: string; triggerKey: string; }
updated
At : Date
See Automation