@wix/auto_sdk_stores_catalog-imports-v-3 1.0.13 → 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
@@ -2318,34 +2318,37 @@ interface ChoicesSettings {
2318
2318
  }
2319
2319
  interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
2320
2320
  /**
2321
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
2321
+ * 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.
2322
2322
  * @minLength 3
2323
2323
  * @maxLength 20
2324
2324
  */
2325
2325
  colorCode?: string;
2326
2326
  /**
2327
- * The id of the choice.
2327
+ * Choice ID.
2328
2328
  * @format GUID
2329
2329
  */
2330
2330
  choiceId?: string | null;
2331
2331
  /**
2332
- * Product media overrides. When not empty only these images will be shown when such choices selected by customer. Otherwise all images of product.
2333
- * When several choices from different options selected only media filter present in `media_overrides` of ALL choices will be shown.
2334
- * 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.
2332
+ * Product media to display when this choice is selected.
2333
+ *
2334
+ * When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
2335
+ * When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
2336
+ * 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.
2335
2337
  * @maxSize 100
2336
2338
  */
2337
2339
  linkedMedia?: ProductMedia[];
2338
- /** The type of this choice. */
2340
+ /** Choice type. */
2339
2341
  choiceType?: ChoiceTypeWithLiterals;
2340
2342
  /**
2341
- * Choice name.
2343
+ * Choice name. For text choices, this field also contains the choice value.
2342
2344
  * @minLength 1
2343
2345
  * @maxLength 50
2344
2346
  */
2345
2347
  name?: string | null;
2346
2348
  /**
2347
- * A flag that indicates if at least one variant with this choice is in stock in the default store's location.
2348
- * 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
2349
+ * Whether at least one variant with this choice is in stock in the default location of the store.
2350
+ *
2351
+ * 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`.
2349
2352
  * @readonly
2350
2353
  */
2351
2354
  inStock?: boolean;
@@ -2360,7 +2363,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
2360
2363
  /** @oneof */
2361
2364
  interface ConnectedOptionChoiceValueOneOf {
2362
2365
  /**
2363
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
2366
+ * 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.
2364
2367
  * @minLength 3
2365
2368
  * @maxLength 20
2366
2369
  */
@@ -2371,14 +2374,10 @@ declare enum ChoiceType {
2371
2374
  /** Text choice. */
2372
2375
  CHOICE_TEXT = "CHOICE_TEXT",
2373
2376
  /** Single color choice. */
2374
- ONE_COLOR = "ONE_COLOR",
2375
- /** Multiple colors choice. */
2376
- MULTIPLE_COLORS = "MULTIPLE_COLORS",
2377
- /** Image choice. */
2378
- IMAGE = "IMAGE"
2377
+ ONE_COLOR = "ONE_COLOR"
2379
2378
  }
2380
2379
  /** @enumType */
2381
- type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
2380
+ type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR';
2382
2381
  interface MultipleColors {
2383
2382
  /**
2384
2383
  * List of color codes.
@@ -3214,6 +3213,8 @@ interface SubmitCatalogImportResponse {
3214
3213
  * @format GUID
3215
3214
  */
3216
3215
  jobId?: string;
3216
+ /** Total number of items that will be processed in this import */
3217
+ totalProductsCount?: number;
3217
3218
  }
3218
3219
  interface CatalogImportAlreadySubmittedErrorData {
3219
3220
  /**
@@ -3415,7 +3416,7 @@ declare function addProductsToImport(catalogImportId: string, products: NonNulla
3415
3416
  * @applicableIdentity APP
3416
3417
  * @fqn wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport
3417
3418
  */
3418
- declare function submitCatalogImport(catalogImportId: string): Promise<NonNullablePaths<SubmitCatalogImportResponse, `jobId`, 2> & {
3419
+ declare function submitCatalogImport(catalogImportId: string): Promise<NonNullablePaths<SubmitCatalogImportResponse, `jobId` | `totalProductsCount`, 2> & {
3419
3420
  __applicationErrorsType?: SubmitCatalogImportApplicationErrors;
3420
3421
  }>;
3421
3422
 
@@ -619,8 +619,6 @@ var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
619
619
  ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
620
620
  ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
621
621
  ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
622
- ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
623
- ChoiceType2["IMAGE"] = "IMAGE";
624
622
  return ChoiceType2;
625
623
  })(ChoiceType || {});
626
624
  var ModifierRenderType = /* @__PURE__ */ ((ModifierRenderType2) => {