nestjs-serverless-workflow 0.0.5 → 0.0.6
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/adapter/index.d.ts +1 -1
- package/dist/adapter/index.js +1 -1
- package/dist/adapter/lambda.adapater.js +4 -1
- package/dist/adapter/lambda.adapater.js.map +1 -1
- package/dist/core/decorators/event.decorator.d.ts +1 -1
- package/dist/core/decorators/index.d.ts +5 -5
- package/dist/core/decorators/index.js +5 -5
- package/dist/core/decorators/with-retry.decorator.d.ts +1 -1
- package/dist/core/decorators/with-retry.decorator.js +1 -0
- package/dist/core/decorators/with-retry.decorator.js.map +1 -1
- package/dist/core/decorators/workflow.decorator.d.ts +1 -1
- package/dist/core/decorators/workflow.decorator.js +1 -0
- package/dist/core/decorators/workflow.decorator.js.map +1 -1
- package/dist/core/index.d.ts +6 -6
- package/dist/core/index.js +6 -6
- package/dist/core/providers/index.d.ts +3 -3
- package/dist/core/providers/index.js +3 -3
- package/dist/core/providers/ochestrator.service.d.ts +4 -3
- package/dist/core/providers/ochestrator.service.d.ts.map +1 -1
- package/dist/core/providers/ochestrator.service.js +3 -3
- package/dist/core/providers/ochestrator.service.js.map +1 -1
- package/dist/core/providers/router.factory.d.ts +2 -2
- package/dist/core/providers/router.factory.js +2 -2
- package/dist/core/providers/router.factory.js.map +1 -1
- package/dist/core/providers/router.service.d.ts +1 -1
- package/dist/core/providers/router.service.js +1 -1
- package/dist/core/providers/router.service.js.map +1 -1
- package/dist/core/providers/saga.service.d.ts +2 -2
- package/dist/core/providers/saga.service.js +1 -1
- package/dist/core/types/index.d.ts +6 -6
- package/dist/core/types/index.js +6 -6
- package/dist/core/types/workflow-definition.interface.d.ts +2 -2
- package/dist/core/utils/index.d.ts +1 -1
- package/dist/core/utils/index.js +1 -1
- package/dist/core/utils/retry-backoff.d.ts +1 -1
- package/dist/core/utils/retry-backoff.js +1 -1
- package/dist/core/workflow.module.d.ts +2 -2
- package/dist/core/workflow.module.d.ts.map +1 -1
- package/dist/core/workflow.module.js +1 -1
- package/dist/core/workflow.module.js.map +1 -1
- package/dist/event-bus/index.d.ts +2 -2
- package/dist/event-bus/index.js +2 -2
- package/dist/event-bus/sqs/sqs.emitter.d.ts +2 -2
- package/dist/event-bus/sqs/sqs.emitter.js +2 -0
- package/dist/event-bus/sqs/sqs.emitter.js.map +1 -1
- package/dist/event-bus/types/broker-publisher.interface.d.ts +1 -1
- package/dist/event-bus/types/broker-publisher.interface.js +1 -1
- package/dist/event-bus/types/broker-publisher.interface.js.map +1 -1
- package/dist/event-bus/types/index.d.ts +2 -2
- package/dist/event-bus/types/index.js +2 -2
- package/dist/exception/index.d.ts +1 -1
- package/dist/exception/index.js +1 -1
- package/package.json +2 -1
package/dist/adapter/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './lambda.adapater';
|
|
1
|
+
export * from './lambda.adapater.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/adapter/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './lambda.adapater';
|
|
1
|
+
export * from './lambda.adapater.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {} from '../event-bus/index.js';
|
|
2
|
+
import { OrchestratorService } from '../core/index.js';
|
|
3
|
+
import {} from '@nestjs/common';
|
|
4
|
+
import {} from 'aws-lambda';
|
|
2
5
|
// NOTDE:
|
|
3
6
|
// - ReportBatchItemFailures must be enabled on SQS event source mapping
|
|
4
7
|
// - Lambda must have sufficient timeout to process messages
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda.adapater.js","sourceRoot":"","sources":["../../packages/adapter/lambda.adapater.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lambda.adapater.js","sourceRoot":"","sources":["../../packages/adapter/lambda.adapater.ts"],"names":[],"mappings":"A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,MAAM,EAAE,CAAC,CAAC;IAC/E,OAAO;QACL,iBAAiB;KAClB,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISagaConfig } from '
|
|
1
|
+
import type { ISagaConfig } from '../../core/index.js';
|
|
2
2
|
export declare const WORKFLOW_HANDLER_KEY = "workflow:metadata";
|
|
3
3
|
export declare const OnEvent: (event: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4
4
|
export declare const OnCompensation: (event: string, config: ISagaConfig) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './default.decorator';
|
|
2
|
-
export * from './event.decorator';
|
|
3
|
-
export * from './params.decorator';
|
|
4
|
-
export * from './with-retry.decorator';
|
|
5
|
-
export * from './workflow.decorator';
|
|
1
|
+
export * from './default.decorator.js';
|
|
2
|
+
export * from './event.decorator.js';
|
|
3
|
+
export * from './params.decorator.js';
|
|
4
|
+
export * from './with-retry.decorator.js';
|
|
5
|
+
export * from './workflow.decorator.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './default.decorator';
|
|
2
|
-
export * from './event.decorator';
|
|
3
|
-
export * from './params.decorator';
|
|
4
|
-
export * from './with-retry.decorator';
|
|
5
|
-
export * from './workflow.decorator';
|
|
1
|
+
export * from './default.decorator.js';
|
|
2
|
+
export * from './event.decorator.js';
|
|
3
|
+
export * from './params.decorator.js';
|
|
4
|
+
export * from './with-retry.decorator.js';
|
|
5
|
+
export * from './workflow.decorator.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IBackoffRetryConfig } from '../types';
|
|
1
|
+
import { type IBackoffRetryConfig } from '../types/index.js';
|
|
2
2
|
export declare const getRetryKey: (propertyKey: string) => string;
|
|
3
3
|
export declare function WithRetry(config: IBackoffRetryConfig): (_target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4
4
|
//# sourceMappingURL=with-retry.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-retry.decorator.js","sourceRoot":"","sources":["../../../packages/core/decorators/with-retry.decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"with-retry.decorator.js","sourceRoot":"","sources":["../../../packages/core/decorators/with-retry.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,UAAU,CAAC;AAEpD,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,GAAG,cAAc,IAAI,WAAW,EAAE,CAAC;AAEvF,MAAM,UAAU,SAAS,CAAC,MAA2B,EAAE;IACrD,OAAO,CAAC,OAAY,EAAE,WAAmB,EAAE,UAA8B,EAAE,EAAE,CAAC;QAC5E,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QAC3E,OAAO,UAAU,CAAC;IAAA,CACnB,CAAC;AAAA,CACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IWorkflowDefinition } from '
|
|
1
|
+
import { type IWorkflowDefinition } from '../../core/index.js';
|
|
2
2
|
export declare const WORKFLOW_DEFINITION_KEY = "workflow:definition";
|
|
3
3
|
export declare function Workflow<T, Event, State>(definition: IWorkflowDefinition<T, Event, State>): <T extends new (...args: any[]) => {}>(instance: T) => T;
|
|
4
4
|
//# sourceMappingURL=workflow.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.decorator.js","sourceRoot":"","sources":["../../../packages/core/decorators/workflow.decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow.decorator.js","sourceRoot":"","sources":["../../../packages/core/decorators/workflow.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,QAAQ,CAAC;AAElD,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE7D,MAAM,UAAU,QAAQ,CAAkB,UAAgD,EAAE;IAC1F,OAAO,UAAkD,QAAW,EAAE;QACpE,OAAO,CAAC,cAAc,CAAC,uBAAuB,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAEtE,OAAO,QAAQ,CAAC;IAAA,CACjB,CAAC;AAAA,CACH"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './decorators';
|
|
2
|
-
export * from './providers';
|
|
3
|
-
export * from './providers/router.factory';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './utils';
|
|
6
|
-
export * from './workflow.module';
|
|
1
|
+
export * from './decorators/index.js';
|
|
2
|
+
export * from './providers/index.js';
|
|
3
|
+
export * from './providers/router.factory.js';
|
|
4
|
+
export * from './types/index.js';
|
|
5
|
+
export * from './utils/index.js';
|
|
6
|
+
export * from './workflow.module.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './decorators';
|
|
2
|
-
export * from './providers';
|
|
3
|
-
export * from './providers/router.factory';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './utils';
|
|
6
|
-
export * from './workflow.module';
|
|
1
|
+
export * from './decorators/index.js';
|
|
2
|
+
export * from './providers/index.js';
|
|
3
|
+
export * from './providers/router.factory.js';
|
|
4
|
+
export * from './types/index.js';
|
|
5
|
+
export * from './utils/index.js';
|
|
6
|
+
export * from './workflow.module.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './ochestrator.service';
|
|
2
|
-
export * from './router.factory';
|
|
3
|
-
export * from './router.service';
|
|
1
|
+
export * from './ochestrator.service.js';
|
|
2
|
+
export * from './router.factory.js';
|
|
3
|
+
export * from './router.service.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './ochestrator.service';
|
|
2
|
-
export * from './router.factory';
|
|
3
|
-
export * from './router.service';
|
|
1
|
+
export * from './ochestrator.service.js';
|
|
2
|
+
export * from './router.factory.js';
|
|
3
|
+
export * from './router.service.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { IWorkflowEvent } from '
|
|
1
|
+
import type { IWorkflowEvent } from '../../event-bus/index.js';
|
|
2
|
+
import { type OnModuleInit } from '@nestjs/common';
|
|
2
3
|
import { DiscoveryService, ModuleRef } from '@nestjs/core';
|
|
3
|
-
import { StateRouterHelperFactory } from './router.factory';
|
|
4
|
+
import { StateRouterHelperFactory } from './router.factory.js';
|
|
4
5
|
/**
|
|
5
6
|
* TODO:
|
|
6
7
|
* 1. SAGA: SAGA transaction will update history storage each transition, history service is implemented from `ISagaHistoryStore`
|
|
@@ -19,7 +20,7 @@ import { StateRouterHelperFactory } from './router.factory';
|
|
|
19
20
|
* +) If CompensationHandler
|
|
20
21
|
* 5. Timeout handling: listen for timeout event emitted by Runtime Adapter (DEV DONE - TESTING)
|
|
21
22
|
*/
|
|
22
|
-
export declare class OrchestratorService {
|
|
23
|
+
export declare class OrchestratorService implements OnModuleInit {
|
|
23
24
|
private readonly discoveryService;
|
|
24
25
|
private readonly routerHelperFactory;
|
|
25
26
|
private readonly moduleRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ochestrator.service.d.ts","sourceRoot":"","sources":["../../../packages/core/providers/ochestrator.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ochestrator.service.d.ts","sourceRoot":"","sources":["../../../packages/core/providers/ochestrator.service.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;;;;;;;;GAiBG;AACH,qBACa,mBAAoB,YAAW,YAAY;IAKpD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,MAAM,CAA6E;IAC3F,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwC;IAE/D,YACmB,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,wBAAwB,EAC7C,SAAS,EAAE,SAAS,EACnC;IAEJ,YAAY,SAqDX;IAEK,OAAO,CAAC,MAAM,EAAE,cAAc,iBA8GnC;CACF"}
|
|
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { getRetryKey, WORKFLOW_DEFAULT_EVENT, WORKFLOW_DEFINITION_KEY, WORKFLOW_HANDLER_KEY } from '../../core/index.js';
|
|
11
|
+
import { UnretriableException } from '../../exception/unretriable.exception.js';
|
|
12
12
|
import { BadRequestException, Injectable, Logger } from '@nestjs/common';
|
|
13
13
|
import { DiscoveryService, ModuleRef } from '@nestjs/core';
|
|
14
|
-
import { StateRouterHelperFactory } from './router.factory';
|
|
14
|
+
import { StateRouterHelperFactory } from './router.factory.js';
|
|
15
15
|
/**
|
|
16
16
|
* TODO:
|
|
17
17
|
* 1. SAGA: SAGA transaction will update history storage each transition, history service is implemented from `ISagaHistoryStore`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ochestrator.service.js","sourceRoot":"","sources":["../../../packages/core/providers/ochestrator.service.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ochestrator.service.js","sourceRoot":"","sources":["../../../packages/core/providers/ochestrator.service.ts"],"names":[],"mappings":";;;;;;;;;AAYA,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAE5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,EAAqB,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;;;;;;;;GAiBG;AAEH,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAKX,gBAAgB;IAChB,mBAAmB;IACnB,SAAS;IANpB,MAAM,GAAG,IAAI,GAAG,EAAkE,CAAC;IAC1E,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAE/D,YACmB,gBAAkC,EAClC,mBAA6C,EAC7C,SAAoB,EACrC;gCAHiB,gBAAgB;mCAChB,mBAAmB;yBACnB,SAAS;IACzB,CAAC;IAEJ,YAAY,GAAG;QACb,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;QACvD,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YACjC,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;YAC9B,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,WAAW;gBAAE,SAAS;Y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C,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC7D,MAAM,CAAC,KAAK,CAAC,gDAAiD,CAAW,CAAC,OAAO,GAAG,EAAE,GAAG,CAAC,CAAC;YAC3F,MAAM,CAAC,CAAC;QACV,CAAC;IAAA,CACF;CACF,CAAA;AAhLY,mBAAmB;IAD/B,UAAU,EAAE;qCAM0B,gBAAgB;QACb,wBAAwB;QAClC,SAAS;GAP5B,mBAAmB,CAgL/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '@nestjs/common';
|
|
2
|
-
import { RouterService } from './router.service';
|
|
3
|
-
import type { IWorkflowEntity, IWorkflowDefinition } from '../types';
|
|
2
|
+
import { RouterService } from './router.service.js';
|
|
3
|
+
import type { IWorkflowEntity, IWorkflowDefinition } from '../types/index.js';
|
|
4
4
|
export declare class StateRouterHelperFactory {
|
|
5
5
|
create<T, Event, State>(event: Event, entityService: IWorkflowEntity, workflowDefinition: IWorkflowDefinition<T, Event, State>, logger: Logger): RouterService<T, Event, State>;
|
|
6
6
|
}
|
|
@@ -4,8 +4,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
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;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { Injectable } from '@nestjs/common';
|
|
8
|
-
import { RouterService } from './router.service';
|
|
7
|
+
import { Injectable, Logger } from '@nestjs/common';
|
|
8
|
+
import { RouterService } from './router.service.js';
|
|
9
9
|
let StateRouterHelperFactory = class StateRouterHelperFactory {
|
|
10
10
|
create(event, entityService, workflowDefinition, logger) {
|
|
11
11
|
return new RouterService(event, entityService, workflowDefinition, logger);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.factory.js","sourceRoot":"","sources":["../../../packages/core/providers/router.factory.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"router.factory.js","sourceRoot":"","sources":["../../../packages/core/providers/router.factory.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,IAAa,wBAAwB,GAArC,MAAa,wBAAwB;IACnC,MAAM,CACJ,KAAY,EACZ,aAA8B,EAC9B,kBAAwD,EACxD,MAAc,EACkB;QAChC,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,CAAC,CAAC;IAAA,CAC5E;CACF,CAAA;AATY,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CASpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger } from '@nestjs/common';
|
|
2
|
-
import type { IWorkflowEntity, ITransitionEvent, IWorkflowDefinition } from '../types';
|
|
2
|
+
import type { IWorkflowEntity, ITransitionEvent, IWorkflowDefinition } from '../types/index.js';
|
|
3
3
|
export declare class RouterService<T, Event, State> {
|
|
4
4
|
private readonly event;
|
|
5
5
|
private readonly entityService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.service.js","sourceRoot":"","sources":["../../../packages/core/providers/router.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"router.service.js","sourceRoot":"","sources":["../../../packages/core/providers/router.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7D,MAAM,OAAO,aAAa;IAEL,KAAK;IACL,aAAa;IACb,kBAAkB;IAClB,MAAM;IAJzB,YACmB,KAAY,EACZ,aAA8B,EAC9B,kBAAwD,EACxD,MAAc,EAC/B;qBAJiB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AAM,IAAI,KAAK,CAAC,iFAAiF,CAAC,CAAC;QACrG,CAAC;QACD,MAAM,mBAAmB,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,KAA+B,CAAC;QAC3F,OAAO,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAAA,CAC7C;IAED,oBAAoB,CAAC,MAAS,EAAE,OAAY,EAAE,MAAW,EAAE,WAA4B,EAAE;QACvF,kEAAkE;QAClE,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,EAAE,SAAS,IAAI,MAAM,CAAC;QAC1D,MAAM,UAAU,GACd,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;QAE1E,IAAI,IAAI,GAAU,EAAE,CAAC;QACrB,IAAI,UAAU,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxC,8CAA8C;YAC9C,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;gBAC9B,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;oBAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;qBACjD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;oBAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;;oBACxD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;YACpC,CAAC;QACH,CAAC;aAAM,CAAC;YACN,kDAAkD;YAClD,IAAI,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,IAAI,CAAC;IAAA,CACb;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBrokerPublisher } from '
|
|
2
|
-
import type { SagaContext, ISagaConfig, IWorkflowDefinition, ISagaHistoryStore } from '
|
|
1
|
+
import type { IBrokerPublisher } from '../../event-bus/index.js';
|
|
2
|
+
import type { SagaContext, ISagaConfig, IWorkflowDefinition, ISagaHistoryStore } from '../../core/index.js';
|
|
3
3
|
export declare class SagaService {
|
|
4
4
|
private readonly logger;
|
|
5
5
|
/**
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Injectable, Logger } from '@nestjs/common';
|
|
8
|
-
import { RollbackStrategy, SagaStatus } from '
|
|
8
|
+
import { RollbackStrategy, SagaStatus } from '../../core/index.js';
|
|
9
9
|
let SagaService = class SagaService {
|
|
10
10
|
logger = new Logger(SagaService.name);
|
|
11
11
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './retry.interface';
|
|
2
|
-
export * from './saga.interface';
|
|
3
|
-
export * from './entity.interface';
|
|
4
|
-
export * from './shared.type';
|
|
5
|
-
export * from './transition-event.interface';
|
|
6
|
-
export * from './workflow-definition.interface';
|
|
1
|
+
export * from './retry.interface.js';
|
|
2
|
+
export * from './saga.interface.js';
|
|
3
|
+
export * from './entity.interface.js';
|
|
4
|
+
export * from './shared.type.js';
|
|
5
|
+
export * from './transition-event.interface.js';
|
|
6
|
+
export * from './workflow-definition.interface.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/types/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Files with enums (runtime values)
|
|
2
|
-
export * from './retry.interface';
|
|
3
|
-
export * from './saga.interface';
|
|
2
|
+
export * from './retry.interface.js';
|
|
3
|
+
export * from './saga.interface.js';
|
|
4
4
|
// Files with only types
|
|
5
|
-
export * from './entity.interface';
|
|
6
|
-
export * from './shared.type';
|
|
7
|
-
export * from './transition-event.interface';
|
|
8
|
-
export * from './workflow-definition.interface';
|
|
5
|
+
export * from './entity.interface.js';
|
|
6
|
+
export * from './shared.type.js';
|
|
7
|
+
export * from './transition-event.interface.js';
|
|
8
|
+
export * from './workflow-definition.interface.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBrokerPublisher } from '
|
|
2
|
-
import type { IBackoffRetryConfig, ISagaConfig, ISagaHistoryStore, ISagaRollbackRule, ITransitionEvent, IWorkflowEntity } from '
|
|
1
|
+
import type { IBrokerPublisher } from '../../event-bus/index.js';
|
|
2
|
+
import type { IBackoffRetryConfig, ISagaConfig, ISagaHistoryStore, ISagaRollbackRule, ITransitionEvent, IWorkflowEntity } from '../../core/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Defines the structure of a workflow definition, which includes the following properties:
|
|
5
5
|
* - `FinalStates`: An array of states that represent the final states of the workflow.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './retry-backoff';
|
|
1
|
+
export * from './retry-backoff.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './retry-backoff';
|
|
1
|
+
export * from './retry-backoff.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IBrokerPublisher } from '
|
|
1
|
+
import type { IBrokerPublisher } from '../event-bus/index.js';
|
|
2
2
|
import { type DynamicModule, type Provider } from '@nestjs/common';
|
|
3
|
-
import type { IWorkflowEntity } from './types';
|
|
3
|
+
import type { IWorkflowEntity } from './types/index.js';
|
|
4
4
|
export declare class WorkflowModule {
|
|
5
5
|
static register(options: {
|
|
6
6
|
imports?: any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../../packages/core/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,KAAK,aAAa,EAAU,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../../packages/core/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,KAAK,aAAa,EAAU,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,qBACa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;QAChB,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;QACtB,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACtC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;KACxB,GAAG,aAAa,CAWhB;CACF"}
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
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;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { OrchestratorService, StateRouterHelperFactory } from '
|
|
7
|
+
import { OrchestratorService, StateRouterHelperFactory } from '../core/index.js';
|
|
8
8
|
import { Module } from '@nestjs/common';
|
|
9
9
|
import { DiscoveryModule } from '@nestjs/core';
|
|
10
10
|
let WorkflowModule = class WorkflowModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../../packages/core/workflow.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvE,OAAO,EAAsB,MAAM,EAAiB,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../../packages/core/workflow.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvE,OAAO,EAAsB,MAAM,EAAiB,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,IAAa,cAAc,GAA3B,MAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,OAMf,EAAiB;QAChB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAE1D,MAAM,SAAS,GAAG,CAAC,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,CAAC,CAAC;QAEzG,OAAO;YACL,MAAM,EAAE,cAAc;YACtB,OAAO,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YAC9C,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,SAAS;SACnB,CAAC;IAAA,CACH;CACF,CAAA;AAnBY,cAAc;IAD1B,MAAM,CAAC,EAAE,CAAC;GACE,cAAc,CAmB1B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './sqs/sqs.emitter';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './sqs/sqs.emitter.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/event-bus/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './sqs/sqs.emitter';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './sqs/sqs.emitter.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IBrokerPublisher } from '../types/broker-publisher.interface';
|
|
2
|
-
import { type IWorkflowEvent } from '../types/workflow-event.interface';
|
|
1
|
+
import { type IBrokerPublisher } from '../types/broker-publisher.interface.js';
|
|
2
|
+
import { type IWorkflowEvent } from '../types/workflow-event.interface.js';
|
|
3
3
|
export declare class SqsEmitter implements IBrokerPublisher {
|
|
4
4
|
emit<T>(_payload: IWorkflowEvent<T>): Promise<void>;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqs.emitter.js","sourceRoot":"","sources":["../../../packages/event-bus/sqs/sqs.emitter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sqs.emitter.js","sourceRoot":"","sources":["../../../packages/event-bus/sqs/sqs.emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAuB,MAAM,mCAAmC,CAAC;AAExE,MAAM,OAAO,UAAU;IACrB,KAAK,CAAC,IAAI,CAAI,QAA2B,EAAiB,EAAC,CAAC;CAC7D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './workflow-event.interface.js';
|
|
2
2
|
//# sourceMappingURL=broker-publisher.interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"broker-publisher.interface.js","sourceRoot":"","sources":["../../../packages/event-bus/types/broker-publisher.interface.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"broker-publisher.interface.js","sourceRoot":"","sources":["../../../packages/event-bus/types/broker-publisher.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './broker-publisher.interface';
|
|
2
|
-
export * from './workflow-event.interface';
|
|
1
|
+
export * from './broker-publisher.interface.js';
|
|
2
|
+
export * from './workflow-event.interface.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './broker-publisher.interface';
|
|
2
|
-
export * from './workflow-event.interface';
|
|
1
|
+
export * from './broker-publisher.interface.js';
|
|
2
|
+
export * from './workflow-event.interface.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './unretriable.exception';
|
|
1
|
+
export * from './unretriable.exception.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/exception/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './unretriable.exception';
|
|
1
|
+
export * from './unretriable.exception.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-serverless-workflow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workflow and State Machines for NestJS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"rxjs": "^7.8.2",
|
|
75
75
|
"source-map-support": "^0.5.21",
|
|
76
76
|
"supertest": "^7.1.1",
|
|
77
|
+
"tsc-alias": "^1.8.16",
|
|
77
78
|
"typescript": "^5.8.3"
|
|
78
79
|
},
|
|
79
80
|
"typesVersions": {
|