@temporalio/client 0.13.0 → 0.16.3

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/lib/errors.d.ts CHANGED
@@ -1,43 +1,26 @@
1
- import { temporal } from '@temporalio/proto';
1
+ import { RetryState, TemporalFailure } from '@temporalio/common';
2
2
  /**
3
- * Thrown by client when waiting on Workflow execution result if Workflow is terminated
4
- */
5
- export declare class WorkflowExecutionTerminatedError extends Error {
6
- readonly details: any[];
7
- readonly identity?: string | undefined;
8
- readonly name: string;
9
- constructor(message: string, details: any[], identity?: string | undefined);
10
- }
11
- /**
12
- * Thrown by client when waiting on Workflow execution result if execution times out
13
- */
14
- export declare class WorkflowExecutionTimedOutError extends Error {
15
- readonly retryState: temporal.api.enums.v1.RetryState;
16
- readonly name: string;
17
- constructor(message: string, retryState: temporal.api.enums.v1.RetryState);
18
- }
19
- /**
20
- * Thrown by client when waiting on Workflow execution result if execution fails
21
- */
22
- export declare class WorkflowExecutionFailedError extends Error {
23
- readonly cause: Error | undefined;
24
- readonly name: string;
25
- constructor(message: string, cause: Error | undefined);
26
- }
27
- /**
28
- * Thrown by client when waiting on Workflow execution result if Workflow is cancelled
3
+ * Thrown by the client while waiting on Workflow execution result if execution
4
+ * completes with failure.
5
+ *
6
+ * The failure type will be set in the `cause` attribute.
7
+ *
8
+ * For example if the workflow is cancelled, `cause` will be set to
9
+ * {@link CancelledFailure}.
29
10
  */
