@medusajs/workflow-engine-inmemory 0.0.5 → 1.0.0-rc-20241003153304

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/dist/index.d.ts +5 -6
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +8 -41
  4. package/dist/index.js.map +1 -0
  5. package/dist/loaders/index.d.ts +1 -3
  6. package/dist/loaders/index.d.ts.map +1 -1
  7. package/dist/loaders/index.js +6 -16
  8. package/dist/loaders/index.js.map +1 -0
  9. package/dist/loaders/utils.d.ts.map +1 -1
  10. package/dist/loaders/utils.js +1 -0
  11. package/dist/loaders/utils.js.map +1 -0
  12. package/dist/migrations/Migration20231228143900.js +1 -0
  13. package/dist/migrations/Migration20231228143900.js.map +1 -0
  14. package/dist/models/index.js +1 -0
  15. package/dist/models/index.js.map +1 -0
  16. package/dist/models/workflow-execution.d.ts +1 -1
  17. package/dist/models/workflow-execution.d.ts.map +1 -1
  18. package/dist/models/workflow-execution.js +3 -2
  19. package/dist/models/workflow-execution.js.map +1 -0
  20. package/dist/schema/index.d.ts +1 -1
  21. package/dist/schema/index.d.ts.map +1 -1
  22. package/dist/schema/index.js +1 -3
  23. package/dist/schema/index.js.map +1 -0
  24. package/dist/services/index.js +1 -0
  25. package/dist/services/index.js.map +1 -0
  26. package/dist/services/workflow-orchestrator.d.ts +9 -6
  27. package/dist/services/workflow-orchestrator.d.ts.map +1 -1
  28. package/dist/services/workflow-orchestrator.js +61 -21
  29. package/dist/services/workflow-orchestrator.js.map +1 -0
  30. package/dist/services/workflows-module.d.ts +15 -14
  31. package/dist/services/workflows-module.d.ts.map +1 -1
  32. package/dist/services/workflows-module.js +10 -89
  33. package/dist/services/workflows-module.js.map +1 -0
  34. package/dist/tsconfig.tsbuildinfo +1 -0
  35. package/dist/types/index.d.ts +1 -1
  36. package/dist/types/index.d.ts.map +1 -1
  37. package/dist/types/index.js +1 -0
  38. package/dist/types/index.js.map +1 -0
  39. package/dist/utils/index.js +1 -0
  40. package/dist/utils/index.js.map +1 -0
  41. package/dist/utils/workflow-orchestrator-storage.d.ts +22 -13
  42. package/dist/utils/workflow-orchestrator-storage.d.ts.map +1 -1
  43. package/dist/utils/workflow-orchestrator-storage.js +104 -27
  44. package/dist/utils/workflow-orchestrator-storage.js.map +1 -0
  45. package/package.json +29 -24
  46. package/dist/initialize/index.d.ts +0 -6
  47. package/dist/initialize/index.d.ts.map +0 -1
  48. package/dist/initialize/index.js +0 -18
  49. package/dist/joiner-config.d.ts +0 -8
  50. package/dist/joiner-config.d.ts.map +0 -1
  51. package/dist/joiner-config.js +0 -34
  52. package/dist/loaders/connection.d.ts +0 -5
  53. package/dist/loaders/connection.d.ts.map +0 -1
  54. package/dist/loaders/connection.js +0 -41
  55. package/dist/loaders/container.d.ts +0 -3
  56. package/dist/loaders/container.d.ts.map +0 -1
  57. package/dist/loaders/container.js +0 -33
  58. package/dist/module-definition.d.ts +0 -3
  59. package/dist/module-definition.d.ts.map +0 -1
  60. package/dist/module-definition.js +0 -16
  61. package/dist/repositories/index.d.ts +0 -3
  62. package/dist/repositories/index.d.ts.map +0 -1
  63. package/dist/repositories/index.js +0 -7
  64. package/dist/repositories/workflow-execution.d.ts +0 -8
  65. package/dist/repositories/workflow-execution.d.ts.map +0 -1
  66. package/dist/repositories/workflow-execution.js +0 -9
