@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.
@@ -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,34 +151,41 @@ 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.
182
187
  *
183
- * [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.
188
+ * [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.
184
189
  */
185
190
  extendedFields?: ExtendedFields;
186
191
  }
@@ -2078,6 +2083,7 @@ interface TextNodeStyle {
2078
2083
  interface Media {
2079
2084
  /**
2080
2085
  * Main media (image, video, etc.) associated with this product.
2086
+ * Automatically set to the first item in the media list.
2081
2087
  * @readonly
2082
2088
  */
2083
2089
  main?: ProductMedia;
@@ -2768,9 +2774,9 @@ interface VariantWithInventoryTypedPropertiesOneOf {
2768
2774
  digitalProperties?: VariantDigitalProperties;
2769
2775
  }
2770
2776
  interface PriceInfo {
2771
- /** Variant price. Must be greater or equal to 0. */
2777
+ /** Variant's current selling price. Must be greater than or equal to 0. */
2772
2778
  actualPrice?: FixedMonetaryAmount;
2773
- /** 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. */
2774
2780
  compareAtPrice?: FixedMonetaryAmount;
2775
2781
  }
2776
2782
  interface FixedMonetaryAmount {
@@ -2839,7 +2845,10 @@ interface PricePerUnit {
2839
2845
  description?: string | null;
2840
2846
  }
2841
2847
  interface VariantDigitalProperties {
2842
- /** Digital file which will be downloaded by customer after successful purchase. */
2848
+ /**
2849
+ * Digital file which will be downloaded by the buyer after successful purchase.
2850
+ * Each variant can have a different digital file, allowing you to offer different content per variant.
2851
+ */
2843
2852
  digitalFile?: SecuredMedia;
2844
2853
  }
2845
2854
  interface SecuredMedia {
@@ -3200,7 +3209,7 @@ interface SubmitCatalogImportRequest {
3200
3209
  }
3201
3210
  interface SubmitCatalogImportResponse {
3202
3211
  /**
3203
- * 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
3212
+ * 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
3204
3213
  * @format GUID
3205
3214
  */
3206
3215
  jobId?: string;