@wix/stores 1.0.5 → 1.0.7

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 (87) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/{stores-poc-v1-collection.http.d.ts → stores-catalog-v1-collection.http.d.ts} +7 -2
  5. package/build/cjs/src/{stores-poc-v1-collection.http.js → stores-catalog-v1-collection.http.js} +47 -44
  6. package/build/cjs/src/stores-catalog-v1-collection.http.js.map +1 -0
  7. package/build/cjs/src/stores-catalog-v1-collection.public.d.ts +5 -0
  8. package/build/cjs/src/stores-catalog-v1-collection.public.js +20 -0
  9. package/build/cjs/src/stores-catalog-v1-collection.public.js.map +1 -0
  10. package/build/cjs/src/{stores-poc-v1-collection.types.d.ts → stores-catalog-v1-collection.types.d.ts} +51 -17
  11. package/build/cjs/src/{stores-poc-v1-collection.types.js → stores-catalog-v1-collection.types.js} +1 -1
  12. package/build/cjs/src/stores-catalog-v1-collection.types.js.map +1 -0
  13. package/build/cjs/src/{stores-poc-v1-collection.universal.d.ts → stores-catalog-v1-collection.universal.d.ts} +63 -38
  14. package/build/cjs/src/{stores-poc-v1-collection.universal.js → stores-catalog-v1-collection.universal.js} +55 -55
  15. package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +1 -0
  16. package/build/cjs/src/stores-catalog-v1-product-products.public.d.ts +6 -0
  17. package/build/cjs/src/stores-catalog-v1-product-products.public.js +25 -0
  18. package/build/cjs/src/stores-catalog-v1-product-products.public.js.map +1 -0
  19. package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +1411 -0
  20. package/build/cjs/src/{stores-poc-v1-product.universal.js → stores-catalog-v1-product-products.universal.js} +60 -57
  21. package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +1 -0
  22. package/build/cjs/src/stores-catalog-v1-product.http.d.ts +62 -0
  23. package/build/cjs/src/stores-catalog-v1-product.http.js +775 -0
  24. package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -0
  25. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +1371 -0
  26. package/build/cjs/src/{stores-poc-v1-product.types.js → stores-catalog-v1-product.types.js} +1 -1
  27. package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -0
  28. package/build/es/index.d.ts +2 -2
  29. package/build/es/index.js +2 -2
  30. package/build/es/index.js.map +1 -1
  31. package/build/es/src/{stores-poc-v1-collection.http.d.ts → stores-catalog-v1-collection.http.d.ts} +7 -2
  32. package/build/es/src/{stores-poc-v1-collection.http.js → stores-catalog-v1-collection.http.js} +44 -41
  33. package/build/es/src/stores-catalog-v1-collection.http.js.map +1 -0
  34. package/build/es/src/stores-catalog-v1-collection.public.d.ts +5 -0
  35. package/build/es/src/stores-catalog-v1-collection.public.js +13 -0
  36. package/build/es/src/stores-catalog-v1-collection.public.js.map +1 -0
  37. package/build/es/src/{stores-poc-v1-collection.types.d.ts → stores-catalog-v1-collection.types.d.ts} +51 -17
  38. package/build/es/src/{stores-poc-v1-collection.types.js → stores-catalog-v1-collection.types.js} +1 -1
  39. package/build/es/src/stores-catalog-v1-collection.types.js.map +1 -0
  40. package/build/es/src/{stores-poc-v1-collection.universal.d.ts → stores-catalog-v1-collection.universal.d.ts} +63 -38
  41. package/build/es/src/{stores-poc-v1-collection.universal.js → stores-catalog-v1-collection.universal.js} +53 -53
  42. package/build/es/src/stores-catalog-v1-collection.universal.js.map +1 -0
  43. package/build/es/src/stores-catalog-v1-product-products.public.d.ts +6 -0
  44. package/build/es/src/stores-catalog-v1-product-products.public.js +13 -0
  45. package/build/es/src/stores-catalog-v1-product-products.public.js.map +1 -0
  46. package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +1411 -0
  47. package/build/es/src/{stores-poc-v1-product.universal.js → stores-catalog-v1-product-products.universal.js} +58 -55
  48. package/build/es/src/stores-catalog-v1-product-products.universal.js.map +1 -0
  49. package/build/es/src/stores-catalog-v1-product.http.d.ts +62 -0
  50. package/build/es/src/stores-catalog-v1-product.http.js +751 -0
  51. package/build/es/src/stores-catalog-v1-product.http.js.map +1 -0
  52. package/build/es/src/stores-catalog-v1-product.types.d.ts +1371 -0
  53. package/build/es/src/{stores-poc-v1-product.types.js → stores-catalog-v1-product.types.js} +1 -1
  54. package/build/es/src/stores-catalog-v1-product.types.js.map +1 -0
  55. package/package.json +4 -4
  56. package/build/cjs/src/stores-poc-v1-collection.http.js.map +0 -1
  57. package/build/cjs/src/stores-poc-v1-collection.public.d.ts +0 -6
  58. package/build/cjs/src/stores-poc-v1-collection.public.js +0 -20
  59. package/build/cjs/src/stores-poc-v1-collection.public.js.map +0 -1
  60. package/build/cjs/src/stores-poc-v1-collection.types.js.map +0 -1
  61. package/build/cjs/src/stores-poc-v1-collection.universal.js.map +0 -1
  62. package/build/cjs/src/stores-poc-v1-product.http.d.ts +0 -4
  63. package/build/cjs/src/stores-poc-v1-product.http.js +0 -143
  64. package/build/cjs/src/stores-poc-v1-product.http.js.map +0 -1
  65. package/build/cjs/src/stores-poc-v1-product.public.d.ts +0 -6
  66. package/build/cjs/src/stores-poc-v1-product.public.js +0 -25
  67. package/build/cjs/src/stores-poc-v1-product.public.js.map +0 -1
  68. package/build/cjs/src/stores-poc-v1-product.types.d.ts +0 -470
  69. package/build/cjs/src/stores-poc-v1-product.types.js.map +0 -1
  70. package/build/cjs/src/stores-poc-v1-product.universal.d.ts +0 -549
  71. package/build/cjs/src/stores-poc-v1-product.universal.js.map +0 -1
  72. package/build/es/src/stores-poc-v1-collection.http.js.map +0 -1
  73. package/build/es/src/stores-poc-v1-collection.public.d.ts +0 -6
  74. package/build/es/src/stores-poc-v1-collection.public.js +0 -13
  75. package/build/es/src/stores-poc-v1-collection.public.js.map +0 -1
  76. package/build/es/src/stores-poc-v1-collection.types.js.map +0 -1
  77. package/build/es/src/stores-poc-v1-collection.universal.js.map +0 -1
  78. package/build/es/src/stores-poc-v1-product.http.d.ts +0 -4
  79. package/build/es/src/stores-poc-v1-product.http.js +0 -138
  80. package/build/es/src/stores-poc-v1-product.http.js.map +0 -1
  81. package/build/es/src/stores-poc-v1-product.public.d.ts +0 -6
  82. package/build/es/src/stores-poc-v1-product.public.js +0 -13
  83. package/build/es/src/stores-poc-v1-product.public.js.map +0 -1
  84. package/build/es/src/stores-poc-v1-product.types.d.ts +0 -470
  85. package/build/es/src/stores-poc-v1-product.types.js.map +0 -1
  86. package/build/es/src/stores-poc-v1-product.universal.d.ts +0 -549
  87. package/build/es/src/stores-poc-v1-product.universal.js.map +0 -1
