@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.
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -41
- package/dist/index.js.map +1 -0
- package/dist/loaders/index.d.ts +1 -3
- package/dist/loaders/index.d.ts.map +1 -1
- package/dist/loaders/index.js +6 -16
- package/dist/loaders/index.js.map +1 -0
- package/dist/loaders/utils.d.ts.map +1 -1
- package/dist/loaders/utils.js +1 -0
- package/dist/loaders/utils.js.map +1 -0
- package/dist/migrations/Migration20231228143900.js +1 -0
- package/dist/migrations/Migration20231228143900.js.map +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/workflow-execution.d.ts +1 -1
- package/dist/models/workflow-execution.d.ts.map +1 -1
- package/dist/models/workflow-execution.js +3 -2
- package/dist/models/workflow-execution.js.map +1 -0
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -3
- package/dist/schema/index.js.map +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/workflow-orchestrator.d.ts +9 -6
- package/dist/services/workflow-orchestrator.d.ts.map +1 -1
- package/dist/services/workflow-orchestrator.js +61 -21
- package/dist/services/workflow-orchestrator.js.map +1 -0
- package/dist/services/workflows-module.d.ts +15 -14
- package/dist/services/workflows-module.d.ts.map +1 -1
- package/dist/services/workflows-module.js +10 -89
- package/dist/services/workflows-module.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/workflow-orchestrator-storage.d.ts +22 -13
- package/dist/utils/workflow-orchestrator-storage.d.ts.map +1 -1
- package/dist/utils/workflow-orchestrator-storage.js +104 -27
- package/dist/utils/workflow-orchestrator-storage.js.map +1 -0
- package/package.json +29 -24
- package/dist/initialize/index.d.ts +0 -6
- package/dist/initialize/index.d.ts.map +0 -1
- package/dist/initialize/index.js +0 -18
- package/dist/joiner-config.d.ts +0 -8
- package/dist/joiner-config.d.ts.map +0 -1
- package/dist/joiner-config.js +0 -34
- package/dist/loaders/connection.d.ts +0 -5
- package/dist/loaders/connection.d.ts.map +0 -1
- package/dist/loaders/connection.js +0 -41
- package/dist/loaders/container.d.ts +0 -3
- package/dist/loaders/container.d.ts.map +0 -1
- package/dist/loaders/container.js +0 -33
- package/dist/module-definition.d.ts +0 -3
- package/dist/module-definition.d.ts.map +0 -1
- package/dist/module-definition.js +0 -16
- package/dist/repositories/index.d.ts +0 -3
- package/dist/repositories/index.d.ts.map +0 -1
- package/dist/repositories/index.js +0 -7
- package/dist/repositories/workflow-execution.d.ts +0 -8
- package/dist/repositories/workflow-execution.d.ts.map +0 -1
- 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 +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 +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 +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;
|