@wix/auto_sdk_stores_catalog-imports-v-3 1.0.16 → 1.0.18

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,34 +152,41 @@ 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.
183
188
  *
184
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.
189
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.
185
190
  */
186
191
  extendedFields?: ExtendedFields;
187
192
  }
@@ -2079,6 +2084,7 @@ interface TextNodeStyle {
2079
2084
  interface Media {
2080
2085
  /**
2081
2086
  * Main media (image, video, etc.) associated with this product.
2087
+ * Automatically set to the first item in the media list.
2082
2088
  * @readonly
2083
2089
  */
2084
2090
  main?: ProductMedia;
@@ -2821,9 +2827,9 @@ interface VariantWithInventoryTypedPropertiesOneOf {
2821
2827
  digitalProperties?: VariantDigitalProperties;
2822
2828
  }
2823
2829
  interface PriceInfo {
2824
- /** Variant price. Must be greater or equal to 0. */
2830
+ /** Variant's current selling price. Must be greater than or equal to 0. */
2825
2831
  actualPrice?: FixedMonetaryAmount;
2826
- /** 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. */
2827
2833
  compareAtPrice?: FixedMonetaryAmount;
2828
2834
  }
2829
2835
  interface FixedMonetaryAmount {
@@ -2892,7 +2898,10 @@ interface PricePerUnit {
2892
2898
  description?: string | null;
2893
2899
  }
2894
2900
  interface VariantDigitalProperties {
2895
- /** Digital file which will be downloaded by customer after successful purchase. */
2901
+ /**
2902
+ * Digital file which will be downloaded by the buyer after successful purchase.
2903
+ * Each variant can have a different digital file, allowing you to offer different content per variant.
2904
+ */
2896
2905
  digitalFile?: SecuredMedia;
2897
2906
  }
2898
2907
  interface SecuredMedia {
@@ -3253,7 +3262,7 @@ interface SubmitCatalogImportRequest {
3253
3262
  }
3254
3263
  interface SubmitCatalogImportResponse {
3255
3264
  /**
3256
- * Job ID for async operation tracking. Pass to [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job) or [List Async Job Items](https://dev.wix.com/docs/rest/business-management/async-job/list-async-job-items) to retrieve details and metadata
3265
+ * Job ID for async operation tracking. Pass to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) or [List Async Job Items](https://dev.wix.com/docs/api-reference/business-management/async-job/list-async-job-items) to retrieve details and metadata
3257
3266
  * @format GUID
3258
3267
  */
3259
3268
  jobId?: string;