@mercurjs/b2c-core 1.5.0 → 1.5.1

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 (72) hide show
  1. package/.medusa/server/src/api/admin/inventory-items/[id]/location-levels/[location_id]/route.d.ts +3 -0
  2. package/.medusa/server/src/api/admin/inventory-items/[id]/location-levels/[location_id]/route.js +36 -0
  3. package/.medusa/server/src/api/admin/notifications/route.js +8 -8
  4. package/.medusa/server/src/api/admin/sellers/validators.d.ts +2 -2
  5. package/.medusa/server/src/api/admin/sellers/validators.js +9 -7
  6. package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +3 -4
  7. package/.medusa/server/src/api/store/middlewares.js +11 -9
  8. package/.medusa/server/src/api/store/products/middlewares.d.ts +2 -0
  9. package/.medusa/server/src/api/store/products/middlewares.js +13 -0
  10. package/.medusa/server/src/api/store/products/search/route.d.ts +81 -0
  11. package/.medusa/server/src/api/store/products/search/route.js +170 -0
  12. package/.medusa/server/src/api/store/products/validators.d.ts +36 -0
  13. package/.medusa/server/src/api/store/products/validators.js +17 -0
  14. package/.medusa/server/src/api/store/wishlist/middlewares.d.ts +1 -1
  15. package/.medusa/server/src/api/store/wishlist/middlewares.js +47 -25
  16. package/.medusa/server/src/api/store/wishlist/{[id]/product → product}/[reference_id]/route.d.ts +3 -9
  17. package/.medusa/server/src/api/store/wishlist/product/[reference_id]/route.js +65 -0
  18. package/.medusa/server/src/api/store/wishlist/route.d.ts +789 -28
  19. package/.medusa/server/src/api/store/wishlist/route.js +817 -37
  20. package/.medusa/server/src/api/vendor/campaigns/validators.js +4 -4
  21. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.js +2 -5
  22. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.js +2 -2
  23. package/.medusa/server/src/api/vendor/orders/validators.d.ts +4 -4
  24. package/.medusa/server/src/api/vendor/payout-account/route.js +3 -2
  25. package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.d.ts +2 -2
  26. package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.js +2 -2
  27. package/.medusa/server/src/api/vendor/price-lists/route.d.ts +1 -1
  28. package/.medusa/server/src/api/vendor/price-lists/route.js +27 -8
  29. package/.medusa/server/src/api/vendor/product-collections/middlewares.js +2 -2
  30. package/.medusa/server/src/api/vendor/product-collections/route.d.ts +18 -0
  31. package/.medusa/server/src/api/vendor/product-collections/route.js +19 -1
  32. package/.medusa/server/src/api/vendor/product-collections/validators.d.ts +404 -15
  33. package/.medusa/server/src/api/vendor/product-collections/validators.js +18 -3
  34. package/.medusa/server/src/api/vendor/product-tags/route.d.ts +4 -1
  35. package/.medusa/server/src/api/vendor/product-tags/route.js +8 -8
  36. package/.medusa/server/src/api/vendor/products/route.d.ts +8 -2
  37. package/.medusa/server/src/api/vendor/products/route.js +28 -20
  38. package/.medusa/server/src/api/vendor/products/utils.d.ts +20 -1
  39. package/.medusa/server/src/api/vendor/products/utils.js +81 -5
  40. package/.medusa/server/src/api/vendor/products/validators.d.ts +60 -0
  41. package/.medusa/server/src/api/vendor/products/validators.js +8 -2
  42. package/.medusa/server/src/api/vendor/promotions/route.d.ts +86 -2
  43. package/.medusa/server/src/api/vendor/promotions/route.js +116 -7
  44. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +237 -38
  45. package/.medusa/server/src/api/vendor/promotions/validators.js +23 -5
  46. package/.medusa/server/src/api/vendor/shipping-profiles/route.d.ts +31 -2
  47. package/.medusa/server/src/api/vendor/shipping-profiles/route.js +61 -10
  48. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +92 -3
  49. package/.medusa/server/src/api/vendor/shipping-profiles/validators.js +10 -2
  50. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +10 -10
  51. package/.medusa/server/src/links/wishlist-product.js +3 -3
  52. package/.medusa/server/src/modules/seller/utils.d.ts +1 -1
  53. package/.medusa/server/src/modules/seller/utils.js +37 -10
  54. package/.medusa/server/src/shared/infra/http/utils/products.js +8 -2
  55. package/.medusa/server/src/workflows/attribute/steps/validate-attribute-value.js +7 -3
  56. package/.medusa/server/src/workflows/attribute/utils/products-updated-handler.d.ts +3 -3
  57. package/.medusa/server/src/workflows/attribute/utils/products-updated-handler.js +17 -15
  58. package/.medusa/server/src/workflows/hooks/fetch-shipping-option-pricing-context.d.ts +1 -0
  59. package/.medusa/server/src/workflows/hooks/fetch-shipping-option-pricing-context.js +97 -0
  60. package/.medusa/server/src/workflows/promotions/steps/index.d.ts +2 -0
  61. package/.medusa/server/src/workflows/promotions/steps/index.js +3 -1
  62. package/.medusa/server/src/workflows/promotions/steps/inject-seller-product-rule.d.ts +6 -0
  63. package/.medusa/server/src/workflows/promotions/steps/inject-seller-product-rule.js +40 -0
  64. package/.medusa/server/src/workflows/promotions/steps/verify-seller-product-rule-deletion.d.ts +9 -0
  65. package/.medusa/server/src/workflows/promotions/steps/verify-seller-product-rule-deletion.js +27 -0
  66. package/.medusa/server/src/workflows/promotions/steps/verify-vendor-target-promotion-rules.d.ts +5 -0
  67. package/.medusa/server/src/workflows/promotions/steps/verify-vendor-target-promotion-rules.js +27 -11
  68. package/.medusa/server/src/workflows/promotions/workflows/batch-vendor-promotion-rules.js +5 -1
  69. package/.medusa/server/src/workflows/promotions/workflows/create-vendor-promotion.js +4 -3
  70. package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +5 -0
  71. package/package.json +1 -1
  72. package/.medusa/server/src/api/store/wishlist/[id]/product/[reference_id]/route.js +0 -61
