@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
@@ -204,18 +204,16 @@ interface Choice extends ChoiceValueOneOf {
204
204
  /**
205
205
  * Optional image displayed alongside a ONE_COLOR choice in the storefront.
206
206
  * Only valid for ONE_COLOR choices; not populated for other choice types.
207
- * @internal
208
207
  */
209
208
  displayImage?: string;
210
209
  /**
211
- * IDs of primary choices that this choice is grouped under for storefront filtering.
212
- * A choice with `primaryChoiceIds` is considered a "linked" choice.
213
- * Linked choices are excluded from the top-level storefront filter list
214
- * and displayed only under their primary choice groups.
210
+ * IDs of the primary choices this choice is grouped under.
215
211
  *
216
- * A linked choice can have multiple primaries, in which case it appears under each primary group.
217
- * Only a single level of primary-linked grouping is supported. A choice that is a primary can't also be a linked choice.
218
- * @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.
219
217
  * @format GUID
220
218
  * @maxSize 4
221
219
  */
@@ -456,12 +454,11 @@ declare enum RequestedFields {
456
454
  /**
457
455
  * Returns display images for choices.
458
456
  * @documentationMaturity preview
459
- * @internal
460
457
  */
461
458
  CHOICE_DISPLAY_IMAGE = "CHOICE_DISPLAY_IMAGE"
462
459
  }
463
460
  /** @enumType */
464
- type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT';
461
+ type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT' | 'CHOICE_DISPLAY_IMAGE';
465
462
  interface GetCustomizationResponse {
466
463
  /** Customization. */
467
464
  customization?: Customization;
@@ -816,7 +813,7 @@ interface ReorderCustomizationChoicesRequest {
816
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. */
817
814
  revision: string;
818
815
  /**
819
- * 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.
820
817
  * @format GUID
821
818
  * @minSize 1
822
819
  * @maxSize 200
@@ -825,20 +822,20 @@ interface ReorderCustomizationChoicesRequest {
825
822
  /**
826
823
  * Fields to include in the response.
827
824
  *
828
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
825
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
829
826
  * @maxSize 100
830
827
  */
831
828
  fields?: RequestedFieldsWithLiterals[];
832
829
  }
833
830
  interface ReorderCustomizationChoicesResponse {
834
- /** Updated customization. */
831
+ /** Updated customization, with `choices` in the new order and `choicesSettings.sortOrder` set to `MANUAL`. */
835
832
  customization?: Customization;
836
833
  }
837
834
  /** Additional error details returned with the `CHOICE_IDS_MISMATCH` error. */
838
835
  interface ChoiceIdsMismatchData {
839
- /** 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`. */
840
837
  missingIds?: string[];
841
- /** 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. */
842
839
  extraIds?: string[];
843
840
  }
844
841
  interface BulkAddCustomizationChoicesRequest {
@@ -1882,7 +1879,7 @@ interface RemoveCustomizationChoicesOptions {
1882
1879
  * @param revision - Revision number, which increments by 1 each time the customization is updated.
1883
1880
  * To prevent conflicting changes,
1884
1881
  * the current revision must be passed when updating the customization.
1885
- * @internal
1882
+ * @public
1886
1883
  * @documentationMaturity preview
1887
1884
  * @requiredField customizationId
1888
1885
  * @requiredField options.choices
@@ -1912,13 +1909,16 @@ interface UpdateCustomizationChoicesOptions {
1912
1909
  fields?: RequestedFieldsWithLiterals[];
1913
1910
  }
1914
1911
  /**
1915
- * Reorders a customization's choices. The new order is persisted and reflected in the customization's choices list.
1916
- * Calling this endpoint sets `choicesSettings.sortOrder` to `MANUAL`.
1912
+ * Sets the display order of a customization's choices.
1913
+ *
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
1917
  *
1918
- * 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.
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.
1919
1919
  * @param customizationId - Customization ID.
1920
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.
1921
- * @internal
1921
+ * @public
1922
1922
  * @documentationMaturity preview
1923
1923
  * @requiredField customizationId
1924
1924
  * @requiredField options.choiceIds
@@ -1932,7 +1932,7 @@ declare function reorderCustomizationChoices(customizationId: string, revision:
1932
1932
  }>;
1933
1933
  interface ReorderCustomizationChoicesOptions {
1934
1934
  /**
1935
- * 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.
1936
1936
  * @format GUID
1937
1937
  * @minSize 1
1938
1938
  * @maxSize 200
@@ -1941,7 +1941,7 @@ interface ReorderCustomizationChoicesOptions {
1941
1941
  /**
1942
1942
  * Fields to include in the response.
1943
1943
  *
1944
- * Supported values: `ASSIGNED_PRODUCTS_COUNT`
1944
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`.
1945
1945
  * @maxSize 100
1946
1946
  */
1947
1947
  fields?: RequestedFieldsWithLiterals[];