@medusajs/order 0.1.3-snapshot-20240827104434 → 0.1.3-snapshot-20240829144419

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/migrations/Migration20240827133639.d.ts +6 -0
  2. package/dist/migrations/Migration20240827133639.d.ts.map +1 -0
  3. package/dist/migrations/Migration20240827133639.js +17 -0
  4. package/dist/migrations/Migration20240827133639.js.map +1 -0
  5. package/dist/models/address.d.ts +1 -1
  6. package/dist/models/address.d.ts.map +1 -1
  7. package/dist/models/address.js +21 -21
  8. package/dist/models/address.js.map +1 -1
  9. package/dist/models/claim-item.d.ts +2 -2
  10. package/dist/models/claim-item.d.ts.map +1 -1
  11. package/dist/models/claim-item.js.map +1 -1
  12. package/dist/models/claim.d.ts +4 -4
  13. package/dist/models/claim.d.ts.map +1 -1
  14. package/dist/models/claim.js.map +1 -1
  15. package/dist/models/exchange-item.d.ts +2 -2
  16. package/dist/models/exchange-item.d.ts.map +1 -1
  17. package/dist/models/exchange-item.js.map +1 -1
  18. package/dist/models/exchange.d.ts +4 -4
  19. package/dist/models/exchange.d.ts.map +1 -1
  20. package/dist/models/exchange.js +1 -1
  21. package/dist/models/exchange.js.map +1 -1
  22. package/dist/models/index.d.ts +9 -9
  23. package/dist/models/index.d.ts.map +1 -1
  24. package/dist/models/index.js +10 -10
  25. package/dist/models/index.js.map +1 -1
  26. package/dist/models/line-item-adjustment.d.ts +3 -3
  27. package/dist/models/line-item-adjustment.d.ts.map +1 -1
  28. package/dist/models/line-item-adjustment.js +8 -8
  29. package/dist/models/line-item-adjustment.js.map +1 -1
  30. package/dist/models/line-item-tax-line.d.ts +3 -3
  31. package/dist/models/line-item-tax-line.d.ts.map +1 -1
  32. package/dist/models/line-item-tax-line.js +8 -8
  33. package/dist/models/line-item-tax-line.js.map +1 -1
  34. package/dist/models/line-item.d.ts +5 -5
  35. package/dist/models/line-item.d.ts.map +1 -1
  36. package/dist/models/line-item.js +35 -35
  37. package/dist/models/line-item.js.map +1 -1
  38. package/dist/models/order-change-action.d.ts.map +1 -1
  39. package/dist/models/order-change-action.js +6 -2
  40. package/dist/models/order-change-action.js.map +1 -1
  41. package/dist/models/order-item.d.ts +2 -2
  42. package/dist/models/order-item.d.ts.map +1 -1
  43. package/dist/models/order-item.js.map +1 -1
  44. package/dist/models/order-shipping-method.d.ts +3 -3
  45. package/dist/models/order-shipping-method.d.ts.map +1 -1
  46. package/dist/models/order-shipping-method.js +21 -21
  47. package/dist/models/order-shipping-method.js.map +1 -1
  48. package/dist/models/order.d.ts +7 -7
  49. package/dist/models/order.d.ts.map +1 -1
  50. package/dist/models/order.js.map +1 -1
  51. package/dist/models/return-item.d.ts +4 -2
  52. package/dist/models/return-item.d.ts.map +1 -1
  53. package/dist/models/return-item.js +9 -0
  54. package/dist/models/return-item.js.map +1 -1
  55. package/dist/models/return.d.ts +4 -4
  56. package/dist/models/return.d.ts.map +1 -1
  57. package/dist/models/return.js +1 -1
  58. package/dist/models/return.js.map +1 -1
  59. package/dist/models/shipping-method-adjustment.d.ts +3 -3
  60. package/dist/models/shipping-method-adjustment.d.ts.map +1 -1
  61. package/dist/models/shipping-method-adjustment.js +8 -8
  62. package/dist/models/shipping-method-adjustment.js.map +1 -1
  63. package/dist/models/shipping-method-tax-line.d.ts +3 -3
  64. package/dist/models/shipping-method-tax-line.d.ts.map +1 -1
  65. package/dist/models/shipping-method-tax-line.js +8 -8
  66. package/dist/models/shipping-method-tax-line.js.map +1 -1
  67. package/dist/models/shipping-method.d.ts +5 -5
  68. package/dist/models/shipping-method.d.ts.map +1 -1
  69. package/dist/models/shipping-method.js +20 -20
  70. package/dist/models/shipping-method.js.map +1 -1
  71. package/dist/models/transaction.d.ts +1 -1
  72. package/dist/models/transaction.d.ts.map +1 -1
  73. package/dist/models/transaction.js +24 -24
  74. package/dist/models/transaction.js.map +1 -1
  75. package/dist/services/actions/create-claim.js +5 -5
  76. package/dist/services/actions/create-claim.js.map +1 -1
  77. package/dist/services/actions/create-exchange.js +5 -5
  78. package/dist/services/actions/create-exchange.js.map +1 -1
  79. package/dist/services/actions/create-return.js +2 -2
  80. package/dist/services/actions/create-return.js.map +1 -1
  81. package/dist/services/order-module-service.d.ts +73 -79
  82. package/dist/services/order-module-service.d.ts.map +1 -1
  83. package/dist/services/order-module-service.js +121 -184
  84. package/dist/services/order-module-service.js.map +1 -1
  85. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"order-shipping-method.js","sourceRoot":"","sources":["../../src/models/order-shipping-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAGwB;AACxB,0CASwB;AACxB,oDAA2B;AAC3B,0DAAiC;AACjC,oDAA2B;AAC3B,sDAA6B;AAC7B,wEAA8C;AAI9C,MAAM,SAAS,GAAG,gBAAgB,CAAA;AAClC,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS;IACT,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,sCAA8B,EAAC;IACnD,SAAS;IACT,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,kDAAkD;CAC1D,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,sCAA8B,EAAC;IACrD,SAAS;IACT,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,KAAK,EAAE,oDAAoD;CAC5D,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS;IACT,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,iDAAiD;CACzD,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,sCAA8B,EAAC;IACvD,SAAS;IACT,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS;IACT,OAAO,EAAE,CAAC,oBAAoB,C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;;uDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;mDASd;AAGD;IADC,IAAA,aAAM,GAAE;;;;iDASR;AA7HkB,mBAAmB;IADvC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;GACD,mBAAmB,CA8HvC;kBA9HoB,mBAAmB"}