30
- export declare class WorkflowExecutionCancelledError extends Error {
31
- readonly details: any[];
11
+ export declare class WorkflowFailedError extends Error {
12
+ readonly cause: TemporalFailure | undefined;
13
+ readonly retryState: RetryState;
32
14
  readonly name: string;
33
- constructor(message: string, details: any[]);
15
+ constructor(message: string, cause: TemporalFailure | undefined, retryState: RetryState);
34
16
  }
35
17
  /**
36
- * Thrown by client when waiting on Workflow execution result if Workflow continues as new.
18
+ * Thrown the by client while waiting on Workflow execution result if Workflow
19
+ * continues as new.
37
20
  *
38
21
  * Only thrown if asked not to follow the chain of execution (see {@link WorkflowOptions.followRuns}).
39
22
  */
40
- export declare class WorkflowExecutionContinuedAsNewError extends Error {
23
+ export declare class WorkflowContinuedAsNewError extends Error {
41
24
  readonly newExecutionRunId: string;
42
25
  readonly name: string;
43
26
  constructor(message: string, newExecutionRunId: string);
package/lib/errors.js CHANGED
@@ -1,62 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowExecutionContinuedAsNewError = exports.WorkflowExecutionCancelledError = exports.WorkflowExecutionFailedError = exports.WorkflowExecutionTimedOutError = exports.WorkflowExecutionTerminatedError = void 0;
3
+ exports.WorkflowContinuedAsNewError = exports.WorkflowFailedError = void 0;
4
4
  /**
5
- * Thrown by client when waiting on Workflow execution result if Workflow is terminated
6
- */
7
- class WorkflowExecutionTerminatedError extends Error {
8
- constructor(message, details, identity) {
9
- super(message);
10
- this.details = details;
11
- this.identity = identity;
12
- this.name = 'WorkflowExecutionTerminatedError';
13
- }
14
- }
15
- exports.WorkflowExecutionTerminatedError = WorkflowExecutionTerminatedError;
16
- /**
17
- * Thrown by client when waiting on Workflow execution result if execution times out
18
- */
19
- class WorkflowExecutionTimedOutError extends Error {
20
- constructor(message, retryState) {
21
- super(message);
22
- this.retryState = retryState;
23
- this.name = 'WorkflowExecutionTimedOutError';
24
- }
25
- }
26
- exports.WorkflowExecutionTimedOutError = WorkflowExecutionTimedOutError;
27
- /**
28
- * Thrown by client when waiting on Workflow execution result if execution fails
5
+ * Thrown by the client while waiting on Workflow execution result if execution
6
+ * completes with failure.
7
+ *
8
+ * The failure type will be set in the `cause` attribute.
9
+ *
10
+ * For example if the workflow is cancelled, `cause` will be set to
11
+ * {@link CancelledFailure}.
29
12
  */
30
- class WorkflowExecutionFailedError extends Error {
31
- constructor(message, cause) {
13
+ class WorkflowFailedError extends Error {
14
+ constructor(message, cause, retryState) {
32
15
  super(message);
33
16
  this.cause = cause;
17
+ this.retryState = retryState;
34
18
  this.name = 'WorkflowExecutionFailedError';
35
19
  }
36
20
  }
37
- exports.WorkflowExecutionFailedError = WorkflowExecutionFailedError;
38
- /**
39
- * Thrown by client when waiting on Workflow execution result if Workflow is cancelled
40
- */
41
- class WorkflowExecutionCancelledError extends Error {
42
- constructor(message, details) {
43
- super(message);
44
- this.details = details;
45
- this.name = 'WorkflowExecutionCancelledError';
46
- }
47
- }
48
- exports.WorkflowExecutionCancelledError = WorkflowExecutionCancelledError;
21
+ exports.WorkflowFailedError = WorkflowFailedError;
49
22
  /**
50
- * Thrown by client when waiting on Workflow execution result if Workflow continues as new.
23
+ * Thrown the by client while waiting on Workflow execution result if Workflow
24
+ * continues as new.
51
25
  *
52
26
  * Only thrown if asked not to follow the chain of execution (see {@link WorkflowOptions.followRuns}).
53
27
  */
54
- class WorkflowExecutionContinuedAsNewError extends Error {
28
+ class WorkflowContinuedAsNewError extends Error {
55
29
  constructor(message, newExecutionRunId) {
56
30
  super(message);
57
31
  this.newExecutionRunId = newExecutionRunId;
58
32
  this.name = 'WorkflowExecutionContinuedAsNewError';
59
33
  }
60
34
  }
61
- exports.WorkflowExecutionContinuedAsNewError = WorkflowExecutionContinuedAsNewError;
35
+ exports.WorkflowContinuedAsNewError = WorkflowContinuedAsNewError;
62
36
  //# sourceMappingURL=errors.js.map
package/lib/errors.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,gCAAiC,SAAQ,KAAK;IAEzD,YAAmB,OAAe,EAAkB,OAAc,EAAkB,QAAiB;QACnG,KAAK,CAAC,OAAO,CAAC,CAAC;QADmC,YAAO,GAAP,OAAO,CAAO;QAAkB,aAAQ,GAAR,QAAQ,CAAS;QADrF,SAAI,GAAW,kCAAkC,CAAC;IAGlE,CAAC;CACF;AALD,4EAKC;AAED;;GAEG;AACH,MAAa,8BAA+B,SAAQ,KAAK;IAEvD,YAAmB,OAAe,EA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C,sBAAiB,GAAjB,iBAAiB,CAAQ;QAD7D,SAAI,GAAW,sCAAsC,CAAC;IAGtE,CAAC;CACF;AALD,kEAKC"}
@@ -1,6 +1,6 @@
1
1
  import { temporal } from '@temporalio/proto';
2
2
  import { WorkflowClientInterceptors } from './interceptors';
3
- import { DataConverter, Workflow, BaseWorkflowHandle, QueryDefinition, WorkflowResultType, WithWorkflowArgs, WorkflowReturnType } from '@temporalio/common';
3
+ import { DataConverter, Workflow, BaseWorkflowHandle, QueryDefinition, WorkflowResultType, WithWorkflowArgs } from '@temporalio/common';
4
4
  import { WorkflowOptions, WorkflowSignalWithStartOptions } from './workflow-options';
5
5
  import { WorkflowCancelInput, WorkflowClientCallsInterceptor, WorkflowQueryInput, WorkflowSignalInput, WorkflowSignalWithStartInput, WorkflowStartInput, WorkflowTerminateInput } from './interceptors';
6
6
  import { DescribeWorkflowExecutionResponse, TerminateWorkflowExecutionResponse, RequestCancelWorkflowExecutionResponse } from './types';
@@ -100,13 +100,6 @@ export interface WorkflowClientOptions {
100
100
  * @default QUERY_REJECT_CONDITION_UNSPECIFIED which means that closed and failed workflows are still queryable
101
101
  */
102
102
  queryRejectCondition?: temporal.api.enums.v1.QueryRejectCondition;
103
- /**
104
- * Apply default options for starting new Workflows.
105
- *
106
- * These defaults are **shallowly** merged with options provided to methods that start Workflows
107
- * e.g. {@link WorkflowClient.start}.
108
- */
109
- workflowDefaults?: Partial<WorkflowOptions>;
110
103
  }
111
104
  export declare type WorkflowClientOptionsWithDefaults = Required<WorkflowClientOptions>;
112
105
  export declare function defaultWorkflowClientOptions(): WorkflowClientOptionsWithDefaults;
@@ -127,7 +120,7 @@ export interface WorkflowResultOptions {
127
120
  /**
128
121
  * Options for starting a Workflow
129
122
  */
130
- export declare type WorkflowStartOptions<T extends Workflow> = WithWorkflowArgs<T, Partial<WorkflowOptions>>;
123
+ export declare type WorkflowStartOptions<T extends Workflow> = WithWorkflowArgs<T, WorkflowOptions>;
131
124
  /**
132
125
  * Client for starting Workflow executions and creating Workflow handles
133
126
  */
@@ -140,7 +133,7 @@ export declare class WorkflowClient {
140
133
  *
141
134
  * @returns the execution's `runId`.
142
135
  */
143
- protected _start<T extends Workflow>(workflowTypeOrFunc: string | T, options: WithWorkflowArgs<T, Partial<WorkflowOptions>>, interceptors: WorkflowClientCallsInterceptor[]): Promise<string>;
136
+ protected _start<T extends Workflow>(workflowTypeOrFunc: string | T, options: WithWorkflowArgs<T, WorkflowOptions>, interceptors: WorkflowClientCallsInterceptor[]): Promise<string>;
144
137
  /**
145
138
  * Sends a signal to a running Workflow or starts a new one if not already running and immediately signals it.
146
139
  * Useful when you're unsure of the Workflows' run state.
@@ -148,14 +141,6 @@ export declare class WorkflowClient {
148
141
  * @returns the runId of the Workflow
149
142
  */
150
143
  protected _signalWithStart<T extends Workflow, SA extends any[]>(workflowTypeOrFunc: string | T, options: WithWorkflowArgs<T, WorkflowSignalWithStartOptions<SA>>, interceptors: WorkflowClientCallsInterceptor[]): Promise<string>;
151
- /**
152
- * Start a new Workflow execution.
153
- *
154
- * **Override for Workflows that accept no arguments**.
155
- *
156
- * @returns a WorkflowHandle to the started Workflow
157
- */
158
- start<T extends () => WorkflowReturnType>(workflowTypeOrFunc: string | T): Promise<WorkflowHandleWithRunId<T>>;
159
144
  /**
160
145
  * Start a new Workflow execution.
161
146
  *
@@ -175,14 +160,6 @@ export declare class WorkflowClient {
175
160
  * @returns the result of the Workflow execution
176
161
  */
177
162
  execute<T extends Workflow>(workflowTypeOrFunc: string | T, options: WorkflowStartOptions<T>): Promise<WorkflowResultType<T>>;
178
- /**
179
- * Starts a new Workflow execution and awaits its completion.
180
- *
181
- * **Override for Workflows that accept no arguments**.
182
- *
183
- * @returns the result of the Workflow execution
184
- */
185
- execute<T extends () => WorkflowReturnType>(workflowTypeOrFunc: string | T): Promise<WorkflowResultType<T>>;
186
163
  /**
187
164
  * Gets the result of a Workflow execution.
188
165
  *
@@ -230,9 +207,12 @@ export declare class WorkflowClient {
230
207
  */
231
208
  protected _createWorkflowHandle<T extends Workflow>(workflowId: string, runId: string | undefined, interceptors: WorkflowClientCallsInterceptor[], resultOptions: WorkflowResultOptions): WorkflowHandle<T>;
232
209
  /**
233
- * Creates a Workflow handle for existing Workflow using `workflowId` and optional `runId`
210
+ * Creates a Workflow handle for existing Workflow using `workflowId` and optional `runId`.
211
+ *
212
+ * This method does not validate `workflowId`. If there is no Workflow Execution with the given `workflowId`, handle
213
+ * methods like `handle.describe()` will throw a `NOT_FOUND` error.
234
214
  */
235
- getHandle<T extends Workflow>(workflowId: string, runId?: string): WorkflowHandle<T>;
215
+ getHandle<T extends Workflow>(workflowId: string, runId?: string, options?: WorkflowResultOptions): WorkflowHandle<T>;
236
216
  }
237
217
  export declare class QueryRejectedError extends Error {
238
218
  readonly status: temporal.api.enums.v1.WorkflowExecutionStatus;
@@ -1,23 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
22
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
4
  };
@@ -28,7 +9,7 @@ const proto_1 = require("@temporalio/proto");
28
9
  const uuid_1 = require("uuid");
29
10
  const common_1 = require("@temporalio/common");
30
11
  const workflow_options_1 = require("./workflow-options");
31
- const errors = __importStar(require("./errors"));
12
+ const errors_1 = require("./errors");
32
13
  const connection_1 = require("./connection");
33
14
  function defaultWorkflowClientOptions() {
34
15
  return {
@@ -38,7 +19,6 @@ function defaultWorkflowClientOptions() {
38
19
  interceptors: {},
39
20
  namespace: 'default',
40
21
  queryRejectCondition: proto_1.temporal.api.enums.v1.QueryRejectCondition.QUERY_REJECT_CONDITION_UNSPECIFIED,
41
- workflowDefaults: {},
42
22
  };
43
23
  }
44
24
  exports.defaultWorkflowClientOptions = defaultWorkflowClientOptions;
@@ -46,6 +26,13 @@ function assertRequiredWorkflowOptions(opts) {
46
26
  if (!opts.taskQueue) {
47
27
  throw new TypeError('Missing WorkflowOptions.taskQueue');
48
28
  }
29
+ if (!opts.workflowId) {
30
+ throw new TypeError('Missing WorkflowOptions.workflowId');
31
+ }
32
+ }
33
+ function ensureArgs(opts) {
34
+ const { args, ...rest } = opts;
35
+ return { args: args ?? [], ...rest };
49
36
  }
50
37
  /**
51
38
  * Client for starting Workflow executions and creating Workflow handles
@@ -63,7 +50,7 @@ class WorkflowClient {
63
50
  async _start(workflowTypeOrFunc, options, interceptors) {
64
51
  const workflowType = typeof workflowTypeOrFunc === 'string' ? workflowTypeOrFunc : workflowTypeOrFunc.name;
65
52
  assertRequiredWorkflowOptions(options);
66
- const compiledOptions = (0, workflow_options_1.compileWorkflowOptions)((0, workflow_options_1.addDefaults)(options));
53
+ const compiledOptions = (0, workflow_options_1.compileWorkflowOptions)(ensureArgs(options));
67
54
  const start = (0, common_1.composeInterceptors)(interceptors, 'start', this._startWorkflowHandler.bind(this));
68
55
  return start({
69
56
  options: compiledOptions,
@@ -81,7 +68,7 @@ class WorkflowClient {
81
68
  const workflowType = typeof workflowTypeOrFunc === 'string' ? workflowTypeOrFunc : workflowTypeOrFunc.name;
82
69
  const { signal, signalArgs, ...rest } = options;
83
70
  assertRequiredWorkflowOptions(rest);
84
- const compiledOptions = (0, workflow_options_1.compileWorkflowOptions)((0, workflow_options_1.addDefaults)(rest));
71
+ const compiledOptions = (0, workflow_options_1.compileWorkflowOptions)(ensureArgs(rest));
85
72
  const signalWithStart = (0, common_1.composeInterceptors)(interceptors, 'signalWithStart', this._signalWithStartWorkflowHandler.bind(this));
86
73
  return signalWithStart({
87
74
  options: compiledOptions,
@@ -91,10 +78,14 @@ class WorkflowClient {
91
78
  signalArgs,
92
79
  });
93
80
  }
94
- async start(workflowTypeOrFunc, maybeOptions) {
81
+ /**
82
+ * Start a new Workflow execution.
83
+ *
84
+ * @returns a WorkflowHandle to the started Workflow
85
+ */
86
+ async start(workflowTypeOrFunc, options) {
87
+ const { workflowId } = options;
95
88
  // Cast is needed because it's impossible to deduce the type in this situation
96
- const options = { ...this.options.workflowDefaults, ...maybeOptions };
97
- const workflowId = options.workflowId ?? (0, uuid_1.v4)();
98
89
  const interceptors = (this.options.interceptors.calls ?? []).map((ctor) => ctor({ workflowId }));
99
90
  const runId = await this._start(workflowTypeOrFunc, { ...options, workflowId }, interceptors);
100
91
  const handle = this._createWorkflowHandle(workflowId, runId, interceptors, {
@@ -110,22 +101,24 @@ class WorkflowClient {
110
101
  * @returns a WorkflowHandle to the started Workflow
111
102
  */
112
103
  async signalWithStart(workflowTypeOrFunc, options) {
113
- options = { ...this.options.workflowDefaults, ...options };
114
- const workflowId = options.workflowId ?? (0, uuid_1.v4)();
104
+ const { workflowId } = options;
115
105
  const interceptors = (this.options.interceptors.calls ?? []).map((ctor) => ctor({ workflowId }));
116
- const runId = await this._signalWithStart(workflowTypeOrFunc, { ...options, workflowId }, interceptors);
106
+ const runId = await this._signalWithStart(workflowTypeOrFunc, options, interceptors);
117
107
  const handle = this._createWorkflowHandle(workflowId, runId, interceptors, {
118
108
  followRuns: options.followRuns ?? true,
119
109
  }); // Cast is safe because we know we add the originalRunId below
120
110
  handle /* readonly */.originalRunId = runId;
121
111
  return handle;
122
112
  }
123
- async execute(workflowTypeOrFunc, maybeOptions) {
124
- // Cast is needed because it's impossible to deduce the type in this situation
125
- const options = { ...this.options.workflowDefaults, ...maybeOptions };
126
- const workflowId = options.workflowId ?? (0, uuid_1.v4)();
113
+ /**
114
+ * Starts a new Workflow execution and awaits its completion.
115
+ *
116
+ * @returns the result of the Workflow execution
117
+ */
118
+ async execute(workflowTypeOrFunc, options) {
119
+ const { workflowId } = options;
127
120
  const interceptors = (this.options.interceptors.calls ?? []).map((ctor) => ctor({ workflowId }));
128
- await this._start(workflowTypeOrFunc, { ...options, workflowId }, interceptors);
121
+ await this._start(workflowTypeOrFunc, options, interceptors);
129
122
  return await this.result(workflowId, undefined, {
130
123
  followRuns: options.followRuns ?? true,
131
124
  });
@@ -181,13 +174,17 @@ class WorkflowClient {
181
174
  continue;
182
175
  }
183
176
  const { failure } = ev.workflowExecutionFailedEventAttributes;
184
- throw new errors.WorkflowExecutionFailedError('Workflow execution failed', await (0, common_1.optionalFailureToOptionalError)(failure, this.options.dataConverter));
177
+ throw new errors_1.WorkflowFailedError('Workflow execution failed', await (0, common_1.optionalFailureToOptionalError)(failure, this.options.dataConverter), common_1.RetryState.RETRY_STATE_NON_RETRYABLE_FAILURE);
185
178
  }
186
179
  else if (ev.workflowExecutionCanceledEventAttributes) {
187
- throw new errors.WorkflowExecutionCancelledError('Workflow execution cancelled', await (0, common_1.arrayFromPayloads)(this.options.dataConverter, ev.workflowExecutionCanceledEventAttributes.details?.payloads));
180
+ const failure = new common_1.CancelledFailure('Workflow canceled', await (0, common_1.arrayFromPayloads)(this.options.dataConverter, ev.workflowExecutionCanceledEventAttributes.details?.payloads));
181
+ failure.stack = '';
182
+ throw new errors_1.WorkflowFailedError('Workflow execution cancelled', failure, common_1.RetryState.RETRY_STATE_NON_RETRYABLE_FAILURE);
188
183
  }
189
184
  else if (ev.workflowExecutionTerminatedEventAttributes) {
190
- throw new errors.WorkflowExecutionTerminatedError(ev.workflowExecutionTerminatedEventAttributes.reason || 'Workflow execution terminated', await (0, common_1.arrayFromPayloads)(this.options.dataConverter, ev.workflowExecutionTerminatedEventAttributes.details?.payloads), ev.workflowExecutionTerminatedEventAttributes.identity ?? undefined);
185
+ const failure = new common_1.TerminatedFailure(ev.workflowExecutionTerminatedEventAttributes.reason || 'Workflow execution terminated');
186
+ failure.stack = '';
187
+ throw new errors_1.WorkflowFailedError(ev.workflowExecutionTerminatedEventAttributes.reason || 'Workflow execution terminated', failure, common_1.RetryState.RETRY_STATE_NON_RETRYABLE_FAILURE);
191
188
  }
192
189
  else if (ev.workflowExecutionTimedOutEventAttributes) {
193
190
  if (ev.workflowExecutionTimedOutEventAttributes.newExecutionRunId) {
@@ -195,7 +192,9 @@ class WorkflowClient {
195
192
  req.nextPageToken = undefined;
196
193
  continue;
197
194
  }
198
- throw new errors.WorkflowExecutionTimedOutError('Workflow execution timed out', ev.workflowExecutionTimedOutEventAttributes.retryState || 0);
195
+ const failure = new common_1.TimeoutFailure('Workflow execution timed out', undefined, common_1.TimeoutType.TIMEOUT_TYPE_START_TO_CLOSE);
196
+ failure.stack = '';
197
+ throw new errors_1.WorkflowFailedError('Workflow execution timed out', failure, ev.workflowExecutionTimedOutEventAttributes.retryState || 0);
199
198
  }
200
199
  else if (ev.workflowExecutionContinuedAsNewEventAttributes) {
201
200
  const { newExecutionRunId } = ev.workflowExecutionContinuedAsNewEventAttributes;
@@ -203,7 +202,7 @@ class WorkflowClient {
203
202
  throw new TypeError('Expected service to return newExecutionRunId for WorkflowExecutionContinuedAsNewEvent');
204
203
  }
205
204
  if (!followRuns) {
206
- throw new errors.WorkflowExecutionContinuedAsNewError('Workflow execution continued as new', newExecutionRunId);
205
+ throw new errors_1.WorkflowContinuedAsNewError('Workflow execution continued as new', newExecutionRunId);
207
206
  }
208
207
  execution.runId = newExecutionRunId;
209
208
  req.nextPageToken = undefined;
@@ -410,12 +409,15 @@ class WorkflowClient {
410
409
  };
411
410
  }
412
411
  /**
413
- * Creates a Workflow handle for existing Workflow using `workflowId` and optional `runId`
412
+ * Creates a Workflow handle for existing Workflow using `workflowId` and optional `runId`.
413
+ *
414
+ * This method does not validate `workflowId`. If there is no Workflow Execution with the given `workflowId`, handle
415
+ * methods like `handle.describe()` will throw a `NOT_FOUND` error.
414
416
  */
415
- getHandle(workflowId, runId) {
417
+ getHandle(workflowId, runId, options) {
416
418
  const interceptors = (this.options.interceptors.calls ?? []).map((ctor) => ctor({ workflowId, runId }));
417
419
  return this._createWorkflowHandle(workflowId, runId, interceptors, {
418
- followRuns: this.options.workflowDefaults.followRuns ?? true,
420
+ followRuns: options?.followRuns ?? true,
419
421
  });
420
422
  }
421
423
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-client.js","sourceRoot":"","sources":["../src/workflow-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,6CAA6C;AAE7C,+BAAmC;AACnC,+CAc4B;AAC5B,yDAK4B;AAiB5B,iDAAmC;AACnC,6CAA2D;AAuH3D,SAAgB,4BAA4B;IAC1C,OAAO;QACL,aAAa,EAAE,6BAAoB;QACnC,2EAA2E;QAC3E,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,IAAI,YAAE,CAAC,QAAQ,EAAE,EAAE;QAC3C,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,SAAS;QACpB,oBAAoB,EAAE,gBAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,kCAAkC;QACnG,gBAAgB,EAAE,EAAE;KACrB,CAAC;AACJ,CAAC;AAVD,oEAUC;AAED,SAAS,6BAA6B,CAAC,IAA8B;IACnE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QACnB,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;KAC1D;AACH,CAAC;AAsBD;;GAEG;AACH,MAAa,cAAc;IAGzB,YAA4B,UAA2B,IAAI,uBAAU,EAAE,CAAC,OAAO,EAAE,OAA+B;QAApF,YAAO,GAAP,OAAO,CAA4C;QAC7E,IAAI,CAAC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AAE;oBACxC,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB;oBAC9D,SAAS,EAAE,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI;oBACnD,IAAI;iBACL,CAAiB,CAAC;YACrB,CAAC;SACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACI,SAAS,CACd,UAAkB,EAClB,KAAc,EACd,OAA+B;QAE/B,MAAM,YAAY,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAExG,OAAO,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE;YACjE,UAAU,EAAE,OAAO,EAAE,UAAU,IAAI,IAAI;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AApdD,wCAodC;AAED,MAAa,kBAAmB,SAAQ,KAAK;IAE3C,YAA4B,MAAqD;QAC/E,KAAK,CAAC,gBAAgB,CAAC,CAAC;QADE,WAAM,GAAN,MAAM,CAA+C;QADjE,SAAI,GAAW,oBAAoB,CAAC;IAGpD,CAAC;CACF;AALD,gDAKC"}
@@ -1,14 +1,33 @@
1
- import { WithWorkflowArgs, WorkflowOptions as CommonWorkflowOptions, WorkflowOptionsWithDefaults as CommonWorkflowOptionsWithDefaults, SignalDefinition, Workflow } from '@temporalio/common';
2
- export { CompiledWorkflowOptions, compileWorkflowOptions } from '@temporalio/common';
1
+ import { WithCompiledWorkflowDurationOptions, CommonWorkflowOptions, SignalDefinition } from '@temporalio/common';
2
+ export { WithCompiledWorkflowDurationOptions, compileWorkflowOptions } from '@temporalio/common';
3
+ export interface CompiledWorkflowOptions extends WithCompiledWorkflowDurationOptions<WorkflowOptions> {
4
+ args: unknown[];
5
+ }
3
6
  export interface WorkflowOptions extends CommonWorkflowOptions {
7
+ /**
8
+ * Workflow id to use when starting.
9
+ *
10
+ * Assign a meaningful business id.
11
+ * This ID can be used to ensure starting Workflows is idempotent.
12
+ * Workflow IDs are unique, see also {@link WorkflowOptions.workflowIdReusePolicy}
13
+ */
14
+ workflowId: string;
4
15
  /**
5
16
  * Task queue to use for Workflow tasks. It should match a task queue specified when creating a
6
17
  * `Worker` that hosts the Workflow code.
7
18
  */
8
19
  taskQueue: string;
20
+ /**
21
+ * If set to true, instructs the client to follow the chain of execution before returning a Workflow's result.
22
+ *
23
+ * Workflow execution is chained if the Workflow has a cron schedule or continues-as-new or configured to retry
24
+ * after failure or timeout.
25
+ *
26
+ * @default true
27
+ */
9
28
  followRuns?: boolean;
10
29
  }
11
- export interface WorkflowSignalWithStartOptions<SA extends any[] = []> extends Partial<WorkflowOptions> {
30
+ export interface WorkflowSignalWithStartOptions<SA extends any[] = []> extends WorkflowOptions {
12
31
  /**
13
32
  * SignalDefinition or name of signal
14
33
  */
@@ -18,18 +37,3 @@ export interface WorkflowSignalWithStartOptions<SA extends any[] = []> extends P
18
37
  */
19
38
  signalArgs: SA;
20
39
  }
21
- export interface WorkflowOptionsWithDefaults<T extends Workflow> extends CommonWorkflowOptionsWithDefaults<T> {
22
- /**
23
- * If set to true, instructs the client to follow the chain of execution before returning a Workflow's result.
24
- *
25
- * Workflow execution is chained if the Workflow has a cron schedule or continues-as-new or configured to retry
26
- * after failure or timeout.
27
- *
28
- * @default true
29
- */
30
- followRuns: boolean;
31
- }
32
- /**
33
- * Adds default values to `workflowId` and `workflowIdReusePolicy` to given workflow options.
34
- */
35
- export declare function addDefaults<T extends Workflow>(opts: WithWorkflowArgs<T, WorkflowOptions>): WorkflowOptionsWithDefaults<T>;
@@ -1,20 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addDefaults = exports.compileWorkflowOptions = void 0;
4
- const uuid_1 = require("uuid");
3
+ exports.compileWorkflowOptions = void 0;
5
4
  var common_1 = require("@temporalio/common");
6
5
  Object.defineProperty(exports, "compileWorkflowOptions", { enumerable: true, get: function () { return common_1.compileWorkflowOptions; } });
7
- /**
8
- * Adds default values to `workflowId` and `workflowIdReusePolicy` to given workflow options.
9
- */
10
- function addDefaults(opts) {
11
- const { workflowId, args, ...rest } = opts;
12
- return {
13
- followRuns: true,
14
- args: args ?? [],
15
- workflowId: workflowId ?? (0, uuid_1.v4)(),
16
- ...rest,
17
- };
18
- }
19
- exports.addDefaults = addDefaults;
6
+ // export interface WorkflowOptionsWithDefaults<T extends Workflow> extends CommonWorkflowOptionsWithDefaults<T> {
7
+ // /**
8
+ // * If set to true, instructs the client to follow the chain of execution before returning a Workflow's result.
9
+ // *
10
+ // * Workflow execution is chained if the Workflow has a cron schedule or continues-as-new or configured to retry
11
+ // * after failure or timeout.
12
+ // *
13
+ // * @default true
14
+ // */
15
+ // followRuns: boolean;
16
+ // }
17
+ //
18
+ // /**
19
+ // * Adds default values to `workflowId` and `workflowIdReusePolicy` to given workflow options.
20
+ // */
21
+ // export function addDefaults<T extends Workflow>(
22
+ // opts: WithWorkflowArgs<T, WorkflowOptions>
23
+ // ): WorkflowOptionsWithDefaults<T> {
24
+ // const { workflowId, args, ...rest } = opts;
25
+ // return {
26
+ // followRuns: true,
27
+ // args: args ?? [],
28
+ // workflowId: workflowId ?? uuid4(),
29
+ // ...rest,
30
+ // };
31
+ // }
20
32
  //# sourceMappingURL=workflow-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-options.js","sourceRoot":"","sources":["../src/workflow-options.ts"],"names":[],"mappings":";;;AAAA,+BAAmC;AASnC,6CAAqF;AAAnD,gHAAA,sBAAsB,OAAA;AAmCxD;;GAEG;AACH,SAAgB,WAAW,CACzB,IAA0C;IAE1C,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAC3C,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,IAAI,IAAI,EAAE;QAChB,UAAU,EAAE,UAAU,IAAI,IAAA,SAAK,GAAE;QACjC,GAAG,IAAI;KACR,CAAC;AACJ,CAAC;AAVD,kCAUC"}
1
+ {"version":3,"file":"workflow-options.js","sourceRoot":"","sources":["../src/workflow-options.ts"],"names":[],"mappings":";;;AAEA,6CAAiG;AAAnD,gHAAA,sBAAsB,OAAA;AA4CpE,kHAAkH;AAClH,QAAQ;AACR,mHAAmH;AACnH,OAAO;AACP,oHAAoH;AACpH,iCAAiC;AACjC,OAAO;AACP,qBAAqB;AACrB,QAAQ;AACR,yBAAyB;AACzB,IAAI;AACJ,EAAE;AACF,MAAM;AACN,gGAAgG;AAChG,MAAM;AACN,mDAAmD;AACnD,+CAA+C;AAC/C,sCAAsC;AACtC,gDAAgD;AAChD,aAAa;AACb,wBAAwB;AACxB,wBAAwB;AACxB,yCAAyC;AACzC,eAAe;AACf,OAAO;AACP,IAAI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temporalio/client",
3
- "version": "0.13.0",
3
+ "version": "0.16.3",
4
4
  "description": "Temporal.io SDK Client sub-package",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "@grpc/grpc-js": "^1.3.7",
17
- "@temporalio/common": "^0.13.0",
18
- "@temporalio/proto": "^0.13.0",
17
+ "@temporalio/common": "^0.16.0",
18
+ "@temporalio/proto": "^0.16.0",
19
19
  "ms": "^2.1.3",
20
20
  "protobufjs": "^6.11.2",
21
21
  "uuid": "^8.3.2"
@@ -30,5 +30,5 @@
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "bbb8d36ad9d310eb44bd19f3f8bb9356e1dd9dfb"
33
+ "gitHead": "af54140a4da7e191c06627c5e06b92a3fd929bcc"
34
34
  }