@dudousxd/nestjs-durable-core 0.31.0 → 0.32.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.d.cts CHANGED
@@ -2122,6 +2122,17 @@ declare function attributeOperand(filter: AttributeFilter): string | number;
2122
2122
  declare const STATE_STORE: unique symbol;
2123
2123
  declare const TRANSPORT: unique symbol;
2124
2124
  declare const DURABLE_OPTIONS: unique symbol;
2125
+ /**
2126
+ * Canonical, cross-lib-discoverable aliases of the durable DI tokens, following the ecosystem
2127
+ * capability naming `@dudousxd/nestjs-durable:<name>` (identical to `capability('durable', <name>)`).
2128
+ * `DurableModule` binds these alongside the legacy tokens (dual-bind), so an external library can
2129
+ * resolve durable's store/transport/options by the canonical name without importing durable
2130
+ * internals. Bare `Symbol.for` (same cross-copy-stability rationale as the legacy tokens above)
2131
+ * keeps `core` free of any `@dudousxd/nestjs-diagnostics` runtime dependency.
2132
+ */
2133
+ declare const STATE_STORE_CANONICAL: unique symbol;
2134
+ declare const TRANSPORT_CANONICAL: unique symbol;
2135
+ declare const DURABLE_OPTIONS_CANONICAL: unique symbol;
2125
2136
 
2126
2137
  /**
2127
2138
  * A non-durable, in-process `StateStore` for tests and local development.
@@ -2209,4 +2220,4 @@ declare class InMemoryTransport implements Transport, ControlPlane {
2209
2220
  onControl(handler: (msg: ControlMessage) => void): void;
2210
2221
  }
2211
2222
 
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 };
2223
+ 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
@@ -2122,6 +2122,17 @@ declare function attributeOperand(filter: AttributeFilter): string | number;
2122
2122
  declare const STATE_STORE: unique symbol;
2123
2123
  declare const TRANSPORT: unique symbol;
2124
2124
  declare const DURABLE_OPTIONS: unique symbol;
2125
+ /**
2126
+ * Canonical, cross-lib-discoverable aliases of the durable DI tokens, following the ecosystem
2127
+ * capability naming `@dudousxd/nestjs-durable:<name>` (identical to `capability('durable', <name>)`).
2128
+ * `DurableModule` binds these alongside the legacy tokens (dual-bind), so an external library can
2129
+ * resolve durable's store/transport/options by the canonical name without importing durable
2130
+ * internals. Bare `Symbol.for` (same cross-copy-stability rationale as the legacy tokens above)
2131
+ * keeps `core` free of any `@dudousxd/nestjs-diagnostics` runtime dependency.
2132
+ */
2133
+ declare const STATE_STORE_CANONICAL: unique symbol;
2134
+ declare const TRANSPORT_CANONICAL: unique symbol;
2135
+ declare const DURABLE_OPTIONS_CANONICAL: unique symbol;
2125
2136
 
2126
2137
  /**
2127
2138
  * A non-durable, in-process `StateStore` for tests and local development.
@@ -2209,4 +2220,4 @@ declare class InMemoryTransport implements Transport, ControlPlane {
2209
2220
  onControl(handler: (msg: ControlMessage) => void): void;
2210
2221
  }
2211
2222
 
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 };
2223
+ 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,