@wix/stores 1.0.59 → 1.0.61

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 (99) hide show
  1. package/build/cjs/index.d.ts +2 -1
  2. package/build/cjs/index.js +3 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/stores-catalog-v1-product.http.d.ts +21 -1
  5. package/build/cjs/src/stores-catalog-v1-product.http.js +283 -1
  6. package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -1
  7. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +35 -0
  8. package/build/cjs/src/stores-catalog-v1-product.public.js +182 -0
  9. package/build/cjs/src/stores-catalog-v1-product.public.js.map +1 -0
  10. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +37 -32
  11. package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -1
  12. package/build/cjs/src/{stores-catalog-v1-product-products.universal.d.ts → stores-catalog-v1-product.universal.d.ts} +446 -8
  13. package/build/cjs/src/stores-catalog-v1-product.universal.js +1657 -0
  14. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -0
  15. package/build/cjs/src/stores-v1-abandoned-cart.http.d.ts +6 -0
  16. package/build/cjs/src/stores-v1-abandoned-cart.http.js +103 -0
  17. package/build/cjs/src/stores-v1-abandoned-cart.http.js.map +1 -0
  18. package/build/cjs/src/stores-v1-abandoned-cart.public.d.ts +9 -0
  19. package/build/cjs/src/stores-v1-abandoned-cart.public.js +22 -0
  20. package/build/cjs/src/stores-v1-abandoned-cart.public.js.map +1 -0
  21. package/build/cjs/src/stores-v1-abandoned-cart.types.d.ts +189 -0
  22. package/build/cjs/src/stores-v1-abandoned-cart.types.js +30 -0
  23. package/build/cjs/src/stores-v1-abandoned-cart.types.js.map +1 -0
  24. package/build/cjs/src/stores-v1-abandoned-cart.universal.d.ts +214 -0
  25. package/build/cjs/src/stores-v1-abandoned-cart.universal.js +180 -0
  26. package/build/cjs/src/stores-v1-abandoned-cart.universal.js.map +1 -0
  27. package/build/cjs/src/stores-v1-subscription-option.http.js +6 -0
  28. package/build/cjs/src/stores-v1-subscription-option.http.js.map +1 -1
  29. package/build/cjs/src/stores-v2-inventory.http.d.ts +29 -3
  30. package/build/cjs/src/stores-v2-inventory.http.js +177 -3
  31. package/build/cjs/src/stores-v2-inventory.http.js.map +1 -1
  32. package/build/cjs/src/stores-v2-inventory.public.d.ts +7 -4
  33. package/build/cjs/src/stores-v2-inventory.public.js +21 -3
  34. package/build/cjs/src/stores-v2-inventory.public.js.map +1 -1
  35. package/build/cjs/src/stores-v2-inventory.types.d.ts +2 -2
  36. package/build/cjs/src/stores-v2-inventory.universal.d.ts +107 -17
  37. package/build/cjs/src/stores-v2-inventory.universal.js +193 -11
  38. package/build/cjs/src/stores-v2-inventory.universal.js.map +1 -1
  39. package/build/es/index.d.ts +2 -1
  40. package/build/es/index.js +2 -1
  41. package/build/es/index.js.map +1 -1
  42. package/build/es/src/stores-catalog-v1-product.http.d.ts +21 -1
  43. package/build/es/src/stores-catalog-v1-product.http.js +275 -0
  44. package/build/es/src/stores-catalog-v1-product.http.js.map +1 -1
  45. package/build/es/src/stores-catalog-v1-product.public.d.ts +35 -0
  46. package/build/es/src/stores-catalog-v1-product.public.js +144 -0
  47. package/build/es/src/stores-catalog-v1-product.public.js.map +1 -0
  48. package/build/es/src/stores-catalog-v1-product.types.d.ts +37 -32
  49. package/build/es/src/stores-catalog-v1-product.types.js.map +1 -1
  50. package/build/es/src/{stores-catalog-v1-product-products.universal.d.ts → stores-catalog-v1-product.universal.d.ts} +446 -8
  51. package/build/es/src/stores-catalog-v1-product.universal.js +1607 -0
  52. package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -0
  53. package/build/es/src/stores-v1-abandoned-cart.http.d.ts +6 -0
  54. package/build/es/src/stores-v1-abandoned-cart.http.js +98 -0
  55. package/build/es/src/stores-v1-abandoned-cart.http.js.map +1 -0
  56. package/build/es/src/stores-v1-abandoned-cart.public.d.ts +9 -0
  57. package/build/es/src/stores-v1-abandoned-cart.public.js +14 -0
  58. package/build/es/src/stores-v1-abandoned-cart.public.js.map +1 -0
  59. package/build/es/src/stores-v1-abandoned-cart.types.d.ts +189 -0
  60. package/build/es/src/stores-v1-abandoned-cart.types.js +27 -0
  61. package/build/es/src/stores-v1-abandoned-cart.types.js.map +1 -0
  62. package/build/es/src/stores-v1-abandoned-cart.universal.d.ts +214 -0
  63. package/build/es/src/stores-v1-abandoned-cart.universal.js +156 -0
  64. package/build/es/src/stores-v1-abandoned-cart.universal.js.map +1 -0
  65. package/build/es/src/stores-v1-subscription-option.http.js +6 -0
  66. package/build/es/src/stores-v1-subscription-option.http.js.map +1 -1
  67. package/build/es/src/stores-v2-inventory.http.d.ts +29 -3
  68. package/build/es/src/stores-v2-inventory.http.js +173 -2
  69. package/build/es/src/stores-v2-inventory.http.js.map +1 -1
  70. package/build/es/src/stores-v2-inventory.public.d.ts +7 -4
  71. package/build/es/src/stores-v2-inventory.public.js +18 -3
  72. package/build/es/src/stores-v2-inventory.public.js.map +1 -1
  73. package/build/es/src/stores-v2-inventory.types.d.ts +2 -2
  74. package/build/es/src/stores-v2-inventory.universal.d.ts +107 -17
  75. package/build/es/src/stores-v2-inventory.universal.js +189 -10
  76. package/build/es/src/stores-v2-inventory.universal.js.map +1 -1
  77. package/package.json +2 -2
  78. package/build/cjs/src/stores-catalog-v1-product-products.http.d.ts +0 -62
  79. package/build/cjs/src/stores-catalog-v1-product-products.http.js +0 -845
  80. package/build/cjs/src/stores-catalog-v1-product-products.http.js.map +0 -1
  81. package/build/cjs/src/stores-catalog-v1-product-products.public.d.ts +0 -9
  82. package/build/cjs/src/stores-catalog-v1-product-products.public.js +0 -26
  83. package/build/cjs/src/stores-catalog-v1-product-products.public.js.map +0 -1
  84. package/build/cjs/src/stores-catalog-v1-product-products.types.d.ts +0 -1398
  85. package/build/cjs/src/stores-catalog-v1-product-products.types.js +0 -69
  86. package/build/cjs/src/stores-catalog-v1-product-products.types.js.map +0 -1
  87. package/build/cjs/src/stores-catalog-v1-product-products.universal.js +0 -232
  88. package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +0 -1
  89. package/build/es/src/stores-catalog-v1-product-products.http.d.ts +0 -62
  90. package/build/es/src/stores-catalog-v1-product-products.http.js +0 -821
  91. package/build/es/src/stores-catalog-v1-product-products.http.js.map +0 -1
  92. package/build/es/src/stores-catalog-v1-product-products.public.d.ts +0 -9
  93. package/build/es/src/stores-catalog-v1-product-products.public.js +0 -14
  94. package/build/es/src/stores-catalog-v1-product-products.public.js.map +0 -1
  95. package/build/es/src/stores-catalog-v1-product-products.types.d.ts +0 -1398
  96. package/build/es/src/stores-catalog-v1-product-products.types.js +0 -66
  97. package/build/es/src/stores-catalog-v1-product-products.types.js.map +0 -1
  98. package/build/es/src/stores-catalog-v1-product-products.universal.js +0 -208
  99. package/build/es/src/stores-catalog-v1-product-products.universal.js.map +0 -1
