@wix/auto_sdk_stores_customizations-v-3 1.0.81 → 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 (37) hide show
  1. package/build/cjs/index.d.ts +6 -3
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +25 -10
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +17 -5
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +20 -0
  8. package/build/cjs/schemas.js +43 -21
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +6 -3
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +25 -10
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +17 -5
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +20 -0
  17. package/build/es/schemas.mjs +43 -21
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +6 -3
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +19 -17
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +17 -5
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +20 -0
  26. package/build/internal/cjs/schemas.js +43 -21
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +6 -3
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +19 -17
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +17 -5
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +20 -0
  35. package/build/internal/es/schemas.mjs +43 -21
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -198,6 +198,18 @@ interface Choice extends ChoiceValueOneOf {
198
198
  * Only valid for ONE_COLOR choices; not populated for other choice types.
199
199
  */
200
200
  displayImage?: string;
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[];
201
213
  }
202
214
  /** @oneof */
203
215
  interface ChoiceValueOneOf {
@@ -793,7 +805,7 @@ interface ReorderCustomizationChoicesRequest {
793
805
  /** 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. */
794
806
  revision: string;
795
807
  /**
796
- * 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.
808
+ * 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.
797
809
  * @format GUID
798
810
  * @minSize 1
799
811
  * @maxSize 200
@@ -802,20 +814,20 @@ interface ReorderCustomizationChoicesRequest {
802
814
  /**
803
815
  * Fields to include in the response.
804
816
  *
805
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
817
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
806
818
  * @maxSize 100
807
819
  */
808
820
  fields?: RequestedFieldsWithLiterals[];
809
821
  }
810
822
  interface ReorderCustomizationChoicesResponse {
811
- /** Updated customization. */
823
+ /** Updated customization, with `choices` in the new order and `choicesSettings.sortOrder` set to `MANUAL`. */
812
824
  customization?: Customization;
813
825
  }
814
826
  /** Additional error details returned with the `CHOICE_IDS_MISMATCH` error. */
815
827
  interface ChoiceIdsMismatchData {
816
- /** Choice IDs that exist in the customization but are missing from the request. */
828
+ /** Choice IDs that exist in the customization but are missing from `choiceIds`. */
817
829
  missingIds?: string[];
818
- /** Choice IDs included in the request that don't exist in the customization. */
830
+ /** Choice IDs included in `choiceIds` that don't exist in the customization, or that appear in `choiceIds` more than once. */
819
831
  extraIds?: string[];
820
832
  }
821
833
  interface BulkAddCustomizationChoicesRequest {
@@ -1889,10 +1901,13 @@ interface UpdateCustomizationChoicesOptions {
1889
1901
  fields?: RequestedFieldsWithLiterals[];
1890
1902
  }
1891
1903
  /**
1892
- * Reorders a customization's choices. The new order is persisted and reflected in the customization's choices list.
1893
- * Calling this endpoint sets `choicesSettings.sortOrder` to `MANUAL`.
1904
+ * Sets the display order of a customization's choices.
1905
+ *
1906
+ * Each time the customization is updated, `revision` increments by 1. The current `revision` must be passed when updating the customization. This ensures you're working with the latest customization and prevents unintended overwrites.
1894
1907
  *
1895
- * To control how choices are sorted in storefront filter panels, use [Update Customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/update-customization) to set the `choicesSettings.sortOrder` field.
1908
+ * The new order is persisted in the customization's `choices` list. Calling this method also sets `choicesSettings.sortOrder` to `MANUAL`.
1909
+ *
1910
+ * To change how choices are sorted in storefront filter panels without specifying an explicit order, call [Update Customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/update-customization) and set the `choicesSettings.sortOrder` field.
1896
1911
  * @param customizationId - Customization ID.
1897
1912
  * @param revision - 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.
1898
1913
  * @public
@@ -1909,7 +1924,7 @@ declare function reorderCustomizationChoices(customizationId: string, revision:
1909
1924
  }>;
1910
1925
  interface ReorderCustomizationChoicesOptions {
1911
1926
  /**
1912
- * 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.
1927
+ * 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.
1913
1928
  * @format GUID
1914
1929
  * @minSize 1
1915
1930
  * @maxSize 200
@@ -1918,7 +1933,7 @@ interface ReorderCustomizationChoicesOptions {
1918
1933
  /**
1919
1934
  * Fields to include in the response.
1920
1935
  *
1921
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
1936
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
1922
1937
  * @maxSize 100
1923
1938
  */
1924
1939
  fields?: RequestedFieldsWithLiterals[];