@medusajs/types 1.12.0-snapshot-20241016151300 → 2.0.0-preview-20241022100028

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/dist/api-key/common/api-key.d.ts +8 -0
  2. package/dist/api-key/common/api-key.d.ts.map +1 -1
  3. package/dist/common/index.d.ts +3 -3
  4. package/dist/common/index.d.ts.map +1 -1
  5. package/dist/common/index.js +3 -3
  6. package/dist/common/index.js.map +1 -1
  7. package/dist/http/api-key/admin/responses.d.ts +2 -0
  8. package/dist/http/api-key/admin/responses.d.ts.map +1 -1
  9. package/dist/http/campaign/admin/responses.d.ts +3 -0
  10. package/dist/http/campaign/admin/responses.d.ts.map +1 -1
  11. package/dist/http/cart/store/entities.d.ts +39 -0
  12. package/dist/http/cart/store/entities.d.ts.map +1 -1
  13. package/dist/http/cart/store/payloads.d.ts +74 -0
  14. package/dist/http/cart/store/payloads.d.ts.map +1 -1
  15. package/dist/http/cart/store/responses.d.ts +28 -0
  16. package/dist/http/cart/store/responses.d.ts.map +1 -1
  17. package/dist/http/collection/common.d.ts +44 -2
  18. package/dist/http/collection/common.d.ts.map +1 -1
  19. package/dist/http/collection/store/entities.d.ts +3 -0
  20. package/dist/http/collection/store/entities.d.ts.map +1 -1
  21. package/dist/http/collection/store/queries.d.ts +0 -2
  22. package/dist/http/collection/store/queries.d.ts.map +1 -1
  23. package/dist/http/collection/store/responses.d.ts +6 -0
  24. package/dist/http/collection/store/responses.d.ts.map +1 -1
  25. package/dist/http/common/request.d.ts +17 -0
  26. package/dist/http/common/request.d.ts.map +1 -1
  27. package/dist/http/common/response.d.ts +9 -0
  28. package/dist/http/common/response.d.ts.map +1 -1
  29. package/dist/http/customer/common.d.ts +240 -0
  30. package/dist/http/customer/common.d.ts.map +1 -1
  31. package/dist/http/customer/store/entities.d.ts +3 -0
  32. package/dist/http/customer/store/entities.d.ts.map +1 -1
  33. package/dist/http/customer/store/responses.d.ts +9 -0
  34. package/dist/http/customer/store/responses.d.ts.map +1 -1
  35. package/dist/http/exchange/admin/payloads.d.ts +0 -4
  36. package/dist/http/exchange/admin/payloads.d.ts.map +1 -1
  37. package/dist/http/fulfillment/store/index.d.ts +54 -1
  38. package/dist/http/fulfillment/store/index.d.ts.map +1 -1
  39. package/dist/http/order/admin/entities.d.ts +24 -0
  40. package/dist/http/order/admin/entities.d.ts.map +1 -1
  41. package/dist/http/order/admin/queries.d.ts +12 -0
  42. package/dist/http/order/admin/queries.d.ts.map +1 -1
  43. package/dist/http/order/admin/responses.d.ts +4 -1
  44. package/dist/http/order/admin/responses.d.ts.map +1 -1
  45. package/dist/http/order/common.d.ts +630 -0
  46. package/dist/http/order/common.d.ts.map +1 -1
  47. package/dist/http/order/store/entities.d.ts +39 -0
  48. package/dist/http/order/store/entities.d.ts.map +1 -1
  49. package/dist/http/order/store/queries.d.ts +6 -0
  50. package/dist/http/order/store/queries.d.ts.map +1 -1
  51. package/dist/http/order/store/responses.d.ts +6 -0
  52. package/dist/http/order/store/responses.d.ts.map +1 -1
  53. package/dist/http/payment/common.d.ts +3 -0
  54. package/dist/http/payment/common.d.ts.map +1 -1
  55. package/dist/http/payment/store/entities.d.ts +9 -0
  56. package/dist/http/payment/store/entities.d.ts.map +1 -1
  57. package/dist/http/payment/store/payloads.d.ts +18 -0
  58. package/dist/http/payment/store/payloads.d.ts.map +1 -1
  59. package/dist/http/payment/store/queries.d.ts +3 -0
  60. package/dist/http/payment/store/queries.d.ts.map +1 -1
  61. package/dist/http/payment/store/responses.d.ts +6 -0
  62. package/dist/http/payment/store/responses.d.ts.map +1 -1
  63. package/dist/http/product/admin/payloads.d.ts +3 -1
  64. package/dist/http/product/admin/payloads.d.ts.map +1 -1
  65. package/dist/http/product/common.d.ts +268 -0
  66. package/dist/http/product/common.d.ts.map +1 -1
  67. package/dist/http/product/store/entitites.d.ts +36 -0
  68. package/dist/http/product/store/entitites.d.ts.map +1 -1
  69. package/dist/http/product/store/queries.d.ts +19 -1
  70. package/dist/http/product/store/queries.d.ts.map +1 -1
  71. package/dist/http/product/store/responses.d.ts +6 -0
  72. package/dist/http/product/store/responses.d.ts.map +1 -1
  73. package/dist/http/product-category/common.d.ts +94 -0
  74. package/dist/http/product-category/common.d.ts.map +1 -1
  75. package/dist/http/product-category/store/entities.d.ts +9 -0
  76. package/dist/http/product-category/store/entities.d.ts.map +1 -1
  77. package/dist/http/product-category/store/queries.d.ts +1 -1
  78. package/dist/http/product-category/store/queries.d.ts.map +1 -1
  79. package/dist/http/product-category/store/responses.d.ts +6 -0
  80. package/dist/http/product-category/store/responses.d.ts.map +1 -1
  81. package/dist/http/promotion/common.d.ts +3 -0
  82. package/dist/http/promotion/common.d.ts.map +1 -1
  83. package/dist/http/region/common.d.ts +69 -0
  84. package/dist/http/region/common.d.ts.map +1 -1
  85. package/dist/http/region/store/responses.d.ts +6 -0
  86. package/dist/http/region/store/responses.d.ts.map +1 -1
  87. package/dist/http/shipping-option/store/queries.d.ts +8 -0
  88. package/dist/http/shipping-option/store/queries.d.ts.map +1 -1
  89. package/dist/http/shipping-option/store/responses.d.ts +2 -2
  90. package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
  91. package/dist/index-data/common.d.ts +1 -1
  92. package/dist/inventory/service.d.ts +41 -9
  93. package/dist/inventory/service.d.ts.map +1 -1
  94. package/dist/modules-sdk/index.d.ts +0 -1
  95. package/dist/modules-sdk/index.d.ts.map +1 -1
  96. package/dist/modules-sdk/module-provider.d.ts +1 -1
  97. package/dist/modules-sdk/module-provider.d.ts.map +1 -1
  98. package/dist/notification/common.d.ts +19 -0
  99. package/dist/notification/common.d.ts.map +1 -1
  100. package/dist/notification/mutations.d.ts +5 -0
  101. package/dist/notification/mutations.d.ts.map +1 -1
  102. package/dist/notification/provider.d.ts +5 -1
  103. package/dist/notification/provider.d.ts.map +1 -1
  104. package/dist/order/common.d.ts +0 -49
  105. package/dist/order/common.d.ts.map +1 -1
  106. package/dist/product/common.d.ts +8 -0
  107. package/dist/product/common.d.ts.map +1 -1
  108. package/dist/tax/mutations.d.ts +17 -0
  109. package/dist/tax/mutations.d.ts.map +1 -1
  110. package/dist/tax/service.d.ts +34 -1
  111. package/dist/tax/service.d.ts.map +1 -1
  112. package/package.json +1 -1
