@wix/auto_sdk_stores_products-v-3 1.0.0
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.context.d.ts +40 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.context.js +127 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.context.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.http.d.ts +200 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.http.js +5527 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.http.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.meta.d.ts +50 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.meta.js +522 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.meta.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.public.d.ts +332 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.public.js +690 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.public.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.types.d.ts +6737 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.types.js +886 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.types.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.universal.d.ts +8300 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.universal.js +3404 -0
- package/build/cjs/src/stores-catalog-v3-product-products-v-3.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.context.d.ts +40 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.context.js +40 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.context.js.map +1 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.http.d.ts +200 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.http.js +5498 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.http.js.map +1 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.meta.d.ts +50 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.meta.js +470 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.meta.js.map +1 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.public.d.ts +332 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.public.js +577 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.public.js.map +1 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.types.d.ts +6737 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.types.js +882 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.types.js.map +1 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.universal.d.ts +8300 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.universal.js +3350 -0
- package/build/es/src/stores-catalog-v3-product-products-v-3.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.context.d.ts +40 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.context.js +127 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.context.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.http.d.ts +200 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.http.js +5527 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.http.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.meta.d.ts +50 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.meta.js +522 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.meta.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.public.d.ts +332 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.public.js +690 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.public.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.types.d.ts +6737 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.types.js +886 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.types.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.universal.d.ts +8320 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.universal.js +3404 -0
- package/build/internal/cjs/src/stores-catalog-v3-product-products-v-3.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.context.d.ts +40 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.context.js +40 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.context.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.http.d.ts +200 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.http.js +5498 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.http.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.meta.d.ts +50 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.meta.js +470 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.meta.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.public.d.ts +332 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.public.js +577 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.public.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.types.d.ts +6737 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.types.js +882 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.types.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.universal.d.ts +8320 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.universal.js +3350 -0
- package/build/internal/es/src/stores-catalog-v3-product-products-v-3.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new product.
|
|
4
|
+
*
|
|
5
|
+
* This endpoint also allows to add a ribbon, brand, info sections, options, and modifiers.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createProduct(payload: object): RequestOptionsFactory<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new product, and can create the product's inventory in the variants' default locations.
|
|
10
|
+
*
|
|
11
|
+
* This endpoint also allows to add a ribbon, brand, info sections, options, and modifiers.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createProductWithInventory(payload: object): RequestOptionsFactory<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Updates a product.
|
|
16
|
+
*
|
|
17
|
+
* Each time the product is updated, `revision` increments by 1.
|
|
18
|
+
* The current `revision` must be passed when updating the product.
|
|
19
|
+
* This ensures you're working with the latest product and prevents unintended overwrites.
|
|
20
|
+
*
|
|
21
|
+
* >**Notes:**
|
|
22
|
+
* > + If `variantsInfo.variants` are passed, they will replace all existing variants.
|
|
23
|
+
* > + To update existing `variantsInfo.variants`, make sure to provide `variantsInfo.variants.id`. If no ID is passed, the variant will be created with a new ID.
|
|
24
|
+
*/
|
|
25
|
+
export declare function updateProduct(payload: object): RequestOptionsFactory<any>;
|
|
26
|
+
/**
|
|
27
|
+
* Updates a new product, and can update the product's inventory.
|
|
28
|
+
*
|
|
29
|
+
* Each time the product is updated, `revision` increments by 1.
|
|
30
|
+
* The current `revision` must be passed when updating the product.
|
|
31
|
+
* This ensures you're working with the latest product and prevents unintended overwrites.
|
|
32
|
+
*
|
|
33
|
+
* >**Notes:**
|
|
34
|
+
* > + Passing `variantsInfo.variants` will replace all existing variants.
|
|
35
|
+
* > + To update existing `variantsInfo.variants`, pass `variantsInfo.variants.id`. If no ID is passed, the variant will be created with a new ID.
|
|
36
|
+
*/
|
|
37
|
+
export declare function updateProductWithInventory(payload: object): RequestOptionsFactory<any>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates up to 100 products.
|
|
40
|
+
*
|
|
41
|
+
* >**Note:**
|
|
42
|
+
* > The following limits apply to the total number of creatable entities in a single request.
|
|
43
|
+
* > For example, you can create 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options.
|
|
44
|
+
* > Alternatively, you can create 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
|
|
45
|
+
* > + `options`: 100
|
|
46
|
+
* > + `modifiers`: 100
|
|
47
|
+
* > + `infoSections`: 100
|
|
48
|
+
* > + `variantsInfo.variants`: 1000
|
|
49
|
+
*/
|
|
50
|
+
export declare function bulkCreateProducts(payload: object): RequestOptionsFactory<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates up to 100 products, and can create the products' inventories in the variants' default locations.
|
|
53
|
+
*
|
|
54
|
+
* >**Note:**
|
|
55
|
+
* > The following limits apply to the total number of creatable entities in a single request.
|
|
56
|
+
* > For example, you can create 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options.
|
|
57
|
+
* > Alternatively, you can create 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
|
|
58
|
+
* > + `options`: 100
|
|
59
|
+
* > + `modifiers`: 100
|
|
60
|
+
* > + `infoSections`: 100
|
|
61
|
+
* > + `variantsInfo.variants`: 1000
|
|
62
|
+
*/
|
|
63
|
+
export declare function bulkCreateProductsWithInventory(payload: object): RequestOptionsFactory<any>;
|
|
64
|
+
/**
|
|
65
|
+
* Updates up to 100 products.
|
|
66
|
+
*
|
|
67
|
+
* >**Note:**
|
|
68
|
+
* > The following limits apply to the total number of updatable entities in a single request.
|
|
69
|
+
* > For example, you can update 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options.
|
|
70
|
+
* > Alternatively, you can update 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
|
|
71
|
+
* > + `options`: 100
|
|
72
|
+
* > + `modifiers`: 100
|
|
73
|
+
* > + `infoSections`: 100
|
|
74
|
+
* > + `variantsInfo.variants`: 1000
|
|
75
|
+
*/
|
|
76
|
+
export declare function bulkUpdateProducts(payload: object): RequestOptionsFactory<any>;
|
|
77
|
+
/**
|
|
78
|
+
* Updates up to 100 products, and can update the products' inventories in the variants' default locations.
|
|
79
|
+
*
|
|
80
|
+
* >**Note:**
|
|
81
|
+
* > The following limits apply to the total number of updatable entities in a single request.
|
|
82
|
+
* > For example, you can update 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options.
|
|
83
|
+
* > Alternatively, you can update 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
|
|
84
|
+
* > + `options`: 100
|
|
85
|
+
* > + `modifiers`: 100
|
|
86
|
+
* > + `infoSections`: 100
|
|
87
|
+
* > + `variantsInfo.variants`: 1000
|
|
88
|
+
*/
|
|
89
|
+
export declare function bulkUpdateProductsWithInventory(payload: object): RequestOptionsFactory<any>;
|
|
90
|
+
/**
|
|
91
|
+
* Updates multiple products, given the provided filter.
|
|
92
|
+
*
|
|
93
|
+
* To update `infoSections`, `brand` or `ribbon` fields, you must also pass their existing `id`.
|
|
94
|
+
*
|
|
95
|
+
* > **Note:**
|
|
96
|
+
* > The following fields cannot be updated with this endpoint:
|
|
97
|
+
* > + `slug`
|
|
98
|
+
* > + `options`
|
|
99
|
+
* > + `modifiers`
|
|
100
|
+
* > + `variantsInfo`
|
|
101
|
+
* >
|
|
102
|
+
* > To update these fields, use [Bulk Update Products](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/bulk-update-products).
|
|
103
|
+
*/
|
|
104
|
+
export declare function bulkUpdateProductsByFilter(payload: object): RequestOptionsFactory<any>;
|
|
105
|
+
/**
|
|
106
|
+
* Updates a product's extended fields.
|
|
107
|
+
*
|
|
108
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must first be configured in the app dashboard.
|
|
109
|
+
*/
|
|
110
|
+
export declare function updateExtendedFields(payload: object): RequestOptionsFactory<any>;
|
|
111
|
+
/** Deletes a product and all its variants. */
|
|
112
|
+
export declare function deleteProduct(payload: object): RequestOptionsFactory<any>;
|
|
113
|
+
/** Deletes multiple products. */
|
|
114
|
+
export declare function bulkDeleteProducts(payload: object): RequestOptionsFactory<any>;
|
|
115
|
+
/** Delete multiple products, given the provided filter. */
|
|
116
|
+
export declare function bulkDeleteProductsByFilter(payload: object): RequestOptionsFactory<any>;
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves a product.
|
|
119
|
+
*
|
|
120
|
+
* > **Note:**
|
|
121
|
+
* > To retrieve a non-visible product (`visible: false`), your app must have the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
|
|
122
|
+
*/
|
|
123
|
+
export declare function getProduct(payload: object): RequestOptionsFactory<any>;
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves a product by slug.
|
|
126
|
+
*
|
|
127
|
+
* > **Note:**
|
|
128
|
+
* > To retrieve a non-visible product (`visible: false`), your app must have the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
|
|
129
|
+
*/
|
|
130
|
+
export declare function getProductBySlug(payload: object): RequestOptionsFactory<any>;
|
|
131
|
+
/**
|
|
132
|
+
* Retrieves a list of up to 100 products, given the provided filtering, search expression, sorting, and cursor paging.
|
|
133
|
+
* Pass supported values to the `fields` array in the request to include those fields in the response.
|
|
134
|
+
*
|
|
135
|
+
* To learn about working with _Search_ endpoints, see
|
|
136
|
+
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
137
|
+
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
138
|
+
*
|
|
139
|
+
* > **Notes:**
|
|
140
|
+
* > + This method does not return `variantsInfo`. To retrieve product variants, use the Get Product method.
|
|
141
|
+
* > + To retrieve a non-visible product (`visible: false`), your app must have the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
|
|
142
|
+
*/
|
|
143
|
+
export declare function searchProducts(payload: object): RequestOptionsFactory<any>;
|
|
144
|
+
/**
|
|
145
|
+
* Retrieves a list of up to 100 products, given the provided filtering, sorting, and cursor paging.
|
|
146
|
+
* Pass supported values to the `fields` array in the request to include those fields in the response.
|
|
147
|
+
*
|
|
148
|
+
* To learn about working with _Query_ endpoints, see
|
|
149
|
+
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
150
|
+
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
151
|
+
*
|
|
152
|
+
* > **Notes:**
|
|
153
|
+
* > + This method does not return `variantsInfo`. To retrieve product variants, use the Get Product method.
|
|
154
|
+
* > + To retrieve a non-visible product (`visible: false`), your app must have the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
|
|
155
|
+
*/
|
|
156
|
+
export declare function queryProducts(payload: object): RequestOptionsFactory<any>;
|
|
157
|
+
/** Counts the number of products that match the provided filtering. */
|
|
158
|
+
export declare function countProducts(payload: object): RequestOptionsFactory<any>;
|
|
159
|
+
/**
|
|
160
|
+
* Updates a variant of multiple products, given the provided filter and search expression.
|
|
161
|
+
*
|
|
162
|
+
*
|
|
163
|
+
* Only the following variant fields can be updated:
|
|
164
|
+
* + `visible`
|
|
165
|
+
* + `price`
|
|
166
|
+
* + `revenueDetails.cost`
|
|
167
|
+
* + `physicalOptions`
|
|
168
|
+
*/
|
|
169
|
+
export declare function bulkUpdateProductVariantsByFilter(payload: object): RequestOptionsFactory<any>;
|
|
170
|
+
/**
|
|
171
|
+
* Adjusts the price and cost of multiple variants, given the provided filter and search expression.
|
|
172
|
+
*
|
|
173
|
+
*
|
|
174
|
+
* Only the following variant fields can be increased/decreased by amount or percentage:
|
|
175
|
+
* + `basePrice`
|
|
176
|
+
* + `salePrice`
|
|
177
|
+
* + `cost`
|
|
178
|
+
* + `salePriceFromBasePrice`
|
|
179
|
+
*/
|
|
180
|
+
export declare function bulkAdjustProductVariantsByFilter(payload: object): RequestOptionsFactory<any>;
|
|
181
|
+
/** Adds info sections to multiple products, given the provided filter and search expression. */
|
|
182
|
+
export declare function bulkAddInfoSectionsToProductsByFilter(payload: object): RequestOptionsFactory<any>;
|
|
183
|
+
/** Adds info sections to multiple products. */
|
|
184
|
+
export declare function bulkAddInfoSectionsToProducts(payload: object): RequestOptionsFactory<any>;
|
|
185
|
+
/** Removes info sections from multiple products, given the provided filter and search expression. */
|
|
186
|
+
export declare function bulkRemoveInfoSectionsFromProductsByFilter(payload: object): RequestOptionsFactory<any>;
|
|
187
|
+
/** Removes info sections from multiple products. */
|
|
188
|
+
export declare function bulkRemoveInfoSectionsFromProducts(payload: object): RequestOptionsFactory<any>;
|
|
189
|
+
/**
|
|
190
|
+
* Adds multiple products, given the provided filter and search expression, to up to 5 categories.
|
|
191
|
+
*
|
|
192
|
+
* Learn more about the [Categories API](https://dev.wix.com/docs/rest/business-management/categories/introduction).
|
|
193
|
+
*/
|
|
194
|
+
export declare function bulkAddProductsToCategoriesByFilter(payload: object): RequestOptionsFactory<any>;
|
|
195
|
+
/**
|
|
196
|
+
* Removes multiple products, given the provided filter and search expression, from up to 5 categories.
|
|
197
|
+
*
|
|
198
|
+
* Learn more about the [Categories API](https://dev.wix.com/docs/rest/business-management/categories/introduction).
|
|
199
|
+
*/
|
|
200
|
+
export declare function bulkRemoveProductsFromCategoriesByFilter(payload: object): RequestOptionsFactory<any>;
|