@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.cjs
CHANGED
|
@@ -40,7 +40,6 @@ __export(src_exports, {
|
|
|
40
40
|
DeadLetter: () => DeadLetter,
|
|
41
41
|
DurableModule: () => DurableModule,
|
|
42
42
|
DurableStartClient: () => DurableStartClient,
|
|
43
|
-
DurableStep: () => DurableStep,
|
|
44
43
|
ENTITY_METADATA: () => ENTITY_METADATA,
|
|
45
44
|
ENTITY_ON_METADATA: () => ENTITY_ON_METADATA,
|
|
46
45
|
Entity: () => Entity,
|
|
@@ -57,7 +56,6 @@ __export(src_exports, {
|
|
|
57
56
|
On: () => On,
|
|
58
57
|
OnDurableEvent: () => OnDurableEvent,
|
|
59
58
|
OnError: () => OnError,
|
|
60
|
-
OnEvent: () => OnEvent,
|
|
61
59
|
OnWorkflowCompleted: () => OnWorkflowCompleted,
|
|
62
60
|
OnWorkflowFailed: () => OnWorkflowFailed,
|
|
63
61
|
ProxyRunGateway: () => ProxyRunGateway,
|
|
@@ -228,9 +226,6 @@ __name(fileOfFrame, "fileOfFrame");
|
|
|
228
226
|
var WORKFLOW_METADATA = Symbol("nestjs-durable:workflow");
|
|
229
227
|
function Workflow(options) {
|
|
230
228
|
const declaredIn = declaringFile(Workflow);
|
|
231
|
-
if (options.input !== void 0 && options.inputSchema !== void 0) {
|
|
232
|
-
throw new Error(`@Workflow ${options.name}: set either \`input\` or its alias \`inputSchema\`, not both`);
|
|
233
|
-
}
|
|
234
229
|
return (target) => {
|
|
235
230
|
rememberDeclaringFile(target, declaredIn);
|
|
236
231
|
const meta = {
|
|
@@ -242,7 +237,7 @@ function Workflow(options) {
|
|
|
242
237
|
singleton: options.singleton,
|
|
243
238
|
concurrency: options.concurrency,
|
|
244
239
|
executionTimeout: options.executionTimeout,
|
|
245
|
-
input: options.input
|
|
240
|
+
input: options.input,
|
|
246
241
|
output: options.output,
|
|
247
242
|
validateInput: options.validateInput,
|
|
248
243
|
searchAttributes: options.searchAttributes,
|
|
@@ -299,7 +294,6 @@ function Step(nameOrOptions) {
|
|
|
299
294
|
};
|
|
300
295
|
}
|
|
301
296
|
__name(Step, "Step");
|
|
302
|
-
var DurableStep = Step;
|
|
303
297
|
function getDurableStepMeta(method) {
|
|
304
298
|
return Reflect.getMetadata(DURABLE_STEP_METADATA, method);
|
|
305
299
|
}
|
|
@@ -427,7 +421,6 @@ function addEventSubscriptions(target, entries) {
|
|
|
427
421
|
], target);
|
|
428
422
|
}
|
|
429
423
|
__name(addEventSubscriptions, "addEventSubscriptions");
|
|
430
|
-
var OnEvent = OnDurableEvent;
|
|
431
424
|
function getOnEvents(meta, target) {
|
|
432
425
|
const fromDecorator = Reflect.getMetadata(ON_EVENT_METADATA, target) ?? [];
|
|
433
426
|
const names = /* @__PURE__ */ new Set();
|
|
@@ -3937,7 +3930,7 @@ var DurableModule = class _DurableModule {
|
|
|
3937
3930
|
import_core6.ModuleRef
|
|
3938
3931
|
]
|
|
3939
3932
|
},
|
|
3940
|
-
//
|
|
3933
|
+
// Deprecated tokens that published releases still import resolve to the same instances:
|
|
3941
3934
|
{
|
|
3942
3935
|
provide: import_nestjs_durable_core19.STATE_STORE,
|
|
3943
3936
|
useExisting: import_nestjs_durable_core19.STATE_STORE_CANONICAL
|
|
@@ -4105,7 +4098,6 @@ var import_nestjs_durable_core20 = require("@dudousxd/nestjs-durable-core");
|
|
|
4105
4098
|
DeadLetter,
|
|
4106
4099
|
DurableModule,
|
|
4107
4100
|
DurableStartClient,
|
|
4108
|
-
DurableStep,
|
|
4109
4101
|
ENTITY_METADATA,
|
|
4110
4102
|
ENTITY_ON_METADATA,
|
|
4111
4103
|
Entity,
|
|
@@ -4122,7 +4114,6 @@ var import_nestjs_durable_core20 = require("@dudousxd/nestjs-durable-core");
|
|
|
4122
4114
|
On,
|
|
4123
4115
|
OnDurableEvent,
|
|
4124
4116
|
OnError,
|
|
4125
|
-
OnEvent,
|
|
4126
4117
|
OnWorkflowCompleted,
|
|
4127
4118
|
OnWorkflowFailed,
|
|
4128
4119
|
ProxyRunGateway,
|