@@ -50,54 +50,815 @@ import { StoreCreateWishlistType } from "./validators";
50
50
  export declare const POST: (req: AuthenticatedMedusaRequest<StoreCreateWishlistType>, res: MedusaResponse) => Promise<void>;
51
51
  /**
52
52
  * @oas [get] /store/wishlist
53
- * operationId: "StoreGetMyWishlist"
53
+ * operationId: StoreGetMyWishlist
54
54
  * summary: "Get wishlist of the current user"
55
- * description: "Retrieves the wishlist created by the authenticated user."
55
+ * description: Retrieve a list of products in the wishlist of the current user. The products can be filtered by fields such as `id`. The products can also be sorted or paginated.
56
56
  * x-authenticated: true
57
+ * externalDocs:
58
+ * url: https://docs.medusajs.com/v2/resources/storefront-development/wishlist
59
+ * description: "Storefront guide: How to retrieve a wishlist of the current user."
57
60
  * parameters:
61
+ * - name: x-publishable-api-key
62
+ * in: header
63
+ * description: Publishable API Key created in the Medusa Admin.
64
+ * required: true
65
+ * schema:
66
+ * type: string
67
+ * externalDocs:
68
+ * url: https://docs.medusajs.com/api/store#publishable-api-key
69
+ * - name: fields
70
+ * in: query
71
+ * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
72
+ * fields. without prefix it will replace the entire default fields.
73
+ * required: false
74
+ * schema:
75
+ * type: string
76
+ * title: fields
77
+ * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
78
+ * fields. without prefix it will replace the entire default fields.
79
+ * externalDocs:
80
+ * url: "#select-fields-and-relations"
58
81
  * - name: offset
59
82
  * in: query
83
+ * description: The number of items to skip when retrieving a list.
84
+ * required: false
60
85
  * schema:
61
86
  * type: number
62
- * required: false
63
- * description: The number of items to skip before starting to collect the result set.
87
+ * title: offset
88
+ * description: The number of items to skip when retrieving a list.
89
+ * externalDocs:
90
+ * url: "#pagination"
64
91
  * - name: limit
65
92
  * in: query
93
+ * description: Limit the number of items returned in the list.
94
+ * required: false
66
95
  * schema:
67
96
  * type: number
97
+ * title: limit
98
+ * description: Limit the number of items returned in the list.
99
+ * externalDocs:
100
+ * url: "#pagination"
101
+ * - name: order
102
+ * in: query
103
+ * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
68
104
  * required: false
69
- * description: The number of items to return.
70
- * - name: fields
105
+ * schema:
106
+ * type: string
107
+ * title: order
108
+ * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
109
+ * - name: $and
110
+ * in: query
111
+ * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
112
+ * required: false
113
+ * schema:
114
+ * type: array
115
+ * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
116
+ * items:
117
+ * type: object
118
+ * title: $and
119
+ * - name: $or
71
120
  * in: query
121
+ * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
122
+ * required: false
123
+ * schema:
124
+ * type: array
125
+ * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
126
+ * items:
127
+ * type: object
128
+ * title: $or
129
+ * - name: q
130
+ * in: query
131
+ * description: Search term to filter the product's searchable properties.
132
+ * required: false
72
133
  * schema:
73
134
  * type: string
135
+ * title: q
136
+ * description: Search term to filter the product's searchable properties.
137
+ * - name: id
138
+ * in: query
74
139
  * required: false
75
- * description: Comma-separated fields to include in the response.
140
+ * schema:
141
+ * oneOf:
142
+ * - type: string
143
+ * title: id
144
+ * description: Filter by a product ID.
145
+ * - type: array
146
+ * description: Filter by product IDs.
147
+ * items:
148
+ * type: string
149
+ * title: id
150
+ * description: A product ID.
151
+ * - name: title
152
+ * in: query
153
+ * description: Filter by product titles.
154
+ * required: false
155
+ * schema:
156
+ * oneOf:
157
+ * - type: string
158
+ * title: title
159
+ * description: Filter by a title.
160
+ * - type: array
161
+ * description: Filter by titles.
162
+ * items:
163
+ * type: string
164
+ * title: title
165
+ * description: A title.
166
+ * - name: handle
167
+ * in: query
168
+ * description: Filter by product handles.
169
+ * required: false
170
+ * schema:
171
+ * oneOf:
172
+ * - type: string
173
+ * title: handle
174
+ * description: Filter by a product handle.
175
+ * - type: array
176
+ * description: Filter by product handles.
177
+ * items:
178
+ * type: string
179
+ * title: handle
180
+ * description: A product handle.
181
+ * - name: is_giftcard
182
+ * in: query
183
+ * description: Whether the product is a gift card.
184
+ * required: false
185
+ * schema:
186
+ * type: boolean
187
+ * title: is_giftcard
188
+ * description: Whether the product is a gift card.
189
+ * - name: collection_id
190
+ * in: query
191
+ * description: Filter by a collection's ID to retrieve the products in it.
192
+ * required: false
193
+ * schema:
194
+ * description: Filter by a collection's ID to retrieve the products in it.
195
+ * externalDocs:
196
+ * url: https://docs.medusajs.com/v2/resources/storefront-development/products/collections/products
197
+ * description: "Storefront guide: Retrieve a collection's products."
198
+ * items:
199
+ * type: string
200
+ * title: collection_id
201
+ * description: A collection's ID.
202
+ * - name: tag_id
203
+ * in: query
204
+ * description: Filter by a tag's ID to retrieve the products in it.
205
+ * required: false
206
+ * schema:
207
+ * oneOf:
208
+ * - type: string
209
+ * title: tag_id
210
+ * description: Filter by a product tag's ID.
211
+ * - type: array
212
+ * description: Filter by product tag IDs.
213
+ * items:
214
+ * type: string
215
+ * title: tag_id
216
+ * description: A product tag ID.
217
+ * - name: type_id
218
+ * in: query
219
+ * description: Filter by a type's ID to retrieve the products in it.
220
+ * required: false
221
+ * schema:
222
+ * oneOf:
223
+ * - type: string
224
+ * title: type_id
225
+ * description: Filter by a product type's ID.
226
+ * - type: array
227
+ * description: Filter by product type IDs.
228
+ * items:
229
+ * type: string
230
+ * title: type_id
231
+ * description: A product type ID.
232
+ * - name: created_at
233
+ * in: query
234
+ * description: Filter by the product's creation date.
235
+ * required: false
236
+ * schema:
237
+ * type: object
238
+ * description: Filter by the product's creation date.
239
+ * properties:
240
+ * $and:
241
+ * type: array
242
+ * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
243
+ * items:
244
+ * type: object
245
+ * title: $and
246
+ * $or:
247
+ * type: array
248
+ * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
249
+ * items:
250
+ * type: object
251
+ * title: $or
252
+ * $eq:
253
+ * oneOf:
254
+ * - type: string
255
+ * title: $eq
256
+ * description: Filter by an exact match.
257
+ * - type: array
258
+ * description: Filter by multiple exact matches.
259
+ * items:
260
+ * type: string
261
+ * title: $eq
262
+ * description: An exact match.
263
+ * $ne:
264
+ * type: string
265
+ * title: $ne
266
+ * description: Filter by values not equal to this parameter.
267
+ * $in:
268
+ * type: array
269
+ * description: Filter by values in this array.
270
+ * items:
271
+ * type: string
272
+ * title: $in
273
+ * description: The value to match.
274
+ * $nin:
275
+ * type: array
276
+ * description: Filter by values not in this array.
277
+ * items:
278
+ * type: string
279
+ * title: $nin
280
+ * description: The value not to match.
281
+ * $not:
282
+ * oneOf:
283
+ * - type: string
284
+ * title: $not
285
+ * description: Filter by values not matching this parameter.
286
+ * - type: object
287
+ * description: Filter by values not matching the conditions in this parameter.
288
+ * properties:
289
+ * $and:
290
+ * type: array
291
+ * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
292
+ * items:
293
+ * type: object
294
+ * title: $and
295
+ * $or:
296
+ * type: array
297
+ * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
298
+ * items:
299
+ * type: object
300
+ * title: $or
301
+ * $eq:
302
+ * oneOf:
303
+ * - type: string
304
+ * title: $eq
305
+ * description: Filter by an exact match.
306
+ * - type: array
307
+ * description: Filter by multiple exact matches.
308
+ * items:
309
+ * type: string
310
+ * title: $eq
311
+ * description: The value to match.
312
+ * $ne:
313
+ * type: string
314
+ * title: $ne
315
+ * description: Filter by values not matching this parameter.
316
+ * $in:
317
+ * type: array
318
+ * description: Filter by values in this array.
319
+ * items:
320
+ * type: string
321
+ * title: $in
322
+ * description: The value to match.
323
+ * $nin:
324
+ * type: array
325
+ * description: Filter by values not in this array.
326
+ * items:
327
+ * type: string
328
+ * title: $nin
329
+ * description: The value to not match
330
+ * $not:
331
+ * oneOf:
332
+ * - type: string
333
+ * title: $not
334
+ * description: Filter by values not matching this parameter
335
+ * - type: object
336
+ * description: Filter by values not matching the conditions in this parameter.
337
+ * - type: array
338
+ * description: Filter by values not matching the values of this parameter.
339
+ * items:
340
+ * type: string
341
+ * title: $not
342
+ * description: The values to not match.
343
+ * $gt:
344
+ * type: string
345
+ * title: $gt
346
+ * description: Filter by values greater than this parameter. Useful for numbers and dates only.
347
+ * $gte:
348
+ * type: string
349
+ * title: $gte
350
+ * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
351
+ * $lt:
352
+ * type: string
353
+ * title: $lt
354
+ * description: Filter by values less than this parameter. Useful for numbers and dates only.
355
+ * $lte:
356
+ * type: string
357
+ * title: $lte
358
+ * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
359
+ * $like:
360
+ * type: string
361
+ * title: $like
362
+ * description: Apply a `like` filter. Useful for strings only.
363
+ * $re:
364
+ * type: string
365
+ * title: $re
366
+ * description: Apply a regex filter. Useful for strings only.
367
+ * $ilike:
368
+ * type: string
369
+ * title: $ilike
370
+ * description: Apply a case-insensitive `like` filter. Useful for strings only.
371
+ * $fulltext:
372
+ * type: string
373
+ * title: $fulltext
374
+ * description: Filter to apply on full-text properties.
375
+ * $overlap:
376
+ * type: array
377
+ * description: Filter arrays that have overlapping values with this parameter.
378
+ * items:
379
+ * type: string
380
+ * title: $overlap
381
+ * description: The value to match.
382
+ * $contains:
383
+ * type: array
384
+ * description: Filter arrays that contain some of the values of this parameter.
385
+ * items:
386
+ * type: string
387
+ * title: $contains
388
+ * description: The values to match.
389
+ * $contained:
390
+ * type: array
391
+ * description: Filter arrays that contain all values of this parameter.
392
+ * items:
393
+ * type: string
394
+ * title: $contained
395
+ * description: The values to match.
396
+ * $exists:
397
+ * type: boolean
398
+ * title: $exists
399
+ * description: Filter by whether a value for this parameter exists (not `null`).
400
+ * - type: array
401
+ * description: Filter by values not matching those in this parameter.
402
+ * items:
403
+ * type: string
404
+ * title: $not
405
+ * description: The values to not match.
406
+ * $gt:
407
+ * type: string
408
+ * title: $gt
409
+ * description: Filter by values greater than this parameter. Useful for numbers and dates only.
410
+ * $gte:
411
+ * type: string
412
+ * title: $gte
413
+ * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
414
+ * $lt:
415
+ * type: string
416
+ * title: $lt
417
+ * description: Filter by values less than this parameter. Useful for numbers and dates only.
418
+ * $lte:
419
+ * type: string
420
+ * title: $lte
421
+ * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
422
+ * $like:
423
+ * type: string
424
+ * title: $like
425
+ * description: Apply a `like` filter. Useful for strings only.
426
+ * $re:
427
+ * type: string
428
+ * title: $re
429
+ * description: Apply a regex filter. Useful for strings only.
430
+ * $ilike:
431
+ * type: string
432
+ * title: $ilike
433
+ * description: Apply a case-insensitive `like` filter. Useful for strings only.
434
+ * $fulltext:
435
+ * type: string
436
+ * title: $fulltext
437
+ * description: Filter to apply on full-text properties.
438
+ * $overlap:
439
+ * type: array
440
+ * description: Filter arrays that have overlapping values with this parameter.
441
+ * items:
442
+ * type: string
443
+ * title: $overlap
444
+ * description: The values to match.
445
+ * $contains:
446
+ * type: array
447
+ * description: Filter arrays that contain some of the values of this parameter.
448
+ * items:
449
+ * type: string
450
+ * title: $contains
451
+ * description: The values to match.
452
+ * $contained:
453
+ * type: array
454
+ * description: Filter arrays that contain all values of this parameter.
455
+ * items:
456
+ * type: string
457
+ * title: $contained
458
+ * description: The values to match.
459
+ * $exists:
460
+ * type: boolean
461
+ * title: $exists
462
+ * description: Filter by whether a value for this parameter exists (not `null`).
463
+ * - name: updated_at
464
+ * in: query
465
+ * description: Filter by the product's update date.
466
+ * required: false
467
+ * schema:
468
+ * type: object
469
+ * description: Filter by the product's update date.
470
+ * properties:
471
+ * $and:
472
+ * type: array
473
+ * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
474
+ * items:
475
+ * type: object
476
+ * title: $and
477
+ * $or:
478
+ * type: array
479
+ * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
480
+ * items:
481
+ * type: object
482
+ * title: $or
483
+ * $eq:
484
+ * oneOf:
485
+ * - type: string
486
+ * title: $eq
487
+ * description: Filter by an exact match.
488
+ * - type: array
489
+ * description: Filter by multiple exact matches.
490
+ * items:
491
+ * type: string
492
+ * title: $eq
493
+ * description: An exact match.
494
+ * $ne:
495
+ * type: string
496
+ * title: $ne
497
+ * description: Filter by values not equal to this parameter.
498
+ * $in:
499
+ * type: array
500
+ * description: Filter by values in this array.
501
+ * items:
502
+ * type: string
503
+ * title: $in
504
+ * description: The value to match.
505
+ * $nin:
506
+ * type: array
507
+ * description: Filter by values not in this array.
508
+ * items:
509
+ * type: string
510
+ * title: $nin
511
+ * description: The value not to match.
512
+ * $not:
513
+ * oneOf:
514
+ * - type: string
515
+ * title: $not
516
+ * description: Filter by values not matching this parameter.
517
+ * - type: object
518
+ * description: Filter by values not matching the conditions in this parameter.
519
+ * properties:
520
+ * $and:
521
+ * type: array
522
+ * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
523
+ * items:
524
+ * type: object
525
+ * title: $and
526
+ * $or:
527
+ * type: array
528
+ * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
529
+ * items:
530
+ * type: object
531
+ * title: $or
532
+ * $eq:
533
+ * oneOf:
534
+ * - type: string
535
+ * title: $eq
536
+ * description: Filter by an exact match.
537
+ * - type: array
538
+ * description: Filter by multiple exact matches.
539
+ * items:
540
+ * type: string
541
+ * title: $eq
542
+ * description: The value to match.
543
+ * $ne:
544
+ * type: string
545
+ * title: $ne
546
+ * description: Filter by values not matching this parameter.
547
+ * $in:
548
+ * type: array
549
+ * description: Filter by values in this array.
550
+ * items:
551
+ * type: string
552
+ * title: $in
553
+ * description: The value to match.
554
+ * $nin:
555
+ * type: array
556
+ * description: Filter by values not in this array.
557
+ * items:
558
+ * type: string
559
+ * title: $nin
560
+ * description: The value to not match
561
+ * $not:
562
+ * oneOf:
563
+ * - type: string
564
+ * title: $not
565
+ * description: Filter by values not matching this parameter
566
+ * - type: object
567
+ * description: Filter by values not matching the conditions in this parameter.
568
+ * - type: array
569
+ * description: Filter by values not matching the values of this parameter.
570
+ * items:
571
+ * type: string
572
+ * title: $not
573
+ * description: The values to not match.
574
+ * $gt:
575
+ * type: string
576
+ * title: $gt
577
+ * description: Filter by values greater than this parameter. Useful for numbers and dates only.
578
+ * $gte:
579
+ * type: string
580
+ * title: $gte
581
+ * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
582
+ * $lt:
583
+ * type: string
584
+ * title: $lt
585
+ * description: Filter by values less than this parameter. Useful for numbers and dates only.
586
+ * $lte:
587
+ * type: string
588
+ * title: $lte
589
+ * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
590
+ * $like:
591
+ * type: string
592
+ * title: $like
593
+ * description: Apply a `like` filter. Useful for strings only.
594
+ * $re:
595
+ * type: string
596
+ * title: $re
597
+ * description: Apply a regex filter. Useful for strings only.
598
+ * $ilike:
599
+ * type: string
600
+ * title: $ilike
601
+ * description: Apply a case-insensitive `like` filter. Useful for strings only.
602
+ * $fulltext:
603
+ * type: string
604
+ * title: $fulltext
605
+ * description: Filter to apply on full-text properties.
606
+ * $overlap:
607
+ * type: array
608
+ * description: Filter arrays that have overlapping values with this parameter.
609
+ * items:
610
+ * type: string
611
+ * title: $overlap
612
+ * description: The value to match.
613
+ * $contains:
614
+ * type: array
615
+ * description: Filter arrays that contain some of the values of this parameter.
616
+ * items:
617
+ * type: string
618
+ * title: $contains
619
+ * description: The values to match.
620
+ * $contained:
621
+ * type: array
622
+ * description: Filter arrays that contain all values of this parameter.
623
+ * items:
624
+ * type: string
625
+ * title: $contained
626
+ * description: The values to match.
627
+ * $exists:
628
+ * type: boolean
629
+ * title: $exists
630
+ * description: Filter by whether a value for this parameter exists (not `null`).
631
+ * - type: array
632
+ * description: Filter by values not matching those in this parameter.
633
+ * items:
634
+ * type: string
635
+ * title: $not
636
+ * description: The values to not match.
637
+ * $gt:
638
+ * type: string
639
+ * title: $gt
640
+ * description: Filter by values greater than this parameter. Useful for numbers and dates only.
641
+ * $gte:
642
+ * type: string
643
+ * title: $gte
644
+ * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
645
+ * $lt:
646
+ * type: string
647
+ * title: $lt
648
+ * description: Filter by values less than this parameter. Useful for numbers and dates only.
649
+ * $lte:
650
+ * type: string
651
+ * title: $lte
652
+ * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
653
+ * $like:
654
+ * type: string
655
+ * title: $like
656
+ * description: Apply a `like` filter. Useful for strings only.
657
+ * $re:
658
+ * type: string
659
+ * title: $re
660
+ * description: Apply a regex filter. Useful for strings only.
661
+ * $ilike:
662
+ * type: string
663
+ * title: $ilike
664
+ * description: Apply a case-insensitive `like` filter. Useful for strings only.
665
+ * $fulltext:
666
+ * type: string
667
+ * title: $fulltext
668
+ * description: Filter to apply on full-text properties.
669
+ * $overlap:
670
+ * type: array
671
+ * description: Filter arrays that have overlapping values with this parameter.
672
+ * items:
673
+ * type: string
674
+ * title: $overlap
675
+ * description: The values to match.
676
+ * $contains:
677
+ * type: array
678
+ * description: Filter arrays that contain some of the values of this parameter.
679
+ * items:
680
+ * type: string
681
+ * title: $contains
682
+ * description: The values to match.
683
+ * $contained:
684
+ * type: array
685
+ * description: Filter arrays that contain all values of this parameter.
686
+ * items:
687
+ * type: string
688
+ * title: $contained
689
+ * description: The values to match.
690
+ * $exists:
691
+ * type: boolean
692
+ * title: $exists
693
+ * description: Filter by whether a value for this parameter exists (not `null`).
694
+ * - name: region_id
695
+ * in: query
696
+ * description: The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.
697
+ * required: false
698
+ * schema:
699
+ * type: string
700
+ * title: region_id
701
+ * description: The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.
702
+ * externalDocs:
703
+ * url: https://docs.medusajs.com/v2/resources/storefront-development/products/price/examples/tax-price
704
+ * description: "Storefront guide: How to show product variants' prices with taxes."
705
+ * - name: province
706
+ * in: query
707
+ * description: The lower-case ISO 3166-2 province code the products are being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.
708
+ * required: false
709
+ * schema:
710
+ * type: string
711
+ * title: province
712
+ * description: The lower-case ISO 3166-2 province code the products are being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.
713
+ * example: us-ca
714
+ * externalDocs:
715
+ * url: https://en.wikipedia.org/wiki/ISO_3166-2
716
+ * description: Learn more about ISO 3166-2
717
+ * - name: sales_channel_id
718
+ * in: query
719
+ * required: false
720
+ * schema:
721
+ * oneOf:
722
+ * - type: string
723
+ * title: sales_channel_id
724
+ * description: The ID of a sales channel to retrieve products in it.
725
+ * - type: array
726
+ * description: The IDs of sales channels to retrieve products in them.
727
+ * items:
728
+ * type: string
729
+ * title: sales_channel_id
730
+ * description: A sales channel's ID.
731
+ * - name: category_id
732
+ * in: query
733
+ * required: false
734
+ * schema:
735
+ * oneOf:
736
+ * - type: string
737
+ * title: category_id
738
+ * description: The ID of a product category to retrieve products in it.
739
+ * - type: array
740
+ * description: The ID of product categories to retrieve products in them.
741
+ * items:
742
+ * type: string
743
+ * title: category_id
744
+ * description: A product category's ID.
745
+ * - name: variants
746
+ * in: query
747
+ * description: Filter the products' variants.
748
+ * required: false
749
+ * schema:
750
+ * type: object
751
+ * description: Filter the products' variants.
752
+ * x-schemaName: StoreProductVariantParams
753
+ * properties:
754
+ * options:
755
+ * type: object
756
+ * description: Filter by the variants' options.
757
+ * required:
758
+ * - value
759
+ * - option_id
760
+ * properties:
761
+ * option_id:
762
+ * type: string
763
+ * title: option_id
764
+ * description: The ID of the option to filter by.
765
+ * value:
766
+ * type: string
767
+ * title: value
768
+ * description: Filter by a value of the option.
769
+ * - name: country_code
770
+ * in: query
771
+ * description: The product's country code.
772
+ * required: false
773
+ * schema:
774
+ * type: string
775
+ * title: country_code
776
+ * description: The product's country code.
777
+ * - name: cart_id
778
+ * in: query
779
+ * description: The product's cart id.
780
+ * required: false
781
+ * schema:
782
+ * type: string
783
+ * title: cart_id
784
+ * description: The product's cart id.
785
+ * x-codeSamples:
786
+ * - lang: JavaScript
787
+ * label: JS SDK
788
+ * source: |-
789
+ * import Medusa from "@medusajs/js-sdk"
790
+ *
791
+ * let MEDUSA_BACKEND_URL = "http://localhost:9000"
792
+ *
793
+ * if (process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL) {
794
+ * MEDUSA_BACKEND_URL = process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL
795
+ * }
796
+ *
797
+ * export const sdk = new Medusa({
798
+ * baseUrl: MEDUSA_BACKEND_URL,
799
+ * debug: process.env.NODE_ENV === "development",
800
+ * publishableKey: process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY,
801
+ * })
802
+ *
803
+ * sdk.store.product.list()
804
+ * .then(({ products, count, offset, limit }) => {
805
+ * console.log(products)
806
+ * })
807
+ * - lang: Shell
808
+ * label: cURL
809
+ * source: |-
810
+ * curl '{backend_url}/store/products' \
811
+ * -H 'x-publishable-api-key: {your_publishable_api_key}'
812
+ * tags:
813
+ * - Store Wishlist
76
814
  * responses:
77
815
  * "200":
78
816
  * description: OK
79
817
  * content:
80
818
  * application/json:
81
819
  * schema:
82
- * type: object
83
- * properties:
84
- * wishlists:
85
- * type: array
86
- * items:
87
- * $ref: "#/components/schemas/Wishlist"
88
- * count:
89
- * type: integer
90
- * description: The total number of items available
91
- * offset:
92
- * type: integer
93
- * description: The number of items skipped before these items
94
- * limit:
95
- * type: integer
96
- * description: The number of items per page
97
- * tags:
98
- * - Store Wishlist
99
- * security:
100
- * - api_token: []
101
- * - cookie_auth: []
102
- */
820
+ * allOf:
821
+ * - type: object
822
+ * description: The paginated list of products.
823
+ * required:
824
+ * - limit
825
+ * - offset
826
+ * - count
827
+ * properties:
828
+ * limit:
829
+ * type: number
830
+ * title: limit
831
+ * description: The maximum number of items returned.
832
+ * offset:
833
+ * type: number
834
+ * title: offset
835
+ * description: The number of items skipped before retrieving the returned items.
836
+ * count:
837
+ * type: number
838
+ * title: count
839
+ * description: The total number of items.
840
+ * - type: object
841
+ * description: The paginated list of products.
842
+ * required:
843
+ * - products
844
+ * properties:
845
+ * products:
846
+ * type: array
847
+ * description: The list of products.
848
+ * items:
849
+ * $ref: "#/components/schemas/StoreProduct"
850
+ * "400":
851
+ * $ref: "#/components/responses/400_error"
852
+ * "401":
853
+ * $ref: "#/components/responses/unauthorized"
854
+ * "404":
855
+ * $ref: "#/components/responses/not_found_error"
856
+ * "409":
857
+ * $ref: "#/components/responses/invalid_state_error"
858
+ * "422":
859
+ * $ref: "#/components/responses/invalid_request_error"
860
+ * "500":
861
+ * $ref: "#/components/responses/500_error"
862
+ *
863
+ */
103
864
  export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;