@wix/stores 1.0.68 → 1.0.70
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/src/stores-catalog-v1-collection.universal.d.ts +8 -8
- package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.http.d.ts +1 -8
- package/build/cjs/src/stores-catalog-v1-product.http.js +1 -56
- package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.public.d.ts +4 -6
- package/build/cjs/src/stores-catalog-v1-product.public.js +5 -17
- package/build/cjs/src/stores-catalog-v1-product.public.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.types.d.ts +1 -1
- package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +48 -44
- package/build/cjs/src/stores-catalog-v1-product.universal.js +55 -126
- package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -1
- package/build/cjs/src/stores-v1-abandoned-cart.universal.d.ts +4 -0
- package/build/cjs/src/stores-v1-abandoned-cart.universal.js +4 -0
- package/build/cjs/src/stores-v1-abandoned-cart.universal.js.map +1 -1
- package/build/cjs/src/stores-v1-subscription-option.universal.d.ts +16 -0
- package/build/cjs/src/stores-v1-subscription-option.universal.js +16 -0
- package/build/cjs/src/stores-v1-subscription-option.universal.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory.universal.d.ts +7 -0
- package/build/cjs/src/stores-v2-inventory.universal.js +7 -0
- package/build/cjs/src/stores-v2-inventory.universal.js.map +1 -1
- package/build/es/src/stores-catalog-v1-collection.universal.d.ts +8 -8
- package/build/es/src/stores-catalog-v1-collection.universal.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.http.d.ts +1 -8
- package/build/es/src/stores-catalog-v1-product.http.js +0 -53
- package/build/es/src/stores-catalog-v1-product.http.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.public.d.ts +4 -6
- package/build/es/src/stores-catalog-v1-product.public.js +4 -14
- package/build/es/src/stores-catalog-v1-product.public.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.types.d.ts +1 -1
- package/build/es/src/stores-catalog-v1-product.universal.d.ts +48 -44
- package/build/es/src/stores-catalog-v1-product.universal.js +53 -122
- package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -1
- package/build/es/src/stores-v1-abandoned-cart.universal.d.ts +4 -0
- package/build/es/src/stores-v1-abandoned-cart.universal.js +4 -0
- package/build/es/src/stores-v1-abandoned-cart.universal.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option.universal.d.ts +16 -0
- package/build/es/src/stores-v1-subscription-option.universal.js +16 -0
- package/build/es/src/stores-v1-subscription-option.universal.js.map +1 -1
- package/build/es/src/stores-v2-inventory.universal.d.ts +7 -0
- package/build/es/src/stores-v2-inventory.universal.js +7 -0
- package/build/es/src/stores-v2-inventory.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1142,7 +1142,7 @@ export interface QueryCollectionsPlatformizedResponse {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
export interface GetCollectionRequest {
|
|
1144
1144
|
/** Requested collection ID. */
|
|
1145
|
-
_id
|
|
1145
|
+
_id?: string;
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Whether to return the `collection.numberOfProducts` field in the response.
|
|
1148
1148
|
* Defaults to `false`, in which case the value of `collection.numberOfProducts` will be `0`.
|
|
@@ -1387,6 +1387,7 @@ export interface AggregateProductsResponse {
|
|
|
1387
1387
|
* @requiredField product.name
|
|
1388
1388
|
* @requiredField product.priceData
|
|
1389
1389
|
* @requiredField product.priceData.price
|
|
1390
|
+
* @permissionScope Manage Products
|
|
1390
1391
|
*/
|
|
1391
1392
|
export declare function createProduct(product: Product): Promise<CreateProductResponse>;
|
|
1392
1393
|
/**
|
|
@@ -1399,6 +1400,7 @@ export declare function createProduct(product: Product): Promise<CreateProductRe
|
|
|
1399
1400
|
* @requiredField _id
|
|
1400
1401
|
* @requiredField product
|
|
1401
1402
|
* @param product - Product info to update.
|
|
1403
|
+
* @permissionScope Manage Products
|
|
1402
1404
|
*/
|
|
1403
1405
|
export declare function updateProduct(_id: string, product: UpdateProduct): Promise<UpdateProductResponse>;
|
|
1404
1406
|
export interface UpdateProduct {
|
|
@@ -1535,6 +1537,7 @@ export interface UpdateProduct {
|
|
|
1535
1537
|
* @param _id - ID of the product to delete.
|
|
1536
1538
|
* @public
|
|
1537
1539
|
* @requiredField _id
|
|
1540
|
+
* @permissionScope Manage Products
|
|
1538
1541
|
*/
|
|
1539
1542
|
export declare function deleteProduct(_id: string): Promise<void>;
|
|
1540
1543
|
/**
|
|
@@ -1547,6 +1550,7 @@ export declare function deleteProduct(_id: string): Promise<void>;
|
|
|
1547
1550
|
* @documentationMaturity preview
|
|
1548
1551
|
* @requiredField _id
|
|
1549
1552
|
* @requiredField variants
|
|
1553
|
+
* @permissionScope Manage Products
|
|
1550
1554
|
*/
|
|
1551
1555
|
export declare function updateProductVariants(_id: string, variants: VariantOverride[]): Promise<UpdateVariantsResponse>;
|
|
1552
1556
|
/**
|
|
@@ -1557,6 +1561,7 @@ export declare function updateProductVariants(_id: string, variants: VariantOver
|
|
|
1557
1561
|
* @public
|
|
1558
1562
|
* @documentationMaturity preview
|
|
1559
1563
|
* @requiredField _id
|
|
1564
|
+
* @permissionScope Manage Products
|
|
1560
1565
|
*/
|
|
1561
1566
|
export declare function resetAllProductVariantData(_id: string): Promise<void>;
|
|
1562
1567
|
/**
|
|
@@ -1568,6 +1573,7 @@ export declare function resetAllProductVariantData(_id: string): Promise<void>;
|
|
|
1568
1573
|
* @public
|
|
1569
1574
|
* @requiredField _id
|
|
1570
1575
|
* @requiredField productIds
|
|
1576
|
+
* @permissionScope Manage Products
|
|
1571
1577
|
*/
|
|
1572
1578
|
export declare function addProductsToCollection(_id: string, productIds: string[]): Promise<void>;
|
|
1573
1579
|
/**
|
|
@@ -1579,6 +1585,7 @@ export declare function addProductsToCollection(_id: string, productIds: string[
|
|
|
1579
1585
|
* @public
|
|
1580
1586
|
* @requiredField _id
|
|
1581
1587
|
* @requiredField productIds
|
|
1588
|
+
* @permissionScope Manage Products
|
|
1582
1589
|
*/
|
|
1583
1590
|
export declare function removeProductsFromCollection(_id: string, productIds: string[]): Promise<void>;
|
|
1584
1591
|
/**
|
|
@@ -1592,6 +1599,7 @@ export declare function removeProductsFromCollection(_id: string, productIds: st
|
|
|
1592
1599
|
* @public
|
|
1593
1600
|
* @requiredField _id
|
|
1594
1601
|
* @requiredField media
|
|
1602
|
+
* @permissionScope Manage Products
|
|
1595
1603
|
*/
|
|
1596
1604
|
export declare function addProductMedia(_id: string, media: MediaDataForWrite[]): Promise<void>;
|
|
1597
1605
|
/**
|
|
@@ -1604,6 +1612,7 @@ export declare function addProductMedia(_id: string, media: MediaDataForWrite[])
|
|
|
1604
1612
|
* @public
|
|
1605
1613
|
* @requiredField _id
|
|
1606
1614
|
* @requiredField mediaIds
|
|
1615
|
+
* @permissionScope Manage Products
|
|
1607
1616
|
*/
|
|
1608
1617
|
export declare function removeProductMedia(_id: string, mediaIds: string[]): Promise<void>;
|
|
1609
1618
|
/**
|
|
@@ -1621,6 +1630,7 @@ export declare function removeProductMedia(_id: string, mediaIds: string[]): Pro
|
|
|
1621
1630
|
* @requiredField media
|
|
1622
1631
|
* @requiredField media.choice
|
|
1623
1632
|
* @requiredField media.option
|
|
1633
|
+
* @permissionScope Manage Products
|
|
1624
1634
|
*/
|
|
1625
1635
|
export declare function addProductMediaToChoices(_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
|
|
1626
1636
|
/**
|
|
@@ -1633,6 +1643,7 @@ export declare function addProductMediaToChoices(_id: string, media: MediaAssign
|
|
|
1633
1643
|
* @public
|
|
1634
1644
|
* @requiredField _id
|
|
1635
1645
|
* @requiredField media
|
|
1646
|
+
* @permissionScope Manage Products
|
|
1636
1647
|
*/
|
|
1637
1648
|
export declare function removeProductMediaFromChoices(_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
|
|
1638
1649
|
/**
|
|
@@ -1642,6 +1653,7 @@ export declare function removeProductMediaFromChoices(_id: string, media: MediaA
|
|
|
1642
1653
|
* @param _id - ID of the product with options to delete.
|
|
1643
1654
|
* @public
|
|
1644
1655
|
* @requiredField _id
|
|
1656
|
+
* @permissionScope Manage Products
|
|
1645
1657
|
*/
|
|
1646
1658
|
export declare function deleteProductOptions(_id: string): Promise<void>;
|
|
1647
1659
|
/**
|
|
@@ -1652,6 +1664,7 @@ export declare function deleteProductOptions(_id: string): Promise<void>;
|
|
|
1652
1664
|
* @public
|
|
1653
1665
|
* @documentationMaturity preview
|
|
1654
1666
|
* @requiredField _id
|
|
1667
|
+
* @permissionScope Manage Products
|
|
1655
1668
|
*/
|
|
1656
1669
|
export declare function removeBrand(_id: string): Promise<void>;
|
|
1657
1670
|
/**
|
|
@@ -1663,6 +1676,7 @@ export declare function removeBrand(_id: string): Promise<void>;
|
|
|
1663
1676
|
* @documentationMaturity preview
|
|
1664
1677
|
* @requiredField collection
|
|
1665
1678
|
* @requiredField collection.name
|
|
1679
|
+
* @permissionScope Manage Products
|
|
1666
1680
|
*/
|
|
1667
1681
|
export declare function createCollection(collection: Collection): Promise<CreateCollectionResponse>;
|
|
1668
1682
|
/**
|
|
@@ -1675,6 +1689,7 @@ export declare function createCollection(collection: Collection): Promise<Create
|
|
|
1675
1689
|
* @requiredField _id
|
|
1676
1690
|
* @requiredField collection
|
|
1677
1691
|
* @param collection - Collection info to update.
|
|
1692
|
+
* @permissionScope Manage Products
|
|
1678
1693
|
*/
|
|
1679
1694
|
export declare function updateCollection(_id: string | null, collection: UpdateCollection): Promise<UpdateCollectionResponse>;
|
|
1680
1695
|
export interface UpdateCollection {
|
|
@@ -1710,6 +1725,7 @@ export interface UpdateCollection {
|
|
|
1710
1725
|
* @documentationMaturity preview
|
|
1711
1726
|
* @requiredField _id
|
|
1712
1727
|
* @param _id - ID of the collection to delete.
|
|
1728
|
+
* @permissionScope Manage Products
|
|
1713
1729
|
*/
|
|
1714
1730
|
export declare function deleteCollection(_id: string): Promise<void>;
|
|
1715
1731
|
/**
|
|
@@ -1720,40 +1736,39 @@ export declare function deleteCollection(_id: string): Promise<void>;
|
|
|
1720
1736
|
* @public
|
|
1721
1737
|
* @documentationMaturity preview
|
|
1722
1738
|
* @requiredField _id
|
|
1739
|
+
* @permissionScope Manage Products
|
|
1723
1740
|
*/
|
|
1724
1741
|
export declare function removeRibbon(_id: string): Promise<void>;
|
|
1725
1742
|
/**
|
|
1726
1743
|
* Updates a specified property for up to 100 products at a time.
|
|
1744
|
+
* @param ids - Product IDs.
|
|
1727
1745
|
* @param set - Field to update.
|
|
1728
1746
|
* @public
|
|
1729
|
-
* @
|
|
1730
|
-
* @requiredField
|
|
1747
|
+
* @documentationMaturity preview
|
|
1748
|
+
* @requiredField ids
|
|
1731
1749
|
* @requiredField set
|
|
1750
|
+
* @permissionScope Manage Products
|
|
1732
1751
|
*/
|
|
1733
|
-
export declare function
|
|
1734
|
-
export interface BulkUpdateProductsOptions {
|
|
1735
|
-
/** Product IDs. */
|
|
1736
|
-
ids: string[];
|
|
1737
|
-
}
|
|
1752
|
+
export declare function bulkUpdateProductsProperty(ids: string[], set: SetValue): Promise<BulkUpdateProductsResponse>;
|
|
1738
1753
|
/**
|
|
1739
1754
|
* Adjusts a specified numerical property for up to 100 products at a time.
|
|
1740
1755
|
* The property can be increased or decreased either by percentage or amount.
|
|
1741
1756
|
* @param adjust - Numerical property to adjust.
|
|
1757
|
+
* @param ids - Product IDs.
|
|
1742
1758
|
* @public
|
|
1743
1759
|
* @documentationMaturity preview
|
|
1744
1760
|
* @requiredField adjust
|
|
1745
|
-
* @requiredField
|
|
1746
|
-
* @
|
|
1761
|
+
* @requiredField ids
|
|
1762
|
+
* @permissionScope Manage Products
|
|
1747
1763
|
*/
|
|
1748
|
-
export declare function bulkAdjustProductProperty(adjust: AdjustValue,
|
|
1749
|
-
export interface BulkAdjustProductPropertyOptions {
|
|
1750
|
-
/** Product IDs. */
|
|
1751
|
-
ids: string[];
|
|
1752
|
-
}
|
|
1764
|
+
export declare function bulkAdjustProductProperty(adjust: AdjustValue, ids: string[]): Promise<BulkAdjustProductPropertiesResponse>;
|
|
1753
1765
|
/**
|
|
1754
1766
|
* Returns a list of up to 100 products, given the provided paging, sorting and filtering.
|
|
1755
1767
|
* @public
|
|
1756
1768
|
* @documentationMaturity preview
|
|
1769
|
+
* @permissionScope Manage Orders
|
|
1770
|
+
* @permissionScope Manage Products
|
|
1771
|
+
* @permissionScope Read Products
|
|
1757
1772
|
*/
|
|
1758
1773
|
export declare function queryProducts(): ProductsQueryBuilder;
|
|
1759
1774
|
interface QueryOffsetResult {
|
|
@@ -1841,46 +1856,23 @@ export interface ProductsQueryBuilder {
|
|
|
1841
1856
|
* @public
|
|
1842
1857
|
* @documentationMaturity preview
|
|
1843
1858
|
* @requiredField _id
|
|
1859
|
+
* @permissionScope Manage Orders
|
|
1860
|
+
* @permissionScope Manage Products
|
|
1861
|
+
* @permissionScope Read Products
|
|
1844
1862
|
*/
|
|
1845
1863
|
export declare function getProduct(_id: string, options?: GetProductOptions): Promise<GetProductResponse>;
|
|
1846
1864
|
export interface GetProductOptions {
|
|
1847
1865
|
/** Whether merchant specific data, such as cost and profit data, should be included in the response. Requires permissions to manage products. */
|
|
1848
1866
|
includeMerchantSpecificData?: boolean;
|
|
1849
1867
|
}
|
|
1850
|
-
/**
|
|
1851
|
-
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
1852
|
-
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
1853
|
-
* @public
|
|
1854
|
-
* @documentationMaturity preview
|
|
1855
|
-
*/
|
|
1856
|
-
export declare function queryCollections(options?: QueryCollectionsOptions): Promise<QueryCollectionsResponse>;
|
|
1857
|
-
export interface QueryCollectionsOptions {
|
|
1858
|
-
/** Query options. */
|
|
1859
|
-
query?: Query;
|
|
1860
|
-
/** Whether number of products should be included in the response. */
|
|
1861
|
-
includeNumberOfProducts?: boolean;
|
|
1862
|
-
/** Wether to include collection description in the response. When `false` is passed, `collection.description` will return null. */
|
|
1863
|
-
includeDescription?: boolean;
|
|
1864
|
-
}
|
|
1865
|
-
/**
|
|
1866
|
-
* Retrieves a collection with the provided ID.
|
|
1867
|
-
* @param _id - Requested collection ID.
|
|
1868
|
-
* @public
|
|
1869
|
-
* @requiredField _id
|
|
1870
|
-
*/
|
|
1871
|
-
export declare function getCollection(_id: string, options?: GetCollectionOptions): Promise<GetCollectionResponse>;
|
|
1872
|
-
export interface GetCollectionOptions {
|
|
1873
|
-
/**
|
|
1874
|
-
* Whether to return the `collection.numberOfProducts` field in the response.
|
|
1875
|
-
* Defaults to `false`, in which case the value of `collection.numberOfProducts` will be `0`.
|
|
1876
|
-
*/
|
|
1877
|
-
includeNumberOfProducts?: boolean;
|
|
1878
|
-
}
|
|
1879
1868
|
/**
|
|
1880
1869
|
* Retrieves a collection with the provided slug.
|
|
1881
1870
|
* @param slug - Slug of the collection to retrieve.
|
|
1882
1871
|
* @public
|
|
1883
1872
|
* @requiredField slug
|
|
1873
|
+
* @permissionScope Manage Orders
|
|
1874
|
+
* @permissionScope Manage Products
|
|
1875
|
+
* @permissionScope Read Products
|
|
1884
1876
|
*/
|
|
1885
1877
|
export declare function getCollectionBySlug(slug: string): Promise<GetCollectionBySlugResponse>;
|
|
1886
1878
|
/**
|
|
@@ -1890,6 +1882,9 @@ export declare function getCollectionBySlug(slug: string): Promise<GetCollection
|
|
|
1890
1882
|
* @public
|
|
1891
1883
|
* @requiredField _id
|
|
1892
1884
|
* @requiredField options
|
|
1885
|
+
* @permissionScope Manage Orders
|
|
1886
|
+
* @permissionScope Manage Products
|
|
1887
|
+
* @permissionScope Read Products
|
|
1893
1888
|
*/
|
|
1894
1889
|
export declare function getProductOptionsAvailability(_id: string, options: Record<string, string>): Promise<ProductOptionsAvailabilityResponse>;
|
|
1895
1890
|
/**
|
|
@@ -1899,6 +1894,9 @@ export declare function getProductOptionsAvailability(_id: string, options: Reco
|
|
|
1899
1894
|
* @public
|
|
1900
1895
|
* @documentationMaturity preview
|
|
1901
1896
|
* @requiredField _id
|
|
1897
|
+
* @permissionScope Manage Orders
|
|
1898
|
+
* @permissionScope Manage Products
|
|
1899
|
+
* @permissionScope Read Products
|
|
1902
1900
|
*/
|
|
1903
1901
|
export declare function queryProductVariants(_id: string, options?: QueryProductVariantsOptions): Promise<QueryProductVariantsResponse>;
|
|
1904
1902
|
export interface QueryProductVariantsOptions {
|
|
@@ -1919,6 +1917,9 @@ export interface QueryProductVariantsOptions {
|
|
|
1919
1917
|
* @public
|
|
1920
1918
|
* @documentationMaturity preview
|
|
1921
1919
|
* @requiredField query
|
|
1920
|
+
* @permissionScope Manage Orders
|
|
1921
|
+
* @permissionScope Manage Products
|
|
1922
|
+
* @permissionScope Read Products
|
|
1922
1923
|
*/
|
|
1923
1924
|
export declare function queryStoreVariants(query: PlatformQuery): Promise<QueryStoreVariantsResponse>;
|
|
1924
1925
|
/**
|
|
@@ -1927,6 +1928,9 @@ export declare function queryStoreVariants(query: PlatformQuery): Promise<QueryS
|
|
|
1927
1928
|
* @public
|
|
1928
1929
|
* @documentationMaturity preview
|
|
1929
1930
|
* @requiredField _id
|
|
1931
|
+
* @permissionScope Manage Orders
|
|
1932
|
+
* @permissionScope Manage Products
|
|
1933
|
+
* @permissionScope Read Products
|
|
1930
1934
|
*/
|
|
1931
1935
|
export declare function getStoreVariant(_id: string): Promise<GetStoreVariantResponse>;
|
|
1932
1936
|
export {};
|