@dudousxd/nestjs-durable-core 0.31.0 → 0.32.1

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.d.cts CHANGED
@@ -2119,9 +2119,32 @@ declare function attributeOperand(filter: AttributeFilter): string | number;
2119
2119
  * (`STATE_STORE is not available in the DurableApiModule context`). A registered symbol collapses
2120
2120
  * them to one. Mirrors the `CONTEXT_ACCESSOR` token in `@dudousxd/nestjs-durable`'s `tokens.ts`.
2121
2121
  */
2122
+ /**
2123
+ * @deprecated Use {@link STATE_STORE_CANONICAL} (`@dudousxd/nestjs-durable:state-store`). The legacy
2124
+ * token stays bound as a back-compat alias and still resolves; it will be removed in a future major.
2125
+ */
2122
2126
  declare const STATE_STORE: unique symbol;
2127
+ /**
2128
+ * @deprecated Use {@link TRANSPORT_CANONICAL} (`@dudousxd/nestjs-durable:transport`). The legacy
2129
+ * token stays bound as a back-compat alias and still resolves; it will be removed in a future major.
2130
+ */
2123
2131
  declare const TRANSPORT: unique symbol;
2132
+ /**
2133
+ * @deprecated Use {@link DURABLE_OPTIONS_CANONICAL} (`@dudousxd/nestjs-durable:options`). The legacy
2134
+ * token stays bound as a back-compat alias and still resolves; it will be removed in a future major.
2135
+ */
2124
2136
  declare const DURABLE_OPTIONS: unique symbol;
2137
+ /**
2138
+ * Canonical, cross-lib-discoverable aliases of the durable DI tokens, following the ecosystem
2139
+ * capability naming `@dudousxd/nestjs-durable:<name>` (identical to `capability('durable', <name>)`).
2140
+ * `DurableModule` binds these alongside the legacy tokens (dual-bind), so an external library can
2141
+ * resolve durable's store/transport/options by the canonical name without importing durable
2142
+ * internals. Bare `Symbol.for` (same cross-copy-stability rationale as the legacy tokens above)
2143
+ * keeps `core` free of any `@dudousxd/nestjs-diagnostics` runtime dependency.
2144
+ */
2145
+ declare const STATE_STORE_CANONICAL: unique symbol;
2146
+ declare const TRANSPORT_CANONICAL: unique symbol;
2147
+ declare const DURABLE_OPTIONS_CANONICAL: unique symbol;
2125
2148
 
2126
2149
  /**
2127
2150
  * A non-durable, in-process `StateStore` for tests and local development.
@@ -2209,4 +2232,4 @@ declare class InMemoryTransport implements Transport, ControlPlane {
2209
2232
  onControl(handler: (msg: ControlMessage) => void): void;
2210
2233
  }
2211
2234
 
2212
- export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AttributeFilter, type AttributeOp, type BackoffStrategy, type ChildCallOptions, CodecStateStore, ContinueAsNew, type ControlMessage, type ControlPlane, DURABLE_OPTIONS, type DurableWebhook, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, EventAccumulators, type EventBatchConfig, FatalError, type GroupHealth, type Heartbeat, type HistoryEvent, InMemoryAdmissionBackend, InMemoryStateStore, InMemoryTransport, type MetricsCollector, type MetricsSnapshot, type NamedTransport, NonDeterminismError, type PayloadCodec, type QueueConfig, QueueController, type RemoteStepConfig, type RemoteStepDef, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, type RunAttributeRow, type RunDispatcher, type RunQuery, type RunResult, type RunSchedulesOptions, type RunStatus, STATE_STORE, type ScheduledWorkflow, type SearchAttributes, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StartOptions, type StateStore, type StepCheckpoint, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepResult, type StoreTransaction, type SubProcessHandle, TRANSPORT, type Transport, type UpdateResult, type UpdateValidator, WORKFLOW_NAME_KEY, type WorkerHeartbeat, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowInputOf, type WorkflowOutputOf, type WorkflowRef, type WorkflowRun, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, applyAttributeQuery, attributeColumnFor, attributeOperand, breakpointToken, collectMetrics, eventMatchOf, eventMatches, eventPrefix, eventToken, matchesAttributes, normalizeAttributeRows, parseDuration, prevCronFireMs, remoteStep, runSchedules, runStepHandler, scheduledRunId, sqlComparator, stepId, workflowName };
2235
+ export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AttributeFilter, type AttributeOp, type BackoffStrategy, type ChildCallOptions, CodecStateStore, ContinueAsNew, type ControlMessage, type ControlPlane, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, type DurableWebhook, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, EventAccumulators, type EventBatchConfig, FatalError, type GroupHealth, type Heartbeat, type HistoryEvent, InMemoryAdmissionBackend, InMemoryStateStore, InMemoryTransport, type MetricsCollector, type MetricsSnapshot, type NamedTransport, NonDeterminismError, type PayloadCodec, type QueueConfig, QueueController, type RemoteStepConfig, type RemoteStepDef, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, type RunAttributeRow, type RunDispatcher, type RunQuery, type RunResult, type RunSchedulesOptions, type RunStatus, STATE_STORE, STATE_STORE_CANONICAL, type ScheduledWorkflow, type SearchAttributes, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StartOptions, type StateStore, type StepCheckpoint, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepResult, type StoreTransaction, type SubProcessHandle, TRANSPORT, TRANSPORT_CANONICAL, type Transport, type UpdateResult, type UpdateValidator, WORKFLOW_NAME_KEY, type WorkerHeartbeat, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowInputOf, type WorkflowOutputOf, type WorkflowRef, type WorkflowRun, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, applyAttributeQuery, attributeColumnFor, attributeOperand, breakpointToken, collectMetrics, eventMatchOf, eventMatches, eventPrefix, eventToken, matchesAttributes, normalizeAttributeRows, parseDuration, prevCronFireMs, remoteStep, runSchedules, runStepHandler, scheduledRunId, sqlComparator, stepId, workflowName };
package/dist/index.d.ts CHANGED
@@ -2119,9 +2119,32 @@ declare function attributeOperand(filter: AttributeFilter): string | number;
2119
2119
  * (`STATE_STORE is not available in the DurableApiModule context`). A registered symbol collapses
2120
2120
  * them to one. Mirrors the `CONTEXT_ACCESSOR` token in `@dudousxd/nestjs-durable`'s `tokens.ts`.
2121
2121
  */
