@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
@@ -207,14 +207,13 @@ interface Choice extends ChoiceValueOneOf {
207
207
  */
208
208
  displayImage?: string;
209
209
  /**
210
- * IDs of primary choices that this choice is grouped under for storefront filtering.
211
- * A choice with `primaryChoiceIds` is considered a "linked" choice.
212
- * Linked choices are excluded from the top-level storefront filter list
213
- * and displayed only under their primary choice groups.
210
+ * IDs of the primary choices this choice is grouped under.
214
211
  *
215
- * A linked choice can have multiple primaries, in which case it appears under each primary group.
216
- * Only a single level of primary-linked grouping is supported. A choice that is a primary can't also be a linked choice.
217
- * @internal
212
+ * A choice that has `primaryChoiceIds` is a "linked" choice; a choice without `primaryChoiceIds` is a "primary" choice.
213
+ * A linked choice can reference up to 4 primary choices and appears nested under each of them on the storefront,
214
+ * rather than in the top-level choice list.
215
+ *
216
+ * Only one level of grouping is supported: a primary choice cannot itself be a linked choice.
218
217
  * @format GUID
219
218
  * @maxSize 4
220
219
  */
@@ -814,7 +813,7 @@ interface ReorderCustomizationChoicesRequest {
814
813
  /** 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. */
815
814
  revision: string;
816
815
  /**
817
- * 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.
816
+ * 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.
818
817
  * @format GUID
819
818
  * @minSize 1
820
819
  * @maxSize 200
@@ -823,20 +822,20 @@ interface ReorderCustomizationChoicesRequest {
823
822
  /**
824
823
  * Fields to include in the response.
825
824
  *
826
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
825
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
827
826
  * @maxSize 100
828
827
  */
829
828
  fields?: RequestedFieldsWithLiterals[];
830
829
  }
831
830
  interface ReorderCustomizationChoicesResponse {
832
- /** Updated customization. */
831
+ /** Updated customization, with `choices` in the new order and `choicesSettings.sortOrder` set to `MANUAL`. */
833
832
  customization?: Customization;
834
833
  }
835
834
  /** Additional error details returned with the `CHOICE_IDS_MISMATCH` error. */
836
835
  interface ChoiceIdsMismatchData {
837
- /** Choice IDs that exist in the customization but are missing from the request. */
836
+ /** Choice IDs that exist in the customization but are missing from `choiceIds`. */
838
837
  missingIds?: string[];
839
- /** Choice IDs included in the request that don't exist in the customization. */
838
+ /** Choice IDs included in `choiceIds` that don't exist in the customization, or that appear in `choiceIds` more than once. */
840
839
  extraIds?: string[];
841
840
  }
842
841
  interface BulkAddCustomizationChoicesRequest {
@@ -1910,10 +1909,13 @@ interface UpdateCustomizationChoicesOptions {
1910
1909
  fields?: RequestedFieldsWithLiterals[];
1911
1910
  }
1912
1911
  /**
1913
- * Reorders a customization's choices. The new order is persisted and reflected in the customization's choices list.
1914
- * Calling this endpoint sets `choicesSettings.sortOrder` to `MANUAL`.
1912
+ * Sets the display order of a customization's choices.
1915
1913
  *
1916
- * 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.
1914
+ * 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.
1915
+ *
1916
+ * The new order is persisted in the customization's `choices` list. Calling this method also sets `choicesSettings.sortOrder` to `MANUAL`.
1917
+ *
1918
+ * 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.
1917
1919
  * @param customizationId - Customization ID.
1918
1920
  * @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.
1919
1921
  * @public
@@ -1930,7 +1932,7 @@ declare function reorderCustomizationChoices(customizationId: string, revision:
1930
1932
  }>;
1931
1933
  interface ReorderCustomizationChoicesOptions {
1932
1934
  /**
1933
- * 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.
1935
+ * 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.
1934
1936
  * @format GUID
1935
1937
  * @minSize 1
1936
1938
  * @maxSize 200
@@ -1939,7 +1941,7 @@ interface ReorderCustomizationChoicesOptions {
1939
1941
  /**
1940
1942
  * Fields to include in the response.
1941
1943
  *
1942
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
1944
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
1943
1945
  * @maxSize 100
1944
1946
  */
1945
1947
  fields?: RequestedFieldsWithLiterals[];