@@ -66,4 +66,4 @@ var SortOrder;
66
66
  SortOrder["ASC"] = "ASC";
67
67
  SortOrder["DESC"] = "DESC";
68
68
  })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
69
- //# sourceMappingURL=stores-poc-v1-product.types.js.map
69
+ //# sourceMappingURL=stores-catalog-v1-product.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":";;;AA8HA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AA4BD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AA4ED,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,GAAf,uBAAe,KAAf,uBAAe,QAuB1B;AAyDD,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,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AA8BD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iEAAmD,CAAA;IACnD,qCAAuB,CAAA;IACvB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAsCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAyrBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -1,2 +1,2 @@
1
- export * as collections from './src/stores-poc-v1-collection.public';
2
- export * as products from './src/stores-poc-v1-product.public';
1
+ export * as collections from './src/stores-catalog-v1-collection.public';
2
+ export * as products from './src/stores-catalog-v1-product-products.public';
package/build/es/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * as collections from './src/stores-poc-v1-collection.public';
2
- export * as products from './src/stores-poc-v1-product.public';
1
+ export * as collections from './src/stores-catalog-v1-collection.public';
2
+ export * as products from './src/stores-catalog-v1-product-products.public';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,QAAQ,MAAM,iDAAiD,CAAC"}
@@ -1,4 +1,9 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { GetCollectionRequest, GetCollectionResponse, QueryCollectionsRequest, QueryCollectionsResponse } from './stores-poc-v1-collection.types';
3
- export declare function getCollection(payload: GetCollectionRequest): RequestOptionsFactory<GetCollectionResponse>;
2
+ import { GetCollectionRequest, GetCollectionResponse, QueryCollectionsRequest, QueryCollectionsResponse } from './stores-catalog-v1-collection.types';
3
+ /**
4
+ * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
5
+ * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
6
+ */
4
7
  export declare function queryCollections(payload: QueryCollectionsRequest): RequestOptionsFactory<QueryCollectionsResponse>;
