@wix/auto_sdk_stores_catalog-imports-v-3 1.0.17 → 1.0.19
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.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -26
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -26
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -26
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -26
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +31 -26
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +31 -26
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +31 -26
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +31 -26
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -69,7 +69,7 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
69
69
|
*/
|
|
70
70
|
revision?: string | null;
|
|
71
71
|
/**
|
|
72
|
-
* Product name.
|
|
72
|
+
* Product name. Translatable.
|
|
73
73
|
* @minLength 1
|
|
74
74
|
* @maxLength 80
|
|
75
75
|
*/
|
|
@@ -84,14 +84,14 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
84
84
|
/**
|
|
85
85
|
* Product description in HTML.
|
|
86
86
|
*
|
|
87
|
-
* + When provided on create/update, this string must be
|
|
88
|
-
* + `plainDescription` is ignored when value is also passed to the `description` field.
|
|
87
|
+
* + When provided on create/update, this string must be valid HTML. It's then converted to rich content.
|
|
88
|
+
* + `plainDescription` is ignored when a value is also passed to the `description` field.
|
|
89
89
|
* > **Note:** Returned only when you pass `"PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
|
|
90
90
|
* @maxLength 16000
|
|
91
91
|
*/
|
|
92
92
|
plainDescription?: string | null;
|
|
93
93
|
/**
|
|
94
|
-
* Whether the product is visible to site visitors
|
|
94
|
+
* Whether the product is visible to site visitors.
|
|
95
95
|
*
|
|
96
96
|
* Default: `true`
|
|
97
97
|
*/
|
|
@@ -108,25 +108,23 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
108
108
|
/** Product SEO data. */
|
|
109
109
|
seoData?: SeoSchema;
|
|
110
110
|
/**
|
|
111
|
-
* Tax group ID.
|
|
111
|
+
* [Tax group ID](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/introduction). Used to apply specific tax rates to products.
|
|
112
112
|
* @format GUID
|
|
113
113
|
*/
|
|
114
114
|
taxGroupId?: string | null;
|
|
115
115
|
/**
|
|
116
|
-
* Product options.
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* If you don't have ids it's ok to omit them but provide all other data instead. For existing options ids will be resolved, not existing options will be created.
|
|
121
|
-
* *None*: you cannot change name of existing option via this endpoint but you can do it by calling CustomizationService
|
|
116
|
+
* Product options. Each option (like "Size" or "Color") creates variants when combined with other options.
|
|
117
|
+
*
|
|
118
|
+
* When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option.
|
|
119
|
+
* To use existing [customizations](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction), pass their IDs. Otherwise, new customization entities are automatically created.
|
|
122
120
|
* @maxSize 6
|
|
123
121
|
*/
|
|
124
122
|
options?: ConnectedOption[];
|
|
125
123
|
/**
|
|
126
|
-
* Product
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
124
|
+
* Product modifiers. Collect additional information from customers without creating variants.
|
|
125
|
+
*
|
|
126
|
+
* Unlike options, modifiers don't affect inventory or create additional variants. Use them for customizations like gift messages or engraving text.
|
|
127
|
+
* To use existing [customizations](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction), pass their IDs. Otherwise, new customization entities are automatically created.
|
|
130
128
|
* @maxSize 10
|
|
131
129
|
*/
|
|
132
130
|
modifiers?: ConnectedModifier[];
|
|
@@ -153,21 +151,21 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
153
151
|
*/
|
|
154
152
|
ribbon?: Ribbon;
|
|
155
153
|
/**
|
|
156
|
-
*
|
|
154
|
+
* The ID of the product's primary direct category, which defines the product's breadcrumbs path. For example, if the product's main category is "T-Shirts" (which is a subcategory of "Clothing"), the breadcrumbs path will be "Clothing > T-Shirts".
|
|
157
155
|
* @format GUID
|
|
158
156
|
*/
|
|
159
157
|
mainCategoryId?: string | null;
|
|
160
158
|
/**
|
|
161
|
-
* Product type.
|
|
159
|
+
* Product type: `PHYSICAL` for tangible goods that require shipping, or `DIGITAL` for downloadable content.
|
|
162
160
|
*
|
|
163
|
-
* When passing `productType: PHYSICAL`, you must also pass `physicalProperties`.
|
|
161
|
+
* When passing `productType: PHYSICAL`, you must also pass `physicalProperties`. When passing `productType: DIGITAL`, you can optionally pass `digitalProperties` in each variant.
|
|
164
162
|
* @immutable
|
|
165
163
|
*/
|
|
166
164
|
productType?: ProductTypeWithLiterals;
|
|
167
165
|
/**
|
|
168
166
|
* A unique human-friendly identifier for the product.
|
|
169
|
-
*
|
|
170
|
-
*
|
|
167
|
+
*
|
|
168
|
+
* Unlike the auto-generated `id`, the handle can be set when creating a product. This is useful when re-importing products from other systems, as it provides a stable identifier across platforms. If not provided during creation, one is automatically generated. Can't be changed after creation.
|
|
171
169
|
* @minLength 1
|
|
172
170
|
* @maxLength 100
|
|
173
171
|
* @readonly
|
|
@@ -185,9 +183,16 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
185
183
|
* @format GUID
|
|
186
184
|
*/
|
|
187
185
|
inventoryAppId?: string | null;
|
|
188
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Product variants. Each variant must reference all product options via its `choices` array.
|
|
188
|
+
* Each choice references an option using `optionChoiceNames` for all requests.
|
|
189
|
+
*/
|
|
189
190
|
variantsInfo?: VariantsInfo;
|
|
190
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* Product subscriptions.
|
|
193
|
+
*
|
|
194
|
+
* Subscription discounts are defined at the product level but apply to each variant's `actualPrice`. This means the final subscription price varies per variant based on the variant's base price.
|
|
195
|
+
*/
|
|
191
196
|
subscriptionDetails?: SubscriptionDetails;
|
|
192
197
|
/**
|
|
193
198
|
* Custom extended fields for the product object.
|
|
@@ -2345,7 +2350,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
|
|
|
2345
2350
|
* When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
|
|
2346
2351
|
* When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
|
|
2347
2352
|
* For example, if `Color: Red` has images 1, 2, 3 and `Material: Silk` has images 2, 3, 5, then only images 2 and 3 are shown when both are selected.
|
|
2348
|
-
* @maxSize
|
|
2353
|
+
* @maxSize 15
|
|
2349
2354
|
*/
|
|
2350
2355
|
linkedMedia?: ProductMedia[];
|
|
2351
2356
|
/** Choice type. */
|
|
@@ -2483,7 +2488,7 @@ interface ConnectedModifierChoice extends ConnectedModifierChoiceValueOneOf {
|
|
|
2483
2488
|
choiceId?: string | null;
|
|
2484
2489
|
/**
|
|
2485
2490
|
* Product media.
|
|
2486
|
-
* @maxSize
|
|
2491
|
+
* @maxSize 15
|
|
2487
2492
|
*/
|
|
2488
2493
|
linkedMedia?: ProductMedia[];
|
|
2489
2494
|
/** Choice type. */
|
|
@@ -2781,9 +2786,9 @@ interface VariantWithInventoryTypedPropertiesOneOf {
|
|
|
2781
2786
|
digitalProperties?: VariantDigitalProperties;
|
|
2782
2787
|
}
|
|
2783
2788
|
interface PriceInfo {
|
|
2784
|
-
/** Variant price. Must be greater or equal to 0. */
|
|
2789
|
+
/** Variant's current selling price. Must be greater than or equal to 0. */
|
|
2785
2790
|
actualPrice?: FixedMonetaryAmount;
|
|
2786
|
-
/**
|
|
2791
|
+
/** Original price before any discount, shown with a strikethrough in the UI of Wix sites. Only set this if a discount applies. When set, it should be higher than `actualPrice` to reflect savings. */
|
|
2787
2792
|
compareAtPrice?: FixedMonetaryAmount;
|
|
2788
2793
|
}
|
|
2789
2794
|
interface FixedMonetaryAmount {
|