@medusajs/product 3.0.0-snapshot-20250410112222 → 3.0.0-snapshot-20251104004624

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/joiner-config.d.ts.map +1 -1
  2. package/dist/joiner-config.js +1 -0
  3. package/dist/joiner-config.js.map +1 -1
  4. package/dist/migrations/InitialSetup20240401153642.d.ts +1 -1
  5. package/dist/migrations/InitialSetup20240401153642.d.ts.map +1 -1
  6. package/dist/migrations/InitialSetup20240401153642.js +1 -1
  7. package/dist/migrations/InitialSetup20240401153642.js.map +1 -1
  8. package/dist/migrations/Migration20240601111544.d.ts +1 -1
  9. package/dist/migrations/Migration20240601111544.d.ts.map +1 -1
  10. package/dist/migrations/Migration20240601111544.js +1 -1
  11. package/dist/migrations/Migration20240601111544.js.map +1 -1
  12. package/dist/migrations/Migration202408271511.d.ts +1 -1
  13. package/dist/migrations/Migration202408271511.d.ts.map +1 -1
  14. package/dist/migrations/Migration202408271511.js +1 -1
  15. package/dist/migrations/Migration202408271511.js.map +1 -1
  16. package/dist/migrations/Migration20241122120331.d.ts +1 -1
  17. package/dist/migrations/Migration20241122120331.d.ts.map +1 -1
  18. package/dist/migrations/Migration20241122120331.js +1 -1
  19. package/dist/migrations/Migration20241122120331.js.map +1 -1
  20. package/dist/migrations/Migration20241125090957.d.ts +1 -1
  21. package/dist/migrations/Migration20241125090957.d.ts.map +1 -1
  22. package/dist/migrations/Migration20241125090957.js +1 -1
  23. package/dist/migrations/Migration20241125090957.js.map +1 -1
  24. package/dist/migrations/Migration20250411073236.d.ts +6 -0
  25. package/dist/migrations/Migration20250411073236.d.ts.map +1 -0
  26. package/dist/migrations/Migration20250411073236.js +14 -0
  27. package/dist/migrations/Migration20250411073236.js.map +1 -0
  28. package/dist/migrations/Migration20250516081326.d.ts +6 -0
  29. package/dist/migrations/Migration20250516081326.d.ts.map +1 -0
  30. package/dist/migrations/Migration20250516081326.js +14 -0
  31. package/dist/migrations/Migration20250516081326.js.map +1 -0
  32. package/dist/migrations/Migration20250910154539.d.ts +6 -0
  33. package/dist/migrations/Migration20250910154539.d.ts.map +1 -0
  34. package/dist/migrations/Migration20250910154539.js +25 -0
  35. package/dist/migrations/Migration20250910154539.js.map +1 -0
  36. package/dist/migrations/Migration20250911092221.d.ts +6 -0
  37. package/dist/migrations/Migration20250911092221.d.ts.map +1 -0
  38. package/dist/migrations/Migration20250911092221.js +14 -0
  39. package/dist/migrations/Migration20250911092221.js.map +1 -0
  40. package/dist/migrations/Migration20250929204438.d.ts +6 -0
  41. package/dist/migrations/Migration20250929204438.d.ts.map +1 -0
  42. package/dist/migrations/Migration20250929204438.js +27 -0
  43. package/dist/migrations/Migration20250929204438.js.map +1 -0
  44. package/dist/migrations/Migration20251008132218.d.ts +6 -0
  45. package/dist/migrations/Migration20251008132218.d.ts.map +1 -0
  46. package/dist/migrations/Migration20251008132218.js +14 -0
  47. package/dist/migrations/Migration20251008132218.js.map +1 -0
  48. package/dist/migrations/Migration20251011090511.d.ts +6 -0
  49. package/dist/migrations/Migration20251011090511.d.ts.map +1 -0
  50. package/dist/migrations/Migration20251011090511.js +16 -0
  51. package/dist/migrations/Migration20251011090511.js.map +1 -0
  52. package/dist/models/index.d.ts +1 -0
  53. package/dist/models/index.d.ts.map +1 -1
  54. package/dist/models/index.js +3 -1
  55. package/dist/models/index.js.map +1 -1
  56. package/dist/models/product-category.d.ts +113 -17
  57. package/dist/models/product-category.d.ts.map +1 -1
  58. package/dist/models/product-collection.d.ts +112 -16
  59. package/dist/models/product-collection.d.ts.map +1 -1
  60. package/dist/models/product-image.d.ts +418 -17
  61. package/dist/models/product-image.d.ts.map +1 -1
  62. package/dist/models/product-image.js +27 -0
  63. package/dist/models/product-image.js.map +1 -1
  64. package/dist/models/product-option-value.d.ts +369 -28
  65. package/dist/models/product-option-value.d.ts.map +1 -1
  66. package/dist/models/product-option.d.ts +326 -15
  67. package/dist/models/product-option.d.ts.map +1 -1
  68. package/dist/models/product-tag.d.ts +113 -17
  69. package/dist/models/product-tag.d.ts.map +1 -1
  70. package/dist/models/product-type.d.ts +112 -16
  71. package/dist/models/product-type.d.ts.map +1 -1
  72. package/dist/models/product-variant-product-image.d.ts +1015 -0
  73. package/dist/models/product-variant-product-image.d.ts.map +1 -0
  74. package/dist/models/product-variant-product-image.js +22 -0
  75. package/dist/models/product-variant-product-image.js.map +1 -0
  76. package/dist/models/product-variant.d.ts +305 -28
  77. package/dist/models/product-variant.d.ts.map +1 -1
  78. package/dist/models/product-variant.js +21 -1
  79. package/dist/models/product-variant.js.map +1 -1
  80. package/dist/models/product.d.ts +113 -17
  81. package/dist/models/product.d.ts.map +1 -1
  82. package/dist/models/product.js +6 -0
  83. package/dist/models/product.js.map +1 -1
  84. package/dist/repositories/product-category.d.ts +397 -40
  85. package/dist/repositories/product-category.d.ts.map +1 -1
  86. package/dist/repositories/product-category.js +4 -6
  87. package/dist/repositories/product-category.js.map +1 -1
  88. package/dist/repositories/product.d.ts +119 -19
  89. package/dist/repositories/product.d.ts.map +1 -1
  90. package/dist/repositories/product.js +108 -1
  91. package/dist/repositories/product.js.map +1 -1
  92. package/dist/schema/index.d.ts +1 -1
  93. package/dist/schema/index.d.ts.map +1 -1
  94. package/dist/schema/index.js +1 -0
  95. package/dist/schema/index.js.map +1 -1
  96. package/dist/services/product-category.d.ts +9 -2
  97. package/dist/services/product-category.d.ts.map +1 -1
  98. package/dist/services/product-category.js +46 -9
  99. package/dist/services/product-category.js.map +1 -1
  100. package/dist/services/product-module-service.d.ts +42 -4
  101. package/dist/services/product-module-service.d.ts.map +1 -1
  102. package/dist/services/product-module-service.js +484 -211
  103. package/dist/services/product-module-service.js.map +1 -1
  104. package/dist/tsconfig.tsbuildinfo +1 -1
  105. package/dist/types/index.d.ts +5 -0
  106. package/dist/types/index.d.ts.map +1 -1
  107. package/dist/utils/events.d.ts +0 -168
  108. package/dist/utils/events.d.ts.map +1 -1
  109. package/dist/utils/events.js +0 -126
  110. package/dist/utils/events.js.map +1 -1
  111. package/package.json +14 -29
