@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.
@@ -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 a valid HTML. It will then be converted to rich content.
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 on the site.
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. Allows buyer to customize product, e.g. select Color, Size and so on.
117
- * Always generates variants: every variant must have exactly one choice related to each option.
118
- * Since options and variants tightly coupled and rely on each other they usually should be provided together in all operations.
119
- * 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.
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 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.
127
- * 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.
128
- * 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.
129
- * *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
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,29 +151,36 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
153
151
  */
154
152
  ribbon?: Ribbon;
155
153
  /**
156
- * Main category ID.
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
- * Unlike the product ID, the handle can be set by the user to ensure consistency across multiple platforms.
170
- * In case handle wasn't given, the handle will be automatically generated.
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
174
172
  */
175
173
  handle?: string | null;
176
- /** Product variants. */
174
+ /**
175
+ * Product variants. Each variant must reference all product options via its `choices` array.
176
+ * Each choice references an option using `optionChoiceNames` for all requests.
177
+ */
177
178
  variantsInfo?: VariantsInfo;
178
- /** Subscription details. */
179
+ /**
180
+ * Product subscriptions.
181
+ *
182
+ * 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.
183
+ */
179
184
  subscriptionDetails?: SubscriptionDetails;
180
185
  /**
181
186
  * Custom extended fields for the product object.
@@ -2333,7 +2338,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
2333
2338
  * When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
2334
2339
  * When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
2335
2340
  * 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.
2336
- * @maxSize 100
2341
+ * @maxSize 15
2337
2342
  */
2338
2343
  linkedMedia?: ProductMedia[];
2339
2344
  /** Choice type. */
@@ -2471,7 +2476,7 @@ interface ConnectedModifierChoice extends ConnectedModifierChoiceValueOneOf {
2471
2476
  choiceId?: string | null;
2472
2477
  /**
2473
2478
  * Product media.
2474
- * @maxSize 100
2479
+ * @maxSize 15
2475
2480
  */
2476
2481
  linkedMedia?: ProductMedia[];
2477
2482
  /** Choice type. */
@@ -2769,9 +2774,9 @@ interface VariantWithInventoryTypedPropertiesOneOf {
2769
2774
  digitalProperties?: VariantDigitalProperties;
2770
2775
  }
2771
2776
  interface PriceInfo {
2772
- /** Variant price. Must be greater or equal to 0. */
2777
+ /** Variant's current selling price. Must be greater than or equal to 0. */
2773
2778
  actualPrice?: FixedMonetaryAmount;
2774
- /** 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. */
2779
+ /** 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. */
2775
2780
  compareAtPrice?: FixedMonetaryAmount;
2776
2781
  }
2777
2782
  interface FixedMonetaryAmount {