@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
package/build/cjs/meta.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
70
70
|
*/
|
|
71
71
|
revision?: string | null;
|
|
72
72
|
/**
|
|
73
|
-
* Product name.
|
|
73
|
+
* Product name. Translatable.
|
|
74
74
|
* @minLength 1
|
|
75
75
|
* @maxLength 80
|
|
76
76
|
*/
|
|
@@ -85,14 +85,14 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
85
85
|
/**
|
|
86
86
|
* Product description in HTML.
|
|
87
87
|
*
|
|
88
|
-
* + When provided on create/update, this string must be
|
|
89
|
-
* + `plainDescription` is ignored when value is also passed to the `description` field.
|
|
88
|
+
* + When provided on create/update, this string must be valid HTML. It's then converted to rich content.
|
|
89
|
+
* + `plainDescription` is ignored when a value is also passed to the `description` field.
|
|
90
90
|
* > **Note:** Returned only when you pass `"PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
|
|
91
91
|
* @maxLength 16000
|
|
92
92
|
*/
|
|
93
93
|
plainDescription?: string | null;
|
|
94
94
|
/**
|
|
95
|
-
* Whether the product is visible to site visitors
|
|
95
|
+
* Whether the product is visible to site visitors.
|
|
96
96
|
*
|
|
97
97
|
* Default: `true`
|
|
98
98
|
*/
|
|
@@ -109,25 +109,23 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
109
109
|
/** Product SEO data. */
|
|
110
110
|
seoData?: SeoSchema;
|
|
111
111
|
/**
|
|
112
|
-
* Tax group ID.
|
|
112
|
+
* [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.
|
|
113
113
|
* @format GUID
|
|
114
114
|
*/
|
|
115
115
|
taxGroupId?: string | null;
|
|
116
116
|
/**
|
|
117
|
-
* Product options.
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* 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.
|
|
122
|
-
* *None*: you cannot change name of existing option via this endpoint but you can do it by calling CustomizationService
|
|
117
|
+
* Product options. Each option (like "Size" or "Color") creates variants when combined with other options.
|
|
118
|
+
*
|
|
119
|
+
* When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option.
|
|
120
|
+
* 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.
|
|
123
121
|
* @maxSize 6
|
|
124
122
|
*/
|
|
125
123
|
options?: ConnectedOption[];
|
|
126
124
|
/**
|
|
127
|
-
* Product
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
125
|
+
* Product modifiers. Collect additional information from customers without creating variants.
|
|
126
|
+
*
|
|
127
|
+
* Unlike options, modifiers don't affect inventory or create additional variants. Use them for customizations like gift messages or engraving text.
|
|
128
|
+
* 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.
|
|
131
129
|
* @maxSize 10
|
|
132
130
|
*/
|
|
133
131
|
modifiers?: ConnectedModifier[];
|
|
@@ -154,29 +152,36 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
|
|
|
154
152
|
*/
|
|
155
153
|
ribbon?: Ribbon;
|
|
156
154
|
/**
|
|
157
|
-
*
|
|
155
|
+
* 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".
|
|
158
156
|
* @format GUID
|
|
159
157
|
*/
|
|
160
158
|
mainCategoryId?: string | null;
|
|
161
159
|
/**
|
|
162
|
-
* Product type.
|
|
160
|
+
* Product type: `PHYSICAL` for tangible goods that require shipping, or `DIGITAL` for downloadable content.
|
|
163
161
|
*
|
|
164
|
-
* When passing `productType: PHYSICAL`, you must also pass `physicalProperties`.
|
|
162
|
+
* When passing `productType: PHYSICAL`, you must also pass `physicalProperties`. When passing `productType: DIGITAL`, you can optionally pass `digitalProperties` in each variant.
|
|
165
163
|
* @immutable
|
|
166
164
|
*/
|
|
167
165
|
productType?: ProductTypeWithLiterals;
|
|
168
166
|
/**
|
|
169
167
|
* A unique human-friendly identifier for the product.
|
|
170
|
-
*
|
|
171
|
-
*
|
|
168
|
+
*
|
|
169
|
+
* 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.
|
|
172
170
|
* @minLength 1
|
|
173
171
|
* @maxLength 100
|
|
174
172
|
* @readonly
|
|
175
173
|
*/
|
|
176
174
|
handle?: string | null;
|
|
177
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Product variants. Each variant must reference all product options via its `choices` array.
|
|
177
|
+
* Each choice references an option using `optionChoiceNames` for all requests.
|
|
178
|
+
*/
|
|
178
179
|
variantsInfo?: VariantsInfo;
|
|
179
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Product subscriptions.
|
|
182
|
+
*
|
|
183
|
+
* 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.
|
|
184
|
+
*/
|
|
180
185
|
subscriptionDetails?: SubscriptionDetails;
|
|
181
186
|
/**
|
|
182
187
|
* Custom extended fields for the product object.
|
|
@@ -2386,7 +2391,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
|
|
|
2386
2391
|
* When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
|
|
2387
2392
|
* When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
|
|
2388
2393
|
* 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.
|
|
2389
|
-
* @maxSize
|
|
2394
|
+
* @maxSize 15
|
|
2390
2395
|
*/
|
|
2391
2396
|
linkedMedia?: ProductMedia[];
|
|
2392
2397
|
/** Choice type. */
|
|
@@ -2524,7 +2529,7 @@ interface ConnectedModifierChoice extends ConnectedModifierChoiceValueOneOf {
|
|
|
2524
2529
|
choiceId?: string | null;
|
|
2525
2530
|
/**
|
|
2526
2531
|
* Product media.
|
|
2527
|
-
* @maxSize
|
|
2532
|
+
* @maxSize 15
|
|
2528
2533
|
*/
|
|
2529
2534
|
linkedMedia?: ProductMedia[];
|
|
2530
2535
|
/** Choice type. */
|
|
@@ -2822,9 +2827,9 @@ interface VariantWithInventoryTypedPropertiesOneOf {
|
|
|
2822
2827
|
digitalProperties?: VariantDigitalProperties;
|
|
2823
2828
|
}
|
|
2824
2829
|
interface PriceInfo {
|
|
2825
|
-
/** Variant price. Must be greater or equal to 0. */
|
|
2830
|
+
/** Variant's current selling price. Must be greater than or equal to 0. */
|
|
2826
2831
|
actualPrice?: FixedMonetaryAmount;
|
|
2827
|
-
/**
|
|
2832
|
+
/** 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. */
|
|
2828
2833
|
compareAtPrice?: FixedMonetaryAmount;
|
|
2829
2834
|
}
|
|
2830
2835
|
interface FixedMonetaryAmount {
|