@@ -7,75 +7,274 @@ import { BaseProductTag } from "../product-tag/common";
7
7
  import { BaseProductType } from "../product-type/common";
8
8
  export type ProductStatus = "draft" | "proposed" | "published" | "rejected";
9
9
  export interface BaseProduct {
10
+ /**
11
+ * The product's ID.
12
+ */
10
13
  id: string;
14
+ /**
15
+ * The product's title.
16
+ */
11
17
  title: string;
18
+ /**
19
+ * The product's handle.
20
+ */
12
21
  handle: string;
22
+ /**
23
+ * The product's subtitle.
24
+ */
13
25
  subtitle: string | null;
26
+ /**
27
+ * The product's description.
28
+ */
14
29
  description: string | null;
30
+ /**
31
+ * Whether the product is a gift card.
32
+ */
15
33
  is_giftcard: boolean;
34
+ /**
35
+ * The product's status.
36
+ */
16
37
  status: ProductStatus;
38
+ /**
39
+ * The product's thumbnail.
40
+ */
17
41
  thumbnail: string | null;
42
+ /**
43
+ * The product's width.
44
+ */
18
45
  width: number | null;
46
+ /**
47
+ * The product's weight.
48
+ */
19
49
  weight: number | null;
50
+ /**
51
+ * The product's length.
52
+ */
20
53
  length: number | null;
54
+ /**
55
+ * The product's height.
56
+ */
21
57
  height: number | null;
58
+ /**
59
+ * The product's origin country.
60
+ */
22
61
  origin_country: string | null;
62
+ /**
63
+ * The product's HS code.
64
+ */
23
65
  hs_code: string | null;
66
+ /**
67
+ * The product's MID code.
68
+ */
24
69
  mid_code: string | null;
70
+ /**
71
+ * The product's material.
72
+ */
25
73
  material: string | null;
74
+ /**
75
+ * The product's collection.
76
+ */
26
77
  collection?: BaseCollection | null;
78
+ /**
79
+ * The ID of the associated product collection.
80
+ */
27
81
  collection_id: string | null;
82
+ /**
83
+ * The product's categories.
84
+ */
28
85
  categories?: BaseProductCategory[] | null;
86
+ /**
87
+ * The product's type.
88
+ */
29
89
  type?: BaseProductType | null;
90
+ /**
91
+ * The ID of the associated product type.
92
+ */
30
93
  type_id: string | null;
94
+ /**
95
+ * The product's tags.
96
+ */
31
97
  tags?: BaseProductTag[] | null;
98
+ /**
99
+ * The product's variants.
100
+ */
32
101
  variants: BaseProductVariant[] | null;
102
+ /**
103
+ * The product's options.
104
+ */
33
105
  options: BaseProductOption[] | null;
106
+ /**
107
+ * The product's images.
108
+ */
34
109
  images: BaseProductImage[] | null;
110
+ /**
111
+ * Whether the product is discountable.
112
+ */
35
113
  discountable: boolean;
114
+ /**
115
+ * The ID of the product in external systems.
116
+ */
36
117
  external_id: string | null;
118
+ /**
119
+ * The date the product was created.
120
+ */
37
121
  created_at: string | null;
122
+ /**
123
+ * The date the product was update.
124
+ */
38
125
  updated_at: string | null;
126
+ /**
127
+ * The date the product was deleted.
128
+ */
39
129
  deleted_at: string | null;
130
+ /**
131
+ * Key-value pairs of custom data.
132
+ */
40
133
  metadata?: Record<string, unknown> | null;
41
134
  }
