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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) 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 +126 -185
  84. package/dist/services/order-module-service.js.map +1 -1
  85. package/dist/utils/base-repository-find.d.ts.map +1 -1
  86. package/dist/utils/base-repository-find.js +7 -6
  87. package/dist/utils/base-repository-find.js.map +1 -1
  88. package/package.json +4 -4
@@ -20,7 +20,7 @@ const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
20
  tableName: "order_line_item_tax_line",
21
21
  columns: "item_id",
22
22
  });
23
- let LineItemTaxLine = class LineItemTaxLine extends tax_line_1.default {
23
+ let OrderLineItemTaxLine = class OrderLineItemTaxLine extends tax_line_1.default {
24
24
  onCreate() {
25
25
  this.id = (0, utils_1.generateEntityId)(this.id, "ordlitxl");
26
26
  this.item_id ??= this.item?.id;
@@ -36,7 +36,7 @@ __decorate([
36
36
  persist: false,
37
37
  }),
38
38
  __metadata("design:type", Object)
39
- ], LineItemTaxLine.prototype, "item", void 0);
39
+ ], OrderLineItemTaxLine.prototype, "item", void 0);
40
40
  __decorate([
41
41
  (0, core_1.ManyToOne)({
42
42
  entity: () => line_item_1.default,
@@ -47,21 +47,21 @@ __decorate([
47
47
  }),
48
48
  ItemIdIndex.MikroORMIndex(),
49
49
  __metadata("design:type", String)
50
- ], LineItemTaxLine.prototype, "item_id", void 0);
50
+ ], OrderLineItemTaxLine.prototype, "item_id", void 0);
51
51
  __decorate([
52
52
  (0, core_1.BeforeCreate)(),
53
53
  __metadata("design:type", Function),
54
54
  __metadata("design:paramtypes", []),
55
55
  __metadata("design:returntype", void 0)
56
- ], LineItemTaxLine.prototype, "onCreate", null);
56
+ ], OrderLineItemTaxLine.prototype, "onCreate", null);
57
57
  __decorate([
58
58
  (0, core_1.OnInit)(),
59
59
  __metadata("design:type", Function),
60
60
  __metadata("design:paramtypes", []),
61
61
  __metadata("design:returntype", void 0)
62
- ], LineItemTaxLine.prototype, "onInit", null);
63
- LineItemTaxLine = __decorate([
62
+ ], OrderLineItemTaxLine.prototype, "onInit", null);
63
+ OrderLineItemTaxLine = __decorate([
64
64
  (0, core_1.Entity)({ tableName: "order_line_item_tax_line" })
65
- ], LineItemTaxLine);
66
- exports.default = LineItemTaxLine;
65
+ ], OrderLineItemTaxLine);
66
+ exports.default = OrderLineItemTaxLine;
67
67
  //# sourceMappingURL=line-item-tax-line.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-item-tax-line.js","sourceRoot":"","sources":["../../src/models/line-item-tax-line.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAOwB;AACxB,4DAAkC;AAClC,0DAAgC;AAEhC,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,SAAS;CACnB,CAAC,CAAA;AAGa,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,kBAAO;IAkBlD,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAA;IAChC,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAA;IAChC,CAAC;CACF,CAAA;AAvBC;IAJC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,mBAAQ,EAAE;QACzB,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,KAAK;KACf,CAAC;;6CACiB;AAUnB;IARC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG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ACf,CAAC;;kDACsB;AAUxB;IARC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG,EAAE,CAAC,mBAAa;QAC3B,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,CAAC,cAAO,CAAC,OAAO,EAAE,cAAO,CAAC,MAAM,CAAC;QAC1C,OAAO,EAAE,IAAI;KACd,CAAC;IACD,WAAW,CAAC,aAAa,EAAE;;qDACb;AAGf;IADC,IAAA,mBAAY,GAAE;;;;oDAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;kDAIR;AA3BkB,oBAAoB;IADxC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC;GAC7B,oBAAoB,CA4BxC;kBA5BoB,oBAAoB"}
@@ -1,10 +1,10 @@
1
1
  import { BigNumberRawValue, DAL } from "@medusajs/types";
2
2
  import { BigNumber } from "@medusajs/utils";
3
3
  import { Collection, OptionalProps } from "@mikro-orm/core";
