@temporalio/common 0.16.0 → 0.17.2

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.
@@ -1,6 +1,10 @@
1
- import { coresdk } from '@temporalio/proto/lib/coresdk';
2
- import { RetryOptions } from './interfaces';
3
- export declare const ActivityCancellationType: typeof coresdk.workflow_commands.ActivityCancellationType;
1
+ import type { coresdk } from '@temporalio/proto/lib/coresdk';
2
+ import { RetryPolicy } from './retry-policy';
3
+ export declare enum ActivityCancellationType {
4
+ TRY_CANCEL = 0,
5
+ WAIT_CANCELLATION_COMPLETED = 1,
6
+ ABANDON = 2
7
+ }
4
8
  /**
5
9
  * Options for remote activity invocation - will be processed from a task queue.
6
10
  * @see https://www.javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/activity/ActivityOptions.Builder.html
@@ -31,9 +35,9 @@ export interface ActivityOptions {
31
35
  */
32
36
  heartbeatTimeout?: string | number;
33
37
  /**
34
- * RetryOptions that define how activity is retried in case of failure. If this is not set, then the server-defined default activity retry policy will be used. To ensure zero retries, set maximum attempts to 1.
38
+ * RetryPolicy that define how activity is retried in case of failure. If this is not set, then the server-defined default activity retry policy will be used. To ensure zero retries, set maximum attempts to 1.
35
39
  */
36
- retry?: RetryOptions;
40
+ retry?: RetryPolicy;
37
41
  /**
38
42
  * Maximum time of a single Activity execution attempt.
39
43
  Note that the Temporal Server doesn't detect Worker process failures directly. It relies on this timeout to detect that an Activity that didn't complete on time. So this timeout should be as short as the longest possible execution of the Activity body. Potentially long running Activities must specify {@link heartbeatTimeout} and call {@link activity.Context.heartbeat} periodically for timely failure detection.
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityCancellationType = void 0;
4
- const coresdk_1 = require("@temporalio/proto/lib/coresdk");
5
- exports.ActivityCancellationType = coresdk_1.coresdk.workflow_commands.ActivityCancellationType;
4
+ const type_helpers_1 = require("./type-helpers");
5
+ // Avoid importing the proto implementation to reduce workflow bundle size
6
+ // Copied from coresdk.workflow_commands.ActivityCancellationType
7
+ var ActivityCancellationType;
8
+ (function (ActivityCancellationType) {
9
+ ActivityCancellationType[ActivityCancellationType["TRY_CANCEL"] = 0] = "TRY_CANCEL";
10
+ ActivityCancellationType[ActivityCancellationType["WAIT_CANCELLATION_COMPLETED"] = 1] = "WAIT_CANCELLATION_COMPLETED";
11
+ ActivityCancellationType[ActivityCancellationType["ABANDON"] = 2] = "ABANDON";
12
+ })(ActivityCancellationType = exports.ActivityCancellationType || (exports.ActivityCancellationType = {}));
13
+ (0, type_helpers_1.checkExtends)();
6
14
  //# sourceMappingURL=activity-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity-options.js","sourceRoot":"","sources":["../src/activity-options.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAG3C,QAAA,wBAAwB,GAAG,iBAAO,CAAC,iBAAiB,CAAC,wBAAwB,CAAC"}
1
+ {"version":3,"file":"activity-options.js","sourceRoot":"","sources":["../src/activity-options.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C,0EAA0E;AAC1E,iEAAiE;AACjE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,mFAAc,CAAA;IACd,qHAA+B,CAAA;IAC/B,6EAAW,CAAA;AACb,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAA,2BAAY,GAAgF,CAAC"}
@@ -1,4 +1,4 @@
1
- import * as iface from '@temporalio/proto/lib/coresdk';
1
+ import type * as iface from '@temporalio/proto/lib/coresdk';
2
2
  export declare type Payload = iface.coresdk.common.IPayload;
3
3
  /**
4
4
  * Transform an *ascii* string into a Uint8Array
package/lib/failure.d.ts CHANGED
@@ -1,11 +1,24 @@
1
- import { temporal } from '@temporalio/proto/lib/coresdk';
1
+ import type { temporal } from '@temporalio/proto/lib/coresdk';
2
2
  import { DataConverter } from './converter/data-converter';
3
3
  export declare const FAILURE_SOURCE = "TypeScriptSDK";
4
4
  export declare type ProtoFailure = temporal.api.failure.v1.IFailure;
5
- export declare type TimeoutType = temporal.api.enums.v1.TimeoutType;
6
- export declare const TimeoutType: typeof temporal.api.enums.v1.TimeoutType;
7
- export declare type RetryState = temporal.api.enums.v1.RetryState;
8
- export declare const RetryState: typeof temporal.api.enums.v1.RetryState;
5
+ export declare enum TimeoutType {
6
+ TIMEOUT_TYPE_UNSPECIFIED = 0,
7
+ TIMEOUT_TYPE_START_TO_CLOSE = 1,
8
+ TIMEOUT_TYPE_SCHEDULE_TO_START = 2,
9
+ TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3,
10
+ TIMEOUT_TYPE_HEARTBEAT = 4
11
+ }
12
+ export declare enum RetryState {
13
+ RETRY_STATE_UNSPECIFIED = 0,
14
+ RETRY_STATE_IN_PROGRESS = 1,
15
+ RETRY_STATE_NON_RETRYABLE_FAILURE = 2,
16
+ RETRY_STATE_TIMEOUT = 3,
17
+ RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED = 4,
18
+ RETRY_STATE_RETRY_POLICY_NOT_SET = 5,
19
+ RETRY_STATE_INTERNAL_SERVER_ERROR = 6,
20
+ RETRY_STATE_CANCEL_REQUESTED = 7
21
+ }
9
22
  export declare type WorkflowExecution = temporal.api.common.v1.IWorkflowExecution;
10
23
  /**
11
24
  * Represents failures that can cross Workflow and Activity boundaries.
@@ -75,7 +88,7 @@ export declare class ApplicationFailure extends TemporalFailure {
75
88
  * @param details optional details about the failure. They are serialized using the same approach
76
89
  * as arguments and results.
77
90
  */
78
- static retryable(message: string | undefined, type: string, ...details: unknown[]): ApplicationFailure;
91
+ static retryable(message: string | undefined, type?: string, ...details: unknown[]): ApplicationFailure;
79
92
  /**
80
93
  * New ApplicationFailure with {@link nonRetryable} flag set to true.
81
94
  *
@@ -87,7 +100,7 @@ export declare class ApplicationFailure extends TemporalFailure {
87
100
  * @param details optional details about the failure. They are serialized using the same approach
88
101
  * as arguments and results.
89
102
  */
90
- static nonRetryable(message: string | undefined, type: string, ...details: unknown[]): ApplicationFailure;
103
+ static nonRetryable(message: string | undefined, type?: string, ...details: unknown[]): ApplicationFailure;
91
104
  }
92
105
  /**
93
106
  * Used as the cause for when a Workflow or Activity has been cancelled
package/lib/failure.js CHANGED
@@ -1,11 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rootCause = exports.failureToError = exports.failureToErrorInner = exports.optionalFailureToOptionalError = exports.ensureTemporalFailure = exports.errorToFailure = exports.cutoffStackTrace = exports.optionalErrorToOptionalFailure = exports.ChildWorkflowFailure = exports.ActivityFailure = exports.TimeoutFailure = exports.TerminatedFailure = exports.CancelledFailure = exports.ApplicationFailure = exports.ServerFailure = exports.TemporalFailure = exports.RetryState = exports.TimeoutType = exports.FAILURE_SOURCE = void 0;
4
- const coresdk_1 = require("@temporalio/proto/lib/coresdk");
5
4
  const data_converter_1 = require("./converter/data-converter");
5
+ const type_helpers_1 = require("./type-helpers");
6
6
  exports.FAILURE_SOURCE = 'TypeScriptSDK';
7
- exports.TimeoutType = coresdk_1.temporal.api.enums.v1.TimeoutType;
8
- exports.RetryState = coresdk_1.temporal.api.enums.v1.RetryState;
7
+ // Avoid importing the proto implementation to reduce workflow bundle size
8
+ // Copied from temporal.api.enums.v1.TimeoutType
9
+ var TimeoutType;
10
+ (function (TimeoutType) {
11
+ TimeoutType[TimeoutType["TIMEOUT_TYPE_UNSPECIFIED"] = 0] = "TIMEOUT_TYPE_UNSPECIFIED";
12
+ TimeoutType[TimeoutType["TIMEOUT_TYPE_START_TO_CLOSE"] = 1] = "TIMEOUT_TYPE_START_TO_CLOSE";
13
+ TimeoutType[TimeoutType["TIMEOUT_TYPE_SCHEDULE_TO_START"] = 2] = "TIMEOUT_TYPE_SCHEDULE_TO_START";
14
+ TimeoutType[TimeoutType["TIMEOUT_TYPE_SCHEDULE_TO_CLOSE"] = 3] = "TIMEOUT_TYPE_SCHEDULE_TO_CLOSE";
15
+ TimeoutType[TimeoutType["TIMEOUT_TYPE_HEARTBEAT"] = 4] = "TIMEOUT_TYPE_HEARTBEAT";
16
+ })(TimeoutType = exports.TimeoutType || (exports.TimeoutType = {}));
17
+ (0, type_helpers_1.checkExtends)();
18
+ // Avoid importing the proto implementation to reduce workflow bundle size
19
+ // Copied from temporal.api.enums.v1.RetryState
20
+ var RetryState;
21
+ (function (RetryState) {
22
+ RetryState[RetryState["RETRY_STATE_UNSPECIFIED"] = 0] = "RETRY_STATE_UNSPECIFIED";
23
+ RetryState[RetryState["RETRY_STATE_IN_PROGRESS"] = 1] = "RETRY_STATE_IN_PROGRESS";
24
+ RetryState[RetryState["RETRY_STATE_NON_RETRYABLE_FAILURE"] = 2] = "RETRY_STATE_NON_RETRYABLE_FAILURE";
25
+ RetryState[RetryState["RETRY_STATE_TIMEOUT"] = 3] = "RETRY_STATE_TIMEOUT";
26
+ RetryState[RetryState["RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED"] = 4] = "RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED";
27
+ RetryState[RetryState["RETRY_STATE_RETRY_POLICY_NOT_SET"] = 5] = "RETRY_STATE_RETRY_POLICY_NOT_SET";
28
+ RetryState[RetryState["RETRY_STATE_INTERNAL_SERVER_ERROR"] = 6] = "RETRY_STATE_INTERNAL_SERVER_ERROR";
29
+ RetryState[RetryState["RETRY_STATE_CANCEL_REQUESTED"] = 7] = "RETRY_STATE_CANCEL_REQUESTED";
30
+ })(RetryState = exports.RetryState || (exports.RetryState = {}));
31
+ (0, type_helpers_1.checkExtends)();
9
32
  /**
10
33
  * Represents failures that can cross Workflow and Activity boundaries.
11
34
  *
@@ -77,7 +100,7 @@ class ApplicationFailure extends TemporalFailure {
77
100
  * as arguments and results.
78
101
  */
79
102
  static retryable(message, type, ...details) {
80
- return new this(message, type, false, details);
103
+ return new this(message, type ?? 'Error', false, details);
81
104
  }
82
105
  /**
83
106
  * New ApplicationFailure with {@link nonRetryable} flag set to true.
@@ -91,7 +114,7 @@ class ApplicationFailure extends TemporalFailure {
91
114
  * as arguments and results.
92
115
  */
93
116
  static nonRetryable(message, type, ...details) {
94
- return new this(message, type, true, details);
117
+ return new this(message, type ?? 'Error', true, details);
95
118
  }
96
119
  }
