@mondart/nestjs-common-module-saga 3.0.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.
Files changed (117) hide show
  1. package/dist/constant/index.d.ts +2 -0
  2. package/dist/constant/index.d.ts.map +1 -0
  3. package/dist/constant/index.js +18 -0
  4. package/dist/constant/index.js.map +1 -0
  5. package/dist/constant/saga-handler.const.d.ts +2 -0
  6. package/dist/constant/saga-handler.const.d.ts.map +1 -0
  7. package/dist/constant/saga-handler.const.js +5 -0
  8. package/dist/constant/saga-handler.const.js.map +1 -0
  9. package/dist/decorators/index.d.ts +2 -0
  10. package/dist/decorators/index.d.ts.map +1 -0
  11. package/dist/decorators/index.js +18 -0
  12. package/dist/decorators/index.js.map +1 -0
  13. package/dist/decorators/saga.decorator.d.ts +5 -0
  14. package/dist/decorators/saga.decorator.d.ts.map +1 -0
  15. package/dist/decorators/saga.decorator.js +16 -0
  16. package/dist/decorators/saga.decorator.js.map +1 -0
  17. package/dist/enums/index.d.ts +2 -0
  18. package/dist/enums/index.d.ts.map +1 -0
  19. package/dist/enums/index.js +18 -0
  20. package/dist/enums/index.js.map +1 -0
  21. package/dist/enums/saga-status.enum.d.ts +9 -0
  22. package/dist/enums/saga-status.enum.d.ts.map +1 -0
  23. package/dist/enums/saga-status.enum.js +13 -0
  24. package/dist/enums/saga-status.enum.js.map +1 -0
  25. package/dist/exceptions/index.d.ts +3 -0
  26. package/dist/exceptions/index.d.ts.map +1 -0
  27. package/dist/exceptions/index.js +19 -0
  28. package/dist/exceptions/index.js.map +1 -0
  29. package/dist/exceptions/saga-compensation.exception.d.ts +6 -0
  30. package/dist/exceptions/saga-compensation.exception.d.ts.map +1 -0
  31. package/dist/exceptions/saga-compensation.exception.js +14 -0
  32. package/dist/exceptions/saga-compensation.exception.js.map +1 -0
  33. package/dist/exceptions/saga-invocation.exception.d.ts +6 -0
  34. package/dist/exceptions/saga-invocation.exception.d.ts.map +1 -0
  35. package/dist/exceptions/saga-invocation.exception.js +14 -0
  36. package/dist/exceptions/saga-invocation.exception.js.map +1 -0
  37. package/dist/helpers/index.d.ts +3 -0
  38. package/dist/helpers/index.d.ts.map +1 -0
  39. package/dist/helpers/index.js +19 -0
  40. package/dist/helpers/index.js.map +1 -0
  41. package/dist/helpers/saga-exception-converter.helper.d.ts +4 -0
  42. package/dist/helpers/saga-exception-converter.helper.d.ts.map +1 -0
  43. package/dist/helpers/saga-exception-converter.helper.js +48 -0
  44. package/dist/helpers/saga-exception-converter.helper.js.map +1 -0
  45. package/dist/helpers/wrap-if-not-error.helper.d.ts +2 -0
  46. package/dist/helpers/wrap-if-not-error.helper.d.ts.map +1 -0
  47. package/dist/helpers/wrap-if-not-error.helper.js +10 -0
  48. package/dist/helpers/wrap-if-not-error.helper.js.map +1 -0
  49. package/dist/index.d.ts +8 -0
  50. package/dist/index.d.ts.map +1 -0
  51. package/dist/index.js +17 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/interfaces/index.d.ts +2 -0
  54. package/dist/interfaces/index.d.ts.map +1 -0
  55. package/dist/interfaces/index.js +18 -0
  56. package/dist/interfaces/index.js.map +1 -0
  57. package/dist/interfaces/saga-module-register.interface.d.ts +7 -0
  58. package/dist/interfaces/saga-module-register.interface.d.ts.map +1 -0
  59. package/dist/interfaces/saga-module-register.interface.js +4 -0
  60. package/dist/interfaces/saga-module-register.interface.js.map +1 -0
  61. package/dist/saga.module.d.ts +9 -0
  62. package/dist/saga.module.d.ts.map +1 -0
  63. package/dist/saga.module.js +79 -0
  64. package/dist/saga.module.js.map +1 -0
  65. package/dist/services/index.d.ts +5 -0
  66. package/dist/services/index.d.ts.map +1 -0
  67. package/dist/services/index.js +21 -0
  68. package/dist/services/index.js.map +1 -0
  69. package/dist/services/saga-builder.service.d.ts +9 -0
  70. package/dist/services/saga-builder.service.d.ts.map +1 -0
  71. package/dist/services/saga-builder.service.js +41 -0
  72. package/dist/services/saga-builder.service.js.map +1 -0
  73. package/dist/services/saga-flow.service.d.ts +15 -0
  74. package/dist/services/saga-flow.service.d.ts.map +1 -0
  75. package/dist/services/saga-flow.service.js +40 -0
  76. package/dist/services/saga-flow.service.js.map +1 -0
  77. package/dist/services/saga-step.service.d.ts +17 -0
  78. package/dist/services/saga-step.service.d.ts.map +1 -0
  79. package/dist/services/saga-step.service.js +38 -0
  80. package/dist/services/saga-step.service.js.map +1 -0
  81. package/dist/services/saga.service.d.ts +12 -0
  82. package/dist/services/saga.service.d.ts.map +1 -0
  83. package/dist/services/saga.service.js +45 -0
  84. package/dist/services/saga.service.js.map +1 -0
  85. package/dist/types/builder-method-return-result.type.d.ts +5 -0
  86. package/dist/types/builder-method-return-result.type.d.ts.map +1 -0
  87. package/dist/types/builder-method-return-result.type.js +3 -0
  88. package/dist/types/builder-method-return-result.type.js.map +1 -0
  89. package/dist/types/builder-method-step-result.type.d.ts +8 -0
  90. package/dist/types/builder-method-step-result.type.d.ts.map +1 -0
  91. package/dist/types/builder-method-step-result.type.js +3 -0
  92. package/dist/types/builder-method-step-result.type.js.map +1 -0
  93. package/dist/types/condition.type.d.ts +2 -0
  94. package/dist/types/condition.type.d.ts.map +1 -0
  95. package/dist/types/condition.type.js +3 -0
  96. package/dist/types/condition.type.js.map +1 -0
  97. package/dist/types/index.d.ts +8 -0
  98. package/dist/types/index.d.ts.map +1 -0
  99. package/dist/types/index.js +24 -0
  100. package/dist/types/index.js.map +1 -0
  101. package/dist/types/next-options.type.d.ts +13 -0
  102. package/dist/types/next-options.type.d.ts.map +1 -0
  103. package/dist/types/next-options.type.js +3 -0
  104. package/dist/types/next-options.type.js.map +1 -0
  105. package/dist/types/saga-fn.type.d.ts +2 -0
  106. package/dist/types/saga-fn.type.d.ts.map +1 -0
  107. package/dist/types/saga-fn.type.js +3 -0
  108. package/dist/types/saga-fn.type.js.map +1 -0
  109. package/dist/types/saga-step-class.type.d.ts +5 -0
  110. package/dist/types/saga-step-class.type.d.ts.map +1 -0
  111. package/dist/types/saga-step-class.type.js +9 -0
  112. package/dist/types/saga-step-class.type.js.map +1 -0
  113. package/dist/types/saga.type.d.ts +5 -0
  114. package/dist/types/saga.type.d.ts.map +1 -0
  115. package/dist/types/saga.type.js +3 -0
  116. package/dist/types/saga.type.js.map +1 -0
  117. package/package.json +32 -0
