@medusajs/order 2.0.5-snapshot-20241113173305 → 2.0.5-snapshot-20241120130614

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/Migration20240219102530.ts","../src/migrations/Migration20240604100512.ts","../src/migrations/Migration20240715102100.ts","../src/migrations/Migration20240715174100.ts","../src/migrations/Migration20240716081800.ts","../src/migrations/Migration20240801085921.ts","../src/migrations/Migration20240821164505.ts","../src/migrations/Migration20240821170920.ts","../src/migrations/Migration20240827133639.ts","../src/migrations/Migration20240902195921.ts","../src/migrations/Migration20240913092514.ts","../src/migrations/Migration20240930122627.ts","../src/migrations/Migration20241014142943.ts","../src/migrations/Migration20241106085223.ts","../src/models/address.ts","../src/models/adjustment-line.ts","../src/models/claim-item-image.ts","../src/models/claim-item.ts","../src/models/claim.ts","../src/models/exchange-item.ts","../src/models/exchange.ts","../src/models/index.ts","../src/models/line-item-adjustment.ts","../src/models/line-item-tax-line.ts","../src/models/line-item.ts","../src/models/order-change-action.ts","../src/models/order-change.ts","../src/models/order-item.ts","../src/models/order-shipping-method.ts","../src/models/order-summary.ts","../src/models/order.ts","../src/models/return-item.ts","../src/models/return-reason.ts","../src/models/return.ts","../src/models/shipping-method-adjustment.ts","../src/models/shipping-method-tax-line.ts","../src/models/shipping-method.ts","../src/models/tax-line.ts","../src/models/transaction.ts","../src/repositories/claim.ts","../src/repositories/exchange.ts","../src/repositories/index.ts","../src/repositories/order.ts","../src/repositories/return.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/order-module-service.ts","../src/services/order-service.ts","../src/services/__tests__/util/actions/exchanges.ts","../src/services/__tests__/util/actions/returns.ts","../src/services/actions/cancel-claim.ts","../src/services/actions/cancel-exchange.ts","../src/services/actions/cancel-fulfillment.ts","../src/services/actions/cancel-return.ts","../src/services/actions/create-claim.ts","../src/services/actions/create-exchange.ts","../src/services/actions/create-return.ts","../src/services/actions/index.ts","../src/services/actions/receive-return.ts","../src/services/actions/register-delivery.ts","../src/services/actions/register-fulfillment.ts","../src/services/actions/register-shipment.ts","../src/types/address.ts","../src/types/index.ts","../src/types/line-item-adjustment.ts","../src/types/line-item-tax-line.ts","../src/types/line-item.ts","../src/types/order-change.ts","../src/types/order-detail.ts","../src/types/order.ts","../src/types/return-reason.ts","../src/types/shipping-method-adjustment.ts","../src/types/shipping-method-tax-line.ts","../src/types/shipping-method.ts","../src/types/tax-line.ts","../src/types/transaction.ts","../src/types/utils/index.ts","../src/utils/apply-order-changes.ts","../src/utils/base-repository-find.ts","../src/utils/calculate-order-change.ts","../src/utils/index.ts","../src/utils/set-action-reference.ts","../src/utils/transform-order.ts","../src/utils/actions/cancel-item-fulfillment.ts","../src/utils/actions/cancel-return.ts","../src/utils/actions/deliver-item.ts","../src/utils/actions/fulfill-item.ts","../src/utils/actions/index.ts","../src/utils/actions/item-add.ts","../src/utils/actions/item-remove.ts","../src/utils/actions/item-update.ts","../src/utils/actions/receive-damaged-return-item.ts","../src/utils/actions/receive-return-item.ts","../src/utils/actions/reinstate-item.ts","../src/utils/actions/return-item.ts","../src/utils/actions/ship-item.ts","../src/utils/actions/shipping-add.ts","../src/utils/actions/shipping-remove.ts","../src/utils/actions/write-off-item.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/Migration20240219102530.ts","../src/migrations/Migration20240604100512.ts","../src/migrations/Migration20240715102100.ts","../src/migrations/Migration20240715174100.ts","../src/migrations/Migration20240716081800.ts","../src/migrations/Migration20240801085921.ts","../src/migrations/Migration20240821164505.ts","../src/migrations/Migration20240821170920.ts","../src/migrations/Migration20240827133639.ts","../src/migrations/Migration20240902195921.ts","../src/migrations/Migration20240913092514.ts","../src/migrations/Migration20240930122627.ts","../src/migrations/Migration20241014142943.ts","../src/migrations/Migration20241106085223.ts","../src/models/address.ts","../src/models/adjustment-line.ts","../src/models/claim-item-image.ts","../src/models/claim-item.ts","../src/models/claim.ts","../src/models/exchange-item.ts","../src/models/exchange.ts","../src/models/index.ts","../src/models/line-item-adjustment.ts","../src/models/line-item-tax-line.ts","../src/models/line-item.ts","../src/models/order-change-action.ts","../src/models/order-change.ts","../src/models/order-item.ts","../src/models/order-shipping-method.ts","../src/models/order-summary.ts","../src/models/order.ts","../src/models/return-item.ts","../src/models/return-reason.ts","../src/models/return.ts","../src/models/shipping-method-adjustment.ts","../src/models/shipping-method-tax-line.ts","../src/models/shipping-method.ts","../src/models/tax-line.ts","../src/models/transaction.ts","../src/repositories/claim.ts","../src/repositories/exchange.ts","../src/repositories/index.ts","../src/repositories/order.ts","../src/repositories/return.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/order-module-service.ts","../src/services/order-service.ts","../src/services/__tests__/util/actions/exchanges.ts","../src/services/__tests__/util/actions/returns.ts","../src/services/actions/cancel-claim.ts","../src/services/actions/cancel-exchange.ts","../src/services/actions/cancel-fulfillment.ts","../src/services/actions/cancel-return.ts","../src/services/actions/create-claim.ts","../src/services/actions/create-exchange.ts","../src/services/actions/create-return.ts","../src/services/actions/index.ts","../src/services/actions/receive-return.ts","../src/services/actions/register-delivery.ts","../src/services/actions/register-fulfillment.ts","../src/services/actions/register-shipment.ts","../src/types/address.ts","../src/types/index.ts","../src/types/line-item-adjustment.ts","../src/types/line-item-tax-line.ts","../src/types/line-item.ts","../src/types/order-change.ts","../src/types/order-detail.ts","../src/types/order.ts","../src/types/return-reason.ts","../src/types/shipping-method-adjustment.ts","../src/types/shipping-method-tax-line.ts","../src/types/shipping-method.ts","../src/types/tax-line.ts","../src/types/transaction.ts","../src/types/utils/index.ts","../src/utils/apply-order-changes.ts","../src/utils/base-repository-find.ts","../src/utils/calculate-order-change.ts","../src/utils/index.ts","../src/utils/set-action-reference.ts","../src/utils/transform-order.ts","../src/utils/actions/cancel-item-fulfillment.ts","../src/utils/actions/cancel-return.ts","../src/utils/actions/deliver-item.ts","../src/utils/actions/fulfill-item.ts","../src/utils/actions/index.ts","../src/utils/actions/item-add.ts","../src/utils/actions/item-remove.ts","../src/utils/actions/item-update.ts","../src/utils/actions/receive-damaged-return-item.ts","../src/utils/actions/receive-return-item.ts","../src/utils/actions/reinstate-item.ts","../src/utils/actions/return-item.ts","../src/utils/actions/ship-item.ts","../src/utils/actions/shipping-add.ts","../src/utils/actions/shipping-remove.ts","../src/utils/actions/transfer-customer.ts","../src/utils/actions/write-off-item.ts"],"version":"5.6.2"}
@@ -46,6 +46,7 @@ export type VirtualOrder = {
46
46
  amount: BigNumberInput;
47
47
  }[];
