@wix/auto_sdk_stores_collections 1.0.10 → 1.0.12

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 (119) hide show
  1. package/build/cjs/index.d.ts +34 -1
  2. package/build/cjs/index.js +325 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +228 -1
  5. package/build/cjs/meta.js +238 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/{src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-DXVGSHC4.d.ts} +31 -57
  8. package/build/es/index.d.mts +34 -0
  9. package/build/es/index.mjs +300 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/es/{src/stores-catalog-v1-collection-collections.types.d.ts → meta.d.mts} +45 -81
  12. package/build/es/meta.mjs +212 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/es/{src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-DXVGSHC4.d.mts} +31 -57
  15. package/build/internal/cjs/index.d.ts +34 -1
  16. package/build/internal/cjs/index.js +325 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +228 -1
  19. package/build/internal/cjs/meta.js +238 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/internal/cjs/{src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-BdGGTv5j.d.ts} +31 -57
  22. package/build/internal/es/index.d.mts +34 -0
  23. package/build/internal/es/index.mjs +300 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/{cjs/src/stores-catalog-v1-collection-collections.types.d.ts → internal/es/meta.d.mts} +45 -81
  26. package/build/internal/es/meta.mjs +212 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/internal/es/{src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-BdGGTv5j.d.mts} +31 -57
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  34. package/build/cjs/src/stores-catalog-v1-collection-collections.context.js +0 -12
  35. package/build/cjs/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  36. package/build/cjs/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  37. package/build/cjs/src/stores-catalog-v1-collection-collections.http.js +0 -162
  38. package/build/cjs/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  39. package/build/cjs/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  40. package/build/cjs/src/stores-catalog-v1-collection-collections.meta.js +0 -85
  41. package/build/cjs/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  42. package/build/cjs/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  43. package/build/cjs/src/stores-catalog-v1-collection-collections.public.js +0 -27
  44. package/build/cjs/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  45. package/build/cjs/src/stores-catalog-v1-collection-collections.types.js +0 -23
  46. package/build/cjs/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  47. package/build/cjs/src/stores-catalog-v1-collection-collections.universal.js +0 -160
  48. package/build/cjs/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  59. package/build/es/src/stores-catalog-v1-collection-collections.context.js +0 -7
  60. package/build/es/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  61. package/build/es/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  62. package/build/es/src/stores-catalog-v1-collection-collections.http.js +0 -156
  63. package/build/es/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  64. package/build/es/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  65. package/build/es/src/stores-catalog-v1-collection-collections.meta.js +0 -56
  66. package/build/es/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  67. package/build/es/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  68. package/build/es/src/stores-catalog-v1-collection-collections.public.js +0 -19
  69. package/build/es/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  70. package/build/es/src/stores-catalog-v1-collection-collections.types.js +0 -20
  71. package/build/es/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  72. package/build/es/src/stores-catalog-v1-collection-collections.universal.js +0 -131
  73. package/build/es/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
  74. package/build/internal/cjs/index.typings.d.ts +0 -1
  75. package/build/internal/cjs/index.typings.js +0 -18
  76. package/build/internal/cjs/index.typings.js.map +0 -1
  77. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  78. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.context.js +0 -12
  79. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  80. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  81. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.http.js +0 -162
  82. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  83. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  84. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.meta.js +0 -85
  85. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  86. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  87. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.public.js +0 -27
  88. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  89. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.types.d.ts +0 -264
  90. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.types.js +0 -23
  91. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  92. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.universal.js +0 -160
  93. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  104. package/build/internal/es/src/stores-catalog-v1-collection-collections.context.js +0 -7
  105. package/build/internal/es/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  106. package/build/internal/es/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  107. package/build/internal/es/src/stores-catalog-v1-collection-collections.http.js +0 -156
  108. package/build/internal/es/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  109. package/build/internal/es/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  110. package/build/internal/es/src/stores-catalog-v1-collection-collections.meta.js +0 -56
  111. package/build/internal/es/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  112. package/build/internal/es/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  113. package/build/internal/es/src/stores-catalog-v1-collection-collections.public.js +0 -19
  114. package/build/internal/es/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  115. package/build/internal/es/src/stores-catalog-v1-collection-collections.types.d.ts +0 -264
  116. package/build/internal/es/src/stores-catalog-v1-collection-collections.types.js +0 -20
  117. package/build/internal/es/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  118. package/build/internal/es/src/stores-catalog-v1-collection-collections.universal.js +0 -131
  119. package/build/internal/es/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
