@wix/auto_sdk_stores_customizations-v-3 1.0.88 → 1.0.90

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.js +2 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +7 -7
  4. package/build/cjs/index.typings.js +2 -0
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +6 -6
  7. package/build/cjs/meta.js +2 -0
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +21 -21
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.mjs +2 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +7 -7
  14. package/build/es/index.typings.mjs +2 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +6 -6
  17. package/build/es/meta.mjs +2 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +21 -21
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.js +2 -0
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +85 -8
  24. package/build/internal/cjs/index.typings.js +2 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +151 -7
  27. package/build/internal/cjs/meta.js +2 -0
  28. package/build/internal/cjs/meta.js.map +1 -1
  29. package/build/internal/cjs/schemas.js +21 -21
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.mjs +2 -0
  32. package/build/internal/es/index.mjs.map +1 -1
  33. package/build/internal/es/index.typings.d.mts +85 -8
  34. package/build/internal/es/index.typings.mjs +2 -0
  35. package/build/internal/es/index.typings.mjs.map +1 -1
  36. package/build/internal/es/meta.d.mts +151 -7
  37. package/build/internal/es/meta.mjs +2 -0
  38. package/build/internal/es/meta.mjs.map +1 -1
  39. package/build/internal/es/schemas.mjs +21 -21
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +4 -4
@@ -145,7 +145,7 @@ interface ChoicesSettings {
145
145
  /**
146
146
  * List of choices.
147
147
  * @minSize 1
148
- * @maxSize 200
148
+ * @maxSize 1000
149
149
  * @immutable
150
150
  */
151
151
  choices?: Choice[];
@@ -166,6 +166,17 @@ interface Choice extends ChoiceValueOneOf {
166
166
  * @format COLOR_HEX
167
167
  */
168
168
  colorCode?: string;
169
+ /**
170
+ * Multiple colors - HEX (#RRGGBB) color code
171
+ * @internal
172
+ */
173
+ colorCodes?: MultipleColors;
174
+ /**
175
+ * The choice value when the choice type is IMAGE — the image itself is what's being selected.
176
+ * Not to be confused with display_image (field 14), which is a decorative overlay independent of choice type.
177
+ * @internal
178
+ */
179
+ image?: string;
169
180
  /**
170
181
  * Choice ID.
171
182
  * @format GUID
@@ -228,12 +239,33 @@ interface ChoiceValueOneOf {
228
239
  * @format COLOR_HEX
229
240
  */
230
241
  colorCode?: string;
242
+ /**
243
+ * Multiple colors - HEX (#RRGGBB) color code
244
+ * @internal
245
+ */
246
+ colorCodes?: MultipleColors;
247
+ /**
248
+ * The choice value when the choice type is IMAGE — the image itself is what's being selected.
249
+ * Not to be confused with display_image (field 14), which is a decorative overlay independent of choice type.
250
+ * @internal
251
+ */
252
+ image?: string;
231
253
  }
232
254
  declare enum ChoiceType {
233
255
  /** For a `customizationRenderType` of `TEXT_CHOICES`. */
234
256
  CHOICE_TEXT = "CHOICE_TEXT",
235
257
  /** For `customizationRenderType: SWATCH_CHOICES`. */
236
- ONE_COLOR = "ONE_COLOR"
258
+ ONE_COLOR = "ONE_COLOR",
259
+ /**
260
+ * For `customizationRenderType: SWATCH_CHOICES`.
261
+ * @internal
262
+ */
263
+ MULTIPLE_COLORS = "MULTIPLE_COLORS",
264
+ /**
265
+ * For `customizationRenderType: SWATCH_CHOICES`.
266
+ * @internal
267
+ */
268
+ IMAGE = "IMAGE"
237
269
  }
238
270
  /** @enumType */
239
271
  type ChoiceTypeWithLiterals = ChoiceType | 'CHOICE_TEXT' | 'ONE_COLOR';
@@ -463,6 +495,13 @@ interface GetCustomizationResponse {
463
495
  interface UpdateCustomizationRequest {
464
496
  /** Customization to update. */
465
497
  customization: Customization;
498
+ /**
499
+ * Set of fields to update.
500
+ *
501
+ * Fields that aren't included in `fieldMask.paths` are ignored.
502
+ * @internal
503
+ */
504
+ fieldMask?: string[];
466
505
  /**
467
506
  * Fields to include in the response.
468
507
  *
@@ -527,6 +566,20 @@ interface Sorting {
527
566
  fieldName?: string;
528
567
  /** Sort order. */
529
568
  order?: SortOrderWithLiterals;
569
+ /**
570
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
571
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
572
+ *
573
+ * If multiple filters are provided, they are combined with AND operator.
574
+ *
575
+ * Example:
576
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
577
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
578
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
579
+ * @internal
580
+ * @maxSize 10
581
+ */
582
+ selectItemsBy?: Record<string, any>[] | null;
530
583
  }
531
584
  declare enum SortOrder {
532
585
  /** Ascending order. */
@@ -701,7 +754,7 @@ interface AddCustomizationChoicesRequest {
701
754
  /**
702
755
  * Choices to add.
703
756
  * @minSize 1
704
- * @maxSize 100
757
+ * @maxSize 1000
705
758
  */
706
759
  choices: Choice[];
707
760
  /**
@@ -725,7 +778,7 @@ interface SetCustomizationChoicesRequest {
725
778
  /**
726
779
  * Choices to set.
727
780
  * @minSize 1
728
- * @maxSize 200
781
+ * @maxSize 1000
729
782
  */
730
783
  choices: Choice[];
731
784
  /**
@@ -796,6 +849,11 @@ interface UpdateCustomizationChoicesRequest {
796
849
  interface MaskedChoice {
797
850
  /** Choice to update. */
798
851
  choice?: Choice;
852
+ /**
853
+ * Set of choice fields to update.
854
+ * @internal
855
+ */
856
+ fieldMask?: string[];
799
857
  }
800
858
  interface UpdateCustomizationChoicesResponse {
801
859
  /** Updated customization. */
@@ -813,7 +871,7 @@ interface ReorderCustomizationChoicesRequest {
813
871
  * 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.
814
872
  * @format GUID
815
873
  * @minSize 1
816
- * @maxSize 200
874
+ * @maxSize 1000
817
875
  */
818
876
  choiceIds: string[];
819
877
  /**
@@ -839,7 +897,7 @@ interface BulkAddCustomizationChoicesRequest {
839
897
  /**
840
898
  * List of customization IDs and choices.
841
899
  * @minSize 1
842
- * @maxSize 100
900
+ * @maxSize 1000
843
901
  */
844
902
  customizationsChoices: CustomizationChoices[];
845
903
  /**
@@ -874,7 +932,7 @@ interface BulkAddCustomizationChoicesResponse {
874
932
  /**
875
933
  * Customizations updated by bulk action.
876
934
  * @minSize 1
877
- * @maxSize 100
935
+ * @maxSize 1000
878
936
  */
879
937
  results?: BulkCustomizationResult[];
880
938
  /** Bulk action metadata. */
@@ -904,6 +962,11 @@ interface BulkUpdateCustomizationsRequest {
904
962
  interface MaskedCustomization {
905
963
  /** Customization to update. */
906
964
  customization?: Customization;
965
+ /**
966
+ * Explicit list of fields to update.
967
+ * @internal
968
+ */
969
+ fieldMask?: string[];
907
970
  }
908
971
  interface BulkUpdateCustomizationsResponse {
909
972
  /**
@@ -1765,6 +1828,20 @@ type CustomizationQuery = {
1765
1828
  Sort order.
1766
1829
  */
1767
1830
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1831
+ /**
1832
+ When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
1833
+ a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
1834
+
1835
+ If multiple filters are provided, they are combined with AND operator.
1836
+
1837
+ Example:
1838
+ Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
1839
+ and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
1840
+ { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
1841
+ @internal: undefined,
1842
+ @maxSize: 10
1843
+ */
1844
+ selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
1768
1845
  }[];
1769
1846
  };
1770
1847
  declare const utils: {
@@ -1938,7 +2015,7 @@ interface ReorderCustomizationChoicesOptions {
1938
2015
  * 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.
1939
2016
  * @format GUID
1940
2017
  * @minSize 1
1941
- * @maxSize 200
2018
+ * @maxSize 1000
1942
2019
  */
1943
2020
  choiceIds: string[];
1944
2021
  /**
@@ -853,6 +853,8 @@ var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
853
853
  var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
854
854
  ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
855
855
  ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
856
+ ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
857
+ ChoiceType2["IMAGE"] = "IMAGE";
856
858
  return ChoiceType2;
857
859
  })(ChoiceType || {});
858
860
  var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {