@wix/auto_sdk_stores_read-only-variants-v-3 1.0.48 → 1.0.50
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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +29 -20
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BmO0mCp5.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DDymOH93.d.ts} +28 -19
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +29 -20
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BmO0mCp5.d.mts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DDymOH93.d.mts} +28 -19
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +29 -20
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DK8tu3gS.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DxKHqgOx.d.ts} +28 -19
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +29 -20
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DK8tu3gS.d.mts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DxKHqgOx.d.mts} +28 -19
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aX as QueryVariantsRequest$1, b0 as QueryVariantsResponse$1, b3 as SearchVariantsRequest$1, a as SearchVariantsResponse$1 } from './stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-
|
|
1
|
+
import { aX as QueryVariantsRequest$1, b0 as QueryVariantsResponse$1, b3 as SearchVariantsRequest$1, a as SearchVariantsResponse$1 } from './stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DDymOH93.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1803,7 +1803,7 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1803
1803
|
* > **Note:** Always `false` for `productType: DIGITAL`.
|
|
1804
1804
|
*/
|
|
1805
1805
|
visibleInPos?: boolean | null;
|
|
1806
|
-
/** Product media items. */
|
|
1806
|
+
/** Product media items. For a detailed explanation of product media, see [About Product Media](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/about-product-media). */
|
|
1807
1807
|
media?: Media;
|
|
1808
1808
|
/** Product SEO data. */
|
|
1809
1809
|
seoData?: SeoSchema;
|
|
@@ -1813,18 +1813,20 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1813
1813
|
*/
|
|
1814
1814
|
taxGroupId?: string | null;
|
|
1815
1815
|
/**
|
|
1816
|
-
* Product options
|
|
1816
|
+
* Product options, such as "Size" or "Color". Options define the ways a product can vary.
|
|
1817
1817
|
*
|
|
1818
|
-
* When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option.
|
|
1819
|
-
*
|
|
1818
|
+
* When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option. For more information, see [About Product Options and Variants](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/about-options-and-variants).
|
|
1819
|
+
*
|
|
1820
|
+
* Options are stored as reusable [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) entities. Pass an existing customization's ID to reuse it, or define options inline and new customization entities are created automatically.
|
|
1820
1821
|
* @maxSize 6
|
|
1821
1822
|
*/
|
|
1822
1823
|
options?: ConnectedOption[];
|
|
1823
1824
|
/**
|
|
1824
1825
|
* Product modifiers. Collect additional information from customers without creating variants.
|
|
1825
1826
|
*
|
|
1826
|
-
* Unlike options, modifiers don't affect inventory or create additional variants. Use them for
|
|
1827
|
-
*
|
|
1827
|
+
* Unlike options, modifiers don't affect inventory or create additional variants. Use them for things like gift messages or engraving text. For more information, see [About Product Options and Variants](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/about-options-and-variants).
|
|
1828
|
+
*
|
|
1829
|
+
* Modifiers are stored as reusable [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) entities. Pass an existing customization's ID to reuse it, or define modifiers inline and new customization entities are created automatically.
|
|
1828
1830
|
* @maxSize 10
|
|
1829
1831
|
*/
|
|
1830
1832
|
modifiers?: ConnectedModifier[];
|
|
@@ -1927,8 +1929,12 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1927
1929
|
*/
|
|
1928
1930
|
compareAtPriceRange?: PriceRange;
|
|
1929
1931
|
/**
|
|
1930
|
-
* Product variants. Each variant
|
|
1931
|
-
*
|
|
1932
|
+
* Product variants. Each variant represents a specific purchasable version of a product defined by option choices.
|
|
1933
|
+
*
|
|
1934
|
+
* Each variant must reference all product options via its `choices` array, using `optionChoiceNames` in requests.
|
|
1935
|
+
* You must explicitly provide each variant when creating products with options.
|
|
1936
|
+
*
|
|
1937
|
+
* For more information, see [About Product Options and Variants](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/about-options-and-variants).
|
|
1932
1938
|
*/
|
|
1933
1939
|
variantsInfo?: VariantsInfo;
|
|
1934
1940
|
/**
|
|
@@ -3872,12 +3878,12 @@ interface ProductMedia extends ProductMediaSetByOneOf, ProductMediaMediaOneOf {
|
|
|
3872
3878
|
*/
|
|
3873
3879
|
url?: string;
|
|
3874
3880
|
/**
|
|
3875
|
-
*
|
|
3881
|
+
* Image details. Populated when you provide a [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) file ID in `set_by`.
|
|
3876
3882
|
* @readonly
|
|
3877
3883
|
*/
|
|
3878
3884
|
image?: Image;
|
|
3879
3885
|
/**
|
|
3880
|
-
*
|
|
3886
|
+
* Video details. Populated when you provide a Wix Media Manager file ID in `set_by`.
|
|
3881
3887
|
* @readonly
|
|
3882
3888
|
*/
|
|
3883
3889
|
video?: VideoV2;
|
|
@@ -3889,7 +3895,8 @@ interface ProductMedia extends ProductMediaSetByOneOf, ProductMediaMediaOneOf {
|
|
|
3889
3895
|
altText?: string | null;
|
|
3890
3896
|
/**
|
|
3891
3897
|
* Media display name.
|
|
3892
|
-
*
|
|
3898
|
+
*
|
|
3899
|
+
* Overrides the default media name. Can be passed only when the media is set by a URL in `setBy``.
|
|
3893
3900
|
* @maxLength 80
|
|
3894
3901
|
*/
|
|
3895
3902
|
displayName?: string | null;
|
|
@@ -3927,12 +3934,12 @@ interface ProductMediaSetByOneOf {
|
|
|
3927
3934
|
/** @oneof */
|
|
3928
3935
|
interface ProductMediaMediaOneOf {
|
|
3929
3936
|
/**
|
|
3930
|
-
*
|
|
3937
|
+
* Image details. Populated when you provide a [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) file ID in `set_by`.
|
|
3931
3938
|
* @readonly
|
|
3932
3939
|
*/
|
|
3933
3940
|
image?: Image;
|
|
3934
3941
|
/**
|
|
3935
|
-
*
|
|
3942
|
+
* Video details. Populated when you provide a Wix Media Manager file ID in `set_by`.
|
|
3936
3943
|
* @readonly
|
|
3937
3944
|
*/
|
|
3938
3945
|
video?: VideoV2;
|
|
@@ -4033,7 +4040,9 @@ interface Thumbnail {
|
|
|
4033
4040
|
}
|
|
4034
4041
|
interface MediaItemsInfo {
|
|
4035
4042
|
/**
|
|
4036
|
-
* All media items
|
|
4043
|
+
* All media items associated with this product.
|
|
4044
|
+
*
|
|
4045
|
+
* The first item in the array is automatically set as the product's main media.
|
|
4037
4046
|
* @maxSize 15
|
|
4038
4047
|
*/
|
|
4039
4048
|
items?: ProductMedia[];
|
|
@@ -4156,7 +4165,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
|
|
|
4156
4165
|
* When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
|
|
4157
4166
|
* When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
|
|
4158
4167
|
* 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.
|
|
4159
|
-
* @maxSize
|
|
4168
|
+
* @maxSize 15
|
|
4160
4169
|
*/
|
|
4161
4170
|
linkedMedia?: ProductMedia[];
|
|
4162
4171
|
/** Choice type. */
|
|
@@ -4294,7 +4303,7 @@ interface ConnectedModifierChoice extends ConnectedModifierChoiceValueOneOf {
|
|
|
4294
4303
|
choiceId?: string | null;
|
|
4295
4304
|
/**
|
|
4296
4305
|
* Product media.
|
|
4297
|
-
* @maxSize
|
|
4306
|
+
* @maxSize 15
|
|
4298
4307
|
*/
|
|
4299
4308
|
linkedMedia?: ProductMedia[];
|
|
4300
4309
|
/** Choice type. */
|
|
@@ -4656,9 +4665,9 @@ interface Variant extends VariantTypedPropertiesOneOf {
|
|
|
4656
4665
|
/**
|
|
4657
4666
|
* List of choices that define this variant. Each variant must have exactly one choice for each product option.
|
|
4658
4667
|
*
|
|
4659
|
-
*
|
|
4668
|
+
* Use `optionChoiceNames` in all requests where this field is required. For products without options, this array is empty, representing a single "default variant".
|
|
4660
4669
|
*
|
|
4661
|
-
* For
|
|
4670
|
+
* For more information, see [About Product Options and Variants](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/about-options-and-variants).
|
|
4662
4671
|
* @maxSize 6
|
|
4663
4672
|
* @immutable
|
|
4664
4673
|
*/
|
|
@@ -4733,7 +4742,7 @@ interface OptionChoiceNames {
|
|
|
4733
4742
|
* @minLength 1
|
|
4734
4743
|
*/
|
|
4735
4744
|
choiceName?: string;
|
|
4736
|
-
/** Render type. */
|
|
4745
|
+
/** Render type of the option. Required when using `optionChoiceNames`. Must match the `optionRenderType` of the referenced option. */
|
|
4737
4746
|
renderType?: ProductOptionRenderTypeWithLiterals;
|
|
4738
4747
|
}
|
|
4739
4748
|
interface PriceInfo {
|