@wix/auto_sdk_stores_read-only-variants-v-3 1.0.44 → 1.0.46
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 +8 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -34
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/cjs/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-11ZHjQPT.d.ts → cjs/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BmO0mCp5.d.ts} +52 -52
- package/build/es/index.d.mts +8 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -34
- package/build/es/meta.mjs.map +1 -1
- package/build/{internal/es/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-11ZHjQPT.d.mts → es/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BmO0mCp5.d.mts} +52 -52
- package/build/internal/cjs/index.d.ts +8 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -34
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{cjs/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-D4WyK7_Y.d.ts → internal/cjs/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DK8tu3gS.d.ts} +71 -33
- package/build/internal/es/index.d.mts +8 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -34
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/{es/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-D4WyK7_Y.d.mts → internal/es/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-DK8tu3gS.d.mts} +71 -33
- package/package.json +2 -2
package/build/cjs/meta.d.ts
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-BmO0mCp5.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1784,14 +1784,14 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1784
1784
|
/**
|
|
1785
1785
|
* Product description in HTML.
|
|
1786
1786
|
*
|
|
1787
|
-
* + When provided on create/update, this string must be
|
|
1788
|
-
* + `plainDescription` is ignored when value is also passed to the `description` field.
|
|
1787
|
+
* + When provided on create/update, this string must be valid HTML. It's then converted to rich content.
|
|
1788
|
+
* + `plainDescription` is ignored when a value is also passed to the `description` field.
|
|
1789
1789
|
* > **Note:** Returned only when you pass `"PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
|
|
1790
1790
|
* @maxLength 16000
|
|
1791
1791
|
*/
|
|
1792
1792
|
plainDescription?: string | null;
|
|
1793
1793
|
/**
|
|
1794
|
-
* Whether the product is visible to site visitors
|
|
1794
|
+
* Whether the product is visible to site visitors.
|
|
1795
1795
|
*
|
|
1796
1796
|
* Default: `true`
|
|
1797
1797
|
*/
|
|
@@ -1808,34 +1808,35 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1808
1808
|
/** Product SEO data. */
|
|
1809
1809
|
seoData?: SeoSchema;
|
|
1810
1810
|
/**
|
|
1811
|
-
* Tax group ID.
|
|
1811
|
+
* [Tax group ID](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/introduction). Used to apply specific tax rates to products.
|
|
1812
1812
|
* @format GUID
|
|
1813
1813
|
*/
|
|
1814
1814
|
taxGroupId?: string | null;
|
|
1815
1815
|
/**
|
|
1816
|
-
* Product options.
|
|
1816
|
+
* Product options. Each option (like "Size" or "Color") creates variants when combined with other options.
|
|
1817
1817
|
*
|
|
1818
|
-
*
|
|
1819
|
-
*
|
|
1818
|
+
* When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option.
|
|
1819
|
+
* To use existing [customizations](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction), pass their IDs. Otherwise, new customization entities are automatically created.
|
|
1820
1820
|
* @maxSize 6
|
|
1821
1821
|
*/
|
|
1822
1822
|
options?: ConnectedOption[];
|
|
1823
1823
|
/**
|
|
1824
|
-
* Product modifiers.
|
|
1824
|
+
* Product modifiers. Collect additional information from customers without creating variants.
|
|
1825
1825
|
*
|
|
1826
|
-
*
|
|
1826
|
+
* Unlike options, modifiers don't affect inventory or create additional variants. Use them for customizations like gift messages or engraving text.
|
|
1827
|
+
* To use existing [customizations](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction), pass their IDs. Otherwise, new customization entities are automatically created.
|
|
1827
1828
|
* @maxSize 10
|
|
1828
1829
|
*/
|
|
1829
1830
|
modifiers?: ConnectedModifier[];
|
|
1830
1831
|
/**
|
|
1831
|
-
* Product brand.
|
|
1832
|
+
* Product [brand](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/introduction).
|
|
1832
1833
|
*
|
|
1833
1834
|
* + Pass `brand.name` to add a new brand while creating a product.
|
|
1834
1835
|
* + Pass an existing brand's `id` to assign that brand to the product.
|
|
1835
1836
|
*/
|
|
1836
1837
|
brand?: Brand;
|
|
1837
1838
|
/**
|
|
1838
|
-
* Product info section.
|
|
1839
|
+
* Product [info section](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/info-sections-v3/introduction).
|
|
1839
1840
|
*
|
|
1840
1841
|
* + Pass `infoSection.uniqueName`, `infoSection.title`, and `infoSection.description` to add a new info section while creating a product.
|
|
1841
1842
|
* + Pass an existing info section's `id` or `uniqueName` to assign that info section to the product.
|
|
@@ -1843,14 +1844,14 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1843
1844
|
*/
|
|
1844
1845
|
infoSections?: InfoSection[];
|
|
1845
1846
|
/**
|
|
1846
|
-
* Product ribbon.
|
|
1847
|
+
* Product [ribbon](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/ribbons-v3/introduction).
|
|
1847
1848
|
*
|
|
1848
1849
|
* + Pass `ribbon.name` to add a new ribbon while creating a product.
|
|
1849
1850
|
* + Pass an existing ribbon's `id` or `name` to assign that ribbon to the product.
|
|
1850
1851
|
*/
|
|
1851
1852
|
ribbon?: Ribbon;
|
|
1852
1853
|
/**
|
|
1853
|
-
* List of categories that directly contain this product.
|
|
1854
|
+
* List of [categories](https://dev.wix.com/docs/api-reference/business-management/categories/introduction) that directly contain this product.
|
|
1854
1855
|
*
|
|
1855
1856
|
* Updated automatically when a product is added/removed from a category, when an item is moved within a category, or when a category is deleted.
|
|
1856
1857
|
* > **Note:** Returned only when you pass `"DIRECT_CATEGORIES_INFO"` to the `fields` array in Products API requests.
|
|
@@ -1858,13 +1859,13 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1858
1859
|
*/
|
|
1859
1860
|
directCategoriesInfo?: ProductCategoriesInfo;
|
|
1860
1861
|
/**
|
|
1861
|
-
* List of categories that directly contain this product, as well as their parent categories.
|
|
1862
|
+
* List of [categories](https://dev.wix.com/docs/api-reference/business-management/categories/introduction) that directly contain this product, as well as their parent categories.
|
|
1862
1863
|
* > **Note:** Returned only when you pass `"ALL_CATEGORIES_INFO"` to the `fields` array in Products API requests.
|
|
1863
1864
|
* @readonly
|
|
1864
1865
|
*/
|
|
1865
1866
|
allCategoriesInfo?: ProductCategoriesInfo;
|
|
1866
1867
|
/**
|
|
1867
|
-
* The ID of the product's primary direct category, which defines the product’s breadcrumbs path. For example, if the product's main category is "T-Shirts" (which is a subcategory of "Clothing"), the breadcrumbs path will be "Clothing > T-Shirts".
|
|
1868
|
+
* The ID of the product's primary direct [category](https://dev.wix.com/docs/api-reference/business-management/categories/introduction), which defines the product’s breadcrumbs path. For example, if the product's main category is "T-Shirts" (which is a subcategory of "Clothing"), the breadcrumbs path will be "Clothing > T-Shirts".
|
|
1868
1869
|
* @format GUID
|
|
1869
1870
|
*/
|
|
1870
1871
|
mainCategoryId?: string | null;
|
|
@@ -1879,20 +1880,22 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1879
1880
|
costRange?: PriceRange;
|
|
1880
1881
|
/**
|
|
1881
1882
|
* Product inventory info.
|
|
1883
|
+
*
|
|
1884
|
+
* > **Note:** This field reflects the aggregated inventory status from the default location only. Use the [Inventory Items API](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/inventory-items-v3/introduction) to manage inventory for specific locations.
|
|
1882
1885
|
* @readonly
|
|
1883
1886
|
*/
|
|
1884
1887
|
inventory?: Inventory;
|
|
1885
1888
|
/**
|
|
1886
|
-
* Product type.
|
|
1889
|
+
* Product type: `PHYSICAL` for tangible goods that require shipping, or `DIGITAL` for downloadable content.
|
|
1887
1890
|
*
|
|
1888
|
-
* When passing `productType: PHYSICAL`, you must also pass `physicalProperties`.
|
|
1891
|
+
* When passing `productType: PHYSICAL`, you must also pass `physicalProperties`. When passing `productType: DIGITAL`, you can optionally pass `digitalProperties` in each variant.
|
|
1889
1892
|
* @immutable
|
|
1890
1893
|
*/
|
|
1891
1894
|
productType?: ProductTypeWithLiterals;
|
|
1892
1895
|
/**
|
|
1893
1896
|
* A unique human-friendly identifier for the product.
|
|
1894
|
-
*
|
|
1895
|
-
*
|
|
1897
|
+
*
|
|
1898
|
+
* Unlike the auto-generated `id`, the handle can be set when creating a product. This is useful when re-importing products from other systems, as it provides a stable identifier across platforms. If not provided during creation, one is automatically generated. Can't be changed after creation.
|
|
1896
1899
|
* @minLength 1
|
|
1897
1900
|
* @maxLength 100
|
|
1898
1901
|
* @readonly
|
|
@@ -1901,25 +1904,25 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1901
1904
|
/**
|
|
1902
1905
|
* Currency used for the pricing of this product, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
|
|
1903
1906
|
*
|
|
1904
|
-
* Defaults to the currency defined in the site settings, unless specified in `x-wix-currency` header.
|
|
1907
|
+
* Defaults to the currency defined in the site settings, unless specified in the request's `x-wix-currency` header.
|
|
1905
1908
|
* > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
|
|
1906
1909
|
* @format CURRENCY
|
|
1907
1910
|
* @readonly
|
|
1908
1911
|
*/
|
|
1909
1912
|
currency?: string | null;
|
|
1910
1913
|
/**
|
|
1911
|
-
* Breadcrumbs of the `mainCategoryId`. Used to navigate to parent categories.
|
|
1914
|
+
* Breadcrumbs of the `mainCategoryId`. Used to navigate to parent [categories](https://dev.wix.com/docs/api-reference/business-management/categories/introduction).
|
|
1912
1915
|
* > **Note:** Returned only when you pass `"BREADCRUMBS_INFO"` to the `fields` array in Products API requests.
|
|
1913
1916
|
* @readonly
|
|
1914
1917
|
*/
|
|
1915
1918
|
breadcrumbsInfo?: BreadcrumbsInfo;
|
|
1916
1919
|
/**
|
|
1917
|
-
*
|
|
1920
|
+
* Minimum and maximum current selling prices across all product variants.
|
|
1918
1921
|
* @readonly
|
|
1919
1922
|
*/
|
|
1920
1923
|
actualPriceRange?: PriceRange;
|
|
1921
1924
|
/**
|
|
1922
|
-
*
|
|
1925
|
+
* Minimum and maximum compare-at prices (original prices before discounts) across all product variants. Used to show savings to customers.
|
|
1923
1926
|
* @readonly
|
|
1924
1927
|
*/
|
|
1925
1928
|
compareAtPriceRange?: PriceRange;
|
|
@@ -1931,10 +1934,14 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1931
1934
|
/**
|
|
1932
1935
|
* Custom extended fields for the product object.
|
|
1933
1936
|
*
|
|
1934
|
-
* [Extended fields](https://dev.wix.com/docs/
|
|
1937
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
1935
1938
|
*/
|
|
1936
1939
|
extendedFields?: ExtendedFields;
|
|
1937
|
-
/**
|
|
1940
|
+
/**
|
|
1941
|
+
* Product subscriptions.
|
|
1942
|
+
*
|
|
1943
|
+
* Subscription discounts are defined at the product level but apply to each variant's `actualPrice`. This means the final subscription price varies per variant based on the variant's base price.
|
|
1944
|
+
*/
|
|
1938
1945
|
subscriptionDetails?: SubscriptionDetails;
|
|
1939
1946
|
/**
|
|
1940
1947
|
* The total number of variants for the product.
|
|
@@ -3842,6 +3849,7 @@ interface TextNodeStyle {
|
|
|
3842
3849
|
interface Media {
|
|
3843
3850
|
/**
|
|
3844
3851
|
* Main media (image, video, etc.) associated with this product.
|
|
3852
|
+
* Automatically set to the first item in the media list.
|
|
3845
3853
|
* @readonly
|
|
3846
3854
|
*/
|
|
3847
3855
|
main?: ProductMedia;
|
|
@@ -4386,7 +4394,7 @@ interface Ribbon {
|
|
|
4386
4394
|
}
|
|
4387
4395
|
interface ProductCategoriesInfo {
|
|
4388
4396
|
/**
|
|
4389
|
-
* A list of categories related to product.
|
|
4397
|
+
* A list of categories related to the product.
|
|
4390
4398
|
* @readonly
|
|
4391
4399
|
* @maxSize 2000
|
|
4392
4400
|
*/
|
|
@@ -4399,14 +4407,14 @@ interface ProductCategory {
|
|
|
4399
4407
|
*/
|
|
4400
4408
|
id?: string;
|
|
4401
4409
|
/**
|
|
4402
|
-
* Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in category](https://dev.wix.com/docs/
|
|
4410
|
+
* Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in a category](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-a-category) sample flow.
|
|
4403
4411
|
* @max 200
|
|
4404
4412
|
*/
|
|
4405
4413
|
index?: number | null;
|
|
4406
4414
|
}
|
|
4407
4415
|
interface ProductCategoryIdsInfo {
|
|
4408
4416
|
/**
|
|
4409
|
-
* A list of category ids related to product.
|
|
4417
|
+
* A list of category ids related to the product.
|
|
4410
4418
|
* @readonly
|
|
4411
4419
|
* @maxSize 2000
|
|
4412
4420
|
* @format GUID
|
|
@@ -4646,9 +4654,11 @@ interface Variant extends VariantTypedPropertiesOneOf {
|
|
|
4646
4654
|
*/
|
|
4647
4655
|
barcode?: string | null;
|
|
4648
4656
|
/**
|
|
4649
|
-
* List of choices that define
|
|
4657
|
+
* List of choices that define this variant. Each variant must have exactly one choice for each product option.
|
|
4658
|
+
*
|
|
4650
4659
|
* Must use `optionChoiceNames` in all requests this field is required.
|
|
4651
|
-
*
|
|
4660
|
+
*
|
|
4661
|
+
* For products without options, this array is empty, representing a single "default variant".
|
|
4652
4662
|
* @maxSize 6
|
|
4653
4663
|
* @immutable
|
|
4654
4664
|
*/
|
|
@@ -4727,9 +4737,9 @@ interface OptionChoiceNames {
|
|
|
4727
4737
|
renderType?: ProductOptionRenderTypeWithLiterals;
|
|
4728
4738
|
}
|
|
4729
4739
|
interface PriceInfo {
|
|
4730
|
-
/** Variant price. Must be greater or equal to 0. */
|
|
4740
|
+
/** Variant's current selling price. Must be greater than or equal to 0. */
|
|
4731
4741
|
actualPrice?: FixedMonetaryAmount;
|
|
4732
|
-
/**
|
|
4742
|
+
/** Original price before any discount, shown with a strikethrough in the UI of Wix sites. Only set this if a discount applies. When set, it should be higher than `actualPrice` to reflect savings. */
|
|
4733
4743
|
compareAtPrice?: FixedMonetaryAmount;
|
|
4734
4744
|
}
|
|
4735
4745
|
interface RevenueDetails {
|
|
@@ -4784,7 +4794,10 @@ interface PricePerUnit {
|
|
|
4784
4794
|
description?: string | null;
|
|
4785
4795
|
}
|
|
4786
4796
|
interface VariantDigitalProperties {
|
|
4787
|
-
/**
|
|
4797
|
+
/**
|
|
4798
|
+
* Digital file which will be downloaded by the buyer after successful purchase.
|
|
4799
|
+
* Each variant can have a different digital file, allowing you to offer different content per variant.
|
|
4800
|
+
*/
|
|
4788
4801
|
digitalFile?: SecuredMedia;
|
|
4789
4802
|
}
|
|
4790
4803
|
interface SecuredMedia {
|