42
135
  export interface BaseProductVariant {
136
+ /**
137
+ * The variant's ID.
138
+ */
43
139
  id: string;
140
+ /**
141
+ * The variant's title.
142
+ */
44
143
  title: string | null;
144
+ /**
145
+ * The variant's SKU.
146
+ */
45
147
  sku: string | null;
148
+ /**
149
+ * The variant's barcode.
150
+ */
46
151
  barcode: string | null;
152
+ /**
153
+ * The variant's EAN.
154
+ */
47
155
  ean: string | null;
156
+ /**
157
+ * The variant's UPC.
158
+ */
48
159
  upc: string | null;
160
+ /**
161
+ * Whether the variant can be ordered even if it's out of stock.
162
+ */
49
163
  allow_backorder: boolean | null;
164
+ /**
165
+ * Whether Medusa manages the variant's inventory. If disabled, the variant
166
+ * is always considered in stock.
167
+ */
50
168
  manage_inventory: boolean | null;
169
+ /**
170
+ * The variant's inventory quantity if `manage_inventory` is enabled.
171
+ */
51
172
  inventory_quantity?: number;
173
+ /**
174
+ * The variant's HS code.
175
+ */
52
176
  hs_code: string | null;
177
+ /**
178
+ * The variant's origin country.
179
+ */
53
180
  origin_country: string | null;
181
+ /**
182
+ * The variant's MID code.
183
+ */
54
184
  mid_code: string | null;
185
+ /**
186
+ * The variant's material.
187
+ */
55
188
  material: string | null;
189
+ /**
190
+ * The variant's weight.
191
+ */
56
192
  weight: number | null;
193
+ /**
194
+ * The variant's length.
195
+ */
57
196
  length: number | null;
197
+ /**
198
+ * The variant's height.
199
+ */
58
200
  height: number | null;
201
+ /**
202
+ * The variant's width.
203
+ */
59
204
  width: number | null;
205
+ /**
206
+ * The variant's ranking among its siblings.
207
+ */
60
208
  variant_rank?: number | null;
209
+ /**
210
+ * The variant's values for the product's options.
211
+ */
61
212
  options: BaseProductOptionValue[] | null;
213
+ /**
214
+ * The variant's product.
215
+ */
62
216
  product?: BaseProduct | null;
217
+ /**
218
+ * The ID of the product that the variant belongs to.
219
+ */
63
220
  product_id?: string;
221
+ /**
222
+ * The variant's calculated price for the provided context.
223
+ */
64
224
  calculated_price?: BaseCalculatedPriceSet;
225
+ /**
226
+ * The date the variant was created.
227
+ */
65
228
  created_at: string;
229
+ /**
230
+ * The date the variant was updated.
231
+ */
66
232
  updated_at: string;
233
+ /**
234
+ * The date the variant was deleted.
235
+ */
67
236
  deleted_at: string | null;
237
+ /**
238
+ * Key-value pairs of custom data.
239
+ */
68
240
  metadata?: Record<string, unknown> | null;
69
241
  }