97
120
  exports.ApplicationFailure = ApplicationFailure;
@@ -327,7 +350,7 @@ async function failureToErrorInner(failure, dataConverter) {
327
350
  return new ServerFailure(failure.message ?? undefined, Boolean(failure.serverFailureInfo.nonRetryable), await optionalFailureToOptionalError(failure.cause, dataConverter));
328
351
  }
329
352
  if (failure.timeoutFailureInfo) {
330
- return new TimeoutFailure(failure.message ?? undefined, await dataConverter.fromPayloads(0, failure.timeoutFailureInfo.lastHeartbeatDetails?.payloads), failure.timeoutFailureInfo.timeoutType ?? exports.TimeoutType.TIMEOUT_TYPE_UNSPECIFIED);
353
+ return new TimeoutFailure(failure.message ?? undefined, await dataConverter.fromPayloads(0, failure.timeoutFailureInfo.lastHeartbeatDetails?.payloads), failure.timeoutFailureInfo.timeoutType ?? TimeoutType.TIMEOUT_TYPE_UNSPECIFIED);
331
354
  }
332
355
  if (failure.terminatedFailureInfo) {
333
356
  return new TerminatedFailure(failure.message ?? undefined, await optionalFailureToOptionalError(failure.cause, dataConverter));
@@ -343,13 +366,13 @@ async function failureToErrorInner(failure, dataConverter) {
343
366
  if (!(workflowType?.name && workflowExecution)) {
344
367
  throw new TypeError('Missing attributes on childWorkflowExecutionFailureInfo');
345
368
  }
346
- return new ChildWorkflowFailure(namespace ?? undefined, workflowExecution, workflowType.name, retryState ?? exports.RetryState.RETRY_STATE_UNSPECIFIED, await optionalFailureToOptionalError(failure.cause, dataConverter));
369
+ return new ChildWorkflowFailure(namespace ?? undefined, workflowExecution, workflowType.name, retryState ?? RetryState.RETRY_STATE_UNSPECIFIED, await optionalFailureToOptionalError(failure.cause, dataConverter));
347
370
  }
348
371
  if (failure.activityFailureInfo) {
349
372
  if (!failure.activityFailureInfo.activityType?.name) {
350
373
  throw new TypeError('Missing activityType?.name on activityFailureInfo');
351
374
  }
352
- return new ActivityFailure(failure.activityFailureInfo.activityType.name, failure.activityFailureInfo.activityId ?? undefined, failure.activityFailureInfo.retryState ?? exports.RetryState.RETRY_STATE_UNSPECIFIED, failure.activityFailureInfo.identity ?? undefined, await optionalFailureToOptionalError(failure.cause, dataConverter));
375
+ return new ActivityFailure(failure.activityFailureInfo.activityType.name, failure.activityFailureInfo.activityId ?? undefined, failure.activityFailureInfo.retryState ?? RetryState.RETRY_STATE_UNSPECIFIED, failure.activityFailureInfo.identity ?? undefined, await optionalFailureToOptionalError(failure.cause, dataConverter));
353
376
  }
354
377
  return new TemporalFailure(failure.message ?? undefined, await optionalFailureToOptionalError(failure.cause, dataConverter));
355
378
  }
