@dudousxd/nestjs-durable 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -27
- package/dist/index.d.ts +11 -27
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/dist/migrate-from-nestjs-workflows.cjs.map +1 -1
- package/dist/migrate-from-nestjs-workflows.js.map +1 -1
- package/package.json +14 -11
- package/skills/durable-signals-and-timers/SKILL.md +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -166,8 +166,8 @@ interface WorkflowMeta {
|
|
|
166
166
|
concurrency?: ConcurrencyConfig | undefined;
|
|
167
167
|
/** Max wall-clock lifetime before a run is cancelled (e.g. `'2h'`). See `WorkflowOptions`. */
|
|
168
168
|
executionTimeout?: string | number | undefined;
|
|
169
|
-
/** Input schema (Standard Schema or DTO class), parsed at start and before every turn.
|
|
170
|
-
* `
|
|
169
|
+
/** Input schema (Standard Schema or DTO class), parsed at start and before every turn. See
|
|
170
|
+
* `WorkflowOptions`. */
|
|
171
171
|
input?: IoSchema | undefined;
|
|
172
172
|
/** Output schema, parsed before the run completes. See `WorkflowOptions`. */
|
|
173
173
|
output?: IoSchema | undefined;
|
|
@@ -269,11 +269,6 @@ interface WorkflowOptions {
|
|
|
269
269
|
* run with `code: 'invalid_output'`. The same option `@Step({ output })` takes.
|
|
270
270
|
*/
|
|
271
271
|
output?: IoSchema;
|
|
272
|
-
/**
|
|
273
|
-
* Alias of {@link input}, kept for workflows declared before `input` existed. Setting both is an
|
|
274
|
-
* error.
|
|
275
|
-
*/
|
|
276
|
-
inputSchema?: IoSchema;
|
|
277
272
|
/**
|
|
278
273
|
* A custom check at `start` (throw to reject) for a rule a schema can't express — a cross-field
|
|
279
274
|
* invariant, an async lookup. It runs after `input` parses and receives the parsed value (the input
|
|
@@ -414,11 +409,6 @@ interface StepOptions {
|
|
|
414
409
|
* from the method signature are the only check, and the step dispatches with no retry/timeout.
|
|
415
410
|
*/
|
|
416
411
|
declare function Step(nameOrOptions?: string | StepOptions): MethodDecorator;
|
|
417
|
-
/**
|
|
418
|
-
* @deprecated Use `@Step` instead. `@DurableStep` is a back-compat alias of {@link Step} and
|
|
419
|
-
* writes the same `DURABLE_STEP_METADATA`, so discovery/registrars treat them identically.
|
|
420
|
-
*/
|
|
421
|
-
declare const DurableStep: typeof Step;
|
|
422
412
|
declare function getDurableStepMeta(method: Function): DurableStepMeta | undefined;
|
|
423
413
|
declare const DEAD_LETTER_METADATA: unique symbol;
|
|
424
414
|
/**
|
|
@@ -601,8 +591,6 @@ declare const ON_EVENT_BATCH_METADATA: unique symbol;
|
|
|
601
591
|
* workflow never silently coalesces one way while its decorator says another.
|
|
602
592
|
*/
|
|
603
593
|
declare function eventBatchOf(meta: WorkflowMeta, target: object): EventBatchConfig | undefined;
|
|
604
|
-
/** @deprecated Renamed to `OnDurableEvent` — this alias clashes with `@nestjs/event-emitter`'s `@OnEvent` and will be removed in the next minor. */
|
|
605
|
-
declare const OnEvent: typeof OnDurableEvent;
|
|
606
594
|
/**
|
|
607
595
|
* All events a workflow class subscribes to: `@Workflow({ onEvent })`, `@OnDurableEvent`,
|
|
608
596
|
* `@OnWorkflowCompleted` and `@OnWorkflowFailed`. Repeated bare names collapse to one.
|
|
@@ -716,7 +704,7 @@ interface DurableRetentionOptions {
|
|
|
716
704
|
* timer/retention/registrars, executing registered bodies INLINE. Driven by {@link drive} (default
|
|
717
705
|
* `true`).
|
|
718
706
|
* - `{ connection }` (no `store`): **thin worker**, `WorkflowEngine` resolves to a store-less
|
|
719
|
-
* `DurableStartClient`; `
|
|
707
|
+
* `DurableStartClient`; `RunGateway` is a `ProxyRunGateway` when `transport` is also given, else
|
|
720
708
|
* every method rejects with a clear error. No store/timer/retention/entity, just discovered
|
|
721
709
|
* `@Workflow`/`@Step` handlers served over ONE `runRedisWorker` consumer.
|
|
722
710
|
* - `{ store, transport, connection }`: an **operator that also runs a co-located worker**: every
|
|
@@ -1262,7 +1250,7 @@ declare class ThinWorkerBootstrap implements OnApplicationBootstrap, OnApplicati
|
|
|
1262
1250
|
*/
|
|
1263
1251
|
declare function thinWorkerProviders(): Provider[];
|
|
1264
1252
|
/**
|
|
1265
|
-
* The no-transport fallback bound to `
|
|
1253
|
+
* The no-transport fallback bound to `RunGateway` for a thin worker (`connection` set, `store`
|
|
1266
1254
|
* unset) that didn't also pass a `transport` — mirrors `DurableStartClient`'s tenant-error idiom
|
|
1267
1255
|
* (`tenantUnsupported`): every method rejects with a clear, named error instead of a cryptic
|
|
1268
1256
|
* `this.gateway.X is not a function`. `subscribe` is synchronous on the `RunGateway` port, so it
|
|
@@ -1446,7 +1434,7 @@ declare class RunGatewayError extends Error {
|
|
|
1446
1434
|
/**
|
|
1447
1435
|
* Tenant-side `RunGateway` — round-trips every verb as a `RunRequest`/`RunReply` pair over the
|
|
1448
1436
|
* transport, correlated by a minted `requestId`, and bridges `subscribe` onto the transport's
|
|
1449
|
-
* per-tenant event stream. Bound under `
|
|
1437
|
+
* per-tenant event stream. Bound under `RunGateway` by `DurableModule`'s thin-worker role
|
|
1450
1438
|
* (`connection` set, no `store`) when the app supplies a `transport` (see `unavailableRunGateway`
|
|
1451
1439
|
* for the no-transport fallback). The counterpart to the operator-side `StoreRunGateway`: a tenant
|
|
1452
1440
|
* worker never touches a store/driver directly, only this proxy.
|
|
@@ -1571,7 +1559,7 @@ declare function StepInterceptor(): ClassDecorator;
|
|
|
1571
1559
|
declare function isStepInterceptor(target: Function): boolean;
|
|
1572
1560
|
|
|
1573
1561
|
/**
|
|
1574
|
-
* Store-backed `RunGateway` — the operator-side implementation, bound to {@link
|
|
1562
|
+
* Store-backed `RunGateway` — the operator-side implementation, bound to {@link RunGateway} on
|
|
1575
1563
|
* worker/drive instances. Reuses `DashboardService`'s six read/control method bodies verbatim
|
|
1576
1564
|
* (`dashboard.service.ts:76-172`), so a consumer that only needs the bounded `RunGateway` surface
|
|
1577
1565
|
* (the `RunRequestResponder`, a thin controller) doesn't have to depend on the dashboard package.
|
|
@@ -1693,14 +1681,10 @@ declare class TenantEventRepublisher {
|
|
|
1693
1681
|
*/
|
|
1694
1682
|
declare const CONTEXT_ACCESSOR: unique symbol;
|
|
1695
1683
|
/**
|
|
1696
|
-
* @deprecated Inject the `RunGateway`
|
|
1697
|
-
* `constructor(private readonly gateway: RunGateway)
|
|
1698
|
-
*
|
|
1699
|
-
* `@Inject(RUN_GATEWAY)`
|
|
1700
|
-
*
|
|
1701
|
-
* `RunGateway` is owned by `@dudousxd/nestjs-durable-core` (a required peer dep of both this package
|
|
1702
|
-
* and the dashboard), so the abstract class is a single shared token across packages without the
|
|
1703
|
-
* previous `Symbol.for` value-sharing hack.
|
|
1684
|
+
* @deprecated Inject the `RunGateway` class, which is its own DI token:
|
|
1685
|
+
* `constructor(private readonly gateway: RunGateway)`. Kept because published
|
|
1686
|
+
* `@dudousxd/nestjs-agent` and `@dudousxd/nestjs-agent-opencode` releases import it; it is the
|
|
1687
|
+
* `RunGateway` class itself, so `@Inject(RUN_GATEWAY)` resolves the same provider.
|
|
1704
1688
|
*/
|
|
1705
1689
|
declare const RUN_GATEWAY: typeof RunGateway;
|
|
1706
1690
|
|
|
@@ -1782,4 +1766,4 @@ declare class WorkflowService {
|
|
|
1782
1766
|
republishLifecycle(target: RepublishLifecycleTarget): Promise<RepublishLifecycleResult>;
|
|
1783
1767
|
}
|
|
1784
1768
|
|
|
1785
|
-
export { BAD_RUN_REQUEST, CONTEXT_ACCESSOR, type ContextAccessor, type ContextStore, type ContractClass, type ControlPlaneDurableOptions, DEAD_LETTER_METADATA, DURABLE_STEP_METADATA, DURABLE_WORKER_RUNNERS, DURABLE_WORKER_RUNTIME, DeadLetter, type DtoClass, DurableModule, type DurableModuleAsyncOptions, type DurableModuleOptions, type DurableModuleSharedOptions, type DurableRetentionOptions, DurableStartClient,
|
|
1769
|
+
export { BAD_RUN_REQUEST, CONTEXT_ACCESSOR, type ContextAccessor, type ContextStore, type ContractClass, type ControlPlaneDurableOptions, DEAD_LETTER_METADATA, DURABLE_STEP_METADATA, DURABLE_WORKER_RUNNERS, DURABLE_WORKER_RUNTIME, DeadLetter, type DtoClass, DurableModule, type DurableModuleAsyncOptions, type DurableModuleOptions, type DurableModuleSharedOptions, type DurableRetentionOptions, DurableStartClient, type DurableStepInterceptor, type DurableStepMeta, type DurableTopologyName, ENTITY_METADATA, ENTITY_ON_METADATA, Entity, EntityService, type ErrorClassWithCode, IN_APP_RUN_REDIS_WORKER, IN_APP_WORKER_BINDING, IN_APP_WORKER_RUNNERS, IN_APP_WORKER_RUNTIME, type InAppWorkerBinding, InAppWorkerBootstrap, type IoSchema, type LazyContract, ON_ERROR_METADATA, ON_EVENT_BATCH_METADATA, ON_EVENT_METADATA, On, OnDurableEvent, OnError, type OnErrorMethod, OnWorkflowCompleted, OnWorkflowFailed, type OnWorkflowFailedOptions, type OnWorkflowSettledOptions, ProxyRunGateway, RUN_GATEWAY, RUN_REDIS_WORKER, RunGatewayError, type RunGatewayErrorCode, type RunLookupStore, type RunRedisWorkerFn, RunRequestResponder, type RunRequestResponderOptions, type RunRequestTransport, STEP_INTERCEPTOR_METADATA, type StandaloneDurableOptions, Step, StepInterceptor, type StepOptions, StoreRunGateway, type SubscriberBatch, type SubscriberDebounce, type SubscriberDecorator, TENANT_REPUBLISH_MAX_LIMIT, type TenantCredentialsContract, type TenantDurableOptions, TenantEventRepublisher, type TenantFilter, type TenantRef, type TenantTokenOption, type TenantVerifierContract, type TenantVerifierInput, type TenantVerifierOption, ThinStepRegistrar, ThinWorkerBootstrap, ThinWorkflowRegistrar, UNSUPPORTED_RUN_REQUEST, type UserRef, WORKFLOW_METADATA, Workflow, type WorkflowAttributesOf, type WorkflowMeta, type WorkflowOptions, WorkflowService, attributesOf, entityConfigFor, eventBatchOf, getDurableStepMeta, getEntityMeta, getOnEvents, getWorkflowMeta, inAppWorkerProviders, isDeadLetterHandler, isDrivingOperator, isOperatorRole, isStepInterceptor, onErrorCodesOf, thinWorkerProviders, unavailableRunGateway };
|
package/dist/index.d.ts
CHANGED
|
@@ -166,8 +166,8 @@ interface WorkflowMeta {
|
|
|
166
166
|
concurrency?: ConcurrencyConfig | undefined;
|
|
167
167
|
/** Max wall-clock lifetime before a run is cancelled (e.g. `'2h'`). See `WorkflowOptions`. */
|
|
168
168
|
executionTimeout?: string | number | undefined;
|
|
169
|
-
/** Input schema (Standard Schema or DTO class), parsed at start and before every turn.
|
|
170
|
-
* `
|
|
169
|
+
/** Input schema (Standard Schema or DTO class), parsed at start and before every turn. See
|
|
170
|
+
* `WorkflowOptions`. */
|
|
171
171
|
input?: IoSchema | undefined;
|
|
172
172
|
/** Output schema, parsed before the run completes. See `WorkflowOptions`. */
|
|
173
173
|
output?: IoSchema | undefined;
|
|
@@ -269,11 +269,6 @@ interface WorkflowOptions {
|
|
|
269
269
|
* run with `code: 'invalid_output'`. The same option `@Step({ output })` takes.
|
|
270
270
|
*/
|
|
271
271
|
output?: IoSchema;
|
|
272
|
-
/**
|
|
273
|
-
* Alias of {@link input}, kept for workflows declared before `input` existed. Setting both is an
|
|
274
|
-
* error.
|
|
275
|
-
*/
|
|
276
|
-
inputSchema?: IoSchema;
|
|
277
272
|
/**
|
|
278
273
|
* A custom check at `start` (throw to reject) for a rule a schema can't express — a cross-field
|
|
279
274
|
* invariant, an async lookup. It runs after `input` parses and receives the parsed value (the input
|
|
@@ -414,11 +409,6 @@ interface StepOptions {
|
|
|
414
409
|
* from the method signature are the only check, and the step dispatches with no retry/timeout.
|
|
415
410
|
*/
|
|
416
411
|
declare function Step(nameOrOptions?: string | StepOptions): MethodDecorator;
|
|
417
|
-
/**
|
|
418
|
-
* @deprecated Use `@Step` instead. `@DurableStep` is a back-compat alias of {@link Step} and
|
|
419
|
-
* writes the same `DURABLE_STEP_METADATA`, so discovery/registrars treat them identically.
|
|
420
|
-
*/
|
|
421
|
-
declare const DurableStep: typeof Step;
|
|
422
412
|
declare function getDurableStepMeta(method: Function): DurableStepMeta | undefined;
|
|
423
413
|
declare const DEAD_LETTER_METADATA: unique symbol;
|
|
424
414
|
/**
|
|
@@ -601,8 +591,6 @@ declare const ON_EVENT_BATCH_METADATA: unique symbol;
|
|
|
601
591
|
* workflow never silently coalesces one way while its decorator says another.
|
|
602
592
|
*/
|
|
603
593
|
declare function eventBatchOf(meta: WorkflowMeta, target: object): EventBatchConfig | undefined;
|
|
604
|
-
/** @deprecated Renamed to `OnDurableEvent` — this alias clashes with `@nestjs/event-emitter`'s `@OnEvent` and will be removed in the next minor. */
|
|
605
|
-
declare const OnEvent: typeof OnDurableEvent;
|
|
606
594
|
/**
|
|
607
595
|
* All events a workflow class subscribes to: `@Workflow({ onEvent })`, `@OnDurableEvent`,
|
|
608
596
|
* `@OnWorkflowCompleted` and `@OnWorkflowFailed`. Repeated bare names collapse to one.
|
|
@@ -716,7 +704,7 @@ interface DurableRetentionOptions {
|
|
|
716
704
|
* timer/retention/registrars, executing registered bodies INLINE. Driven by {@link drive} (default
|
|
717
705
|
* `true`).
|
|
718
706
|
* - `{ connection }` (no `store`): **thin worker**, `WorkflowEngine` resolves to a store-less
|
|
719
|
-
* `DurableStartClient`; `
|
|
707
|
+
* `DurableStartClient`; `RunGateway` is a `ProxyRunGateway` when `transport` is also given, else
|
|
720
708
|
* every method rejects with a clear error. No store/timer/retention/entity, just discovered
|
|
721
709
|
* `@Workflow`/`@Step` handlers served over ONE `runRedisWorker` consumer.
|
|
722
710
|
* - `{ store, transport, connection }`: an **operator that also runs a co-located worker**: every
|
|
@@ -1262,7 +1250,7 @@ declare class ThinWorkerBootstrap implements OnApplicationBootstrap, OnApplicati
|
|
|
1262
1250
|
*/
|
|
1263
1251
|
declare function thinWorkerProviders(): Provider[];
|
|
1264
1252
|
/**
|
|
1265
|
-
* The no-transport fallback bound to `
|
|
1253
|
+
* The no-transport fallback bound to `RunGateway` for a thin worker (`connection` set, `store`
|
|
1266
1254
|
* unset) that didn't also pass a `transport` — mirrors `DurableStartClient`'s tenant-error idiom
|
|
1267
1255
|
* (`tenantUnsupported`): every method rejects with a clear, named error instead of a cryptic
|
|
1268
1256
|
* `this.gateway.X is not a function`. `subscribe` is synchronous on the `RunGateway` port, so it
|
|
@@ -1446,7 +1434,7 @@ declare class RunGatewayError extends Error {
|
|
|
1446
1434
|
/**
|
|
1447
1435
|
* Tenant-side `RunGateway` — round-trips every verb as a `RunRequest`/`RunReply` pair over the
|
|
1448
1436
|
* transport, correlated by a minted `requestId`, and bridges `subscribe` onto the transport's
|
|
1449
|
-
* per-tenant event stream. Bound under `
|
|
1437
|
+
* per-tenant event stream. Bound under `RunGateway` by `DurableModule`'s thin-worker role
|
|
1450
1438
|
* (`connection` set, no `store`) when the app supplies a `transport` (see `unavailableRunGateway`
|
|
1451
1439
|
* for the no-transport fallback). The counterpart to the operator-side `StoreRunGateway`: a tenant
|
|
1452
1440
|
* worker never touches a store/driver directly, only this proxy.
|
|
@@ -1571,7 +1559,7 @@ declare function StepInterceptor(): ClassDecorator;
|
|
|
1571
1559
|
declare function isStepInterceptor(target: Function): boolean;
|
|
1572
1560
|
|
|
1573
1561
|
/**
|
|
1574
|
-
* Store-backed `RunGateway` — the operator-side implementation, bound to {@link
|
|
1562
|
+
* Store-backed `RunGateway` — the operator-side implementation, bound to {@link RunGateway} on
|
|
1575
1563
|
* worker/drive instances. Reuses `DashboardService`'s six read/control method bodies verbatim
|
|
1576
1564
|
* (`dashboard.service.ts:76-172`), so a consumer that only needs the bounded `RunGateway` surface
|
|
1577
1565
|
* (the `RunRequestResponder`, a thin controller) doesn't have to depend on the dashboard package.
|
|
@@ -1693,14 +1681,10 @@ declare class TenantEventRepublisher {
|
|
|
1693
1681
|
*/
|
|
1694
1682
|
declare const CONTEXT_ACCESSOR: unique symbol;
|
|
1695
1683
|
/**
|
|
1696
|
-
* @deprecated Inject the `RunGateway`
|
|
1697
|
-
* `constructor(private readonly gateway: RunGateway)
|
|
1698
|
-
*
|
|
1699
|
-
* `@Inject(RUN_GATEWAY)`
|
|
1700
|
-
*
|
|
1701
|
-
* `RunGateway` is owned by `@dudousxd/nestjs-durable-core` (a required peer dep of both this package
|
|
1702
|
-
* and the dashboard), so the abstract class is a single shared token across packages without the
|
|
1703
|
-
* previous `Symbol.for` value-sharing hack.
|
|
1684
|
+
* @deprecated Inject the `RunGateway` class, which is its own DI token:
|
|
1685
|
+
* `constructor(private readonly gateway: RunGateway)`. Kept because published
|
|
1686
|
+
* `@dudousxd/nestjs-agent` and `@dudousxd/nestjs-agent-opencode` releases import it; it is the
|
|
1687
|
+
* `RunGateway` class itself, so `@Inject(RUN_GATEWAY)` resolves the same provider.
|
|
1704
1688
|
*/
|
|
1705
1689
|
declare const RUN_GATEWAY: typeof RunGateway;
|
|
1706
1690
|
|
|
@@ -1782,4 +1766,4 @@ declare class WorkflowService {
|
|
|
1782
1766
|
republishLifecycle(target: RepublishLifecycleTarget): Promise<RepublishLifecycleResult>;
|
|
1783
1767
|
}
|
|
1784
1768
|
|
|
1785
|
-
export { BAD_RUN_REQUEST, CONTEXT_ACCESSOR, type ContextAccessor, type ContextStore, type ContractClass, type ControlPlaneDurableOptions, DEAD_LETTER_METADATA, DURABLE_STEP_METADATA, DURABLE_WORKER_RUNNERS, DURABLE_WORKER_RUNTIME, DeadLetter, type DtoClass, DurableModule, type DurableModuleAsyncOptions, type DurableModuleOptions, type DurableModuleSharedOptions, type DurableRetentionOptions, DurableStartClient,
|
|
1769
|
+
export { BAD_RUN_REQUEST, CONTEXT_ACCESSOR, type ContextAccessor, type ContextStore, type ContractClass, type ControlPlaneDurableOptions, DEAD_LETTER_METADATA, DURABLE_STEP_METADATA, DURABLE_WORKER_RUNNERS, DURABLE_WORKER_RUNTIME, DeadLetter, type DtoClass, DurableModule, type DurableModuleAsyncOptions, type DurableModuleOptions, type DurableModuleSharedOptions, type DurableRetentionOptions, DurableStartClient, type DurableStepInterceptor, type DurableStepMeta, type DurableTopologyName, ENTITY_METADATA, ENTITY_ON_METADATA, Entity, EntityService, type ErrorClassWithCode, IN_APP_RUN_REDIS_WORKER, IN_APP_WORKER_BINDING, IN_APP_WORKER_RUNNERS, IN_APP_WORKER_RUNTIME, type InAppWorkerBinding, InAppWorkerBootstrap, type IoSchema, type LazyContract, ON_ERROR_METADATA, ON_EVENT_BATCH_METADATA, ON_EVENT_METADATA, On, OnDurableEvent, OnError, type OnErrorMethod, OnWorkflowCompleted, OnWorkflowFailed, type OnWorkflowFailedOptions, type OnWorkflowSettledOptions, ProxyRunGateway, RUN_GATEWAY, RUN_REDIS_WORKER, RunGatewayError, type RunGatewayErrorCode, type RunLookupStore, type RunRedisWorkerFn, RunRequestResponder, type RunRequestResponderOptions, type RunRequestTransport, STEP_INTERCEPTOR_METADATA, type StandaloneDurableOptions, Step, StepInterceptor, type StepOptions, StoreRunGateway, type SubscriberBatch, type SubscriberDebounce, type SubscriberDecorator, TENANT_REPUBLISH_MAX_LIMIT, type TenantCredentialsContract, type TenantDurableOptions, TenantEventRepublisher, type TenantFilter, type TenantRef, type TenantTokenOption, type TenantVerifierContract, type TenantVerifierInput, type TenantVerifierOption, ThinStepRegistrar, ThinWorkerBootstrap, ThinWorkflowRegistrar, UNSUPPORTED_RUN_REQUEST, type UserRef, WORKFLOW_METADATA, Workflow, type WorkflowAttributesOf, type WorkflowMeta, type WorkflowOptions, WorkflowService, attributesOf, entityConfigFor, eventBatchOf, getDurableStepMeta, getEntityMeta, getOnEvents, getWorkflowMeta, inAppWorkerProviders, isDeadLetterHandler, isDrivingOperator, isOperatorRole, isStepInterceptor, onErrorCodesOf, thinWorkerProviders, unavailableRunGateway };
|
package/dist/index.js
CHANGED
|
@@ -119,9 +119,6 @@ __name(fileOfFrame, "fileOfFrame");
|
|
|
119
119
|
var WORKFLOW_METADATA = Symbol("nestjs-durable:workflow");
|
|
120
120
|
function Workflow(options) {
|
|
121
121
|
const declaredIn = declaringFile(Workflow);
|
|
122
|
-
if (options.input !== void 0 && options.inputSchema !== void 0) {
|
|
123
|
-
throw new Error(`@Workflow ${options.name}: set either \`input\` or its alias \`inputSchema\`, not both`);
|
|
124
|
-
}
|
|
125
122
|
return (target) => {
|
|
126
123
|
rememberDeclaringFile(target, declaredIn);
|
|
127
124
|
const meta = {
|
|
@@ -133,7 +130,7 @@ function Workflow(options) {
|
|
|
133
130
|
singleton: options.singleton,
|
|
134
131
|
concurrency: options.concurrency,
|
|
135
132
|
executionTimeout: options.executionTimeout,
|
|
136
|
-
input: options.input
|
|
133
|
+
input: options.input,
|
|
137
134
|
output: options.output,
|
|
138
135
|
validateInput: options.validateInput,
|
|
139
136
|
searchAttributes: options.searchAttributes,
|
|
@@ -190,7 +187,6 @@ function Step(nameOrOptions) {
|
|
|
190
187
|
};
|
|
191
188
|
}
|
|
192
189
|
__name(Step, "Step");
|
|
193
|
-
var DurableStep = Step;
|
|
194
190
|
function getDurableStepMeta(method) {
|
|
195
191
|
return Reflect.getMetadata(DURABLE_STEP_METADATA, method);
|
|
196
192
|
}
|
|
@@ -318,7 +314,6 @@ function addEventSubscriptions(target, entries) {
|
|
|
318
314
|
], target);
|
|
319
315
|
}
|
|
320
316
|
__name(addEventSubscriptions, "addEventSubscriptions");
|
|
321
|
-
var OnEvent = OnDurableEvent;
|
|
322
317
|
function getOnEvents(meta, target) {
|
|
323
318
|
const fromDecorator = Reflect.getMetadata(ON_EVENT_METADATA, target) ?? [];
|
|
324
319
|
const names = /* @__PURE__ */ new Set();
|
|
@@ -3828,7 +3823,7 @@ var DurableModule = class _DurableModule {
|
|
|
3828
3823
|
ModuleRef2
|
|
3829
3824
|
]
|
|
3830
3825
|
},
|
|
3831
|
-
//
|
|
3826
|
+
// Deprecated tokens that published releases still import resolve to the same instances:
|
|
3832
3827
|
{
|
|
3833
3828
|
provide: STATE_STORE,
|
|
3834
3829
|
useExisting: STATE_STORE_CANONICAL4
|
|
@@ -3995,7 +3990,6 @@ export {
|
|
|
3995
3990
|
DeadLetter,
|
|
3996
3991
|
DurableModule,
|
|
3997
3992
|
DurableStartClient,
|
|
3998
|
-
DurableStep,
|
|
3999
3993
|
ENTITY_METADATA,
|
|
4000
3994
|
ENTITY_ON_METADATA,
|
|
4001
3995
|
Entity,
|
|
@@ -4012,7 +4006,6 @@ export {
|
|
|
4012
4006
|
On,
|
|
4013
4007
|
OnDurableEvent,
|
|
4014
4008
|
OnError,
|
|
4015
|
-
OnEvent,
|
|
4016
4009
|
OnWorkflowCompleted,
|
|
4017
4010
|
OnWorkflowFailed,
|
|
4018
4011
|
ProxyRunGateway,
|