70
242
  export interface BaseProductOption {
243
+ /**
244
+ * The option's ID.
245
+ */
71
246
  id: string;
247
+ /**
248
+ * The option's title.
249
+ */
72
250
  title: string;
251
+ /**
252
+ * The product that the option belongs to.
253
+ */
73
254
  product?: BaseProduct | null;
255
+ /**
256
+ * The ID of the product that the option belongs to.
257
+ */
74
258
  product_id?: string | null;
259
+ /**
260
+ * The option's values.
261
+ */
75
262
  values?: BaseProductOptionValue[];
263
+ /**
264
+ * Key-value pairs of custom data.
265
+ */
76
266
  metadata?: Record<string, unknown> | null;
267
+ /**
268
+ * The date the option was created.
269
+ */
77
270
  created_at?: string;
271
+ /**
272
+ * The date the option was updated.
273
+ */
78
274
  updated_at?: string;
275
+ /**
276
+ * The date the option was deleted.
277
+ */
79
278
  deleted_at?: string | null;
80
279
  }
81
280
  export interface BaseProductImage {
@@ -87,30 +286,99 @@ export interface BaseProductImage {
87
286
  metadata?: Record<string, unknown> | null;
88
287
  }
89
288
  export interface BaseProductOptionValue {
289
+ /**
290
+ * The option value's ID.
291
+ */
90
292
  id: string;
293
+ /**
294
+ * The option's value.
295
+ */
91
296
  value: string;
297
+ /**
298
+ * The option's details.
299
+ */
92
300
  option?: BaseProductOption | null;
301
+ /**
302
+ * The ID of the option.
303
+ */
93
304
  option_id?: string | null;
305
+ /**
306
+ * Key-value pairs of custom data.
307
+ */
94
308
  metadata?: Record<string, unknown> | null;
309
+ /**
310
+ * The date the option value was created.
311
+ */
95
312
  created_at?: string;
313
+ /**
314
+ * The date the option value was updated.
315
+ */
96
316
  updated_at?: string;
317
+ /**
318
+ * The date the option value was deleted.
319
+ */
97
320
  deleted_at?: string | null;
98
321
  }
99
322
  export interface BaseProductListParams extends FindParams, BaseFilterable<BaseProductListParams> {
323
+ /**
324
+ * A query or keywords to search the searchable fields by.
325
+ */
100
326
  q?: string;
327
+ /**
328
+ * Filter the product by status(es).
329
+ */
101
330
  status?: ProductStatus | ProductStatus[];
331
+ /**
332
+ * Filter the product by the sales channel(s) it belongs to.
333
+ */
102
334
  sales_channel_id?: string | string[];
335
+ /**
336
+ * Filter by the product's title(s).
337
+ */
103
338
  title?: string | string[];
339
+ /**
340
+ * Filter by the product's handle(s).
341
+ */
104
342
  handle?: string | string[];
343
+ /**
344
+ * Filter by the product's id(s).
345
+ */
105
346
  id?: string | string[];
347
+ /**
348
+ * Filter by whether the product is a gift card.
349
+ */
106
350
  is_giftcard?: boolean;
351
+ /**
352
+ * Filter by the product's tag(s).
353
+ */
107
354
  tags?: string | string[];
355
+ /**
356
+ * Filter by the product's type(s).
357
+ */
108
358
  type_id?: string | string[];
359
+ /**
360
+ * Filter by the product's category(s).
361
+ */
109
362
  category_id?: string | string[];
363
+ /**
364
+ * Filter by the product's category(s).
365
+ */
110
366
  categories?: string | string[];
367
+ /**
368
+ * Filter by the product's collection(s).
369
+ */
111
370
  collection_id?: string | string[];
371
+ /**
372
+ * Apply filers on the product's creation date.
373
+ */
112
374
  created_at?: OperatorMap<string>;
375
+ /**
376
+ * Apply filers on the product's update date.
377
+ */
113
378
  updated_at?: OperatorMap<string>;
379
+ /**
380
+ * Apply filers on the product's deletion date.
381
+ */
114
382
  deleted_at?: OperatorMap<string>;
115
383
  }
116
384
  export interface BaseProductOptionParams extends FindParams, BaseFilterable<BaseProductOptionParams> {
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/product/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAA;AAC3E,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,MAAM,E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AAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC/B;AAED,MAAM,WAAW,wBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,wBAAwB,CAAC;IAC1C,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -4,25 +4,61 @@ import { StoreProductTag } from "../../product-tag";
4
4
  import { StoreProductType } from "../../product-type";
5
5
  import { BaseProduct, BaseProductImage, BaseProductOption, BaseProductOptionValue, BaseProductVariant, ProductStatus } from "../common";
6
6
  export interface StoreProduct extends Omit<BaseProduct, "categories" | "sales_channels" | "variants" | "options" | "collection"> {
7
+ /**
8
+ * The product's collection.
9
+ */
7
10
  collection?: StoreCollection | null;
11
+ /**
12
+ * The product's categories.
13
+ */
8
14
  categories?: StoreProductCategory[] | null;
15
+ /**
16
+ * The product's variants.
17
+ */
9
18
  variants: StoreProductVariant[] | null;
19
+ /**
20
+ * The product's types.
21
+ */
10
22
  type?: StoreProductType | null;
23
+ /**
24
+ * The product's tags.
25
+ */
11
26
  tags?: StoreProductTag[] | null;
27
+ /**
28
+ * The product's options.
29
+ */
12
30
  options: StoreProductOption[] | null;
31
+ /**
32
+ * The product's images.
33
+ */
13
34
  images: StoreProductImage[] | null;
14
35
  }
15
36
  export interface StoreProductVariant extends Omit<BaseProductVariant, "product" | "options"> {
37
+ /**
38
+ * The variant's values for the product's options.
39
+ */
16
40
  options: StoreProductOptionValue[] | null;
41
+ /**
42
+ * The variant's product.
43
+ */
17
44
  product?: StoreProduct | null;
18
45
  }
19
46
  export interface StoreProductOption extends Omit<BaseProductOption, "product" | "values"> {
47
+ /**
48
+ * The product the option belongs to.
49
+ */
20
50
  product?: StoreProduct | null;
51
+ /**
52
+ * The option's values.
53
+ */
21
54
  values?: StoreProductOptionValue[];
22
55
  }
23
56
  export interface StoreProductImage extends BaseProductImage {
24
57
  }
25
58
  export interface StoreProductOptionValue extends Omit<BaseProductOptionValue, "option"> {
59
+ /**
60
+ * The product's option.
61
+ */
26
62
  option?: StoreProductOption | null;
27
63
  }
28
64
  export type StoreProductStatus = ProductStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"entitites.d.ts","sourceRoot":"","sources":["../../../../src/http/product/store/entitites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACd,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,YACf,SAAQ,IAAI,CACV,WAAW,EACX,YAAY,GAAG,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,CACxE;IACD,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IACnC,UAAU,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IAC1C,QAAQ,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAA;IACtC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC9B,IAAI,CAAC,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAC/B,OAAO,EAAE,kBAAkB,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AG,IAAI,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IAC1C;;OAEG;IACH,QAAQ,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAA;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAC/B;;OAEG;IACH,OAAO,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,MAAM,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAA;CACnC;AACD,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,SAAS,CAAC;IACvD;;OAEG;IACH,OAAO,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAA;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;CAC9B;AACD,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrD;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAA;CACnC;AACD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG;AAC9D,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,QAAQ,CAAC;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACnC;AACD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAA"}
@@ -3,11 +3,29 @@ export interface StoreProductOptionParams extends BaseProductOptionParams {
3
3
  }
4
4
  export interface StoreProductVariantParams extends BaseProductVariantParams {
5
5
  }
6
- export interface StoreProductParams extends Omit<BaseProductListParams, "tags" | "status" | "categories"> {
6
+ export interface StoreProductParams extends Omit<BaseProductListParams, "tags" | "status" | "categories" | "deleted_at"> {
7
+ /**
8
+ * Filter by the product's tag(s).
9
+ */
7
10
  tag_id?: string | string[];
11
+ /**
12
+ * The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.
13
+ *
14
+ * @privateRemarks
15
+ * The region ID and currency_code are not params, but are used for the pricing context. Maybe move to separate type definition.
16
+ */
8
17
  region_id?: string;
18
+ /**
19
+ * The currency code to retrieve prices in.
20
+ */
9
21
  currency_code?: string;
22
+ /**
23
+ * Filter by the product's variants.
24
+ */
10
25
  variants?: Pick<StoreProductVariantParams, "options">;
26
+ /**
27
+ * The province the products are being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.
28
+ */
11
29
  province?: string;
12
30
  }
13
31
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/product/store/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;CAAG;AAC5E,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;CAAG;AAC9E,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;IACrE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/product/store/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;CAAG;AAC5E,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;CAAG;AAC9E,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAA;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
@@ -1,9 +1,15 @@
1
1
  import { PaginatedResponse } from "../../common";
2
2
  import { StoreProduct } from "../store";
3
3
  export interface StoreProductResponse {
4
+ /**
5
+ * The product's details.
6
+ */
4
7
  product: StoreProduct;
5
8
  }
6
9
  export type StoreProductListResponse = PaginatedResponse<{
10
+ /**
11
+ * The list of products.
12
+ */
7
13
  products: StoreProduct[];
8
14
  }>;
9
15
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/product/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/product/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD;;OAEG;IACH,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA"}
@@ -2,39 +2,133 @@ import { BaseFilterable, OperatorMap } from "../../dal";
2
2
  import { FindParams, SelectParams } from "../common";
3
3
  import { BaseProduct } from "../product/common";
4
4
  export interface BaseProductCategory {
5
+ /**
6
+ * The category's ID.
7
+ */
5
8
  id: string;
9
+ /**
10
+ * The category's name.
11
+ */
6
12
  name: string;
13
+ /**
14
+ * The category's description.
15
+ */
7
16
  description: string;
17
+ /**
18
+ * The category's handle.
19
+ */
8
20
  handle: string;
21
+ /**
22
+ * Whether the category is active.
23
+ */
9
24
  is_active: boolean;
25
+ /**
26
+ * Whether the category is internal.
27
+ */
10
28
  is_internal: boolean;
29
+ /**
30
+ * The category's ranking among sibling categories.
31
+ */
11
32
  rank: number | null;
33
+ /**
34
+ * The ID of the category's parent.
35
+ */
12
36
  parent_category_id: string | null;
37
+ /**
38
+ * The category's parent.
39
+ */
13
40
  parent_category: BaseProductCategory | null;
41
+ /**
42
+ * The category's children.
43
+ */
14
44
  category_children: BaseProductCategory[];
45
+ /**
46
+ * The category's products.
47
+ */
15
48
  products?: BaseProduct[];
49
+ /**
50
+ * Key-value pairs of custom data.
51
+ */
16
52
  metadata?: Record<string, unknown> | null;
53
+ /**
54
+ * The date the category was created.
55
+ */
17
56
  created_at: string;
57
+ /**
58
+ * The date the category was updated.
59
+ */
18
60
  updated_at: string;
61
+ /**
62
+ * The date the category was deleted.
63
+ */
19
64
  deleted_at: string | null;
20
65
  }
21
66
  export interface BaseProductCategoryListParams extends FindParams, BaseFilterable<BaseProductCategoryListParams> {
67
+ /**
68
+ * A query or keywords to search the category's searchable fields.
69
+ */
22
70
  q?: string;
71
+ /**
72
+ * Filter by the category's ID(s).
73
+ */
23
74
  id?: string | string[];
75
+ /**
76
+ * Filter by the category's name(s).
77
+ */
24
78
  name?: string | string[];
79
+ /**
80
+ * Filter by the category's description(s).
81
+ */
25
82
  description?: string | string[];
83
+ /**
84
+ * Retrieve the child categories of the specified parent ID(s).
85
+ */
26
86
  parent_category_id?: string | string[] | null;
87
+ /**
88
+ * Filter by the category's handle(s).
89
+ */
27
90
  handle?: string | string[];
91
+ /**
92
+ * Filter by whether the category is active.
93
+ */
28
94
  is_active?: boolean;
95
+ /**
96
+ * Filter by whether the category is internal.
97
+ */
29
98
  is_internal?: boolean;
99
+ /**
100
+ * Whether to retrieve the child categories. If enabled, the child categories are
101
+ * retrieved in the `category_children` field.
102
+ */
30
103
  include_descendants_tree?: boolean;
104
+ /**
105
+ * Whether to retrieve the parent category. If enabled, the parent category is
106
+ * retrieved in the `parent_category` field.
107
+ */
31
108
  include_ancestors_tree?: boolean;
109
+ /**
110
+ * Apply filters on the category's creation date.
111
+ */
32
112
  created_at?: OperatorMap<string>;
113
+ /**
114
+ * Apply filters on the category's update date.
115
+ */
33
116
  updated_at?: OperatorMap<string>;
117
+ /**
118
+ * Apply filters on the category's deletion date.
119
+ */
34
120
  deleted_at?: OperatorMap<string>;
35
121
  }
36
122
  export interface BaseProductCategoryParams extends SelectParams {
123
+ /**
124
+ * Whether to retrieve the parent category. If enabled, the parent category is
125
+ * retrieved in the `parent_category` field.
126
+ */
37
127
  include_ancestors_tree?: boolean;
128
+ /**
129
+ * Whether to retrieve the child categories. If enabled, the child categories are
130
+ * retrieved in the `category_children` field.
131
+ */
38
132
  include_descendants_tree?: boolean;
39
133
  }
40
134
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/product-category/common.ts"],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AAW,CAAC,EAAE,OAAO,CAAA;IACrB,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/product-category/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC;;OAEG;IACH,eAAe,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAC3C;;OAEG;IACH,iBAAiB,EAAE,mBAAmB,EAAE,CAAA;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,E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