4
- import LineItemAdjustment from "./line-item-adjustment";
5
- import LineItemTaxLine from "./line-item-tax-line";
4
+ import OrderLineItemAdjustment from "./line-item-adjustment";
5
+ import OrderLineItemTaxLine from "./line-item-tax-line";
6
6
  type OptionalLineItemProps = DAL.ModelDateColumns;
7
- export default class LineItem {
7
+ export default class OrderLineItem {
8
8
  [OptionalProps]?: OptionalLineItemProps;
9
9
  id: string;
10
10
  title: string;
@@ -29,8 +29,8 @@ export default class LineItem {
29
29
  raw_compare_at_unit_price: BigNumberRawValue | null;
30
30
  unit_price: BigNumber | number;
31
31
  raw_unit_price: BigNumberRawValue;
32
- tax_lines: Collection<LineItemTaxLine, object>;
33
- adjustments: Collection<LineItemAdjustment, object>;
32
+ tax_lines: Collection<OrderLineItemTaxLine, object>;
33
+ adjustments: Collection<OrderLineItemAdjustment, object>;
34
34
  metadata: Record<string, unknown> | null;
35
35
  created_at: Date;
36
36
  updated_at: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.d.ts","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AmB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGzC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGtC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAGlC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAO;IAGpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAO;IAGrC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAO;IAGnC,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG5D,iBAAiB,EAAE,OAAO,CAAO;IAGjC,eAAe,EAAE,OAAO,CAAO;IAG/B,gBAAgB,EAAE,OAAO,CAAQ;IAKjC,qBAAqB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAO;IAGxD,yBAAyB,EAAE,iBAAiB,GAAG,IAAI,CAAO;IAK1D,UAAU,EAAE,SAAS,GAAG,MAAM,CAAA;IAG9B,cAAc,EAAE,iBAAiB,CAAA;IAKjC,SAAS,2CAAkD;IAK3D,WAAW,8CAAqD;IAGhE,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;IAKR,MAAM;CAGP"}
@@ -31,7 +31,7 @@ const VariantIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
31
31
  columns: "variant_id",
32
32
  where: "deleted_at IS NOT NULL",
33
33
  });
34
- let LineItem = class LineItem {
34
+ let OrderLineItem = class OrderLineItem {
35
35
  constructor() {
36
36
  this.subtitle = null;
37
37
  this.thumbnail = null;
@@ -67,19 +67,19 @@ let LineItem = class LineItem {
67
67
  __decorate([
68
68
  (0, core_1.PrimaryKey)({ columnType: "text" }),
69
69
  __metadata("design:type", String)
70
- ], LineItem.prototype, "id", void 0);
70
+ ], OrderLineItem.prototype, "id", void 0);
71
71
  __decorate([
72
72
  (0, core_1.Property)({ columnType: "text" }),
73
73
  __metadata("design:type", String)
74
- ], LineItem.prototype, "title", void 0);
74
+ ], OrderLineItem.prototype, "title", void 0);
75
75
  __decorate([
76
76
  (0, core_1.Property)({ columnType: "text", nullable: true }),
77
77
  __metadata("design:type", Object)
78
- ], LineItem.prototype, "subtitle", void 0);
78
+ ], OrderLineItem.prototype, "subtitle", void 0);
79
79
  __decorate([
80
80
  (0, core_1.Property)({ columnType: "text", nullable: true }),
81
81
  __metadata("design:type", Object)
82
- ], LineItem.prototype, "thumbnail", void 0);
82
+ ], OrderLineItem.prototype, "thumbnail", void 0);
83
83
  __decorate([
84
84
  (0, core_1.Property)({
85
85
  columnType: "text",
@@ -87,7 +87,7 @@ __decorate([
87
87
  }),
88
88
  VariantIdIndex.MikroORMIndex(),
89
89
  __metadata("design:type", Object)
90
- ], LineItem.prototype, "variant_id", void 0);
90
+ ], OrderLineItem.prototype, "variant_id", void 0);
91
91
  __decorate([
92
92
  (0, core_1.Property)({
93
93
  columnType: "text",
@@ -95,95 +95,95 @@ __decorate([
95
95
  }),
96
96
  ProductIdIndex.MikroORMIndex(),
97
97
  __metadata("design:type", Object)
98
- ], LineItem.prototype, "product_id", void 0);
98
+ ], OrderLineItem.prototype, "product_id", void 0);
99
99
  __decorate([
100
100
  (0, core_1.Property)({ columnType: "text", nullable: true }),
101
101
  __metadata("design:type", Object)
102
- ], LineItem.prototype, "product_title", void 0);
102
+ ], OrderLineItem.prototype, "product_title", void 0);
103
103
  __decorate([
104
104
  (0, core_1.Property)({ columnType: "text", nullable: true }),
105
105
  __metadata("design:type", Object)
106
- ], LineItem.prototype, "product_description", void 0);
106
+ ], OrderLineItem.prototype, "product_description", void 0);
107
107
  __decorate([
108
108
  (0, core_1.Property)({ columnType: "text", nullable: true }),
109
109
  __metadata("design:type", Object)
110
- ], LineItem.prototype, "product_subtitle", void 0);
110
+ ], OrderLineItem.prototype, "product_subtitle", void 0);
111
111
  __decorate([
112
112
  (0, core_1.Property)({ columnType: "text", nullable: true }),
113
113
  __metadata("design:type", Object)
114
- ], LineItem.prototype, "product_type", void 0);
114
+ ], OrderLineItem.prototype, "product_type", void 0);
115
115
  __decorate([
116
116
  (0, core_1.Property)({ columnType: "text", nullable: true }),
117
117
  __metadata("design:type", Object)
118
- ], LineItem.prototype, "product_collection", void 0);
118
+ ], OrderLineItem.prototype, "product_collection", void 0);
119
119
  __decorate([
120
120
  (0, core_1.Property)({ columnType: "text", nullable: true }),
121
121
  __metadata("design:type", Object)
122
- ], LineItem.prototype, "product_handle", void 0);
122
+ ], OrderLineItem.prototype, "product_handle", void 0);
123
123
  __decorate([
124
124
  (0, core_1.Property)({ columnType: "text", nullable: true }),
125
125
  __metadata("design:type", Object)
126
- ], LineItem.prototype, "variant_sku", void 0);
126
+ ], OrderLineItem.prototype, "variant_sku", void 0);
127
127
  __decorate([
128
128
  (0, core_1.Property)({ columnType: "text", nullable: true }),
129
129
  __metadata("design:type", Object)
130
- ], LineItem.prototype, "variant_barcode", void 0);
130
+ ], OrderLineItem.prototype, "variant_barcode", void 0);
131
131
  __decorate([
132
132
  (0, core_1.Property)({ columnType: "text", nullable: true }),
133
133
  __metadata("design:type", Object)
134
- ], LineItem.prototype, "variant_title", void 0);
134
+ ], OrderLineItem.prototype, "variant_title", void 0);
135
135
  __decorate([
136
136
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
137
137
  __metadata("design:type", Object)
138
- ], LineItem.prototype, "variant_option_values", void 0);
138
+ ], OrderLineItem.prototype, "variant_option_values", void 0);
139
139
  __decorate([
140
140
  (0, core_1.Property)({ columnType: "boolean" }),
141
141
  __metadata("design:type", Boolean)
142
- ], LineItem.prototype, "requires_shipping", void 0);
142
+ ], OrderLineItem.prototype, "requires_shipping", void 0);
143
143
  __decorate([
144
144
  (0, core_1.Property)({ columnType: "boolean" }),
145
145
  __metadata("design:type", Boolean)
146
- ], LineItem.prototype, "is_discountable", void 0);
146
+ ], OrderLineItem.prototype, "is_discountable", void 0);
147
147
  __decorate([
148
148
  (0, core_1.Property)({ columnType: "boolean" }),
149
149
  __metadata("design:type", Boolean)
150
- ], LineItem.prototype, "is_tax_inclusive", void 0);
150
+ ], OrderLineItem.prototype, "is_tax_inclusive", void 0);
151
151
  __decorate([
152
152
  (0, utils_1.MikroOrmBigNumberProperty)({
153
153
  nullable: true,
154
154
  }),
155
155
  __metadata("design:type", Object)
156
- ], LineItem.prototype, "compare_at_unit_price", void 0);
156
+ ], OrderLineItem.prototype, "compare_at_unit_price", void 0);
157
157
  __decorate([
158
158
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
159
159
  __metadata("design:type", Object)
160
- ], LineItem.prototype, "raw_compare_at_unit_price", void 0);
160
+ ], OrderLineItem.prototype, "raw_compare_at_unit_price", void 0);
161
161
  __decorate([
162
162
  (0, utils_1.MikroOrmBigNumberProperty)({
163
163
  nullable: true,
164
164
  }),
165
165
  __metadata("design:type", Object)
166
- ], LineItem.prototype, "unit_price", void 0);
166
+ ], OrderLineItem.prototype, "unit_price", void 0);
167
167
  __decorate([
168
168
  (0, core_1.Property)({ columnType: "jsonb" }),
169
169
  __metadata("design:type", Object)
170
- ], LineItem.prototype, "raw_unit_price", void 0);
170
+ ], OrderLineItem.prototype, "raw_unit_price", void 0);
171
171
  __decorate([
172
172
  (0, core_1.OneToMany)(() => line_item_tax_line_1.default, (taxLine) => taxLine.item, {
173
173
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
174
174
  }),
175
175
  __metadata("design:type", Object)
176
- ], LineItem.prototype, "tax_lines", void 0);
176
+ ], OrderLineItem.prototype, "tax_lines", void 0);
177
177
  __decorate([
178
178
  (0, core_1.OneToMany)(() => line_item_adjustment_1.default, (adjustment) => adjustment.item, {
179
179
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
180
180
  }),
181
181
  __metadata("design:type", Object)
182
- ], LineItem.prototype, "adjustments", void 0);
182
+ ], OrderLineItem.prototype, "adjustments", void 0);
183
183
  __decorate([
184
184
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
185
185
  __metadata("design:type", Object)
186
- ], LineItem.prototype, "metadata", void 0);
186
+ ], OrderLineItem.prototype, "metadata", void 0);
187
187
  __decorate([
188
188
  (0, core_1.Property)({
189
189
  onCreate: () => new Date(),
@@ -191,7 +191,7 @@ __decorate([
191
191
  defaultRaw: "now()",
192
192
  }),
193
193
  __metadata("design:type", Date)
194
- ], LineItem.prototype, "created_at", void 0);
194
+ ], OrderLineItem.prototype, "created_at", void 0);
195
195
  __decorate([
196
196
  (0, core_1.Property)({
197
197
  onCreate: () => new Date(),
@@ -200,27 +200,27 @@ __decorate([
200
200
  defaultRaw: "now()",
201
201
  }),
202
202
  __metadata("design:type", Date)
203
- ], LineItem.prototype, "updated_at", void 0);
203
+ ], OrderLineItem.prototype, "updated_at", void 0);
204
204
  __decorate([
205
205
  (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
206
206
  DeletedAtIndex.MikroORMIndex(),
207
207
  __metadata("design:type", Object)
208
- ], LineItem.prototype, "deleted_at", void 0);
208
+ ], OrderLineItem.prototype, "deleted_at", void 0);
209
209
  __decorate([
210
210
  (0, core_1.BeforeCreate)(),
211
211
  __metadata("design:type", Function),
212
212
  __metadata("design:paramtypes", []),
213
213
  __metadata("design:returntype", void 0)
214
- ], LineItem.prototype, "onCreate", null);
214
+ ], OrderLineItem.prototype, "onCreate", null);
215
215
  __decorate([
216
216
  (0, core_1.OnInit)(),
217
217
  __metadata("design:type", Function),
218
218
  __metadata("design:paramtypes", []),
219
219
  __metadata("design:returntype", void 0)
220
- ], LineItem.prototype, "onInit", null);
221
- LineItem = __decorate([
220
+ ], OrderLineItem.prototype, "onInit", null);
221
+ OrderLineItem = __decorate([
222
222
  (0, core_1.Entity)({ tableName: "order_line_item" }),
223
223
  (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
224
- ], LineItem);
225
- exports.default = LineItem;
224
+ ], OrderLineItem);
225
+ exports.default = OrderLineItem;
226
226
  //# sourceMappingURL=line-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.js","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAYwB;AACxB,kFAAuD;AACvD,8EAAkD;AAIlD,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAIa,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAAd;QAUb,aAAQ,GAAkB,IAAI,CAAA;QAG9B,cAAS,GAAkB,IAAI,CAAA;QAO/B,eAAU,GAAkB,IAAI,CAAA;QAOhC,eAAU,GAAkB,IAAI,CAAA;QAGhC,kBAAa,GAAkB,IAAI,CAAA;QAGnC,wBAAmB,GAAkB,IAAI,CAAA;QAGzC,qBAAgB,GAAkB,IAAI,CAAA;QAGtC,iBAAY,GAAkB,IAAI,CAAA;QAGlC,uBAAkB,GAAkB,IAAI,CAAA;QAGxC,mBAAc,GAAkB,IAAI,CAAA;QAGpC,gBAAW,GAAkB,IAAI,CAAA;QAGjC,oBAAe,GAAkB,IAAI,CAAA;QAGrC,kBAAa,GAAkB,IAAI,CAAA;QAGnC,0B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Q;IAOxB,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAeR,MAAM;CAaP"}
