@wix/auto_sdk_stores_customizations-v-3 1.0.80 → 1.0.82

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 (41) hide show
  1. package/build/cjs/index.d.ts +39 -3
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +77 -10
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +29 -7
  6. package/build/cjs/meta.js +1 -0
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.d.ts +186 -1
  9. package/build/cjs/schemas.js +336 -25
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.d.mts +39 -3
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +77 -10
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +29 -7
  16. package/build/es/meta.mjs +1 -0
  17. package/build/es/meta.mjs.map +1 -1
  18. package/build/es/schemas.d.mts +186 -1
  19. package/build/es/schemas.mjs +332 -25
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.d.ts +6 -7
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +22 -22
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +29 -7
  26. package/build/internal/cjs/meta.js +1 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/cjs/schemas.d.ts +186 -1
  29. package/build/internal/cjs/schemas.js +336 -25
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.d.mts +6 -7
  32. package/build/internal/es/index.mjs.map +1 -1
  33. package/build/internal/es/index.typings.d.mts +22 -22
  34. package/build/internal/es/index.typings.mjs.map +1 -1
  35. package/build/internal/es/meta.d.mts +29 -7
  36. package/build/internal/es/meta.mjs +1 -0
  37. package/build/internal/es/meta.mjs.map +1 -1
  38. package/build/internal/es/schemas.d.mts +186 -1
  39. package/build/internal/es/schemas.mjs +332 -25
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -193,6 +193,23 @@ interface Choice extends ChoiceValueOneOf {
193
193
  * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
194
194
  */
195
195
  defaultAddedPrice?: string | null;
196
+ /**
197
+ * Optional image displayed alongside a ONE_COLOR choice in the storefront.
198
+ * Only valid for ONE_COLOR choices; not populated for other choice types.
199
+ */
200
+ displayImage?: CommonImage;
201
+ /**
202
+ * IDs of the primary choices this choice is grouped under.
203
+ *
204
+ * A choice that has `primaryChoiceIds` is a "linked" choice; a choice without `primaryChoiceIds` is a "primary" choice.
205
+ * A linked choice can reference up to 4 primary choices and appears nested under each of them on the storefront,
206
+ * rather than in the top-level choice list.
207
+ *
208
+ * Only one level of grouping is supported: a primary choice cannot itself be a linked choice.
209
+ * @format GUID
210
+ * @maxSize 4
211
+ */
212
+ primaryChoiceIds?: string[];
196
213
  }
197
214
  /** @oneof */
198
215
  interface ChoiceValueOneOf {
@@ -481,10 +498,15 @@ interface GetCustomizationRequest {
481
498
  }
482
499
  declare enum RequestedFields {
483
500
  /** Assigned products count. */
484
- ASSIGNED_PRODUCTS_COUNT = "ASSIGNED_PRODUCTS_COUNT"
501
+ ASSIGNED_PRODUCTS_COUNT = "ASSIGNED_PRODUCTS_COUNT",
502
+ /**
503
+ * Returns display images for choices.
504
+ * @documentationMaturity preview
505
+ */
506
+ CHOICE_DISPLAY_IMAGE = "CHOICE_DISPLAY_IMAGE"
485
507
  }
486
508
  /** @enumType */
487
- type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT';
509
+ type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT' | 'CHOICE_DISPLAY_IMAGE';
488
510
  interface GetCustomizationResponse {
489
511
  /** Customization. */
490
512
  customization?: Customization;
@@ -839,7 +861,7 @@ interface ReorderCustomizationChoicesRequest {
839
861
  /** Revision number, which increments by 1 each time the customization is updated. To prevent conflicting changes, the current revision must be passed when updating the customization. */
840
862
  revision: string;
841
863
  /**
842
- * Choice IDs in the desired display order. Must contain exactly the same set of IDs as the customization's current choices no additions or removals.
864
+ * Choice IDs in the desired display order. Must contain exactly the same IDs as the customization's current choices, with no additions, removals, or duplicates.
843
865
  * @format GUID
844
866
  * @minSize 1
845
867
  * @maxSize 200
@@ -848,20 +870,20 @@ interface ReorderCustomizationChoicesRequest {
848
870
  /**
849
871
  * Fields to include in the response.
850
872
  *
851
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
873
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
852
874
  * @maxSize 100
853
875
  */
854
876
  fields?: RequestedFieldsWithLiterals[];
855
877
  }
856
878
  interface ReorderCustomizationChoicesResponse {
857
- /** Updated customization. */
879
+ /** Updated customization, with `choices` in the new order and `choicesSettings.sortOrder` set to `MANUAL`. */
858
880
  customization?: Customization;
859
881
  }
860
882
  /** Additional error details returned with the `CHOICE_IDS_MISMATCH` error. */
861
883
  interface ChoiceIdsMismatchData {
862
- /** Choice IDs that exist in the customization but are missing from the request. */
884
+ /** Choice IDs that exist in the customization but are missing from `choiceIds`. */
863
885
  missingIds?: string[];
864
- /** Choice IDs included in the request that don't exist in the customization. */
886
+ /** Choice IDs included in `choiceIds` that don't exist in the customization, or that appear in `choiceIds` more than once. */
865
887
  extraIds?: string[];
866
888
  }
867
889
  interface BulkAddCustomizationChoicesRequest {
@@ -852,6 +852,7 @@ var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
852
852
  })(ChoiceSortStrategy || {});
853
853
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
854
854
  RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
855
+ RequestedFields2["CHOICE_DISPLAY_IMAGE"] = "CHOICE_DISPLAY_IMAGE";
855
856
  return RequestedFields2;
856
857
  })(RequestedFields || {});
857
858
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {