@dudousxd/nestjs-durable 0.15.0 → 0.16.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/LICENSE +21 -0
- package/dist/index.cjs +790 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +411 -0
- package/dist/index.d.ts +411 -8
- package/dist/index.js +744 -21
- package/dist/index.js.map +1 -1
- package/package.json +21 -7
- package/dist/context-accessor.d.ts +0 -31
- package/dist/context-accessor.d.ts.map +0 -1
- package/dist/context-accessor.js +0 -3
- package/dist/context-accessor.js.map +0 -1
- package/dist/decorators.d.ts +0 -146
- package/dist/decorators.d.ts.map +0 -1
- package/dist/decorators.js +0 -103
- package/dist/decorators.js.map +0 -1
- package/dist/durable-step.registrar.d.ts +0 -30
- package/dist/durable-step.registrar.d.ts.map +0 -1
- package/dist/durable-step.registrar.js +0 -85
- package/dist/durable-step.registrar.js.map +0 -1
- package/dist/durable.module.d.ts +0 -108
- package/dist/durable.module.d.ts.map +0 -1
- package/dist/durable.module.js +0 -207
- package/dist/durable.module.js.map +0 -1
- package/dist/entity.d.ts +0 -43
- package/dist/entity.d.ts.map +0 -1
- package/dist/entity.js +0 -94
- package/dist/entity.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/input-validation.d.ts +0 -9
- package/dist/input-validation.d.ts.map +0 -1
- package/dist/input-validation.js +0 -30
- package/dist/input-validation.js.map +0 -1
- package/dist/step-interceptor.d.ts +0 -20
- package/dist/step-interceptor.d.ts.map +0 -1
- package/dist/step-interceptor.js +0 -22
- package/dist/step-interceptor.js.map +0 -1
- package/dist/timer-poller.d.ts +0 -20
- package/dist/timer-poller.d.ts.map +0 -1
- package/dist/timer-poller.js +0 -81
- package/dist/timer-poller.js.map +0 -1
- package/dist/tokens.d.ts +0 -13
- package/dist/tokens.d.ts.map +0 -1
- package/dist/tokens.js +0 -16
- package/dist/tokens.js.map +0 -1
- package/dist/workflow.registrar.d.ts +0 -33
- package/dist/workflow.registrar.d.ts.map +0 -1
- package/dist/workflow.registrar.js +0 -169
- package/dist/workflow.registrar.js.map +0 -1
- package/dist/workflow.service.d.ts +0 -55
- package/dist/workflow.service.d.ts.map +0 -1
- package/dist/workflow.service.js +0 -58
- package/dist/workflow.service.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,747 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
+
}) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// src/decorators.ts
|
|
11
|
+
import { WORKFLOW_NAME_KEY } from "@dudousxd/nestjs-durable-core";
|
|
12
|
+
import "reflect-metadata";
|
|
13
|
+
var WORKFLOW_METADATA = Symbol("nestjs-durable:workflow");
|
|
14
|
+
function Workflow(options) {
|
|
15
|
+
return (target) => {
|
|
16
|
+
const meta = {
|
|
17
|
+
name: options.name,
|
|
18
|
+
version: options.version ?? "1",
|
|
19
|
+
deadLetterWorkflow: options.deadLetterWorkflow,
|
|
20
|
+
tags: options.tags,
|
|
21
|
+
singleton: options.singleton,
|
|
22
|
+
executionTimeout: options.executionTimeout,
|
|
23
|
+
inputSchema: options.inputSchema,
|
|
24
|
+
validateInput: options.validateInput,
|
|
25
|
+
onEvent: options.onEvent,
|
|
26
|
+
debounce: options.debounce,
|
|
27
|
+
batch: options.batch
|
|
28
|
+
};
|
|
29
|
+
Reflect.defineMetadata(WORKFLOW_METADATA, meta, target);
|
|
30
|
+
Object.defineProperty(target, WORKFLOW_NAME_KEY, {
|
|
31
|
+
value: options.name,
|
|
32
|
+
configurable: true
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
__name(Workflow, "Workflow");
|
|
37
|
+
function getWorkflowMeta(target) {
|
|
38
|
+
return Reflect.getMetadata(WORKFLOW_METADATA, target);
|
|
39
|
+
}
|
|
40
|
+
__name(getWorkflowMeta, "getWorkflowMeta");
|
|
41
|
+
var DURABLE_STEP_METADATA = Symbol("nestjs-durable:step-handler");
|
|
42
|
+
function DurableStep(name) {
|
|
43
|
+
return (_target, _propertyKey, descriptor) => {
|
|
44
|
+
const meta = {
|
|
45
|
+
name
|
|
46
|
+
};
|
|
47
|
+
Reflect.defineMetadata(DURABLE_STEP_METADATA, meta, descriptor.value);
|
|
48
|
+
return descriptor;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
__name(DurableStep, "DurableStep");
|
|
52
|
+
function getDurableStepMeta(method) {
|
|
53
|
+
return Reflect.getMetadata(DURABLE_STEP_METADATA, method);
|
|
54
|
+
}
|
|
55
|
+
__name(getDurableStepMeta, "getDurableStepMeta");
|
|
56
|
+
var DEAD_LETTER_METADATA = Symbol("nestjs-durable:dead-letter");
|
|
57
|
+
function DeadLetter() {
|
|
58
|
+
return (_target, _propertyKey, descriptor) => {
|
|
59
|
+
Reflect.defineMetadata(DEAD_LETTER_METADATA, true, descriptor.value);
|
|
60
|
+
return descriptor;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
__name(DeadLetter, "DeadLetter");
|
|
64
|
+
function isDeadLetterHandler(method) {
|
|
65
|
+
return Reflect.getMetadata(DEAD_LETTER_METADATA, method) === true;
|
|
66
|
+
}
|
|
67
|
+
__name(isDeadLetterHandler, "isDeadLetterHandler");
|
|
68
|
+
var ON_EVENT_METADATA = Symbol("nestjs-durable:on-event");
|
|
69
|
+
function OnEvent(...events) {
|
|
70
|
+
return (target) => {
|
|
71
|
+
const existing = Reflect.getMetadata(ON_EVENT_METADATA, target) ?? [];
|
|
72
|
+
Reflect.defineMetadata(ON_EVENT_METADATA, [
|
|
73
|
+
...existing,
|
|
74
|
+
...events
|
|
75
|
+
], target);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
__name(OnEvent, "OnEvent");
|
|
79
|
+
function getOnEvents(meta, target) {
|
|
80
|
+
const fromDecorator = Reflect.getMetadata(ON_EVENT_METADATA, target) ?? [];
|
|
81
|
+
return [
|
|
82
|
+
.../* @__PURE__ */ new Set([
|
|
83
|
+
...meta.onEvent ?? [],
|
|
84
|
+
...fromDecorator
|
|
85
|
+
])
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
__name(getOnEvents, "getOnEvents");
|
|
89
|
+
|
|
90
|
+
// src/durable.module.ts
|
|
91
|
+
import { DURABLE_OPTIONS as DURABLE_OPTIONS4, STATE_STORE as STATE_STORE2, TRANSPORT as TRANSPORT2, WorkflowEngine as WorkflowEngine5 } from "@dudousxd/nestjs-durable-core";
|
|
92
|
+
import { Module } from "@nestjs/common";
|
|
93
|
+
import { DiscoveryModule, ModuleRef } from "@nestjs/core";
|
|
94
|
+
|
|
95
|
+
// src/durable-step.registrar.ts
|
|
96
|
+
import { DURABLE_OPTIONS, TRANSPORT } from "@dudousxd/nestjs-durable-core";
|
|
97
|
+
import { Inject, Injectable } from "@nestjs/common";
|
|
98
|
+
import { DiscoveryService, MetadataScanner } from "@nestjs/core";
|
|
99
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
100
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
101
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
102
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
103
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
104
|
+
}
|
|
105
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
106
|
+
function _ts_metadata(k, v) {
|
|
107
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
108
|
+
}
|
|
109
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
110
|
+
function _ts_param(paramIndex, decorator) {
|
|
111
|
+
return function(target, key) {
|
|
112
|
+
decorator(target, key, paramIndex);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
__name(_ts_param, "_ts_param");
|
|
116
|
+
function supportsHandle(transport) {
|
|
117
|
+
return typeof transport?.handle === "function";
|
|
118
|
+
}
|
|
119
|
+
__name(supportsHandle, "supportsHandle");
|
|
120
|
+
var DurableStepRegistrar = class {
|
|
121
|
+
static {
|
|
122
|
+
__name(this, "DurableStepRegistrar");
|
|
123
|
+
}
|
|
124
|
+
discovery;
|
|
125
|
+
metadataScanner;
|
|
126
|
+
transport;
|
|
127
|
+
options;
|
|
128
|
+
constructor(discovery, metadataScanner, transport, options) {
|
|
129
|
+
this.discovery = discovery;
|
|
130
|
+
this.metadataScanner = metadataScanner;
|
|
131
|
+
this.transport = transport;
|
|
132
|
+
this.options = options;
|
|
133
|
+
}
|
|
134
|
+
onModuleInit() {
|
|
135
|
+
if (this.options.worker === false) return;
|
|
136
|
+
if (!supportsHandle(this.transport)) return;
|
|
137
|
+
const transport = this.transport;
|
|
138
|
+
for (const wrapper of this.discovery.getProviders()) {
|
|
139
|
+
const { instance } = wrapper;
|
|
140
|
+
if (!instance || typeof instance !== "object") continue;
|
|
141
|
+
const prototype = Object.getPrototypeOf(instance);
|
|
142
|
+
for (const methodName of this.metadataScanner.getAllMethodNames(prototype)) {
|
|
143
|
+
const method = instance[methodName];
|
|
144
|
+
if (typeof method !== "function") continue;
|
|
145
|
+
const meta = getDurableStepMeta(method);
|
|
146
|
+
if (!meta) continue;
|
|
147
|
+
transport.handle(meta.name, (input, log) => instance[methodName](input, log));
|
|
148
|
+
}
|
|
7
149
|
}
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
DurableStepRegistrar = _ts_decorate([
|
|
153
|
+
Injectable(),
|
|
154
|
+
_ts_param(2, Inject(TRANSPORT)),
|
|
155
|
+
_ts_param(3, Inject(DURABLE_OPTIONS)),
|
|
156
|
+
_ts_metadata("design:type", Function),
|
|
157
|
+
_ts_metadata("design:paramtypes", [
|
|
158
|
+
typeof DiscoveryService === "undefined" ? Object : DiscoveryService,
|
|
159
|
+
typeof MetadataScanner === "undefined" ? Object : MetadataScanner,
|
|
160
|
+
Object,
|
|
161
|
+
typeof DurableModuleOptions === "undefined" ? Object : DurableModuleOptions
|
|
162
|
+
])
|
|
163
|
+
], DurableStepRegistrar);
|
|
164
|
+
|
|
165
|
+
// src/entity.ts
|
|
166
|
+
import { WorkflowEngine } from "@dudousxd/nestjs-durable-core";
|
|
167
|
+
import { Injectable as Injectable2 } from "@nestjs/common";
|
|
168
|
+
import "reflect-metadata";
|
|
169
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
170
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
171
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
172
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
173
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
174
|
+
}
|
|
175
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
176
|
+
function _ts_metadata2(k, v) {
|
|
177
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
178
|
+
}
|
|
179
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
180
|
+
var ENTITY_METADATA = Symbol("nestjs-durable:entity");
|
|
181
|
+
var ENTITY_ON_METADATA = Symbol("nestjs-durable:entity-on");
|
|
182
|
+
function Entity(options) {
|
|
183
|
+
return (target) => {
|
|
184
|
+
Reflect.defineMetadata(ENTITY_METADATA, options, target);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
__name(Entity, "Entity");
|
|
188
|
+
function On(op) {
|
|
189
|
+
return (target, propertyKey) => {
|
|
190
|
+
const ctor = target.constructor;
|
|
191
|
+
const ops = Reflect.getMetadata(ENTITY_ON_METADATA, ctor) ?? /* @__PURE__ */ new Map();
|
|
192
|
+
ops.set(op, propertyKey);
|
|
193
|
+
Reflect.defineMetadata(ENTITY_ON_METADATA, ops, ctor);
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
__name(On, "On");
|
|
197
|
+
function getEntityMeta(target) {
|
|
198
|
+
return Reflect.getMetadata(ENTITY_METADATA, target);
|
|
199
|
+
}
|
|
200
|
+
__name(getEntityMeta, "getEntityMeta");
|
|
201
|
+
function entityConfigFor(ctor) {
|
|
202
|
+
const ops = Reflect.getMetadata(ENTITY_ON_METADATA, ctor) ?? /* @__PURE__ */ new Map();
|
|
203
|
+
const Cls = ctor;
|
|
204
|
+
const handlers = {};
|
|
205
|
+
for (const [op, method] of ops) {
|
|
206
|
+
handlers[op] = (state, arg) => {
|
|
207
|
+
Object.setPrototypeOf(state, Cls.prototype);
|
|
208
|
+
const fn = state[method];
|
|
209
|
+
if (typeof fn !== "function") throw new Error(`entity handler "${method}" is not a method`);
|
|
210
|
+
return fn.call(state, arg);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
initialState: /* @__PURE__ */ __name(() => new Cls(), "initialState"),
|
|
215
|
+
handlers
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
__name(entityConfigFor, "entityConfigFor");
|
|
219
|
+
var EntityService = class {
|
|
220
|
+
static {
|
|
221
|
+
__name(this, "EntityService");
|
|
222
|
+
}
|
|
223
|
+
engine;
|
|
224
|
+
constructor(engine) {
|
|
225
|
+
this.engine = engine;
|
|
226
|
+
}
|
|
227
|
+
/** Send an operation to an entity (fire-and-forget; ordered + exactly-once per key). */
|
|
228
|
+
signal(name, key, op, arg) {
|
|
229
|
+
return this.engine.signalEntity(name, key, op, arg);
|
|
230
|
+
}
|
|
231
|
+
/** Read an entity's current durable state (or undefined if it has none yet). */
|
|
232
|
+
getState(name, key) {
|
|
233
|
+
return this.engine.getEntityState(name, key);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
EntityService = _ts_decorate2([
|
|
237
|
+
Injectable2(),
|
|
238
|
+
_ts_metadata2("design:type", Function),
|
|
239
|
+
_ts_metadata2("design:paramtypes", [
|
|
240
|
+
typeof WorkflowEngine === "undefined" ? Object : WorkflowEngine
|
|
241
|
+
])
|
|
242
|
+
], EntityService);
|
|
243
|
+
|
|
244
|
+
// src/timer-poller.ts
|
|
245
|
+
import { DURABLE_OPTIONS as DURABLE_OPTIONS2, WorkflowEngine as WorkflowEngine2, runSchedules } from "@dudousxd/nestjs-durable-core";
|
|
246
|
+
import { Inject as Inject2, Injectable as Injectable3 } from "@nestjs/common";
|
|
247
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
248
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
249
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
250
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
251
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
252
|
+
}
|
|
253
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
254
|
+
function _ts_metadata3(k, v) {
|
|
255
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
256
|
+
}
|
|
257
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
258
|
+
function _ts_param2(paramIndex, decorator) {
|
|
259
|
+
return function(target, key) {
|
|
260
|
+
decorator(target, key, paramIndex);
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
__name(_ts_param2, "_ts_param");
|
|
264
|
+
var TimerPoller = class {
|
|
265
|
+
static {
|
|
266
|
+
__name(this, "TimerPoller");
|
|
267
|
+
}
|
|
268
|
+
engine;
|
|
269
|
+
options;
|
|
270
|
+
timer;
|
|
271
|
+
polling = false;
|
|
272
|
+
unsubscribeEnqueued;
|
|
273
|
+
constructor(engine, options) {
|
|
274
|
+
this.engine = engine;
|
|
275
|
+
this.options = options;
|
|
276
|
+
}
|
|
277
|
+
async onApplicationBootstrap() {
|
|
278
|
+
if (this.options.worker === false) return;
|
|
279
|
+
this.unsubscribeEnqueued = this.engine.onEnqueued((runId) => void this.engine.runOne(runId));
|
|
280
|
+
await this.poll();
|
|
281
|
+
const intervalMs = this.options.timerPollMs ?? 1e3;
|
|
282
|
+
if (intervalMs > 0) {
|
|
283
|
+
this.timer = setInterval(() => void this.poll(), intervalMs);
|
|
284
|
+
this.timer.unref?.();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
onModuleDestroy() {
|
|
288
|
+
if (this.timer) clearInterval(this.timer);
|
|
289
|
+
this.unsubscribeEnqueued?.();
|
|
290
|
+
}
|
|
291
|
+
async poll() {
|
|
292
|
+
if (this.polling) return;
|
|
293
|
+
this.polling = true;
|
|
294
|
+
try {
|
|
295
|
+
await this.engine.runPending();
|
|
296
|
+
await this.engine.recoverIncomplete();
|
|
297
|
+
await this.engine.resumeDueTimers();
|
|
298
|
+
await this.engine.sweepTimeouts();
|
|
299
|
+
const schedules = this.options.schedules;
|
|
300
|
+
if (schedules && schedules.length > 0) {
|
|
301
|
+
await runSchedules(this.engine, schedules, Date.now());
|
|
302
|
+
}
|
|
303
|
+
} finally {
|
|
304
|
+
this.polling = false;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
TimerPoller = _ts_decorate3([
|
|
309
|
+
Injectable3(),
|
|
310
|
+
_ts_param2(1, Inject2(DURABLE_OPTIONS2)),
|
|
311
|
+
_ts_metadata3("design:type", Function),
|
|
312
|
+
_ts_metadata3("design:paramtypes", [
|
|
313
|
+
typeof WorkflowEngine2 === "undefined" ? Object : WorkflowEngine2,
|
|
314
|
+
typeof DurableModuleOptions === "undefined" ? Object : DurableModuleOptions
|
|
315
|
+
])
|
|
316
|
+
], TimerPoller);
|
|
317
|
+
|
|
318
|
+
// src/tokens.ts
|
|
319
|
+
var CONTEXT_ACCESSOR = Symbol.for("@dudousxd/nestjs-context:accessor");
|
|
320
|
+
|
|
321
|
+
// src/workflow.registrar.ts
|
|
322
|
+
import { DURABLE_OPTIONS as DURABLE_OPTIONS3, STATE_STORE, WorkflowEngine as WorkflowEngine3, parseDuration, workflowName } from "@dudousxd/nestjs-durable-core";
|
|
323
|
+
import { Inject as Inject3, Injectable as Injectable4 } from "@nestjs/common";
|
|
324
|
+
import { DiscoveryService as DiscoveryService2, MetadataScanner as MetadataScanner2 } from "@nestjs/core";
|
|
325
|
+
|
|
326
|
+
// src/input-validation.ts
|
|
327
|
+
function classValidatorInput(cls) {
|
|
328
|
+
let cv;
|
|
329
|
+
let ct;
|
|
330
|
+
try {
|
|
331
|
+
cv = __require("class-validator");
|
|
332
|
+
ct = __require("class-transformer");
|
|
333
|
+
} catch {
|
|
334
|
+
throw new Error('@Workflow({ inputSchema }) needs the optional peers "class-validator" and "class-transformer" \u2014 install them, or pass a `validateInput` function instead.');
|
|
335
|
+
}
|
|
336
|
+
return async (input) => {
|
|
337
|
+
const instance = ct.plainToInstance(cls, input);
|
|
338
|
+
const errors = await cv.validate(instance, {
|
|
339
|
+
whitelist: true
|
|
340
|
+
});
|
|
341
|
+
if (errors.length > 0) {
|
|
342
|
+
const message = errors.map((e) => Object.values(e.constraints ?? {
|
|
343
|
+
_: e.property
|
|
344
|
+
}).join(", ")).join("; ");
|
|
345
|
+
throw new Error(`invalid input for workflow: ${message}`);
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
__name(classValidatorInput, "classValidatorInput");
|
|
350
|
+
|
|
351
|
+
// src/step-interceptor.ts
|
|
352
|
+
import "reflect-metadata";
|
|
353
|
+
var STEP_INTERCEPTOR_METADATA = Symbol("nestjs-durable:step-interceptor");
|
|
354
|
+
function StepInterceptor() {
|
|
355
|
+
return (target) => {
|
|
356
|
+
Reflect.defineMetadata(STEP_INTERCEPTOR_METADATA, true, target);
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
__name(StepInterceptor, "StepInterceptor");
|
|
360
|
+
function isStepInterceptor(target) {
|
|
361
|
+
return Reflect.getMetadata(STEP_INTERCEPTOR_METADATA, target) === true;
|
|
362
|
+
}
|
|
363
|
+
__name(isStepInterceptor, "isStepInterceptor");
|
|
364
|
+
|
|
365
|
+
// src/workflow.registrar.ts
|
|
366
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
367
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
368
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
369
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
370
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
371
|
+
}
|
|
372
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
373
|
+
function _ts_metadata4(k, v) {
|
|
374
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
375
|
+
}
|
|
376
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
377
|
+
function _ts_param3(paramIndex, decorator) {
|
|
378
|
+
return function(target, key) {
|
|
379
|
+
decorator(target, key, paramIndex);
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
__name(_ts_param3, "_ts_param");
|
|
383
|
+
var WorkflowRegistrar = class {
|
|
384
|
+
static {
|
|
385
|
+
__name(this, "WorkflowRegistrar");
|
|
386
|
+
}
|
|
387
|
+
discovery;
|
|
388
|
+
metadataScanner;
|
|
389
|
+
engine;
|
|
390
|
+
store;
|
|
391
|
+
options;
|
|
392
|
+
constructor(discovery, metadataScanner, engine, store, options) {
|
|
393
|
+
this.discovery = discovery;
|
|
394
|
+
this.metadataScanner = metadataScanner;
|
|
395
|
+
this.engine = engine;
|
|
396
|
+
this.store = store;
|
|
397
|
+
this.options = options;
|
|
398
|
+
}
|
|
399
|
+
async onApplicationBootstrap() {
|
|
400
|
+
if (this.options.worker === false) return;
|
|
401
|
+
await this.engine.recoverIncomplete();
|
|
402
|
+
}
|
|
403
|
+
/** On deploy/shutdown: stop picking up new runs and wait for in-flight ones to settle, then close
|
|
404
|
+
* the transport(s) so the broker workers stop consuming and connections are released. Closing
|
|
405
|
+
* AFTER the drain keeps the transport alive while in-flight runs dispatch/await their remote steps. */
|
|
406
|
+
async onApplicationShutdown() {
|
|
407
|
+
await this.engine.drain(this.options.shutdownTimeoutMs);
|
|
408
|
+
const transports = [
|
|
409
|
+
this.options.transport,
|
|
410
|
+
...(this.options.transports ?? []).map((t) => t.transport)
|
|
411
|
+
];
|
|
412
|
+
await Promise.allSettled(transports.map((t) => t?.close?.()));
|
|
413
|
+
}
|
|
414
|
+
async onModuleInit() {
|
|
415
|
+
if (this.options.autoSchema !== false) {
|
|
416
|
+
await this.store.ensureSchema?.();
|
|
417
|
+
}
|
|
418
|
+
const deadLetterByWorkflow = /* @__PURE__ */ new Map();
|
|
419
|
+
for (const wrapper of this.discovery.getProviders()) {
|
|
420
|
+
const { instance } = wrapper;
|
|
421
|
+
if (!instance || typeof instance !== "object") continue;
|
|
422
|
+
if (isStepInterceptor(instance.constructor)) {
|
|
423
|
+
const interceptor = instance;
|
|
424
|
+
this.engine.use((invocation, next) => interceptor.intercept(invocation, next));
|
|
425
|
+
}
|
|
426
|
+
const entityMeta = getEntityMeta(instance.constructor);
|
|
427
|
+
if (entityMeta) {
|
|
428
|
+
this.engine.registerEntity(entityMeta.name, entityConfigFor(instance.constructor));
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
const meta = getWorkflowMeta(instance.constructor);
|
|
432
|
+
if (!meta) continue;
|
|
433
|
+
const workflow = instance;
|
|
434
|
+
if (typeof workflow.run !== "function") {
|
|
435
|
+
throw new Error(`@Workflow ${meta.name} must define a run(ctx, input) method`);
|
|
436
|
+
}
|
|
437
|
+
const validateInput = meta.validateInput ?? (meta.inputSchema ? classValidatorInput(meta.inputSchema) : void 0);
|
|
438
|
+
const eventBatch = meta.debounce ? {
|
|
439
|
+
mode: "debounce",
|
|
440
|
+
windowMs: parseDuration(meta.debounce)
|
|
441
|
+
} : meta.batch ? {
|
|
442
|
+
mode: "batch",
|
|
443
|
+
maxSize: meta.batch.maxSize,
|
|
444
|
+
windowMs: parseDuration(meta.batch.within)
|
|
445
|
+
} : void 0;
|
|
446
|
+
this.engine.register(meta.name, meta.version, (ctx, input) => workflow.run(ctx, input), {
|
|
447
|
+
tags: meta.tags,
|
|
448
|
+
singleton: meta.singleton,
|
|
449
|
+
executionTimeout: meta.executionTimeout,
|
|
450
|
+
validateInput,
|
|
451
|
+
onEvent: getOnEvents(meta, instance.constructor),
|
|
452
|
+
eventBatch
|
|
453
|
+
});
|
|
454
|
+
const inline = this.findDeadLetterHandler(instance);
|
|
455
|
+
if (inline && meta.deadLetterWorkflow) {
|
|
456
|
+
throw new Error(`@Workflow ${meta.name} declares both an inline @DeadLetter() method and a deadLetterWorkflow option. Use one: the inline handler, or the reference.`);
|
|
457
|
+
}
|
|
458
|
+
if (inline) {
|
|
459
|
+
const dlqName = `${meta.name}.dlq`;
|
|
460
|
+
this.engine.register(dlqName, meta.version, inline);
|
|
461
|
+
deadLetterByWorkflow.set(meta.name, dlqName);
|
|
462
|
+
} else if (meta.deadLetterWorkflow) {
|
|
463
|
+
deadLetterByWorkflow.set(meta.name, workflowName(meta.deadLetterWorkflow));
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
this.installDeadLetterRouting(deadLetterByWorkflow);
|
|
467
|
+
}
|
|
468
|
+
/** Returns the instance's `@DeadLetter()` method bound to the instance, or undefined if none. */
|
|
469
|
+
findDeadLetterHandler(instance) {
|
|
470
|
+
const prototype = Object.getPrototypeOf(instance);
|
|
471
|
+
for (const methodName of this.metadataScanner.getAllMethodNames(prototype)) {
|
|
472
|
+
const method = instance[methodName];
|
|
473
|
+
if (typeof method === "function" && isDeadLetterHandler(method)) {
|
|
474
|
+
return (ctx, input) => method.call(instance, ctx, input);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
return void 0;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Installs a single onDead listener that routes a dead run to its workflow's handler (from the
|
|
481
|
+
* map) or the module-level `deadLetterWorkflow` default. The handler is started idempotently with
|
|
482
|
+
* a `dlq:<runId>` id, so re-recovery never double-dispatches.
|
|
483
|
+
*/
|
|
484
|
+
installDeadLetterRouting(byWorkflow) {
|
|
485
|
+
const fallback = this.options.deadLetterWorkflow ? workflowName(this.options.deadLetterWorkflow) : void 0;
|
|
486
|
+
if (byWorkflow.size === 0 && !fallback) return;
|
|
487
|
+
this.engine.onDead((run) => {
|
|
488
|
+
const target = byWorkflow.get(run.workflow) ?? fallback;
|
|
489
|
+
if (!target) return;
|
|
490
|
+
void this.engine.start(target, {
|
|
491
|
+
deadRunId: run.id,
|
|
492
|
+
workflow: run.workflow,
|
|
493
|
+
input: run.input,
|
|
494
|
+
error: run.error
|
|
495
|
+
}, `dlq:${run.id}`).catch(() => void 0);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
WorkflowRegistrar = _ts_decorate4([
|
|
500
|
+
Injectable4(),
|
|
501
|
+
_ts_param3(3, Inject3(STATE_STORE)),
|
|
502
|
+
_ts_param3(4, Inject3(DURABLE_OPTIONS3)),
|
|
503
|
+
_ts_metadata4("design:type", Function),
|
|
504
|
+
_ts_metadata4("design:paramtypes", [
|
|
505
|
+
typeof DiscoveryService2 === "undefined" ? Object : DiscoveryService2,
|
|
506
|
+
typeof MetadataScanner2 === "undefined" ? Object : MetadataScanner2,
|
|
507
|
+
typeof WorkflowEngine3 === "undefined" ? Object : WorkflowEngine3,
|
|
508
|
+
typeof StateStore === "undefined" ? Object : StateStore,
|
|
509
|
+
typeof DurableModuleOptions === "undefined" ? Object : DurableModuleOptions
|
|
510
|
+
])
|
|
511
|
+
], WorkflowRegistrar);
|
|
512
|
+
|
|
513
|
+
// src/workflow.service.ts
|
|
514
|
+
import { randomUUID } from "node:crypto";
|
|
515
|
+
import { WorkflowEngine as WorkflowEngine4 } from "@dudousxd/nestjs-durable-core";
|
|
516
|
+
import { Injectable as Injectable5 } from "@nestjs/common";
|
|
517
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
518
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
519
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
520
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
521
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
522
|
+
}
|
|
523
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
524
|
+
function _ts_metadata5(k, v) {
|
|
525
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
526
|
+
}
|
|
527
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
528
|
+
var WorkflowService = class {
|
|
529
|
+
static {
|
|
530
|
+
__name(this, "WorkflowService");
|
|
531
|
+
}
|
|
532
|
+
engine;
|
|
533
|
+
constructor(engine) {
|
|
534
|
+
this.engine = engine;
|
|
535
|
+
}
|
|
536
|
+
start(workflow, input, runId = randomUUID(), opts) {
|
|
537
|
+
return this.engine.start(workflow, input, runId, opts);
|
|
538
|
+
}
|
|
539
|
+
resume(runId) {
|
|
540
|
+
return this.engine.resume(runId);
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Resolve once a run settles — terminal (completed/failed/cancelled/dead) or suspended. `start`
|
|
544
|
+
* only enqueues (a worker runs the body), so pair them when a request needs the outcome:
|
|
545
|
+
* `const { runId } = await svc.start(...); const result = await svc.waitForRun(runId)`.
|
|
546
|
+
*/
|
|
547
|
+
waitForRun(runId, opts) {
|
|
548
|
+
return this.engine.waitForRun(runId, opts);
|
|
549
|
+
}
|
|
550
|
+
/** Deliver an external signal (e.g. from a webhook) to the run waiting on `token`. */
|
|
551
|
+
signal(token, payload) {
|
|
552
|
+
return this.engine.signal(token, payload);
|
|
553
|
+
}
|
|
554
|
+
signalWithStart(workflow, input, runId, signal, opts) {
|
|
555
|
+
return this.engine.signalWithStart(workflow, input, runId, signal, opts);
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Publish a named event. Resumes runs waiting on it via `ctx.waitForEvent(name, { match })` and
|
|
559
|
+
* starts a fresh run of every workflow subscribed via `@Workflow({ onEvent })` / `@OnEvent` (the
|
|
560
|
+
* payload becomes its input). Pass `opts.id` to dedupe redeliveries. Returns how many runs it
|
|
561
|
+
* touched (resumed + started).
|
|
562
|
+
*/
|
|
563
|
+
publishEvent(name, payload, opts) {
|
|
564
|
+
return this.engine.publishEvent(name, payload, opts);
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
WorkflowService = _ts_decorate5([
|
|
568
|
+
Injectable5(),
|
|
569
|
+
_ts_metadata5("design:type", Function),
|
|
570
|
+
_ts_metadata5("design:paramtypes", [
|
|
571
|
+
typeof WorkflowEngine4 === "undefined" ? Object : WorkflowEngine4
|
|
572
|
+
])
|
|
573
|
+
], WorkflowService);
|
|
574
|
+
|
|
575
|
+
// src/durable.module.ts
|
|
576
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
577
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
578
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
579
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
580
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
581
|
+
}
|
|
582
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
583
|
+
function resolveAccessor(moduleRef) {
|
|
584
|
+
try {
|
|
585
|
+
return moduleRef.get(CONTEXT_ACCESSOR, {
|
|
586
|
+
strict: false
|
|
587
|
+
});
|
|
588
|
+
} catch {
|
|
589
|
+
return void 0;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
__name(resolveAccessor, "resolveAccessor");
|
|
593
|
+
function carrierFromAccessor(accessor) {
|
|
594
|
+
const carrier = {};
|
|
595
|
+
const traceId = accessor.traceId();
|
|
596
|
+
if (traceId !== void 0) carrier.traceId = traceId;
|
|
597
|
+
const tenantId = accessor.tenantId();
|
|
598
|
+
if (tenantId !== void 0) carrier.tenantId = tenantId;
|
|
599
|
+
const userRef = accessor.userRef();
|
|
600
|
+
if (userRef !== void 0) carrier.userRef = userRef;
|
|
601
|
+
return carrier;
|
|
602
|
+
}
|
|
603
|
+
__name(carrierFromAccessor, "carrierFromAccessor");
|
|
604
|
+
function isContextRuntime(x) {
|
|
605
|
+
return !!x && typeof x.deserialize === "function";
|
|
606
|
+
}
|
|
607
|
+
__name(isContextRuntime, "isContextRuntime");
|
|
608
|
+
async function resolveContextRuntime() {
|
|
609
|
+
try {
|
|
610
|
+
const specifier = "@dudousxd/nestjs-context";
|
|
611
|
+
const mod = await import(specifier);
|
|
612
|
+
return isContextRuntime(mod.Context) ? mod.Context : void 0;
|
|
613
|
+
} catch {
|
|
614
|
+
return void 0;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
__name(resolveContextRuntime, "resolveContextRuntime");
|
|
618
|
+
function isControlPlane(x) {
|
|
619
|
+
return !!x && typeof x.publishControl === "function" && typeof x.onControl === "function";
|
|
620
|
+
}
|
|
621
|
+
__name(isControlPlane, "isControlPlane");
|
|
622
|
+
var DurableModule = class _DurableModule {
|
|
623
|
+
static {
|
|
624
|
+
__name(this, "DurableModule");
|
|
625
|
+
}
|
|
626
|
+
static forRoot(options) {
|
|
627
|
+
return _DurableModule.build({
|
|
628
|
+
provide: DURABLE_OPTIONS4,
|
|
629
|
+
useValue: options
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
static forRootAsync(options) {
|
|
633
|
+
return _DurableModule.build({
|
|
634
|
+
provide: DURABLE_OPTIONS4,
|
|
635
|
+
useFactory: options.useFactory,
|
|
636
|
+
inject: options.inject ?? []
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
static build(optionsProvider) {
|
|
640
|
+
return {
|
|
641
|
+
module: _DurableModule,
|
|
642
|
+
global: true,
|
|
643
|
+
imports: [
|
|
644
|
+
DiscoveryModule
|
|
645
|
+
],
|
|
646
|
+
providers: [
|
|
647
|
+
optionsProvider,
|
|
648
|
+
{
|
|
649
|
+
provide: STATE_STORE2,
|
|
650
|
+
useFactory: /* @__PURE__ */ __name((options) => options.store, "useFactory"),
|
|
651
|
+
inject: [
|
|
652
|
+
DURABLE_OPTIONS4
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
provide: TRANSPORT2,
|
|
657
|
+
useFactory: /* @__PURE__ */ __name((options) => options.transport ?? null, "useFactory"),
|
|
658
|
+
inject: [
|
|
659
|
+
DURABLE_OPTIONS4
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
provide: WorkflowEngine5,
|
|
664
|
+
useFactory: /* @__PURE__ */ __name(async (store, transport, opts, moduleRef) => {
|
|
665
|
+
const primary = transport ?? opts.transports?.[0]?.transport;
|
|
666
|
+
const accessor = resolveAccessor(moduleRef);
|
|
667
|
+
const context = opts.context ?? (accessor ? () => carrierFromAccessor(accessor) : void 0);
|
|
668
|
+
const runtime = accessor ? await resolveContextRuntime() : void 0;
|
|
669
|
+
const rehydrate = runtime && ((carrier, fn) => carrier && Object.keys(carrier).length > 0 ? runtime.deserialize(carrier, fn) : fn());
|
|
670
|
+
const engine = new WorkflowEngine5({
|
|
671
|
+
store,
|
|
672
|
+
transport: transport ?? void 0,
|
|
673
|
+
transports: opts.transports,
|
|
674
|
+
controlPlane: opts.controlPlane ?? (isControlPlane(primary) ? primary : void 0),
|
|
675
|
+
leaseMs: opts.leaseMs,
|
|
676
|
+
maxRecoveryAttempts: opts.maxRecoveryAttempts,
|
|
677
|
+
instanceId: opts.instanceId,
|
|
678
|
+
webhookUrl: opts.webhookUrl,
|
|
679
|
+
traceparent: opts.traceparent,
|
|
680
|
+
context,
|
|
681
|
+
rehydrate: rehydrate || void 0,
|
|
682
|
+
compensationRetries: opts.compensationRetries,
|
|
683
|
+
// A non-worker (API/dashboard) instance must not run workflows: enqueue-only, leaving
|
|
684
|
+
// each `pending` run in the store for a worker's `runPending` poll. Workers use the
|
|
685
|
+
// default in-process dispatcher (execute locally).
|
|
686
|
+
runDispatcher: opts.worker === false ? {
|
|
687
|
+
dispatch: /* @__PURE__ */ __name(() => {
|
|
688
|
+
}, "dispatch")
|
|
689
|
+
} : void 0
|
|
690
|
+
});
|
|
691
|
+
for (const queue of opts.queues ?? []) engine.registerQueue(queue);
|
|
692
|
+
return engine;
|
|
693
|
+
}, "useFactory"),
|
|
694
|
+
inject: [
|
|
695
|
+
STATE_STORE2,
|
|
696
|
+
TRANSPORT2,
|
|
697
|
+
DURABLE_OPTIONS4,
|
|
698
|
+
ModuleRef
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
|
+
WorkflowService,
|
|
702
|
+
EntityService,
|
|
703
|
+
WorkflowRegistrar,
|
|
704
|
+
DurableStepRegistrar,
|
|
705
|
+
TimerPoller
|
|
706
|
+
],
|
|
707
|
+
exports: [
|
|
708
|
+
WorkflowService,
|
|
709
|
+
EntityService,
|
|
710
|
+
WorkflowEngine5,
|
|
711
|
+
STATE_STORE2,
|
|
712
|
+
TRANSPORT2
|
|
713
|
+
]
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
DurableModule = _ts_decorate6([
|
|
718
|
+
Module({})
|
|
719
|
+
], DurableModule);
|
|
720
|
+
export {
|
|
721
|
+
CONTEXT_ACCESSOR,
|
|
722
|
+
DEAD_LETTER_METADATA,
|
|
723
|
+
DURABLE_STEP_METADATA,
|
|
724
|
+
DeadLetter,
|
|
725
|
+
DurableModule,
|
|
726
|
+
DurableStep,
|
|
727
|
+
ENTITY_METADATA,
|
|
728
|
+
ENTITY_ON_METADATA,
|
|
729
|
+
Entity,
|
|
730
|
+
EntityService,
|
|
731
|
+
ON_EVENT_METADATA,
|
|
732
|
+
On,
|
|
733
|
+
OnEvent,
|
|
734
|
+
STEP_INTERCEPTOR_METADATA,
|
|
735
|
+
StepInterceptor,
|
|
736
|
+
WORKFLOW_METADATA,
|
|
737
|
+
Workflow,
|
|
738
|
+
WorkflowService,
|
|
739
|
+
entityConfigFor,
|
|
740
|
+
getDurableStepMeta,
|
|
741
|
+
getEntityMeta,
|
|
742
|
+
getOnEvents,
|
|
743
|
+
getWorkflowMeta,
|
|
744
|
+
isDeadLetterHandler,
|
|
745
|
+
isStepInterceptor
|
|
15
746
|
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./context-accessor"), exports);
|
|
18
|
-
__exportStar(require("./decorators"), exports);
|
|
19
|
-
__exportStar(require("./durable.module"), exports);
|
|
20
|
-
__exportStar(require("./entity"), exports);
|
|
21
|
-
__exportStar(require("./step-interceptor"), exports);
|
|
22
|
-
__exportStar(require("./tokens"), exports);
|
|
23
|
-
__exportStar(require("./workflow.service"), exports);
|
|
24
747
|
//# sourceMappingURL=index.js.map
|