@@ -0,0 +1,2 @@
1
+ export * from './saga-handler.const';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./saga-handler.const"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constant/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,2 @@
1
+ export declare const __SAGA_HANDLER__ = "__SAGA_HANDLER__";
2
+ //# sourceMappingURL=saga-handler.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-handler.const.d.ts","sourceRoot":"","sources":["../../src/constant/saga-handler.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.__SAGA_HANDLER__ = void 0;
4
+ exports.__SAGA_HANDLER__ = '__SAGA_HANDLER__';
5
+ //# sourceMappingURL=saga-handler.const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-handler.const.js","sourceRoot":"","sources":["../../src/constant/saga-handler.const.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './saga.decorator';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./saga.decorator"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,5 @@
1
+ import 'reflect-metadata';
2
+ import { Type } from '@nestjs/common';
3
+ import { WithSaga } from '../types';
4
+ export declare function Saga<S>(command: Type<S>): <X, T extends Type<WithSaga<X, S, unknown>>>(target: T) => T;
5
+ //# sourceMappingURL=saga.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/saga.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAqB,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,IAC9B,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAG,CAAC,CAOlE"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Saga = Saga;
4
+ require("reflect-metadata");
5
+ const common_1 = require("@nestjs/common");
6
+ const constant_1 = require("../constant");
7
+ function Saga(command) {
8
+ return (target) => {
9
+ target.prototype.execute = function execute(cmd) {
10
+ return this.saga.execute(cmd);
11
+ };
12
+ Reflect.defineMetadata(constant_1.__SAGA_HANDLER__, command, target);
13
+ return (0, common_1.Injectable)({ scope: common_1.Scope.REQUEST })(target);
14
+ };
15
+ }
16
+ //# sourceMappingURL=saga.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga.decorator.js","sourceRoot":"","sources":["../../src/decorators/saga.decorator.ts"],"names":[],"mappings":";;AAKA,oBAQC;AAbD,4BAA0B;AAC1B,2CAAyD;AAEzD,0CAA+C;AAE/C,SAAgB,IAAI,CAAI,OAAgB;IACtC,OAAO,CAA6C,MAAS,EAAK,EAAE;QAClE,MAAM,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,OAAO,CAAC,GAAM;YAChD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC,CAAC;QACF,OAAO,CAAC,cAAc,CAAC,2BAAgB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC1D,OAAO,IAAA,mBAAU,EAAC,EAAE,KAAK,EAAE,cAAK,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAkB,CAAC;IACvE,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './saga-status.enum';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./saga-status.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -0,0 +1,9 @@
1
+ export declare enum SagaStatus {
2
+ New = "New",
3
+ InProgress = "In progress",
4
+ InCompensation = "In compensation",
5
+ Complete = "Complete",
6
+ CompensationComplete = "Compensation complete",
7
+ CompensationError = "Compensation error"
8
+ }
9
+ //# sourceMappingURL=saga-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-status.enum.d.ts","sourceRoot":"","sources":["../../src/enums/saga-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,UAAU,gBAAgB;IAC1B,cAAc,oBAAoB;IAClC,QAAQ,aAAa;IACrB,oBAAoB,0BAA0B;IAC9C,iBAAiB,uBAAuB;CACzC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaStatus = void 0;
4
+ var SagaStatus;
5
+ (function (SagaStatus) {
6
+ SagaStatus["New"] = "New";
7
+ SagaStatus["InProgress"] = "In progress";
8
+ SagaStatus["InCompensation"] = "In compensation";
9
+ SagaStatus["Complete"] = "Complete";
10
+ SagaStatus["CompensationComplete"] = "Compensation complete";
11
+ SagaStatus["CompensationError"] = "Compensation error";
12
+ })(SagaStatus || (exports.SagaStatus = SagaStatus = {}));
13
+ //# sourceMappingURL=saga-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-status.enum.js","sourceRoot":"","sources":["../../src/enums/saga-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,wCAA0B,CAAA;IAC1B,gDAAkC,CAAA;IAClC,mCAAqB,CAAA;IACrB,4DAA8C,CAAA;IAC9C,sDAAwC,CAAA;AAC1C,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB"}
@@ -0,0 +1,3 @@
1
+ export * from './saga-invocation.exception';
2
+ export * from './saga-compensation.exception';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./saga-invocation.exception"), exports);
18
+ __exportStar(require("./saga-compensation.exception"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,gEAA8C"}
@@ -0,0 +1,6 @@
1
+ export declare class SagaCompensationException extends Error {
2
+ readonly originalError: Error;
3
+ readonly step: string;
4
+ constructor(originalError: Error, step: string);
5
+ }
6
+ //# sourceMappingURL=saga-compensation.exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-compensation.exception.d.ts","sourceRoot":"","sources":["../../src/exceptions/saga-compensation.exception.ts"],"names":[],"mappings":"AAAA,qBAAa,yBAA0B,SAAQ,KAAK;IAEhD,QAAQ,CAAC,aAAa,EAAE,KAAK;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM;gBADZ,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,MAAM;CAMxB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaCompensationException = void 0;
4
+ class SagaCompensationException extends Error {
5
+ constructor(originalError, step) {
6
+ super(originalError.message);
7
+ this.originalError = originalError;
8
+ this.step = step;
9
+ Object.setPrototypeOf(this, SagaCompensationException.prototype);
10
+ this.stack = originalError.stack;
11
+ }
12
+ }
13
+ exports.SagaCompensationException = SagaCompensationException;
14
+ //# sourceMappingURL=saga-compensation.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-compensation.exception.js","sourceRoot":"","sources":["../../src/exceptions/saga-compensation.exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,yBAA0B,SAAQ,KAAK;IAClD,YACW,aAAoB,EACpB,IAAY;QAErB,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAHpB,kBAAa,GAAb,aAAa,CAAO;QACpB,SAAI,GAAJ,IAAI,CAAQ;QAGrB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;QACjE,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC;IACnC,CAAC;CACF;AATD,8DASC"}
@@ -0,0 +1,6 @@
1
+ export declare class SagaInvocationException extends Error {
2
+ readonly originalError: Error;
3
+ readonly step: string;
4
+ constructor(originalError: Error, step: string);
5
+ }
6
+ //# sourceMappingURL=saga-invocation.exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-invocation.exception.d.ts","sourceRoot":"","sources":["../../src/exceptions/saga-invocation.exception.ts"],"names":[],"mappings":"AAAA,qBAAa,uBAAwB,SAAQ,KAAK;IAE9C,QAAQ,CAAC,aAAa,EAAE,KAAK;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM;gBADZ,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,MAAM;CAMxB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaInvocationException = void 0;
4
+ class SagaInvocationException extends Error {
5
+ constructor(originalError, step) {
6
+ super(`${step}: ${originalError.message}`);
7
+ this.originalError = originalError;
8
+ this.step = step;
9
+ Object.setPrototypeOf(this, SagaInvocationException.prototype);
10
+ this.stack = originalError.stack;
11
+ }
12
+ }
13
+ exports.SagaInvocationException = SagaInvocationException;
14
+ //# sourceMappingURL=saga-invocation.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-invocation.exception.js","sourceRoot":"","sources":["../../src/exceptions/saga-invocation.exception.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAwB,SAAQ,KAAK;IAChD,YACW,aAAoB,EACpB,IAAY;QAErB,KAAK,CAAC,GAAG,IAAI,KAAK,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QAHlC,kBAAa,GAAb,aAAa,CAAO;QACpB,SAAI,GAAJ,IAAI,CAAQ;QAGrB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;QAC/D,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC;IACnC,CAAC;CACF;AATD,0DASC"}
@@ -0,0 +1,3 @@
1
+ export * from './wrap-if-not-error.helper';
2
+ export * from './saga-exception-converter.helper';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./wrap-if-not-error.helper"), exports);
18
+ __exportStar(require("./saga-exception-converter.helper"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,oEAAkD"}
@@ -0,0 +1,4 @@
1
+ export declare class SagaExceptionConverterHelper {
2
+ static toHttpException(exception: any): void;
3
+ }
4
+ //# sourceMappingURL=saga-exception-converter.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-exception-converter.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/saga-exception-converter.helper.ts"],"names":[],"mappings":"AAGA,qBAAa,4BAA4B;IACvC,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,GAAG;CAKtC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.SagaExceptionConverterHelper = void 0;
37
+ const exceptions = __importStar(require("@nestjs/common/exceptions"));
38
+ const common_1 = require("@nestjs/common");
39
+ class SagaExceptionConverterHelper {
40
+ static toHttpException(exception) {
41
+ if (exceptions[exception?.name])
42
+ throw new exceptions[exception?.name](exception?.response);
43
+ else
44
+ throw new common_1.InternalServerErrorException(exception?.response);
45
+ }
46
+ }
47
+ exports.SagaExceptionConverterHelper = SagaExceptionConverterHelper;
48
+ //# sourceMappingURL=saga-exception-converter.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-exception-converter.helper.js","sourceRoot":"","sources":["../../src/helpers/saga-exception-converter.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAwD;AACxD,2CAA8D;AAE9D,MAAa,4BAA4B;IACvC,MAAM,CAAC,eAAe,CAAC,SAAc;QACnC,IAAI,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC;YAC7B,MAAM,IAAI,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;;YACxD,MAAM,IAAI,qCAA4B,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACnE,CAAC;CACF;AAND,oEAMC"}
@@ -0,0 +1,2 @@
1
+ export declare function wrapIfNotError(x: unknown): Error;
2
+ //# sourceMappingURL=wrap-if-not-error.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap-if-not-error.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/wrap-if-not-error.helper.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,KAAK,CAKhD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrapIfNotError = wrapIfNotError;
4
+ function wrapIfNotError(x) {
5
+ if (!(x instanceof Error)) {
6
+ return new Error(String(x));
7
+ }
8
+ return x;
9
+ }
10
+ //# sourceMappingURL=wrap-if-not-error.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap-if-not-error.helper.js","sourceRoot":"","sources":["../../src/helpers/wrap-if-not-error.helper.ts"],"names":[],"mappings":";;AAAA,wCAKC;AALD,SAAgB,cAAc,CAAC,CAAU;IACvC,IAAI,CAAC,CAAC,CAAC,YAAY,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { SagaModuleRegisterParams } from './interfaces/saga-module-register.interface';
2
+ export { SagaCompensationException, SagaInvocationException, } from './exceptions';
3
+ export { SagaStatus } from './enums';
4
+ export { SagaBuilder } from './services';
5
+ export { SagaModule } from './saga.module';
6
+ export { Saga } from './decorators';
7
+ export { SagaStep } from './types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SagaStep = exports.Saga = exports.SagaModule = exports.SagaBuilder = exports.SagaStatus = exports.SagaInvocationException = exports.SagaCompensationException = void 0;
4
+ var exceptions_1 = require("./exceptions");
5
+ Object.defineProperty(exports, "SagaCompensationException", { enumerable: true, get: function () { return exceptions_1.SagaCompensationException; } });
6
+ Object.defineProperty(exports, "SagaInvocationException", { enumerable: true, get: function () { return exceptions_1.SagaInvocationException; } });
7
+ var enums_1 = require("./enums");
8
+ Object.defineProperty(exports, "SagaStatus", { enumerable: true, get: function () { return enums_1.SagaStatus; } });
9
+ var services_1 = require("./services");
10
+ Object.defineProperty(exports, "SagaBuilder", { enumerable: true, get: function () { return services_1.SagaBuilder; } });
11
+ var saga_module_1 = require("./saga.module");
12
+ Object.defineProperty(exports, "SagaModule", { enumerable: true, get: function () { return saga_module_1.SagaModule; } });
13
+ var decorators_1 = require("./decorators");
14
+ Object.defineProperty(exports, "Saga", { enumerable: true, get: function () { return decorators_1.Saga; } });
15
+ var types_1 = require("./types");
16
+ Object.defineProperty(exports, "SagaStep", { enumerable: true, get: function () { return types_1.SagaStep; } });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,2CAGsB;AAFpB,uHAAA,yBAAyB,OAAA;AACzB,qHAAA,uBAAuB,OAAA;AAEzB,iCAAqC;AAA5B,mGAAA,UAAU,OAAA;AACnB,uCAAyC;AAAhC,uGAAA,WAAW,OAAA;AACpB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,2CAAoC;AAA3B,kGAAA,IAAI,OAAA;AACb,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './saga-module-register.interface';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./saga-module-register.interface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD"}
@@ -0,0 +1,7 @@
1
+ import 'reflect-metadata';
2
+ import { ModuleMetadata, Type } from '@nestjs/common';
3
+ import { WithSaga } from '../types';
4
+ export interface SagaModuleRegisterParams extends Pick<ModuleMetadata, 'imports' | 'providers'> {
5
+ sagas: Type<WithSaga<any, any, any>>[];
6
+ }
7
+ //# sourceMappingURL=saga-module-register.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-module-register.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/saga-module-register.interface.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,WAAW,CAAC;IACrD,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;CACxC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("reflect-metadata");
4
+ //# sourceMappingURL=saga-module-register.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga-module-register.interface.js","sourceRoot":"","sources":["../../src/interfaces/saga-module-register.interface.ts"],"names":[],"mappings":";;AAAA,4BAA0B"}
@@ -0,0 +1,9 @@
1
+ import { DynamicModule, OnModuleDestroy } from '@nestjs/common';
2
+ import { SagaModuleRegisterParams } from './interfaces';
3
+ export declare class SagaModule implements OnModuleDestroy {
4
+ private static activeSagas;
5
+ private logger;
6
+ static register(params: SagaModuleRegisterParams): DynamicModule;
7
+ onModuleDestroy(): Promise<void>;
8
+ }
9
+ //# sourceMappingURL=saga.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga.module.d.ts","sourceRoot":"","sources":["../src/saga.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,eAAe,EAAQ,MAAM,gBAAgB,CAAC;AAG9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAIxD,qBAAa,UAAW,YAAW,eAAe;IAChD,OAAO,CAAC,MAAM,CAAC,WAAW,CAAgB;IAC1C,OAAO,CAAC,MAAM,CAAoD;IAElE,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,GAAG,aAAa;IA4C1D,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAavC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SagaModule = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const cqrs_1 = require("@nestjs/cqrs");
15
+ const core_1 = require("@nestjs/core");
16
+ const constant_1 = require("./constant");
17
+ class SagaModule {
18
+ constructor() {
19
+ this.logger = new common_1.Logger(SagaModule.name, { timestamp: true });
20
+ }
21
+ static register(params) {
22
+ return {
23
+ imports: [cqrs_1.CqrsModule, ...(params.imports || [])],
24
+ module: SagaModule,
25
+ providers: [
26
+ ...(params.providers || []),
27
+ ...params.sagas.flatMap((saga) => {
28
+ const cmdType = Reflect.getMetadata(constant_1.__SAGA_HANDLER__, saga);
29
+ let SagaCommandHandler = class SagaCommandHandler {
30
+ constructor(moduleRef) {
31
+ this.moduleRef = moduleRef;
32
+ }
33
+ async execute(cmd) {
34
+ const sagaId = new Date().getTime().toString();
35
+ SagaModule.activeSagas.push(sagaId);
36
+ try {
37
+ const s = await this.moduleRef.create(saga);
38
+ s.saga.bind(s);
39
+ return await s.execute(cmd);
40
+ }
41
+ catch (err) {
42
+ throw err;
43
+ }
44
+ finally {
45
+ SagaModule.activeSagas.pop();
46
+ }
47
+ }
48
+ };
49
+ SagaCommandHandler = __decorate([
50
+ (0, cqrs_1.CommandHandler)(cmdType),
51
+ __metadata("design:paramtypes", [core_1.ModuleRef])
52
+ ], SagaCommandHandler);
53
+ Object.defineProperty(SagaCommandHandler, 'name', {
54
+ writable: true,
55
+ value: [cmdType.name, 'SagaDispatcher'].join(''),
56
+ });
57
+ return [saga, SagaCommandHandler];
58
+ }),
59
+ ],
60
+ };
61
+ }
62
+ async onModuleDestroy() {
63
+ await new Promise((resolve) => {
64
+ const checkSagas = () => {
65
+ if (SagaModule.activeSagas.length) {
66
+ this.logger.warn('Waiting for sagas to complete...');
67
+ setTimeout(checkSagas, 5000);
68
+ }
69
+ else {
70
+ resolve('Done');
71
+ }
72
+ };
73
+ checkSagas();
74
+ });
75
+ }
76
+ }
77
+ exports.SagaModule = SagaModule;
78
+ SagaModule.activeSagas = [];
79
+ //# sourceMappingURL=saga.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saga.module.js","sourceRoot":"","sources":["../src/saga.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA8E;AAC9E,uCAA2E;AAC3E,uCAAyC;AAEzC,yCAA8C;AAG9C,MAAa,UAAU;IAAvB;QAEU,WAAM,GAAG,IAAI,eAAM,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IA2DpE,CAAC;IAzDQ,AAAP,MAAM,CAAC,QAAQ,CAAC,MAAgC;QAC9C,OAAO;YACL,OAAO,EAAE,CAAC,iBAAU,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YAChD,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE;gBACT,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;gBAC3B,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC/B,MAAM,OAAO,GAAc,OAAO,CAAC,WAAW,CAC5C,2BAAgB,EAChB,IAAI,CACL,CAAC;oBAEF,IACM,kBAAkB,GADxB,MACM,kBAAkB;wBACtB,YAAoB,SAAoB;4BAApB,cAAS,GAAT,SAAS,CAAW;wBAAG,CAAC;wBAE5C,KAAK,CAAC,OAAO,CAAC,GAAQ;4BACpB,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC;4BAC/C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;4BAEpC,IAAI,CAAC;gCACH,MAAM,CAAC,GACL,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gCACpC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gCACf,OAAO,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;4BAC9B,CAAC;4BAAC,OAAO,GAAG,EAAE,CAAC;gCACb,MAAM,GAAG,CAAC;4BACZ,CAAC;oCAAS,CAAC;gCACT,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;4BAC/B,CAAC;wBACH,CAAC;qBACF,CAAA;oBAlBK,kBAAkB;wBADvB,IAAA,qBAAc,EAAC,OAAO,CAAC;yDAES,gBAAS;uBADpC,kBAAkB,CAkBvB;oBAED,MAAM,CAAC,cAAc,CAAC,kBAAkB,EAAE,MAAM,EAAE;wBAChD,QAAQ,EAAE,IAAI;wBACd,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;qBACjD,CAAC,CAAC;oBAEH,OAAO,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;gBACpC,CAAC,CAAC;aACH;SACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,MAAM,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;YACpC,MAAM,UAAU,GAAG,GAAG,EAAE;gBACtB,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;oBAClC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;oBACrD,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;gBAC/B,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,MAAM,CAAC,CAAC;gBAClB,CAAC;YACH,CAAC,CAAC;YACF,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC;;AA5DH,gCA6DC;AA5DgB,sBAAW,GAAa,EAAE,AAAf,CAAgB"}
@@ -0,0 +1,5 @@
1
+ export * from './saga-builder.service';
2
+ export * from './saga-flow.service';
3
+ export * from './saga-step.service';
4
+ export * from './saga.service';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}