@@ -75,22 +75,26 @@ let OrderChangeAction = class OrderChangeAction {
75
75
  onCreate() {
76
76
  this.id = (0, utils_1.generateEntityId)(this.id, "ordchact");
77
77
  this.order_id ??= this.order?.id ?? this.order_change?.order_id ?? null;
78
- this.return_id ??= this.return?.id ?? this.order_change?.return_id ?? null;
79
78
  this.claim_id ??= this.claim?.id ?? this.order_change?.claim_id ?? null;
80
79
  this.exchange_id ??=
81
80
  this.exchange?.id ?? this.order_change?.exchange_id ?? null;
82
81
  this.order_change_id ??= this.order_change?.id ?? null;
83
82
  this.version ??= this.order_change?.version ?? null;
83
+ if (!this.claim_id && !this.exchange_id) {
84
+ this.return_id ??= this.return?.id ?? this.order_change?.return_id ?? null;
85
+ }
84
86
  }
85
87
  onInit() {
86
88
  this.id = (0, utils_1.generateEntityId)(this.id, "ordchact");
87
89
  this.order_id ??= this.order?.id ?? this.order_change?.order_id ?? null;
88
- this.return_id ??= this.return?.id ?? this.order_change?.return_id ?? null;
89
90
  this.claim_id ??= this.claim?.id ?? this.order_change?.claim_id ?? null;
90
91
  this.exchange_id ??=
91
92
  this.exchange?.id ?? this.order_change?.exchange_id ?? null;
92
93
  this.order_change_id ??= this.order_change?.id ?? null;
93
94
  this.version ??= this.order_change?.version ?? null;
95
+ if (!this.claim_id && !this.exchange_id) {
96
+ this.return_id ??= this.return?.id ?? this.order_change?.return_id ?? null;
97
+ }
94
98
  }
95
99
  };