48
48
  total: BigNumberInput;
49
+ customer_id?: string;
49
50
  transactions?: OrderTransaction[];
50
51
  metadata?: Record<string, unknown>;
51
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IAEV,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAA;QACV,QAAQ,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,WAAW,CAAC,EAAE,MAAM,CAAA;QAEpB,UAAU,EAAE,cAAc,CAAA;QAC1B,qBAAqB,EAAE,cAAc,GAAG,IAAI,CAAA;QAC5C,QAAQ,EAAE,cAAc,CAAA;QAExB,MAAM,EAAE;YACN,EAAE,CAAC,EAAE,MAAM,CAAA;YACX,QAAQ,EAAE,MAAM,CAAA;YAChB,SAAS,CAAC,EAAE,MAAM,CAAA;YAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;YACjB,WAAW,CAAC,EAAE,MAAM,CAAA;YAEpB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,UAAU,CAAC,EAAE,cAAc,CAAA;YAC3B,qBAAqB,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;YAC7C,QAAQ,EAAE,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AEpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,OAAO,CAAC,EAAE,GAAG,CAAA;CACd;AAED,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GAAG;IACxD,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,SAAS,CAAC,EAAE,wBAAwB,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,wBAAwB,CAAA;IAChC,cAAc,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC3C,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,EAAE,sBAAsB,CAAA;IAC/B,YAAY,EAAE,gBAAgB,EAAE,CAAA;IAChC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,OAAO,EAAE,wBAAwB,EAAE,CAAA;IACnC,OAAO,CAAC,EAAE;QACR,0BAA0B,CAAC,EAAE,OAAO,CAAA;QACpC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KACvB,CAAA;CACF,CAAA;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,cAAc,GAAG,IAAI,CAAA;IAC3D,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAA;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/utils/index.ts"],"names":[],"mappings":";;;AA8DA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;AACf,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/utils/index.ts"],"names":[],"mappings":";;;AAgEA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;AACf,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -13,4 +13,5 @@ export * from "./ship-item";
13
13
  export * from "./shipping-add";