1
+ {"version":3,"file":"order-shipping-method.js","sourceRoot":"","sources":["../../src/models/order-shipping-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAGwB;AACxB,0CASwB;AACxB,oDAA2B;AAC3B,0DAAiC;AACjC,oDAA2B;AAC3B,sDAA6B;AAC7B,wEAAmD;AAInD,MAAM,SAAS,GAAG,gBAAgB,CAAA;AAClC,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS;IACT,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,sCAA8B,EAAC;IACnD,SAAS;IACT,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,kDAAkD;CAC1D,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,sCAA8B,EAAC;IACrD,SAAS;IACT,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,KAAK,EAAE,oDAAoD;CAC5D,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS;IACT,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,iDAAiD;CACzD,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,sCAA8B,EAAC;IACvD,SAAS;IACT,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS;IACT,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,KAAK,EAAE,wBAAwB;CAChC,C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CASd;AAGD;IADC,IAAA,aAAM,GAAE;;;;2CASR;AA7HkB,aAAa;IADjC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;GACD,aAAa,CA8HjC;kBA9HoB,aAAa"}
@@ -1,11 +1,11 @@
1
1
  import { DAL } from "@medusajs/types";
2
2
  import { OrderStatus } from "@medusajs/utils";
3
3
  import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
4
- import Address from "./address";
4
+ import OrderAddress from "./address";
5
5
  import OrderItem from "./order-item";
6
- import OrderShippingMethod from "./order-shipping-method";
6
+ import OrderShipping from "./order-shipping-method";
7
7
  import OrderSummary from "./order-summary";
8
- import Transaction from "./transaction";
8
+ import OrderTransaction from "./transaction";
9
9
  type OptionalOrderProps = "shipping_address" | "billing_address" | DAL.ModelDateColumns;
10
10
  export default class Order {
11
11
  [OptionalProps]?: OptionalOrderProps;
@@ -20,15 +20,15 @@ export default class Order {
20
20
  email: string | null;
21
21
  currency_code: string;
22
22
  shipping_address_id?: string | null;
23
- shipping_address?: Rel<Address> | null;
23
+ shipping_address?: Rel<OrderAddress> | null;
24
24
  billing_address_id?: string | null;
25
- billing_address?: Rel<Address> | null;
25
+ billing_address?: Rel<OrderAddress> | null;
26
26
  no_notification: boolean | null;
27
27
  summary: Collection<OrderSummary, object>;
28
28
  metadata: Record<string, unknown> | null;
29
29
  items: Collection<OrderItem, object>;
30
- shipping_methods: Collection<OrderShippingMethod, object>;
31
- transactions: Collection<Transaction, object>;
30
+ shipping_methods: Collection<OrderShipping, object>;
31
+ transactions: Collection<OrderTransaction, object>;
32
32
  created_at: Date;
33
33
  updated_at: Date;
34
34
  deleted_at: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/models/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACrC,OAAO,EACL,WAAW,EAGZ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,U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@
1
1
  import { BigNumberRawValue, DAL } from "@medusajs/types";
2
2
  import { OptionalProps } from "@mikro-orm/core";
3
- import LineItem from "./line-item";
3
+ import OrderLineItem from "./line-item";
4
4
  import Return from "./return";
5
5
  import ReturnReason from "./return-reason";
6
6
  type OptionalLineItemProps = DAL.ModelDateColumns;
@@ -13,10 +13,12 @@ export default class ReturnItem {
13
13
  raw_quantity: BigNumberRawValue;
14
14
  received_quantity: Number | number;
15
15
  raw_received_quantity: BigNumberRawValue;
16
+ damaged_quantity: Number | number;
17
+ raw_damaged_quantity: BigNumberRawValue;
16
18
  return_id: string;
17
19
  return: Return;
18
20
  item_id: string;
19
- item: LineItem;
21
+ item: OrderLineItem;
20
22
  note: string;
21
23
  metadata: Record<string, unknown> | null;
22
24
  created_at: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"return-item.d.ts","sourceRoot":"","sources":["../../src/models/return-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAMxD,OAAO,EAKL,aAAa,EAGd,MAAM,iBAAiB,CAAA;AACxB,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAE1C,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA4BjD,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IASV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAK/B,MAAM,EAAE,YAAY,CAAA;IAGpB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;IAGzB,YAAY,EAAE,iBAAiB,CAAA;IAG/B,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAI;IAGtC,qBAAqB,EAAE,iBAAiB,CAAA;IASxC,SAAS,EAAE,MA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f,IAAI,EAAE,aAAa,CAAA;IAGnB,IAAI,EAAE,MAAM,CAAA;IAGZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAMR,MAAM;CAIP"}
@@ -42,6 +42,7 @@ let ReturnItem = class ReturnItem {
42
42
  constructor() {
43
43
  this.reason_id = null;
44
44
  this.received_quantity = 0;
45
+ this.damaged_quantity = 0;
45
46
  this.metadata = null;
46
47
  this.deleted_at = null;
47
48
  }
@@ -90,6 +91,14 @@ __decorate([
90
91
  (0, core_1.Property)({ columnType: "jsonb" }),
91
92
  __metadata("design:type", Object)
92
93
  ], ReturnItem.prototype, "raw_received_quantity", void 0);
94
+ __decorate([
95
+ (0, utils_1.MikroOrmBigNumberProperty)(),
96
+ __metadata("design:type", Number)
97
+ ], ReturnItem.prototype, "damaged_quantity", void 0);
98
+ __decorate([
99
+ (0, core_1.Property)({ columnType: "jsonb" }),
100
+ __metadata("design:type", Object)
101
+ ], ReturnItem.prototype, "raw_damaged_quantity", void 0);
93
102
  __decorate([
94
103
  (0, core_1.ManyToOne)(() => return_1.default, {
95
104
  columnType: "text",
@@ -1 +1 @@
1
- {"version":3,"file":"return-item.js","sourceRoot":"","sources":["../../src/models/return-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAIwB;AACxB,0CAQwB;AACxB,4DAAkC;AAClC,sDAA6B;AAC7B,oEAA0C;AAI1C,MAAM,SAAS,GAAG,aAAa,CAAA;AAC/B,MAAM,aAAa,GAAG,IAAA,sCAA8B,EAAC;IACnD,SAAS;IACT,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,IAAA,sCAA8B,EAAC;IACzD,SAAS;IACT,O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AA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;8CAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;8CACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;0CAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;wCAIR;AArGkB,UAAU;IAD9B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;GACD,UAAU,CAsG9B;kBAtGoB,UAAU"}
@@ -1,11 +1,11 @@
1
1
  import { BigNumberRawValue, DAL } from "@medusajs/types";
2
2
  import { BigNumber, ReturnStatus } from "@medusajs/utils";
3
3
  import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
4
- import { ReturnItem, Transaction } from ".";
4
+ import { OrderTransaction, ReturnItem } from ".";
5
5
  import Claim from "./claim";
6
6
  import Exchange from "./exchange";
7
7
  import Order from "./order";
8
- import OrderShippingMethod from "./order-shipping-method";
8
+ import OrderShipping from "./order-shipping-method";
9
9
  type OptionalReturnProps = DAL.ModelDateColumns;
10
10
  export default class Return {
11
11
  [OptionalProps]?: OptionalReturnProps;
@@ -24,8 +24,8 @@ export default class Return {
24
24
  refund_amount: BigNumber | number;
25
25
  raw_refund_amount: BigNumberRawValue;
26
26
  items: Collection<ReturnItem, object>;
27
- shipping_methods: Collection<OrderShippingMethod, object>;
28
- transactions: Collection<Transaction, object>;
27
+ shipping_methods: Collection<OrderShipping, object>;
28
+ transactions: Collection<OrderTransaction, object>;
29
29
  created_by: string | null;
30
30
  metadata: Record<string, unknown> | null;
31
31
  created_at: Date;
@@ -1 +1 @@
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I,CAAO;IAOjC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IAIjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAK9B,aAAa,EAAE,MAAM,CAAA;IAIrB,UAAU,EAAE,MAAM,CAAA;IAGlB,MAAM,EAAE,YAAY,CAAoB;IAGxC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,eAAe,EAAE,OAAO,GAAG,IAAI,CAAO;IAKtC,aAAa,EAAE,SAAS,GAAG,MAAM,CAAA;IAGjC,iBAAiB,EAAE,iBAAiB,CAAA;IAKpC,KAAK,iCAAwC;IAK7C,gBAAgB,oCAAsC;IAKtD,YAAY,uCAAyC;IAGrD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAGhC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAO;IAGhC,WAAW,EAAE,IAAI,GAAG,IAAI,CAAO;IAG/B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAO;IAG/B,QAAQ;IAKR,MAAM;CAGP"}
@@ -160,7 +160,7 @@ __decorate([
160
160
  __metadata("design:type", Object)
161
161
  ], Return.prototype, "shipping_methods", void 0);
162
162
  __decorate([
163
- (0, core_1.OneToMany)(() => _models_1.Transaction, (transaction) => transaction.return, {
163
+ (0, core_1.OneToMany)(() => _models_1.OrderTransaction, (transaction) => transaction.return, {
164
164
  cascade: [core_1.Cascade.PERSIST],
165
165
  }),
166
166
  __metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"return.js","sourceRoot":"","sources":["../../src/models/return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAOwB;AACxB,0CAewB;AACxB,qCAAiD;AACjD,oDAA2B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E,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACxB;AAGhC;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACzB;AAG/B;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACzB;AAG/B;IADC,IAAA,mBAAY,GAAE;;;;sCAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;oCAGR;AA7HkB,MAAM;IAF1B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;IAC/B,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,MAAM,CA8H1B;kBA9HoB,MAAM"}
@@ -1,8 +1,8 @@
1
1
  import { Rel } from "@mikro-orm/core";
2
2
  import AdjustmentLine from "./adjustment-line";
3
- import ShippingMethod from "./shipping-method";
4
- export default class ShippingMethodAdjustment extends AdjustmentLine {
5
- shipping_method: Rel<ShippingMethod>;
3
+ import OrderShippingMethod from "./shipping-method";
4
+ export default class OrderShippingMethodAdjustment extends AdjustmentLine {
5
+ shipping_method: Rel<OrderShippingMethod>;
6
6
  shipping_method_id: string;
7
7
  onCreate(): void;
8
8
  onInit(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method-adjustment.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method-adjustment.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAQ9C,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,cAAc;IAIlE,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAUpC,kBAAkB,EAAE,MAAM,CAAA;IAG1B,QAAQ;IAMR,MAAM;CAIP"}
1
+ {"version":3,"file":"shipping-method-adjustment.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method-adjustment.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,mBAAmB,MAAM,mBAAmB,CAAA;AAQnD,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,cAAc;IAIvE,eAAe,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;IAUzC,kBAAkB,EAAE,MAAM,CAAA;IAG1B,QAAQ;IAMR,MAAM;CAIP"}
@@ -20,7 +20,7 @@ const ShippingMethodIdIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
20
  tableName: "order_shipping_method_adjustment",
21
21
  columns: "shipping_method_id",
22
22
  });
23
- let ShippingMethodAdjustment = class ShippingMethodAdjustment extends adjustment_line_1.default {
23
+ let OrderShippingMethodAdjustment = class OrderShippingMethodAdjustment extends adjustment_line_1.default {
24
24
  onCreate() {
25
25
  this.id = (0, utils_1.generateEntityId)(this.id, "ordsmadj");
26
26
  this.shipping_method_id ??= this.shipping_method?.id;
@@ -35,7 +35,7 @@ __decorate([
35
35
  persist: false,
36
36
  }),
37
37
  __metadata("design:type", Object)
38
- ], ShippingMethodAdjustment.prototype, "shipping_method", void 0);
38
+ ], OrderShippingMethodAdjustment.prototype, "shipping_method", void 0);
39
39
  __decorate([
40
40
  (0, core_1.ManyToOne)({
41
41
  entity: () => shipping_method_1.default,
@@ -46,21 +46,21 @@ __decorate([
46
46
  }),
47
47
  ShippingMethodIdIdIndex.MikroORMIndex(),
48
48
  __metadata("design:type", String)
49
- ], ShippingMethodAdjustment.prototype, "shipping_method_id", void 0);
49
+ ], OrderShippingMethodAdjustment.prototype, "shipping_method_id", void 0);
50
50
  __decorate([
51
51
  (0, core_1.BeforeCreate)(),
52
52
  __metadata("design:type", Function),
53
53
  __metadata("design:paramtypes", []),
54
54
  __metadata("design:returntype", void 0)
55
- ], ShippingMethodAdjustment.prototype, "onCreate", null);
55
+ ], OrderShippingMethodAdjustment.prototype, "onCreate", null);
56
56
  __decorate([
57
57
  (0, core_1.OnInit)(),
58
58
  __metadata("design:type", Function),
59
59
  __metadata("design:paramtypes", []),
60
60
  __metadata("design:returntype", void 0)
61
- ], ShippingMethodAdjustment.prototype, "onInit", null);
62
- ShippingMethodAdjustment = __decorate([
61
+ ], OrderShippingMethodAdjustment.prototype, "onInit", null);
62
+ OrderShippingMethodAdjustment = __decorate([
63
63
  (0, core_1.Entity)({ tableName: "order_shipping_method_adjustment" })
64
- ], ShippingMethodAdjustment);
65
- exports.default = ShippingMethodAdjustment;
64
+ ], OrderShippingMethodAdjustment);
65
+ exports.default = OrderShippingMethodAdjustment;
66
66
  //# sourceMappingURL=shipping-method-adjustment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method-adjustment.js","sourceRoot":"","sources":["../../src/models/shipping-method-adjustment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAA8E;AAC9E,wEAA8C;AAC9C,wEAA8C;AAE9C,MAAM,uBAAuB,GAAG,IAAA,sCAA8B,EAAC;IAC7D,SAAS,EAAE,kCAAkC;IAC7C,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAA;AAGa,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,yBAAc;IAiBlE,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,eAAe,EAAE,EAAE,CAAA;IACtD,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAA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AI,CAAC,kBAAkB,KAAK,IAAI,CAAC,eAAe,EAAE,EAAE,CAAA;IACtD,CAAC;CACF,CAAA;AAvBC;IAHC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,yBAAmB,EAAE;QACpC,OAAO,EAAE,KAAK;KACf,CAAC;;sEACuC;AAUzC;IARC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG,EAAE,CAAC,yBAAmB;QACjC,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,oBAAoB;QAC/B,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,uBAAuB,CAAC,aAAa,EAAE;;yEACd;AAG1B;IADC,IAAA,mBAAY,GAAE;;;;6DAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;2DAIR;AA1BkB,6BAA6B;IADjD,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,kCAAkC,EAAE,CAAC;GACrC,6BAA6B,CA2BjD;kBA3BoB,6BAA6B"}
@@ -1,8 +1,8 @@
1
1
  import { Rel } from "@mikro-orm/core";
2
- import ShippingMethod from "./shipping-method";
2
+ import OrderShippingMethod from "./shipping-method";
3
3
  import TaxLine from "./tax-line";
4
- export default class ShippingMethodTaxLine extends TaxLine {
5
- shipping_method: Rel<ShippingMethod>;
4
+ export default class OrderShippingMethodTaxLine extends TaxLine {
5
+ shipping_method: Rel<OrderShippingMethod>;
6
6
  shipping_method_id: string;
7
7
  onCreate(): void;
8
8
  onInit(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method-tax-line.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method-tax-line.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,OAAO,MAAM,YAAY,CAAA;AAQhC,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,OAAO;IAIxD,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAUpC,kBAAkB,EAAE,MAAM,CAAA;IAG1B,QAAQ;IAMR,MAAM;CAIP"}
1
+ {"version":3,"file":"shipping-method-tax-line.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method-tax-line.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,mBAAmB,MAAM,mBAAmB,CAAA;AACnD,OAAO,OAAO,MAAM,YAAY,CAAA;AAQhC,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,OAAO;IAI7D,eAAe,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;IAUzC,kBAAkB,EAAE,MAAM,CAAA;IAG1B,QAAQ;IAMR,MAAM;CAIP"}
@@ -20,7 +20,7 @@ const ShippingMethodIdIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
20
  tableName: "order_shipping_method_tax_line",
21
21
  columns: "shipping_method_id",
22
22
  });
23
- let ShippingMethodTaxLine = class ShippingMethodTaxLine extends tax_line_1.default {
23
+ let OrderShippingMethodTaxLine = class OrderShippingMethodTaxLine extends tax_line_1.default {
24
24
  onCreate() {
25
25
  this.id = (0, utils_1.generateEntityId)(this.id, "ordsmtxl");
26
26
  this.shipping_method_id ??= this.shipping_method?.id;
@@ -35,7 +35,7 @@ __decorate([
35
35
  persist: false,
36
36
  }),
37
37
  __metadata("design:type", Object)
38
- ], ShippingMethodTaxLine.prototype, "shipping_method", void 0);
38
+ ], OrderShippingMethodTaxLine.prototype, "shipping_method", void 0);
39
39
  __decorate([
40
40
  (0, core_1.ManyToOne)({
41
41
  entity: () => shipping_method_1.default,
@@ -46,21 +46,21 @@ __decorate([
46
46
  }),
47
47
  ShippingMethodIdIdIndex.MikroORMIndex(),
48
48
  __metadata("design:type", String)
49
- ], ShippingMethodTaxLine.prototype, "shipping_method_id", void 0);
49
+ ], OrderShippingMethodTaxLine.prototype, "shipping_method_id", void 0);
50
50
  __decorate([
51
51
  (0, core_1.BeforeCreate)(),
52
52
  __metadata("design:type", Function),
53
53
  __metadata("design:paramtypes", []),
54
54
  __metadata("design:returntype", void 0)
55
- ], ShippingMethodTaxLine.prototype, "onCreate", null);
55
+ ], OrderShippingMethodTaxLine.prototype, "onCreate", null);
56
56
  __decorate([
57
57
  (0, core_1.OnInit)(),
58
58
  __metadata("design:type", Function),
59
59
  __metadata("design:paramtypes", []),
60
60
  __metadata("design:returntype", void 0)
61
- ], ShippingMethodTaxLine.prototype, "onInit", null);
62
- ShippingMethodTaxLine = __decorate([
61
+ ], OrderShippingMethodTaxLine.prototype, "onInit", null);
62
+ OrderShippingMethodTaxLine = __decorate([
63
63
  (0, core_1.Entity)({ tableName: "order_shipping_method_tax_line" })
64
- ], ShippingMethodTaxLine);
65
- exports.default = ShippingMethodTaxLine;
64
+ ], OrderShippingMethodTaxLine);
65
+ exports.default = OrderShippingMethodTaxLine;
66
66
  //# sourceMappingURL=shipping-method-tax-line.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method-tax-line.js","sourceRoot":"","sources":["../../src/models/shipping-method-tax-line.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAA8E;AAC9E,wEAA8C;AAC9C,0DAAgC;AAEhC,MAAM,uBAAuB,GAAG,IAAA,sCAA8B,EAAC;IAC7D,SAAS,EAAE,gCAAgC;IAC3C,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAA;AAGa,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,kBAAO;IAiBxD,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,eAAe,EAAE,EAAE,CAAA;IACtD,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC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IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,eAAe,EAAE,EAAE,CAAA;IACtD,CAAC;CACF,CAAA;AAvBC;IAHC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,yBAAmB,EAAE;QACpC,OAAO,EAAE,KAAK;KACf,CAAC;;mEACuC;AAUzC;IARC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG,EAAE,CAAC,yBAAmB;QACjC,SAAS,EAAE,oBAAoB;QAC/B,UAAU,EAAE,MAAM;QAClB,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,uBAAuB,CAAC,aAAa,EAAE;;sEACd;AAG1B;IADC,IAAA,mBAAY,GAAE;;;;0DAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;wDAIR;AA1BkB,0BAA0B;IAD9C,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,gCAAgC,EAAE,CAAC;GACnC,0BAA0B,CA2B9C;kBA3BoB,0BAA0B"}
@@ -1,9 +1,9 @@
1
1
  import { BigNumberRawValue } from "@medusajs/types";
2
2
  import { BigNumber } from "@medusajs/utils";
3
3
  import { Collection } from "@mikro-orm/core";
4
- import ShippingMethodAdjustment from "./shipping-method-adjustment";
5
- import ShippingMethodTaxLine from "./shipping-method-tax-line";
6
- export default class ShippingMethod {
4
+ import OrderShippingMethodAdjustment from "./shipping-method-adjustment";
5
+ import OrderShippingMethodTaxLine from "./shipping-method-tax-line";
6
+ export default class OrderShippingMethod {
7
7
  id: string;
8
8
  name: string;
9
9
  description: string | null;
@@ -13,8 +13,8 @@ export default class ShippingMethod {
13
13
  shipping_option_id: string | null;
14
14
  data: Record<string, unknown> | null;
15
15
  metadata: Record<string, unknown> | null;
16
- tax_lines: Collection<ShippingMethodTaxLine, object>;
17
- adjustments: Collection<ShippingMethodAdjustment, object>;
16
+ tax_lines: Collection<OrderShippingMethodTaxLine, object>;
17
+ adjustments: Collection<OrderShippingMethodAdjustment, object>;
18
18
  created_at: Date;
19
19
  updated_at: Date;
20
20
  deleted_at: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAQX,MAAM,iBAAiB,CAAA;AACxB,OAAO,wBAAwB,MAAM,8BAA8B,CAAA;AACnE,OAAO,qBAAqB,MAAM,4BAA4B,CAAA;AAgB9D,MAAM,CAAC,OAAO,OAAO,cAAc;IAEjC,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAA;IAG1B,UAAU,EAAE,iBAAiB,CAAA;IAG7B,gBAAgB,EAAE,OAAO,CAAQ;IAOjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAS/C,SAAS,4CAAmD;IAS5D,WAAW,+CAAsD;IAOjE,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAIR,MAAM;CAGP"}
1
+ {"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAQX,MAAM,iBAAiB,CAAA;AACxB,OAAO,6BAA6B,MAAM,8BAA8B,CAAA;AACxE,OAAO,0BAA0B,MAAM,4BAA4B,CAAA;AAgBnE,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAEtC,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAA;IAG1B,UAAU,EAAE,iBAAiB,CAAA;IAG7B,gBAAgB,EAAE,OAAO,CAAQ;IAOjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAS/C,SAAS,iDAAwD;IASjE,WAAW,oDAA2D;IAOtE,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAIR,MAAM;CAGP"}
@@ -26,7 +26,7 @@ const ShippingOptionIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
26
26
  columns: "shipping_option_id",
27
27
  where: "deleted_at IS NOT NULL",
28
28
  });
29
- let ShippingMethod = class ShippingMethod {
29
+ let OrderShippingMethod = class OrderShippingMethod {
30
30
  constructor() {
31
31
  this.description = null;
32
32
  this.is_tax_inclusive = false;
@@ -47,27 +47,27 @@ let ShippingMethod = class ShippingMethod {
47
47
  __decorate([
48
48
  (0, core_1.PrimaryKey)({ columnType: "text" }),
49
49
  __metadata("design:type", String)
50
- ], ShippingMethod.prototype, "id", void 0);
50
+ ], OrderShippingMethod.prototype, "id", void 0);
51
51
  __decorate([
52
52
  (0, core_1.Property)({ columnType: "text" }),
53
53
  __metadata("design:type", String)
54
- ], ShippingMethod.prototype, "name", void 0);
54
+ ], OrderShippingMethod.prototype, "name", void 0);
55
55
  __decorate([
56
56
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
57
57
  __metadata("design:type", Object)
58
- ], ShippingMethod.prototype, "description", void 0);
58
+ ], OrderShippingMethod.prototype, "description", void 0);
59
59
  __decorate([
60
60
  (0, utils_1.MikroOrmBigNumberProperty)(),
61
61
  __metadata("design:type", Object)
62
- ], ShippingMethod.prototype, "amount", void 0);
62
+ ], OrderShippingMethod.prototype, "amount", void 0);
63
63
  __decorate([
64
64
  (0, core_1.Property)({ columnType: "jsonb" }),
65
65
  __metadata("design:type", Object)
66
- ], ShippingMethod.prototype, "raw_amount", void 0);
66
+ ], OrderShippingMethod.prototype, "raw_amount", void 0);
67
67
  __decorate([
68
68
  (0, core_1.Property)({ columnType: "boolean" }),
69
69
  __metadata("design:type", Boolean)
70
- ], ShippingMethod.prototype, "is_tax_inclusive", void 0);
70
+ ], OrderShippingMethod.prototype, "is_tax_inclusive", void 0);
71
71
  __decorate([
72
72
  (0, core_1.Property)({
73
73
  columnType: "text",
@@ -75,27 +75,27 @@ __decorate([
75
75
  }),
76
76
  ShippingOptionIdIndex.MikroORMIndex(),
77
77
  __metadata("design:type", Object)
78
- ], ShippingMethod.prototype, "shipping_option_id", void 0);
78
+ ], OrderShippingMethod.prototype, "shipping_option_id", void 0);
79
79
  __decorate([
80
80
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
81
81
  __metadata("design:type", Object)
82
- ], ShippingMethod.prototype, "data", void 0);
82
+ ], OrderShippingMethod.prototype, "data", void 0);
83
83
  __decorate([
84
84
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
85
85
  __metadata("design:type", Object)
86
- ], ShippingMethod.prototype, "metadata", void 0);
86
+ ], OrderShippingMethod.prototype, "metadata", void 0);
87
87
  __decorate([
88
88
  (0, core_1.OneToMany)(() => shipping_method_tax_line_1.default, (taxLine) => taxLine.shipping_method, {
89
89
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
90
90
  }),
91
91
  __metadata("design:type", Object)
92
- ], ShippingMethod.prototype, "tax_lines", void 0);
92
+ ], OrderShippingMethod.prototype, "tax_lines", void 0);
93
93
  __decorate([
94
94
  (0, core_1.OneToMany)(() => shipping_method_adjustment_1.default, (adjustment) => adjustment.shipping_method, {
95
95
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
96
96
  }),
97
97
  __metadata("design:type", Object)
98
- ], ShippingMethod.prototype, "adjustments", void 0);
98
+ ], OrderShippingMethod.prototype, "adjustments", void 0);
99
99
  __decorate([
100
100
  (0, core_1.Property)({
101
101
  onCreate: () => new Date(),
@@ -103,7 +103,7 @@ __decorate([
103
103
  defaultRaw: "now()",
104
104
  }),
105
105
  __metadata("design:type", Date)
106
- ], ShippingMethod.prototype, "created_at", void 0);
106
+ ], OrderShippingMethod.prototype, "created_at", void 0);
107
107
  __decorate([
108
108
  (0, core_1.Property)({
109
109
  onCreate: () => new Date(),
@@ -112,27 +112,27 @@ __decorate([
112
112
  defaultRaw: "now()",
113
113
  }),
114
114
  __metadata("design:type", Date)
115
- ], ShippingMethod.prototype, "updated_at", void 0);
115
+ ], OrderShippingMethod.prototype, "updated_at", void 0);
116
116
  __decorate([
117
117
  (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
118
118
  DeletedAtIndex.MikroORMIndex(),
119
119
  __metadata("design:type", Object)
120
- ], ShippingMethod.prototype, "deleted_at", void 0);
120
+ ], OrderShippingMethod.prototype, "deleted_at", void 0);
121
121
  __decorate([
122
122
  (0, core_1.BeforeCreate)(),
123
123
  __metadata("design:type", Function),
124
124
  __metadata("design:paramtypes", []),
125
125
  __metadata("design:returntype", void 0)
126
- ], ShippingMethod.prototype, "onCreate", null);
126
+ ], OrderShippingMethod.prototype, "onCreate", null);
127
127
  __decorate([
128
128
  (0, core_1.OnInit)(),
129
129
  __metadata("design:type", Function),
130
130
  __metadata("design:paramtypes", []),
131
131
  __metadata("design:returntype", void 0)
132
- ], ShippingMethod.prototype, "onInit", null);
133
- ShippingMethod = __decorate([
132
+ ], OrderShippingMethod.prototype, "onInit", null);
133
+ OrderShippingMethod = __decorate([
134
134
  (0, core_1.Entity)({ tableName: "order_shipping_method" }),
135
135
  (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
136
- ], ShippingMethod);
137
- exports.default = ShippingMethod;
136
+ ], OrderShippingMethod);
137
+ exports.default = OrderShippingMethod;
138
138
  //# sourceMappingURL=shipping-method.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-method.js","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAWwB;AACxB,8FAAmE;AACnE,0FAA8D;AAE9D,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,uBAAuB;IAClC,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,IAAA,sCAA8B,EAAC;IAC3D,SAAS,EAAE,uBAAuB;IAClC,OAAO,EAAE,oBAAoB;IAC7B,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAIa,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAQb,gBAAW,GAAkB,IAAI,CAAA;QASjC,qBAAgB,GAAY,KAAK,CAAA;QAOjC,uBAAkB,GAAkB,IAAI,CAAA;QAGxC,SAAI,GAAmC,IAAI,CAAA;QAG3C,aAAQ,GAAmC,IAAI,CAAA;QAS/C,cAAS,GAAG,IAAI,iBAAU,CAA6B,IAAI,CAAC,CAAA;QAS5D,gBAAW,GAAG,IAAI,iBAAU,CAAgC,IAAI,CAAC,CAAA;QAmBjE,eAAU,GAAgB,IAAI,CAAA;IAUhC,CAAC;IAPC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,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AED;IADC,IAAA,aAAM,GAAE;;;;iDAGR;AA5EkB,mBAAmB;IAFvC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;IAC9C,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,mBAAmB,CA6EvC;kBA7EoB,mBAAmB"}
@@ -6,7 +6,7 @@ import Exchange from "./exchange";
6
6
  import Order from "./order";
7
7
  import Return from "./return";
8
8
  type OptionalLineItemProps = DAL.ModelDateColumns;
9
- export default class Transaction {
9
+ export default class OrderTransaction {
10
10
  [OptionalProps]?: OptionalLineItemProps;
11
11
  id: string;
12
12
  order_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/models/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAML,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAuDjD,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IAUV,QAAQ,EAAE,MAAM,CAAA;IAKhB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IAUjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAM/B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAUnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAM1B,QAAQ,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