@wix/auto_sdk_stores_catalog-imports-v-3 1.0.14 → 1.0.15

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +0 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +18 -17
  5. package/build/cjs/index.typings.js +0 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +17 -16
  8. package/build/cjs/meta.js +0 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +0 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +18 -17
  14. package/build/es/index.typings.mjs +0 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +17 -16
  17. package/build/es/meta.mjs +0 -2
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +0 -2
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +18 -17
  23. package/build/internal/cjs/index.typings.js +0 -2
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +17 -16
  26. package/build/internal/cjs/meta.js +0 -2
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +0 -2
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +18 -17
  32. package/build/internal/es/index.typings.mjs +0 -2
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +17 -16
  35. package/build/internal/es/meta.mjs +0 -2
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -2306,34 +2306,37 @@ interface ChoicesSettings {
2306
2306
  }
2307
2307
  interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
2308
2308
  /**
2309
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
2309
+ * Single color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000` for red.
2310
2310
  * @minLength 3
2311
2311
  * @maxLength 20
2312
2312
  */
2313
2313
  colorCode?: string;
2314
2314
  /**
2315
- * The id of the choice.
2315
+ * Choice ID.
2316
2316
  * @format GUID
2317
2317
  */
2318
2318
  choiceId?: string | null;
2319
2319
  /**
2320
- * Product media overrides. When not empty only these images will be shown when such choices selected by customer. Otherwise all images of product.
2321
- * When several choices from different options selected only media filter present in `media_overrides` of ALL choices will be shown.
2322
- * For example if Color:red has images 1,2,3 and Material:Silk has images 2,3,5 then only images 2,3 will be shown when both of them selected.
2320
+ * Product media to display when this choice is selected.
2321
+ *
2322
+ * When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
2323
+ * When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
2324
+ * 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.
2323
2325
  * @maxSize 100
2324
2326
  */
2325
2327
  linkedMedia?: ProductMedia[];
2326
- /** The type of this choice. */
2328
+ /** Choice type. */
2327
2329
  choiceType?: ChoiceTypeWithLiterals;
2328
2330
  /**
2329
- * Choice name.
2331
+ * Choice name. For text choices, this field also contains the choice value.
2330
2332
  * @minLength 1
2331
2333
  * @maxLength 50
2332
2334
  */
2333
2335
  name?: string | null;
2334
2336
  /**
2335
- * A flag that indicates if at least one variant with this choice is in stock in the default store's location.
2336
- * For example, a product with 'Color' and 'Size' options with variants: [Blue, Small] which is out of stock and [Red Large] which is in stock. For choice 'Blue' ths flag will be 'false' and for 'Red' the flag will be true
2337
+ * Whether at least one variant with this choice is in stock in the default location of the store.
2338
+ *
2339
+ * For example, a product with Color and Size options has these variants: [Blue, Small] which is out of stock and [Red, Large] which is in stock. For choice Blue, this field is `false`. For choice Red, this field is `true`.
2337
2340
  * @readonly
2338
2341
  */
2339
2342
  inStock?: boolean;
@@ -2348,7 +2351,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
2348
2351
  /** @oneof */
2349
2352
  interface ConnectedOptionChoiceValueOneOf {
2350
2353
  /**
2351
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
2354
+ * Single color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000` for red.
2352
2355
  * @minLength 3
2353
2356
  * @maxLength 20
2354
2357
  */
@@ -2359,14 +2362,10 @@ declare enum ChoiceType {
2359
2362
  /** Text choice. */
2360
2363
  CHOICE_TEXT = "CHOICE_TEXT",
2361
2364
  /** Single color choice. */
2362
- ONE_COLOR = "ONE_COLOR",
2363
- /** Multiple colors choice. */
2364
- MULTIPLE_COLORS = "MULTIPLE_COLORS",
2365
- /** Image choice. */
2366
- IMAGE = "IMAGE"
2365
+ ONE_COLOR = "ONE_COLOR"
2367
2366
  }
2368
2367
  /** @enumType */
2369
- type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
2368
+ type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR';
2370
2369
  interface MultipleColors {
2371
2370
  /**
2372
2371
  * List of color codes.
@@ -3195,6 +3194,8 @@ interface SubmitCatalogImportResponse {
3195
3194
  * @format GUID
3196
3195
  */
3197
3196
  jobId?: string;
3197
+ /** Total number of items that will be processed in this import */
3198
+ totalProductsCount?: number;
3198
3199
  }
3199
3200
  interface CatalogImportAlreadySubmittedErrorData {
3200
3201
  /**
@@ -3396,7 +3397,7 @@ declare function addProductsToImport(catalogImportId: string, products: NonNulla
3396
3397
  * @applicableIdentity APP
3397
3398
  * @fqn wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport
3398
3399
  */
3399
- declare function submitCatalogImport(catalogImportId: string): Promise<NonNullablePaths<SubmitCatalogImportResponse, `jobId`, 2> & {
3400
+ declare function submitCatalogImport(catalogImportId: string): Promise<NonNullablePaths<SubmitCatalogImportResponse, `jobId` | `totalProductsCount`, 2> & {
3400
3401
  __applicationErrorsType?: SubmitCatalogImportApplicationErrors;
3401
3402
  }>;
3402
3403
 
@@ -696,8 +696,6 @@ var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
696
696
  ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
697
697
  ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
698
698
  ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
699
- ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
700
- ChoiceType2["IMAGE"] = "IMAGE";
701
699
  return ChoiceType2;
702
700
  })(ChoiceType || {});
703
701
  var ModifierRenderType = /* @__PURE__ */ ((ModifierRenderType2) => {