@@ -1 +1 @@
1
- {"version":3,"file":"failure.js","sourceRoot":"","sources":["../src/failure.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,+DAA8E;AAEjE,QAAA,cAAc,GAAG,eAAe,CAAC;AAGjC,QAAA,WAAW,GAAG,kBAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC;AAEhD,QAAA,UAAU,GAAG,kBAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC;AAG3D;;;;;;;;;;;GAWG;AACH,MAAa,eAAgB,SAAQ,KAAK;IASxC,YAAY,OAA2B,EAAkB,KAAa;QACpE,KAAK,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC;QAD2B,UAAK,GAAL,KAAK,CAAQ;QARtD,SAAI,GAAW,iBAAiB,CAAC;IAUjD,CAAC;CACF;AAZD,0CAYC;AAED,qDAAqD;AACrD,MAAa,aAAc,SAAQ,eAAe;IAGhD,YAAY,OAA2B,EAAkB,YAAqB,EAAE,KAAa;QAC3F,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADiC,iBAAY,GAAZ,YAAY,CAAS;QAF9D,SAAI,GAAW,eAAe,CAAC;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BAAmB,CAAC,UAAU,IAAI,SAAS,EACnD,OAAO,CAAC,mBAAmB,CAAC,UAAU,IAAI,UAAU,CAAC,uBAAuB,EAC5E,OAAO,CAAC,mBAAmB,CAAC,QAAQ,IAAI,SAAS,EACjD,MAAM,8BAA8B,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,CACnE,CAAC;KACH;IACD,OAAO,IAAI,eAAe,CACxB,OAAO,CAAC,OAAO,IAAI,SAAS,EAC5B,MAAM,8BAA8B,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,CACnE,CAAC;AACJ,CAAC;AA9ED,kDA8EC;AAED;;GAEG;AACI,KAAK,UAAU,cAAc,CAAC,OAAqB,EAAE,aAA4B;IACtF,MAAM,GAAG,GAAG,MAAM,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC9D,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,UAAU,IAAI,EAAE,CAAC;IACrC,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;IACtB,OAAO,GAAG,CAAC;AACb,CAAC;AALD,wCAKC;AAED;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,GAAY;IACpC,IAAI,GAAG,YAAY,eAAe,EAAE;QAClC,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC;KACvD;IACD,IAAI,GAAG,YAAY,KAAK,EAAE;QACxB,OAAO,GAAG,CAAC,OAAO,CAAC;KACpB;IACD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,GAAG,CAAC;KACZ;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAXD,8BAWC"}
package/lib/index.d.ts CHANGED
@@ -9,7 +9,9 @@ export * from './errors';
9
9
  export * from './failure';
10
10
  export * from './interceptors';
11
11
  export * from './interfaces';
12
+ export * from './retry-policy';
12
13
  export * from './time';
13
14
  export * from './tls-config';
14
15
  export * from './workflow-handle';
15
16
  export * from './workflow-options';
17
+ export * from './utils';
package/lib/index.js CHANGED
@@ -21,8 +21,10 @@ __exportStar(require("./errors"), exports);
21
21
  __exportStar(require("./failure"), exports);
22
22
  __exportStar(require("./interceptors"), exports);
23
23
  __exportStar(require("./interfaces"), exports);
24
+ __exportStar(require("./retry-policy"), exports);
24
25
  __exportStar(require("./time"), exports);
25
26
  __exportStar(require("./tls-config"), exports);
26
27
  __exportStar(require("./workflow-handle"), exports);
27
28
  __exportStar(require("./workflow-options"), exports);
29
+ __exportStar(require("./utils"), exports);
28
30
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;GAIG;AACH,qDAAmC;AACnC,6DAA2C;AAC3C,2CAAyB;AACzB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;GAIG;AACH,qDAAmC;AACnC,6DAA2C;AAC3C,2CAAyB;AACzB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,iDAA+B;AAC/B,yCAAuB;AACvB,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,0CAAwB"}
@@ -1,4 +1,4 @@
1
- import { coresdk } from '@temporalio/proto/lib/coresdk';
1
+ import type { coresdk } from '@temporalio/proto/lib/coresdk';
2
2
  import { AnyFunc, OmitLastParam } from './type-helpers';
3
3
  /**
4
4
  * Type of the next function for a given interceptor function
@@ -11,6 +11,8 @@ export declare type WorkflowQueryType = (...args: any[]) => any;
11
11
  export declare type Workflow = (...args: any[]) => WorkflowReturnType;
12
12
  /**
13
13
  * An interface representing a Workflow signal definition, as returned from {@link defineSignal}
14
+ *
15
+ * @remarks `_Args` can be used for parameter type inference in handler functions and *WorkflowHandle methods.
14
16
  */
15
17
  export interface SignalDefinition<_Args extends any[] = []> {
16
18
  type: 'signal';
@@ -18,6 +20,8 @@ export interface SignalDefinition<_Args extends any[] = []> {
18
20
  }
19
21
  /**
20
22
  * An interface representing a Workflow query definition as returned from {@link defineQuery}
23
+ *
24
+ * @remarks `_Args` and `_Ret` can be used for parameter type inference in handler functions and *WorkflowHandle methods.
21
25
  */
22
26
  export interface QueryDefinition<_Ret, _Args extends any[] = []> {
23
27
  type: 'query';
@@ -25,41 +29,3 @@ export interface QueryDefinition<_Ret, _Args extends any[] = []> {
25
29
  }
26
30
  /** Get the "unwrapped" return type (without Promise) of the execute handler from Workflow type `W` */
27
31
  export declare type WorkflowResultType<W extends Workflow> = ReturnType<W> extends Promise<infer R> ? R : never;
28
- /**
29
- * Defines options for activity retries
30
- * @see {@link https://www.javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/common/RetryOptions.Builder.html | Java SDK definition}
31
- */
32
- export interface RetryOptions {
33
- /**
34
- * Coefficient used to calculate the next retry interval.
35
- * The next retry interval is previous interval multiplied by this coefficient.
36
- * @minimum 1
37
- * @default 2
38
- */
39
- backoffCoefficient?: number;
40
- /**
41
- * Interval of the first retry.
42
- * If coefficient is 1 then it is used for all retries
43
- * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
44
- */
45
- initialInterval: string | number;
46
- /**
47
- * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
48
- * @minimum 1
49
- * @default Infinity
50
- */
51
- maximumAttempts?: number;
52
- /**
53
- * Maximum interval between retries.
54
- * Exponential backoff leads to interval increase.
55
- * This value is the cap of the increase.
56
- *
57
- * @default 100x of {@link initialInterval}
58
- * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
59
- */
60
- maximumInterval?: string | number;
61
- /**
62
- * List of application failures types to not retry.
63
- */
64
- nonRetryableErrorTypes?: string[];
65
- }
@@ -0,0 +1,43 @@
1
+ import type { temporal } from '@temporalio/proto';
2
+ /**
3
+ * Options for retrying Workflows and Activities
4
+ */
5
+ export interface RetryPolicy {
6
+ /**
7
+ * Coefficient used to calculate the next retry interval.
8
+ * The next retry interval is previous interval multiplied by this coefficient.
9
+ * @minimum 1
10
+ * @default 2
11
+ */
12
+ backoffCoefficient?: number;
13
+ /**
14
+ * Interval of the first retry.
15
+ * If coefficient is 1 then it is used for all retries
16
+ * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
17
+ * @default 1 second
18
+ */
19
+ initialInterval?: string | number;
20
+ /**
21
+ * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
22
+ * @minimum 1
23
+ * @default Infinity
24
+ */
25
+ maximumAttempts?: number;
26
+ /**
27
+ * Maximum interval between retries.
28
+ * Exponential backoff leads to interval increase.
29
+ * This value is the cap of the increase.
30
+ *
31
+ * @default 100x of {@link initialInterval}
32
+ * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
33
+ */
34
+ maximumInterval?: string | number;
35
+ /**
36
+ * List of application failures types to not retry.
37
+ */
38
+ nonRetryableErrorTypes?: string[];
39
+ }
40
+ /**
41
+ * Turns a TS RetryPolicy into a proto compatible RetryPolicy
42
+ */
43
+ export declare function compileRetryPolicy(retryPolicy: RetryPolicy): temporal.api.common.v1.IRetryPolicy;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compileRetryPolicy = void 0;
4
+ const _1 = require(".");
5
+ const time_1 = require("./time");
6
+ /**
7
+ * Turns a TS RetryPolicy into a proto compatible RetryPolicy
8
+ */
9
+ function compileRetryPolicy(retryPolicy) {
10
+ if (retryPolicy.backoffCoefficient != null && retryPolicy.backoffCoefficient <= 0) {
11
+ throw new _1.ValueError('RetryPolicy.backoffCoefficient must be greater than 0');
12
+ }
13
+ if (retryPolicy.maximumAttempts != null && retryPolicy.maximumAttempts <= 0) {
14
+ throw new _1.ValueError('RetryPolicy.maximumAttempts must be greater than 0');
15
+ }
16
+ const maximumInterval = (0, time_1.msOptionalToNumber)(retryPolicy.maximumInterval);
17
+ const initialInterval = (0, time_1.msToNumber)(retryPolicy.initialInterval ?? 1000);
18
+ if (maximumInterval === 0) {
19
+ throw new _1.ValueError('RetryPolicy.maximumInterval cannot be 0');
20
+ }
21
+ if (initialInterval === 0) {
22
+ throw new _1.ValueError('RetryPolicy.initialInterval cannot be 0');
23
+ }
24
+ if (maximumInterval != null && maximumInterval < initialInterval) {
25
+ throw new _1.ValueError('RetryPolicy.maximumInterval cannot be less than its initialInterval');
26
+ }
27
+ return {
28
+ maximumAttempts: retryPolicy.maximumAttempts,
29
+ initialInterval: (0, time_1.msToTs)(initialInterval),
30
+ maximumInterval: (0, time_1.msOptionalToTs)(maximumInterval),
31
+ backoffCoefficient: retryPolicy.backoffCoefficient,
32
+ nonRetryableErrorTypes: retryPolicy.nonRetryableErrorTypes,
33
+ };
34
+ }
35
+ exports.compileRetryPolicy = compileRetryPolicy;
36
+ //# sourceMappingURL=retry-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry-policy.js","sourceRoot":"","sources":["../src/retry-policy.ts"],"names":[],"mappings":";;;AACA,wBAA+B;AAC/B,iCAAgF;AA0ChF;;GAEG;AACH,SAAgB,kBAAkB,CAAC,WAAwB;IACzD,IAAI,WAAW,CAAC,kBAAkB,IAAI,IAAI,IAAI,WAAW,CAAC,kBAAkB,IAAI,CAAC,EAAE;QACjF,MAAM,IAAI,aAAU,CAAC,uDAAuD,CAAC,CAAC;KAC/E;IACD,IAAI,WAAW,CAAC,eAAe,IAAI,IAAI,IAAI,WAAW,CAAC,eAAe,IAAI,CAAC,EAAE;QAC3E,MAAM,IAAI,aAAU,CAAC,oDAAoD,CAAC,CAAC;KAC5E;IACD,MAAM,eAAe,GAAG,IAAA,yBAAkB,EAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACxE,MAAM,eAAe,GAAG,IAAA,iBAAU,EAAC,WAAW,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC;IACxE,IAAI,eAAe,KAAK,CAAC,EAAE;QACzB,MAAM,IAAI,aAAU,CAAC,yCAAyC,CAAC,CAAC;KACjE;IACD,IAAI,eAAe,KAAK,CAAC,EAAE;QACzB,MAAM,IAAI,aAAU,CAAC,yCAAyC,CAAC,CAAC;KACjE;IACD,IAAI,eAAe,IAAI,IAAI,IAAI,eAAe,GAAG,eAAe,EAAE;QAChE,MAAM,IAAI,aAAU,CAAC,qEAAqE,CAAC,CAAC;KAC7F;IACD,OAAO;QACL,eAAe,EAAE,WAAW,CAAC,eAAe;QAC5C,eAAe,EAAE,IAAA,aAAM,EAAC,eAAe,CAAC;QACxC,eAAe,EAAE,IAAA,qBAAc,EAAC,eAAe,CAAC;QAChD,kBAAkB,EAAE,WAAW,CAAC,kBAAkB;QAClD,sBAAsB,EAAE,WAAW,CAAC,sBAAsB;KAC3D,CAAC;AACJ,CAAC;AAzBD,gDAyBC"}
package/lib/time.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as iface from '@temporalio/proto/lib/coresdk';
1
+ import type * as iface from '@temporalio/proto/lib/coresdk';
2
2
  export declare type Timestamp = iface.google.protobuf.ITimestamp;
3
3
  /**
4
4
  * Lossy conversion function from Timestamp to number due to possible overflow.
@@ -12,4 +12,5 @@ export declare function tsToMs(ts: Timestamp | null | undefined): number;
12
12
  export declare function msNumberToTs(millis: number): Timestamp;
13
13
  export declare function msToTs(str: string | number): Timestamp;
14
14
  export declare function msOptionalToTs(str: string | number | undefined): Timestamp | undefined;
15
+ export declare function msOptionalToNumber(val: string | number | undefined): number | undefined;
15
16
  export declare function msToNumber(val: string | number): number;
package/lib/time.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.msToNumber = exports.msOptionalToTs = exports.msToTs = exports.msNumberToTs = exports.tsToMs = exports.optionalTsToMs = void 0;
6
+ exports.msToNumber = exports.msOptionalToNumber = exports.msOptionalToTs = exports.msToTs = exports.msNumberToTs = exports.tsToMs = exports.optionalTsToMs = void 0;
7
7
  const long_1 = __importDefault(require("long"));
8
8
  const ms_1 = __importDefault(require("ms"));
9
9
  const errors_1 = require("./errors");
@@ -57,6 +57,12 @@ function msOptionalToTs(str) {
57
57
  return msNumberToTs((0, ms_1.default)(str));
58
58
  }
59
59
  exports.msOptionalToTs = msOptionalToTs;
60
+ function msOptionalToNumber(val) {
61
+ if (val === undefined)
62
+ return undefined;
63
+ return msToNumber(val);
64
+ }
65
+ exports.msOptionalToNumber = msOptionalToNumber;
60
66
  function msToNumber(val) {
61
67
  if (typeof val === 'number') {
62
68
  return val;
package/lib/time.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"time.js","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,4CAAoB;AAEpB,qCAAsC;AAStC;;;GAGG;AACH,SAAgB,cAAc,CAAC,EAAgC;IAC7D,IAAI,EAAE,KAAK,SAAS,IAAI,EAAE,KAAK,IAAI,EAAE;QACnC,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC;AACpB,CAAC;AALD,wCAKC;AAED;;GAEG;AACH,SAAgB,MAAM,CAAC,EAAgC;IACrD,IAAI,EAAE,KAAK,SAAS,IAAI,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,IAAI,KAAK,CAAC,2BAA2B,EAAE,EAAE,CAAC,CAAC;KAClD;IACD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IAC9B,OAAO,CAAC,OAAO,IAAI,cAAI,CAAC,KAAK,CAAC;SAC3B,GAAG,CAAC,IAAI,CAAC;SACT,GAAG,CAA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AAC;AACtD,CAAC;AAPD,oCAOC;AAED,SAAgB,MAAM,CAAC,GAAoB;IACzC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;KAC1B;IACD,OAAO,YAAY,CAAC,IAAA,YAAE,EAAC,GAAG,CAAC,CAAC,CAAC;AAC/B,CAAC;AALD,wBAKC;AAED,SAAgB,cAAc,CAAC,GAAgC;IAC7D,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;KAC1B;IACD,OAAO,YAAY,CAAC,IAAA,YAAE,EAAC,GAAG,CAAC,CAAC,CAAC;AAC/B,CAAC;AAND,wCAMC;AAED,SAAgB,kBAAkB,CAAC,GAAgC;IACjE,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAHD,gDAGC;AAED,SAAgB,UAAU,CAAC,GAAoB;IAC7C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,GAAG,CAAC;KACZ;IACD,OAAO,IAAA,YAAE,EAAC,GAAG,CAAC,CAAC;AACjB,CAAC;AALD,gCAKC"}
@@ -4,3 +4,5 @@ export declare type AnyFunc = (...args: any[]) => any;
4
4
  export declare type OmitLast<T> = T extends [...infer REST, any] ? REST : never;
5
5
  /** F with all arguments but the last */
6
6
  export declare type OmitLastParam<F extends AnyFunc> = (...args: OmitLast<Parameters<F>>) => ReturnType<F>;
7
+ /** Verify that an type _Copy extends _Orig */
8
+ export declare function checkExtends<_Orig, _Copy extends _Orig>(): void;
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checkExtends = void 0;
4
+ /** Verify that an type _Copy extends _Orig */
5
+ function checkExtends() {
6
+ // noop, just type check
7
+ }
8
+ exports.checkExtends = checkExtends;
3
9
  //# sourceMappingURL=type-helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"type-helpers.js","sourceRoot":"","sources":["../src/type-helpers.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"type-helpers.js","sourceRoot":"","sources":["../src/type-helpers.ts"],"names":[],"mappings":";;;AAOA,8CAA8C;AAC9C,SAAgB,YAAY;IAC1B,wBAAwB;AAC1B,CAAC;AAFD,oCAEC"}
package/lib/utils.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Helper to prevent undefined and null values overriding defaults when merging maps
3
+ */
4
+ export declare function filterNullAndUndefined<T extends Record<string, any>>(obj: T): T;
package/lib/utils.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.filterNullAndUndefined = void 0;
4
+ /**
5
+ * Helper to prevent undefined and null values overriding defaults when merging maps
6
+ */
7
+ function filterNullAndUndefined(obj) {
8
+ return Object.fromEntries(Object.entries(obj).filter(([_k, v]) => v != null));
9
+ }
10
+ exports.filterNullAndUndefined = filterNullAndUndefined;
11
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,SAAgB,sBAAsB,CAAgC,GAAM;IAC1E,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAQ,CAAC;AACvF,CAAC;AAFD,wDAEC"}
@@ -1,8 +1,12 @@
1
- import { coresdk, google } from '@temporalio/proto/lib/coresdk';
1
+ import type { google } from '@temporalio/proto/lib/coresdk';
2
2
  import { Workflow } from './interfaces';
3
- export declare type WorkflowIdReusePolicy = coresdk.common.WorkflowIdReusePolicy;
4
- export declare const WorkflowIdReusePolicy: typeof coresdk.common.WorkflowIdReusePolicy;
5
- export declare type RetryPolicy = coresdk.common.IRetryPolicy;
3
+ import { RetryPolicy } from './retry-policy';
4
+ export declare enum WorkflowIdReusePolicy {
5
+ WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED = 0,
6
+ WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1,
7
+ WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2,
8
+ WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE = 3
9
+ }
6
10
  export interface BaseWorkflowOptions {
7
11
  /**
8
12
  * Specifies server behavior if a completed workflow with the same id exists. Note that under no
@@ -14,7 +18,13 @@ export interface BaseWorkflowOptions {
14
18
  * REJECT_DUPLICATE doesn't allow new run independently of the previous run closure status.
15
19
  */
16
20
  workflowIdReusePolicy?: WorkflowIdReusePolicy;
17
- retryPolicy?: coresdk.common.IRetryPolicy;
21
+ /**
22
+ * Controls how a Workflow is retried.
23
+ *
24
+ * Workflows should typically use the system default, do not set this unless
25
+ * you know what you're doing.
26
+ */
27
+ retry?: RetryPolicy;
18
28
  /**
19
29
  * Optional cron schedule for Workflow. If a cron schedule is specified, the Workflow will run
20
30
  * as a cron based on the schedule. The scheduling will be based on UTC time. The schedule for the next run only happens
@@ -78,4 +88,4 @@ export declare type WithCompiledWorkflowDurationOptions<T extends WorkflowDurati
78
88
  workflowRunTimeout?: google.protobuf.IDuration;
79
89
  workflowTaskTimeout?: google.protobuf.IDuration;
80
90
  };
81
- export declare function compileWorkflowOptions<T extends WorkflowDurationOptions>({ workflowExecutionTimeout, workflowRunTimeout, workflowTaskTimeout, ...rest }: T): WithCompiledWorkflowDurationOptions<T>;
91
+ export declare function compileWorkflowOptions<T extends WorkflowDurationOptions>(options: T): WithCompiledWorkflowDurationOptions<T>;
@@ -1,10 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compileWorkflowOptions = exports.WorkflowIdReusePolicy = void 0;
4
- const coresdk_1 = require("@temporalio/proto/lib/coresdk");
5
4
  const time_1 = require("./time");
6
- exports.WorkflowIdReusePolicy = coresdk_1.coresdk.common.WorkflowIdReusePolicy;
7
- function compileWorkflowOptions({ workflowExecutionTimeout, workflowRunTimeout, workflowTaskTimeout, ...rest }) {
5
+ const type_helpers_1 = require("./type-helpers");
6
+ // Avoid importing the proto implementation to reduce workflow bundle size
7
+ // Copied from coresdk.common.WorkflowIdReusePolicy
8
+ var WorkflowIdReusePolicy;
9
+ (function (WorkflowIdReusePolicy) {
10
+ WorkflowIdReusePolicy[WorkflowIdReusePolicy["WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED"] = 0] = "WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED";
11
+ WorkflowIdReusePolicy[WorkflowIdReusePolicy["WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE"] = 1] = "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE";
12
+ WorkflowIdReusePolicy[WorkflowIdReusePolicy["WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY"] = 2] = "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY";
13
+ WorkflowIdReusePolicy[WorkflowIdReusePolicy["WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE"] = 3] = "WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE";
14
+ })(WorkflowIdReusePolicy = exports.WorkflowIdReusePolicy || (exports.WorkflowIdReusePolicy = {}));
15
+ (0, type_helpers_1.checkExtends)();
16
+ function compileWorkflowOptions(options) {
17
+ const { workflowExecutionTimeout, workflowRunTimeout, workflowTaskTimeout, ...rest } = options;
8
18
  return {
9
19
  ...rest,
10
20
  workflowExecutionTimeout: workflowExecutionTimeout ? (0, time_1.msToTs)(workflowExecutionTimeout) : undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-options.js","sourceRoot":"","sources":["../src/workflow-options.ts"],"names":[],"mappings":";;;AAAA,2DAAgE;AAEhE,iCAAgC;AAGnB,QAAA,qBAAqB,GAAG,iBAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC;AA+F1E,SAAgB,sBAAsB,CAAoC,EACxE,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,GAAG,IAAI,EACL;IACF,OAAO;QACL,GAAG,IAAI;QACP,wBAAwB,EAAE,wBAAwB,CAAC,CAAC,CAAC,IAAA,aAAM,EAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,SAAS;QACjG,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,IAAA,aAAM,EAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS;QAC/E,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAA,aAAM,EAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS;KACnF,CAAC;AACJ,CAAC;AAZD,wDAYC"}
1
+ {"version":3,"file":"workflow-options.js","sourceRoot":"","sources":["../src/workflow-options.ts"],"names":[],"mappings":";;;AAGA,iCAAgC;AAChC,iDAA8C;AAE9C,0EAA0E;AAC1E,mDAAmD;AACnD,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,iIAAwC,CAAA;IACxC,yIAA4C,CAAA;IAC5C,iKAAwD,CAAA;IACxD,2IAA6C,CAAA;AAC/C,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED,IAAA,2BAAY,GAA+D,CAAC;AAoG5E,SAAgB,sBAAsB,CACpC,OAAU;IAEV,MAAM,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IAE/F,OAAO;QACL,GAAG,IAAI;QACP,wBAAwB,EAAE,wBAAwB,CAAC,CAAC,CAAC,IAAA,aAAM,EAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,SAAS;QACjG,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,IAAA,aAAM,EAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS;QAC/E,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAA,aAAM,EAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS;KACnF,CAAC;AACJ,CAAC;AAXD,wDAWC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temporalio/common",
3
- "version": "0.16.0",
3
+ "version": "0.17.2",
4
4
  "description": "Temporal.io SDK common library for use in Workflow and normal code",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "author": "Roey Berman <roey@temporal.io>",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@temporalio/proto": "^0.16.0",
16
+ "@temporalio/proto": "^0.17.2",
17
17
  "ms": "^2.1.3"
18
18
  },
19
19
  "bugs": {
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "42638434f033db2b55c43c2a9a7751d883ba17ec"
26
+ "gitHead": "2232465a4f9b0cade28f0c21c2d7856053678728"
27
27
  }
@@ -1,7 +1,16 @@
1
- import { coresdk } from '@temporalio/proto/lib/coresdk';
2
- import { RetryOptions } from './interfaces';
1
+ import type { coresdk } from '@temporalio/proto/lib/coresdk';
2
+ import { RetryPolicy } from './retry-policy';
3
+ import { checkExtends } from './type-helpers';
3
4
 
4
- export const ActivityCancellationType = coresdk.workflow_commands.ActivityCancellationType;
5
+ // Avoid importing the proto implementation to reduce workflow bundle size
6
+ // Copied from coresdk.workflow_commands.ActivityCancellationType
7
+ export enum ActivityCancellationType {
8
+ TRY_CANCEL = 0,
9
+ WAIT_CANCELLATION_COMPLETED = 1,
10
+ ABANDON = 2,
11
+ }
12
+
13
+ checkExtends<coresdk.workflow_commands.ActivityCancellationType, ActivityCancellationType>();
5
14
 
6
15
  /**
7
16
  * Options for remote activity invocation - will be processed from a task queue.
@@ -37,9 +46,9 @@ export interface ActivityOptions {
37
46
  heartbeatTimeout?: string | number;
38
47
 
39
48
  /**
40
- * RetryOptions that define how activity is retried in case of failure. If this is not set, then the server-defined default activity retry policy will be used. To ensure zero retries, set maximum attempts to 1.
49
+ * RetryPolicy that define how activity is retried in case of failure. If this is not set, then the server-defined default activity retry policy will be used. To ensure zero retries, set maximum attempts to 1.
41
50
  */
42
- retry?: RetryOptions;
51
+ retry?: RetryPolicy;
43
52
 
44
53
  /**
45
54
  * Maximum time of a single Activity execution attempt.
@@ -1,4 +1,4 @@
1
- import * as iface from '@temporalio/proto/lib/coresdk';
1
+ import type * as iface from '@temporalio/proto/lib/coresdk';
2
2
  import { TextEncoder, TextDecoder } from '../encoding';
3
3
 
4
4
  export type Payload = iface.coresdk.common.IPayload;
package/src/failure.ts CHANGED
@@ -1,12 +1,36 @@
1
- import { temporal } from '@temporalio/proto/lib/coresdk';
1
+ import type { temporal } from '@temporalio/proto/lib/coresdk';
2
2
  import { DataConverter, arrayFromPayloads } from './converter/data-converter';
3
+ import { checkExtends } from './type-helpers';
3
4
 
4
5
  export const FAILURE_SOURCE = 'TypeScriptSDK';
5
6
  export type ProtoFailure = temporal.api.failure.v1.IFailure;
6
- export type TimeoutType = temporal.api.enums.v1.TimeoutType;
7
- export const TimeoutType = temporal.api.enums.v1.TimeoutType;
8
- export type RetryState = temporal.api.enums.v1.RetryState;
9
- export const RetryState = temporal.api.enums.v1.RetryState;
7
+ // Avoid importing the proto implementation to reduce workflow bundle size
8
+ // Copied from temporal.api.enums.v1.TimeoutType
9
+ export enum TimeoutType {
10
+ TIMEOUT_TYPE_UNSPECIFIED = 0,
11
+ TIMEOUT_TYPE_START_TO_CLOSE = 1,
12
+ TIMEOUT_TYPE_SCHEDULE_TO_START = 2,
13
+ TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3,
14
+ TIMEOUT_TYPE_HEARTBEAT = 4,
15
+ }
16
+
17
+ checkExtends<temporal.api.enums.v1.TimeoutType, TimeoutType>();
18
+
19
+ // Avoid importing the proto implementation to reduce workflow bundle size
20
+ // Copied from temporal.api.enums.v1.RetryState
21
+ export enum RetryState {
22
+ RETRY_STATE_UNSPECIFIED = 0,
23
+ RETRY_STATE_IN_PROGRESS = 1,
24
+ RETRY_STATE_NON_RETRYABLE_FAILURE = 2,
25
+ RETRY_STATE_TIMEOUT = 3,
26
+ RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED = 4,
27
+ RETRY_STATE_RETRY_POLICY_NOT_SET = 5,
28
+ RETRY_STATE_INTERNAL_SERVER_ERROR = 6,
29
+ RETRY_STATE_CANCEL_REQUESTED = 7,
30
+ }
31
+
32
+ checkExtends<temporal.api.enums.v1.RetryState, RetryState>();
33
+
10
34
  export type WorkflowExecution = temporal.api.common.v1.IWorkflowExecution;
11
35
 
12
36
  /**
@@ -90,8 +114,8 @@ export class ApplicationFailure extends TemporalFailure {
90
114
  * @param details optional details about the failure. They are serialized using the same approach
91
115
  * as arguments and results.
92
116
  */
93
- public static retryable(message: string | undefined, type: string, ...details: unknown[]): ApplicationFailure {
94
- return new this(message, type, false, details);
117
+ public static retryable(message: string | undefined, type?: string, ...details: unknown[]): ApplicationFailure {
118
+ return new this(message, type ?? 'Error', false, details);
95
119
  }
96
120
 
97
121
  /**
@@ -105,8 +129,8 @@ export class ApplicationFailure extends TemporalFailure {
105
129
  * @param details optional details about the failure. They are serialized using the same approach
106
130
  * as arguments and results.
107
131
  */
108
- public static nonRetryable(message: string | undefined, type: string, ...details: unknown[]): ApplicationFailure {
109
- return new this(message, type, true, details);
132
+ public static nonRetryable(message: string | undefined, type?: string, ...details: unknown[]): ApplicationFailure {
133
+ return new this(message, type ?? 'Error', true, details);
110
134
  }
111
135
  }
112
136
 
package/src/index.ts CHANGED
@@ -9,7 +9,9 @@ export * from './errors';
9
9
  export * from './failure';
10
10
  export * from './interceptors';
11
11
  export * from './interfaces';
12
+ export * from './retry-policy';
12
13
  export * from './time';
13
14
  export * from './tls-config';
14
15
  export * from './workflow-handle';
15
16
  export * from './workflow-options';
17
+ export * from './utils';
@@ -1,4 +1,4 @@
1
- import { coresdk } from '@temporalio/proto/lib/coresdk';
1
+ import type { coresdk } from '@temporalio/proto/lib/coresdk';
2
2
  import { AnyFunc, OmitLastParam } from './type-helpers';
3
3
 
4
4
  /**
package/src/interfaces.ts CHANGED
@@ -13,6 +13,8 @@ export type Workflow = (...args: any[]) => WorkflowReturnType;
13
13
 
14
14
  /**
15
15
  * An interface representing a Workflow signal definition, as returned from {@link defineSignal}
16
+ *
17
+ * @remarks `_Args` can be used for parameter type inference in handler functions and *WorkflowHandle methods.
16
18
  */
17
19
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
20
  export interface SignalDefinition<_Args extends any[] = []> {
@@ -22,6 +24,8 @@ export interface SignalDefinition<_Args extends any[] = []> {
22
24
 
23
25
  /**
24
26
  * An interface representing a Workflow query definition as returned from {@link defineQuery}
27
+ *
28
+ * @remarks `_Args` and `_Ret` can be used for parameter type inference in handler functions and *WorkflowHandle methods.
25
29
  */
26
30
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
31
  export interface QueryDefinition<_Ret, _Args extends any[] = []> {
@@ -31,43 +35,3 @@ export interface QueryDefinition<_Ret, _Args extends any[] = []> {
31
35
 
32
36
  /** Get the "unwrapped" return type (without Promise) of the execute handler from Workflow type `W` */
33
37
  export type WorkflowResultType<W extends Workflow> = ReturnType<W> extends Promise<infer R> ? R : never;
34
-
35
- /**
36
- * Defines options for activity retries
37
- * @see {@link https://www.javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/common/RetryOptions.Builder.html | Java SDK definition}
38
- */
39
- export interface RetryOptions {
40
- /**
41
- * Coefficient used to calculate the next retry interval.
42
- * The next retry interval is previous interval multiplied by this coefficient.
43
- * @minimum 1
44
- * @default 2
45
- */
46
- backoffCoefficient?: number;
47
- /**
48
- * Interval of the first retry.
49
- * If coefficient is 1 then it is used for all retries
50
- * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
51
- */
52
- initialInterval: string | number;
53
- /**
54
- * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
55
- * @minimum 1
56
- * @default Infinity
57
- */
58
- maximumAttempts?: number;
59
- /**
60
- * Maximum interval between retries.
61
- * Exponential backoff leads to interval increase.
62
- * This value is the cap of the increase.
63
- *
64
- * @default 100x of {@link initialInterval}
65
- * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
66
- */
67
- maximumInterval?: string | number;
68
-
69
- /**
70
- * List of application failures types to not retry.
71
- */
72
- nonRetryableErrorTypes?: string[];
73
- }
@@ -0,0 +1,73 @@
1
+ import type { temporal } from '@temporalio/proto';
2
+ import { ValueError } from '.';
3
+ import { msOptionalToNumber, msOptionalToTs, msToNumber, msToTs } from './time';
4
+
5
+ /**
6
+ * Options for retrying Workflows and Activities
7
+ */
8
+ export interface RetryPolicy {
9
+ /**
10
+ * Coefficient used to calculate the next retry interval.
11
+ * The next retry interval is previous interval multiplied by this coefficient.
12
+ * @minimum 1
13
+ * @default 2
14
+ */
15
+ backoffCoefficient?: number;
16
+ /**
17
+ * Interval of the first retry.
18
+ * If coefficient is 1 then it is used for all retries
19
+ * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
20
+ * @default 1 second
21
+ */
22
+ initialInterval?: string | number;
23
+ /**
24
+ * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
25
+ * @minimum 1
26
+ * @default Infinity
27
+ */
28
+ maximumAttempts?: number;
29
+ /**
30
+ * Maximum interval between retries.
31
+ * Exponential backoff leads to interval increase.
32
+ * This value is the cap of the increase.
33
+ *
34
+ * @default 100x of {@link initialInterval}
35
+ * @format {@link https://www.npmjs.com/package/ms | ms} formatted string or number of milliseconds
36
+ */
37
+ maximumInterval?: string | number;
38
+
39
+ /**
40
+ * List of application failures types to not retry.
41
+ */
42
+ nonRetryableErrorTypes?: string[];
43
+ }
44
+
45
+ /**
46
+ * Turns a TS RetryPolicy into a proto compatible RetryPolicy
47
+ */
48
+ export function compileRetryPolicy(retryPolicy: RetryPolicy): temporal.api.common.v1.IRetryPolicy {
49
+ if (retryPolicy.backoffCoefficient != null && retryPolicy.backoffCoefficient <= 0) {
50
+ throw new ValueError('RetryPolicy.backoffCoefficient must be greater than 0');
51
+ }
52
+ if (retryPolicy.maximumAttempts != null && retryPolicy.maximumAttempts <= 0) {
53
+ throw new ValueError('RetryPolicy.maximumAttempts must be greater than 0');
54
+ }
55
+ const maximumInterval = msOptionalToNumber(retryPolicy.maximumInterval);
56
+ const initialInterval = msToNumber(retryPolicy.initialInterval ?? 1000);
57
+ if (maximumInterval === 0) {
58
+ throw new ValueError('RetryPolicy.maximumInterval cannot be 0');
59
+ }
60
+ if (initialInterval === 0) {
61
+ throw new ValueError('RetryPolicy.initialInterval cannot be 0');
62
+ }
63
+ if (maximumInterval != null && maximumInterval < initialInterval) {
64
+ throw new ValueError('RetryPolicy.maximumInterval cannot be less than its initialInterval');
65
+ }
66
+ return {
67
+ maximumAttempts: retryPolicy.maximumAttempts,
68
+ initialInterval: msToTs(initialInterval),
69
+ maximumInterval: msOptionalToTs(maximumInterval),
70
+ backoffCoefficient: retryPolicy.backoffCoefficient,
71
+ nonRetryableErrorTypes: retryPolicy.nonRetryableErrorTypes,
72
+ };
73
+ }
package/src/time.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import Long from 'long';
2
2
  import ms from 'ms';
3
- import * as iface from '@temporalio/proto/lib/coresdk';
3
+ import type * as iface from '@temporalio/proto/lib/coresdk';
4
4
  import { ValueError } from './errors';
5
5
 
6
6
  // NOTE: these are the same interface in JS
@@ -59,6 +59,11 @@ export function msOptionalToTs(str: string | number | undefined): Timestamp | un
59
59
  return msNumberToTs(ms(str));
60
60
  }
61
61
 
62
+ export function msOptionalToNumber(val: string | number | undefined): number | undefined {
63
+ if (val === undefined) return undefined;
64
+ return msToNumber(val);
65
+ }
66
+
62
67
  export function msToNumber(val: string | number): number {
63
68
  if (typeof val === 'number') {
64
69
  return val;
@@ -4,3 +4,8 @@ export type AnyFunc = (...args: any[]) => any;
4
4
  export type OmitLast<T> = T extends [...infer REST, any] ? REST : never;
5
5
  /** F with all arguments but the last */
6
6
  export type OmitLastParam<F extends AnyFunc> = (...args: OmitLast<Parameters<F>>) => ReturnType<F>;
7
+
8
+ /** Verify that an type _Copy extends _Orig */
9
+ export function checkExtends<_Orig, _Copy extends _Orig>(): void {
10
+ // noop, just type check
11
+ }
package/src/utils.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Helper to prevent undefined and null values overriding defaults when merging maps
3
+ */
4
+ export function filterNullAndUndefined<T extends Record<string, any>>(obj: T): T {
5
+ return Object.fromEntries(Object.entries(obj).filter(([_k, v]) => v != null)) as any;
6
+ }
@@ -1,10 +1,19 @@
1
- import { coresdk, google } from '@temporalio/proto/lib/coresdk';
1
+ import type { coresdk, google } from '@temporalio/proto/lib/coresdk';
2
2
  import { Workflow } from './interfaces';
3
+ import { RetryPolicy } from './retry-policy';
3
4
  import { msToTs } from './time';
5
+ import { checkExtends } from './type-helpers';
4
6
 
5
- export type WorkflowIdReusePolicy = coresdk.common.WorkflowIdReusePolicy;
6
- export const WorkflowIdReusePolicy = coresdk.common.WorkflowIdReusePolicy;
7
- export type RetryPolicy = coresdk.common.IRetryPolicy;
7
+ // Avoid importing the proto implementation to reduce workflow bundle size
8
+ // Copied from coresdk.common.WorkflowIdReusePolicy
9
+ export enum WorkflowIdReusePolicy {
10
+ WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED = 0,
11
+ WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1,
12
+ WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2,
13
+ WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE = 3,
14
+ }
15
+
16
+ checkExtends<coresdk.common.WorkflowIdReusePolicy, WorkflowIdReusePolicy>();
8
17
 
9
18
  export interface BaseWorkflowOptions {
10
19
  /**
@@ -18,7 +27,13 @@ export interface BaseWorkflowOptions {
18
27
  */
19
28
  workflowIdReusePolicy?: WorkflowIdReusePolicy;
20
29
 
21
- retryPolicy?: coresdk.common.IRetryPolicy;
30
+ /**
31
+ * Controls how a Workflow is retried.
32
+ *
33
+ * Workflows should typically use the system default, do not set this unless
34
+ * you know what you're doing.
35
+ */
36
+ retry?: RetryPolicy;
22
37
 
23
38
  /**
24
39
  * Optional cron schedule for Workflow. If a cron schedule is specified, the Workflow will run
@@ -98,12 +113,11 @@ export type WithCompiledWorkflowDurationOptions<T extends WorkflowDurationOption
98
113
  workflowTaskTimeout?: google.protobuf.IDuration;
99
114
  };
100
115
 
101
- export function compileWorkflowOptions<T extends WorkflowDurationOptions>({
102
- workflowExecutionTimeout,
103
- workflowRunTimeout,
104
- workflowTaskTimeout,
105
- ...rest
106
- }: T): WithCompiledWorkflowDurationOptions<T> {
116
+ export function compileWorkflowOptions<T extends WorkflowDurationOptions>(
117
+ options: T
118
+ ): WithCompiledWorkflowDurationOptions<T> {
119
+ const { workflowExecutionTimeout, workflowRunTimeout, workflowTaskTimeout, ...rest } = options;
120
+
107
121
  return {
108
122
  ...rest,
109
123
  workflowExecutionTimeout: workflowExecutionTimeout ? msToTs(workflowExecutionTimeout) : undefined,
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@types/long/index.d.ts","../../node_modules/protobufjs/index.d.ts","../proto/lib/coresdk.d.ts","./src/interfaces.ts","./src/activity-options.ts","./src/encoding.ts","./src/errors.ts","./src/converter/types.ts","./src/converter/payload-converter.ts","./src/converter/data-converter.ts","./src/failure.ts","./src/type-helpers.ts","./src/interceptors.ts","../../node_modules/@types/ms/index.d.ts","./src/time.ts","./src/tls-config.ts","./src/workflow-handle.ts","./src/workflow-options.ts","./src/index.ts","../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.d.ts","../../node_modules/@opentelemetry/api/build/src/baggage/types.d.ts","../../node_modules/@opentelemetry/api/build/src/baggage/utils.d.ts","../../node_modules/@opentelemetry/api/build/src/common/exception.d.ts","../../node_modules/@opentelemetry/api/build/src/common/time.d.ts","../../node_modules/@opentelemetry/api/build/src/diag/types.d.ts","../../node_modules/@opentelemetry/api/build/src/diag/consolelogger.d.ts","../../node_modules/@opentelemetry/api/build/src/diag/index.d.ts","../../node_modules/@opentelemetry/api/build/src/context/types.d.ts","../../node_modules/@opentelemetry/api/build/src/propagation/textmappropagator.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/attributes.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/trace_state.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/span_context.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/link.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/status.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/span.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/span_kind.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/spanoptions.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/tracer.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/proxytracer.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/tracer_provider.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/proxytracerprovider.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/samplingresult.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/sampler.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.d.ts","../../node_modules/@opentelemetry/api/build/src/context/context.d.ts","../../node_modules/@opentelemetry/api/build/src/api/context.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/context-utils.d.ts","../../node_modules/@opentelemetry/api/build/src/api/trace.d.ts","../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.d.ts","../../node_modules/@opentelemetry/api/build/src/api/propagation.d.ts","../../node_modules/@opentelemetry/api/build/src/api/diag.d.ts","../../node_modules/@opentelemetry/api/build/src/index.d.ts","./src/otel.ts","../../node_modules/@types/retry/index.d.ts","../../node_modules/@types/async-retry/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/keyv/index.d.ts","../../node_modules/@types/http-cache-semantics/index.d.ts","../../node_modules/@types/responselike/index.d.ts","../../node_modules/@types/cacheable-request/index.d.ts","../../node_modules/@types/cross-spawn/index.d.ts","../../node_modules/@types/dedent/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/eslint/lib/rules/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/fs-extra/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/tough-cookie/index.d.ts","../../node_modules/@types/got/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/minipass/index.d.ts","../../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts","../../node_modules/@types/node-fetch/externals.d.ts","../../node_modules/@types/node-fetch/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/pidusage/index.d.ts","../../node_modules/@types/prompts/index.d.ts","../../node_modules/ts-toolbelt/out/index.d.ts","../../node_modules/@types/ramda/tools.d.ts","../../node_modules/@types/ramda/index.d.ts","../../node_modules/@types/rimraf/index.d.ts","../../node_modules/@types/tar/index.d.ts","../../node_modules/@types/uuid/index.d.ts","../../node_modules/@types/validate-npm-package-name/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"e8465811693dfe4e96ef2b3dffda539d6edfe896961b7af37b44db2c0e48532b","1558c642e03689d42843e7b047b9c20e77ee09ab388ff854484db5dcfbed11da","f87577177b8099a7370923a26ae62e580639d45430196b8d500ce1c7cdce1eef","5452d363b9b801d14e34e3beb97b33baf2f23e1651cfef3d349973513fc0e083","f6c3c01273c538987ec4cae52b96255e048e16735fa1c8a856da8b95b372fec8","d95f9e88aa9f69a1127b31321137dd97a58668f17cc764603a693314a038a3dd","fadbcb98548455f18159af410b79939a9ebb79030da1cf55a43a5ad473cc5bd6","e26f38e92564a378b373d3a6fc472420f3a4277587e7d005380cb81d8413b022","891092d04d6ae4cee181495683768dcd5e4afb04bb5abc5e132a9247d561be77","b62953ae9d2f47bf040387fd43f0ca19c231608315dc1781721b1f91b09c5e5e","52f26ff6dcb7d27b92883b65c317759102fb353860b6ccfd4e264e7cec400e7f","2b70cb84c62e900fc8a7bf10b5db65c738a26731a1bdf5a6fadbc434acfd0dcd","dc218532d4e7cf6b75f61ad8ca7dafca64918e33982b734248dfddd05b8c2eef","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","c35393d54178f0fc0ef67c5eb91f4bd4f955d5bf90ec7ae8ee3ff0ec36ae541e","595b97f94582ecaa0cc1a2d97be4223495ae718a62895af169be93b53066f905","d3b36f73e1462b5e9ef21be195ec2b6f996730bff67753140f2db1ff6089cbdc","25680739c421eb37cdc98842af0c5e29453a7de48de2692457f914429edd3f37","b984c2d0a9c618d9b08e2bd12efc331892f7b39e7032344f682176164a4c8578","4a36c925dcd89ed988b3c2844b0099416d176c898a7bd93159fda60b8441ccc8","fc2220a0370fe4c178159294a3aad1dbe1f790bd3544cc6d864aa3d7b1df1b5d","aaf3741cf4a11ead5269c782f0d8f579d631fed8f5f080ee369ab2f09ab0a5e6","b820818bb5f8ebb713633be7a3db6191aa12341ba23deb85af009006a9277a20","d6b875234878a2aa1febbfbcf59f6f8ee5bdf01b55a111238416bf00bc4f4d74","2ea9ab59e2b3f625d63e524f82dba5fad02412e13e29132023c0917977d0c0e6","a8b7eec40be2f16f3a276fd99e1c5ad5ef3565f56319c763be2d8983810033a2","e5ca18285f6adbee0ea27e89012e3e5e0816210eba73b60bcc534247543d7a46","2d7fed266cd1b54dece5de5cb58b2ef6f72736163b988bb0cbb090b8b152d3a8","4bb9ec99d41a4b7a433ae8b61bcf5a1c0b4e0eff253ff459f4ccfda64fe4bf51","f6607c445de0dbca0a1e0cdedff690ad27a01b230817e0074cda28574e7399cf","5bd1d2dde43d2f2dbe8370fd5e0bffbb17f98a75940f47fe7ee94b50f12e3e12","264f343285aca3a0cbc0f2609ba69b664b3ec714404dd4a09d2860de9e7c6c02","f342fa6a03a2941e83b795586ab91ef410ec59fdebf21e97027ce1eac273fc5f","79b0d8826c506b6eb75937a8a466dd29fad2fb8cff0f05f97bcacb962ed3f56e","10080687eba89fc69232f38ffc45da8f90d3ca137507453ee62497d6f458f740","496689ce350fd7e4c939966118517b0cb174f5acb2e1e6163688b18bef8de8b2","1c8a2cc119fc139415f49681634254b218d4c5c495ca11103db50ae9c90d54d1","76c71c77e675f16b339789d17fc1e6589a98241d731dda429828cee107904857","0f1e60175a7fe4a1a9d6ddde857a19333c7f4682ec4f2ff4347cb8ff729cbe92","975fda3a8a7e46679765f9fc272235e07f36646b8af9d989a622d782b0cd3c2b","b3214b6a5e14b5a994f856fda1562c89cd208caf0c44040980a59cffa9ad3e63","9d34f34601bf2058f5045ad6c15fab3c323e69353c14713b5365e0ecc0c87d75","e73ea58406c7aa00e04d16a93ac1a8dd614433396ae3e0b6855ddb83d0544837","9d6796534f08ea5b84c211e224fd6ec1430113c07195c6e29dd5fd52f804df7c","d4dc45e2085acd5b61836f9ca03f148d620b781c983411d0963317a155ffd32c","76388575482f6c37a446179cc8c6825f910cdafc9ed55daaee7abf3f6b73a29e","6116ea81a38eb614b32317eb87c2f903915eaae16bf5a59e9838723e7cb06ab4","538bef0ddc796f3d6e5c7d90816e1972e11acc7d962e7e9b1eec3e192cbf1a99","b60cdf96b6934a221ce3b66b9bb82734843c4df27da12acc6c43c3a0e46adea5","3de96ee1d0e54cac8396ff88bab0be56fd2149daaba05d1b08968932ae5cec37","8ece80ff440d4aec6bfa8bb50685599cd199c19082f256bdea2c95c3ba7b3ea6","374421af52bad74f65653c9524fba315c9157b6cbce117d902e9d1ad625abb01","bcb58afb796b9b35068ca86768aac0934b738f141e54ed803a2be867f229a4a6","b357fcf1b0a37b9c3e2fec33fb2949e4fed07c6b2c617185de90f6d81da7a5e6","923df0e4714decae8f51ec4d17ab60974dd495e19045dcbb313b91479dea5f24","58a3914b1cce4560d9ad6eee2b716caaa030eda0a90b21ca2457ea9e2783eaa3","79d2fdaa1e0bf1a62b59de50e185374b74d22dc43144a78eab1bbcca0a4a2550","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"6dfd135b38ab97c536d9c966fc5a5a879a19c6ed75c2c9633902be1ef0945ff7","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","a361a26932d73497a174a6d48c53cfedb55f735f20e8638fdf7b25cdeaac9ca4","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e6ef68f677c1b63967d87568043b8af9d2dfd71d5873acd1de3abeb1db606741","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","5e3a55837aa1f42af2d2334c9b750f59f5f50a2205471875f5dd6aadc3e49ddb","70646d9cb37b62611766d18a9bcca6cbf28ca9aec33a66244e974056ab1193f6",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"0133ebdd17a823ae56861948870cde4dac18dd8818ab641039c85bbb720429e0","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","7d7c8ef7d48a035142c07dae60545ecc0e4af4c337742760cb09726f2f8e31db","874d84ca5699231d5af2868fef01fc63f948bd83be928881479db48508f92ca0","82772e5d55062a042a2715a555d347275a663940926fc785705eb082010cb9f6","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","660fa40695c7ca19a59fd09d31d495d952eee946e445a2c455ec63f255ec3050","19bf3ca55fd356755cda33e6e8c753d3d13d4aaa54ad9c5c032927f362188066","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","97057c24c7f25f01fa0db7a48b7885e0d9e73ace397d8cd71d9f7fcbdc4fab6f","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","062bd2910098fc059ba93e347649b3e126c555f7b144033d21d3f8ef63d3e39b","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","fadd7bd4cb8b67e1f89b5688e9d896c3d3241c7aa816faba9bda78e3e166be22","4c8239bedbe72ce9405efb578f03f56219dba4ceb5a57ca3d2dc10334612f210","9df147746b0cbd11d022b564e6fdd43ac79b643dc579d2123317ee01cc4f0d70","0bb43f1eec1332f72feeea5d0c5d37e885acc57afc67c1a43f289a015703352b","d3d48aff7cf7d1cec691005f59cbb4ca751b0d93f3b40685e5e81f31e6348234","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","239f0c1d83d1ca9677327198196ee2ce6827dc7b469771ab5abf7bea7fbdb674","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","bae219fc966077e88ec22d2dc2eb24617d3244d3593afdc5f2457fabd27d7462"],"options":{"composite":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"fileIdsList":[[66,139],[63,139],[60,66,67,89,139],[76,78,83,87,139],[59,66,139],[139],[58,139],[59,139],[63,64,139],[59,60,61,62,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,88,90,91,139],[66,70,73,139],[70,139],[68,70,139],[66,73,75,76,139],[76,78,139],[66,68,71,74,80,139],[68,139],[61,62,68,70,72,139],[69,139],[70,73,139],[62,68,71,74,139],[66,73,75,139],[76,139],[94,139],[111,114,138,139,146,147,148,149],[101,139,146],[139,156,157],[139,153,154,155,156],[139,157],[112,139,146],[111,112,139,146,160],[114,116,128,138,139,146,162],[111,139,146],[114,138,139,146,166,167],[114,128,139,146],[96,139],[99,139],[100,105,139],[101,111,112,119,128,138,139],[101,102,111,119,139],[103,139],[104,105,112,120,139],[105,128,135,139],[106,108,111,119,139],[107,139],[108,109,139],[110,111,139],[111,139],[111,112,113,128,138,139],[111,112,113,128,139],[114,119,128,138,139],[111,112,114,115,119,128,135,138,139],[114,116,128,135,138,139],[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145],[111,117,139],[118,138,139],[108,111,119,128,139],[120,139],[121,139],[99,122,139],[123,137,139,143],[124,139],[125,139],[111,126,139],[126,127,139,141],[111,128,129,130,139],[128,130,139],[128,129,139],[131,139],[132,139],[111,133,134,139],[133,134,139],[105,119,135,139],[136,139],[119,137,139],[100,114,125,138,139],[105,139],[128,139,140],[139,141],[139,142],[100,105,111,113,122,128,138,139,141,143],[128,139,144],[139,173,174],[139,173],[112,139,146,161],[111,128,139,144,146,165],[41,42,139],[45,46,47,139],[45,46,139],[41,44,139],[41,48,139],[42,43,45,48,49,51,53,54,55,56,139],[41,50,139],[48,51,92,139],[39,41,45,52,139],[42,139],[41,42,53,139],[39,40,139]],"referencedMap":[[86,1],[91,2],[90,3],[88,4],[89,5],[58,6],[59,7],[60,8],[61,6],[62,6],[85,1],[66,6],[64,2],[65,9],[63,6],[92,10],[67,1],[68,6],[87,11],[84,12],[71,13],[77,14],[79,15],[81,16],[80,17],[73,18],[70,19],[74,6],[83,20],[75,21],[72,6],[82,6],[69,6],[76,22],[78,23],[95,24],[150,25],[151,26],[152,6],[158,27],[153,6],[157,28],[154,29],[156,6],[159,30],[161,31],[163,32],[148,6],[155,6],[147,33],[39,6],[160,6],[164,6],[165,33],[52,6],[167,6],[168,34],[166,35],[96,36],[97,36],[99,37],[100,38],[101,39],[102,40],[103,41],[104,42],[105,43],[106,44],[107,45],[108,46],[109,46],[110,47],[111,48],[112,49],[113,50],[98,6],[145,6],[114,51],[115,52],[116,53],[146,54],[117,55],[118,56],[119,57],[120,58],[121,59],[122,60],[123,61],[124,62],[125,63],[126,64],[127,65],[128,66],[130,67],[129,68],[131,69],[132,70],[133,71],[134,72],[135,73],[136,74],[137,75],[138,76],[139,77],[140,78],[141,79],[142,80],[143,81],[144,82],[169,6],[170,6],[171,6],[172,6],[175,83],[174,84],[149,35],[94,6],[176,85],[177,86],[162,6],[178,6],[179,6],[40,6],[173,84],[9,6],[8,6],[2,6],[10,6],[11,6],[12,6],[13,6],[14,6],[15,6],[16,6],[17,6],[3,6],[4,6],[21,6],[18,6],[19,6],[20,6],[22,6],[23,6],[24,6],[5,6],[25,6],[26,6],[27,6],[28,6],[6,6],[29,6],[30,6],[31,6],[32,6],[7,6],[37,6],[33,6],[34,6],[35,6],[36,6],[1,6],[38,6],[43,87],[48,88],[47,89],[46,90],[44,6],[45,6],[49,91],[57,92],[51,93],[42,6],[93,94],[53,95],[54,6],[50,6],[55,96],[56,97],[41,98]],"exportedModulesMap":[[86,1],[91,2],[90,3],[88,4],[89,5],[58,6],[59,7],[60,8],[61,6],[62,6],[85,1],[66,6],[64,2],[65,9],[63,6],[92,10],[67,1],[68,6],[87,11],[84,12],[71,13],[77,14],[79,15],[81,16],[80,17],[73,18],[70,19],[74,6],[83,20],[75,21],[72,6],[82,6],[69,6],[76,22],[78,23],[95,24],[150,25],[151,26],[152,6],[158,27],[153,6],[157,28],[154,29],[156,6],[159,30],[161,31],[163,32],[148,6],[155,6],[147,33],[39,6],[160,6],[164,6],[165,33],[52,6],[167,6],[168,34],[166,35],[96,36],[97,36],[99,37],[100,38],[101,39],[102,40],[103,41],[104,42],[105,43],[106,44],[107,45],[108,46],[109,46],[110,47],[111,48],[112,49],[113,50],[98,6],[145,6],[114,51],[115,52],[116,53],[146,54],[117,55],[118,56],[119,57],[120,58],[121,59],[122,60],[123,61],[124,62],[125,63],[126,64],[127,65],[128,66],[130,67],[129,68],[131,69],[132,70],[133,71],[134,72],[135,73],[136,74],[137,75],[138,76],[139,77],[140,78],[141,79],[142,80],[143,81],[144,82],[169,6],[170,6],[171,6],[172,6],[175,83],[174,84],[149,35],[94,6],[176,85],[177,86],[162,6],[178,6],[179,6],[40,6],[173,84],[9,6],[8,6],[2,6],[10,6],[11,6],[12,6],[13,6],[14,6],[15,6],[16,6],[17,6],[3,6],[4,6],[21,6],[18,6],[19,6],[20,6],[22,6],[23,6],[24,6],[5,6],[25,6],[26,6],[27,6],[28,6],[6,6],[29,6],[30,6],[31,6],[32,6],[7,6],[37,6],[33,6],[34,6],[35,6],[36,6],[1,6],[38,6],[43,87],[48,88],[47,89],[46,90],[44,6],[45,6],[49,91],[57,92],[51,93],[42,6],[93,94],[53,95],[54,6],[50,6],[55,96],[56,97],[41,98]],"semanticDiagnosticsPerFile":[86,91,90,88,89,58,59,60,61,62,85,66,64,65,63,92,67,68,87,84,71,77,79,81,80,73,70,74,83,75,72,82,69,76,78,95,150,151,152,158,153,157,154,156,159,161,163,148,155,147,39,160,164,165,52,167,168,166,96,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,98,145,114,115,116,146,117,118,119,120,121,122,123,124,125,126,127,128,130,129,131,132,133,134,135,136,137,138,139,140,141,142,143,144,169,170,171,172,175,174,149,94,176,177,162,178,179,40,173,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,37,33,34,35,36,1,38,43,48,47,46,44,45,49,57,51,42,93,53,54,50,55,56,41]},"version":"4.4.4"}
1
+ {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@types/long/index.d.ts","../../node_modules/protobufjs/index.d.ts","../proto/lib/coresdk.d.ts","../proto/lib/temporal.d.ts","../proto/lib/index.d.ts","./src/errors.ts","./src/encoding.ts","./src/converter/types.ts","./src/converter/payload-converter.ts","./src/converter/data-converter.ts","./src/type-helpers.ts","./src/failure.ts","./src/interceptors.ts","./src/interfaces.ts","../../node_modules/@types/ms/index.d.ts","./src/time.ts","./src/tls-config.ts","./src/workflow-handle.ts","./src/workflow-options.ts","./src/utils.ts","./src/index.ts","./src/retry-policy.ts","./src/activity-options.ts","../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.d.ts","../../node_modules/@opentelemetry/api/build/src/baggage/types.d.ts","../../node_modules/@opentelemetry/api/build/src/baggage/utils.d.ts","../../node_modules/@opentelemetry/api/build/src/common/exception.d.ts","../../node_modules/@opentelemetry/api/build/src/common/time.d.ts","../../node_modules/@opentelemetry/api/build/src/diag/types.d.ts","../../node_modules/@opentelemetry/api/build/src/diag/consolelogger.d.ts","../../node_modules/@opentelemetry/api/build/src/diag/index.d.ts","../../node_modules/@opentelemetry/api/build/src/context/types.d.ts","../../node_modules/@opentelemetry/api/build/src/propagation/textmappropagator.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/attributes.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/trace_state.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/span_context.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/link.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/status.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/span.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/span_kind.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/spanoptions.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/tracer.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/proxytracer.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/tracer_provider.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/proxytracerprovider.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/samplingresult.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/sampler.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.d.ts","../../node_modules/@opentelemetry/api/build/src/context/context.d.ts","../../node_modules/@opentelemetry/api/build/src/api/context.d.ts","../../node_modules/@opentelemetry/api/build/src/trace/context-utils.d.ts","../../node_modules/@opentelemetry/api/build/src/api/trace.d.ts","../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.d.ts","../../node_modules/@opentelemetry/api/build/src/api/propagation.d.ts","../../node_modules/@opentelemetry/api/build/src/api/diag.d.ts","../../node_modules/@opentelemetry/api/build/src/index.d.ts","./src/otel.ts","../../node_modules/@types/retry/index.d.ts","../../node_modules/@types/async-retry/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/keyv/index.d.ts","../../node_modules/@types/http-cache-semantics/index.d.ts","../../node_modules/@types/responselike/index.d.ts","../../node_modules/@types/cacheable-request/index.d.ts","../../node_modules/@types/cross-spawn/index.d.ts","../../node_modules/@types/dedent/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/fs-extra/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/tough-cookie/index.d.ts","../../node_modules/@types/got/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/minipass/index.d.ts","../../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts","../../node_modules/@types/node-fetch/externals.d.ts","../../node_modules/@types/node-fetch/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/pidusage/index.d.ts","../../node_modules/@types/prompts/index.d.ts","../../node_modules/ts-toolbelt/out/index.d.ts","../../node_modules/@types/ramda/tools.d.ts","../../node_modules/@types/ramda/index.d.ts","../../node_modules/@types/rimraf/index.d.ts","../../node_modules/@types/tar/index.d.ts","../../node_modules/@types/uuid/index.d.ts","../../node_modules/@types/validate-npm-package-name/index.d.ts"],"fileInfos":[{"version":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"e8465811693dfe4e96ef2b3dffda539d6edfe896961b7af37b44db2c0e48532b","1558c642e03689d42843e7b047b9c20e77ee09ab388ff854484db5dcfbed11da","f87577177b8099a7370923a26ae62e580639d45430196b8d500ce1c7cdce1eef","ee45dfb34be7183967781c4f1fe3d16b434bf1e95da56c0fbb1144e08e19d70b","64d277c707a84956da70e9f30dd63dd507bbe0ed532b236e6bcedb08530f9eb5","fadbcb98548455f18159af410b79939a9ebb79030da1cf55a43a5ad473cc5bd6","d95f9e88aa9f69a1127b31321137dd97a58668f17cc764603a693314a038a3dd","a3bc0a3686d7ad733f899b5cb50931560066b04d94732a281ff836a3f79b33c1","891092d04d6ae4cee181495683768dcd5e4afb04bb5abc5e132a9247d561be77","b62953ae9d2f47bf040387fd43f0ca19c231608315dc1781721b1f91b09c5e5e","a7f91cf71a31b81bb2e307e1686ce809e845ce2c1076b18fbd1a9ed50e2e5a3c","5c91abadfd45413027abdeba1784b184b06c9a6a7df6e78453365491e91a6aa8","da47da3e11c594d6774034ea7c0a5fa6bb08c61b1e1453d56af07d64a8b60622","bfe268c0a4cd1acddb8e88ec90b726217133e6cb5053c6f2e33269d9d129cce3","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","a68f167cb5868b46cde114a40f8840d6a0451d1bd7fa772fdfedecd30b3d0e61","595b97f94582ecaa0cc1a2d97be4223495ae718a62895af169be93b53066f905","d3b36f73e1462b5e9ef21be195ec2b6f996730bff67753140f2db1ff6089cbdc","a40174bd247b13ba64154c8bb3a160e49250864ff603e7779588e1ee084c6fe9","addda838f275a4345d7907b1a0aba6e8e54628ace5d898a14d2a546333e3bd4f","d81a4fa5df537ff1b6b5eca8daaee4a421901d6b3c5e82e5f19a95ad3d4c7974","3f4c7070470eda53a0a22cabb81e947614b666f91dc84f4ae3778ef18958d835","25fc6e932487884f446c3497172f72aa3fb1187d1ca95bdac2f734a39efcd61e","4a36c925dcd89ed988b3c2844b0099416d176c898a7bd93159fda60b8441ccc8","fc2220a0370fe4c178159294a3aad1dbe1f790bd3544cc6d864aa3d7b1df1b5d","aaf3741cf4a11ead5269c782f0d8f579d631fed8f5f080ee369ab2f09ab0a5e6","b820818bb5f8ebb713633be7a3db6191aa12341ba23deb85af009006a9277a20","d6b875234878a2aa1febbfbcf59f6f8ee5bdf01b55a111238416bf00bc4f4d74","2ea9ab59e2b3f625d63e524f82dba5fad02412e13e29132023c0917977d0c0e6","a8b7eec40be2f16f3a276fd99e1c5ad5ef3565f56319c763be2d8983810033a2","e5ca18285f6adbee0ea27e89012e3e5e0816210eba73b60bcc534247543d7a46","2d7fed266cd1b54dece5de5cb58b2ef6f72736163b988bb0cbb090b8b152d3a8","4bb9ec99d41a4b7a433ae8b61bcf5a1c0b4e0eff253ff459f4ccfda64fe4bf51","f6607c445de0dbca0a1e0cdedff690ad27a01b230817e0074cda28574e7399cf","5bd1d2dde43d2f2dbe8370fd5e0bffbb17f98a75940f47fe7ee94b50f12e3e12","264f343285aca3a0cbc0f2609ba69b664b3ec714404dd4a09d2860de9e7c6c02","f342fa6a03a2941e83b795586ab91ef410ec59fdebf21e97027ce1eac273fc5f","79b0d8826c506b6eb75937a8a466dd29fad2fb8cff0f05f97bcacb962ed3f56e","10080687eba89fc69232f38ffc45da8f90d3ca137507453ee62497d6f458f740","496689ce350fd7e4c939966118517b0cb174f5acb2e1e6163688b18bef8de8b2","1c8a2cc119fc139415f49681634254b218d4c5c495ca11103db50ae9c90d54d1","76c71c77e675f16b339789d17fc1e6589a98241d731dda429828cee107904857","0f1e60175a7fe4a1a9d6ddde857a19333c7f4682ec4f2ff4347cb8ff729cbe92","975fda3a8a7e46679765f9fc272235e07f36646b8af9d989a622d782b0cd3c2b","b3214b6a5e14b5a994f856fda1562c89cd208caf0c44040980a59cffa9ad3e63","9d34f34601bf2058f5045ad6c15fab3c323e69353c14713b5365e0ecc0c87d75","e73ea58406c7aa00e04d16a93ac1a8dd614433396ae3e0b6855ddb83d0544837","9d6796534f08ea5b84c211e224fd6ec1430113c07195c6e29dd5fd52f804df7c","d4dc45e2085acd5b61836f9ca03f148d620b781c983411d0963317a155ffd32c","76388575482f6c37a446179cc8c6825f910cdafc9ed55daaee7abf3f6b73a29e","6116ea81a38eb614b32317eb87c2f903915eaae16bf5a59e9838723e7cb06ab4","538bef0ddc796f3d6e5c7d90816e1972e11acc7d962e7e9b1eec3e192cbf1a99","b60cdf96b6934a221ce3b66b9bb82734843c4df27da12acc6c43c3a0e46adea5","3de96ee1d0e54cac8396ff88bab0be56fd2149daaba05d1b08968932ae5cec37","8ece80ff440d4aec6bfa8bb50685599cd199c19082f256bdea2c95c3ba7b3ea6","374421af52bad74f65653c9524fba315c9157b6cbce117d902e9d1ad625abb01","bcb58afb796b9b35068ca86768aac0934b738f141e54ed803a2be867f229a4a6","b357fcf1b0a37b9c3e2fec33fb2949e4fed07c6b2c617185de90f6d81da7a5e6","923df0e4714decae8f51ec4d17ab60974dd495e19045dcbb313b91479dea5f24","58a3914b1cce4560d9ad6eee2b716caaa030eda0a90b21ca2457ea9e2783eaa3","79d2fdaa1e0bf1a62b59de50e185374b74d22dc43144a78eab1bbcca0a4a2550","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","5533392c50c51b1a5c32b89f13145db929c574ef1c5949cf67a074a05ea107d9","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"bd1a08e30569b0fb2f0b21035eb9b039871f68faa9b98accf847e9c878c5e0a9","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1cdb8f094b969dcc183745dc88404e2d8fcf2a858c6e7cc2441011476573238e","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","5e3a55837aa1f42af2d2334c9b750f59f5f50a2205471875f5dd6aadc3e49ddb","70646d9cb37b62611766d18a9bcca6cbf28ca9aec33a66244e974056ab1193f6",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","7d7c8ef7d48a035142c07dae60545ecc0e4af4c337742760cb09726f2f8e31db","6c29066d1acba21f6fde8042da49ba4df5cad690dac19416a8f7af17d451ed40","82772e5d55062a042a2715a555d347275a663940926fc785705eb082010cb9f6","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","660fa40695c7ca19a59fd09d31d495d952eee946e445a2c455ec63f255ec3050","19bf3ca55fd356755cda33e6e8c753d3d13d4aaa54ad9c5c032927f362188066","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","97057c24c7f25f01fa0db7a48b7885e0d9e73ace397d8cd71d9f7fcbdc4fab6f","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","062bd2910098fc059ba93e347649b3e126c555f7b144033d21d3f8ef63d3e39b","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","fadd7bd4cb8b67e1f89b5688e9d896c3d3241c7aa816faba9bda78e3e166be22","4c8239bedbe72ce9405efb578f03f56219dba4ceb5a57ca3d2dc10334612f210","9df147746b0cbd11d022b564e6fdd43ac79b643dc579d2123317ee01cc4f0d70","ecbb2d349861fff68730a3b3ec9adce77cd491268c6186a685b7965c2c4b60bc","61772dfd5eee2b54128f72e352ed42696721359cacf81086a89f1bd527726258","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","239f0c1d83d1ca9677327198196ee2ce6827dc7b469771ab5abf7bea7fbdb674","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","bae219fc966077e88ec22d2dc2eb24617d3244d3593afdc5f2457fabd27d7462"],"options":{"composite":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"fileIdsList":[[70,143],[67,143],[64,70,71,93,143],[80,82,87,91,143],[63,70,143],[143],[62,143],[63,143],[67,68,143],[63,64,65,66,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,92,94,95,143],[70,74,77,143],[74,143],[72,74,143],[70,77,79,80,143],[80,82,143],[70,72,75,78,84,143],[72,143],[65,66,72,74,76,143],[73,143],[74,77,143],[66,72,75,78,143],[70,77,79,143],[80,143],[98,143],[115,118,142,143,150,151,152,153],[105,143,150],[143,159,160],[143,157,158,159],[116,143,150],[115,116,143,150,163],[118,120,132,142,143,150,165],[115,143,150],[118,142,143,150,169,170],[118,132,143,150],[100,143],[103,143],[104,109,143],[105,115,116,123,132,142,143],[105,106,115,123,143],[107,143],[108,109,116,124,143],[109,132,139,143],[110,112,115,123,143],[111,143],[112,113,143],[114,115,143],[115,143],[115,116,117,132,142,143],[115,116,117,132,143],[118,123,132,142,143],[115,116,118,119,123,132,139,142,143],[118,120,132,139,142,143],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],[115,121,143],[122,142,143],[112,115,123,132,143],[124,143],[125,143],[103,126,143],[127,141,143,147],[128,143],[129,143],[115,130,143],[130,131,143,145],[115,132,133,134,143],[132,134,143],[132,133,143],[135,143],[136,143],[115,137,138,143],[137,138,143],[109,123,139,143],[140,143],[123,141,143],[104,118,129,142,143],[109,143],[132,143,144],[143,145],[143,146],[104,109,115,117,126,132,142,143,145,147],[132,143,148],[143,176,177],[143,176],[116,143,150,164],[115,132,143,148,150,168],[41,49,60,143],[44,46,47,143],[44,46,143],[41,45,143],[41,48,49,143],[44,48,50,51,52,54,55,56,57,58,60,61,143],[41,49,143],[48,51,96,143],[43,54,59,143],[39,41,44,53,143],[52,143],[41,49,52,54,60,143],[39,40,143],[41,42,143]],"referencedMap":[[90,1],[95,2],[94,3],[92,4],[93,5],[62,6],[63,7],[64,8],[65,6],[66,6],[89,1],[70,6],[68,2],[69,9],[67,6],[96,10],[71,1],[72,6],[91,11],[88,12],[75,13],[81,14],[83,15],[85,16],[84,17],[77,18],[74,19],[78,6],[87,20],[79,21],[76,6],[86,6],[73,6],[80,22],[82,23],[99,24],[154,25],[155,26],[156,6],[161,27],[157,6],[160,28],[159,6],[162,29],[164,30],[166,31],[152,6],[158,6],[151,32],[39,6],[163,6],[167,6],[168,32],[53,6],[170,6],[171,33],[169,34],[100,35],[101,35],[103,36],[104,37],[105,38],[106,39],[107,40],[108,41],[109,42],[110,43],[111,44],[112,45],[113,45],[114,46],[115,47],[116,48],[117,49],[102,6],[149,6],[118,50],[119,51],[120,52],[150,53],[121,54],[122,55],[123,56],[124,57],[125,58],[126,59],[127,60],[128,61],[129,62],[130,63],[131,64],[132,65],[134,66],[133,67],[135,68],[136,69],[137,70],[138,71],[139,72],[140,73],[141,74],[142,75],[143,76],[144,77],[145,78],[146,79],[147,80],[148,81],[172,6],[173,6],[174,6],[175,6],[178,82],[177,83],[153,34],[98,6],[179,84],[180,85],[165,6],[181,6],[182,6],[40,6],[176,83],[9,6],[8,6],[2,6],[10,6],[11,6],[12,6],[13,6],[14,6],[15,6],[16,6],[17,6],[3,6],[4,6],[21,6],[18,6],[19,6],[20,6],[22,6],[23,6],[24,6],[5,6],[25,6],[26,6],[27,6],[28,6],[6,6],[29,6],[30,6],[31,6],[32,6],[7,6],[37,6],[33,6],[34,6],[35,6],[36,6],[1,6],[38,6],[61,86],[48,87],[47,88],[46,89],[45,6],[44,6],[50,90],[59,91],[51,92],[52,6],[97,93],[60,94],[54,95],[55,6],[49,6],[58,6],[56,96],[57,97],[41,98],[43,99],[42,98]],"exportedModulesMap":[[90,1],[95,2],[94,3],[92,4],[93,5],[62,6],[63,7],[64,8],[65,6],[66,6],[89,1],[70,6],[68,2],[69,9],[67,6],[96,10],[71,1],[72,6],[91,11],[88,12],[75,13],[81,14],[83,15],[85,16],[84,17],[77,18],[74,19],[78,6],[87,20],[79,21],[76,6],[86,6],[73,6],[80,22],[82,23],[99,24],[154,25],[155,26],[156,6],[161,27],[157,6],[160,28],[159,6],[162,29],[164,30],[166,31],[152,6],[158,6],[151,32],[39,6],[163,6],[167,6],[168,32],[53,6],[170,6],[171,33],[169,34],[100,35],[101,35],[103,36],[104,37],[105,38],[106,39],[107,40],[108,41],[109,42],[110,43],[111,44],[112,45],[113,45],[114,46],[115,47],[116,48],[117,49],[102,6],[149,6],[118,50],[119,51],[120,52],[150,53],[121,54],[122,55],[123,56],[124,57],[125,58],[126,59],[127,60],[128,61],[129,62],[130,63],[131,64],[132,65],[134,66],[133,67],[135,68],[136,69],[137,70],[138,71],[139,72],[140,73],[141,74],[142,75],[143,76],[144,77],[145,78],[146,79],[147,80],[148,81],[172,6],[173,6],[174,6],[175,6],[178,82],[177,83],[153,34],[98,6],[179,84],[180,85],[165,6],[181,6],[182,6],[40,6],[176,83],[9,6],[8,6],[2,6],[10,6],[11,6],[12,6],[13,6],[14,6],[15,6],[16,6],[17,6],[3,6],[4,6],[21,6],[18,6],[19,6],[20,6],[22,6],[23,6],[24,6],[5,6],[25,6],[26,6],[27,6],[28,6],[6,6],[29,6],[30,6],[31,6],[32,6],[7,6],[37,6],[33,6],[34,6],[35,6],[36,6],[1,6],[38,6],[61,86],[48,87],[47,88],[46,89],[45,6],[44,6],[50,90],[59,91],[51,92],[52,6],[97,93],[60,94],[54,95],[55,6],[49,6],[58,6],[56,96],[57,97],[41,98],[43,99],[42,98]],"semanticDiagnosticsPerFile":[90,95,94,92,93,62,63,64,65,66,89,70,68,69,67,96,71,72,91,88,75,81,83,85,84,77,74,78,87,79,76,86,73,80,82,99,154,155,156,161,157,160,159,162,164,166,152,158,151,39,163,167,168,53,170,171,169,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,102,149,118,119,120,150,121,122,123,124,125,126,127,128,129,130,131,132,134,133,135,136,137,138,139,140,141,142,143,144,145,146,147,148,172,173,174,175,178,177,153,98,179,180,165,181,182,40,176,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,37,33,34,35,36,1,38,61,48,47,46,45,44,50,59,51,52,97,60,54,55,49,58,56,57,41,43,42]},"version":"4.5.2"}