@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.
Files changed (29) hide show
  1. package/build/cjs/index.d.ts +8 -3
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +8 -3
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +47 -34
  6. package/build/cjs/meta.js.map +1 -1
  7. 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
  8. package/build/es/index.d.mts +8 -3
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/index.typings.d.mts +8 -3
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.d.mts +47 -34
  13. package/build/es/meta.mjs.map +1 -1
  14. 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
  15. package/build/internal/cjs/index.d.ts +8 -3
  16. package/build/internal/cjs/index.js.map +1 -1
  17. package/build/internal/cjs/index.typings.d.ts +8 -3
  18. package/build/internal/cjs/index.typings.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +47 -34
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. 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
  22. package/build/internal/es/index.d.mts +8 -3
  23. package/build/internal/es/index.mjs.map +1 -1
  24. package/build/internal/es/index.typings.d.mts +8 -3
  25. package/build/internal/es/index.typings.mjs.map +1 -1
  26. package/build/internal/es/meta.d.mts +47 -34
  27. package/build/internal/es/meta.mjs.map +1 -1
  28. 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
  29. package/package.json +2 -2
@@ -1731,14 +1731,14 @@ interface Product extends ProductTypedPropertiesOneOf {
1731
1731
  /**
1732
1732
  * Product description in HTML.
1733
1733
  *
1734
- * + When provided on create/update, this string must be a valid HTML. It will then be converted to rich content.
1735
- * + `plainDescription` is ignored when value is also passed to the `description` field.
1734
+ * + When provided on create/update, this string must be valid HTML. It's then converted to rich content.
1735
+ * + `plainDescription` is ignored when a value is also passed to the `description` field.
1736
1736
  * > **Note:** Returned only when you pass `"PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
1737
1737
  * @maxLength 16000
1738
1738
  */
1739
1739
  plainDescription?: string | null;
1740
1740
  /**
1741
- * Whether the product is visible to site visitors on the site.
1741
+ * Whether the product is visible to site visitors.
1742
1742
  *
1743
1743
  * Default: `true`
1744
1744
  */
@@ -1755,34 +1755,35 @@ interface Product extends ProductTypedPropertiesOneOf {
1755
1755
  /** Product SEO data. */
1756
1756
  seoData?: SeoSchema;
1757
1757
  /**
1758
- * Tax group ID.
1758
+ * [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.
1759
1759
  * @format GUID
1760
1760
  */
1761
1761
  taxGroupId?: string | null;
1762
1762
  /**
1763
- * Product options. Allows the customer to customize the product. For example, selecting color, size, and more.
1763
+ * Product options. Each option (like "Size" or "Color") creates variants when combined with other options.
1764
1764
  *
1765
- * Always generates variants: every variant must have exactly one choice related to each option.
1766
- * Since options and variants tightly coupled and rely on each other they usually should be provided together in all operations.
1765
+ * When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option.
1766
+ * 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.
1767
1767
  * @maxSize 6
1768
1768
  */
1769
1769
  options?: ConnectedOption[];
1770
1770
  /**
1771
- * Product modifiers.
1771
+ * Product modifiers. Collect additional information from customers without creating variants.
1772
1772
  *
1773
- * Allows the customer to customize product, e.g. select Color, Size and so on similarly to `options` but with one main difference - `modifiers` never generate any variants.
1773
+ * Unlike options, modifiers don't affect inventory or create additional variants. Use them for customizations like gift messages or engraving text.
1774
+ * 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.
1774
1775
  * @maxSize 10
1775
1776
  */
1776
1777
  modifiers?: ConnectedModifier[];
1777
1778
  /**
1778
- * Product brand.
1779
+ * Product [brand](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/introduction).
1779
1780
  *
1780
1781
  * + Pass `brand.name` to add a new brand while creating a product.
1781
1782
  * + Pass an existing brand's `id` to assign that brand to the product.
1782
1783
  */
1783
1784
  brand?: Brand;
1784
1785
  /**
1785
- * Product info section.
1786
+ * Product [info section](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/info-sections-v3/introduction).
1786
1787
  *
1787
1788
  * + Pass `infoSection.uniqueName`, `infoSection.title`, and `infoSection.description` to add a new info section while creating a product.
1788
1789
  * + Pass an existing info section's `id` or `uniqueName` to assign that info section to the product.
@@ -1790,14 +1791,14 @@ interface Product extends ProductTypedPropertiesOneOf {
1790
1791
  */
1791
1792
  infoSections?: InfoSection[];
1792
1793
  /**
1793
- * Product ribbon.
1794
+ * Product [ribbon](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/ribbons-v3/introduction).
1794
1795
  *
1795
1796
  * + Pass `ribbon.name` to add a new ribbon while creating a product.
1796
1797
  * + Pass an existing ribbon's `id` or `name` to assign that ribbon to the product.
1797
1798
  */
1798
1799
  ribbon?: Ribbon;
1799
1800
  /**
1800
- * List of categories that directly contain this product.
1801
+ * List of [categories](https://dev.wix.com/docs/api-reference/business-management/categories/introduction) that directly contain this product.
1801
1802
  *
1802
1803
  * 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.
1803
1804
  * > **Note:** Returned only when you pass `"DIRECT_CATEGORIES_INFO"` to the `fields` array in Products API requests.
@@ -1805,13 +1806,13 @@ interface Product extends ProductTypedPropertiesOneOf {
1805
1806
  */
1806
1807
  directCategoriesInfo?: ProductCategoriesInfo;
1807
1808
  /**
1808
- * List of categories that directly contain this product, as well as their parent categories.
1809
+ * 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.
1809
1810
  * > **Note:** Returned only when you pass `"ALL_CATEGORIES_INFO"` to the `fields` array in Products API requests.
1810
1811
  * @readonly
1811
1812
  */
1812
1813
  allCategoriesInfo?: ProductCategoriesInfo;
1813
1814
  /**
1814
- * 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".
1815
+ * 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".
1815
1816
  * @format GUID
1816
1817
  */
1817
1818
  mainCategoryId?: string | null;
@@ -1826,50 +1827,64 @@ interface Product extends ProductTypedPropertiesOneOf {
1826
1827
  costRange?: PriceRange;
1827
1828
  /**
1828
1829
  * Product inventory info.
1830
+ *
1831
+ * > **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.
1829
1832
  * @readonly
1830
1833
  */
1831
1834
  inventory?: Inventory;
1832
1835
  /**
1833
- * Product type.
1836
+ * Product type: `PHYSICAL` for tangible goods that require shipping, or `DIGITAL` for downloadable content.
1834
1837
  *
1835
- * When passing `productType: PHYSICAL`, you must also pass `physicalProperties`.
1838
+ * When passing `productType: PHYSICAL`, you must also pass `physicalProperties`. When passing `productType: DIGITAL`, you can optionally pass `digitalProperties` in each variant.
1836
1839
  * @immutable
1837
1840
  */
1838
1841
  productType?: ProductTypeWithLiterals;
1839
1842
  /**
1840
1843
  * A unique human-friendly identifier for the product.
1841
- * Unlike the product ID, the handle can be set by the user to ensure consistency across multiple platforms.
1842
- * In case handle wasn't given, the handle will be automatically generated.
1844
+ *
1845
+ * 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.
1843
1846
  * @minLength 1
1844
1847
  * @maxLength 100
1845
1848
  * @readonly
1846
1849
  */
1847
1850
  handle?: string | null;
1851
+ /**
1852
+ * ID of the last import job that affected the product.
1853
+ * @internal
1854
+ * @format GUID
1855
+ */
1856
+ importId?: string | null;
1848
1857
  /**
1849
1858
  * 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.
1850
1859
  *
1851
- * Defaults to the currency defined in the site settings, unless specified in `x-wix-currency` header.
1860
+ * Defaults to the currency defined in the site settings, unless specified in the request's `x-wix-currency` header.
1852
1861
  * > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
1853
1862
  * @format CURRENCY
1854
1863
  * @readonly
1855
1864
  */
1856
1865
  currency?: string | null;
1857
1866
  /**
1858
- * Breadcrumbs of the `mainCategoryId`. Used to navigate to parent categories.
1867
+ * Breadcrumbs of the `mainCategoryId`. Used to navigate to parent [categories](https://dev.wix.com/docs/api-reference/business-management/categories/introduction).
1859
1868
  * > **Note:** Returned only when you pass `"BREADCRUMBS_INFO"` to the `fields` array in Products API requests.
1860
1869
  * @readonly
1861
1870
  */
1862
1871
  breadcrumbsInfo?: BreadcrumbsInfo;
1863
1872
  /**
1864
- * Product actualPrice range - minimum and maximum prices of all product variants.
1873
+ * Minimum and maximum current selling prices across all product variants.
1865
1874
  * @readonly
1866
1875
  */
1867
1876
  actualPriceRange?: PriceRange;
1868
1877
  /**
1869
- * Product compareAtPrice range - minimum and maximum compare at prices of all product variants.
1878
+ * Minimum and maximum compare-at prices (original prices before discounts) across all product variants. Used to show savings to customers.
1870
1879
  * @readonly
1871
1880
  */
1872
1881
  compareAtPriceRange?: PriceRange;
1882
+ /**
1883
+ * Optional - ID of the app that manages the inventory for this product.
1884
+ * @internal
1885
+ * @format GUID
1886
+ */
1887
+ inventoryAppId?: string | null;
1873
1888
  /**
1874
1889
  * Product variants. Each variant must reference all product options via its `choices` array.
1875
1890
  * Each choice references an option using `optionChoiceNames` for all requests.
@@ -1878,10 +1893,14 @@ interface Product extends ProductTypedPropertiesOneOf {
1878
1893
  /**
1879
1894
  * Custom extended fields for the product object.
1880
1895
  *
1881
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
1896
+ * [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.
1882
1897
  */
1883
1898
  extendedFields?: ExtendedFields;
1884
- /** Product subscriptions. */
1899
+ /**
1900
+ * Product subscriptions.
1901
+ *
1902
+ * 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.
1903
+ */
1885
1904
  subscriptionDetails?: SubscriptionDetails;
1886
1905
  /**
1887
1906
  * The total number of variants for the product.
@@ -3783,6 +3802,7 @@ interface TextNodeStyle {
3783
3802
  interface Media {
3784
3803
  /**
3785
3804
  * Main media (image, video, etc.) associated with this product.
3805
+ * Automatically set to the first item in the media list.
3786
3806
  * @readonly
3787
3807
  */
3788
3808
  main?: ProductMedia;
@@ -4275,7 +4295,7 @@ interface Ribbon {
4275
4295
  }
4276
4296
  interface ProductCategoriesInfo {
4277
4297
  /**
4278
- * A list of categories related to product.
4298
+ * A list of categories related to the product.
4279
4299
  * @readonly
4280
4300
  * @maxSize 2000
4281
4301
  */
@@ -4288,14 +4308,14 @@ interface ProductCategory {
4288
4308
  */
4289
4309
  _id?: string;
4290
4310
  /**
4291
- * 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/rest/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-category) sample flow.
4311
+ * 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.
4292
4312
  * @max 200
4293
4313
  */
4294
4314
  index?: number | null;
4295
4315
  }
4296
4316
  interface ProductCategoryIdsInfo {
4297
4317
  /**
4298
- * A list of category ids related to product.
4318
+ * A list of category ids related to the product.
4299
4319
  * @readonly
4300
4320
  * @maxSize 2000
4301
4321
  * @format GUID
@@ -4535,9 +4555,11 @@ interface Variant extends VariantTypedPropertiesOneOf {
4535
4555
  */
4536
4556
  barcode?: string | null;
4537
4557
  /**
4538
- * List of choices that define the product's variant, which requires exactly one choice per product option.
4558
+ * List of choices that define this variant. Each variant must have exactly one choice for each product option.
4559
+ *
4539
4560
  * Must use `optionChoiceNames` in all requests this field is required.
4540
- * Empty only for default variants of unmanaged products.
4561
+ *
4562
+ * For products without options, this array is empty, representing a single "default variant".
4541
4563
  * @maxSize 6
4542
4564
  * @immutable
4543
4565
  */
@@ -4616,9 +4638,9 @@ interface OptionChoiceNames {
4616
4638
  renderType?: ProductOptionRenderTypeWithLiterals;
4617
4639
  }
4618
4640
  interface PriceInfo {
4619
- /** Variant price. Must be greater or equal to 0. */
4641
+ /** Variant's current selling price. Must be greater than or equal to 0. */
4620
4642
  actualPrice?: FixedMonetaryAmount;
4621
- /** The compare-at-price represents the original price of a product before any discount. It is optional and should only be set if a discount applies. When set, it must be higher than the current price to reflect accurate savings. */
4643
+ /** 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. */
4622
4644
  compareAtPrice?: FixedMonetaryAmount;
4623
4645
  }
4624
4646
  interface RevenueDetails {
@@ -4673,7 +4695,10 @@ interface PricePerUnit {
4673
4695
  description?: string | null;
4674
4696
  }
4675
4697
  interface VariantDigitalProperties {
4676
- /** Digital file which will be downloaded by customer after successful purchase. */
4698
+ /**
4699
+ * Digital file which will be downloaded by the buyer after successful purchase.
4700
+ * Each variant can have a different digital file, allowing you to offer different content per variant.
4701
+ */
4677
4702
  digitalFile?: SecuredMedia;
4678
4703
  }
4679
4704
  interface SecuredMedia {
@@ -4791,6 +4816,13 @@ interface SubscriptionDetails {
4791
4816
  * Default: `false`
4792
4817
  */
4793
4818
  allowOneTimePurchases?: boolean | null;
4819
+ /**
4820
+ * Whether to add a 'Cancel subscription' button to the My Subscriptions tab of the [Members Area page](https://support.wix.com/en/article/site-members-about-the-members-area).
4821
+ *
4822
+ * Default: `false`
4823
+ * @internal
4824
+ */
4825
+ enableCustomerCancellation?: boolean | null;
4794
4826
  }
4795
4827
  interface Subscription extends SubscriptionCyclesOneOf {
4796
4828
  /** Whether subscription is renewed automatically at the end of each period. Cannot be `false`, instead set `billingCycles`. */
@@ -5101,6 +5133,12 @@ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYM
5101
5133
  * For complex queries with free-text search and aggregations, use Search Variants instead.
5102
5134
  *
5103
5135
  * Up to 1,000 variants can be returned per request.
5136
+ *
5137
+ * To learn about working with _Query_ endpoints, see
5138
+ * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),
5139
+ * and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging).
5140
+ *
5141
+ * Learn more about the differences between [_Query_ and _Search_](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-search-query-and-list-methods) methods.
5104
5142
  * @public
5105
5143
  * @permissionId WIX_STORES.READ_ONLY_VARIANT_READ
5106
5144
  * @permissionId WIX_STORES.READ_ONLY_VARIANT_READ_HIDDEN
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_stores_read-only-variants-v-3",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.stores.catalog.v3.read_only_variant"
51
51
  }
52
52
  },
53
- "falconPackageHash": "50aa5368ac392041b269b60c3bb88ae00430d4abf466a13be201ee46"
53
+ "falconPackageHash": "97b7656600995259e3144d49f8ce87b393da605b379ffc189d717af7"
54
54
  }