96
100
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"order-change-action.js","sourceRoot":"","sources":["../../src/models/order-change-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAUwB;AACxB,oDAAgC;AAChC,0DAAsC;AACtC,oDAA2B;AAC3B,kEAAwC;AACxC,sDA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;;;iDAad;AAGD;IADC,IAAA,aAAM,GAAE;;;;+CAaR;AAlLkB,iBAAiB;IAFrC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;IAC5C,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,iBAAiB,CAmLrC;kBAnLoB,iBAAiB"}
@@ -1,7 +1,7 @@
1
1
  import { BigNumberRawValue, DAL } from "@medusajs/types";
2
2
  import { BigNumber } from "@medusajs/utils";
3
3
  import { OptionalProps, Rel } from "@mikro-orm/core";
4
- import LineItem from "./line-item";
4
+ import OrderLineItem from "./line-item";
5
5
  import Order from "./order";
6
6
  type OptionalLineItemProps = DAL.ModelDateColumns;
7
7
  export default class OrderItem {
@@ -11,7 +11,7 @@ export default class OrderItem {
11
11
  order: Rel<Order>;
12
12
  version: number;
13
13
  item_id: string;
14
- item: Rel<LineItem>;
14
+ item: Rel<OrderLineItem>;
15
15
  quantity: BigNumber | number;
16
16
  raw_quantity: BigNumberRawValue;
17
17
  fulfilled_quantity: BigNumber | number;
@@ -1 +1 @@
1
- {"version":3,"file":"order-item.d.ts","sourceRoot":"","sources":["../../src/models/order-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,SAAS,EAIV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAKL,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,MAAM,SAAS,CAAA;AAE3B,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA4BjD,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IASV,QAAQ,EAAE,MAAM,CAAA;IAKhB,KAAK,EAAE,GA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AC;;2CACH;AAO/C;IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;6CAAA;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;6CAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;6CACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;yCAMd;AAGD;IADC,IAAA,aAAM,GAAE;;;;uCAMR;AApHkB,SAAS;IAD7B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;GACD,SAAS,CAqH7B;kBArHoB,SAAS"}
@@ -4,9 +4,9 @@ import Claim from "./claim";
4
4
  import Exchange from "./exchange";
5
5
  import Order from "./order";
6
6
  import Return from "./return";
7
- import ShippingMethod from "./shipping-method";
7
+ import OrderShippingMethod from "./shipping-method";
8
8
  type OptionalShippingMethodProps = DAL.ModelDateColumns;
9
- export default class OrderShippingMethod {
9
+ export default class OrderShipping {
10
10
  [OptionalProps]?: OptionalShippingMethodProps;
11
11
  id: string;
12
12
  order_id: string;
@@ -19,7 +19,7 @@ export default class OrderShippingMethod {
19
19
  claim: Rel<Claim>;
20
20
  version: number;
21
21
  shipping_method_id: string;
22
- shipping_method: Rel<ShippingMethod>;
22
+ shipping_method: Rel<OrderShippingMethod>;
23
23
  created_at: Date;
24
24
  updated_at: Date;
25
25
  deleted_at: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"order-shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/order-shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAKrC,OAAO,EAKL,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;AAC7B,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAE9C,KAAK,2BAA2B,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA8CvD,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC,CAAC,aAAa,CAAC,CAAC,EAAE,2BAA2B,CAAA;IAG7C,EAAE,EAAE,MAAM,CAAA;IASV,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,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA;IAUvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAMvB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IAIjB,OAAO,EAAE,MAAM,CAAA;IASf,kBAAkB,EAAE,MAAM,CAAA;IAK1B,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAOpC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAWR,MAAM;CASP"}
1
+ {"version":3,"file":"order-shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/order-shipping-method.ts"],"names":[],"mappings":"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derShippingMethod {
58
+ let OrderShipping = class OrderShipping {
59
59
  constructor() {
60
60
  this.return_id = null;
61
61
  this.deleted_at = null;
@@ -82,7 +82,7 @@ let OrderShippingMethod = class OrderShippingMethod {
82
82
  __decorate([
83
83
  (0, core_1.PrimaryKey)({ columnType: "text" }),
84
84
  __metadata("design:type", String)
85
- ], OrderShippingMethod.prototype, "id", void 0);
85
+ ], OrderShipping.prototype, "id", void 0);
86
86
  __decorate([
87
87
  (0, core_1.ManyToOne)({
88
88
  entity: () => order_1.default,
@@ -92,13 +92,13 @@ __decorate([
92
92
  }),
93
93
  OrderIdIndex.MikroORMIndex(),
94
94
  __metadata("design:type", String)
95
- ], OrderShippingMethod.prototype, "order_id", void 0);
95
+ ], OrderShipping.prototype, "order_id", void 0);
96
96
  __decorate([
97
97
  (0, core_1.ManyToOne)(() => order_1.default, {
98
98
  persist: false,
99
99
  }),
100
100
  __metadata("design:type", Object)
101
- ], OrderShippingMethod.prototype, "order", void 0);
101
+ ], OrderShipping.prototype, "order", void 0);
102
102
  __decorate([
103
103
  (0, core_1.ManyToOne)({
104
104
  entity: () => return_1.default,
@@ -109,14 +109,14 @@ __decorate([
109
109
  }),
110
110
  ReturnIdIndex.MikroORMIndex(),
111
111
  __metadata("design:type", Object)
112
- ], OrderShippingMethod.prototype, "return_id", void 0);
112
+ ], OrderShipping.prototype, "return_id", void 0);
113
113
  __decorate([
114
114
  (0, core_1.ManyToOne)(() => return_1.default, {
115
115
  persist: false,
116
116
  nullable: true,
117
117
  }),
118
118
  __metadata("design:type", Object)
119
- ], OrderShippingMethod.prototype, "return", void 0);
119
+ ], OrderShipping.prototype, "return", void 0);
120
120
  __decorate([
121
121
  (0, core_1.ManyToOne)({
122
122
  entity: () => exchange_1.default,
@@ -127,14 +127,14 @@ __decorate([
127
127
  }),
128
128
  ExchangeIdIndex.MikroORMIndex(),
129
129
  __metadata("design:type", Object)
130
- ], OrderShippingMethod.prototype, "exchange_id", void 0);
130
+ ], OrderShipping.prototype, "exchange_id", void 0);
131
131
  __decorate([
132
132
  (0, core_1.ManyToOne)(() => exchange_1.default, {
133
133
  persist: false,
134
134
  nullable: true,
135
135
  }),
136
136
  __metadata("design:type", Object)
137
- ], OrderShippingMethod.prototype, "exchange", void 0);
137
+ ], OrderShipping.prototype, "exchange", void 0);
138
138
  __decorate([
139
139
  (0, core_1.ManyToOne)({
140
140
  entity: () => claim_1.default,
@@ -145,19 +145,19 @@ __decorate([
145
145
  }),
146
146
  ClaimIdIndex.MikroORMIndex(),
147
147
  __metadata("design:type", Object)
148
- ], OrderShippingMethod.prototype, "claim_id", void 0);
148
+ ], OrderShipping.prototype, "claim_id", void 0);
149
149
  __decorate([
150
150
  (0, core_1.ManyToOne)(() => claim_1.default, {
151
151
  persist: false,
152
152
  nullable: true,
153
153
  }),
154
154
  __metadata("design:type", Object)
155
- ], OrderShippingMethod.prototype, "claim", void 0);
155
+ ], OrderShipping.prototype, "claim", void 0);
156
156
  __decorate([
157
157
  (0, core_1.Property)({ columnType: "integer" }),
158
158
  OrderVersionIndex.MikroORMIndex(),
159
159
  __metadata("design:type", Number)
160
- ], OrderShippingMethod.prototype, "version", void 0);
160
+ ], OrderShipping.prototype, "version", void 0);
161
161
  __decorate([
162
162
  (0, core_1.ManyToOne)({
163
163
  entity: () => shipping_method_1.default,
@@ -167,13 +167,13 @@ __decorate([
167
167
  }),
168
168
  ItemIdIndex.MikroORMIndex(),
169
169
  __metadata("design:type", String)
170
- ], OrderShippingMethod.prototype, "shipping_method_id", void 0);
170
+ ], OrderShipping.prototype, "shipping_method_id", void 0);
171
171
  __decorate([
172
172
  (0, core_1.ManyToOne)(() => shipping_method_1.default, {
173
173
  persist: false,
174
174
  }),
175
175
  __metadata("design:type", Object)
176
- ], OrderShippingMethod.prototype, "shipping_method", void 0);
176
+ ], OrderShipping.prototype, "shipping_method", void 0);
177
177
  __decorate([
178
178
  (0, core_1.Property)({
179
179
  onCreate: () => new Date(),
@@ -181,7 +181,7 @@ __decorate([
181
181
  defaultRaw: "now()",
182
182
  }),
183
183
  __metadata("design:type", Date)
184
- ], OrderShippingMethod.prototype, "created_at", void 0);
184
+ ], OrderShipping.prototype, "created_at", void 0);
185
185
  __decorate([
186
186
  (0, core_1.Property)({
187
187
  onCreate: () => new Date(),
@@ -190,26 +190,26 @@ __decorate([
190
190
  defaultRaw: "now()",
191
191
  }),
192
192
  __metadata("design:type", Date)
193
- ], OrderShippingMethod.prototype, "updated_at", void 0);
193
+ ], OrderShipping.prototype, "updated_at", void 0);
194
194
  __decorate([
195
195
  (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
196
196
  DeletedAtIndex.MikroORMIndex(),
197
197
  __metadata("design:type", Object)
198
- ], OrderShippingMethod.prototype, "deleted_at", void 0);
198
+ ], OrderShipping.prototype, "deleted_at", void 0);
199
199
  __decorate([
200
200
  (0, core_1.BeforeCreate)(),
201
201
  __metadata("design:type", Function),
202
202
  __metadata("design:paramtypes", []),
203
203
  __metadata("design:returntype", void 0)
204
- ], OrderShippingMethod.prototype, "onCreate", null);
204
+ ], OrderShipping.prototype, "onCreate", null);
205
205
  __decorate([
206
206
  (0, core_1.OnInit)(),
207
207
  __metadata("design:type", Function),
208
208
  __metadata("design:paramtypes", []),
209
209
  __metadata("design:returntype", void 0)
210
- ], OrderShippingMethod.prototype, "onInit", null);
211
- OrderShippingMethod = __decorate([
210
+ ], OrderShipping.prototype, "onInit", null);
211
+ OrderShipping = __decorate([
212
212
  (0, core_1.Entity)({ tableName })
213
- ], OrderShippingMethod);
214
- exports.default = OrderShippingMethod;
213
+ ], OrderShipping);
214
+ exports.default = OrderShipping;
215
215
  //# sourceMappingURL=order-shipping-method.js.map