@wix/stores 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +2 -1
- package/build/cjs/index.js +3 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.http.d.ts +21 -1
- package/build/cjs/src/stores-catalog-v1-product.http.js +283 -1
- package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.public.d.ts +35 -0
- package/build/cjs/src/stores-catalog-v1-product.public.js +182 -0
- package/build/cjs/src/stores-catalog-v1-product.public.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product.types.d.ts +37 -32
- package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -1
- package/build/cjs/src/{stores-catalog-v1-product-products.universal.d.ts → stores-catalog-v1-product.universal.d.ts} +446 -8
- package/build/cjs/src/stores-catalog-v1-product.universal.js +1657 -0
- package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -0
- package/build/cjs/src/stores-v1-abandoned-cart.http.d.ts +6 -0
- package/build/cjs/src/stores-v1-abandoned-cart.http.js +103 -0
- package/build/cjs/src/stores-v1-abandoned-cart.http.js.map +1 -0
- package/build/cjs/src/stores-v1-abandoned-cart.public.d.ts +9 -0
- package/build/cjs/src/stores-v1-abandoned-cart.public.js +22 -0
- package/build/cjs/src/stores-v1-abandoned-cart.public.js.map +1 -0
- package/build/cjs/src/stores-v1-abandoned-cart.types.d.ts +189 -0
- package/build/cjs/src/stores-v1-abandoned-cart.types.js +30 -0
- package/build/cjs/src/stores-v1-abandoned-cart.types.js.map +1 -0
- package/build/cjs/src/stores-v1-abandoned-cart.universal.d.ts +214 -0
- package/build/cjs/src/stores-v1-abandoned-cart.universal.js +180 -0
- package/build/cjs/src/stores-v1-abandoned-cart.universal.js.map +1 -0
- package/build/cjs/src/stores-v1-subscription-option.http.js +6 -0
- package/build/cjs/src/stores-v1-subscription-option.http.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory.http.d.ts +29 -3
- package/build/cjs/src/stores-v2-inventory.http.js +177 -3
- package/build/cjs/src/stores-v2-inventory.http.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory.public.d.ts +7 -4
- package/build/cjs/src/stores-v2-inventory.public.js +21 -3
- package/build/cjs/src/stores-v2-inventory.public.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory.types.d.ts +2 -2
- package/build/cjs/src/stores-v2-inventory.universal.d.ts +107 -17
- package/build/cjs/src/stores-v2-inventory.universal.js +193 -11
- package/build/cjs/src/stores-v2-inventory.universal.js.map +1 -1
- package/build/es/index.d.ts +2 -1
- package/build/es/index.js +2 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.http.d.ts +21 -1
- package/build/es/src/stores-catalog-v1-product.http.js +275 -0
- package/build/es/src/stores-catalog-v1-product.http.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.public.d.ts +35 -0
- package/build/es/src/stores-catalog-v1-product.public.js +144 -0
- package/build/es/src/stores-catalog-v1-product.public.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product.types.d.ts +37 -32
- package/build/es/src/stores-catalog-v1-product.types.js.map +1 -1
- package/build/es/src/{stores-catalog-v1-product-products.universal.d.ts → stores-catalog-v1-product.universal.d.ts} +446 -8
- package/build/es/src/stores-catalog-v1-product.universal.js +1607 -0
- package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -0
- package/build/es/src/stores-v1-abandoned-cart.http.d.ts +6 -0
- package/build/es/src/stores-v1-abandoned-cart.http.js +98 -0
- package/build/es/src/stores-v1-abandoned-cart.http.js.map +1 -0
- package/build/es/src/stores-v1-abandoned-cart.public.d.ts +9 -0
- package/build/es/src/stores-v1-abandoned-cart.public.js +14 -0
- package/build/es/src/stores-v1-abandoned-cart.public.js.map +1 -0
- package/build/es/src/stores-v1-abandoned-cart.types.d.ts +189 -0
- package/build/es/src/stores-v1-abandoned-cart.types.js +27 -0
- package/build/es/src/stores-v1-abandoned-cart.types.js.map +1 -0
- package/build/es/src/stores-v1-abandoned-cart.universal.d.ts +214 -0
- package/build/es/src/stores-v1-abandoned-cart.universal.js +156 -0
- package/build/es/src/stores-v1-abandoned-cart.universal.js.map +1 -0
- package/build/es/src/stores-v1-subscription-option.http.js +6 -0
- package/build/es/src/stores-v1-subscription-option.http.js.map +1 -1
- package/build/es/src/stores-v2-inventory.http.d.ts +29 -3
- package/build/es/src/stores-v2-inventory.http.js +173 -2
- package/build/es/src/stores-v2-inventory.http.js.map +1 -1
- package/build/es/src/stores-v2-inventory.public.d.ts +7 -4
- package/build/es/src/stores-v2-inventory.public.js +18 -3
- package/build/es/src/stores-v2-inventory.public.js.map +1 -1
- package/build/es/src/stores-v2-inventory.types.d.ts +2 -2
- package/build/es/src/stores-v2-inventory.universal.d.ts +107 -17
- package/build/es/src/stores-v2-inventory.universal.js +189 -10
- package/build/es/src/stores-v2-inventory.universal.js.map +1 -1
- package/package.json +2 -2
- package/build/cjs/src/stores-catalog-v1-product-products.http.d.ts +0 -62
- package/build/cjs/src/stores-catalog-v1-product-products.http.js +0 -845
- package/build/cjs/src/stores-catalog-v1-product-products.http.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product-products.public.d.ts +0 -9
- package/build/cjs/src/stores-catalog-v1-product-products.public.js +0 -26
- package/build/cjs/src/stores-catalog-v1-product-products.public.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product-products.types.d.ts +0 -1398
- package/build/cjs/src/stores-catalog-v1-product-products.types.js +0 -69
- package/build/cjs/src/stores-catalog-v1-product-products.types.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js +0 -232
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product-products.http.d.ts +0 -62
- package/build/es/src/stores-catalog-v1-product-products.http.js +0 -821
- package/build/es/src/stores-catalog-v1-product-products.http.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product-products.public.d.ts +0 -9
- package/build/es/src/stores-catalog-v1-product-products.public.js +0 -14
- package/build/es/src/stores-catalog-v1-product-products.public.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product-products.types.d.ts +0 -1398
- package/build/es/src/stores-catalog-v1-product-products.types.js +0 -66
- package/build/es/src/stores-catalog-v1-product-products.types.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product-products.universal.js +0 -208
- package/build/es/src/stores-catalog-v1-product-products.universal.js.map +0 -1
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as orders from './src/stores-v2-orders.public';
|
|
2
2
|
export * as wishlist from './src/platform-v1-wishlist.public';
|
|
3
3
|
export * as collections from './src/stores-catalog-v1-collection.public';
|
|
4
|
-
export * as products from './src/stores-catalog-v1-product
|
|
4
|
+
export * as products from './src/stores-catalog-v1-product.public';
|
|
5
|
+
export * as abandonedCarts from './src/stores-v1-abandoned-cart.public';
|
|
5
6
|
export * as subscriptionOptions from './src/stores-v1-subscription-option.public';
|
|
6
7
|
export * as inventory from './src/stores-v2-inventory.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,11 +19,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.inventory = exports.subscriptionOptions = exports.products = exports.collections = exports.wishlist = exports.orders = void 0;
|
|
22
|
+
exports.inventory = exports.subscriptionOptions = exports.abandonedCarts = exports.products = exports.collections = exports.wishlist = exports.orders = void 0;
|
|
23
23
|
exports.orders = __importStar(require("./src/stores-v2-orders.public"));
|
|
24
24
|
exports.wishlist = __importStar(require("./src/platform-v1-wishlist.public"));
|
|
25
25
|
exports.collections = __importStar(require("./src/stores-catalog-v1-collection.public"));
|
|
26
|
-
exports.products = __importStar(require("./src/stores-catalog-v1-product
|
|
26
|
+
exports.products = __importStar(require("./src/stores-catalog-v1-product.public"));
|
|
27
|
+
exports.abandonedCarts = __importStar(require("./src/stores-v1-abandoned-cart.public"));
|
|
27
28
|
exports.subscriptionOptions = __importStar(require("./src/stores-v1-subscription-option.public"));
|
|
28
29
|
exports.inventory = __importStar(require("./src/stores-v2-inventory.public"));
|
|
29
30
|
//# 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,wEAAwD;AACxD,8EAA8D;AAC9D,yFAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wEAAwD;AACxD,8EAA8D;AAC9D,yFAAyE;AACzE,mFAAmE;AACnE,wFAAwE;AACxE,kGAAkF;AAClF,8EAA8D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.types';
|
|
2
|
+
import { AddProductMediaRequest, AddProductMediaResponse, AddProductMediaToChoicesRequest, AddProductMediaToChoicesResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, BulkAdjustProductPropertiesRequest, BulkAdjustProductPropertiesResponse, BulkUpdateProductsRequest, BulkUpdateProductsResponse, CreateCollectionRequest, CreateCollectionResponse, CreateProductRequest, CreateProductResponse, DeleteCollectionRequest, DeleteCollectionResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, DeleteProductRequest, DeleteProductResponse, GetCollectionBySlugRequest, GetCollectionBySlugResponse, GetCollectionRequest, GetCollectionResponse, GetProductRequest, GetProductResponse, GetStoreVariantRequest, GetStoreVariantResponse, ProductOptionsAvailabilityRequest, ProductOptionsAvailabilityResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryProductsPlatformizedRequest, QueryProductsPlatformizedResponse, QueryProductVariantsRequest, QueryProductVariantsResponse, QueryStoreVariantsRequest, QueryStoreVariantsResponse, RemoveProductBrandRequest, RemoveProductBrandResponse, RemoveProductMediaFromChoicesRequest, RemoveProductMediaFromChoicesResponse, RemoveProductMediaRequest, RemoveProductMediaResponse, RemoveProductRibbonRequest, RemoveProductRibbonResponse, RemoveProductsFromCollectionRequest, RemoveProductsFromCollectionResponse, ResetAllVariantDataRequest, ResetAllVariantDataResponse, UpdateCollectionRequest, UpdateCollectionResponse, UpdateProductRequest, UpdateProductResponse, UpdateVariantsRequest, UpdateVariantsResponse } from './stores-catalog-v1-product.types';
|
|
3
3
|
/** Creates a new product. */
|
|
4
4
|
export declare function createProduct(payload: CreateProductRequest): RequestOptionsFactory<CreateProductResponse>;
|
|
5
5
|
/** Updates specified fields in a product. */
|
|
@@ -60,3 +60,23 @@ export declare function bulkAdjustProductProperties(payload: BulkAdjustProductPr
|
|
|
60
60
|
export declare function queryProductsPlatformized(payload: QueryProductsPlatformizedRequest): RequestOptionsFactory<QueryProductsPlatformizedResponse>;
|
|
61
61
|
/** Retrieves a product with the provided ID. */
|
|
62
62
|
export declare function getProduct(payload: GetProductRequest): RequestOptionsFactory<GetProductResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
65
|
+
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
66
|
+
*/
|
|
67
|
+
export declare function queryCollections(payload: QueryCollectionsRequest): RequestOptionsFactory<QueryCollectionsResponse>;
|
|
68
|
+
/** Retrieves a collection with the provided ID. */
|
|
69
|
+
export declare function getCollection(payload: GetCollectionRequest): RequestOptionsFactory<GetCollectionResponse>;
|
|
70
|
+
/** Retrieves a collection with the provided slug. */
|
|
71
|
+
export declare function getCollectionBySlug(payload: GetCollectionBySlugRequest): RequestOptionsFactory<GetCollectionBySlugResponse>;
|
|
72
|
+
/** Gets the availability of relevant product variants based on the product ID and selections provided. See [Use Cases](https://dev.wix.com/api/rest/wix-stores/catalog/use-cases) for an example. */
|
|
73
|
+
export declare function productOptionsAvailability(payload: ProductOptionsAvailabilityRequest): RequestOptionsFactory<ProductOptionsAvailabilityResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves product variants, based on either choices (option-choice key-value pairs) or variant IDs.
|
|
76
|
+
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
77
|
+
*/
|
|
78
|
+
export declare function queryProductVariants(payload: QueryProductVariantsRequest): RequestOptionsFactory<QueryProductVariantsResponse>;
|
|
79
|
+
/** Retrieves up to 100 store variants, given the provided paging, filtering, and sorting. */
|
|
80
|
+
export declare function queryStoreVariants(payload: QueryStoreVariantsRequest): RequestOptionsFactory<QueryStoreVariantsResponse>;
|
|
81
|
+
/** Retrieves a store variant with the provided ID. */
|
|
82
|
+
export declare function getStoreVariant(payload: GetStoreVariantRequest): RequestOptionsFactory<GetStoreVariantResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getProduct = exports.queryProductsPlatformized = exports.bulkAdjustProductProperties = exports.bulkUpdateProducts = exports.removeRibbon = exports.deleteCollection = exports.updateCollection = exports.createCollection = exports.removeBrand = exports.deleteProductOptions = exports.removeProductMediaFromChoices = exports.addProductMediaToChoices = exports.removeProductMedia = exports.addProductMedia = exports.removeProductsFromCollection = exports.addProductsToCollection = exports.resetAllVariantData = exports.updateVariants = exports.deleteProduct = exports.updateProduct = exports.createProduct = void 0;
|
|
3
|
+
exports.getStoreVariant = exports.queryStoreVariants = exports.queryProductVariants = exports.productOptionsAvailability = exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = exports.getProduct = exports.queryProductsPlatformized = exports.bulkAdjustProductProperties = exports.bulkUpdateProducts = exports.removeRibbon = exports.deleteCollection = exports.updateCollection = exports.createCollection = exports.removeBrand = exports.deleteProductOptions = exports.removeProductMediaFromChoices = exports.addProductMediaToChoices = exports.removeProductMedia = exports.addProductMedia = exports.removeProductsFromCollection = exports.addProductsToCollection = exports.resetAllVariantData = exports.updateVariants = exports.deleteProduct = exports.updateProduct = exports.createProduct = 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");
|
|
@@ -35,9 +35,17 @@ const _deleteProductOptionsResponse = {};
|
|
|
35
35
|
const _deleteProductRequest = {};
|
|
36
36
|
const _deleteProductResponse = {};
|
|
37
37
|
const _discount = { value: 'DOUBLE' };
|
|
38
|
+
const _getCollectionBySlugRequest = {};
|
|
39
|
+
const _getCollectionBySlugResponse = {};
|
|
40
|
+
const _getCollectionRequest = {};
|
|
41
|
+
const _getCollectionResponse = {};
|
|
38
42
|
const _getProductRequest = {};
|
|
39
43
|
const _getProductResponse = { product: '_product' };
|
|
44
|
+
const _getStoreVariantRequest = {};
|
|
45
|
+
const _getStoreVariantResponse = { variant: '_storeVariant' };
|
|
46
|
+
const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
|
|
40
47
|
const _numericPropertyRange = { minValue: 'DOUBLE', maxValue: 'DOUBLE' };
|
|
48
|
+
const _platformMedia = { image: '_image', video: '_videoV2' };
|
|
41
49
|
const _priceData = {
|
|
42
50
|
price: 'google.protobuf.DoubleValue',
|
|
43
51
|
discountedPrice: 'DOUBLE',
|
|
@@ -59,9 +67,17 @@ const _product = {
|
|
|
59
67
|
discount: '_discount',
|
|
60
68
|
variants: '_variant',
|
|
61
69
|
};
|
|
70
|
+
const _productOptionsAvailabilityRequest = {};
|
|
71
|
+
const _productOptionsAvailabilityResponse = { selectedVariant: '_variantData' };
|
|
62
72
|
const _propertyAdjustmentData = { amount: 'DOUBLE' };
|
|
73
|
+
const _queryCollectionsRequest = {};
|
|
74
|
+
const _queryCollectionsResponse = {};
|
|
63
75
|
const _queryProductsPlatformizedRequest = {};
|
|
64
76
|
const _queryProductsPlatformizedResponse = { products: '_product' };
|
|
77
|
+
const _queryProductVariantsRequest = {};
|
|
78
|
+
const _queryProductVariantsResponse = { variants: '_variant' };
|
|
79
|
+
const _queryStoreVariantsRequest = {};
|
|
80
|
+
const _queryStoreVariantsResponse = { variants: '_storeVariant' };
|
|
65
81
|
const _removeProductBrandRequest = {};
|
|
66
82
|
const _removeProductBrandResponse = {};
|
|
67
83
|
const _removeProductMediaFromChoicesRequest = {};
|
|
@@ -75,6 +91,7 @@ const _removeProductsFromCollectionResponse = {};
|
|
|
75
91
|
const _resetAllVariantDataRequest = {};
|
|
76
92
|
const _resetAllVariantDataResponse = {};
|
|
77
93
|
const _setValue = { price: 'DOUBLE', cost: 'DOUBLE', weight: 'DOUBLE' };
|
|
94
|
+
const _storeVariant = { media: '_platformMedia' };
|
|
78
95
|
const _updateCollectionRequest = {};
|
|
79
96
|
const _updateCollectionResponse = {};
|
|
80
97
|
const _updateProductRequest = { product: '_product' };
|
|
@@ -82,6 +99,11 @@ const _updateProductResponse = { product: '_product' };
|
|
|
82
99
|
const _updateVariantsRequest = { variants: '_variantOverride' };
|
|
83
100
|
const _updateVariantsResponse = { variants: '_variant' };
|
|
84
101
|
const _variant = { variant: '_variantDataWithNoStock' };
|
|
102
|
+
const _variantData = {
|
|
103
|
+
weight: 'google.protobuf.DoubleValue',
|
|
104
|
+
price: '_priceData',
|
|
105
|
+
convertedPriceData: '_priceData',
|
|
106
|
+
};
|
|
85
107
|
const _variantDataWithNoStock = {
|
|
86
108
|
weight: 'DOUBLE',
|
|
87
109
|
priceData: '_priceData',
|
|
@@ -93,6 +115,15 @@ const _variantOverride = {
|
|
|
93
115
|
cost: 'google.protobuf.DoubleValue',
|
|
94
116
|
weight: 'google.protobuf.DoubleValue',
|
|
95
117
|
};
|
|
118
|
+
const _videoResolution = {
|
|
119
|
+
urlExpirationDate: 'google.protobuf.Timestamp',
|
|
120
|
+
poster: '_image',
|
|
121
|
+
};
|
|
122
|
+
const _videoV2 = {
|
|
123
|
+
urlExpirationDate: 'google.protobuf.Timestamp',
|
|
124
|
+
resolutions: '_videoResolution',
|
|
125
|
+
posters: '_image',
|
|
126
|
+
};
|
|
96
127
|
function resolveWixCatalogApiV1CatalogReadApiUrl(opts) {
|
|
97
128
|
const domainToMappings = {
|
|
98
129
|
'api._api_base_domain_': [
|
|
@@ -240,6 +271,24 @@ function resolveWixCatalogApiV1CatalogWriteApiUrl(opts) {
|
|
|
240
271
|
destPath: '/v1/collections',
|
|
241
272
|
},
|
|
242
273
|
],
|
|
274
|
+
'editor._base_domain_': [
|
|
275
|
+
{
|
|
276
|
+
srcPath: '/_api/catalog-server',
|
|
277
|
+
destPath: '',
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
'blocks._base_domain_': [
|
|
281
|
+
{
|
|
282
|
+
srcPath: '/_api/catalog-server',
|
|
283
|
+
destPath: '',
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
'create.editorx': [
|
|
287
|
+
{
|
|
288
|
+
srcPath: '/_api/catalog-server',
|
|
289
|
+
destPath: '',
|
|
290
|
+
},
|
|
291
|
+
],
|
|
243
292
|
};
|
|
244
293
|
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
245
294
|
}
|
|
@@ -268,7 +317,9 @@ function createProduct(payload) {
|
|
|
268
317
|
function __createProduct({ host }) {
|
|
269
318
|
const serializedData = toReq(payload);
|
|
270
319
|
const metadata = {
|
|
320
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
271
321
|
method: 'POST',
|
|
322
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.CreateProduct',
|
|
272
323
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
273
324
|
protoPath: '/v1/products',
|
|
274
325
|
data: serializedData,
|
|
@@ -308,7 +359,9 @@ function updateProduct(payload) {
|
|
|
308
359
|
function __updateProduct({ host }) {
|
|
309
360
|
const serializedData = toReq(payload);
|
|
310
361
|
const metadata = {
|
|
362
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
311
363
|
method: 'PATCH',
|
|
364
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.UpdateProduct',
|
|
312
365
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
313
366
|
protoPath: '/v1/products/{product.id}',
|
|
314
367
|
data: serializedData,
|
|
@@ -330,7 +383,9 @@ function deleteProduct(payload) {
|
|
|
330
383
|
function __deleteProduct({ host }) {
|
|
331
384
|
const serializedData = toReq(payload);
|
|
332
385
|
const metadata = {
|
|
386
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
333
387
|
method: 'DELETE',
|
|
388
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.DeleteProduct',
|
|
334
389
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
335
390
|
protoPath: '/v1/products/{id}',
|
|
336
391
|
data: serializedData,
|
|
@@ -357,7 +412,9 @@ function updateVariants(payload) {
|
|
|
357
412
|
function __updateVariants({ host }) {
|
|
358
413
|
const serializedData = toReq(payload);
|
|
359
414
|
const metadata = {
|
|
415
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
360
416
|
method: 'PATCH',
|
|
417
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.UpdateVariants',
|
|
361
418
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
362
419
|
protoPath: '/v1/products/{id}/variants',
|
|
363
420
|
data: serializedData,
|
|
@@ -379,7 +436,9 @@ function resetAllVariantData(payload) {
|
|
|
379
436
|
function __resetAllVariantData({ host }) {
|
|
380
437
|
const serializedData = toReq(payload);
|
|
381
438
|
const metadata = {
|
|
439
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
382
440
|
method: 'POST',
|
|
441
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.ResetAllVariantData',
|
|
383
442
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
384
443
|
protoPath: '/v1/products/{id}/variants/resetToDefault',
|
|
385
444
|
data: serializedData,
|
|
@@ -401,7 +460,9 @@ function addProductsToCollection(payload) {
|
|
|
401
460
|
function __addProductsToCollection({ host }) {
|
|
402
461
|
const serializedData = toReq(payload);
|
|
403
462
|
const metadata = {
|
|
463
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
404
464
|
method: 'POST',
|
|
465
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.AddProductsToCollection',
|
|
405
466
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
406
467
|
protoPath: '/v1/collections/{id}/productIds',
|
|
407
468
|
data: serializedData,
|
|
@@ -423,7 +484,9 @@ function removeProductsFromCollection(payload) {
|
|
|
423
484
|
function __removeProductsFromCollection({ host }) {
|
|
424
485
|
const serializedData = toReq(payload);
|
|
425
486
|
const metadata = {
|
|
487
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
426
488
|
method: 'POST',
|
|
489
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.RemoveProductsFromCollection',
|
|
427
490
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
428
491
|
protoPath: '/v1/collections/{id}/productIds/delete',
|
|
429
492
|
data: serializedData,
|
|
@@ -445,7 +508,9 @@ function addProductMedia(payload) {
|
|
|
445
508
|
function __addProductMedia({ host }) {
|
|
446
509
|
const serializedData = toReq(payload);
|
|
447
510
|
const metadata = {
|
|
511
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
448
512
|
method: 'POST',
|
|
513
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.AddProductMedia',
|
|
449
514
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
450
515
|
protoPath: '/v1/products/{id}/media',
|
|
451
516
|
data: serializedData,
|
|
@@ -470,7 +535,9 @@ function removeProductMedia(payload) {
|
|
|
470
535
|
function __removeProductMedia({ host }) {
|
|
471
536
|
const serializedData = toReq(payload);
|
|
472
537
|
const metadata = {
|
|
538
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
473
539
|
method: 'POST',
|
|
540
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.RemoveProductMedia',
|
|
474
541
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
475
542
|
protoPath: '/v1/products/{id}/media/delete',
|
|
476
543
|
data: serializedData,
|
|
@@ -498,7 +565,9 @@ function addProductMediaToChoices(payload) {
|
|
|
498
565
|
function __addProductMediaToChoices({ host }) {
|
|
499
566
|
const serializedData = toReq(payload);
|
|
500
567
|
const metadata = {
|
|
568
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
501
569
|
method: 'PATCH',
|
|
570
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.AddProductMediaToChoices',
|
|
502
571
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
503
572
|
protoPath: '/v1/products/{id}/choices/media',
|
|
504
573
|
data: serializedData,
|
|
@@ -523,7 +592,9 @@ function removeProductMediaFromChoices(payload) {
|
|
|
523
592
|
function __removeProductMediaFromChoices({ host }) {
|
|
524
593
|
const serializedData = toReq(payload);
|
|
525
594
|
const metadata = {
|
|
595
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
526
596
|
method: 'POST',
|
|
597
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.RemoveProductMediaFromChoices',
|
|
527
598
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
528
599
|
protoPath: '/v1/products/{id}/choices/media/delete',
|
|
529
600
|
data: serializedData,
|
|
@@ -545,7 +616,9 @@ function deleteProductOptions(payload) {
|
|
|
545
616
|
function __deleteProductOptions({ host }) {
|
|
546
617
|
const serializedData = toReq(payload);
|
|
547
618
|
const metadata = {
|
|
619
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
548
620
|
method: 'DELETE',
|
|
621
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.DeleteProductOptions',
|
|
549
622
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
550
623
|
protoPath: '/v1/products/{id}/options',
|
|
551
624
|
data: serializedData,
|
|
@@ -567,7 +640,9 @@ function removeBrand(payload) {
|
|
|
567
640
|
function __removeBrand({ host }) {
|
|
568
641
|
const serializedData = toReq(payload);
|
|
569
642
|
const metadata = {
|
|
643
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
570
644
|
method: 'POST',
|
|
645
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.RemoveBrand',
|
|
571
646
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
572
647
|
protoPath: '/v1/products/{id}/remove-brand',
|
|
573
648
|
data: serializedData,
|
|
@@ -589,7 +664,9 @@ function createCollection(payload) {
|
|
|
589
664
|
function __createCollection({ host }) {
|
|
590
665
|
const serializedData = toReq(payload);
|
|
591
666
|
const metadata = {
|
|
667
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
592
668
|
method: 'POST',
|
|
669
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.CreateCollection',
|
|
593
670
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
594
671
|
protoPath: '/v1/collections',
|
|
595
672
|
data: serializedData,
|
|
@@ -614,7 +691,9 @@ function updateCollection(payload) {
|
|
|
614
691
|
function __updateCollection({ host }) {
|
|
615
692
|
const serializedData = toReq(payload);
|
|
616
693
|
const metadata = {
|
|
694
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
617
695
|
method: 'PATCH',
|
|
696
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.UpdateCollection',
|
|
618
697
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
619
698
|
protoPath: '/v1/collections/{collection.id}',
|
|
620
699
|
data: serializedData,
|
|
@@ -636,7 +715,9 @@ function deleteCollection(payload) {
|
|
|
636
715
|
function __deleteCollection({ host }) {
|
|
637
716
|
const serializedData = toReq(payload);
|
|
638
717
|
const metadata = {
|
|
718
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
639
719
|
method: 'DELETE',
|
|
720
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.DeleteCollection',
|
|
640
721
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
641
722
|
protoPath: '/v1/collections/{id}',
|
|
642
723
|
data: serializedData,
|
|
@@ -658,7 +739,9 @@ function removeRibbon(payload) {
|
|
|
658
739
|
function __removeRibbon({ host }) {
|
|
659
740
|
const serializedData = toReq(payload);
|
|
660
741
|
const metadata = {
|
|
742
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
661
743
|
method: 'POST',
|
|
744
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.RemoveRibbon',
|
|
662
745
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
663
746
|
protoPath: '/v1/products/{id}/remove-ribbon',
|
|
664
747
|
data: serializedData,
|
|
@@ -680,7 +763,9 @@ function bulkUpdateProducts(payload) {
|
|
|
680
763
|
function __bulkUpdateProducts({ host }) {
|
|
681
764
|
const serializedData = toReq(payload);
|
|
682
765
|
const metadata = {
|
|
766
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
683
767
|
method: 'POST',
|
|
768
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.BulkUpdateProducts',
|
|
684
769
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
685
770
|
protoPath: '/v1/bulk/products/update',
|
|
686
771
|
data: serializedData,
|
|
@@ -705,7 +790,9 @@ function bulkAdjustProductProperties(payload) {
|
|
|
705
790
|
function __bulkAdjustProductProperties({ host }) {
|
|
706
791
|
const serializedData = toReq(payload);
|
|
707
792
|
const metadata = {
|
|
793
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
708
794
|
method: 'POST',
|
|
795
|
+
methodFqn: 'wix.catalog.api.v1.CatalogWriteApi.BulkAdjustProductProperties',
|
|
709
796
|
url: resolveWixCatalogApiV1CatalogWriteApiUrl({
|
|
710
797
|
protoPath: '/v1/bulk/products/adjust-properties',
|
|
711
798
|
data: serializedData,
|
|
@@ -736,7 +823,9 @@ function queryProductsPlatformized(payload) {
|
|
|
736
823
|
function __queryProductsPlatformized({ host }) {
|
|
737
824
|
const serializedData = toReq(payload);
|
|
738
825
|
const metadata = {
|
|
826
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
739
827
|
method: 'POST',
|
|
828
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.QueryProductsPlatformized',
|
|
740
829
|
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
741
830
|
protoPath: '/v1/products/query-platformized',
|
|
742
831
|
data: serializedData,
|
|
@@ -767,7 +856,9 @@ function getProduct(payload) {
|
|
|
767
856
|
function __getProduct({ host }) {
|
|
768
857
|
const serializedData = toReq(payload);
|
|
769
858
|
const metadata = {
|
|
859
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
770
860
|
method: 'GET',
|
|
861
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.GetProduct',
|
|
771
862
|
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
772
863
|
protoPath: '/v1/products/{id}',
|
|
773
864
|
data: serializedData,
|
|
@@ -782,4 +873,195 @@ function getProduct(payload) {
|
|
|
782
873
|
return __getProduct;
|
|
783
874
|
}
|
|
784
875
|
exports.getProduct = getProduct;
|
|
876
|
+
/**
|
|
877
|
+
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
878
|
+
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
879
|
+
*/
|
|
880
|
+
function queryCollections(payload) {
|
|
881
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryCollectionsRequest, {});
|
|
882
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_queryCollectionsResponse, {});
|
|
883
|
+
function __queryCollections({ host }) {
|
|
884
|
+
const serializedData = toReq(payload);
|
|
885
|
+
const metadata = {
|
|
886
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
887
|
+
method: 'POST',
|
|
888
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.QueryCollections',
|
|
889
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
890
|
+
protoPath: '/v1/collections/query',
|
|
891
|
+
data: serializedData,
|
|
892
|
+
host,
|
|
893
|
+
}),
|
|
894
|
+
data: serializedData,
|
|
895
|
+
transformResponse: fromRes,
|
|
896
|
+
};
|
|
897
|
+
return metadata;
|
|
898
|
+
}
|
|
899
|
+
__queryCollections.fromReq = fromReq;
|
|
900
|
+
return __queryCollections;
|
|
901
|
+
}
|
|
902
|
+
exports.queryCollections = queryCollections;
|
|
903
|
+
/** Retrieves a collection with the provided ID. */
|
|
904
|
+
function getCollection(payload) {
|
|
905
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getCollectionRequest, {});
|
|
906
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getCollectionResponse, {});
|
|
907
|
+
function __getCollection({ host }) {
|
|
908
|
+
const serializedData = toReq(payload);
|
|
909
|
+
const metadata = {
|
|
910
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
911
|
+
method: 'GET',
|
|
912
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.GetCollection',
|
|
913
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
914
|
+
protoPath: '/v1/collections/{id}',
|
|
915
|
+
data: serializedData,
|
|
916
|
+
host,
|
|
917
|
+
}),
|
|
918
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
919
|
+
transformResponse: fromRes,
|
|
920
|
+
};
|
|
921
|
+
return metadata;
|
|
922
|
+
}
|
|
923
|
+
__getCollection.fromReq = fromReq;
|
|
924
|
+
return __getCollection;
|
|
925
|
+
}
|
|
926
|
+
exports.getCollection = getCollection;
|
|
927
|
+
/** Retrieves a collection with the provided slug. */
|
|
928
|
+
function getCollectionBySlug(payload) {
|
|
929
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getCollectionBySlugRequest, {});
|
|
930
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getCollectionBySlugResponse, {});
|
|
931
|
+
function __getCollectionBySlug({ host }) {
|
|
932
|
+
const serializedData = toReq(payload);
|
|
933
|
+
const metadata = {
|
|
934
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
935
|
+
method: 'GET',
|
|
936
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.GetCollectionBySlug',
|
|
937
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
938
|
+
protoPath: '/v1/collections/slug/{slug}',
|
|
939
|
+
data: serializedData,
|
|
940
|
+
host,
|
|
941
|
+
}),
|
|
942
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
943
|
+
transformResponse: fromRes,
|
|
944
|
+
};
|
|
945
|
+
return metadata;
|
|
946
|
+
}
|
|
947
|
+
__getCollectionBySlug.fromReq = fromReq;
|
|
948
|
+
return __getCollectionBySlug;
|
|
949
|
+
}
|
|
950
|
+
exports.getCollectionBySlug = getCollectionBySlug;
|
|
951
|
+
/** Gets the availability of relevant product variants based on the product ID and selections provided. See [Use Cases](https://dev.wix.com/api/rest/wix-stores/catalog/use-cases) for an example. */
|
|
952
|
+
function productOptionsAvailability(payload) {
|
|
953
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_productOptionsAvailabilityRequest, {});
|
|
954
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_productOptionsAvailabilityResponse, { _priceData, _variantData });
|
|
955
|
+
function __productOptionsAvailability({ host }) {
|
|
956
|
+
const serializedData = toReq(payload);
|
|
957
|
+
const metadata = {
|
|
958
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
959
|
+
method: 'POST',
|
|
960
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.ProductOptionsAvailability',
|
|
961
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
962
|
+
protoPath: '/v1/products/{id}/productOptionsAvailability',
|
|
963
|
+
data: serializedData,
|
|
964
|
+
host,
|
|
965
|
+
}),
|
|
966
|
+
data: serializedData,
|
|
967
|
+
transformResponse: fromRes,
|
|
968
|
+
};
|
|
969
|
+
return metadata;
|
|
970
|
+
}
|
|
971
|
+
__productOptionsAvailability.fromReq = fromReq;
|
|
972
|
+
return __productOptionsAvailability;
|
|
973
|
+
}
|
|
974
|
+
exports.productOptionsAvailability = productOptionsAvailability;
|
|
975
|
+
/**
|
|
976
|
+
* Retrieves product variants, based on either choices (option-choice key-value pairs) or variant IDs.
|
|
977
|
+
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
978
|
+
*/
|
|
979
|
+
function queryProductVariants(payload) {
|
|
980
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryProductVariantsRequest, {});
|
|
981
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_queryProductVariantsResponse, {
|
|
982
|
+
_costAndProfitData,
|
|
983
|
+
_priceData,
|
|
984
|
+
_variant,
|
|
985
|
+
_variantDataWithNoStock,
|
|
986
|
+
});
|
|
987
|
+
function __queryProductVariants({ host }) {
|
|
988
|
+
const serializedData = toReq(payload);
|
|
989
|
+
const metadata = {
|
|
990
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
991
|
+
method: 'POST',
|
|
992
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.QueryProductVariants',
|
|
993
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
994
|
+
protoPath: '/v1/products/{id}/variants/query',
|
|
995
|
+
data: serializedData,
|
|
996
|
+
host,
|
|
997
|
+
}),
|
|
998
|
+
data: serializedData,
|
|
999
|
+
transformResponse: fromRes,
|
|
1000
|
+
};
|
|
1001
|
+
return metadata;
|
|
1002
|
+
}
|
|
1003
|
+
__queryProductVariants.fromReq = fromReq;
|
|
1004
|
+
return __queryProductVariants;
|
|
1005
|
+
}
|
|
1006
|
+
exports.queryProductVariants = queryProductVariants;
|
|
1007
|
+
/** Retrieves up to 100 store variants, given the provided paging, filtering, and sorting. */
|
|
1008
|
+
function queryStoreVariants(payload) {
|
|
1009
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryStoreVariantsRequest, {});
|
|
1010
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_queryStoreVariantsResponse, {
|
|
1011
|
+
_image,
|
|
1012
|
+
_platformMedia,
|
|
1013
|
+
_storeVariant,
|
|
1014
|
+
_videoResolution,
|
|
1015
|
+
_videoV2,
|
|
1016
|
+
});
|
|
1017
|
+
function __queryStoreVariants({ host }) {
|
|
1018
|
+
const serializedData = toReq(payload);
|
|
1019
|
+
const metadata = {
|
|
1020
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
1021
|
+
method: 'POST',
|
|
1022
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.QueryStoreVariants',
|
|
1023
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
1024
|
+
protoPath: '/v1/variants/query',
|
|
1025
|
+
data: serializedData,
|
|
1026
|
+
host,
|
|
1027
|
+
}),
|
|
1028
|
+
data: serializedData,
|
|
1029
|
+
transformResponse: fromRes,
|
|
1030
|
+
};
|
|
1031
|
+
return metadata;
|
|
1032
|
+
}
|
|
1033
|
+
__queryStoreVariants.fromReq = fromReq;
|
|
1034
|
+
return __queryStoreVariants;
|
|
1035
|
+
}
|
|
1036
|
+
exports.queryStoreVariants = queryStoreVariants;
|
|
1037
|
+
/** Retrieves a store variant with the provided ID. */
|
|
1038
|
+
function getStoreVariant(payload) {
|
|
1039
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getStoreVariantRequest, {});
|
|
1040
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getStoreVariantResponse, {
|
|
1041
|
+
_image,
|
|
1042
|
+
_platformMedia,
|
|
1043
|
+
_storeVariant,
|
|
1044
|
+
_videoResolution,
|
|
1045
|
+
_videoV2,
|
|
1046
|
+
});
|
|
1047
|
+
function __getStoreVariant({ host }) {
|
|
1048
|
+
const serializedData = toReq(payload);
|
|
1049
|
+
const metadata = {
|
|
1050
|
+
entityFqdn: 'wix.stores.catalog.v1.product',
|
|
1051
|
+
method: 'GET',
|
|
1052
|
+
methodFqn: 'wix.catalog.api.v1.CatalogReadApi.GetStoreVariant',
|
|
1053
|
+
url: resolveWixCatalogApiV1CatalogReadApiUrl({
|
|
1054
|
+
protoPath: '/v1/variants/{id}',
|
|
1055
|
+
data: serializedData,
|
|
1056
|
+
host,
|
|
1057
|
+
}),
|
|
1058
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
1059
|
+
transformResponse: fromRes,
|
|
1060
|
+
};
|
|
1061
|
+
return metadata;
|
|
1062
|
+
}
|
|
1063
|
+
__getStoreVariant.fromReq = fromReq;
|
|
1064
|
+
return __getStoreVariant;
|
|
1065
|
+
}
|
|
1066
|
+
exports.getStoreVariant = getStoreVariant;
|
|
785
1067
|
//# sourceMappingURL=stores-catalog-v1-product.http.js.map
|