@@ -1,30 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { Collection, CollectionsQueryBuilder, GetCollectionBySlugResponse } from './stores-catalog-v1-collection-collections.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function queryCollections(httpClient: HttpClient): QueryCollectionsSignature;
7
- interface QueryCollectionsSignature {
8
- /**
9
- * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
10
- * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
11
- */
12
- (): CollectionsQueryBuilder;
13
- }
14
- export declare function getCollection(httpClient: HttpClient): GetCollectionSignature;
15
- interface GetCollectionSignature {
16
- /**
17
- * Retrieves a collection with the provided ID.
18
- * @param - Requested collection ID.
19
- */
20
- (_id: string): Promise<Collection>;
21
- }
22
- export declare function getCollectionBySlug(httpClient: HttpClient): GetCollectionBySlugSignature;
23
- interface GetCollectionBySlugSignature {
24
- /**
25
- * Retrieves a collection with the provided slug.
26
- * @param - Slug of the collection to retrieve.
27
- */
28
- (slug: string): Promise<GetCollectionBySlugResponse>;
29
- }
30
- export { Collection, CollectionsQueryBuilder, CollectionsQueryResult, CursorPaging, Cursors, GetCollectionBySlugRequest, GetCollectionBySlugResponse, GetCollectionRequest, GetCollectionResponse, Keyword, Media, MediaItem, MediaItemItemOneOf, MediaItemType, MediaItemUrlAndSize, MediaItemVideo, PlatformPaging, PlatformPagingMetadata, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCollectionsRequest, QueryCollectionsResponse, SeoSchema, Settings, SortOrder, Sorting, Tag, } from './stores-catalog-v1-collection-collections.universal.js';
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.MediaItemType = exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = exports.__metadata = void 0;
4
- const stores_catalog_v1_collection_collections_universal_js_1 = require("./stores-catalog-v1-collection-collections.universal.js");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/stores' };
6
- function queryCollections(httpClient) {
7
- return () => (0, stores_catalog_v1_collection_collections_universal_js_1.queryCollections)(
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.queryCollections = queryCollections;
12
- function getCollection(httpClient) {
13
- return (_id) => (0, stores_catalog_v1_collection_collections_universal_js_1.getCollection)(_id,
14
- // @ts-ignore
15
- { httpClient });
16
- }
17
- exports.getCollection = getCollection;
18
- function getCollectionBySlug(httpClient) {
19
- return (slug) => (0, stores_catalog_v1_collection_collections_universal_js_1.getCollectionBySlug)(slug,
20
- // @ts-ignore
21
- { httpClient });
22
- }
23
- exports.getCollectionBySlug = getCollectionBySlug;
24
- var stores_catalog_v1_collection_collections_universal_js_2 = require("./stores-catalog-v1-collection-collections.universal.js");
25
- Object.defineProperty(exports, "MediaItemType", { enumerable: true, get: function () { return stores_catalog_v1_collection_collections_universal_js_2.MediaItemType; } });
26
- Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return stores_catalog_v1_collection_collections_universal_js_2.SortOrder; } });
27
- //# sourceMappingURL=stores-catalog-v1-collection-collections.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.public.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.public.ts"],"names":[],"mappings":";;;AACA,mIAOiE;AAEpD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE1D,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,wEAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4CAQC;AAUD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,qEAAsB,EACpB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAUD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,IAAA,2EAA4B,EAC1B,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,kDASC;AAUD,iIA4BiE;AAd/D,sJAAA,aAAa,OAAA;AAWb,kJAAA,SAAS,OAAA"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.MediaItemType = void 0;
4
- var MediaItemType;
5
- (function (MediaItemType) {
6
- MediaItemType["unspecified_media_item_type"] = "unspecified_media_item_type";
7
- /** Image media type. */
8
- MediaItemType["image"] = "image";
9
- /** Video media type. */
10
- MediaItemType["video"] = "video";
11
- /** Audio media type. */
12
- MediaItemType["audio"] = "audio";
13
- /** Document media type. */
14
- MediaItemType["document"] = "document";
15
- /** Zip media type. */
16
- MediaItemType["zip"] = "zip";
17
- })(MediaItemType || (exports.MediaItemType = MediaItemType = {}));
18
- var SortOrder;
19
- (function (SortOrder) {
20
- SortOrder["ASC"] = "ASC";
21
- SortOrder["DESC"] = "DESC";
22
- })(SortOrder || (exports.SortOrder = SortOrder = {}));
23
- //# sourceMappingURL=stores-catalog-v1-collection-collections.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.types.ts"],"names":[],"mappings":";;;AAqFA,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,wBAAwB;IACxB,gCAAe,CAAA;IACf,wBAAwB;IACxB,gCAAe,CAAA;IACf,wBAAwB;IACxB,gCAAe,CAAA;IACf,2BAA2B;IAC3B,sCAAqB,CAAA;IACrB,sBAAsB;IACtB,4BAAW,CAAA;AACb,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB;AAkHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
@@ -1,160 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = exports.SortOrder = exports.MediaItemType = void 0;
27
- const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
- const query_builder_1 = require("@wix/sdk-runtime/query-builder");
29
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
30
- const ambassadorWixStoresCatalogV1Collection = __importStar(require("./stores-catalog-v1-collection-collections.http.js"));
31
- // @ts-ignore
32
- const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
33
- var MediaItemType;
34
- (function (MediaItemType) {
35
- MediaItemType["unspecified_media_item_type"] = "unspecified_media_item_type";
36
- /** Image media type. */
37
- MediaItemType["image"] = "image";
38
- /** Video media type. */
39
- MediaItemType["video"] = "video";
40
- /** Audio media type. */
41
- MediaItemType["audio"] = "audio";
42
- /** Document media type. */
43
- MediaItemType["document"] = "document";
44
- /** Zip media type. */
45
- MediaItemType["zip"] = "zip";
46
- })(MediaItemType || (exports.MediaItemType = MediaItemType = {}));
47
- var SortOrder;
48
- (function (SortOrder) {
49
- SortOrder["ASC"] = "ASC";
50
- SortOrder["DESC"] = "DESC";
51
- })(SortOrder || (exports.SortOrder = SortOrder = {}));
52
- /**
53
- * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
54
- * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
55
- * @public
56
- * @fqn wix.catalog.api.v2.CollectionReadApi.QueryCollections
57
- */
58
- function queryCollections() {
59
- // @ts-ignore
60
- const { httpClient, sideEffects } = arguments[0];
61
- return (0, query_builder_1.queryBuilder)({
62
- func: async (payload) => {
63
- const reqOpts = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
64
- sideEffects?.onSiteCall?.();
65
- try {
66
- const result = await httpClient.request(reqOpts);
67
- sideEffects?.onSuccess?.(result);
68
- return result;
69
- }
70
- catch (err) {
71
- sideEffects?.onError?.(err);
72
- throw err;
73
- }
74
- },
75
- requestTransformer: (query) => {
76
- const args = [query, {}];
77
- return (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
78
- ...args?.[1],
79
- query: args?.[0],
80
- });
81
- },
82
- responseTransformer: ({ data }) => {
83
- const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
84
- return {
85
- items: transformedData?.collections,
86
- pagingMetadata: transformedData?.metadata,
87
- };
88
- },
89
- errorTransformer: (err) => {
90
- const transformedError = (0, transform_error_1.transformError)(err, {
91
- spreadPathsToArguments: {},
92
- explicitPathsToArguments: { query: '$[0]' },
93
- singleArgumentUnchanged: false,
94
- });
95
- throw transformedError;
96
- },
97
- pagingMethod: 'OFFSET',
98
- transformationPaths: {},
99
- });
100
- }
101
- exports.queryCollections = queryCollections;
102
- /**
103
- * Retrieves a collection with the provided ID.
104
- * @param _id - Requested collection ID.
105
- * @public
106
- * @requiredField _id
107
- * @fqn wix.catalog.api.v2.CollectionReadApi.GetCollection
108
- */
109
- async function getCollection(_id) {
110
- // @ts-ignore
111
- const { httpClient, sideEffects } = arguments[1];
112
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
113
- const reqOpts = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
114
- sideEffects?.onSiteCall?.();
115
- try {
116
- const result = await httpClient.request(reqOpts);
117
- sideEffects?.onSuccess?.(result);
118
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.collection;
119
- }
120
- catch (err) {
121
- const transformedError = (0, transform_error_1.transformError)(err, {
122
- spreadPathsToArguments: {},
123
- explicitPathsToArguments: { id: '$[0]' },
124
- singleArgumentUnchanged: false,
125
- }, ['_id']);
126
- sideEffects?.onError?.(err);
127
- throw transformedError;
128
- }
129
- }
130
- exports.getCollection = getCollection;
131
- /**
132
- * Retrieves a collection with the provided slug.
133
- * @param slug - Slug of the collection to retrieve.
134
- * @public
135
- * @requiredField slug
136
- * @fqn wix.catalog.api.v2.CollectionReadApi.GetCollectionBySlug
137
- */
138
- async function getCollectionBySlug(slug) {
139
- // @ts-ignore
140
- const { httpClient, sideEffects } = arguments[1];
141
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ slug: slug });
142
- const reqOpts = ambassadorWixStoresCatalogV1Collection.getCollectionBySlug(payload);
143
- sideEffects?.onSiteCall?.();
144
- try {
145
- const result = await httpClient.request(reqOpts);
146
- sideEffects?.onSuccess?.(result);
147
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
148
- }
149
- catch (err) {
150
- const transformedError = (0, transform_error_1.transformError)(err, {
151
- spreadPathsToArguments: {},
152
- explicitPathsToArguments: { slug: '$[0]' },
153
- singleArgumentUnchanged: false,
154
- }, ['slug']);
155
- sideEffects?.onError?.(err);
156
- throw transformedError;
157
- }
158
- }
159
- exports.getCollectionBySlug = getCollectionBySlug;
160
- //# sourceMappingURL=stores-catalog-v1-collection-collections.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2HAA6G;AAC7G,aAAa;AACb,sFAAkF;AA6FlF,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,wBAAwB;IACxB,gCAAe,CAAA;IACf,wBAAwB;IACxB,gCAAe,CAAA;IACf,wBAAwB;IACxB,gCAAe,CAAA;IACf,2BAA2B;IAC3B,sCAAqB,CAAA;IACrB,sBAAsB;IACtB,4BAAW,CAAA;AACb,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB;AAkHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAgGD;;;;;GAKG;AACH,SAAgB,gBAAgB;IAC9B,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,OAAO,IAAA,4BAAY,EAKjB;QACA,IAAI,EAAE,KAAK,EAAE,OAAgC,EAAE,EAAE;YAC/C,MAAM,OAAO,GACX,sCAAsC,CAA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AM,OAAO,GACX,sCAAsC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEtE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC1C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,MAAM,CAAC,CACT,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAzCD,kDAyCC"}
@@ -1 +0,0 @@
1
- export * from './src/stores-catalog-v1-collection-collections.context.js';
package/build/es/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/stores-catalog-v1-collection-collections.context.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/stores-catalog-v1-collection-collections.universal.js';
@@ -1,2 +0,0 @@
1
- export * from './src/stores-catalog-v1-collection-collections.universal.js';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,6DAA6D,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/stores-catalog-v1-collection-collections.meta.js';
package/build/es/meta.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/stores-catalog-v1-collection-collections.meta.js';
2
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,wDAAwD,CAAC"}
@@ -1,7 +0,0 @@
1
- import { queryCollections as publicQueryCollections, getCollection as publicGetCollection, getCollectionBySlug as publicGetCollectionBySlug } from './stores-catalog-v1-collection-collections.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const queryCollections: MaybeContext<BuildRESTFunction<typeof publicQueryCollections> & typeof publicQueryCollections>;
4
- export declare const getCollection: MaybeContext<BuildRESTFunction<typeof publicGetCollection> & typeof publicGetCollection>;
5
- export declare const getCollectionBySlug: MaybeContext<BuildRESTFunction<typeof publicGetCollectionBySlug> & typeof publicGetCollectionBySlug>;
6
- export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection-collections.universal.js';
7
- export { Collection, Media, MediaItem, MediaItemItemOneOf, MediaItemUrlAndSize, MediaItemVideo, SeoSchema, Keyword, Tag, Settings, QueryCollectionsRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryCollectionsResponse, PlatformPagingMetadata, Cursors, GetCollectionRequest, GetCollectionResponse, GetCollectionBySlugRequest, GetCollectionBySlugResponse, CollectionsQueryResult, CollectionsQueryBuilder, } from './stores-catalog-v1-collection-collections.universal.js';
@@ -1,7 +0,0 @@
1
- import { queryCollections as publicQueryCollections, getCollection as publicGetCollection, getCollectionBySlug as publicGetCollectionBySlug, } from './stores-catalog-v1-collection-collections.public.js';
2
- import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
- export const queryCollections = /*#__PURE__*/ createRESTModule(publicQueryCollections);
4
- export const getCollection = /*#__PURE__*/ createRESTModule(publicGetCollection);
5
- export const getCollectionBySlug = /*#__PURE__*/ createRESTModule(publicGetCollectionBySlug);
6
- export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection-collections.universal.js';
7
- //# sourceMappingURL=stores-catalog-v1-collection-collections.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.context.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,sBAAsB,EAC1C,aAAa,IAAI,mBAAmB,EACpC,mBAAmB,IAAI,yBAAyB,GACjD,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,gBAAgB,GAGzB,aAAa,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,aAAa,GAEtB,aAAa,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,mBAAmB,GAG5B,aAAa,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;AAE9D,OAAO,EACL,aAAa,EACb,SAAS,GACV,MAAM,yDAAyD,CAAC"}
@@ -1,10 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
4
- * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
5
- */
6
- export declare function queryCollections(payload: object): RequestOptionsFactory<any>;
7
- /** Retrieves a collection with the provided ID. */
8
- export declare function getCollection(payload: object): RequestOptionsFactory<any>;
9
- /** Retrieves a collection with the provided slug. */
10
- export declare function getCollectionBySlug(payload: object): RequestOptionsFactory<any>;
@@ -1,156 +0,0 @@
1
- import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
4
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
5
- function resolveWixCatalogApiV2CollectionReadApiUrl(opts) {
6
- const domainToMappings = {
7
- 'api._api_base_domain_': [
8
- {
9
- srcPath: '/wix-ecommerce-catalog-reader-web',
10
- destPath: '',
11
- },
12
- ],
13
- 'manage._base_domain_': [
14
- {
15
- srcPath: '/wix-ecommerce-catalog-reader-web',
16
- destPath: '',
17
- },
18
- ],
19
- 'www.wixapis.com': [
20
- {
21
- srcPath: '/stores-reader/v2/collections',
22
- destPath: '/v2/collections',
23
- },
24
- {
25
- srcPath: '/stores-reader/v2/inventoryItems',
26
- destPath: '/v2/inventoryItems',
27
- },
28
- ],
29
- 'www._base_domain_': [
30
- {
31
- srcPath: '/wix-ecommerce-catalog-reader-web',
32
- destPath: '',
33
- },
34
- ],
35
- 'editor._base_domain_': [
36
- {
37
- srcPath: '/_api/wix-ecommerce-catalog-reader-web',
38
- destPath: '',
39
- },
40
- ],
41
- 'blocks._base_domain_': [
42
- {
43
- srcPath: '/_api/wix-ecommerce-catalog-reader-web',
44
- destPath: '',
45
- },
46
- ],
47
- 'create.editorx': [
48
- {
49
- srcPath: '/_api/wix-ecommerce-catalog-reader-web',
50
- destPath: '',
51
- },
52
- ],
53
- _: [
54
- {
55
- srcPath: '/stores-reader/v2/inventoryItems',
56
- destPath: '/v2/inventoryItems',
57
- },
58
- {
59
- srcPath: '/stores-reader/v2/collections',
60
- destPath: '/v2/collections',
61
- },
62
- ],
63
- };
64
- return resolveUrl(Object.assign(opts, { domainToMappings }));
65
- }
66
- const PACKAGE_NAME = '@wix/auto_sdk_stores_collections';
67
- /**
68
- * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
69
- * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
70
- */
71
- export function queryCollections(payload) {
72
- function __queryCollections({ host }) {
73
- const metadata = {
74
- entityFqdn: 'wix.stores.catalog.v1.collection',
75
- method: 'POST',
76
- methodFqn: 'wix.catalog.api.v2.CollectionReadApi.QueryCollections',
77
- packageName: PACKAGE_NAME,
78
- url: resolveWixCatalogApiV2CollectionReadApiUrl({
79
- protoPath: '/v2/collections/query',
80
- data: payload,
81
- host,
82
- }),
83
- data: payload,
84
- transformResponse: (payload) => transformPaths(payload, [
85
- {
86
- transformFn: transformRESTTimestampToSDKTimestamp,
87
- paths: [{ path: 'collections.lastUpdated' }],
88
- },
89
- ]),
90
- fallback: [
91
- {
92
- method: 'POST',
93
- url: resolveWixCatalogApiV2CollectionReadApiUrl({
94
- protoPath: '/v2/collections/query',
95
- data: payload,
96
- host,
97
- }),
98
- data: payload,
99
- },
100
- ],
101
- };
102
- return metadata;
103
- }
104
- return __queryCollections;
105
- }
106
- /** Retrieves a collection with the provided ID. */
107
- export function getCollection(payload) {
108
- function __getCollection({ host }) {
109
- const metadata = {
110
- entityFqdn: 'wix.stores.catalog.v1.collection',
111
- method: 'GET',
112
- methodFqn: 'wix.catalog.api.v2.CollectionReadApi.GetCollection',
113
- packageName: PACKAGE_NAME,
114
- url: resolveWixCatalogApiV2CollectionReadApiUrl({
115
- protoPath: '/v2/collections/{id}',
116
- data: payload,
117
- host,
118
- }),
119
- params: toURLSearchParams(payload),
120
- transformResponse: (payload) => transformPaths(payload, [
121
- {
122
- transformFn: transformRESTTimestampToSDKTimestamp,
123
- paths: [{ path: 'collection.lastUpdated' }],
124
- },
125
- ]),
126
- };
127
- return metadata;
128
- }
129
- return __getCollection;
130
- }
131
- /** Retrieves a collection with the provided slug. */
132
- export function getCollectionBySlug(payload) {
133
- function __getCollectionBySlug({ host }) {
134
- const metadata = {
135
- entityFqdn: 'wix.stores.catalog.v1.collection',
136
- method: 'GET',
137
- methodFqn: 'wix.catalog.api.v2.CollectionReadApi.GetCollectionBySlug',
138
- packageName: PACKAGE_NAME,
139
- url: resolveWixCatalogApiV2CollectionReadApiUrl({
140
- protoPath: '/v2/collections/slug/{slug}',
141
- data: payload,
142
- host,
143
- }),
144
- params: toURLSearchParams(payload),
145
- transformResponse: (payload) => transformPaths(payload, [
146
- {
147
- transformFn: transformRESTTimestampToSDKTimestamp,
148
- paths: [{ path: 'collection.lastUpdated' }],
149
- },
150
- ]),
151
- };
152
- return metadata;
153
- }
154
- return __getCollectionBySlug;
155
- }
156
- //# sourceMappingURL=stores-catalog-v1-collection-collections.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.http.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,0CAA0C,CACjD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,iBAAiB;aAC5B;YACD;gBACE,OAAO,EAAE,kCAAkC;gBAC3C,QAAQ,EAAE,oBAAoB;aAC/B;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE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AC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
@@ -1,19 +0,0 @@
1
- import * as ambassadorWixStoresCatalogV1CollectionTypes from './stores-catalog-v1-collection-collections.types.js';
2
- import * as ambassadorWixStoresCatalogV1CollectionUniversalTypes from './stores-catalog-v1-collection-collections.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function queryCollections(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsRequest, ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsResponse, ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsResponse>;
14
- export declare function getCollection(): __PublicMethodMetaInfo<'GET', {
15
- id: string;
16
- }, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionRequest, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionResponse, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionResponse>;
17
- export declare function getCollectionBySlug(): __PublicMethodMetaInfo<'GET', {
18
- slug: string;
19
- }, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugResponse, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugResponse>;
@@ -1,56 +0,0 @@
1
- import * as ambassadorWixStoresCatalogV1Collection from './stores-catalog-v1-collection-collections.http.js';
2
- export function queryCollections() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'GET',
12
- path: '/v2/collections/query',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- export function getCollection() {
21
- const payload = { id: ':id' };
22
- const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
23
- const getUrl = (context) => {
24
- const { url } = getRequestOptions(context);
25
- return url;
26
- };
27
- return {
28
- getUrl,
29
- httpMethod: 'GET',
30
- path: '/v2/collections/{id}',
31
- pathParams: { id: 'id' },
32
- __requestType: null,
33
- __originalRequestType: null,
34
- __responseType: null,
35
- __originalResponseType: null,
36
- };
37
- }
38
- export function getCollectionBySlug() {
39
- const payload = { slug: ':slug' };
40
- const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollectionBySlug(payload);
41
- const getUrl = (context) => {
42
- const { url } = getRequestOptions(context);
43
- return url;
44
- };
45
- return {
46
- getUrl,
47
- httpMethod: 'GET',
48
- path: '/v2/collections/slug/{slug}',
49
- pathParams: { slug: 'slug' },
50
- __requestType: null,
51
- __originalRequestType: null,
52
- __responseType: null,
53
- __originalResponseType: null,
54
- };
55
- }
56
- //# sourceMappingURL=stores-catalog-v1-collection-collections.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.meta.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,sCAAsC,MAAM,oDAAoD,CAAC;AAsB7G,MAAM,UAAU,gBAAgB;IAQ9B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,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MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,6BAA6B;QACnC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QAC5B,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,30 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { Collection, CollectionsQueryBuilder, GetCollectionBySlugResponse } from './stores-catalog-v1-collection-collections.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function queryCollections(httpClient: HttpClient): QueryCollectionsSignature;
7
- interface QueryCollectionsSignature {
8
- /**
9
- * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
10
- * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
11
- */
12
- (): CollectionsQueryBuilder;
13
- }
14
- export declare function getCollection(httpClient: HttpClient): GetCollectionSignature;
15
- interface GetCollectionSignature {
16
- /**
17
- * Retrieves a collection with the provided ID.
18
- * @param - Requested collection ID.
19
- */
20
- (_id: string): Promise<Collection>;
21
- }
22
- export declare function getCollectionBySlug(httpClient: HttpClient): GetCollectionBySlugSignature;
23
- interface GetCollectionBySlugSignature {
24
- /**
25
- * Retrieves a collection with the provided slug.
26
- * @param - Slug of the collection to retrieve.
27
- */
28
- (slug: string): Promise<GetCollectionBySlugResponse>;
29
- }
30
- export { Collection, CollectionsQueryBuilder, CollectionsQueryResult, CursorPaging, Cursors, GetCollectionBySlugRequest, GetCollectionBySlugResponse, GetCollectionRequest, GetCollectionResponse, Keyword, Media, MediaItem, MediaItemItemOneOf, MediaItemType, MediaItemUrlAndSize, MediaItemVideo, PlatformPaging, PlatformPagingMetadata, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCollectionsRequest, QueryCollectionsResponse, SeoSchema, Settings, SortOrder, Sorting, Tag, } from './stores-catalog-v1-collection-collections.universal.js';
@@ -1,19 +0,0 @@
1
- import { getCollection as universalGetCollection, getCollectionBySlug as universalGetCollectionBySlug, queryCollections as universalQueryCollections, } from './stores-catalog-v1-collection-collections.universal.js';
2
- export const __metadata = { PACKAGE_NAME: '@wix/stores' };
3
- export function queryCollections(httpClient) {
4
- return () => universalQueryCollections(
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- export function getCollection(httpClient) {
9
- return (_id) => universalGetCollection(_id,
10
- // @ts-ignore
11
- { httpClient });
12
- }
13
- export function getCollectionBySlug(httpClient) {
14
- return (slug) => universalGetCollectionBySlug(slug,
15
- // @ts-ignore
16
- { httpClient });
17
- }
18
- export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection-collections.universal.js';
19
- //# sourceMappingURL=stores-catalog-v1-collection-collections.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-catalog-v1-collection-collections.public.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection-collections.public.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,IAAI,sBAAsB,EACvC,mBAAmB,IAAI,4BAA4B,EACnD,gBAAgB,IAAI,yBAAyB,GAC9C,MAAM,yDAAyD,CAAC;AAEjE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE1D,MAAM,UAAU,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,yBAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,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;AAUD,MAAM,UAAU,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,4BAA4B,CAC1B,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,OAAO,EAcL,aAAa,EAWb,SAAS,GAGV,MAAM,yDAAyD,CAAC"}