@aikirun/types 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,6 +27,7 @@ interface WorkflowRunApi {
|
|
|
27
27
|
cancelByIdsV1: (_: WorkflowRunCancelByIdsRequestV1) => Promise<WorkflowRunCancelByIdsResponseV1>;
|
|
28
28
|
claimReadyV1: (_: WorkflowRunClaimReadyRequestV1) => Promise<WorkflowRunClaimReadyResponseV1>;
|
|
29
29
|
heartbeatV1: (_: WorkflowRunHeartbeatRequestV1) => Promise<void>;
|
|
30
|
+
hasTerminatedV1: (_: WorkflowRunHasTerminatedRequestV1) => Promise<WorkflowRunHasTerminatedResponseV1>;
|
|
30
31
|
}
|
|
31
32
|
interface WorkflowRunListRequestV1 {
|
|
32
33
|
limit?: number;
|
|
@@ -230,5 +231,12 @@ interface WorkflowRunClaimReadyResponseV1 {
|
|
|
230
231
|
interface WorkflowRunHeartbeatRequestV1 {
|
|
231
232
|
id: string;
|
|
232
233
|
}
|
|
234
|
+
interface WorkflowRunHasTerminatedRequestV1 {
|
|
235
|
+
id: string;
|
|
236
|
+
afterStateTransitionId: string;
|
|
237
|
+
}
|
|
238
|
+
interface WorkflowRunHasTerminatedResponseV1 {
|
|
239
|
+
terminated: boolean;
|
|
240
|
+
}
|
|
233
241
|
|
|
234
|
-
export type { TransitionTaskStateToRunning, WorkflowFilter, WorkflowRunApi, WorkflowRunCancelByIdsRequestV1, WorkflowRunCancelByIdsResponseV1, WorkflowRunClaimReadyRequestV1, WorkflowRunClaimReadyResponseV1, WorkflowRunCreateRequestV1, WorkflowRunCreateResponseV1, WorkflowRunGetByIdRequestV1, WorkflowRunGetByIdResponseV1, WorkflowRunGetByReferenceIdRequestV1, WorkflowRunGetByReferenceIdResponseV1, WorkflowRunGetStateRequestV1, WorkflowRunGetStateResponseV1, WorkflowRunHeartbeatRequestV1, WorkflowRunListChildRunsRequestV1, WorkflowRunListChildRunsResponseV1, WorkflowRunListItem, WorkflowRunListRequestV1, WorkflowRunListResponseV1, WorkflowRunListTransitionsRequestV1, WorkflowRunListTransitionsResponseV1, WorkflowRunMulticastEventByReferenceRequestV1, WorkflowRunMulticastEventRequestV1, WorkflowRunReference, WorkflowRunSendEventRequestV1, WorkflowRunSetTaskStateRequestExisting, WorkflowRunSetTaskStateRequestNew, WorkflowRunSetTaskStateRequestV1, WorkflowRunStateAwaitingChildWorkflowRequest, WorkflowRunStateAwaitingEventRequest, WorkflowRunStateAwaitingRetryRequest, WorkflowRunStateCompletedRequest, WorkflowRunStateRequest, WorkflowRunStateScheduledRequest, WorkflowRunStateScheduledRequestOptimistic, WorkflowRunStateScheduledRequestPessimistic, WorkflowRunStateSleepingRequest, WorkflowRunTransitionStateRequestOptimistic, WorkflowRunTransitionStateRequestPessimistic, WorkflowRunTransitionStateRequestV1, WorkflowRunTransitionStateResponseV1, WorkflowRunTransitionTaskStateRequestV1, WorkflowRunTransitionTaskStateResponseV1 };
|
|
242
|
+
export type { TransitionTaskStateToRunning, WorkflowFilter, WorkflowRunApi, WorkflowRunCancelByIdsRequestV1, WorkflowRunCancelByIdsResponseV1, WorkflowRunClaimReadyRequestV1, WorkflowRunClaimReadyResponseV1, WorkflowRunCreateRequestV1, WorkflowRunCreateResponseV1, WorkflowRunGetByIdRequestV1, WorkflowRunGetByIdResponseV1, WorkflowRunGetByReferenceIdRequestV1, WorkflowRunGetByReferenceIdResponseV1, WorkflowRunGetStateRequestV1, WorkflowRunGetStateResponseV1, WorkflowRunHasTerminatedRequestV1, WorkflowRunHasTerminatedResponseV1, WorkflowRunHeartbeatRequestV1, WorkflowRunListChildRunsRequestV1, WorkflowRunListChildRunsResponseV1, WorkflowRunListItem, WorkflowRunListRequestV1, WorkflowRunListResponseV1, WorkflowRunListTransitionsRequestV1, WorkflowRunListTransitionsResponseV1, WorkflowRunMulticastEventByReferenceRequestV1, WorkflowRunMulticastEventRequestV1, WorkflowRunReference, WorkflowRunSendEventRequestV1, WorkflowRunSetTaskStateRequestExisting, WorkflowRunSetTaskStateRequestNew, WorkflowRunSetTaskStateRequestV1, WorkflowRunStateAwaitingChildWorkflowRequest, WorkflowRunStateAwaitingEventRequest, WorkflowRunStateAwaitingRetryRequest, WorkflowRunStateCompletedRequest, WorkflowRunStateRequest, WorkflowRunStateScheduledRequest, WorkflowRunStateScheduledRequestOptimistic, WorkflowRunStateScheduledRequestPessimistic, WorkflowRunStateSleepingRequest, WorkflowRunTransitionStateRequestOptimistic, WorkflowRunTransitionStateRequestPessimistic, WorkflowRunTransitionStateRequestV1, WorkflowRunTransitionStateResponseV1, WorkflowRunTransitionTaskStateRequestV1, WorkflowRunTransitionTaskStateResponseV1 };
|
package/dist/workflow-run.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ interface WorkflowRun<Input = unknown, Output = unknown> {
|
|
|
151
151
|
versionId: string;
|
|
152
152
|
createdAt: number;
|
|
153
153
|
revision: number;
|
|
154
|
+
stateTransitionId: string;
|
|
154
155
|
input?: Input;
|
|
155
156
|
inputHash: string;
|
|
156
157
|
options?: WorkflowStartOptions;
|
|
@@ -161,6 +162,7 @@ interface WorkflowRun<Input = unknown, Output = unknown> {
|
|
|
161
162
|
eventWaitQueues: Record<string, EventWaitQueue<unknown>>;
|
|
162
163
|
childWorkflowRunQueues: Record<string, ChildWorkflowRunQueue>;
|
|
163
164
|
parentWorkflowRunId?: string;
|
|
165
|
+
scheduleId?: string;
|
|
164
166
|
}
|
|
165
167
|
interface ChildWorkflowRunQueue {
|
|
166
168
|
childWorkflowRuns: ChildWorkflowRunInfo[];
|