14
14
  export * from "./shipping-remove";
15
15
  export * from "./write-off-item";
16
+ export * from "./transfer-customer";
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA"}
@@ -29,4 +29,5 @@ __exportStar(require("./ship-item"), exports);
29
29
  __exportStar(require("./shipping-add"), exports);
30
30
  __exportStar(require("./shipping-remove"), exports);
31
31
  __exportStar(require("./write-off-item"), exports);
32
+ __exportStar(require("./transfer-customer"), exports);
32
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,kDAA+B;AAC/B,iDAA8B;AAC9B,iDAA8B;AAC9B,6CAA0B;AAC1B,gDAA6B;AAC7B,gDAA6B;AAC7B,gEAA6C;AAC7C,wDAAqC;AACrC,mDAAgC;AAChC,gDAA6B;AAC7B,8CAA2B;AAC3B,iDAA8B;AAC9B,oDAAiC;AACjC,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,kDAA+B;AAC/B,iDAA8B;AAC9B,iDAA8B;AAC9B,6CAA0B;AAC1B,gDAA6B;AAC7B,gDAA6B;AAC7B,gEAA6C;AAC7C,wDAAqC;AACrC,mDAAgC;AAChC,gDAA6B;AAC7B,8CAA2B;AAC3B,iDAA8B;AAC9B,oDAAiC;AACjC,mDAAgC;AAChC,sDAAmC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=transfer-customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-customer.d.ts","sourceRoot":"","sources":["../../../src/utils/actions/transfer-customer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("@medusajs/framework/utils");
4
+ const calculate_order_change_1 = require("../calculate-order-change");
5
+ const set_action_reference_1 = require("../set-action-reference");
6
+ calculate_order_change_1.OrderChangeProcessing.registerActionType(utils_1.ChangeActionType.TRANSFER_CUSTOMER, {
7
+ operation({ action, currentOrder, options }) {
8
+ currentOrder.customer_id = action.reference_id;
9
+ (0, set_action_reference_1.setActionReference)(currentOrder, action, options);
10
+ },
11
+ validate({ action }) {
12
+ if (!action.reference_id) {
13
+ throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, "Reference to customer ID is required");
14
+ }
15
+ },
16
+ });
17
+ //# sourceMappingURL=transfer-customer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-customer.js","sourceRoot":"","sources":["../../../src/utils/actions/transfer-customer.ts"],"names":[],"mappings":";;AAAA,qDAAyE;AACzE,sEAAiE;AACjE,kEAA4D;AAE5D,8CAAqB,CAAC,kBAAkB,CAAC,wBAAgB,CAAC,iBAAiB,EAAE;IAC3E,SAAS,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE;QACzC,YAAY,CAAC,WAAW,GAAG,MAAM,CAAC,YAAY,CAAA;QAE9C,IAAA,yCAAkB,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;IACnD,CAAC;IACD,QAAQ,CAAC,EAAE,MAAM,EAAE;QACjB,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YACzB,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,sCAAsC,CACvC,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"apply-order-changes.d.ts","sourceRoot":"","sources":["../../src/utils/apply-order-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAOhE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGxD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,GAAG,EAAE,EACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EACjC,OAAO,CAAC,EAAE;IACR,0BAA0B,CAAC,EAAE,OAAO,CAAA;CACrC;;;;;;EA+GF"}
1
+ {"version":3,"file":"apply-order-changes.d.ts","sourceRoot":"","sources":["../../src/utils/apply-order-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAOhE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGxD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,GAAG,EAAE,EACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EACjC,OAAO,CAAC,EAAE;IACR,0BAA0B,CAAC,EAAE,OAAO,CAAA;CACrC;;;;;;EAqIF"}
@@ -8,6 +8,12 @@ function applyChangesToOrder(orders, actionsMap, options) {
8
8
  const shippingMethodsToUpsert = [];
9
9
  const summariesToUpsert = [];
10
10
  const orderToUpdate = [];
11
+ const orderEditableAttributes = [
12
+ "customer_id",
13
+ "sales_channel_id",
14
+ "email",
15
+ "no_notification",
16
+ ];
11
17
  const calculatedOrders = {};
12
18
  for (const order of orders) {
13
19
  const calculated = (0, calculate_order_change_1.calculateOrderChange)({
@@ -19,6 +25,13 @@ function applyChangesToOrder(orders, actionsMap, options) {
19
25
  (0, utils_1.createRawPropertiesFromBigNumber)(calculated);
20
26
  calculatedOrders[order.id] = calculated;
21
27
  const version = actionsMap[order.id]?.[0]?.version ?? order.version;
28
+ const orderAttributes = {};
29
+ // Editable attributes that have changed
30
+ for (const attr of orderEditableAttributes) {
31
+ if (order[attr] !== calculated.order[attr]) {
32
+ orderAttributes[attr] = calculated.order[attr];
33
+ }
34
+ }
22
35
  for (const item of calculated.order.items) {
23
36
  if (utils_1.MathBN.lte(item.quantity, 0)) {
24
37
  continue;
@@ -79,12 +92,15 @@ function applyChangesToOrder(orders, actionsMap, options) {
79
92
  shippingMethodsToUpsert.push(sm);
80
93
  }
81
94
  }
95
+ orderAttributes.version = version;
96
+ }
97
+ if (Object.keys(orderAttributes).length > 0) {
82
98
  orderToUpdate.push({
83
99
  selector: {
84
100
  id: order.id,
85
101
  },
86
102
  data: {
87
- version,
103
+ ...orderAttributes,
88
104
  },
89
105
  });
90
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"apply-order-changes.js","sourceRoot":"","sources":["../../src/utils/apply-order-changes.ts"],"names":[],"mappings":";;AAiBA,kDAoHC;AApID,qDAKkC;AAElC,qEAA+D;AAS/D,SAAgB,mBAAmB,CACjC,MAAa,EACb,UAAiC,EACjC,OAEC;IAED,MAAM,aAAa,GAAgB,EAAE,CAAA;IACrC,MAAM,uBAAuB,GAA0B,EAAE,CAAA;IACzD,MAAM,iBAAiB,GAAU,EAAE,CAAA;IACnC,MAAM,aAAa,GAAU,EAAE,CAAA;IAE/B,MAAM,gBAAgB,GAAG,EAAE,CAAA;IAC3B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAA,6CAAoB,EAAC;YACtC,KAAK,EAAE,KAAY;YACnB,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,EAAE;YACtC,OAAO;SACR,CAAC,CAAA;QAEF,IAAA,wCAAgC,EAAC,UAAU,CAAC,CAAA;QAE5C,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,UAAU,CAAA;QAEvC,MAAM,OAAO,GA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kBAAkB,CAAA;gBAClE,CAAC;gBAED,MAAM,EAAE,GAAG;oBACT,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC;oBACnE,OAAO;oBACP,kBAAkB,EAAE,kBAAkB;iBAChC,CAAA;gBAER,OAAO,EAAE,CAAC,EAAE,CAAA;gBAEZ,IAAI,CAAC,iBAAiB,EAAE,CAAC;oBACvB,uBAAuB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;gBAClC,CAAC;YACH,CAAC;YAED,aAAa,CAAC,IAAI,CAAC;gBACjB,QAAQ,EAAE;oBACR,EAAE,EAAE,KAAK,CAAC,EAAE;iBACb;gBACD,IAAI,EAAE;oBACJ,OAAO;iBACR;aACF,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,OAAO;QACL,aAAa;QACb,uBAAuB;QACvB,iBAAiB;QACjB,aAAa;QACb,gBAAgB;KACjB,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"apply-order-changes.js","sourceRoot":"","sources":["../../src/utils/apply-order-changes.ts"],"names":[],"mappings":";;AAiBA,kDA0IC;AA1JD,qDAKkC;AAElC,qEAA+D;AAS/D,SAAgB,mBAAmB,CACjC,MAAa,EACb,UAAiC,EACjC,OAEC;IAED,MAAM,aAAa,GAAgB,EAAE,CAAA;IACrC,MAAM,uBAAuB,GAA0B,EAAE,CAAA;IACzD,MAAM,iBAAiB,GAAU,EAAE,CAAA;IACnC,MAAM,aAAa,GAAU,EAAE,CAAA;IAE/B,MAAM,uBAAuB,GAAG;QAC9B,aAAa;QACb,kBAAkB;QAClB,OAAO;QACP,iBAAiB;KAClB,CAAA;IAED,MAAM,gBAAgB,GAAG,EAAE,CAAA;IAC3B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAA,6CAAoB,EAAC;YACtC,KAAK,EAAE,KAAY;YACnB,OAAO,EAAE,UAAU,CA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QACvB,iBAAiB;QACjB,aAAa;QACb,gBAAgB;KACjB,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/order",
3
- "version": "2.0.5-snapshot-20241113173305",
3
+ "version": "2.0.5-snapshot-20241120130614",
4
4
  "description": "Medusa Order module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,15 +30,14 @@
30
30
  "build": "rimraf dist && tsc --build && npm run resolve:aliases",
31
31
  "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts",
32
32
  "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts",
33
- "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:generate",
34
33
  "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial",
35
34
  "migration:create": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create",
36
35
  "migration:up": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:up",
37
36
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
38
37
  },
39
38
  "devDependencies": {
40
- "@medusajs/framework": "2.0.5-snapshot-20241113173305",
41
- "@medusajs/test-utils": "2.0.5-snapshot-20241113173305",
39
+ "@medusajs/framework": "2.0.5-snapshot-20241120130614",
40
+ "@medusajs/test-utils": "2.0.5-snapshot-20241120130614",
42
41
  "@mikro-orm/cli": "5.9.7",
43
42
  "@mikro-orm/core": "5.9.7",
44
43
  "@mikro-orm/migrations": "5.9.7",
@@ -51,7 +50,7 @@
51
50
  "typescript": "^5.6.2"
52
51
  },
53
52
  "peerDependencies": {
54
- "@medusajs/framework": "2.0.5-snapshot-20241113173305",
53
+ "@medusajs/framework": "2.0.5-snapshot-20241120130614",
55
54
  "@mikro-orm/core": "5.9.7",
56
55
  "@mikro-orm/migrations": "5.9.7",
57
56
  "@mikro-orm/postgresql": "5.9.7",