@wix/auto_sdk_stores_read-only-variants-v-3 1.0.45 → 1.0.47
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 +35 -34
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BNZPBN80.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-Ca7Lx1yV.d.ts} +34 -33
- 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 +35 -34
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-BNZPBN80.d.mts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-Ca7Lx1yV.d.mts} +34 -33
- 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 +35 -34
- 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-DIjkz6cb.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-D0gGexcp.d.ts} +34 -33
- 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 +35 -34
- 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-DIjkz6cb.d.mts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-D0gGexcp.d.mts} +34 -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-Ca7Lx1yV.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;
|
|
@@ -1885,17 +1886,16 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1885
1886
|
*/
|
|
1886
1887
|
inventory?: Inventory;
|
|
1887
1888
|
/**
|
|
1888
|
-
* Product type.
|
|
1889
|
+
* Product type: `PHYSICAL` for tangible goods that require shipping, or `DIGITAL` for downloadable content.
|
|
1889
1890
|
*
|
|
1890
|
-
* 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.
|
|
1891
1892
|
* @immutable
|
|
1892
1893
|
*/
|
|
1893
1894
|
productType?: ProductTypeWithLiterals;
|
|
1894
1895
|
/**
|
|
1895
1896
|
* A unique human-friendly identifier for the product.
|
|
1896
|
-
*
|
|
1897
|
-
* This is
|
|
1898
|
-
* If no handle is provided, one is automatically generated.
|
|
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.
|
|
1899
1899
|
* @minLength 1
|
|
1900
1900
|
* @maxLength 100
|
|
1901
1901
|
* @readonly
|
|
@@ -1904,25 +1904,25 @@ interface Product extends ProductTypedPropertiesOneOf {
|
|
|
1904
1904
|
/**
|
|
1905
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.
|
|
1906
1906
|
*
|
|
1907
|
-
* 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.
|
|
1908
1908
|
* > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
|
|
1909
1909
|
* @format CURRENCY
|
|
1910
1910
|
* @readonly
|
|
1911
1911
|
*/
|
|
1912
1912
|
currency?: string | null;
|
|
1913
1913
|
/**
|
|
1914
|
-
* 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).
|
|
1915
1915
|
* > **Note:** Returned only when you pass `"BREADCRUMBS_INFO"` to the `fields` array in Products API requests.
|
|
1916
1916
|
* @readonly
|
|
1917
1917
|
*/
|
|
1918
1918
|
breadcrumbsInfo?: BreadcrumbsInfo;
|
|
1919
1919
|
/**
|
|
1920
|
-
*
|
|
1920
|
+
* Minimum and maximum current selling prices across all product variants.
|
|
1921
1921
|
* @readonly
|
|
1922
1922
|
*/
|
|
1923
1923
|
actualPriceRange?: PriceRange;
|
|
1924
1924
|
/**
|
|
1925
|
-
*
|
|
1925
|
+
* Minimum and maximum compare-at prices (original prices before discounts) across all product variants. Used to show savings to customers.
|
|
1926
1926
|
* @readonly
|
|
1927
1927
|
*/
|
|
1928
1928
|
compareAtPriceRange?: PriceRange;
|
|
@@ -4156,7 +4156,7 @@ interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
|
|
|
4156
4156
|
* When not empty, only these images are shown when a customer selects this choice. Otherwise, all product images are shown.
|
|
4157
4157
|
* When multiple choices from different options are selected, only media present in `linkedMedia` of ALL selected choices are shown.
|
|
4158
4158
|
* 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
|
|
4159
|
+
* @maxSize 15
|
|
4160
4160
|
*/
|
|
4161
4161
|
linkedMedia?: ProductMedia[];
|
|
4162
4162
|
/** Choice type. */
|
|
@@ -4294,7 +4294,7 @@ interface ConnectedModifierChoice extends ConnectedModifierChoiceValueOneOf {
|
|
|
4294
4294
|
choiceId?: string | null;
|
|
4295
4295
|
/**
|
|
4296
4296
|
* Product media.
|
|
4297
|
-
* @maxSize
|
|
4297
|
+
* @maxSize 15
|
|
4298
4298
|
*/
|
|
4299
4299
|
linkedMedia?: ProductMedia[];
|
|
4300
4300
|
/** Choice type. */
|
|
@@ -4394,7 +4394,7 @@ interface Ribbon {
|
|
|
4394
4394
|
}
|
|
4395
4395
|
interface ProductCategoriesInfo {
|
|
4396
4396
|
/**
|
|
4397
|
-
* A list of categories related to product.
|
|
4397
|
+
* A list of categories related to the product.
|
|
4398
4398
|
* @readonly
|
|
4399
4399
|
* @maxSize 2000
|
|
4400
4400
|
*/
|
|
@@ -4407,14 +4407,14 @@ interface ProductCategory {
|
|
|
4407
4407
|
*/
|
|
4408
4408
|
id?: string;
|
|
4409
4409
|
/**
|
|
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 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-category) sample flow.
|
|
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.
|
|
4411
4411
|
* @max 200
|
|
4412
4412
|
*/
|
|
4413
4413
|
index?: number | null;
|
|
4414
4414
|
}
|
|
4415
4415
|
interface ProductCategoryIdsInfo {
|
|
4416
4416
|
/**
|
|
4417
|
-
* A list of category ids related to product.
|
|
4417
|
+
* A list of category ids related to the product.
|
|
4418
4418
|
* @readonly
|
|
4419
4419
|
* @maxSize 2000
|
|
4420
4420
|
* @format GUID
|
|
@@ -4654,10 +4654,11 @@ interface Variant extends VariantTypedPropertiesOneOf {
|
|
|
4654
4654
|
*/
|
|
4655
4655
|
barcode?: string | null;
|
|
4656
4656
|
/**
|
|
4657
|
-
* 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
|
+
*
|
|
4658
4659
|
* Must use `optionChoiceNames` in all requests this field is required.
|
|
4659
4660
|
*
|
|
4660
|
-
* For products without options
|
|
4661
|
+
* For products without options, this array is empty, representing a single "default variant".
|
|
4661
4662
|
* @maxSize 6
|
|
4662
4663
|
* @immutable
|
|
4663
4664
|
*/
|
|
@@ -4736,9 +4737,9 @@ interface OptionChoiceNames {
|
|
|
4736
4737
|
renderType?: ProductOptionRenderTypeWithLiterals;
|
|
4737
4738
|
}
|
|
4738
4739
|
interface PriceInfo {
|
|
4739
|
-
/** Variant price. Must be greater or equal to 0. */
|
|
4740
|
+
/** Variant's current selling price. Must be greater than or equal to 0. */
|
|
4740
4741
|
actualPrice?: FixedMonetaryAmount;
|
|
4741
|
-
/**
|
|
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. */
|
|
4742
4743
|
compareAtPrice?: FixedMonetaryAmount;
|
|
4743
4744
|
}
|
|
4744
4745
|
interface RevenueDetails {
|