@@ -0,0 +1,144 @@
1
+ import { createProduct as universalCreateProduct, updateProduct as universalUpdateProduct, deleteProduct as universalDeleteProduct, updateVariants as universalUpdateVariants, resetAllVariantData as universalResetAllVariantData, addProductsToCollection as universalAddProductsToCollection, removeProductsFromCollection as universalRemoveProductsFromCollection, addProductMedia as universalAddProductMedia, removeProductMedia as universalRemoveProductMedia, addProductMediaToChoices as universalAddProductMediaToChoices, removeProductMediaFromChoices as universalRemoveProductMediaFromChoices, deleteProductOptions as universalDeleteProductOptions, removeBrand as universalRemoveBrand, createCollection as universalCreateCollection, updateCollection as universalUpdateCollection, deleteCollection as universalDeleteCollection, removeRibbon as universalRemoveRibbon, bulkUpdateProducts as universalBulkUpdateProducts, bulkAdjustProductProperties as universalBulkAdjustProductProperties, queryProducts as universalQueryProducts, getProduct as universalGetProduct, queryCollections as universalQueryCollections, getCollection as universalGetCollection, getCollectionBySlug as universalGetCollectionBySlug, getProductOptionsAvailability as universalGetProductOptionsAvailability, queryProductVariants as universalQueryProductVariants, queryStoreVariants as universalQueryStoreVariants, getStoreVariant as universalGetStoreVariant, } from './stores-catalog-v1-product.universal';
2
+ export const __metadata = { PACKAGE_NAME: '@wix/stores' };
3
+ export function createProduct(httpClient) {
4
+ return (options) => universalCreateProduct(options,
5
+ // @ts-ignore
6
+ { httpClient });
7
+ }
8
+ export function updateProduct(httpClient) {
9
+ return (_id, product) => universalUpdateProduct(_id, product,
10
+ // @ts-ignore
11
+ { httpClient });
12
+ }
13
+ export function deleteProduct(httpClient) {
14
+ return (_id) => universalDeleteProduct(_id,
15
+ // @ts-ignore
16
+ { httpClient });
17
+ }
18
+ export function updateVariants(httpClient) {
19
+ return (_id, options) => universalUpdateVariants(_id, options,
20
+ // @ts-ignore
21
+ { httpClient });
22
+ }
23
+ export function resetAllVariantData(httpClient) {
24
+ return (_id) => universalResetAllVariantData(_id,
25
+ // @ts-ignore
26
+ { httpClient });
27
+ }
28
+ export function addProductsToCollection(httpClient) {
29
+ return (_id, options) => universalAddProductsToCollection(_id, options,
30
+ // @ts-ignore
31
+ { httpClient });
32
+ }
33
+ export function removeProductsFromCollection(httpClient) {
34
+ return (_id, productIds) => universalRemoveProductsFromCollection(_id, productIds,
35
+ // @ts-ignore
36
+ { httpClient });
37
+ }
38
+ export function addProductMedia(httpClient) {
39
+ return (_id, options) => universalAddProductMedia(_id, options,
40
+ // @ts-ignore
41
+ { httpClient });
42
+ }
43
+ export function removeProductMedia(httpClient) {
44
+ return (_id, options) => universalRemoveProductMedia(_id, options,
45
+ // @ts-ignore
46
+ { httpClient });
47
+ }
48
+ export function addProductMediaToChoices(httpClient) {
49
+ return (_id, options) => universalAddProductMediaToChoices(_id, options,
50
+ // @ts-ignore
51
+ { httpClient });
52
+ }
53
+ export function removeProductMediaFromChoices(httpClient) {
54
+ return (_id, options) => universalRemoveProductMediaFromChoices(_id, options,
55
+ // @ts-ignore
56
+ { httpClient });
57
+ }
58
+ export function deleteProductOptions(httpClient) {
59
+ return (_id) => universalDeleteProductOptions(_id,
60
+ // @ts-ignore
61
+ { httpClient });
62
+ }
63
+ export function removeBrand(httpClient) {
64
+ return (_id) => universalRemoveBrand(_id,
65
+ // @ts-ignore
66
+ { httpClient });
67
+ }
68
+ export function createCollection(httpClient) {
69
+ return (collection) => universalCreateCollection(collection,
70
+ // @ts-ignore
71
+ { httpClient });
72
+ }
73
+ export function updateCollection(httpClient) {
74
+ return (_id, collection) => universalUpdateCollection(_id, collection,
75
+ // @ts-ignore
76
+ { httpClient });
77
+ }
78
+ export function deleteCollection(httpClient) {
79
+ return (_id) => universalDeleteCollection(_id,
80
+ // @ts-ignore
81
+ { httpClient });
82
+ }
83
+ export function removeRibbon(httpClient) {
84
+ return (_id) => universalRemoveRibbon(_id,
85
+ // @ts-ignore
86
+ { httpClient });
87
+ }
88
+ export function bulkUpdateProducts(httpClient) {
89
+ return (ids, options) => universalBulkUpdateProducts(ids, options,
90
+ // @ts-ignore
91
+ { httpClient });
92
+ }
93
+ export function bulkAdjustProductProperties(httpClient) {
94
+ return (ids, options) => universalBulkAdjustProductProperties(ids, options,
95
+ // @ts-ignore
96
+ { httpClient });
97
+ }
98
+ export function queryProducts(httpClient) {
99
+ return () => universalQueryProducts(
100
+ // @ts-ignore
101
+ { httpClient });
102
+ }
103
+ export function getProduct(httpClient) {
104
+ return (_id, options) => universalGetProduct(_id, options,
105
+ // @ts-ignore
106
+ { httpClient });
107
+ }
108
+ export function queryCollections(httpClient) {
109
+ return (options) => universalQueryCollections(options,
110
+ // @ts-ignore
111
+ { httpClient });
112
+ }
113
+ export function getCollection(httpClient) {
114
+ return (_id, options) => universalGetCollection(_id, options,
115
+ // @ts-ignore
116
+ { httpClient });
117
+ }
118
+ export function getCollectionBySlug(httpClient) {
119
+ return (slug) => universalGetCollectionBySlug(slug,
120
+ // @ts-ignore
121
+ { httpClient });
122
+ }
123
+ export function getProductOptionsAvailability(httpClient) {
124
+ return (_id, options) => universalGetProductOptionsAvailability(_id, options,
125
+ // @ts-ignore
126
+ { httpClient });
127
+ }
128
+ export function queryProductVariants(httpClient) {
129
+ return (_id, options) => universalQueryProductVariants(_id, options,
130
+ // @ts-ignore
131
+ { httpClient });
132
+ }
133
+ export function queryStoreVariants(httpClient) {
134
+ return (options) => universalQueryStoreVariants(options,
135
+ // @ts-ignore
136
+ { httpClient });
137
+ }
138
+ export function getStoreVariant(httpClient) {
139
+ return (_id) => universalGetStoreVariant(_id,
140
+ // @ts-ignore
141
+ { httpClient });
142
+ }
143
+ export { ProductType, InventoryStatus, MeasurementUnit, MediaItemType, OptionType, DiscountType, SortOrder, } from './stores-catalog-v1-product.universal';
144
+ //# sourceMappingURL=stores-catalog-v1-product.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-product.public.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,sBAAsB,EACvC,cAAc,IAAI,uBAAuB,EACzC,mBAAmB,IAAI,4BAA4B,EACnD,uBAAuB,IAAI,gCAAgC,EAC3D,4BAA4B,IAAI,qCAAqC,EACrE,eAAe,IAAI,wBAAwB,EAC3C,kBAAkB,IAAI,2BAA2B,EACjD,wBAAwB,IAAI,iCAAiC,EAC7D,6BAA6B,IAAI,sCAAsC,EACvE,oBAAoB,IAAI,6BAA6B,EACrD,WAAW,IAAI,oBAAoB,EACnC,gBAAgB,IAAI,yBAAyB,EAC7C,gBAAgB,IAAI,yBAAyB,EAC7C,gBAAgB,IAAI,yBAAyB,EAC7C,YAAY,IAAI,qBAAqB,EACrC,kBAAkB,IAAI,2BAA2B,EACjD,2BAA2B,IAAI,oCAAoC,EACnE,aAAa,IAAI,sBAAsB,EACvC,UAAU,IAAI,mBAAmB,EACjC,gBAAgB,IAAI,yBAAyB,EAC7C,aAAa,IAAI,sBAAsB,EACvC,mBAAmB,IAAI,4BAA4B,EACnD,6BAA6B,IAAI,sCAAsC,EACvE,oBAAoB,IAAI,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e,EACf,aAAa,EACb,UAAU,EACV,YAAY,EACZ,SAAS,GACV,MAAM,uCAAuC,CAAC"}
@@ -54,10 +54,7 @@ export interface Product {
54
54
  costRange?: NumericPropertyRange;
55
55
  /** Price per unit data. */
56
56
  pricePerUnitData?: PricePerUnitData;
57
- /**
58
- * Additional text that the store owner can assign to the product (e.g. shipping details, refund policy, etc.). Currently writable only from the UI.
59
- * @readonly
60
- */
57
+ /** Additional text that the store owner can assign to the product (e.g. shipping details, refund policy, etc.). */
61
58
  additionalInfoSections?: AdditionalInfoSection[];
62
59
  /**
63
60
  * Deprecated (use `ribbon` instead).
@@ -268,6 +265,10 @@ export interface Media {
268
265
  items?: MediaItem[];
269
266
  }
270
267
  export interface MediaItem extends MediaItemItemOneOf {
268
+ /** Image data (URL, size). */
269
+ image?: MediaItemUrlAndSize;
270
+ /** Video data (URL, size). */
271
+ video?: MediaItemVideo;
271
272
  /** Media item thumbnail details. */
272
273
  thumbnail?: MediaItemUrlAndSize;
273
274
  /** Media item type (image, video, etc.). */
@@ -276,10 +277,6 @@ export interface MediaItem extends MediaItemItemOneOf {
276
277
  title?: string;
277
278
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
278
279
  id?: string;
279
- /** Image data (URL, size). */
280
- image?: MediaItemUrlAndSize;
281
- /** Video data (URL, size). */
282
- video?: MediaItemVideo;
283
280
  }
284
281
  /** @oneof */
285
282
  export interface MediaItemItemOneOf {
@@ -421,11 +418,17 @@ export interface VariantStock {
421
418
  * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
422
419
  */
423
420
  export interface SeoSchema {
424
- /** SEO tags information. */
421
+ /** SEO tag information. */
425
422
  tags?: Tag[];
426
423
  /** SEO general settings. */
427
424
  settings?: Settings;
428
425
  }
426
+ export interface Keyword {
427
+ /** Keyword value. */
428
+ term?: string;
429
+ /** Whether the keyword is the main focus keyword. */
430
+ isMain?: boolean;
431
+ }
429
432
  export interface Tag {
430
433
  /**
431
434
  * SEO tag type.
@@ -435,7 +438,7 @@ export interface Tag {
435
438
  */
436
439
  type?: string;
437
440
  /**
438
- * A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
441
+ * A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
439
442
  * For example: `{'name': 'description', 'content': 'the description itself'}`.
440
443
  */
441
444
  props?: Record<string, any> | null;
@@ -450,12 +453,14 @@ export interface Tag {
450
453
  }
451
454
  export interface Settings {
452
455
  /**
453
- * Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
456
+ * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
454
457
  *
455
458
  *
456
- * Default: enabled
459
+ * Default: `false` (Auto Redirect is enabled.)
457
460
  */
458
461
  preventAutoRedirect?: boolean;
462
+ /** User-selected keyword terms for a specific page. */
463
+ keywords?: Keyword[];
459
464
  }
460
465
  export interface CreateProductRequest {
461
466
  /** Product information. */
@@ -517,7 +522,7 @@ export interface ResetAllVariantDataRequest {
517
522
  export interface ResetAllVariantDataResponse {
518
523
  }
519
524
  export interface AddProductsToCollectionRequest {
520
- /** Collection ID. */
525
+ /** Collection ID. Cannot be used to add products to All Products */
521
526
  id: string;
522
527
  /** IDs of the products to add to the collection. */
523
528
  productIds?: string[];
@@ -525,7 +530,7 @@ export interface AddProductsToCollectionRequest {
525
530
  export interface AddProductsToCollectionResponse {
526
531
  }
527
532
  export interface RemoveProductsFromCollectionRequest {
528
- /** Collection ID. */
533
+ /** Collection ID. Cannot be used to remove products from All Products */
529
534
  id: string;
530
535
  /** IDs of the products that will be deleted from the collection. */
531
536
  productIds: string[];
@@ -538,16 +543,16 @@ export interface AddProductMediaRequest {
538
543
  media?: MediaDataForWrite[];
539
544
  }
540
545
  export interface MediaDataForWrite extends MediaDataForWriteMediaSourceOneOf {
546
+ /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
547
+ mediaId?: string;
548
+ /** Media external URL (for new media items). */
549
+ url?: string;
541
550
  /**
542
551
  * Optional - assign this media item to a specific product choice.
543
552
  * Note that you may set media items for choices under only one option (e.g., if Colors blue, green, and red have media items, Sizes S, M, and L can't have media items assigned to them).
544
553
  * You may clear existing media from choices via the Remove Product Media From Choices endpoint
545
554
  */
546
555
  choice?: OptionAndChoice;
547
- /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
548
- mediaId?: string;
549
- /** Media external URL (for new media items). */
550
- url?: string;
551
556
  }
552
557
  /** @oneof */
553
558
  export interface MediaDataForWriteMediaSourceOneOf {
@@ -679,7 +684,7 @@ export interface UpdateCollectionResponse {
679
684
  collection?: Collection;
680
685
  }
681
686
  export interface DeleteCollectionRequest {
682
- /** ID of the collection to delete. */
687
+ /** ID of the collection to delete. Cannot be used to delete All Products */
683
688
  id: string;
684
689
  }
685
690
  export interface DeleteCollectionResponse {
@@ -993,14 +998,14 @@ export interface QueryProductsPlatformizedRequest {
993
998
  query?: PlatformQuery;
994
999
  }
995
1000
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
996
- /** Filter object. */
997
- filter?: Record<string, any> | null;
998
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
999
- sort?: Sorting[];
1000
1001
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1001
1002
  paging?: PlatformPaging;
1002
1003
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1003
1004
  cursorPaging?: CursorPaging;
1005
+ /** Filter object. */
1006
+ filter?: Record<string, any> | null;
1007
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1008
+ sort?: Sorting[];
1004
1009
  }
1005
1010
  /** @oneof */
1006
1011
  export interface PlatformQueryPagingMethodOneOf {
@@ -1121,7 +1126,7 @@ export interface QueryCollectionsPlatformizedResponse {
1121
1126
  }
1122
1127
  export interface GetCollectionRequest {
1123
1128
  /** Requested collection ID. */
1124
- id?: string;
1129
+ id: string;
1125
1130
  /**
1126
1131
  * Whether to return the `collection.numberOfProducts` field in the response.
1127
1132
  * Defaults to false, in which case the value of `collection.numberOfProducts` will be 0.
@@ -1134,7 +1139,7 @@ export interface GetCollectionResponse {
1134
1139
  }
1135
1140
  export interface GetCollectionBySlugRequest {
1136
1141
  /** Slug of the collection to retrieve. */
1137
- slug?: string;
1142
+ slug: string;
1138
1143
  }
1139
1144
  export interface GetCollectionBySlugResponse {
1140
1145
  /** The requested collection. */
@@ -1142,7 +1147,7 @@ export interface GetCollectionBySlugResponse {
1142
1147
  }
1143
1148
  export interface ProductOptionsAvailabilityRequest {
1144
1149
  /** Requested product ID. */
1145
- id?: string;
1150
+ id: string;
1146
1151
  /** Array containing the selected options (e.g, color: Blue, size: Large). */
1147
1152
  options?: Record<string, string>;
1148
1153
  }
@@ -1177,7 +1182,7 @@ export interface VariantData {
1177
1182
  }
1178
1183
  export interface QueryProductVariantsRequest {
1179
1184
  /** Requested product ID. */
1180
- id?: string;
1185
+ id: string;
1181
1186
  /**
1182
1187
  * The specific choices available or chosen from within a selection (e.g., choosing the red Selection triggers the red Choice).
1183
1188
  * You may specify all the relevant choices for a specific variant, or only some of the options, which will return all corresponding variants (not relevant when passing variant IDs).
@@ -1307,14 +1312,14 @@ export interface QueryStoreVariantsWithBigLimitRequest {
1307
1312
  * It doesn't have max validation for limit but we still MUST have it so implement required validation in your code.
1308
1313
  */
1309
1314
  export interface UnlimitedPlatformQuery extends UnlimitedPlatformQueryPagingMethodOneOf {
1310
- /** Filter object. */
1311
- filter?: Record<string, any> | null;
1312
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1313
- sort?: Sorting[];
1314
1315
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1315
1316
  paging?: UnlimitedPlatformPaging;
1316
1317
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1317
1318
  cursorPaging?: UnlimitedPlatformCursorPaging;
1319
+ /** Filter object. */
1320
+ filter?: Record<string, any> | null;
1321
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1322
+ sort?: Sorting[];
1318
1323
  }
1319
1324
  /** @oneof */
1320
1325
  export interface UnlimitedPlatformQueryPagingMethodOneOf {
@@ -1348,7 +1353,7 @@ export interface UnlimitedPlatformCursorPaging {
1348
1353
  }
1349
1354
  export interface GetStoreVariantRequest {
1350
1355
  /** Store variant ID. Comprised of the `productId` and the `variantId`, separated by a hyphen. For example, `{productId}-{variantId}`. */
1351
- id?: string;
1356
+ id: string;
1352
1357
  }
1353
1358
  export interface GetStoreVariantResponse {
1354
1359
  /** The requested store variant. */
@@ -1 +1 @@
1
- {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":"AA8HA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA4BD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AA4ED,MAAM,CAAN,IAAY,eAuBX;AAvBD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;AACf,CAAC,EAvBW,eAAe,KAAf,eAAe,QAuB1B;AAyDD,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4BAAW,CAAA;AACb,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AA8BD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iEAAmD,CAAA;IACnD,qCAAuB,CAAA;IACvB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAsCD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AA2sBD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
1
+ {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":"AA2HA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA4BD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,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