@@ -1,6 +1,6 @@
1
1
  import { Context, DAL, InferEntityType, ProductCategoryTransformOptions, ProductTypes } from "@medusajs/framework/types";
2
2
  import { DALUtils } from "@medusajs/framework/utils";
3
- import { SqlEntityManager } from "@mikro-orm/postgresql";
3
+ import { SqlEntityManager } from "@medusajs/framework/mikro-orm/postgresql";
4
4
  import { ProductCategory } from "../models";
5
5
  import { UpdateCategoryInput } from "../types";
6
6
  export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTreeRepository<typeof ProductCategory> {
@@ -15,8 +15,8 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
15
15
  is_internal: boolean;
16
16
  rank: number;
17
17
  metadata: Record<string, unknown> | null;
18
- parent_category: any;
19
- category_children: any[];
18
+ parent_category: /*elided*/ any;
19
+ category_children: /*elided*/ any[];
20
20
  products: {
21
21
  id: string;
22
22
  title: string;
@@ -56,7 +56,20 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
56
56
  width: number | null;
57
57
  metadata: Record<string, unknown> | null;
58
58
  variant_rank: number | null;
59
- product: any;
59
+ thumbnail: string | null;
60
+ product: /*elided*/ any;
61
+ images: {
62
+ id: string;
63
+ url: string;
64
+ metadata: Record<string, unknown> | null;
65
+ rank: number;
66
+ product: /*elided*/ any;
67
+ variants: /*elided*/ any[];
68
+ created_at: Date;
69
+ updated_at: Date;
70
+ deleted_at: Date | null;
71
+ product_id: string;
72
+ }[];
60
73
  options: {
61
74
  id: string;
62
75
  value: string;
@@ -65,14 +78,14 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
65
78
  id: string;
66
79
  title: string;
67
80
  metadata: Record<string, unknown> | null;
68
- product: any;
69
- values: any[];
81
+ product: /*elided*/ any;
82
+ values: /*elided*/ any[];
70
83
  created_at: Date;
71
84
  updated_at: Date;
72
85
  deleted_at: Date | null;
73
86
  product_id: string;
74
87
  };
75
- variants: any[];
88
+ variants: /*elided*/ any[];
76
89
  created_at: Date;
77
90
  updated_at: Date;
78
91
  deleted_at: Date | null;
@@ -92,7 +105,7 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
92
105
  id: string;
93
106
  value: string;
94
107
  metadata: Record<string, unknown> | null;
95
- products: any[];
108
+ products: /*elided*/ any[];
96
109
  created_at: Date;
97
110
  updated_at: Date;
98
111
  deleted_at: Date | null;
@@ -101,7 +114,7 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
101
114
  id: string;
102
115
  value: string;
103
116
  metadata: Record<string, unknown> | null;
104
- products: any[];
117
+ products: /*elided*/ any[];
105
118
  created_at: Date;
106
119
  updated_at: Date;
107
120
  deleted_at: Date | null;
@@ -110,8 +123,61 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
110
123
  id: string;
111
124
  title: string;
112
125
  metadata: Record<string, unknown> | null;
113
- product: any;
114
- values: any[];
126
+ product: /*elided*/ any;
127
+ values: {
128
+ id: string;
129
+ value: string;
130
+ metadata: Record<string, unknown> | null;
131
+ option: /*elided*/ any;
132
+ variants: {
133
+ id: string;
134
+ title: string;
135
+ sku: string | null;
136
+ barcode: string | null;
137
+ ean: string | null;
138
+ upc: string | null;
139
+ allow_backorder: boolean;
140
+ manage_inventory: boolean;
141
+ hs_code: string | null;
142
+ origin_country: string | null;
143
+ mid_code: string | null;
144
+ material: string | null;
145
+ weight: number | null;
146
+ length: number | null;
147
+ height: number | null;
148
+ width: number | null;
149
+ metadata: Record<string, unknown> | null;
150
+ variant_rank: number | null;
151
+ thumbnail: string | null;
152
+ product: /*elided*/ any;
153
+ images: {
154
+ id: string;
155
+ url: string;
156
+ metadata: Record<string, unknown> | null;
157
+ rank: number;
158
+ product: /*elided*/ any;
159
+ variants: /*elided*/ any[];
160
+ created_at: Date;
161
+ updated_at: Date;
162
+ deleted_at: Date | null;
163
+ product_id: string;
164
+ }[];
165
+ options: /*elided*/ any[];
166
+ raw_weight: Record<string, unknown> | null;
167
+ raw_length: Record<string, unknown> | null;
168
+ raw_height: Record<string, unknown> | null;
169
+ raw_width: Record<string, unknown> | null;
170
+ raw_variant_rank: Record<string, unknown> | null;
171
+ created_at: Date;
172
+ updated_at: Date;
173
+ deleted_at: Date | null;
174
+ product_id: string | null;
175
+ }[];
176
+ created_at: Date;
177
+ updated_at: Date;
178
+ deleted_at: Date | null;
179
+ option_id: string | null;
180
+ }[];
115
181
  created_at: Date;
116
182
  updated_at: Date;
117
183
  deleted_at: Date | null;
@@ -122,7 +188,60 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
122
188
  url: string;
123
189
  metadata: Record<string, unknown> | null;
124
190
  rank: number;
125
- product: any;
191
+ product: /*elided*/ any;
192
+ variants: {
193
+ id: string;
194
+ title: string;
195
+ sku: string | null;
196
+ barcode: string | null;
197
+ ean: string | null;
198
+ upc: string | null;
199
+ allow_backorder: boolean;
200
+ manage_inventory: boolean;
201
+ hs_code: string | null;
202
+ origin_country: string | null;
203
+ mid_code: string | null;
204
+ material: string | null;
205
+ weight: number | null;
206
+ length: number | null;
207
+ height: number | null;
208
+ width: number | null;
209
+ metadata: Record<string, unknown> | null;
210
+ variant_rank: number | null;
211
+ thumbnail: string | null;
212
+ product: /*elided*/ any;
213
+ images: /*elided*/ any[];
214
+ options: {
215
+ id: string;
216
+ value: string;
217
+ metadata: Record<string, unknown> | null;
218
+ option: {
219
+ id: string;
220
+ title: string;
221
+ metadata: Record<string, unknown> | null;
222
+ product: /*elided*/ any;
223
+ values: /*elided*/ any[];
224
+ created_at: Date;
225
+ updated_at: Date;
226
+ deleted_at: Date | null;
227
+ product_id: string;
228
+ };
229
+ variants: /*elided*/ any[];
230
+ created_at: Date;
231
+ updated_at: Date;
232
+ deleted_at: Date | null;
233
+ option_id: string | null;
234
+ }[];
235
+ raw_weight: Record<string, unknown> | null;
236
+ raw_length: Record<string, unknown> | null;
237
+ raw_height: Record<string, unknown> | null;
238
+ raw_width: Record<string, unknown> | null;
239
+ raw_variant_rank: Record<string, unknown> | null;
240
+ created_at: Date;
241
+ updated_at: Date;
242
+ deleted_at: Date | null;
243
+ product_id: string | null;
244
+ }[];
126
245
  created_at: Date;
127
246
  updated_at: Date;
128
247
  deleted_at: Date | null;
@@ -133,12 +252,12 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
133
252
  title: string;
134
253
  handle: string;
135
254
  metadata: Record<string, unknown> | null;
136
- products: any[];
255
+ products: /*elided*/ any[];
137
256
  created_at: Date;
138
257
  updated_at: Date;
139
258
  deleted_at: Date | null;
140
259
  };
141
- categories: any[];
260
+ categories: /*elided*/ any[];
142
261
  created_at: Date;
143
262
  updated_at: Date;
144
263
  deleted_at: Date | null;
@@ -159,8 +278,8 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
159
278
  is_internal: boolean;
160
279
  rank: number;
161
280
  metadata: Record<string, unknown> | null;
162
- parent_category: any;
163
- category_children: any[];
281
+ parent_category: /*elided*/ any;
282
+ category_children: /*elided*/ any[];
164
283
  products: {
165
284
  id: string;
166
285
  title: string;
@@ -200,7 +319,20 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
200
319
  width: number | null;
201
320
  metadata: Record<string, unknown> | null;
202
321
  variant_rank: number | null;
203
- product: any;
322
+ thumbnail: string | null;
323
+ product: /*elided*/ any;
324
+ images: {
325
+ id: string;
326
+ url: string;
327
+ metadata: Record<string, unknown> | null;
328
+ rank: number;
329
+ product: /*elided*/ any;
330
+ variants: /*elided*/ any[];
331
+ created_at: Date;
332
+ updated_at: Date;
333
+ deleted_at: Date | null;
334
+ product_id: string;
335
+ }[];
204
336
  options: {
205
337
  id: string;
206
338
  value: string;
@@ -209,14 +341,14 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
209
341
  id: string;
210
342
  title: string;
211
343
  metadata: Record<string, unknown> | null;
212
- product: any;
213
- values: any[];
344
+ product: /*elided*/ any;
345
+ values: /*elided*/ any[];
214
346
  created_at: Date;
215
347
  updated_at: Date;
216
348
  deleted_at: Date | null;
217
349
  product_id: string;
218
350
  };
219
- variants: any[];
351
+ variants: /*elided*/ any[];
220
352
  created_at: Date;
221
353
  updated_at: Date;
222
354
  deleted_at: Date | null;
@@ -236,7 +368,7 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
236
368
  id: string;
237
369
  value: string;
238
370
  metadata: Record<string, unknown> | null;
239
- products: any[];
371
+ products: /*elided*/ any[];
240
372
  created_at: Date;
241
373
  updated_at: Date;
242
374
  deleted_at: Date | null;
@@ -245,7 +377,7 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
245
377
  id: string;
246
378
  value: string;
247
379
  metadata: Record<string, unknown> | null;
248
- products: any[];
380
+ products: /*elided*/ any[];
249
381
  created_at: Date;
250
382
  updated_at: Date;
251
383
  deleted_at: Date | null;
@@ -254,8 +386,61 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
254
386
  id: string;
255
387
  title: string;
256
388
  metadata: Record<string, unknown> | null;
257
- product: any;
258
- values: any[];
389
+ product: /*elided*/ any;
390
+ values: {
391
+ id: string;
392
+ value: string;
393
+ metadata: Record<string, unknown> | null;
394
+ option: /*elided*/ any;
395
+ variants: {
396
+ id: string;
397
+ title: string;
398
+ sku: string | null;
399
+ barcode: string | null;
400
+ ean: string | null;
401
+ upc: string | null;
402
+ allow_backorder: boolean;
403
+ manage_inventory: boolean;
404
+ hs_code: string | null;
405
+ origin_country: string | null;
406
+ mid_code: string | null;
407
+ material: string | null;
408
+ weight: number | null;
409
+ length: number | null;
410
+ height: number | null;
411
+ width: number | null;
412
+ metadata: Record<string, unknown> | null;
413
+ variant_rank: number | null;
414
+ thumbnail: string | null;
415
+ product: /*elided*/ any;
416
+ images: {
417
+ id: string;
418
+ url: string;
419
+ metadata: Record<string, unknown> | null;
420
+ rank: number;
421
+ product: /*elided*/ any;
422
+ variants: /*elided*/ any[];
423
+ created_at: Date;
424
+ updated_at: Date;
425
+ deleted_at: Date | null;
426
+ product_id: string;
427
+ }[];
428
+ options: /*elided*/ any[];
429
+ raw_weight: Record<string, unknown> | null;
430
+ raw_length: Record<string, unknown> | null;
431
+ raw_height: Record<string, unknown> | null;
432
+ raw_width: Record<string, unknown> | null;
433
+ raw_variant_rank: Record<string, unknown> | null;
434
+ created_at: Date;
435
+ updated_at: Date;
436
+ deleted_at: Date | null;
437
+ product_id: string | null;
438
+ }[];
439
+ created_at: Date;
440
+ updated_at: Date;
441
+ deleted_at: Date | null;
442
+ option_id: string | null;
443
+ }[];
259
444
  created_at: Date;
260
445
  updated_at: Date;
261
446
  deleted_at: Date | null;
@@ -266,7 +451,60 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
266
451
  url: string;
267
452
  metadata: Record<string, unknown> | null;
268
453
  rank: number;
269
- product: any;
454
+ product: /*elided*/ any;
455
+ variants: {
456
+ id: string;
457
+ title: string;
458
+ sku: string | null;
459
+ barcode: string | null;
460
+ ean: string | null;
461
+ upc: string | null;
462
+ allow_backorder: boolean;
463
+ manage_inventory: boolean;
464
+ hs_code: string | null;
465
+ origin_country: string | null;
466
+ mid_code: string | null;
467
+ material: string | null;
468
+ weight: number | null;
469
+ length: number | null;
470
+ height: number | null;
471
+ width: number | null;
472
+ metadata: Record<string, unknown> | null;
473
+ variant_rank: number | null;
474
+ thumbnail: string | null;
475
+ product: /*elided*/ any;
476
+ images: /*elided*/ any[];
477
+ options: {
478
+ id: string;
479
+ value: string;
480
+ metadata: Record<string, unknown> | null;
481
+ option: {
482
+ id: string;
483
+ title: string;
484
+ metadata: Record<string, unknown> | null;
485
+ product: /*elided*/ any;
486
+ values: /*elided*/ any[];
487
+ created_at: Date;
488
+ updated_at: Date;
489
+ deleted_at: Date | null;
490
+ product_id: string;
491
+ };
492
+ variants: /*elided*/ any[];
493
+ created_at: Date;
494
+ updated_at: Date;
495
+ deleted_at: Date | null;
496
+ option_id: string | null;
497
+ }[];
498
+ raw_weight: Record<string, unknown> | null;
499
+ raw_length: Record<string, unknown> | null;
500
+ raw_height: Record<string, unknown> | null;
501
+ raw_width: Record<string, unknown> | null;
502
+ raw_variant_rank: Record<string, unknown> | null;
503
+ created_at: Date;
504
+ updated_at: Date;
505
+ deleted_at: Date | null;
506
+ product_id: string | null;
507
+ }[];
270
508
  created_at: Date;
271
509
  updated_at: Date;
272
510
  deleted_at: Date | null;
@@ -277,12 +515,12 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
277
515
  title: string;
278
516
  handle: string;
279
517
  metadata: Record<string, unknown> | null;
280
- products: any[];
518
+ products: /*elided*/ any[];
281
519
  created_at: Date;
282
520
  updated_at: Date;
283
521
  deleted_at: Date | null;
284
522
  };
285
- categories: any[];
523
+ categories: /*elided*/ any[];
286
524
  created_at: Date;
287
525
  updated_at: Date;
288
526
  deleted_at: Date | null;
@@ -304,8 +542,8 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
304
542
  is_internal: boolean;
305
543
  rank: number;
306
544
  metadata: Record<string, unknown> | null;
307
- parent_category: any;
308
- category_children: any[];
545
+ parent_category: /*elided*/ any;
546
+ category_children: /*elided*/ any[];
309
547
  products: {
310
548
  id: string;
311
549
  title: string;
@@ -345,7 +583,20 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
345
583
  width: number | null;
346
584
  metadata: Record<string, unknown> | null;
347
585
  variant_rank: number | null;
348
- product: any;
586
+ thumbnail: string | null;
587
+ product: /*elided*/ any;
588
+ images: {
589
+ id: string;
590
+ url: string;
591
+ metadata: Record<string, unknown> | null;
592
+ rank: number;
593
+ product: /*elided*/ any;
594
+ variants: /*elided*/ any[];
595
+ created_at: Date;
596
+ updated_at: Date;
597
+ deleted_at: Date | null;
598
+ product_id: string;
599
+ }[];
349
600
  options: {
350
601
  id: string;
351
602
  value: string;
@@ -354,14 +605,14 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
354
605
  id: string;
355
606
  title: string;
356
607
  metadata: Record<string, unknown> | null;
357
- product: any;
358
- values: any[];
608
+ product: /*elided*/ any;
609
+ values: /*elided*/ any[];
359
610
  created_at: Date;
360
611
  updated_at: Date;
361
612
  deleted_at: Date | null;
362
613
  product_id: string;
363
614
  };
364
- variants: any[];
615
+ variants: /*elided*/ any[];
365
616
  created_at: Date;
366
617
  updated_at: Date;
367
618
  deleted_at: Date | null;
@@ -381,7 +632,7 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
381
632
  id: string;
382
633
  value: string;
383
634
  metadata: Record<string, unknown> | null;
384
- products: any[];
635
+ products: /*elided*/ any[];
385
636
  created_at: Date;
386
637
  updated_at: Date;
387
638
  deleted_at: Date | null;
@@ -390,7 +641,7 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
390
641
  id: string;
391
642
  value: string;
392
643
  metadata: Record<string, unknown> | null;
393
- products: any[];
644
+ products: /*elided*/ any[];
394
645
  created_at: Date;
395
646
  updated_at: Date;
396
647
  deleted_at: Date | null;
@@ -399,8 +650,61 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
399
650
  id: string;
400
651
  title: string;
401
652
  metadata: Record<string, unknown> | null;
402
- product: any;
403
- values: any[];
653
+ product: /*elided*/ any;
654
+ values: {
655
+ id: string;
656
+ value: string;
657
+ metadata: Record<string, unknown> | null;
658
+ option: /*elided*/ any;
659
+ variants: {
660
+ id: string;
661
+ title: string;
662
+ sku: string | null;
663
+ barcode: string | null;
664
+ ean: string | null;
665
+ upc: string | null;
666
+ allow_backorder: boolean;
667
+ manage_inventory: boolean;
668
+ hs_code: string | null;
669
+ origin_country: string | null;
670
+ mid_code: string | null;
671
+ material: string | null;
672
+ weight: number | null;
673
+ length: number | null;
674
+ height: number | null;
675
+ width: number | null;
676
+ metadata: Record<string, unknown> | null;
677
+ variant_rank: number | null;
678
+ thumbnail: string | null;
679
+ product: /*elided*/ any;
680
+ images: {
681
+ id: string;
682
+ url: string;
683
+ metadata: Record<string, unknown> | null;
684
+ rank: number;
685
+ product: /*elided*/ any;
686
+ variants: /*elided*/ any[];
687
+ created_at: Date;
688
+ updated_at: Date;
689
+ deleted_at: Date | null;
690
+ product_id: string;
691
+ }[];
692
+ options: /*elided*/ any[];
693
+ raw_weight: Record<string, unknown> | null;
694
+ raw_length: Record<string, unknown> | null;
695
+ raw_height: Record<string, unknown> | null;
696
+ raw_width: Record<string, unknown> | null;
697
+ raw_variant_rank: Record<string, unknown> | null;
698
+ created_at: Date;
699
+ updated_at: Date;
700
+ deleted_at: Date | null;
701
+ product_id: string | null;
702
+ }[];
703
+ created_at: Date;
704
+ updated_at: Date;
705
+ deleted_at: Date | null;
706
+ option_id: string | null;
707
+ }[];
404
708
  created_at: Date;
405
709
  updated_at: Date;
406
710
  deleted_at: Date | null;
@@ -411,7 +715,60 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
411
715
  url: string;
412
716
  metadata: Record<string, unknown> | null;
413
717
  rank: number;
414
- product: any;
718
+ product: /*elided*/ any;
719
+ variants: {
720
+ id: string;
721
+ title: string;
722
+ sku: string | null;
723
+ barcode: string | null;
724
+ ean: string | null;
725
+ upc: string | null;
726
+ allow_backorder: boolean;
727
+ manage_inventory: boolean;
728
+ hs_code: string | null;
729
+ origin_country: string | null;
730
+ mid_code: string | null;
731
+ material: string | null;
732
+ weight: number | null;
733
+ length: number | null;
734
+ height: number | null;
735
+ width: number | null;
736
+ metadata: Record<string, unknown> | null;
737
+ variant_rank: number | null;
738
+ thumbnail: string | null;
739
+ product: /*elided*/ any;
740
+ images: /*elided*/ any[];
741
+ options: {
742
+ id: string;
743
+ value: string;
744
+ metadata: Record<string, unknown> | null;
745
+ option: {
746
+ id: string;
747
+ title: string;
748
+ metadata: Record<string, unknown> | null;
749
+ product: /*elided*/ any;
750
+ values: /*elided*/ any[];
751
+ created_at: Date;
752
+ updated_at: Date;
753
+ deleted_at: Date | null;
754
+ product_id: string;
755
+ };
756
+ variants: /*elided*/ any[];
757
+ created_at: Date;
758
+ updated_at: Date;
759
+ deleted_at: Date | null;
760
+ option_id: string | null;
761
+ }[];
762
+ raw_weight: Record<string, unknown> | null;
763
+ raw_length: Record<string, unknown> | null;
764
+ raw_height: Record<string, unknown> | null;
765
+ raw_width: Record<string, unknown> | null;
766
+ raw_variant_rank: Record<string, unknown> | null;
767
+ created_at: Date;
768
+ updated_at: Date;
769
+ deleted_at: Date | null;
770
+ product_id: string | null;
771
+ }[];
415
772
  created_at: Date;
416
773
  updated_at: Date;
417
774
  deleted_at: Date | null;
@@ -422,12 +779,12 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
422
779
  title: string;
423
780
  handle: string;
424
781
  metadata: Record<string, unknown> | null;
425
- products: any[];
782
+ products: /*elided*/ any[];
426
783
  created_at: Date;
427
784
  updated_at: Date;
428
785
  deleted_at: Date | null;
429
786
  };
430
- categories: any[];
787
+ categories: /*elided*/ any[];
431
788
  created_at: Date;
432
789
  updated_at: Date;
433
790
  deleted_at: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/repositories/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,eAAe,EACf,+BAA+B,EAC/B,YAAY,EACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,QAAQ,EAA0B,MAAM,2BAA2B,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAG5C,qBAAa,yBAA0B,SAAQ,QAAQ,CAAC,0BAA0B,CAChF,OAAO,eAAe,CACvB;IACC,gBAAgB,CACd,WAAW,GAAE,GAAG,CAAC,WAAW,CAAC,OAAO,eAAe,CAAiB,EACpE,aAAa,GAAE,+BAA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