@medusajs/workflow-engine-inmemory 2.1.1-snapshot-20241205183021 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ import { Migration } from "@mikro-orm/migrations";
2
+ export declare class Migration20241206101446 extends Migration {
3
+ up(): Promise<void>;
4
+ }
5
+ //# sourceMappingURL=Migration20241206101446.d.ts.map
@@ -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"}
@@ -1,2 +1,2 @@
1
- export { default as WorkflowExecution } from "./workflow-execution";
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,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -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 __importDefault(workflow_execution_1).default; } });
5
+ Object.defineProperty(exports, "WorkflowExecution", { enumerable: true, get: function () { return workflow_execution_1.WorkflowExecution; } });
9
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAmE;AAA1D,wIAAA,OAAO,OAAqB"}
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
- import { OptionalProps } from "@mikro-orm/core";
3
- type OptionalFields = "deleted_at";
4
- export default class WorkflowExecution {
5
- [OptionalProps]?: OptionalFields;
6
- id: string;
7
- workflow_id: string;
8
- transaction_id: string;
9
- execution: Record<string, unknown> | null;
10
- context: Record<string, unknown> | null;
11
- state: TransactionState;
12
- created_at: Date;
13
- updated_at: Date;
14
- deleted_at: Date | null;
15
- onCreate(): void;
16
- onInit(): void;
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;AAEpE,OAAO,EAOL,aAAa,EAId,MAAM,iBAAiB,CAAA;AAExB,KAAK,cAAc,GAAG,YAAY,CAAA;AAQlC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,CAAC,aAAa,CAAC,CAAC,EAAE,cAAc,CAAA;IAIhC,EAAE,EAAG,MAAM,CAAA;IAIX,WAAW,EAAE,MAAM,CAAA;IAInB,cAAc,EAAE,MAAM,CAAA;IAGtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAGhD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAI9C,KAAK,EAAE,gBAAgB,CAAA;IAOvB,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
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
- const core_1 = require("@mikro-orm/core");
15
- let WorkflowExecution = class WorkflowExecution {
16
- constructor() {
17
- this.execution = null;
18
- this.context = null;
19
- this.deleted_at = null;
20
- }
21
- onCreate() {
22
- this.id = (0, utils_1.generateEntityId)(this.id, "wf_exec");
23
- }
24
- onInit() {
25
- this.id = (0, utils_1.generateEntityId)(this.id, "wf_exec");
26
- }
27
- };
28
- __decorate([
29
- (0, core_1.Property)({ columnType: "text", nullable: false }),
30
- (0, core_1.Index)({ name: "IDX_workflow_execution_id" }),
31
- __metadata("design:type", String)
32
- ], WorkflowExecution.prototype, "id", void 0);
33
- __decorate([
34
- (0, core_1.Index)({ name: "IDX_workflow_execution_workflow_id" }),
35
- (0, core_1.PrimaryKey)({ columnType: "text" }),
36
- __metadata("design:type", String)
37
- ], WorkflowExecution.prototype, "workflow_id", void 0);
38
- __decorate([
39
- (0, core_1.Index)({ name: "IDX_workflow_execution_transaction_id" }),
40
- (0, core_1.PrimaryKey)({ columnType: "text" }),
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":";;;;;;;;;;;AAAA,qEAAoE;AACpE,qDAAsE;AACtE,0CAWwB;AAUT,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QAgBb,cAAS,GAAmC,IAAI,CAAA;QAGhD,YAAO,GAAmC,IAAI,CAAA;QAsB9C,eAAU,GAAgB,IAAI,CAAA;IAWhC,CAAC;IARC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;IAChD,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;IAChD,CAAC;CACF,CAAA;AA/CC;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE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AA,mBAAY,GAAE;;;;iDAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;+CAGR;AAnDkB,iBAAiB;IANrC,IAAA,aAAM,GAAE;IACR,IAAA,aAAM,EAAC;QACN,IAAI,EAAE,0DAA0D;QAChE,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;KAC9C,CAAC;IACD,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,iBAAiB,CAoDrC;kBApDoB,iBAAiB"}
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> extends WorkflowsModuleService_base {
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;AA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O,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
+ {"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,CAAC,iBAAiB,CAAA;IACrC,wBAAwB,EAAE,eAAe,CAAC,sBAAsB,CAA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,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,qDAOkC;AAClC,qDAIkC;AAKlC,qCAA2C;AAS3C,MAAa,sBAEX,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,CAA2B;QAK/D,IAAI,CAAC,eAAe,GAAG,cAAc,CAAA;QACrC,IAAI,CAAC,yBAAyB,GAAG,wBAAwB,CAAA;QACzD,IAAI,CAAC,4BAA4B,GAAG,2BAA2B,CAAA;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,GA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B;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/Migration20231228143900.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"}
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-snapshot-20241205183021",
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-snapshot-20241205183021",
40
- "@medusajs/test-utils": "2.1.1-snapshot-20241205183021",
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.1.1-snapshot-20241205183021",
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",