@wix/stores 1.0.30 → 1.0.32
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 +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-collection.universal.d.ts +22 -5
- package/build/cjs/src/stores-catalog-v1-collection.universal.js +3 -1
- package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product-products.http.d.ts +62 -0
- package/build/cjs/src/stores-catalog-v1-product-products.http.js +785 -0
- package/build/cjs/src/stores-catalog-v1-product-products.http.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product-products.types.d.ts +1393 -0
- package/build/cjs/src/stores-catalog-v1-product-products.types.js +69 -0
- package/build/cjs/src/stores-catalog-v1-product-products.types.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +26 -5
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js +4 -2
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- 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-catalog-v1-collection.universal.d.ts +22 -5
- package/build/es/src/stores-catalog-v1-collection.universal.js +3 -1
- package/build/es/src/stores-catalog-v1-collection.universal.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product-products.http.d.ts +62 -0
- package/build/es/src/stores-catalog-v1-product-products.http.js +761 -0
- package/build/es/src/stores-catalog-v1-product-products.http.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product-products.types.d.ts +1393 -0
- package/build/es/src/stores-catalog-v1-product-products.types.js +66 -0
- package/build/es/src/stores-catalog-v1-product-products.types.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +26 -5
- package/build/es/src/stores-catalog-v1-product-products.universal.js +4 -2
- package/build/es/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SortOrder = exports.DiscountType = exports.OptionType = exports.MediaItemType = exports.MeasurementUnit = exports.InventoryStatus = exports.ProductType = void 0;
|
|
4
|
+
var ProductType;
|
|
5
|
+
(function (ProductType) {
|
|
6
|
+
ProductType["unspecified_product_type"] = "unspecified_product_type";
|
|
7
|
+
ProductType["physical"] = "physical";
|
|
8
|
+
ProductType["digital"] = "digital";
|
|
9
|
+
})(ProductType = exports.ProductType || (exports.ProductType = {}));
|
|
10
|
+
var InventoryStatus;
|
|
11
|
+
(function (InventoryStatus) {
|
|
12
|
+
InventoryStatus["IN_STOCK"] = "IN_STOCK";
|
|
13
|
+
InventoryStatus["OUT_OF_STOCK"] = "OUT_OF_STOCK";
|
|
14
|
+
InventoryStatus["PARTIALLY_OUT_OF_STOCK"] = "PARTIALLY_OUT_OF_STOCK";
|
|
15
|
+
})(InventoryStatus = exports.InventoryStatus || (exports.InventoryStatus = {}));
|
|
16
|
+
var MeasurementUnit;
|
|
17
|
+
(function (MeasurementUnit) {
|
|
18
|
+
MeasurementUnit["UNSPECIFIED"] = "UNSPECIFIED";
|
|
19
|
+
MeasurementUnit["ML"] = "ML";
|
|
20
|
+
MeasurementUnit["CL"] = "CL";
|
|
21
|
+
MeasurementUnit["L"] = "L";
|
|
22
|
+
MeasurementUnit["CBM"] = "CBM";
|
|
23
|
+
MeasurementUnit["MG"] = "MG";
|
|
24
|
+
MeasurementUnit["G"] = "G";
|
|
25
|
+
MeasurementUnit["KG"] = "KG";
|
|
26
|
+
MeasurementUnit["MM"] = "MM";
|
|
27
|
+
MeasurementUnit["CM"] = "CM";
|
|
28
|
+
MeasurementUnit["M"] = "M";
|
|
29
|
+
MeasurementUnit["SQM"] = "SQM";
|
|
30
|
+
MeasurementUnit["OZ"] = "OZ";
|
|
31
|
+
MeasurementUnit["LB"] = "LB";
|
|
32
|
+
MeasurementUnit["FLOZ"] = "FLOZ";
|
|
33
|
+
MeasurementUnit["PT"] = "PT";
|
|
34
|
+
MeasurementUnit["QT"] = "QT";
|
|
35
|
+
MeasurementUnit["GAL"] = "GAL";
|
|
36
|
+
MeasurementUnit["IN"] = "IN";
|
|
37
|
+
MeasurementUnit["FT"] = "FT";
|
|
38
|
+
MeasurementUnit["YD"] = "YD";
|
|
39
|
+
MeasurementUnit["SQFT"] = "SQFT";
|
|
40
|
+
})(MeasurementUnit = exports.MeasurementUnit || (exports.MeasurementUnit = {}));
|
|
41
|
+
var MediaItemType;
|
|
42
|
+
(function (MediaItemType) {
|
|
43
|
+
MediaItemType["unspecified_media_item_type"] = "unspecified_media_item_type";
|
|
44
|
+
MediaItemType["image"] = "image";
|
|
45
|
+
MediaItemType["video"] = "video";
|
|
46
|
+
MediaItemType["audio"] = "audio";
|
|
47
|
+
MediaItemType["document"] = "document";
|
|
48
|
+
MediaItemType["zip"] = "zip";
|
|
49
|
+
})(MediaItemType = exports.MediaItemType || (exports.MediaItemType = {}));
|
|
50
|
+
var OptionType;
|
|
51
|
+
(function (OptionType) {
|
|
52
|
+
OptionType["unspecified_option_type"] = "unspecified_option_type";
|
|
53
|
+
OptionType["drop_down"] = "drop_down";
|
|
54
|
+
OptionType["color"] = "color";
|
|
55
|
+
})(OptionType = exports.OptionType || (exports.OptionType = {}));
|
|
56
|
+
var DiscountType;
|
|
57
|
+
(function (DiscountType) {
|
|
58
|
+
DiscountType["UNDEFINED"] = "UNDEFINED";
|
|
59
|
+
/** No discount */
|
|
60
|
+
DiscountType["NONE"] = "NONE";
|
|
61
|
+
DiscountType["AMOUNT"] = "AMOUNT";
|
|
62
|
+
DiscountType["PERCENT"] = "PERCENT";
|
|
63
|
+
})(DiscountType = exports.DiscountType || (exports.DiscountType = {}));
|
|
64
|
+
var SortOrder;
|
|
65
|
+
(function (SortOrder) {
|
|
66
|
+
SortOrder["ASC"] = "ASC";
|
|
67
|
+
SortOrder["DESC"] = "DESC";
|
|
68
|
+
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
|
|
69
|
+
//# sourceMappingURL=stores-catalog-v1-product-products.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-product-products.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.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;AA2sBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -1362,7 +1362,9 @@ export interface AggregateProductsResponse {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Returns a list of up to 100 products, given the provided paging, sorting and filtering.
|
|
1365
|
-
* @public
|
|
1365
|
+
* @public
|
|
1366
|
+
* @documentationMaturity preview
|
|
1367
|
+
*/
|
|
1366
1368
|
export declare function queryProducts(): ProductsQueryBuilder;
|
|
1367
1369
|
interface QueryOffsetResult {
|
|
1368
1370
|
currentPage: number;
|
|
@@ -1382,46 +1384,65 @@ export interface ProductsQueryResult extends QueryOffsetResult {
|
|
|
1382
1384
|
export interface ProductsQueryBuilder {
|
|
1383
1385
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1384
1386
|
* @param value - Value to compare against.
|
|
1387
|
+
* @documentationMaturity preview
|
|
1385
1388
|
*/
|
|
1386
1389
|
eq: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1387
1390
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1388
1391
|
* @param value - Value to compare against.
|
|
1392
|
+
* @documentationMaturity preview
|
|
1389
1393
|
*/
|
|
1390
1394
|
ne: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1391
1395
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1392
1396
|
* @param value - Value to compare against.
|
|
1397
|
+
* @documentationMaturity preview
|
|
1393
1398
|
*/
|
|
1394
1399
|
ge: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1395
1400
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1396
1401
|
* @param value - Value to compare against.
|
|
1402
|
+
* @documentationMaturity preview
|
|
1397
1403
|
*/
|
|
1398
1404
|
gt: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1399
1405
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1400
1406
|
* @param value - Value to compare against.
|
|
1407
|
+
* @documentationMaturity preview
|
|
1401
1408
|
*/
|
|
1402
1409
|
le: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1403
1410
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1404
1411
|
* @param value - Value to compare against.
|
|
1412
|
+
* @documentationMaturity preview
|
|
1405
1413
|
*/
|
|
1406
1414
|
lt: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1407
1415
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
1408
1416
|
* @param string - String to compare against. Case-insensitive.
|
|
1417
|
+
* @documentationMaturity preview
|
|
1409
1418
|
*/
|
|
1410
1419
|
startsWith: (propertyName: string, value: string) => ProductsQueryBuilder;
|
|
1411
1420
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
1412
1421
|
* @param values - List of values to compare against.
|
|
1422
|
+
* @documentationMaturity preview
|
|
1413
1423
|
*/
|
|
1414
1424
|
hasSome: (propertyName: string, value: any[]) => ProductsQueryBuilder;
|
|
1425
|
+
/** @documentationMaturity preview */
|
|
1415
1426
|
in: (propertyName: string, value: any) => ProductsQueryBuilder;
|
|
1427
|
+
/** @documentationMaturity preview */
|
|
1416
1428
|
exists: (propertyName: string, value: boolean) => ProductsQueryBuilder;
|
|
1417
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1429
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1430
|
+
* @documentationMaturity preview
|
|
1431
|
+
*/
|
|
1418
1432
|
ascending: (...propertyNames: string[]) => ProductsQueryBuilder;
|
|
1419
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1433
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1434
|
+
* @documentationMaturity preview
|
|
1435
|
+
*/
|
|
1420
1436
|
descending: (...propertyNames: string[]) => ProductsQueryBuilder;
|
|
1421
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1437
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1438
|
+
* @documentationMaturity preview
|
|
1439
|
+
*/
|
|
1422
1440
|
limit: (limit: number) => ProductsQueryBuilder;
|
|
1423
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
1441
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
1442
|
+
* @documentationMaturity preview
|
|
1443
|
+
*/
|
|
1424
1444
|
skip: (skip: number) => ProductsQueryBuilder;
|
|
1445
|
+
/** @documentationMaturity preview */
|
|
1425
1446
|
find: () => Promise<ProductsQueryResult>;
|
|
1426
1447
|
}
|
|
1427
1448
|
/**
|
|
@@ -30,7 +30,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
31
|
exports.getProduct = exports.queryProducts = exports.SortOrder = exports.DiscountType = exports.OptionType = exports.MediaItemType = exports.MeasurementUnit = exports.InventoryStatus = exports.ProductType = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
|
-
const ambassadorWixStoresCatalogV1Product = __importStar(require("./stores-catalog-v1-product.http"));
|
|
33
|
+
const ambassadorWixStoresCatalogV1Product = __importStar(require("./stores-catalog-v1-product-products.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;
|
|
@@ -119,7 +119,9 @@ const _queryProductsPlatformizedRequest = {};
|
|
|
119
119
|
const _queryProductsPlatformizedResponse = {};
|
|
120
120
|
/**
|
|
121
121
|
* Returns a list of up to 100 products, given the provided paging, sorting and filtering.
|
|
122
|
-
* @public
|
|
122
|
+
* @public
|
|
123
|
+
* @documentationMaturity preview
|
|
124
|
+
*/
|
|
123
125
|
function queryProducts() {
|
|
124
126
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
125
127
|
const responseTransformation = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-product-products.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-product-products.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,+GAAiG;AACjG,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,EAA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YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAzDD,gCAyDC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as catalog from './src/stores-v2-inventory.public';
|
|
2
|
+
export * as orders from './src/stores-v2-orders.public';
|
|
3
|
+
export * as subscriptionOptions from './src/stores-v1-subscription-option.public';
|
|
2
4
|
export * as wishlist from './src/platform-v1-wishlist.public';
|
|
3
5
|
export * as collections from './src/stores-catalog-v1-collection.public';
|
|
4
6
|
export * as products from './src/stores-catalog-v1-product-products.public';
|
|
5
|
-
export * as orders from './src/stores-v2-orders.public';
|
|
6
|
-
export * as subscriptionOptions from './src/stores-v1-subscription-option.public';
|
package/build/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as catalog from './src/stores-v2-inventory.public';
|
|
2
|
+
export * as orders from './src/stores-v2-orders.public';
|
|
3
|
+
export * as subscriptionOptions from './src/stores-v1-subscription-option.public';
|
|
2
4
|
export * as wishlist from './src/platform-v1-wishlist.public';
|
|
3
5
|
export * as collections from './src/stores-catalog-v1-collection.public';
|
|
4
6
|
export * as products from './src/stores-catalog-v1-product-products.public';
|
|
5
|
-
export * as orders from './src/stores-v2-orders.public';
|
|
6
|
-
export * as subscriptionOptions from './src/stores-v1-subscription-option.public';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,KAAK,mBAAmB,MAAM,4CAA4C,CAAC;AAClF,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,QAAQ,MAAM,iDAAiD,CAAC"}
|
|
@@ -202,7 +202,9 @@ export interface GetCollectionResponse {
|
|
|
202
202
|
/**
|
|
203
203
|
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
204
204
|
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
205
|
-
* @public
|
|
205
|
+
* @public
|
|
206
|
+
* @documentationMaturity preview
|
|
207
|
+
*/
|
|
206
208
|
export declare function queryCollections(): CollectionsQueryBuilder;
|
|
207
209
|
interface QueryOffsetResult {
|
|
208
210
|
currentPage: number;
|
|
@@ -222,30 +224,45 @@ export interface CollectionsQueryResult extends QueryOffsetResult {
|
|
|
222
224
|
export interface CollectionsQueryBuilder {
|
|
223
225
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
224
226
|
* @param value - Value to compare against.
|
|
227
|
+
* @documentationMaturity preview
|
|
225
228
|
*/
|
|
226
229
|
eq: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
227
230
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
228
231
|
* @param value - Value to compare against.
|
|
232
|
+
* @documentationMaturity preview
|
|
229
233
|
*/
|
|
230
234
|
ne: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
231
235
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
232
236
|
* @param string - String to compare against. Case-insensitive.
|
|
237
|
+
* @documentationMaturity preview
|
|
233
238
|
*/
|
|
234
239
|
startsWith: (propertyName: string, value: string) => CollectionsQueryBuilder;
|
|
235
240
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
236
241
|
* @param values - List of values to compare against.
|
|
242
|
+
* @documentationMaturity preview
|
|
237
243
|
*/
|
|
238
244
|
hasSome: (propertyName: string, value: any[]) => CollectionsQueryBuilder;
|
|
245
|
+
/** @documentationMaturity preview */
|
|
239
246
|
in: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
247
|
+
/** @documentationMaturity preview */
|
|
240
248
|
exists: (propertyName: string, value: boolean) => CollectionsQueryBuilder;
|
|
241
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
249
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
250
|
+
* @documentationMaturity preview
|
|
251
|
+
*/
|
|
242
252
|
ascending: (...propertyNames: string[]) => CollectionsQueryBuilder;
|
|
243
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
253
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
254
|
+
* @documentationMaturity preview
|
|
255
|
+
*/
|
|
244
256
|
descending: (...propertyNames: string[]) => CollectionsQueryBuilder;
|
|
245
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
257
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
258
|
+
* @documentationMaturity preview
|
|
259
|
+
*/
|
|
246
260
|
limit: (limit: number) => CollectionsQueryBuilder;
|
|
247
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
261
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
262
|
+
* @documentationMaturity preview
|
|
263
|
+
*/
|
|
248
264
|
skip: (skip: number) => CollectionsQueryBuilder;
|
|
265
|
+
/** @documentationMaturity preview */
|
|
249
266
|
find: () => Promise<CollectionsQueryResult>;
|
|
250
267
|
}
|
|
251
268
|
/**
|
|
@@ -47,7 +47,9 @@ const _queryCollectionsResponse = {};
|
|
|
47
47
|
/**
|
|
48
48
|
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
49
49
|
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
50
|
-
* @public
|
|
50
|
+
* @public
|
|
51
|
+
* @documentationMaturity preview
|
|
52
|
+
*/
|
|
51
53
|
export function queryCollections() {
|
|
52
54
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
53
55
|
const responseTransformation = {
|
|
@@ -1 +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,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;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;AAED,MAAM,CAAC,MAAM,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,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;AAoFD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAsDD,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-collection.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;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;AAED,MAAM,CAAC,MAAM,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,MAA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AAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { AddProductMediaRequest, AddProductMediaResponse, AddProductMediaToChoicesRequest, AddProductMediaToChoicesResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, BulkAdjustProductPropertiesRequest, BulkAdjustProductPropertiesResponse, BulkUpdateProductsRequest, BulkUpdateProductsResponse, CreateCollectionRequest, CreateCollectionResponse, CreateProductRequest, CreateProductResponse, DeleteCollectionRequest, DeleteCollectionResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, DeleteProductRequest, DeleteProductResponse, GetProductRequest, GetProductResponse, QueryProductsPlatformizedRequest, QueryProductsPlatformizedResponse, RemoveProductBrandRequest, RemoveProductBrandResponse, RemoveProductMediaFromChoicesRequest, RemoveProductMediaFromChoicesResponse, RemoveProductMediaRequest, RemoveProductMediaResponse, RemoveProductRibbonRequest, RemoveProductRibbonResponse, RemoveProductsFromCollectionRequest, RemoveProductsFromCollectionResponse, ResetAllVariantDataRequest, ResetAllVariantDataResponse, UpdateCollectionRequest, UpdateCollectionResponse, UpdateProductRequest, UpdateProductResponse, UpdateVariantsRequest, UpdateVariantsResponse } from './stores-catalog-v1-product-products.types';
|
|
3
|
+
/** Creates a new product. */
|
|
4
|
+
export declare function createProduct(payload: CreateProductRequest): RequestOptionsFactory<CreateProductResponse>;
|
|
5
|
+
/** Updates specified fields in a product. */
|
|
6
|
+
export declare function updateProduct(payload: UpdateProductRequest): RequestOptionsFactory<UpdateProductResponse>;
|
|
7
|
+
/** Deletes a product. */
|
|
8
|
+
export declare function deleteProduct(payload: DeleteProductRequest): RequestOptionsFactory<DeleteProductResponse>;
|
|
9
|
+
/** Updates variants of a specified product. */
|
|
10
|
+
export declare function updateVariants(payload: UpdateVariantsRequest): RequestOptionsFactory<UpdateVariantsResponse>;
|
|
11
|
+
/** Resets all variant information to default values (price = current product price; weight = current product weight; SKU = current product SKU; visibility = true). */
|
|
12
|
+
export declare function resetAllVariantData(payload: ResetAllVariantDataRequest): RequestOptionsFactory<ResetAllVariantDataResponse>;
|
|
13
|
+
/** Adds products to a specified collection. */
|
|
14
|
+
export declare function addProductsToCollection(payload: AddProductsToCollectionRequest): RequestOptionsFactory<AddProductsToCollectionResponse>;
|
|
15
|
+
/** Deletes products from a specified collection. */
|
|
16
|
+
export declare function removeProductsFromCollection(payload: RemoveProductsFromCollectionRequest): RequestOptionsFactory<RemoveProductsFromCollectionResponse>;
|
|
17
|
+
/** Adds media items to a specified product, either via URL or existing media ID. */
|
|
18
|
+
export declare function addProductMedia(payload: AddProductMediaRequest): RequestOptionsFactory<AddProductMediaResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Removes specified media items from a product.
|
|
21
|
+
* Pass an empty array to remove all media items.
|
|
22
|
+
*/
|
|
23
|
+
export declare function removeProductMedia(payload: RemoveProductMediaRequest): RequestOptionsFactory<RemoveProductMediaResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Links media items that are already associated with a specific product to a choice within the same product.
|
|
26
|
+
*
|
|
27
|
+
* Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).
|
|
28
|
+
*
|
|
29
|
+
* To remove all existing media items, call the [Remove Product Media From Choices](https://dev.wix.com/api/rest/wix-stores/catalog/products/remove-product-media-from-choices) endpoint.
|
|
30
|
+
*/
|
|
31
|
+
export declare function addProductMediaToChoices(payload: AddProductMediaToChoicesRequest): RequestOptionsFactory<AddProductMediaToChoicesResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Removes media items from all or some of a product's choices.
|
|
34
|
+
* (Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).)
|
|
35
|
+
*/
|
|
36
|
+
export declare function removeProductMediaFromChoices(payload: RemoveProductMediaFromChoicesRequest): RequestOptionsFactory<RemoveProductMediaFromChoicesResponse>;
|
|
37
|
+
/** Delete all options from a specific product (only available when variant management is disabled). */
|
|
38
|
+
export declare function deleteProductOptions(payload: DeleteProductOptionsRequest): RequestOptionsFactory<DeleteProductOptionsResponse>;
|
|
39
|
+
/** Deletes a product's brand. */
|
|
40
|
+
export declare function removeBrand(payload: RemoveProductBrandRequest): RequestOptionsFactory<RemoveProductBrandResponse>;
|
|
41
|
+
/** Creates a new collection. */
|
|
42
|
+
export declare function createCollection(payload: CreateCollectionRequest): RequestOptionsFactory<CreateCollectionResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Updates specified properties of a collection.
|
|
45
|
+
* To add products to a collection, call the [Add Products to Collection](https://dev.wix.com/api/rest/wix-stores/catalog/collection/add-products-to-collection) endpoint.
|
|
46
|
+
*/
|
|
47
|
+
export declare function updateCollection(payload: UpdateCollectionRequest): RequestOptionsFactory<UpdateCollectionResponse>;
|
|
48
|
+
/** Deletes a collection. */
|
|
49
|
+
export declare function deleteCollection(payload: DeleteCollectionRequest): RequestOptionsFactory<DeleteCollectionResponse>;
|
|
50
|
+
/** Deletes a product's ribbon. */
|
|
51
|
+
export declare function removeRibbon(payload: RemoveProductRibbonRequest): RequestOptionsFactory<RemoveProductRibbonResponse>;
|
|
52
|
+
/** Updates a specified property for up to 100 products at a time. */
|
|
53
|
+
export declare function bulkUpdateProducts(payload: BulkUpdateProductsRequest): RequestOptionsFactory<BulkUpdateProductsResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Adjusts a specified numerical property for up to 100 products at a time.
|
|
56
|
+
* The property can be increased or decreased either by percentage or amount.
|
|
57
|
+
*/
|
|
58
|
+
export declare function bulkAdjustProductProperties(payload: BulkAdjustProductPropertiesRequest): RequestOptionsFactory<BulkAdjustProductPropertiesResponse>;
|
|
59
|
+
/** Returns a list of up to 100 products, given the provided paging, sorting and filtering. */
|
|
60
|
+
export declare function queryProductsPlatformized(payload: QueryProductsPlatformizedRequest): RequestOptionsFactory<QueryProductsPlatformizedResponse>;
|
|
61
|
+
/** Retrieves a product with the provided ID. */
|
|
62
|
+
export declare function getProduct(payload: GetProductRequest): RequestOptionsFactory<GetProductResponse>;
|