@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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/{stores-poc-v1-collection.http.d.ts → stores-catalog-v1-collection.http.d.ts} +7 -2
- package/build/cjs/src/{stores-poc-v1-collection.http.js → stores-catalog-v1-collection.http.js} +47 -44
- package/build/cjs/src/stores-catalog-v1-collection.http.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-collection.public.d.ts +5 -0
- package/build/cjs/src/stores-catalog-v1-collection.public.js +20 -0
- package/build/cjs/src/stores-catalog-v1-collection.public.js.map +1 -0
- package/build/cjs/src/{stores-poc-v1-collection.types.d.ts → stores-catalog-v1-collection.types.d.ts} +51 -17
- package/build/cjs/src/{stores-poc-v1-collection.types.js → stores-catalog-v1-collection.types.js} +1 -1
- package/build/cjs/src/stores-catalog-v1-collection.types.js.map +1 -0
- package/build/cjs/src/{stores-poc-v1-collection.universal.d.ts → stores-catalog-v1-collection.universal.d.ts} +63 -38
- package/build/cjs/src/{stores-poc-v1-collection.universal.js → stores-catalog-v1-collection.universal.js} +55 -55
- package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product-products.public.d.ts +6 -0
- package/build/cjs/src/stores-catalog-v1-product-products.public.js +25 -0
- package/build/cjs/src/stores-catalog-v1-product-products.public.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +1411 -0
- package/build/cjs/src/{stores-poc-v1-product.universal.js → stores-catalog-v1-product-products.universal.js} +60 -57
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product.http.d.ts +62 -0
- package/build/cjs/src/stores-catalog-v1-product.http.js +775 -0
- package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product.types.d.ts +1371 -0
- package/build/cjs/src/{stores-poc-v1-product.types.js → stores-catalog-v1-product.types.js} +1 -1
- package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -0
- package/build/es/index.d.ts +2 -2
- package/build/es/index.js +2 -2
- package/build/es/index.js.map +1 -1
- package/build/es/src/{stores-poc-v1-collection.http.d.ts → stores-catalog-v1-collection.http.d.ts} +7 -2
- package/build/es/src/{stores-poc-v1-collection.http.js → stores-catalog-v1-collection.http.js} +44 -41
- package/build/es/src/stores-catalog-v1-collection.http.js.map +1 -0
- package/build/es/src/stores-catalog-v1-collection.public.d.ts +5 -0
- package/build/es/src/stores-catalog-v1-collection.public.js +13 -0
- package/build/es/src/stores-catalog-v1-collection.public.js.map +1 -0
- package/build/es/src/{stores-poc-v1-collection.types.d.ts → stores-catalog-v1-collection.types.d.ts} +51 -17
- package/build/es/src/{stores-poc-v1-collection.types.js → stores-catalog-v1-collection.types.js} +1 -1
- package/build/es/src/stores-catalog-v1-collection.types.js.map +1 -0
- package/build/es/src/{stores-poc-v1-collection.universal.d.ts → stores-catalog-v1-collection.universal.d.ts} +63 -38
- package/build/es/src/{stores-poc-v1-collection.universal.js → stores-catalog-v1-collection.universal.js} +53 -53
- package/build/es/src/stores-catalog-v1-collection.universal.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product-products.public.d.ts +6 -0
- package/build/es/src/stores-catalog-v1-product-products.public.js +13 -0
- package/build/es/src/stores-catalog-v1-product-products.public.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +1411 -0
- package/build/es/src/{stores-poc-v1-product.universal.js → stores-catalog-v1-product-products.universal.js} +58 -55
- package/build/es/src/stores-catalog-v1-product-products.universal.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product.http.d.ts +62 -0
- package/build/es/src/stores-catalog-v1-product.http.js +751 -0
- package/build/es/src/stores-catalog-v1-product.http.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product.types.d.ts +1371 -0
- package/build/es/src/{stores-poc-v1-product.types.js → stores-catalog-v1-product.types.js} +1 -1
- package/build/es/src/stores-catalog-v1-product.types.js.map +1 -0
- package/package.json +4 -4
- package/build/cjs/src/stores-poc-v1-collection.http.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-collection.public.d.ts +0 -6
- package/build/cjs/src/stores-poc-v1-collection.public.js +0 -20
- package/build/cjs/src/stores-poc-v1-collection.public.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-collection.types.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-collection.universal.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-product.http.d.ts +0 -4
- package/build/cjs/src/stores-poc-v1-product.http.js +0 -143
- package/build/cjs/src/stores-poc-v1-product.http.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-product.public.d.ts +0 -6
- package/build/cjs/src/stores-poc-v1-product.public.js +0 -25
- package/build/cjs/src/stores-poc-v1-product.public.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-product.types.d.ts +0 -470
- package/build/cjs/src/stores-poc-v1-product.types.js.map +0 -1
- package/build/cjs/src/stores-poc-v1-product.universal.d.ts +0 -549
- package/build/cjs/src/stores-poc-v1-product.universal.js.map +0 -1
- package/build/es/src/stores-poc-v1-collection.http.js.map +0 -1
- package/build/es/src/stores-poc-v1-collection.public.d.ts +0 -6
- package/build/es/src/stores-poc-v1-collection.public.js +0 -13
- package/build/es/src/stores-poc-v1-collection.public.js.map +0 -1
- package/build/es/src/stores-poc-v1-collection.types.js.map +0 -1
- package/build/es/src/stores-poc-v1-collection.universal.js.map +0 -1
- package/build/es/src/stores-poc-v1-product.http.d.ts +0 -4
- package/build/es/src/stores-poc-v1-product.http.js +0 -138
- package/build/es/src/stores-poc-v1-product.http.js.map +0 -1
- package/build/es/src/stores-poc-v1-product.public.d.ts +0 -6
- package/build/es/src/stores-poc-v1-product.public.js +0 -13
- package/build/es/src/stores-poc-v1-product.public.js.map +0 -1
- package/build/es/src/stores-poc-v1-product.types.d.ts +0 -470
- package/build/es/src/stores-poc-v1-product.types.js.map +0 -1
- package/build/es/src/stores-poc-v1-product.universal.d.ts +0 -549
- package/build/es/src/stores-poc-v1-product.universal.js.map +0 -1
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as collections from './src/stores-
|
|
2
|
-
export * as products from './src/stores-
|
|
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/cjs/index.js
CHANGED
|
@@ -20,6 +20,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.products = exports.collections = void 0;
|
|
23
|
-
exports.collections = __importStar(require("./src/stores-
|
|
24
|
-
exports.products = __importStar(require("./src/stores-
|
|
23
|
+
exports.collections = __importStar(require("./src/stores-catalog-v1-collection.public"));
|
|
24
|
+
exports.products = __importStar(require("./src/stores-catalog-v1-product-products.public"));
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yFAAyE;AACzE,4FAA4E"}
|
package/build/cjs/src/{stores-poc-v1-collection.http.d.ts → stores-catalog-v1-collection.http.d.ts}
RENAMED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { GetCollectionRequest, GetCollectionResponse, QueryCollectionsRequest, QueryCollectionsResponse } from './stores-
|
|
3
|
-
|
|
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>;
|
package/build/cjs/src/{stores-poc-v1-collection.http.js → stores-catalog-v1-collection.http.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getCollection = exports.queryCollections = void 0;
|
|
4
4
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
5
|
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
6
6
|
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
@@ -8,91 +8,94 @@ const _getCollectionRequest = {};
|
|
|
8
8
|
const _getCollectionResponse = {};
|
|
9
9
|
const _queryCollectionsRequest = {};
|
|
10
10
|
const _queryCollectionsResponse = {};
|
|
11
|
-
function
|
|
11
|
+
function resolveWixCatalogApiV2CollectionReadApiUrl(opts) {
|
|
12
12
|
const domainToMappings = {
|
|
13
|
-
'
|
|
13
|
+
'api._api_base_domain_': [
|
|
14
14
|
{
|
|
15
|
-
srcPath: '/
|
|
16
|
-
destPath: '
|
|
15
|
+
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
16
|
+
destPath: '',
|
|
17
17
|
},
|
|
18
18
|
],
|
|
19
|
-
'
|
|
19
|
+
'www._base_domain_': [
|
|
20
20
|
{
|
|
21
|
-
srcPath: '/
|
|
21
|
+
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
22
22
|
destPath: '',
|
|
23
23
|
},
|
|
24
|
-
],
|
|
25
|
-
_: [
|
|
26
24
|
{
|
|
27
|
-
srcPath: '/
|
|
28
|
-
destPath: '
|
|
25
|
+
srcPath: '/_api/catalog-reader-server',
|
|
26
|
+
destPath: '',
|
|
29
27
|
},
|
|
28
|
+
],
|
|
29
|
+
'*.dev.wix-code.com': [
|
|
30
30
|
{
|
|
31
|
-
srcPath: '/_api/
|
|
32
|
-
destPath: '
|
|
31
|
+
srcPath: '/_api/catalog-reader-server',
|
|
32
|
+
destPath: '',
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
|
-
|
|
35
|
+
_: [
|
|
36
36
|
{
|
|
37
|
-
srcPath: '/
|
|
38
|
-
destPath: '
|
|
37
|
+
srcPath: '/_api/catalog-reader-server',
|
|
38
|
+
destPath: '',
|
|
39
39
|
},
|
|
40
40
|
],
|
|
41
41
|
'manage._base_domain_': [
|
|
42
42
|
{
|
|
43
|
-
srcPath: '/
|
|
43
|
+
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
44
44
|
destPath: '',
|
|
45
45
|
},
|
|
46
|
-
],
|
|
47
|
-
'www.wixgateway.com': [
|
|
48
46
|
{
|
|
49
|
-
srcPath: '/_api/
|
|
50
|
-
destPath: '
|
|
47
|
+
srcPath: '/_api/catalog-reader-server',
|
|
48
|
+
destPath: '',
|
|
51
49
|
},
|
|
52
50
|
],
|
|
53
51
|
};
|
|
54
52
|
return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
55
53
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
56
|
+
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
57
|
+
*/
|
|
58
|
+
function queryCollections(payload) {
|
|
59
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_queryCollectionsRequest, {});
|
|
60
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_queryCollectionsResponse, {});
|
|
61
|
+
function __queryCollections({ host }) {
|
|
60
62
|
const serializedData = toReq(payload);
|
|
61
63
|
const metadata = {
|
|
62
|
-
method: '
|
|
63
|
-
url:
|
|
64
|
-
protoPath: '/
|
|
64
|
+
method: 'POST',
|
|
65
|
+
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
66
|
+
protoPath: '/v2/collections/query',
|
|
65
67
|
data: serializedData,
|
|
66
68
|
host,
|
|
67
69
|
}),
|
|
68
|
-
|
|
70
|
+
data: serializedData,
|
|
69
71
|
transformResponse: fromRes,
|
|
70
72
|
};
|
|
71
73
|
return metadata;
|
|
72
74
|
}
|
|
73
|
-
|
|
74
|
-
return
|
|
75
|
+
__queryCollections.fromReq = fromReq;
|
|
76
|
+
return __queryCollections;
|
|
75
77
|
}
|
|
76
|
-
exports.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const { fromJSON:
|
|
80
|
-
|
|
78
|
+
exports.queryCollections = queryCollections;
|
|
79
|
+
/** Retrieves a collection with the provided ID. */
|
|
80
|
+
function getCollection(payload) {
|
|
81
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_getCollectionRequest, {});
|
|
82
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_getCollectionResponse, {});
|
|
83
|
+
function __getCollection({ host }) {
|
|
81
84
|
const serializedData = toReq(payload);
|
|
82
85
|
const metadata = {
|
|
83
|
-
method: '
|
|
84
|
-
url:
|
|
85
|
-
protoPath: '/
|
|
86
|
+
method: 'GET',
|
|
87
|
+
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
88
|
+
protoPath: '/v2/collections/{id}',
|
|
86
89
|
data: serializedData,
|
|
87
90
|
host,
|
|
88
91
|
}),
|
|
89
|
-
|
|
92
|
+
params: metro_runtime_1.toURLSearchParams(serializedData),
|
|
90
93
|
transformResponse: fromRes,
|
|
91
94
|
};
|
|
92
95
|
return metadata;
|
|
93
96
|
}
|
|
94
|
-
|
|
95
|
-
return
|
|
97
|
+
__getCollection.fromReq = fromReq;
|
|
98
|
+
return __getCollection;
|
|
96
99
|
}
|
|
97
|
-
exports.
|
|
98
|
-
//# sourceMappingURL=stores-
|
|
100
|
+
exports.getCollection = getCollection;
|
|
101
|
+
//# 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,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;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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AE,KAAY;YACpB,GAAG,EAAE,0CAA0C,CAAC;gBAC9C,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iCAAiB,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;AA5BD,sCA4BC"}
|
|
@@ -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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SortOrder = exports.MediaItemType = exports.getCollection = exports.queryCollections = void 0;
|
|
4
|
+
const stores_catalog_v1_collection_universal_1 = require("./stores-catalog-v1-collection.universal");
|
|
5
|
+
function queryCollections(httpClient) {
|
|
6
|
+
return () => stores_catalog_v1_collection_universal_1.queryCollections(
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
{ httpClient });
|
|
9
|
+
}
|
|
10
|
+
exports.queryCollections = queryCollections;
|
|
11
|
+
function getCollection(httpClient) {
|
|
12
|
+
return (_id) => stores_catalog_v1_collection_universal_1.getCollection(_id,
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
{ httpClient });
|
|
15
|
+
}
|
|
16
|
+
exports.getCollection = getCollection;
|
|
17
|
+
var stores_catalog_v1_collection_universal_2 = require("./stores-catalog-v1-collection.universal");
|
|
18
|
+
Object.defineProperty(exports, "MediaItemType", { enumerable: true, get: function () { return stores_catalog_v1_collection_universal_2.MediaItemType; } });
|
|
19
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return stores_catalog_v1_collection_universal_2.SortOrder; } });
|
|
20
|
+
//# 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,qGAGkD;AAElD,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,GAAG,EAAE,CACV,yDAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,4CAMC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,sDAAsB,CACpB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAED,mGAGkD;AAFhD,uIAAA,aAAa,OAAA;AACb,mIAAA,SAAS,OAAA"}
|
|
@@ -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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
export interface
|
|
91
|
-
|
|
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
|
+
}
|
|
@@ -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,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;AAuED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
export interface
|
|
97
|
-
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
export
|
|
160
|
-
|
|
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
|
-
/**
|
|
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
|
|
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
|
|
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 {};
|
|
@@ -28,9 +28,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
31
|
+
exports.getCollection = exports.queryCollections = exports.SortOrder = exports.MediaItemType = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
|
-
const
|
|
33
|
+
const ambassadorWixStoresCatalogV1Collection = __importStar(require("./stores-catalog-v1-collection.http"));
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
|
|
36
36
|
let __verbose = false;
|
|
@@ -66,56 +66,10 @@ const _getCollectionRequest = {};
|
|
|
66
66
|
const _getCollectionResponse = {};
|
|
67
67
|
const _queryCollectionsRequest = {};
|
|
68
68
|
const _queryCollectionsResponse = {};
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
function getCollection(collectionId, options) {
|
|
74
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
75
|
-
const requestTransformation = {
|
|
76
|
-
collectionId: '$[0]',
|
|
77
|
-
includeNumberOfProducts: '$[1].includeNumberOfProducts',
|
|
78
|
-
includeDescription: '$[1].includeDescription',
|
|
79
|
-
};
|
|
80
|
-
const responseTransformation = '$.collection';
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const httpClient = arguments[2].httpClient;
|
|
83
|
-
const { toAmbassadorRequest } = velo_1.serializer({
|
|
84
|
-
rootSchema: _getCollectionRequest,
|
|
85
|
-
depSchemas: {},
|
|
86
|
-
fqdnTransformation: {
|
|
87
|
-
paths: [],
|
|
88
|
-
transformation: _fromVeloEntity,
|
|
89
|
-
},
|
|
90
|
-
customTransformation: requestTransformation,
|
|
91
|
-
});
|
|
92
|
-
const { fromJSON } = velo_1.serializer({
|
|
93
|
-
rootSchema: _getCollectionResponse,
|
|
94
|
-
depSchemas: {},
|
|
95
|
-
fqdnTransformation: {
|
|
96
|
-
paths: [...['collection']],
|
|
97
|
-
transformation: _toVeloEntity,
|
|
98
|
-
},
|
|
99
|
-
customTransformation: responseTransformation,
|
|
100
|
-
});
|
|
101
|
-
const payload = toAmbassadorRequest([collectionId, options]);
|
|
102
|
-
const reqOpts = ambassadorWixStoresPocV1Collection.getCollection(payload);
|
|
103
|
-
__log(`"GetCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
104
|
-
try {
|
|
105
|
-
const { data } = yield httpClient.request(reqOpts);
|
|
106
|
-
return fromJSON(data);
|
|
107
|
-
}
|
|
108
|
-
catch (err) {
|
|
109
|
-
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
110
|
-
'collectionId',
|
|
111
|
-
'options',
|
|
112
|
-
]);
|
|
113
|
-
throw transformedError;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
exports.getCollection = getCollection;
|
|
118
|
-
/** @public */
|
|
69
|
+
/**
|
|
70
|
+
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
71
|
+
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
72
|
+
* @public */
|
|
119
73
|
function queryCollections() {
|
|
120
74
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
121
75
|
const responseTransformation = {
|
|
@@ -144,7 +98,7 @@ function queryCollections() {
|
|
|
144
98
|
});
|
|
145
99
|
return motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder({
|
|
146
100
|
func: (payload) => {
|
|
147
|
-
const reqOpts =
|
|
101
|
+
const reqOpts = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
|
|
148
102
|
return httpClient.request(reqOpts);
|
|
149
103
|
},
|
|
150
104
|
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
@@ -153,9 +107,55 @@ function queryCollections() {
|
|
|
153
107
|
const transformedError = velo_1.transformError(err, requestTransformation);
|
|
154
108
|
throw transformedError;
|
|
155
109
|
},
|
|
156
|
-
pagingMethod: '
|
|
110
|
+
pagingMethod: 'CURSOR',
|
|
157
111
|
transformationPaths: velo_1.resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
158
112
|
})({ cursorWithEmptyFilterAndSort: true });
|
|
159
113
|
}
|
|
160
114
|
exports.queryCollections = queryCollections;
|
|
161
|
-
|
|
115
|
+
/**
|
|
116
|
+
* Retrieves a collection with the provided ID.
|
|
117
|
+
* @param _id - Requested collection ID.
|
|
118
|
+
* @public
|
|
119
|
+
* @requiredField _id
|
|
120
|
+
*/
|
|
121
|
+
function getCollection(_id) {
|
|
122
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
123
|
+
const requestTransformation = { id: '$[0]' };
|
|
124
|
+
const responseTransformation = '$.collection';
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
const httpClient = arguments[1].httpClient;
|
|
127
|
+
const { toAmbassadorRequest } = velo_1.serializer({
|
|
128
|
+
rootSchema: _getCollectionRequest,
|
|
129
|
+
depSchemas: {},
|
|
130
|
+
fqdnTransformation: {
|
|
131
|
+
paths: [],
|
|
132
|
+
transformation: _fromVeloEntity,
|
|
133
|
+
},
|
|
134
|
+
customTransformation: requestTransformation,
|
|
135
|
+
});
|
|
136
|
+
const { fromJSON } = velo_1.serializer({
|
|
137
|
+
rootSchema: _getCollectionResponse,
|
|
138
|
+
depSchemas: {},
|
|
139
|
+
fqdnTransformation: {
|
|
140
|
+
paths: [...['collection']],
|
|
141
|
+
transformation: _toVeloEntity,
|
|
142
|
+
},
|
|
143
|
+
customTransformation: responseTransformation,
|
|
144
|
+
});
|
|
145
|
+
const payload = toAmbassadorRequest([_id]);
|
|
146
|
+
const reqOpts = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
|
|
147
|
+
__log(`"GetCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
148
|
+
try {
|
|
149
|
+
const { data } = yield httpClient.request(reqOpts);
|
|
150
|
+
return fromJSON(data);
|
|
151
|
+
}
|
|
152
|
+
catch (err) {
|
|
153
|
+
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
154
|
+
'_id',
|
|
155
|
+
]);
|
|
156
|
+
throw transformedError;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
exports.getCollection = getCollection;
|
|
161
|
+
//# 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,kDAIiC;AAEjC,4GAA8F;AAC9F,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAuE5B,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;AAuED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IAC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