@temporal-contract/client 2.3.1 → 3.0.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.
- package/README.md +4 -4
- package/dist/index.cjs +159 -162
- package/dist/index.d.cts +123 -97
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +123 -97
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +122 -125
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -19
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { Client, ScheduleClient, ScheduleDescription, ScheduleOptions, ScheduleO
|
|
|
2
2
|
import { ActivityFailure, ApplicationFailure, CancelledFailure, ChildWorkflowFailure, ServerFailure, TerminatedFailure, TimeoutFailure, TypedSearchAttributes } from "@temporalio/common";
|
|
3
3
|
import { ActivityDefinition, AnySchema, AnyWorkflowDefinition, ContractDefinition, QueryDefinition, SearchAttributeDefinition, SearchAttributeKindToType, SignalDefinition, SignalNamesOf, UpdateDefinition } from "@temporal-contract/contract";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
|
-
import {
|
|
5
|
+
import { AsyncResult } from "unthrown";
|
|
6
6
|
|
|
7
7
|
//#region src/types.d.ts
|
|
8
8
|
/**
|
|
@@ -35,19 +35,19 @@ type ClientInferWorkflow<TWorkflow extends AnyWorkflowDefinition> = (args: Clien
|
|
|
35
35
|
type ClientInferActivity<TActivity extends ActivityDefinition> = (args: ClientInferInput<TActivity>) => Promise<ClientInferOutput<TActivity>>;
|
|
36
36
|
/**
|
|
37
37
|
* Infer signal handler signature from client perspective
|
|
38
|
-
* Client sends z.output and returns
|
|
38
|
+
* Client sends z.output and returns AsyncResult<void, Error>
|
|
39
39
|
*/
|
|
40
|
-
type ClientInferSignal<TSignal extends SignalDefinition> = (args: ClientInferInput<TSignal>) =>
|
|
40
|
+
type ClientInferSignal<TSignal extends SignalDefinition> = (args: ClientInferInput<TSignal>) => AsyncResult<void, Error>;
|
|
41
41
|
/**
|
|
42
42
|
* Infer query handler signature from client perspective
|
|
43
|
-
* Client sends z.output and receives z.input wrapped in
|
|
43
|
+
* Client sends z.output and receives z.input wrapped in AsyncResult<T, Error>
|
|
44
44
|
*/
|
|
45
|
-
type ClientInferQuery<TQuery extends QueryDefinition> = (args: ClientInferInput<TQuery>) =>
|
|
45
|
+
type ClientInferQuery<TQuery extends QueryDefinition> = (args: ClientInferInput<TQuery>) => AsyncResult<ClientInferOutput<TQuery>, Error>;
|
|
46
46
|
/**
|
|
47
47
|
* Infer update handler signature from client perspective
|
|
48
|
-
* Client sends z.output and receives z.input wrapped in
|
|
48
|
+
* Client sends z.output and receives z.input wrapped in AsyncResult<T, Error>
|
|
49
49
|
*/
|
|
50
|
-
type ClientInferUpdate<TUpdate extends UpdateDefinition> = (args: ClientInferInput<TUpdate>) =>
|
|
50
|
+
type ClientInferUpdate<TUpdate extends UpdateDefinition> = (args: ClientInferInput<TUpdate>) => AsyncResult<ClientInferOutput<TUpdate>, Error>;
|
|
51
51
|
/**
|
|
52
52
|
* CLIENT PERSPECTIVE - Contract-level types
|
|
53
53
|
*/
|
|
@@ -93,28 +93,29 @@ type ClientInferWorkflowContextActivities<TContract extends ContractDefinition,
|
|
|
93
93
|
* directly: `import type { TemporalFailure } from "@temporal-contract/client"`.
|
|
94
94
|
*/
|
|
95
95
|
type TemporalFailure = ApplicationFailure | CancelledFailure | TerminatedFailure | TimeoutFailure | ChildWorkflowFailure | ServerFailure | ActivityFailure;
|
|
96
|
-
|
|
97
|
-
* Base class for all typed client errors.
|
|
98
|
-
*/
|
|
99
|
-
declare abstract class TypedClientError extends Error {
|
|
100
|
-
protected constructor(message: string);
|
|
101
|
-
}
|
|
96
|
+
declare const RuntimeClientError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/RuntimeClientError">;
|
|
102
97
|
/**
|
|
103
98
|
* Generic runtime failure wrapper when no specific error type applies
|
|
104
99
|
*/
|
|
105
|
-
declare class RuntimeClientError extends
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
declare class RuntimeClientError extends RuntimeClientError_base<{
|
|
101
|
+
operation: string;
|
|
102
|
+
cause?: unknown;
|
|
103
|
+
message: string;
|
|
104
|
+
}> {
|
|
105
|
+
constructor(operation: string, cause?: unknown);
|
|
109
106
|
}
|
|
107
|
+
declare const WorkflowNotFoundError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/WorkflowNotFoundError">;
|
|
110
108
|
/**
|
|
111
109
|
* Thrown when a workflow is not found in the contract
|
|
112
110
|
*/
|
|
113
|
-
declare class WorkflowNotFoundError extends
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
declare class WorkflowNotFoundError extends WorkflowNotFoundError_base<{
|
|
112
|
+
workflowName: string;
|
|
113
|
+
availableWorkflows: string[];
|
|
114
|
+
message: string;
|
|
115
|
+
}> {
|
|
116
116
|
constructor(workflowName: string, availableWorkflows: string[]);
|
|
117
117
|
}
|
|
118
|
+
declare const WorkflowAlreadyStartedError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/WorkflowAlreadyStartedError">;
|
|
118
119
|
/**
|
|
119
120
|
* Discriminated variant of {@link RuntimeClientError} surfaced when starting
|
|
120
121
|
* a workflow collides with an existing execution — Temporal's
|
|
@@ -126,12 +127,15 @@ declare class WorkflowNotFoundError extends TypedClientError {
|
|
|
126
127
|
* branch on it explicitly (e.g. fetch the existing handle and continue)
|
|
127
128
|
* without inspecting `error.cause` against a Temporal SDK class.
|
|
128
129
|
*/
|
|
129
|
-
declare class WorkflowAlreadyStartedError extends
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
declare class WorkflowAlreadyStartedError extends WorkflowAlreadyStartedError_base<{
|
|
131
|
+
workflowType: string;
|
|
132
|
+
workflowId: string;
|
|
133
|
+
cause?: unknown;
|
|
134
|
+
message: string;
|
|
135
|
+
}> {
|
|
136
|
+
constructor(workflowType: string, workflowId: string, cause?: unknown);
|
|
134
137
|
}
|
|
138
|
+
declare const WorkflowExecutionNotFoundError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/WorkflowExecutionNotFoundError">;
|
|
135
139
|
/**
|
|
136
140
|
* Discriminated variant of {@link RuntimeClientError} surfaced when an
|
|
137
141
|
* operation targets a workflow execution that doesn't exist in the
|
|
@@ -144,12 +148,15 @@ declare class WorkflowAlreadyStartedError extends TypedClientError {
|
|
|
144
148
|
* - `executeWorkflow` (when the underlying execute call hits a missing
|
|
145
149
|
* execution mid-flight)
|
|
146
150
|
*/
|
|
147
|
-
declare class WorkflowExecutionNotFoundError extends
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
declare class WorkflowExecutionNotFoundError extends WorkflowExecutionNotFoundError_base<{
|
|
152
|
+
workflowId: string;
|
|
153
|
+
runId?: string | undefined;
|
|
154
|
+
cause?: unknown;
|
|
155
|
+
message: string;
|
|
156
|
+
}> {
|
|
157
|
+
constructor(workflowId: string, runId?: string, cause?: unknown);
|
|
152
158
|
}
|
|
159
|
+
declare const WorkflowFailedError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/WorkflowFailedError">;
|
|
153
160
|
/**
|
|
154
161
|
* Discriminated variant of {@link RuntimeClientError} surfaced when waiting
|
|
155
162
|
* on a workflow's result and the workflow completes with a failure —
|
|
@@ -169,44 +176,58 @@ declare class WorkflowExecutionNotFoundError extends TypedClientError {
|
|
|
169
176
|
*
|
|
170
177
|
* Returned from `executeWorkflow` and `handle.result()`.
|
|
171
178
|
*/
|
|
172
|
-
declare class WorkflowFailedError extends
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
179
|
+
declare class WorkflowFailedError extends WorkflowFailedError_base<{
|
|
180
|
+
workflowId: string;
|
|
181
|
+
cause?: TemporalFailure | undefined;
|
|
182
|
+
message: string;
|
|
183
|
+
}> {
|
|
184
|
+
constructor(workflowId: string, cause?: TemporalFailure);
|
|
176
185
|
}
|
|
186
|
+
declare const WorkflowValidationError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/WorkflowValidationError">;
|
|
177
187
|
/**
|
|
178
188
|
* Thrown when workflow input or output validation fails
|
|
179
189
|
*/
|
|
180
|
-
declare class WorkflowValidationError extends
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
190
|
+
declare class WorkflowValidationError extends WorkflowValidationError_base<{
|
|
191
|
+
workflowName: string;
|
|
192
|
+
direction: "input" | "output";
|
|
193
|
+
issues: ReadonlyArray<StandardSchemaV1.Issue>;
|
|
194
|
+
message: string;
|
|
195
|
+
}> {
|
|
184
196
|
constructor(workflowName: string, direction: "input" | "output", issues: ReadonlyArray<StandardSchemaV1.Issue>);
|
|
185
197
|
}
|
|
198
|
+
declare const QueryValidationError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/QueryValidationError">;
|
|
186
199
|
/**
|
|
187
200
|
* Thrown when query input or output validation fails
|
|
188
201
|
*/
|
|
189
|
-
declare class QueryValidationError extends
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
202
|
+
declare class QueryValidationError extends QueryValidationError_base<{
|
|
203
|
+
queryName: string;
|
|
204
|
+
direction: "input" | "output";
|
|
205
|
+
issues: ReadonlyArray<StandardSchemaV1.Issue>;
|
|
206
|
+
message: string;
|
|
207
|
+
}> {
|
|
193
208
|
constructor(queryName: string, direction: "input" | "output", issues: ReadonlyArray<StandardSchemaV1.Issue>);
|
|
194
209
|
}
|
|
210
|
+
declare const SignalValidationError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/SignalValidationError">;
|
|
195
211
|
/**
|
|
196
212
|
* Thrown when signal input validation fails
|
|
197
213
|
*/
|
|
198
|
-
declare class SignalValidationError extends
|
|
199
|
-
|
|
200
|
-
|
|
214
|
+
declare class SignalValidationError extends SignalValidationError_base<{
|
|
215
|
+
signalName: string;
|
|
216
|
+
issues: ReadonlyArray<StandardSchemaV1.Issue>;
|
|
217
|
+
message: string;
|
|
218
|
+
}> {
|
|
201
219
|
constructor(signalName: string, issues: ReadonlyArray<StandardSchemaV1.Issue>);
|
|
202
220
|
}
|
|
221
|
+
declare const UpdateValidationError_base: import("unthrown").TaggedErrorConstructor<"@temporal-contract/UpdateValidationError">;
|
|
203
222
|
/**
|
|
204
223
|
* Thrown when update input or output validation fails
|
|
205
224
|
*/
|
|
206
|
-
declare class UpdateValidationError extends
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
225
|
+
declare class UpdateValidationError extends UpdateValidationError_base<{
|
|
226
|
+
updateName: string;
|
|
227
|
+
direction: "input" | "output";
|
|
228
|
+
issues: ReadonlyArray<StandardSchemaV1.Issue>;
|
|
229
|
+
message: string;
|
|
230
|
+
}> {
|
|
210
231
|
constructor(updateName: string, direction: "input" | "output", issues: ReadonlyArray<StandardSchemaV1.Issue>);
|
|
211
232
|
}
|
|
212
233
|
//#endregion
|
|
@@ -259,16 +280,16 @@ type TypedScheduleCreateOptions<TContract extends ContractDefinition, TWorkflowN
|
|
|
259
280
|
/**
|
|
260
281
|
* Typed handle to a schedule. Mirrors Temporal's `ScheduleHandle` lifecycle
|
|
261
282
|
* methods (`pause`, `unpause`, `trigger`, `describe`, `delete`) wrapped in
|
|
262
|
-
* the
|
|
283
|
+
* the unthrown AsyncResult pattern so call sites match the rest of the
|
|
263
284
|
* typed client.
|
|
264
285
|
*/
|
|
265
286
|
type TypedScheduleHandle = {
|
|
266
287
|
/** This schedule's identifier. */readonly scheduleId: string; /** Pause the schedule. Optional note becomes part of the audit trail. */
|
|
267
|
-
pause: (note?: string) =>
|
|
268
|
-
unpause: (note?: string) =>
|
|
269
|
-
trigger: (overlap?: ScheduleOverlapPolicy) =>
|
|
270
|
-
delete: () =>
|
|
271
|
-
describe: () =>
|
|
288
|
+
pause: (note?: string) => AsyncResult<void, RuntimeClientError>; /** Resume a paused schedule. */
|
|
289
|
+
unpause: (note?: string) => AsyncResult<void, RuntimeClientError>; /** Fire the schedule's action immediately. */
|
|
290
|
+
trigger: (overlap?: ScheduleOverlapPolicy) => AsyncResult<void, RuntimeClientError>; /** Delete the schedule. */
|
|
291
|
+
delete: () => AsyncResult<void, RuntimeClientError>; /** Fetch the schedule's current description from the server. */
|
|
292
|
+
describe: () => AsyncResult<ScheduleDescription, RuntimeClientError>;
|
|
272
293
|
};
|
|
273
294
|
/**
|
|
274
295
|
* Typed wrapper around Temporal's `ScheduleClient`. Exposed as
|
|
@@ -288,7 +309,7 @@ declare class TypedScheduleClient<TContract extends ContractDefinition> {
|
|
|
288
309
|
* `workflowType` are pulled from the contract automatically; the typed
|
|
289
310
|
* options shape omits them so call sites don't have to repeat themselves.
|
|
290
311
|
*/
|
|
291
|
-
create<TWorkflowName extends keyof TContract["workflows"] & string>(workflowName: TWorkflowName, options: TypedScheduleCreateOptions<TContract, TWorkflowName>):
|
|
312
|
+
create<TWorkflowName extends keyof TContract["workflows"] & string>(workflowName: TWorkflowName, options: TypedScheduleCreateOptions<TContract, TWorkflowName>): AsyncResult<TypedScheduleHandle, WorkflowNotFoundError | WorkflowValidationError | RuntimeClientError>;
|
|
292
313
|
/**
|
|
293
314
|
* Get a typed handle to an existing schedule. Does not validate that the
|
|
294
315
|
* schedule exists — handle methods (`describe`, `pause`, etc.) will
|
|
@@ -380,48 +401,48 @@ type TypedWorkflowHandleWithSignaledRunId<TWorkflow extends AnyWorkflowDefinitio
|
|
|
380
401
|
readonly signaledRunId: string;
|
|
381
402
|
};
|
|
382
403
|
/**
|
|
383
|
-
* Typed workflow handle with validated results using
|
|
404
|
+
* Typed workflow handle with validated results using unthrown Result/AsyncResult
|
|
384
405
|
*/
|
|
385
406
|
type TypedWorkflowHandle<TWorkflow extends AnyWorkflowDefinition> = {
|
|
386
407
|
workflowId: string;
|
|
387
408
|
/**
|
|
388
409
|
* Type-safe queries based on workflow definition with Result pattern
|
|
389
|
-
* Each query returns
|
|
410
|
+
* Each query returns AsyncResult<T, Error> instead of Promise<T>
|
|
390
411
|
*/
|
|
391
|
-
queries: { [K in keyof ClientInferWorkflowQueries<TWorkflow>]: ClientInferWorkflowQueries<TWorkflow>[K] extends ((...args: infer Args) =>
|
|
412
|
+
queries: { [K in keyof ClientInferWorkflowQueries<TWorkflow>]: ClientInferWorkflowQueries<TWorkflow>[K] extends ((...args: infer Args) => AsyncResult<infer R, Error>) ? (...args: Args) => AsyncResult<R, QueryValidationError | WorkflowExecutionNotFoundError | RuntimeClientError> : never };
|
|
392
413
|
/**
|
|
393
414
|
* Type-safe signals based on workflow definition with Result pattern
|
|
394
|
-
* Each signal returns
|
|
415
|
+
* Each signal returns AsyncResult<void, Error> instead of Promise<void>
|
|
395
416
|
*/
|
|
396
|
-
signals: { [K in keyof ClientInferWorkflowSignals<TWorkflow>]: ClientInferWorkflowSignals<TWorkflow>[K] extends ((...args: infer Args) =>
|
|
417
|
+
signals: { [K in keyof ClientInferWorkflowSignals<TWorkflow>]: ClientInferWorkflowSignals<TWorkflow>[K] extends ((...args: infer Args) => AsyncResult<void, Error>) ? (...args: Args) => AsyncResult<void, SignalValidationError | WorkflowExecutionNotFoundError | RuntimeClientError> : never };
|
|
397
418
|
/**
|
|
398
419
|
* Type-safe updates based on workflow definition with Result pattern
|
|
399
|
-
* Each update returns
|
|
420
|
+
* Each update returns AsyncResult<T, Error> instead of Promise<T>
|
|
400
421
|
*/
|
|
401
|
-
updates: { [K in keyof ClientInferWorkflowUpdates<TWorkflow>]: ClientInferWorkflowUpdates<TWorkflow>[K] extends ((...args: infer Args) =>
|
|
422
|
+
updates: { [K in keyof ClientInferWorkflowUpdates<TWorkflow>]: ClientInferWorkflowUpdates<TWorkflow>[K] extends ((...args: infer Args) => AsyncResult<infer R, Error>) ? (...args: Args) => AsyncResult<R, UpdateValidationError | WorkflowExecutionNotFoundError | RuntimeClientError> : never };
|
|
402
423
|
/**
|
|
403
424
|
* Get workflow result with Result pattern
|
|
404
425
|
*/
|
|
405
|
-
result: () =>
|
|
426
|
+
result: () => AsyncResult<ClientInferOutput<TWorkflow>, WorkflowValidationError | WorkflowFailedError | WorkflowExecutionNotFoundError | RuntimeClientError>;
|
|
406
427
|
/**
|
|
407
428
|
* Terminate workflow with Result pattern
|
|
408
429
|
*/
|
|
409
|
-
terminate: (reason?: string) =>
|
|
430
|
+
terminate: (reason?: string) => AsyncResult<void, WorkflowExecutionNotFoundError | RuntimeClientError>;
|
|
410
431
|
/**
|
|
411
432
|
* Cancel workflow with Result pattern
|
|
412
433
|
*/
|
|
413
|
-
cancel: () =>
|
|
434
|
+
cancel: () => AsyncResult<void, WorkflowExecutionNotFoundError | RuntimeClientError>;
|
|
414
435
|
/**
|
|
415
436
|
* Get workflow execution description including status and metadata
|
|
416
437
|
*/
|
|
417
|
-
describe: () =>
|
|
438
|
+
describe: () => AsyncResult<Awaited<ReturnType<WorkflowHandle["describe"]>>, WorkflowExecutionNotFoundError | RuntimeClientError>;
|
|
418
439
|
/**
|
|
419
440
|
* Fetch the workflow execution history
|
|
420
441
|
*/
|
|
421
|
-
fetchHistory: () =>
|
|
442
|
+
fetchHistory: () => AsyncResult<Awaited<ReturnType<WorkflowHandle["fetchHistory"]>>, WorkflowExecutionNotFoundError | RuntimeClientError>;
|
|
422
443
|
};
|
|
423
444
|
/**
|
|
424
|
-
* Typed Temporal client with
|
|
445
|
+
* Typed Temporal client with unthrown Result/AsyncResult pattern based on a contract
|
|
425
446
|
*
|
|
426
447
|
* Provides type-safe methods to start and execute workflows
|
|
427
448
|
* defined in the contract, with explicit error handling using Result pattern.
|
|
@@ -449,16 +470,17 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
449
470
|
* args: { orderId: "sweep" },
|
|
450
471
|
* });
|
|
451
472
|
*
|
|
452
|
-
* result.match(
|
|
453
|
-
* async (handle) => { await handle.pause("maintenance"); },
|
|
454
|
-
* (error) => console.error("schedule create failed", error),
|
|
455
|
-
* )
|
|
473
|
+
* await result.match({
|
|
474
|
+
* ok: async (handle) => { await handle.pause("maintenance"); },
|
|
475
|
+
* err: (error) => console.error("schedule create failed", error),
|
|
476
|
+
* defect: (cause) => console.error("unexpected failure", cause),
|
|
477
|
+
* });
|
|
456
478
|
* ```
|
|
457
479
|
*/
|
|
458
480
|
readonly schedule: TypedScheduleClient<TContract>;
|
|
459
481
|
private constructor();
|
|
460
482
|
/**
|
|
461
|
-
* Create a typed Temporal client with
|
|
483
|
+
* Create a typed Temporal client with unthrown pattern from a contract
|
|
462
484
|
*
|
|
463
485
|
* @example
|
|
464
486
|
* ```ts
|
|
@@ -471,15 +493,16 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
471
493
|
* args: { ... },
|
|
472
494
|
* });
|
|
473
495
|
*
|
|
474
|
-
* result.match(
|
|
475
|
-
* (output) => console.log('Success:', output),
|
|
476
|
-
* (error) => console.error('Failed:', error),
|
|
477
|
-
* )
|
|
496
|
+
* await result.match({
|
|
497
|
+
* ok: (output) => console.log('Success:', output),
|
|
498
|
+
* err: (error) => console.error('Failed:', error),
|
|
499
|
+
* defect: (cause) => console.error('Unexpected failure:', cause),
|
|
500
|
+
* });
|
|
478
501
|
* ```
|
|
479
502
|
*/
|
|
480
503
|
static create<TContract extends ContractDefinition>(contract: TContract, client: Client): TypedClient<TContract>;
|
|
481
504
|
/**
|
|
482
|
-
* Start a workflow and return a typed handle with
|
|
505
|
+
* Start a workflow and return a typed handle with AsyncResult pattern
|
|
483
506
|
*
|
|
484
507
|
* @example
|
|
485
508
|
* ```ts
|
|
@@ -490,20 +513,21 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
490
513
|
* retry: { maximumAttempts: 3 },
|
|
491
514
|
* });
|
|
492
515
|
*
|
|
493
|
-
* handleResult.match(
|
|
494
|
-
* async (handle) => {
|
|
516
|
+
* await handleResult.match({
|
|
517
|
+
* ok: async (handle) => {
|
|
495
518
|
* const result = await handle.result();
|
|
496
519
|
* // ... handle result
|
|
497
520
|
* },
|
|
498
|
-
* (error) => console.error('Failed to start:', error),
|
|
499
|
-
* )
|
|
521
|
+
* err: (error) => console.error('Failed to start:', error),
|
|
522
|
+
* defect: (cause) => console.error('Unexpected failure:', cause),
|
|
523
|
+
* });
|
|
500
524
|
* ```
|
|
501
525
|
*/
|
|
502
526
|
startWorkflow<TWorkflowName extends keyof TContract["workflows"] & string>(workflowName: TWorkflowName, {
|
|
503
527
|
args,
|
|
504
528
|
searchAttributes,
|
|
505
529
|
...temporalOptions
|
|
506
|
-
}: TypedWorkflowStartOptions<TContract, TWorkflowName>):
|
|
530
|
+
}: TypedWorkflowStartOptions<TContract, TWorkflowName>): AsyncResult<TypedWorkflowHandle<TContract["workflows"][TWorkflowName]>, WorkflowNotFoundError | WorkflowValidationError | WorkflowAlreadyStartedError | RuntimeClientError>;
|
|
507
531
|
/**
|
|
508
532
|
* Send a signal to a workflow, starting it first if it doesn't already exist.
|
|
509
533
|
*
|
|
@@ -524,10 +548,11 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
524
548
|
* signalArgs: { reason: 'duplicate' },
|
|
525
549
|
* });
|
|
526
550
|
*
|
|
527
|
-
* result.match(
|
|
528
|
-
* (handle) => console.log('signaled run', handle.signaledRunId),
|
|
529
|
-
* (error) => console.error('signalWithStart failed', error),
|
|
530
|
-
* )
|
|
551
|
+
* await result.match({
|
|
552
|
+
* ok: (handle) => console.log('signaled run', handle.signaledRunId),
|
|
553
|
+
* err: (error) => console.error('signalWithStart failed', error),
|
|
554
|
+
* defect: (cause) => console.error('unexpected failure', cause),
|
|
555
|
+
* });
|
|
531
556
|
* ```
|
|
532
557
|
*/
|
|
533
558
|
signalWithStart<TWorkflowName extends keyof TContract["workflows"] & string, TSignalName extends SignalNamesOf<TContract["workflows"][TWorkflowName]>>(workflowName: TWorkflowName, {
|
|
@@ -536,9 +561,9 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
536
561
|
signalArgs,
|
|
537
562
|
searchAttributes,
|
|
538
563
|
...temporalOptions
|
|
539
|
-
}: TypedSignalWithStartOptions<TContract, TWorkflowName, TSignalName>):
|
|
564
|
+
}: TypedSignalWithStartOptions<TContract, TWorkflowName, TSignalName>): AsyncResult<TypedWorkflowHandleWithSignaledRunId<TContract["workflows"][TWorkflowName]>, WorkflowNotFoundError | WorkflowValidationError | SignalValidationError | WorkflowAlreadyStartedError | RuntimeClientError>;
|
|
540
565
|
/**
|
|
541
|
-
* Execute a workflow (start and wait for result) with
|
|
566
|
+
* Execute a workflow (start and wait for result) with AsyncResult pattern
|
|
542
567
|
*
|
|
543
568
|
* @example
|
|
544
569
|
* ```ts
|
|
@@ -549,19 +574,20 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
549
574
|
* retry: { maximumAttempts: 3 },
|
|
550
575
|
* });
|
|
551
576
|
*
|
|
552
|
-
* result.match(
|
|
553
|
-
* (output) => console.log('Order processed:', output.status),
|
|
554
|
-
* (error) => console.error('Processing failed:', error),
|
|
555
|
-
* )
|
|
577
|
+
* await result.match({
|
|
578
|
+
* ok: (output) => console.log('Order processed:', output.status),
|
|
579
|
+
* err: (error) => console.error('Processing failed:', error),
|
|
580
|
+
* defect: (cause) => console.error('Unexpected failure:', cause),
|
|
581
|
+
* });
|
|
556
582
|
* ```
|
|
557
583
|
*/
|
|
558
584
|
executeWorkflow<TWorkflowName extends keyof TContract["workflows"] & string>(workflowName: TWorkflowName, {
|
|
559
585
|
args,
|
|
560
586
|
searchAttributes,
|
|
561
587
|
...temporalOptions
|
|
562
|
-
}: TypedWorkflowStartOptions<TContract, TWorkflowName>):
|
|
588
|
+
}: TypedWorkflowStartOptions<TContract, TWorkflowName>): AsyncResult<ClientInferOutput<TContract["workflows"][TWorkflowName]>, WorkflowNotFoundError | WorkflowValidationError | WorkflowAlreadyStartedError | WorkflowFailedError | WorkflowExecutionNotFoundError | RuntimeClientError>;
|
|
563
589
|
/**
|
|
564
|
-
* Get a handle to an existing workflow with
|
|
590
|
+
* Get a handle to an existing workflow with AsyncResult pattern
|
|
565
591
|
*
|
|
566
592
|
* @example
|
|
567
593
|
* ```ts
|
|
@@ -575,7 +601,7 @@ declare class TypedClient<TContract extends ContractDefinition> {
|
|
|
575
601
|
* );
|
|
576
602
|
* ```
|
|
577
603
|
*/
|
|
578
|
-
getHandle<TWorkflowName extends keyof TContract["workflows"] & string>(workflowName: TWorkflowName, workflowId: string):
|
|
604
|
+
getHandle<TWorkflowName extends keyof TContract["workflows"] & string>(workflowName: TWorkflowName, workflowId: string): AsyncResult<TypedWorkflowHandle<TContract["workflows"][TWorkflowName]>, WorkflowNotFoundError | RuntimeClientError>;
|
|
579
605
|
private createTypedHandle;
|
|
580
606
|
}
|
|
581
607
|
//#endregion
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/errors.ts","../src/schedule.ts","../src/client.ts"],"mappings":";;;;;;;;;;;KAgBY,gBAAA;EAA6B,KAAA,EAAO,SAAA;AAAA,KAAe,gBAAA,CAAiB,UAAA,CAC9E,CAAA;;;;;KAOU,iBAAA;EAA8B,MAAA,EAAQ,SAAA;AAAA,KAAe,gBAAA,CAAiB,WAAA,CAChF,CAAA;;;;;;AARC;AAOH;;KAaY,mBAAA,mBAAsC,qBAAA,KAChD,IAAA,EAAM,gBAAA,CAAiB,SAAA,MACpB,OAAA,CAAQ,iBAAA,CAAkB,SAAA;;;;;KAMnB,mBAAA,mBAAsC,kBAAA,KAChD,IAAA,EAAM,gBAAA,CAAiB,SAAA,MACpB,OAAA,CAAQ,iBAAA,CAAkB,SAAA;;;;;KAMnB,iBAAA,iBAAkC,gBAAA,KAC5C,IAAA,EAAM,gBAAA,CAAiB,OAAA,MACpB,WAAA,OAAkB,KAAA;;;AA9BpB;AAYH;KAwBY,gBAAA,gBAAgC,eAAA,KAC1C,IAAA,EAAM,gBAAA,CAAiB,MAAA,MACpB,WAAA,CAAY,iBAAA,CAAkB,MAAA,GAAS,KAAA;;;;;KAMhC,iBAAA,iBAAkC,gBAAA,KAC5C,IAAA,EAAM,gBAAA,CAAiB,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