2122
+ /**
2123
+ * @deprecated Use {@link STATE_STORE_CANONICAL} (`@dudousxd/nestjs-durable:state-store`). The legacy
2124
+ * token stays bound as a back-compat alias and still resolves; it will be removed in a future major.
2125
+ */
2122
2126
  declare const STATE_STORE: unique symbol;
2127
+ /**
2128
+ * @deprecated Use {@link TRANSPORT_CANONICAL} (`@dudousxd/nestjs-durable:transport`). The legacy
2129
+ * token stays bound as a back-compat alias and still resolves; it will be removed in a future major.
2130
+ */
2123
2131
  declare const TRANSPORT: unique symbol;
2132
+ /**
2133
+ * @deprecated Use {@link DURABLE_OPTIONS_CANONICAL} (`@dudousxd/nestjs-durable:options`). The legacy
2134
+ * token stays bound as a back-compat alias and still resolves; it will be removed in a future major.
2135
+ */
2124
2136
  declare const DURABLE_OPTIONS: unique symbol;
2137
+ /**
2138
+ * Canonical, cross-lib-discoverable aliases of the durable DI tokens, following the ecosystem
2139
+ * capability naming `@dudousxd/nestjs-durable:<name>` (identical to `capability('durable', <name>)`).
2140
+ * `DurableModule` binds these alongside the legacy tokens (dual-bind), so an external library can
2141
+ * resolve durable's store/transport/options by the canonical name without importing durable
2142
+ * internals. Bare `Symbol.for` (same cross-copy-stability rationale as the legacy tokens above)
2143
+ * keeps `core` free of any `@dudousxd/nestjs-diagnostics` runtime dependency.
2144
+ */
2145
+ declare const STATE_STORE_CANONICAL: unique symbol;
2146
+ declare const TRANSPORT_CANONICAL: unique symbol;
2147
+ declare const DURABLE_OPTIONS_CANONICAL: unique symbol;
2125
2148
 
