@wix/auto_sdk_stores_read-only-variants-v-3 1.0.42 → 1.0.43

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 +4 -4
  2. package/build/cjs/index.js +0 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +0 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +16 -17
  8. package/build/cjs/meta.js +0 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-bxyvT3P6.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DCmK2i6O.d.ts} +74 -23
  11. package/build/es/index.d.mts +4 -4
  12. package/build/es/index.mjs +0 -2
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +0 -2
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +16 -17
  18. package/build/es/meta.mjs +0 -2
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-bxyvT3P6.d.mts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DCmK2i6O.d.mts} +74 -23
  21. package/build/internal/cjs/index.d.ts +4 -4
  22. package/build/internal/cjs/index.js +0 -2
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +2 -2
  25. package/build/internal/cjs/index.typings.js +0 -2
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +16 -17
  28. package/build/internal/cjs/meta.js +0 -2
  29. package/build/internal/cjs/meta.js.map +1 -1
  30. package/build/internal/cjs/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BBQUkXOZ.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-Rz7CJtzF.d.ts} +74 -23
  31. package/build/internal/es/index.d.mts +4 -4
  32. package/build/internal/es/index.mjs +0 -2
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +2 -2
  35. package/build/internal/es/index.typings.mjs +0 -2
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +16 -17
  38. package/build/internal/es/meta.mjs +0 -2
  39. package/build/internal/es/meta.mjs.map +1 -1
  40. package/build/internal/es/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BBQUkXOZ.d.mts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-Rz7CJtzF.d.mts} +74 -23
  41. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { aW as QueryVariantsRequest$1, a_ as QueryVariantsResponse$1, b1 as SearchVariantsRequest$1, a as SearchVariantsResponse$1 } from './stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-bxyvT3P6.mjs';
1
+ import { aW as QueryVariantsRequest$1, a$ as QueryVariantsResponse$1, b2 as SearchVariantsRequest$1, a as SearchVariantsResponse$1 } from './stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DCmK2i6O.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -4122,34 +4122,37 @@ interface ChoicesSettings {
4122
4122
  }
4123
4123
  interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
4124
4124
  /**
4125
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
4125
+ * Single color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000` for red.
4126
4126
  * @minLength 3
4127
4127
  * @maxLength 20
4128
4128
  */
4129
4129
  colorCode?: string;
4130
4130
  /**
4131
- * The id of the choice.
4131
+ * Choice ID.
4132
4132
  * @format GUID
4133
4133
  */
4134
4134
  choiceId?: string | null;
4135
4135
  /**
4136
- * Product media overrides. When not empty only these images will be shown when such choices selected by customer. Otherwise all images of product.
4137
- * When several choices from different options selected only media filter present in `media_overrides` of ALL choices will be shown.
4138
- * For example if Color:red has images 1,2,3 and Material:Silk has images 2,3,5 then only images 2,3 will be shown when both of them selected.
4136
+ * Product media to display when this choice is selected.
4137
+ *
4138
+ * When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
4139
+ * When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
4140
+ * For example, if `Color: Red` has images 1, 2, 3 and `Material: Silk` has images 2, 3, 5, then only images 2 and 3 are shown when both are selected.
4139
4141
  * @maxSize 100
4140
4142
  */
4141
4143
  linkedMedia?: ProductMedia[];
4142
- /** The type of this choice. */
4144
+ /** Choice type. */
4143
4145
  choiceType?: ChoiceTypeWithLiterals;
4144
4146
  /**
4145
- * Choice name.
4147
+ * Choice name. For text choices, this field also contains the choice value.
4146
4148
  * @minLength 1
4147
4149
  * @maxLength 50
4148
4150
  */
4149
4151
  name?: string | null;
4150
4152
  /**
4151
- * A flag that indicates if at least one variant with this choice is in stock in the default store's location.
4152
- * For example, a product with 'Color' and 'Size' options with variants: [Blue, Small] which is out of stock and [Red Large] which is in stock. For choice 'Blue' ths flag will be 'false' and for 'Red' the flag will be true
4153
+ * Whether at least one variant with this choice is in stock in the default location of the store.
4154
+ *
4155
+ * For example, a product with Color and Size options has these variants: [Blue, Small] which is out of stock and [Red, Large] which is in stock. For choice Blue, this field is `false`. For choice Red, this field is `true`.
4153
4156
  * @readonly
4154
4157
  */
4155
4158
  inStock?: boolean;
@@ -4164,7 +4167,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
4164
4167
  /** @oneof */
4165
4168
  interface ConnectedOptionChoiceValueOneOf {
4166
4169
  /**
4167
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
4170
+ * Single color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000` for red.
4168
4171
  * @minLength 3
4169
4172
  * @maxLength 20
4170
4173
  */
@@ -4175,14 +4178,10 @@ declare enum ChoiceType {
4175
4178
  /** Text choice. */
4176
4179
  CHOICE_TEXT = "CHOICE_TEXT",
4177
4180
  /** Single color choice. */
4178
- ONE_COLOR = "ONE_COLOR",
4179
- /** Multiple colors choice. */
4180
- MULTIPLE_COLORS = "MULTIPLE_COLORS",
4181
- /** Image choice. */
4182
- IMAGE = "IMAGE"
4181
+ ONE_COLOR = "ONE_COLOR"
4183
4182
  }
4184
4183
  /** @enumType */
4185
- type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
4184
+ type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR';
4186
4185
  interface MultipleColors {
4187
4186
  /**
4188
4187
  * List of color codes.
package/build/es/meta.mjs CHANGED
@@ -668,8 +668,6 @@ var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
668
668
  ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
669
669
  ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
670
670
  ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
671
- ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
672
- ChoiceType2["IMAGE"] = "IMAGE";
673
671
  return ChoiceType2;
674
672
  })(ChoiceType || {});
675
673
  var ModifierRenderType = /* @__PURE__ */ ((ModifierRenderType2) => {