@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.
@@ -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 a valid HTML. It will then be converted to rich content.
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 on the site.
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. Allows buyer to customize product, e.g. select Color, Size and so on.
118
- * Always generates variants: every variant must have exactly one choice related to each option.
119
- * Since options and variants tightly coupled and rely on each other they usually should be provided together in all operations.
120
- * For existing options and choices provide ids only, all other data (e.g. names, title, types and so on) will be resolved for you by ids.
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 Modifiers. Allows buyer to customize product, e.g. select Color, Size and so on similarly to `options` but with one main difference - `modifiers` never generate any variants.
128
- * For existing modifiers and choices provide ids only, all other data (e.g. names, title, types and so on) will be resolved for you by ids.
129
- * If you don't have ids it's ok to omit them but provide all other data instead. For existing modifiers ids will be resolved, not existing modifiers will be created.
130
- * *None*: you cannot change name of existing modifier via this endpoint by passing id and changed name, if you pass id name will be ignored. If you want to update existing modifier name do it by calling CustomizationService
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
- * Main category ID.
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
- * Unlike the product ID, the handle can be set by the user to ensure consistency across multiple platforms.
171
- * In case handle wasn't given, the handle will be automatically generated.
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
- /** Product variants. */
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
- /** Subscription details. */
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 100
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 100
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
- /** The compare-at-price represents the original price of a product before any discount. It is optional and should only be set if a discount applies. When set, it must be higher than the current price to reflect accurate savings. */
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 {