2126
2149
  /**
2127
2150
  * A non-durable, in-process `StateStore` for tests and local development.
@@ -2209,4 +2232,4 @@ declare class InMemoryTransport implements Transport, ControlPlane {
2209
2232
  onControl(handler: (msg: ControlMessage) => void): void;
2210
2233
  }
2211
2234
 
2212
- export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AttributeFilter, type AttributeOp, type BackoffStrategy, type ChildCallOptions, CodecStateStore, ContinueAsNew, type ControlMessage, type ControlPlane, DURABLE_OPTIONS, type DurableWebhook, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, EventAccumulators, type EventBatchConfig, FatalError, type GroupHealth, type Heartbeat, type HistoryEvent, InMemoryAdmissionBackend, InMemoryStateStore, InMemoryTransport, type MetricsCollector, type MetricsSnapshot, type NamedTransport, NonDeterminismError, type PayloadCodec, type QueueConfig, QueueController, type RemoteStepConfig, type RemoteStepDef, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, type RunAttributeRow, type RunDispatcher, type RunQuery, type RunResult, type RunSchedulesOptions, type RunStatus, STATE_STORE, type ScheduledWorkflow, type SearchAttributes, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StartOptions, type StateStore, type StepCheckpoint, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepResult, type StoreTransaction, type SubProcessHandle, TRANSPORT, type Transport, type UpdateResult, type UpdateValidator, WORKFLOW_NAME_KEY, type WorkerHeartbeat, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowInputOf, type WorkflowOutputOf, type WorkflowRef, type WorkflowRun, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, applyAttributeQuery, attributeColumnFor, attributeOperand, breakpointToken, collectMetrics, eventMatchOf, eventMatches, eventPrefix, eventToken, matchesAttributes, normalizeAttributeRows, parseDuration, prevCronFireMs, remoteStep, runSchedules, runStepHandler, scheduledRunId, sqlComparator, stepId, workflowName };
2235
+ export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AttributeFilter, type AttributeOp, type BackoffStrategy, type ChildCallOptions, CodecStateStore, ContinueAsNew, type ControlMessage, type ControlPlane, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, type DurableWebhook, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, EventAccumulators, type EventBatchConfig, FatalError, type GroupHealth, type Heartbeat, type HistoryEvent, InMemoryAdmissionBackend, InMemoryStateStore, InMemoryTransport, type MetricsCollector, type MetricsSnapshot, type NamedTransport, NonDeterminismError, type PayloadCodec, type QueueConfig, QueueController, type RemoteStepConfig, type RemoteStepDef, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, type RunAttributeRow, type RunDispatcher, type RunQuery, type RunResult, type RunSchedulesOptions, type RunStatus, STATE_STORE, STATE_STORE_CANONICAL, type ScheduledWorkflow, type SearchAttributes, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StartOptions, type StateStore, type StepCheckpoint, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepResult, type StoreTransaction, type SubProcessHandle, TRANSPORT, TRANSPORT_CANONICAL, type Transport, type UpdateResult, type UpdateValidator, WORKFLOW_NAME_KEY, type WorkerHeartbeat, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowInputOf, type WorkflowOutputOf, type WorkflowRef, type WorkflowRun, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, applyAttributeQuery, attributeColumnFor, attributeOperand, breakpointToken, collectMetrics, eventMatchOf, eventMatches, eventPrefix, eventToken, matchesAttributes, normalizeAttributeRows, parseDuration, prevCronFireMs, remoteStep, runSchedules, runStepHandler, scheduledRunId, sqlComparator, stepId, workflowName };
package/dist/index.js CHANGED
@@ -3693,6 +3693,9 @@ __name(attributeOperand, "attributeOperand");
3693
3693
  var STATE_STORE = Symbol.for("nestjs-durable:STATE_STORE");
3694
3694
  var TRANSPORT = Symbol.for("nestjs-durable:TRANSPORT");
3695
3695
  var DURABLE_OPTIONS = Symbol.for("nestjs-durable:DURABLE_OPTIONS");
3696
+ var STATE_STORE_CANONICAL = Symbol.for("@dudousxd/nestjs-durable:state-store");
3697
+ var TRANSPORT_CANONICAL = Symbol.for("@dudousxd/nestjs-durable:transport");
3698
+ var DURABLE_OPTIONS_CANONICAL = Symbol.for("@dudousxd/nestjs-durable:options");
3696
3699
 
3697
3700
  // src/testing/in-memory-state-store.ts
3698
3701
  var InMemoryStateStore = class {
@@ -4007,6 +4010,7 @@ export {
4007
4010
  CodecStateStore,
4008
4011
  ContinueAsNew,
4009
4012
  DURABLE_OPTIONS,
4013
+ DURABLE_OPTIONS_CANONICAL,
4010
4014
  Entities,
4011
4015
  EventAccumulators,
4012
4016
  FatalError,
@@ -4019,9 +4023,11 @@ export {
4019
4023
  RemoteStepTimeout,
4020
4024
  RemoteWorkflowExecutor,
4021
4025
  STATE_STORE,
4026
+ STATE_STORE_CANONICAL,
4022
4027
  SignalTimeoutError,
4023
4028
  SingletonQueueFullError,
4024
4029
  TRANSPORT,
4030
+ TRANSPORT_CANONICAL,
4025
4031
  WORKFLOW_NAME_KEY,
4026
4032
  WorkflowEngine,
4027
4033
  WorkflowSuspended,