@medusajs/workflow-engine-inmemory 2.1.1-snapshot-20241205131915 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/migrations/Migration20241206101446.d.ts +5 -0
- package/dist/migrations/Migration20241206101446.d.ts.map +1 -0
- package/dist/migrations/Migration20241206101446.js +19 -0
- package/dist/migrations/Migration20241206101446.js.map +1 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -4
- package/dist/models/index.js.map +1 -1
- package/dist/models/workflow-execution.d.ts +15 -17
- package/dist/models/workflow-execution.d.ts.map +1 -1
- package/dist/models/workflow-execution.js +28 -93
- package/dist/models/workflow-execution.js.map +1 -1
- package/dist/services/workflows-module.d.ts +3 -3
- package/dist/services/workflows-module.d.ts.map +1 -1
- package/dist/services/workflows-module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20241206101446.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20241206101446.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;CAuB1B"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Migration20241206101446 = void 0;
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
5
|
+
class Migration20241206101446 extends migrations_1.Migration {
|
6
|
+
async up() {
|
7
|
+
this.addSql(`DROP INDEX IF EXISTS "IDX_workflow_execution_id";
|
8
|
+
DROP INDEX IF EXISTS "IDX_workflow_execution_workflow_id";
|
9
|
+
DROP INDEX IF EXISTS "IDX_workflow_execution_transaction_id";
|
10
|
+
DROP INDEX IF EXISTS "IDX_workflow_execution_state";`);
|
11
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_deleted_at" ON "workflow_execution" (deleted_at) WHERE deleted_at IS NULL;');
|
12
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_id" ON "workflow_execution" (id) WHERE deleted_at IS NULL;');
|
13
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_workflow_id" ON "workflow_execution" (workflow_id) WHERE deleted_at IS NULL;');
|
14
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_transaction_id" ON "workflow_execution" (transaction_id) WHERE deleted_at IS NULL;');
|
15
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_state" ON "workflow_execution" (state) WHERE deleted_at IS NULL;');
|
16
|
+
}
|
17
|
+
}
|
18
|
+
exports.Migration20241206101446 = Migration20241206101446;
|
19
|
+
//# sourceMappingURL=Migration20241206101446.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20241206101446.js","sourceRoot":"","sources":["../../src/migrations/Migration20241206101446.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT;;;2DAGqD,CACtD,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+HAA+H,CAChI,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+GAA+G,CAChH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iIAAiI,CAClI,CAAA;QACD,IAAI,CAAC,MAAM,CACT,uIAAuI,CACxI,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qHAAqH,CACtH,CAAA;IACH,CAAC;CACF;AAxBD,0DAwBC"}
|
package/dist/models/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
1
|
+
export { WorkflowExecution } from "./workflow-execution";
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/dist/models/index.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.WorkflowExecution = void 0;
|
7
4
|
var workflow_execution_1 = require("./workflow-execution");
|
8
|
-
Object.defineProperty(exports, "WorkflowExecution", { enumerable: true, get: function () { return
|
5
|
+
Object.defineProperty(exports, "WorkflowExecution", { enumerable: true, get: function () { return workflow_execution_1.WorkflowExecution; } });
|
9
6
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAA/C,uHAAA,iBAAiB,OAAA"}
|
@@ -1,19 +1,17 @@
|
|
1
1
|
import { TransactionState } from "@medusajs/framework/orchestration";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
18
|
-
export {};
|
2
|
+
export declare const WorkflowExecution: import("@medusajs/framework/utils").DmlEntity<{
|
3
|
+
id: import("@medusajs/framework/utils").IdProperty;
|
4
|
+
workflow_id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
5
|
+
transaction_id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
6
|
+
execution: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
7
|
+
context: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
8
|
+
state: import("@medusajs/framework/utils").EnumProperty<typeof TransactionState>;
|
9
|
+
} & {
|
10
|
+
id: import("@medusajs/framework/utils").IdProperty;
|
11
|
+
workflow_id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
12
|
+
transaction_id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
13
|
+
execution: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
14
|
+
context: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
15
|
+
state: import("@medusajs/framework/utils").EnumProperty<typeof TransactionState>;
|
16
|
+
} & {} & import("@medusajs/framework/utils").DMLSchemaDefaults, "workflow_execution">;
|
19
17
|
//# sourceMappingURL=workflow-execution.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflow-execution.d.ts","sourceRoot":"","sources":["../../src/models/workflow-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;
|
1
|
+
{"version":3,"file":"workflow-execution.d.ts","sourceRoot":"","sources":["../../src/models/workflow-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAGpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;qFA0B1B,CAAA"}
|
@@ -1,98 +1,33 @@
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WorkflowExecution = void 0;
|
12
4
|
const orchestration_1 = require("@medusajs/framework/orchestration");
|
13
5
|
const utils_1 = require("@medusajs/framework/utils");
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
__metadata("design:type", String)
|
42
|
-
], WorkflowExecution.prototype, "transaction_id", void 0);
|
43
|
-
__decorate([
|
44
|
-
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
45
|
-
__metadata("design:type", Object)
|
46
|
-
], WorkflowExecution.prototype, "execution", void 0);
|
47
|
-
__decorate([
|
48
|
-
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
49
|
-
__metadata("design:type", Object)
|
50
|
-
], WorkflowExecution.prototype, "context", void 0);
|
51
|
-
__decorate([
|
52
|
-
(0, core_1.Index)({ name: "IDX_workflow_execution_state" }),
|
53
|
-
(0, core_1.Enum)(() => orchestration_1.TransactionState),
|
54
|
-
__metadata("design:type", String)
|
55
|
-
], WorkflowExecution.prototype, "state", void 0);
|
56
|
-
__decorate([
|
57
|
-
(0, core_1.Property)({
|
58
|
-
onCreate: () => new Date(),
|
59
|
-
columnType: "timestamptz",
|
60
|
-
defaultRaw: "now()",
|
61
|
-
}),
|
62
|
-
__metadata("design:type", Date)
|
63
|
-
], WorkflowExecution.prototype, "created_at", void 0);
|
64
|
-
__decorate([
|
65
|
-
(0, core_1.Property)({
|
66
|
-
onCreate: () => new Date(),
|
67
|
-
onUpdate: () => new Date(),
|
68
|
-
columnType: "timestamptz",
|
69
|
-
defaultRaw: "now()",
|
70
|
-
}),
|
71
|
-
__metadata("design:type", Date)
|
72
|
-
], WorkflowExecution.prototype, "updated_at", void 0);
|
73
|
-
__decorate([
|
74
|
-
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
75
|
-
__metadata("design:type", Object)
|
76
|
-
], WorkflowExecution.prototype, "deleted_at", void 0);
|
77
|
-
__decorate([
|
78
|
-
(0, core_1.BeforeCreate)(),
|
79
|
-
__metadata("design:type", Function),
|
80
|
-
__metadata("design:paramtypes", []),
|
81
|
-
__metadata("design:returntype", void 0)
|
82
|
-
], WorkflowExecution.prototype, "onCreate", null);
|
83
|
-
__decorate([
|
84
|
-
(0, core_1.OnInit)(),
|
85
|
-
__metadata("design:type", Function),
|
86
|
-
__metadata("design:paramtypes", []),
|
87
|
-
__metadata("design:returntype", void 0)
|
88
|
-
], WorkflowExecution.prototype, "onInit", null);
|
89
|
-
WorkflowExecution = __decorate([
|
90
|
-
(0, core_1.Entity)(),
|
91
|
-
(0, core_1.Unique)({
|
92
|
-
name: "IDX_workflow_execution_workflow_id_transaction_id_unique",
|
93
|
-
properties: ["workflow_id", "transaction_id"],
|
94
|
-
}),
|
95
|
-
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
96
|
-
], WorkflowExecution);
|
97
|
-
exports.default = WorkflowExecution;
|
6
|
+
exports.WorkflowExecution = utils_1.model
|
7
|
+
.define("workflow_execution", {
|
8
|
+
id: utils_1.model.id({ prefix: "wf_exec" }),
|
9
|
+
workflow_id: utils_1.model.text().primaryKey(),
|
10
|
+
transaction_id: utils_1.model.text().primaryKey(),
|
11
|
+
execution: utils_1.model.json().nullable(),
|
12
|
+
context: utils_1.model.json().nullable(),
|
13
|
+
state: utils_1.model.enum(orchestration_1.TransactionState),
|
14
|
+
})
|
15
|
+
.indexes([
|
16
|
+
{
|
17
|
+
on: ["id"],
|
18
|
+
where: "deleted_at IS NULL",
|
19
|
+
},
|
20
|
+
{
|
21
|
+
on: ["workflow_id"],
|
22
|
+
where: "deleted_at IS NULL",
|
23
|
+
},
|
24
|
+
{
|
25
|
+
on: ["transaction_id"],
|
26
|
+
where: "deleted_at IS NULL",
|
27
|
+
},
|
28
|
+
{
|
29
|
+
on: ["state"],
|
30
|
+
where: "deleted_at IS NULL",
|
31
|
+
},
|
32
|
+
]);
|
98
33
|
//# sourceMappingURL=workflow-execution.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflow-execution.js","sourceRoot":"","sources":["../../src/models/workflow-execution.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"workflow-execution.js","sourceRoot":"","sources":["../../src/models/workflow-execution.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AACpE,qDAAiD;AAEpC,QAAA,iBAAiB,GAAG,aAAK;KACnC,MAAM,CAAC,oBAAoB,EAAE;IAC5B,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACnC,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IACtC,cAAc,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IACzC,SAAS,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,aAAK,CAAC,IAAI,CAAC,gCAAgB,CAAC;CACpC,CAAC;KACD,OAAO,CAAC;IACP;QACE,EAAE,EAAE,CAAC,IAAI,CAAC;QACV,KAAK,EAAE,oBAAoB;KAC5B;IACD;QACE,EAAE,EAAE,CAAC,aAAa,CAAC;QACnB,KAAK,EAAE,oBAAoB;KAC5B;IACD;QACE,EAAE,EAAE,CAAC,gBAAgB,CAAC;QACtB,KAAK,EAAE,oBAAoB;KAC5B;IACD;QACE,EAAE,EAAE,CAAC,OAAO,CAAC;QACb,KAAK,EAAE,oBAAoB;KAC5B;CACF,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Context, DAL, InternalModuleDeclaration, MedusaContainer, ModulesSdkTypes, WorkflowsSdkTypes } from "@medusajs/framework/types";
|
1
|
+
import { Context, DAL, InferEntityType, InternalModuleDeclaration, MedusaContainer, ModulesSdkTypes, WorkflowsSdkTypes } from "@medusajs/framework/types";
|
2
2
|
import { ModulesSdkUtils } from "@medusajs/framework/utils";
|
3
3
|
import type { ReturnWorkflow, UnwrapWorkflowInputDataType } from "@medusajs/framework/workflows-sdk";
|
4
4
|
import { WorkflowExecution } from "../models";
|
@@ -10,10 +10,10 @@ type InjectedDependencies = {
|
|
10
10
|
};
|
11
11
|
declare const WorkflowsModuleService_base: ModulesSdkUtils.MedusaServiceReturnType<{
|
12
12
|
WorkflowExecution: {
|
13
|
-
dto: WorkflowExecution
|
13
|
+
dto: InferEntityType<typeof WorkflowExecution>;
|
14
14
|
};
|
15
15
|
}>;
|
16
|
-
export declare class WorkflowsModuleService<TWorkflowExecution extends WorkflowExecution = WorkflowExecution
|
16
|
+
export declare class WorkflowsModuleService<TWorkflowExecution extends InferEntityType<typeof WorkflowExecution> = InferEntityType<typeof WorkflowExecution>> extends WorkflowsModuleService_base {
|
17
17
|
protected readonly moduleDeclaration: InternalModuleDeclaration;
|
18
18
|
protected baseRepository_: DAL.RepositoryService;
|
19
19
|
protected workflowExecutionService_: ModulesSdkTypes.IMedusaInternalService<TWorkflowExecution>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflows-module.d.ts","sourceRoot":"","sources":["../../src/services/workflows-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,cAAc,EACd,2BAA2B,EAC5B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAA;AAEvD,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,wBAAwB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IACrE,2BAA2B,EAAE,2BAA2B,CAAA;CACzD,CAAA;;
|
1
|
+
{"version":3,"file":"workflows-module.d.ts","sourceRoot":"","sources":["../../src/services/workflows-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,eAAe,EACf,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,cAAc,EACd,2BAA2B,EAC5B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAA;AAEvD,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,C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AAO,CAAA;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAC9B,EACgB,OAAO,GAAE,OAAY;IAalC,cAAc,CAClB,EACE,cAAc,EACd,YAAY,EACZ,OAAO,GACR,EAAE;QACD,cAAc,EAAE,MAAM,GAAG,MAAM,CAAA;QAC/B,YAAY,EAAE,OAAO,CAAA;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAC9B,EACgB,OAAO,GAAE,OAAY;IAalC,SAAS,CACb,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAA;QAClB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,UAAU,EAAE,QAAQ,CAAA;QACpB,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,EACgB,OAAO,GAAE,OAAY;IAMlC,WAAW,CACf,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAA;QAClB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,cAAc,EAAE,MAAM,GAAG,QAAQ,CAAA;KAClC,EACgB,OAAO,GAAE,OAAY;CAIzC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflows-module.js","sourceRoot":"","sources":["../../src/services/workflows-module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"workflows-module.js","sourceRoot":"","sources":["../../src/services/workflows-module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAQkC;AAClC,qDAIkC;AAKlC,qCAA2C;AAS3C,MAAa,sBAIX,SAAQ,uBAAe,CAAC,aAAa,CAEpC,EAAE,iBAAiB,EAAjB,2BAAiB,EAAE,CAAC;IAMvB,YACE,EACE,cAAc,EACd,wBAAwB,EACxB,2BAA2B,GACN,EACJ,iBAA4C;QAE/D,aAAa;QACb,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;QAHA,sBAAiB,GAAjB,iBAAiB,CAA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EAAE;QAEtC,OAAO,IAAI,CAAC,4BAA4B,CAAC,WAAW,CAAC,IAAW,EAAE,OAAO,CAAC,CAAA;IAC5E,CAAC;CACF;AAlID,wDAkIC;AArGO;IADL,IAAA,2BAAmB,GAAE;IAQnB,WAAA,IAAA,qBAAa,GAAE,CAAA;;yDANM,SAAS,oBAAT,SAAS;;iDAehC;AAGK;IADL,IAAA,2BAAmB,GAAE;IAInB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;mEAOjB;AAGK;IADL,IAAA,2BAAmB,GAAE;IAWnB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;4DAUjB;AAGK;IADL,IAAA,2BAAmB,GAAE;IAWnB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;4DAUjB;AAGK;IADL,IAAA,2BAAmB,GAAE;IAQnB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;uDAGjB;AAGK;IADL,IAAA,2BAAmB,GAAE;IAOnB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;yDAGjB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/index.ts","../src/loaders/index.ts","../src/loaders/utils.ts","../src/migrations/
|
1
|
+
{"root":["../src/index.ts","../src/loaders/index.ts","../src/loaders/utils.ts","../src/migrations/migration20231228143900.ts","../src/migrations/migration20241206101446.ts","../src/models/index.ts","../src/models/workflow-execution.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/workflow-orchestrator.ts","../src/services/workflows-module.ts","../src/types/index.ts","../src/utils/index.ts","../src/utils/workflow-orchestrator-storage.ts"],"version":"5.6.2"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/workflow-engine-inmemory",
|
3
|
-
"version": "2.1.1
|
3
|
+
"version": "2.1.1",
|
4
4
|
"description": "Medusa Workflow Orchestrator module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -36,8 +36,8 @@
|
|
36
36
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@medusajs/framework": "2.1.1
|
40
|
-
"@medusajs/test-utils": "2.1.1
|
39
|
+
"@medusajs/framework": "^2.1.1",
|
40
|
+
"@medusajs/test-utils": "^2.1.1",
|
41
41
|
"@mikro-orm/cli": "5.9.7",
|
42
42
|
"@mikro-orm/core": "5.9.7",
|
43
43
|
"@mikro-orm/migrations": "5.9.7",
|
@@ -54,7 +54,7 @@
|
|
54
54
|
"ulid": "^2.3.0"
|
55
55
|
},
|
56
56
|
"peerDependencies": {
|
57
|
-
"@medusajs/framework": "2.
|
57
|
+
"@medusajs/framework": "^2.0.0",
|
58
58
|
"@mikro-orm/core": "5.9.7",
|
59
59
|
"@mikro-orm/migrations": "5.9.7",
|
60
60
|
"@mikro-orm/postgresql": "5.9.7",
|