8
+ /** Retrieves a collection with the provided ID. */
9
+ export declare function getCollection(payload: GetCollectionRequest): RequestOptionsFactory<GetCollectionResponse>;
@@ -5,89 +5,92 @@ const _getCollectionRequest = {};
5
5
  const _getCollectionResponse = {};
6
6
  const _queryCollectionsRequest = {};
7
7
  const _queryCollectionsResponse = {};
8
- function resolveWixCoreservicesMetroinspectorV1CollectionsPocCollectionsPocServiceUrl(opts) {
8
+ function resolveWixCatalogApiV2CollectionReadApiUrl(opts) {
9
9
  const domainToMappings = {
10
- 'apps._base_domain_': [
10
+ 'api._api_base_domain_': [
11
11
  {
12
- srcPath: '/_api/metro-inspector',
13
- destPath: '/api',
12
+ srcPath: '/wix-ecommerce-catalog-reader-web',
13
+ destPath: '',
14
14
  },
15
15
  ],
16
- 'api._api_base_domain_': [
16
+ 'www._base_domain_': [
17
17
  {
18
- srcPath: '/metro-inspector',
18
+ srcPath: '/wix-ecommerce-catalog-reader-web',
19
19
  destPath: '',
20
20
  },
21
- ],
22
- _: [
23
21
  {
24
- srcPath: '/metro-inspector',
25
- destPath: '/api',
22
+ srcPath: '/_api/catalog-reader-server',
23
+ destPath: '',
26
24
  },
25
+ ],
26
+ '*.dev.wix-code.com': [
27
27
  {
28
- srcPath: '/_api/metro-inspector',
29
- destPath: '/api',
28
+ srcPath: '/_api/catalog-reader-server',
29
+ destPath: '',
30
30
  },
31
31
  ],
32
- 'www._base_domain_': [
32
+ _: [
33
33
  {
34
- srcPath: '/metro-inspector',
35
- destPath: '/api',
34
+ srcPath: '/_api/catalog-reader-server',
35
+ destPath: '',
36
36
  },
37
37
  ],
38
38
  'manage._base_domain_': [
39
39
  {
40
- srcPath: '/metro-inspector',
40
+ srcPath: '/wix-ecommerce-catalog-reader-web',
41
41
  destPath: '',
42
42
  },
43
- ],
44
- 'www.wixgateway.com': [
45
43
  {
46
- srcPath: '/_api/metro-inspector',
47
- destPath: '/api',
44
+ srcPath: '/_api/catalog-reader-server',
45
+ destPath: '',
48
46
  },
49
47
  ],
50
48
  };
51
49
  return resolveUrl(Object.assign(opts, { domainToMappings }));
52
50
  }
53
- export function getCollection(payload) {
54
- const { toJSON: toReq, fromJSON: fromReq } = serializer(_getCollectionRequest, {});
55
- const { fromJSON: fromRes } = serializer(_getCollectionResponse, {});
56
- function __getCollection({ host }) {
51
+ /**
52
+ * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
53
+ * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
54
+ */
55
+ export function queryCollections(payload) {
56
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryCollectionsRequest, {});
57
+ const { fromJSON: fromRes } = serializer(_queryCollectionsResponse, {});
58
+ function __queryCollections({ host }) {
57
59
  const serializedData = toReq(payload);
58
60
  const metadata = {
59
- method: 'GET',
60
- url: resolveWixCoreservicesMetroinspectorV1CollectionsPocCollectionsPocServiceUrl({
61
- protoPath: '/api/v1/collections-stores-poc/{collectionId}',
61
+ method: 'POST',
62
+ url: resolveWixCatalogApiV2CollectionReadApiUrl({
63
+ protoPath: '/v2/collections/query',
62
64
  data: serializedData,
63
65
  host,
64
66
  }),
65
- params: toURLSearchParams(serializedData),
67
+ data: serializedData,
66
68
  transformResponse: fromRes,
67
69
  };
68
70
  return metadata;
69
71
  }
70
- __getCollection.fromReq = fromReq;
71
- return __getCollection;
72
+ __queryCollections.fromReq = fromReq;
73
+ return __queryCollections;
72
74
  }
73
- export function queryCollections(payload) {
74
- const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryCollectionsRequest, {});
75
- const { fromJSON: fromRes } = serializer(_queryCollectionsResponse, {});
76
- function __queryCollections({ host }) {
75
+ /** Retrieves a collection with the provided ID. */
76
+ export function getCollection(payload) {
77
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_getCollectionRequest, {});
78
+ const { fromJSON: fromRes } = serializer(_getCollectionResponse, {});
79
+ function __getCollection({ host }) {
77
80
  const serializedData = toReq(payload);
78
81
  const metadata = {
79
- method: 'POST',
80
- url: resolveWixCoreservicesMetroinspectorV1CollectionsPocCollectionsPocServiceUrl({
81
- protoPath: '/api/v1/collections-stores-poc/query',
82
+ method: 'GET',
83
+ url: resolveWixCatalogApiV2CollectionReadApiUrl({
84
+ protoPath: '/v2/collections/{id}',
82
85
  data: serializedData,
83
86
  host,
84
87
  }),
85
- data: serializedData,
88
+ params: toURLSearchParams(serializedData),
86
89
  transformResponse: fromRes,
87
90
  };
88
91
  return metadata;
89
92
  }
90
- __queryCollections.fromReq = fromReq;
91
- return __queryCollections;
93
+ __getCollection.fromReq = fromReq;
94
+ return __getCollection;
92
95
  }
93
- //# sourceMappingURL=stores-poc-v1-collection.http.js.map
96
+ //# sourceMappingURL=stores-catalog-v1-collection.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-collection.http.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAErC,SAAS,0CAA0C,CACjD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,C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AAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAElC,OAAO,eAAe,CAAC;AACzB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ export declare function queryCollections(httpClient: HttpClient): () => import("./stores-catalog-v1-collection.universal").CollectionsQueryBuilder;
3
+ export declare function getCollection(httpClient: HttpClient): (_id: string) => Promise<import("./stores-catalog-v1-collection.universal").Collection>;
4
+ export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection.universal';
5
+ export { Collection, Media, MediaItem, MediaItemItemOneOf, MediaItemUrlAndSize, MediaItemVideo, SeoSchema, Tag, Settings, QueryCollectionsRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryCollectionsResponse, PlatformPagingMetadata, Cursors, GetCollectionRequest, GetCollectionResponse, CollectionsQueryResult, CollectionsQueryBuilder, } from './stores-catalog-v1-collection.universal';
@@ -0,0 +1,13 @@
1
+ import { queryCollections as universalQueryCollections, getCollection as universalGetCollection, } from './stores-catalog-v1-collection.universal';
2
+ export function queryCollections(httpClient) {
3
+ return () => universalQueryCollections(
4
+ // @ts-ignore
5
+ { httpClient });
6
+ }
7
+ export function getCollection(httpClient) {
8
+ return (_id) => universalGetCollection(_id,
9
+ // @ts-ignore
10
+ { httpClient });
11
+ }
12
+ export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection.universal';
13
+ //# sourceMappingURL=stores-catalog-v1-collection.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-collection.public.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,IAAI,yBAAyB,EAC7C,aAAa,IAAI,sBAAsB,GACxC,MAAM,0CAA0C,CAAC;AAElD,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,GAAG,EAAE,CACV,yBAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,sBAAsB,CACpB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,aAAa,EACb,SAAS,GACV,MAAM,0CAA0C,CAAC"}
@@ -76,26 +76,37 @@ export interface MediaItemVideo {
76
76
  /** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`. */
77
77
  stillFrameMediaId?: string;
78
78
  }
79
- export interface GetCollectionRequest {
80
- /** Requested collection ID. */
81
- collectionId: string;
82
- /**
83
- * Whether to return the `collection.numberOfProducts` field in the response.
84
- * Defaults to false, in which case the value of `collection.numberOfProducts` will be 0.
85
- */
86
- includeNumberOfProducts?: boolean;
87
- /** Include description in response. When False, description will be null */
88
- includeDescription?: boolean;
89
- }
90
- export interface GetCollectionResponse {
91
- collection?: Collection;
79
+ /**
80
+ * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
81
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
82
+ * 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.
83
+ */
84
+ export interface SeoSchema {
85
+ /** SEO tags information. */
86
+ tags?: Tag[];
87
+ /** SEO general settings. */
88
+ settings?: Settings;
89
+ }
90
+ export interface Tag {
91
+ /** SEO tag type. Supported values: `title`, `meta`, `script`, `link`. */
92
+ type?: string;
93
+ /** SEO tag attributes/properties (name, content, rel, href). */
94
+ props?: Record<string, any> | null;
95
+ /** Tag meta data, e.g. {height: 300, width: 240}. */
96
+ meta?: Record<string, any> | null;
97
+ /** Tag inner content e.g. `<title> inner content </title>`. */
98
+ children?: string;
99
+ /** Whether the tag is a custom tag. */
100
+ custom?: boolean;
101
+ /** Whether the tag is disabled. */
102
+ disabled?: boolean;
103
+ }
104
+ export interface Settings {
105
+ /** disable auto creation of 301 redirects on slug changes (enabled by default). */
106
+ preventAutoRedirect?: boolean;
92
107
  }
93
108
  export interface QueryCollectionsRequest {
94
109
  query?: PlatformQuery;
95
- /** Whether number of products should be included in the response. */
96
- includeNumberOfProducts?: boolean;
97
- /** Include description in response. When False, description will be null */
98
- includeDescription?: boolean;
99
110
  }
100
111
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
101
112
  /** Filter object. */
@@ -104,11 +115,15 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
104
115
  sort?: Sorting[];
105
116
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
106
117
  paging?: PlatformPaging;
118
+ /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
119
+ cursorPaging?: CursorPaging;
107
120
  }
108
121
  /** @oneof */
109
122
  export interface PlatformQueryPagingMethodOneOf {
110
123
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
111
124
  paging?: PlatformPaging;
125
+ /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
126
+ cursorPaging?: CursorPaging;
112
127
  }
113
128
  export interface Sorting {
114
129
  /** Name of the field to sort by. */
@@ -126,6 +141,18 @@ export interface PlatformPaging {
126
141
  /** Number of items to skip in the current sort order. */
127
142
  offset?: number | null;
128
143
  }
144
+ export interface CursorPaging {
145
+ /** Number of items to load. */
146
+ limit?: number | null;
147
+ /**
148
+ * Pointer to the next or previous page in the list of results.
149
+ *
150
+ * You can get the relevant cursor token
151
+ * from the `pagingMetadata` object in the previous call's response.
152
+ * Not relevant for the first request.
153
+ */
154
+ cursor?: string | null;
155
+ }
129
156
  export interface QueryCollectionsResponse {
130
157
  collections?: Collection[];
131
158
  metadata?: PlatformPagingMetadata;
@@ -146,3 +173,10 @@ export interface Cursors {
146
173
  /** Cursor pointing to previous page in the list of results. */
147
174
  prev?: string | null;
148
175
  }
176
+ export interface GetCollectionRequest {
177
+ /** Requested collection ID. */
178
+ id: string;
179
+ }
180
+ export interface GetCollectionResponse {
181
+ collection?: Collection;
182
+ }
@@ -12,4 +12,4 @@ export var SortOrder;
12
12
  SortOrder["ASC"] = "ASC";
13
13
  SortOrder["DESC"] = "DESC";
14
14
  })(SortOrder || (SortOrder = {}));
15
- //# sourceMappingURL=stores-poc-v1-collection.types.js.map
15
+ //# sourceMappingURL=stores-catalog-v1-collection.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-collection.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.types.ts"],"names":[],"mappings":"AAqEA,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;AAuED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
@@ -82,26 +82,37 @@ export interface MediaItemVideo {
82
82
  /** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`. */
83
83
  stillFrameMediaId?: string;
84
84
  }
85
- export interface GetCollectionRequest {
86
- /** Requested collection ID. */
87
- collectionId: string;
88
- /**
89
- * Whether to return the `collection.numberOfProducts` field in the response.
90
- * Defaults to false, in which case the value of `collection.numberOfProducts` will be 0.
91
- */
92
- includeNumberOfProducts?: boolean;
93
- /** Include description in response. When False, description will be null */
94
- includeDescription?: boolean;
95
- }
96
- export interface GetCollectionResponse {
97
- collection?: Collection;
85
+ /**
86
+ * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
87
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
88
+ * 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.
89
+ */
90
+ export interface SeoSchema {
91
+ /** SEO tags information. */
92
+ tags?: Tag[];
93
+ /** SEO general settings. */
94
+ settings?: Settings;
95
+ }
96
+ export interface Tag {
97
+ /** SEO tag type. Supported values: `title`, `meta`, `script`, `link`. */
98
+ type?: string;
99
+ /** SEO tag attributes/properties (name, content, rel, href). */
100
+ props?: Record<string, any> | null;
101
+ /** Tag meta data, e.g. {height: 300, width: 240}. */
102
+ meta?: Record<string, any> | null;
103
+ /** Tag inner content e.g. `<title> inner content </title>`. */
104
+ children?: string;
105
+ /** Whether the tag is a custom tag. */
106
+ custom?: boolean;
107
+ /** Whether the tag is disabled. */
108
+ disabled?: boolean;
109
+ }
110
+ export interface Settings {
111
+ /** disable auto creation of 301 redirects on slug changes (enabled by default). */
112
+ preventAutoRedirect?: boolean;
98
113
  }
99
114
  export interface QueryCollectionsRequest {
100
115
  query?: PlatformQuery;
101
- /** Whether number of products should be included in the response. */
102
- includeNumberOfProducts?: boolean;
103
- /** Include description in response. When False, description will be null */
104
- includeDescription?: boolean;
105
116
  }
106
117
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
107
118
  /** Filter object. */
@@ -110,11 +121,15 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
110
121
  sort?: Sorting[];
111
122
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
112
123
  paging?: PlatformPaging;
124
+ /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
125
+ cursorPaging?: CursorPaging;
113
126
  }
114
127
  /** @oneof */
115
128
  export interface PlatformQueryPagingMethodOneOf {
116
129
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
117
130
  paging?: PlatformPaging;
131
+ /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
132
+ cursorPaging?: CursorPaging;
118
133
  }
119
134
  export interface Sorting {
120
135
  /** Name of the field to sort by. */
@@ -132,6 +147,18 @@ export interface PlatformPaging {
132
147
  /** Number of items to skip in the current sort order. */
133
148
  offset?: number | null;
134
149
  }
150
+ export interface CursorPaging {
151
+ /** Number of items to load. */
152
+ limit?: number | null;
153
+ /**
154
+ * Pointer to the next or previous page in the list of results.
155
+ *
156
+ * You can get the relevant cursor token
157
+ * from the `pagingMetadata` object in the previous call's response.
158
+ * Not relevant for the first request.
159
+ */
160
+ cursor?: string | null;
161
+ }
135
162
  export interface QueryCollectionsResponse {
136
163
  collections?: Collection[];
137
164
  metadata?: PlatformPagingMetadata;
@@ -152,32 +179,25 @@ export interface Cursors {
152
179
  /** Cursor pointing to previous page in the list of results. */
153
180
  prev?: string | null;
154
181
  }
155
- /** @param collectionId - Requested collection ID.
156
- * @public
157
- * @requiredField collectionId
158
- */
159
- export declare function getCollection(collectionId: string, options?: GetCollectionOptions): Promise<Collection>;
160
- export interface GetCollectionOptions {
161
- /**
162
- * Whether to return the `collection.numberOfProducts` field in the response.
163
- * Defaults to false, in which case the value of `collection.numberOfProducts` will be 0.
164
- */
165
- includeNumberOfProducts?: boolean;
166
- /** Include description in response. When False, description will be null */
167
- includeDescription?: boolean;
182
+ export interface GetCollectionRequest {
183
+ /** Requested collection ID. */
184
+ _id: string;
185
+ }
186
+ export interface GetCollectionResponse {
187
+ collection?: Collection;
168
188
  }
169
- /** @public */
189
+ /**
190
+ * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
191
+ * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
192
+ * @public */
170
193
  export declare function queryCollections(): CollectionsQueryBuilder;
171
- interface QueryOffsetResult {
172
- currentPage: number;
173
- totalPages: number;
174
- totalCount: number;
194
+ interface QueryCursorResult {
175
195
  hasNext: () => boolean;
176
196
  hasPrev: () => boolean;
177
197
  length: number;
178
198
  pageSize: number;
179
199
  }
180
- export interface CollectionsQueryResult extends QueryOffsetResult {
200
+ export interface CollectionsQueryResult extends QueryCursorResult {
181
201
  items: Collection[];
182
202
  query: CollectionsQueryBuilder;
183
203
  next: () => Promise<CollectionsQueryResult>;
@@ -208,8 +228,13 @@ export interface CollectionsQueryBuilder {
208
228
  descending: (...propertyNames: string[]) => CollectionsQueryBuilder;
209
229
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
210
230
  limit: (limit: number) => CollectionsQueryBuilder;
211
- /** @param skip - Number of items to skip in the query results before returning the results. */
212
- skip: (skip: number) => CollectionsQueryBuilder;
213
231
  find: () => Promise<CollectionsQueryResult>;
214
232
  }
233
+ /**
234
+ * Retrieves a collection with the provided ID.
235
+ * @param _id - Requested collection ID.
236
+ * @public
237
+ * @requiredField _id
238
+ */
239
+ export declare function getCollection(_id: string): Promise<Collection>;
215
240
  export {};
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
11
- import * as ambassadorWixStoresPocV1Collection from './stores-poc-v1-collection.http';
11
+ import * as ambassadorWixStoresCatalogV1Collection from './stores-catalog-v1-collection.http';
12
12
  // @ts-ignore
13
13
  import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
14
14
  let __verbose = false;
@@ -44,55 +44,10 @@ const _getCollectionRequest = {};
44
44
  const _getCollectionResponse = {};
45
45
  const _queryCollectionsRequest = {};
46
46
  const _queryCollectionsResponse = {};
47
- /** @param collectionId - Requested collection ID.
48
- * @public
49
- * @requiredField collectionId
50
- */
51
- export function getCollection(collectionId, options) {
52
- return __awaiter(this, arguments, void 0, function* () {
53
- const requestTransformation = {
54
- collectionId: '$[0]',
55
- includeNumberOfProducts: '$[1].includeNumberOfProducts',
56
- includeDescription: '$[1].includeDescription',
57
- };
58
- const responseTransformation = '$.collection';
59
- // @ts-ignore
60
- const httpClient = arguments[2].httpClient;
61
- const { toAmbassadorRequest } = serializer({
62
- rootSchema: _getCollectionRequest,
63
- depSchemas: {},
64
- fqdnTransformation: {
65
- paths: [],
66
- transformation: _fromVeloEntity,
67
- },
68
- customTransformation: requestTransformation,
69
- });
70
- const { fromJSON } = serializer({
71
- rootSchema: _getCollectionResponse,
72
- depSchemas: {},
73
- fqdnTransformation: {
74
- paths: [...['collection']],
75
- transformation: _toVeloEntity,
76
- },
77
- customTransformation: responseTransformation,
78
- });
79
- const payload = toAmbassadorRequest([collectionId, options]);
80
- const reqOpts = ambassadorWixStoresPocV1Collection.getCollection(payload);
81
- __log(`"GetCollection" sending request with: ${__inspect(reqOpts)}`);
82
- try {
83
- const { data } = yield httpClient.request(reqOpts);
84
- return fromJSON(data);
85
- }
86
- catch (err) {
87
- const transformedError = transformError(err, requestTransformation, [
88
- 'collectionId',
89
- 'options',
90
- ]);
91
- throw transformedError;
92
- }
93
- });
94
- }
95
- /** @public */
47
+ /**
48
+ * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
49
+ * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
50
+ * @public */
96
51
  export function queryCollections() {
97
52
  const requestTransformation = { '*': '$[1]', query: '$[0]' };
98
53
  const responseTransformation = {
@@ -121,7 +76,7 @@ export function queryCollections() {
121
76
  });
122
77
  return wrapWithQueryBuilder({
123
78
  func: (payload) => {
124
- const reqOpts = ambassadorWixStoresPocV1Collection.queryCollections(payload);
79
+ const reqOpts = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
125
80
  return httpClient.request(reqOpts);
126
81
  },
127
82
  requestTransformer: (...args) => toAmbassadorRequest(args),
@@ -130,8 +85,53 @@ export function queryCollections() {
130
85
  const transformedError = transformError(err, requestTransformation);
131
86
  throw transformedError;
132
87
  },
133
- pagingMethod: 'OFFSET',
88
+ pagingMethod: 'CURSOR',
134
89
  transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
135
90
  })({ cursorWithEmptyFilterAndSort: true });
136
91
  }
137
- //# sourceMappingURL=stores-poc-v1-collection.universal.js.map
92
+ /**
93
+ * Retrieves a collection with the provided ID.
94
+ * @param _id - Requested collection ID.
95
+ * @public
96
+ * @requiredField _id
97
+ */
98
+ export function getCollection(_id) {
99
+ return __awaiter(this, arguments, void 0, function* () {
100
+ const requestTransformation = { id: '$[0]' };
101
+ const responseTransformation = '$.collection';
102
+ // @ts-ignore
103
+ const httpClient = arguments[1].httpClient;
104
+ const { toAmbassadorRequest } = serializer({
105
+ rootSchema: _getCollectionRequest,
106
+ depSchemas: {},
107
+ fqdnTransformation: {
108
+ paths: [],
109
+ transformation: _fromVeloEntity,
110
+ },
111
+ customTransformation: requestTransformation,
112
+ });
113
+ const { fromJSON } = serializer({
114
+ rootSchema: _getCollectionResponse,
115
+ depSchemas: {},
116
+ fqdnTransformation: {
117
+ paths: [...['collection']],
118
+ transformation: _toVeloEntity,
119
+ },
120
+ customTransformation: responseTransformation,
121
+ });
122
+ const payload = toAmbassadorRequest([_id]);
123
+ const reqOpts = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
124
+ __log(`"GetCollection" sending request with: ${__inspect(reqOpts)}`);
125
+ try {
126
+ const { data } = yield httpClient.request(reqOpts);
127
+ return fromJSON(data);
128
+ }
129
+ catch (err) {
130
+ const transformedError = transformError(err, requestTransformation, [
131
+ '_id',
132
+ ]);
133
+ throw transformedError;
134
+ }
135
+ });
136
+ }
137
+ //# sourceMappingURL=stores-catalog-v1-collection.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-collection.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAA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,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;aACN,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;SACxB;IACH,CAAC;CAAA"}
@@ -0,0 +1,6 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { GetProductOptions } from './stores-catalog-v1-product-products.universal';
3
+ export declare function queryProducts(httpClient: HttpClient): () => import("./stores-catalog-v1-product-products.universal").ProductsQueryBuilder;
4
+ export declare function getProduct(httpClient: HttpClient): (_id: string, options?: GetProductOptions | undefined) => Promise<import("./stores-catalog-v1-product-products.universal").GetProductResponse>;
5
+ export { ProductType, InventoryStatus, MeasurementUnit, MediaItemType, OptionType, DiscountType, SortOrder, } from './stores-catalog-v1-product-products.universal';
6
+ export { Product, NumericPropertyRange, Stock, PriceData, FormattedPrice, CostAndProfitData, PricePerUnitData, AdditionalInfoSection, Ribbon, Media, MediaItem, MediaItemItemOneOf, MediaItemUrlAndSize, MediaItemVideo, CustomTextField, ProductOption, Choice, PageUrl, Discount, Variant, VariantDataWithNoStock, VariantStock, SeoSchema, Tag, Settings, CreateProductRequest, CreateProductResponse, UpdateProductRequest, UpdateProductResponse, DeleteProductRequest, DeleteProductResponse, BulkDeleteProductsRequest, BulkDeleteProductsResponse, UpdateVariantsRequest, VariantOverride, UpdateVariantsResponse, ResetAllVariantDataRequest, ResetAllVariantDataResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, RemoveProductsFromCollectionRequest, RemoveProductsFromCollectionResponse, AddProductMediaRequest, MediaDataForWrite, MediaDataForWriteMediaSourceOneOf, OptionAndChoice, AddProductMediaResponse, RemoveProductMediaRequest, RemoveProductMediaResponse, AddProductMediaToChoicesRequest, MediaAssignmentToChoice, AddProductMediaToChoicesResponse, RemoveProductMediaFromChoicesRequest, RemoveProductMediaFromChoicesResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, SetCustomFieldsRequest, SetCustomFieldsResponse, RemoveCustomFieldsRequest, RemoveCustomFieldsResponse, RemoveProductBrandRequest, RemoveProductBrandResponse, BulkSetCustomFieldsRequest, BulkSetCustomFieldsResponse, BulkRemoveCustomFieldsRequest, BulkRemoveCustomFieldsResponse, CreateCollectionRequest, Collection, CreateCollectionResponse, UpdateCollectionRequest, UpdateCollectionResponse, DeleteCollectionRequest, DeleteCollectionResponse, RemoveProductRibbonRequest, RemoveProductRibbonResponse, BulkUpdateProductsRequest, SetValue, SetValueValueOneOf, BulkUpdateProductsResponse, BulkProductResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateProductsByFilterSyncRequest, BulkUpdateProductsByFilterSyncResponse, AllowedProductsCountLimitExceededErrorData, BulkAdjustProductPropertiesRequest, AdjustValue, AdjustValueValueOneOf, PropertyAdjustmentData, PropertyAdjustmentDataByOneOf, PercentageData, BulkAdjustProductPropertiesResponse, BulkAdjustProductPropertiesByFilterSyncRequest, BulkAdjustProductPropertiesByFilterSyncResponse, ProductCreated, ProductChanged, ProductDeleted, CollectionCreated, CollectionChanged, CollectionDeleted, VariantsChanged, VariantChanged, QueryProductsRequest, Query, Paging, QueryProductsResponse, PagingMetadata, QueryProductsPlatformizedRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryProductsPlatformizedResponse, PlatformPagingMetadata, Cursors, QueryProductsWithBigPageLimitRequest, QueryWithBigPageLimit, PagingWithBigLimit, GetProductsRequest, GetProductsResponse, GetProductRequest, GetProductResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCollectionsPlatformizedRequest, QueryCollectionsPlatformizedResponse, GetCollectionRequest, GetCollectionResponse, GetCollectionBySlugRequest, GetCollectionBySlugResponse, ProductOptionsAvailabilityRequest, ProductOptionsAvailabilityResponse, VariantData, QueryProductVariantsRequest, QueryProductVariantsResponse, QueryStoreVariantsRequest, QueryStoreVariantsResponse, StoreVariant, PlatformMedia, PlatformMediaMediaOneOf, VideoResolution, PreorderInfo, QueryStoreVariantsWithBigLimitRequest, UnlimitedPlatformQuery, UnlimitedPlatformQueryPagingMethodOneOf, UnlimitedPlatformPaging, UnlimitedPlatformCursorPaging, GetStoreVariantRequest, GetStoreVariantResponse, QueryCustomFieldsRequest, QueryCustomFieldsResponse, BulkQueryCustomFieldsRequest, BulkQueryCustomFieldsResponse, CustomFieldsContainer, AggregateProductsRequest, AggregateProductsResponse, ProductsQueryResult, ProductsQueryBuilder, GetProductOptions, } from './stores-catalog-v1-product-products.universal';