@@ -1,41 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const modules_sdk_1 = require("@medusajs/modules-sdk");
27
- const utils_1 = require("@medusajs/utils");
28
- const WorkflowOrchestratorModels = __importStar(require("../models"));
29
- exports.default = async ({ options, container, logger, }, moduleDeclaration) => {
30
- const entities = Object.values(WorkflowOrchestratorModels);
31
- const pathToMigrations = __dirname + "/../migrations";
32
- await utils_1.ModulesSdkUtils.mikroOrmConnectionLoader({
33
- moduleName: modules_sdk_1.Modules.WORKFLOW_ENGINE,
34
- entities,
35
- container,
36
- options,
37
- moduleDeclaration,
38
- logger,
39
- pathToMigrations,
40
- });
41
- };
@@ -1,3 +0,0 @@
1
- declare const _default: ({ container, options }: import("@medusajs/types").LoaderOptions) => Promise<void>;
2
- export default _default;
3
- //# sourceMappingURL=container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/loaders/container.ts"],"names":[],"mappings":";AAIA,wBAIE"}
@@ -1,33 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const utils_1 = require("@medusajs/utils");
27
- const ModuleModels = __importStar(require("../models"));
28
- const ModuleServices = __importStar(require("../services"));
29
- exports.default = utils_1.ModulesSdkUtils.moduleContainerLoaderFactory({
30
- moduleModels: ModuleModels,
31
- moduleServices: ModuleServices,
32
- moduleRepositories: { BaseRepository: utils_1.MikroOrmBaseRepository },
33
- });
@@ -1,3 +0,0 @@
1
- import { ModuleExports } from "@medusajs/types";
2
- export declare const moduleDefinition: ModuleExports;
3
- //# sourceMappingURL=module-definition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-definition.d.ts","sourceRoot":"","sources":["../src/module-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAS/C,eAAO,MAAM,gBAAgB,EAAE,aAG9B,CAAA"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.moduleDefinition = void 0;
7
- const _services_1 = require("./services");
8
- const connection_1 = __importDefault(require("./loaders/connection"));
9
- const container_1 = __importDefault(require("./loaders/container"));
10
- const utils_1 = __importDefault(require("./loaders/utils"));
11
- const service = _services_1.WorkflowsModuleService;
12
- const loaders = [container_1.default, connection_1.default, utils_1.default];
13
- exports.moduleDefinition = {
14
- service,
15
- loaders,
16
- };
@@ -1,3 +0,0 @@
1
- export { MikroOrmBaseRepository as BaseRepository } from "@medusajs/utils";
2
- export { WorkflowExecutionRepository } from "./workflow-execution";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowExecutionRepository = exports.BaseRepository = void 0;
4
- var utils_1 = require("@medusajs/utils");
5
- Object.defineProperty(exports, "BaseRepository", { enumerable: true, get: function () { return utils_1.MikroOrmBaseRepository; } });
6
- var workflow_execution_1 = require("./workflow-execution");
7
- Object.defineProperty(exports, "WorkflowExecutionRepository", { enumerable: true, get: function () { return workflow_execution_1.WorkflowExecutionRepository; } });
@@ -1,8 +0,0 @@
1
- import { DALUtils } from "@medusajs/utils";
2
- declare const WorkflowExecutionRepository_base: new ({ manager }: {
3
- manager: any;
4
- }) => DALUtils.MikroOrmBaseRepository<object>;
5
- export declare class WorkflowExecutionRepository extends WorkflowExecutionRepository_base {
6
- }
7
- export {};
8
- //# sourceMappingURL=workflow-execution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow-execution.d.ts","sourceRoot":"","sources":["../../src/repositories/workflow-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;;;;AAI1C,qBAAa,2BAA4B,SAAQ,gCAEhD;CAAG"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowExecutionRepository = void 0;
4
- const utils_1 = require("@medusajs/utils");
5
- const _models_1 = require("../models");
6
- // eslint-disable-next-line max-len
7
- class WorkflowExecutionRepository extends utils_1.DALUtils.mikroOrmBaseRepositoryFactory(_models_1.WorkflowExecution) {
8
- }
9
- exports.WorkflowExecutionRepository = WorkflowExecutionRepository;