@wix/stores 1.0.69 → 1.0.71
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.universal.d.ts +50 -5
- package/build/cjs/src/stores-catalog-v1-product.universal.js +40 -0
- 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.universal.d.ts +50 -5
- package/build/es/src/stores-catalog-v1-product.universal.js +40 -0
- 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
|
@@ -234,34 +234,34 @@ export interface CollectionsQueryBuilder {
|
|
|
234
234
|
* @param value - Value to compare against.
|
|
235
235
|
* @documentationMaturity preview
|
|
236
236
|
*/
|
|
237
|
-
eq: (propertyName: '_id' | 'name'
|
|
237
|
+
eq: (propertyName: '_id' | 'name', value: any) => CollectionsQueryBuilder;
|
|
238
238
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
239
239
|
* @param value - Value to compare against.
|
|
240
240
|
* @documentationMaturity preview
|
|
241
241
|
*/
|
|
242
|
-
ne: (propertyName: '_id' | 'name'
|
|
242
|
+
ne: (propertyName: '_id' | 'name', value: any) => CollectionsQueryBuilder;
|
|
243
243
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
244
244
|
* @param string - String to compare against. Case-insensitive.
|
|
245
245
|
* @documentationMaturity preview
|
|
246
246
|
*/
|
|
247
|
-
startsWith: (propertyName: '_id' | 'name'
|
|
247
|
+
startsWith: (propertyName: '_id' | 'name', value: string) => CollectionsQueryBuilder;
|
|
248
248
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
249
249
|
* @param values - List of values to compare against.
|
|
250
250
|
* @documentationMaturity preview
|
|
251
251
|
*/
|
|
252
|
-
hasSome: (propertyName: '_id' | 'name'
|
|
252
|
+
hasSome: (propertyName: '_id' | 'name', value: any[]) => CollectionsQueryBuilder;
|
|
253
253
|
/** @documentationMaturity preview */
|
|
254
|
-
in: (propertyName: '_id' | 'name'
|
|
254
|
+
in: (propertyName: '_id' | 'name', value: any) => CollectionsQueryBuilder;
|
|
255
255
|
/** @documentationMaturity preview */
|
|
256
|
-
exists: (propertyName: '_id' | 'name'
|
|
256
|
+
exists: (propertyName: '_id' | 'name', value: boolean) => CollectionsQueryBuilder;
|
|
257
257
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
258
258
|
* @documentationMaturity preview
|
|
259
259
|
*/
|
|
260
|
-
ascending: (...propertyNames: Array<'_id' | 'name'
|
|
260
|
+
ascending: (...propertyNames: Array<'_id' | 'name'>) => CollectionsQueryBuilder;
|
|
261
261
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
262
262
|
* @documentationMaturity preview
|
|
263
263
|
*/
|
|
264
|
-
descending: (...propertyNames: Array<'_id' | 'name'
|
|
264
|
+
descending: (...propertyNames: Array<'_id' | 'name'>) => CollectionsQueryBuilder;
|
|
265
265
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
266
266
|
* @documentationMaturity preview
|
|
267
267
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-collection.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,4GAA8F;AAC9F,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAuE5B,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4BAAW,CAAA;A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,GACX,sCAAsC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YAEnE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;YAC5B,IAAI;gBACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA1DD,4CA0DC;
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-collection.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,4GAA8F;AAC9F,aAAa;AACb,4FAA6E;AAE7E,IAAI,SA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AAO,GAAG,sCAAsC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE9E,KAAK,CAAC,yCAAyC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAErE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlDD,sCAkDC"}
|
|
@@ -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,6 +1736,7 @@ 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
|
/**
|
|
@@ -1730,6 +1747,7 @@ export declare function removeRibbon(_id: string): Promise<void>;
|
|
|
1730
1747
|
* @documentationMaturity preview
|
|
1731
1748
|
* @requiredField ids
|
|
1732
1749
|
* @requiredField set
|
|
1750
|
+
* @permissionScope Manage Products
|
|
1733
1751
|
*/
|
|
1734
1752
|
export declare function bulkUpdateProductsProperty(ids: string[], set: SetValue): Promise<BulkUpdateProductsResponse>;
|
|
1735
1753
|
/**
|
|
@@ -1741,12 +1759,16 @@ export declare function bulkUpdateProductsProperty(ids: string[], set: SetValue)
|
|
|
1741
1759
|
* @documentationMaturity preview
|
|
1742
1760
|
* @requiredField adjust
|
|
1743
1761
|
* @requiredField ids
|
|
1762
|
+
* @permissionScope Manage Products
|
|
1744
1763
|
*/
|
|
1745
1764
|
export declare function bulkAdjustProductProperty(adjust: AdjustValue, ids: string[]): Promise<BulkAdjustProductPropertiesResponse>;
|
|
1746
1765
|
/**
|
|
1747
1766
|
* Returns a list of up to 100 products, given the provided paging, sorting and filtering.
|
|
1748
1767
|
* @public
|
|
1749
1768
|
* @documentationMaturity preview
|
|
1769
|
+
* @permissionScope Manage Orders
|
|
1770
|
+
* @permissionScope Manage Products
|
|
1771
|
+
* @permissionScope Read Products
|
|
1750
1772
|
*/
|
|
1751
1773
|
export declare function queryProducts(): ProductsQueryBuilder;
|
|
1752
1774
|
interface QueryOffsetResult {
|
|
@@ -1769,12 +1791,12 @@ export interface ProductsQueryBuilder {
|
|
|
1769
1791
|
* @param value - Value to compare against.
|
|
1770
1792
|
* @documentationMaturity preview
|
|
1771
1793
|
*/
|
|
1772
|
-
eq: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'lastUpdated' | '_createdDate', value: any) => ProductsQueryBuilder;
|
|
1794
|
+
eq: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'collectionIds' | 'lastUpdated' | '_createdDate', value: any) => ProductsQueryBuilder;
|
|
1773
1795
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1774
1796
|
* @param value - Value to compare against.
|
|
1775
1797
|
* @documentationMaturity preview
|
|
1776
1798
|
*/
|
|
1777
|
-
ne: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'lastUpdated' | '_createdDate', value: any) => ProductsQueryBuilder;
|
|
1799
|
+
ne: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'collectionIds' | 'lastUpdated' | '_createdDate', value: any) => ProductsQueryBuilder;
|
|
1778
1800
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1779
1801
|
* @param value - Value to compare against.
|
|
1780
1802
|
* @documentationMaturity preview
|
|
@@ -1804,11 +1826,16 @@ export interface ProductsQueryBuilder {
|
|
|
1804
1826
|
* @param values - List of values to compare against.
|
|
1805
1827
|
* @documentationMaturity preview
|
|
1806
1828
|
*/
|
|
1807
|
-
hasSome: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'lastUpdated' | '_createdDate', value: any[]) => ProductsQueryBuilder;
|
|
1829
|
+
hasSome: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'collectionIds' | 'lastUpdated' | '_createdDate', value: any[]) => ProductsQueryBuilder;
|
|
1830
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
1831
|
+
* @param values - List of values to compare against.
|
|
1832
|
+
* @documentationMaturity preview
|
|
1833
|
+
*/
|
|
1834
|
+
hasAll: (propertyName: 'collectionIds', value: any[]) => ProductsQueryBuilder;
|
|
1808
1835
|
/** @documentationMaturity preview */
|
|
1809
|
-
in: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'lastUpdated' | '_createdDate', value: any) => ProductsQueryBuilder;
|
|
1836
|
+
in: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'collectionIds' | 'lastUpdated' | '_createdDate', value: any) => ProductsQueryBuilder;
|
|
1810
1837
|
/** @documentationMaturity preview */
|
|
1811
|
-
exists: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'lastUpdated' | '_createdDate', value: boolean) => ProductsQueryBuilder;
|
|
1838
|
+
exists: (propertyName: '_id' | 'name' | 'slug' | 'productType' | 'description' | 'sku' | 'price' | 'numericId' | 'collectionIds' | 'lastUpdated' | '_createdDate', value: boolean) => ProductsQueryBuilder;
|
|
1812
1839
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1813
1840
|
* @documentationMaturity preview
|
|
1814
1841
|
*/
|
|
@@ -1834,6 +1861,9 @@ export interface ProductsQueryBuilder {
|
|
|
1834
1861
|
* @public
|
|
1835
1862
|
* @documentationMaturity preview
|
|
1836
1863
|
* @requiredField _id
|
|
1864
|
+
* @permissionScope Manage Orders
|
|
1865
|
+
* @permissionScope Manage Products
|
|
1866
|
+
* @permissionScope Read Products
|
|
1837
1867
|
*/
|
|
1838
1868
|
export declare function getProduct(_id: string, options?: GetProductOptions): Promise<GetProductResponse>;
|
|
1839
1869
|
export interface GetProductOptions {
|
|
@@ -1845,6 +1875,9 @@ export interface GetProductOptions {
|
|
|
1845
1875
|
* @param slug - Slug of the collection to retrieve.
|
|
1846
1876
|
* @public
|
|
1847
1877
|
* @requiredField slug
|
|
1878
|
+
* @permissionScope Manage Orders
|
|
1879
|
+
* @permissionScope Manage Products
|
|
1880
|
+
* @permissionScope Read Products
|
|
1848
1881
|
*/
|
|
1849
1882
|
export declare function getCollectionBySlug(slug: string): Promise<GetCollectionBySlugResponse>;
|
|
1850
1883
|
/**
|
|
@@ -1854,6 +1887,9 @@ export declare function getCollectionBySlug(slug: string): Promise<GetCollection
|
|
|
1854
1887
|
* @public
|
|
1855
1888
|
* @requiredField _id
|
|
1856
1889
|
* @requiredField options
|
|
1890
|
+
* @permissionScope Manage Orders
|
|
1891
|
+
* @permissionScope Manage Products
|
|
1892
|
+
* @permissionScope Read Products
|
|
1857
1893
|
*/
|
|
1858
1894
|
export declare function getProductOptionsAvailability(_id: string, options: Record<string, string>): Promise<ProductOptionsAvailabilityResponse>;
|
|
1859
1895
|
/**
|
|
@@ -1863,6 +1899,9 @@ export declare function getProductOptionsAvailability(_id: string, options: Reco
|
|
|
1863
1899
|
* @public
|
|
1864
1900
|
* @documentationMaturity preview
|
|
1865
1901
|
* @requiredField _id
|
|
1902
|
+
* @permissionScope Manage Orders
|
|
1903
|
+
* @permissionScope Manage Products
|
|
1904
|
+
* @permissionScope Read Products
|
|
1866
1905
|
*/
|
|
1867
1906
|
export declare function queryProductVariants(_id: string, options?: QueryProductVariantsOptions): Promise<QueryProductVariantsResponse>;
|
|
1868
1907
|
export interface QueryProductVariantsOptions {
|
|
@@ -1883,6 +1922,9 @@ export interface QueryProductVariantsOptions {
|
|
|
1883
1922
|
* @public
|
|
1884
1923
|
* @documentationMaturity preview
|
|
1885
1924
|
* @requiredField query
|
|
1925
|
+
* @permissionScope Manage Orders
|
|
1926
|
+
* @permissionScope Manage Products
|
|
1927
|
+
* @permissionScope Read Products
|
|
1886
1928
|
*/
|
|
1887
1929
|
export declare function queryStoreVariants(query: PlatformQuery): Promise<QueryStoreVariantsResponse>;
|
|
1888
1930
|
/**
|
|
@@ -1891,6 +1933,9 @@ export declare function queryStoreVariants(query: PlatformQuery): Promise<QueryS
|
|
|
1891
1933
|
* @public
|
|
1892
1934
|
* @documentationMaturity preview
|
|
1893
1935
|
* @requiredField _id
|
|
1936
|
+
* @permissionScope Manage Orders
|
|
1937
|
+
* @permissionScope Manage Products
|
|
1938
|
+
* @permissionScope Read Products
|
|
1894
1939
|
*/
|
|
1895
1940
|
export declare function getStoreVariant(_id: string): Promise<GetStoreVariantResponse>;
|
|
1896
1941
|
export {};
|
|
@@ -182,6 +182,7 @@ const _updateVariantsResponse = {};
|
|
|
182
182
|
* @requiredField product.name
|
|
183
183
|
* @requiredField product.priceData
|
|
184
184
|
* @requiredField product.priceData.price
|
|
185
|
+
* @permissionScope Manage Products
|
|
185
186
|
*/
|
|
186
187
|
function createProduct(product) {
|
|
187
188
|
var _a, _b, _c;
|
|
@@ -237,6 +238,7 @@ exports.createProduct = createProduct;
|
|
|
237
238
|
* @requiredField _id
|
|
238
239
|
* @requiredField product
|
|
239
240
|
* @param product - Product info to update.
|
|
241
|
+
* @permissionScope Manage Products
|
|
240
242
|
*/
|
|
241
243
|
function updateProduct(_id, product) {
|
|
242
244
|
var _a, _b, _c;
|
|
@@ -290,6 +292,7 @@ exports.updateProduct = updateProduct;
|
|
|
290
292
|
* @param _id - ID of the product to delete.
|
|
291
293
|
* @public
|
|
292
294
|
* @requiredField _id
|
|
295
|
+
* @permissionScope Manage Products
|
|
293
296
|
*/
|
|
294
297
|
function deleteProduct(_id) {
|
|
295
298
|
var _a, _b, _c;
|
|
@@ -345,6 +348,7 @@ exports.deleteProduct = deleteProduct;
|
|
|
345
348
|
* @documentationMaturity preview
|
|
346
349
|
* @requiredField _id
|
|
347
350
|
* @requiredField variants
|
|
351
|
+
* @permissionScope Manage Products
|
|
348
352
|
*/
|
|
349
353
|
function updateProductVariants(_id, variants) {
|
|
350
354
|
var _a, _b, _c;
|
|
@@ -399,6 +403,7 @@ exports.updateProductVariants = updateProductVariants;
|
|
|
399
403
|
* @public
|
|
400
404
|
* @documentationMaturity preview
|
|
401
405
|
* @requiredField _id
|
|
406
|
+
* @permissionScope Manage Products
|
|
402
407
|
*/
|
|
403
408
|
function resetAllProductVariantData(_id) {
|
|
404
409
|
var _a, _b, _c;
|
|
@@ -453,6 +458,7 @@ exports.resetAllProductVariantData = resetAllProductVariantData;
|
|
|
453
458
|
* @public
|
|
454
459
|
* @requiredField _id
|
|
455
460
|
* @requiredField productIds
|
|
461
|
+
* @permissionScope Manage Products
|
|
456
462
|
*/
|
|
457
463
|
function addProductsToCollection(_id, productIds) {
|
|
458
464
|
var _a, _b, _c;
|
|
@@ -508,6 +514,7 @@ exports.addProductsToCollection = addProductsToCollection;
|
|
|
508
514
|
* @public
|
|
509
515
|
* @requiredField _id
|
|
510
516
|
* @requiredField productIds
|
|
517
|
+
* @permissionScope Manage Products
|
|
511
518
|
*/
|
|
512
519
|
function removeProductsFromCollection(_id, productIds) {
|
|
513
520
|
var _a, _b, _c;
|
|
@@ -565,6 +572,7 @@ exports.removeProductsFromCollection = removeProductsFromCollection;
|
|
|
565
572
|
* @public
|
|
566
573
|
* @requiredField _id
|
|
567
574
|
* @requiredField media
|
|
575
|
+
* @permissionScope Manage Products
|
|
568
576
|
*/
|
|
569
577
|
function addProductMedia(_id, media) {
|
|
570
578
|
var _a, _b, _c;
|
|
@@ -621,6 +629,7 @@ exports.addProductMedia = addProductMedia;
|
|
|
621
629
|
* @public
|
|
622
630
|
* @requiredField _id
|
|
623
631
|
* @requiredField mediaIds
|
|
632
|
+
* @permissionScope Manage Products
|
|
624
633
|
*/
|
|
625
634
|
function removeProductMedia(_id, mediaIds) {
|
|
626
635
|
var _a, _b, _c;
|
|
@@ -682,6 +691,7 @@ exports.removeProductMedia = removeProductMedia;
|
|
|
682
691
|
* @requiredField media
|
|
683
692
|
* @requiredField media.choice
|
|
684
693
|
* @requiredField media.option
|
|
694
|
+
* @permissionScope Manage Products
|
|
685
695
|
*/
|
|
686
696
|
function addProductMediaToChoices(_id, media) {
|
|
687
697
|
var _a, _b, _c;
|
|
@@ -738,6 +748,7 @@ exports.addProductMediaToChoices = addProductMediaToChoices;
|
|
|
738
748
|
* @public
|
|
739
749
|
* @requiredField _id
|
|
740
750
|
* @requiredField media
|
|
751
|
+
* @permissionScope Manage Products
|
|
741
752
|
*/
|
|
742
753
|
function removeProductMediaFromChoices(_id, media) {
|
|
743
754
|
var _a, _b, _c;
|
|
@@ -791,6 +802,7 @@ exports.removeProductMediaFromChoices = removeProductMediaFromChoices;
|
|
|
791
802
|
* @param _id - ID of the product with options to delete.
|
|
792
803
|
* @public
|
|
793
804
|
* @requiredField _id
|
|
805
|
+
* @permissionScope Manage Products
|
|
794
806
|
*/
|
|
795
807
|
function deleteProductOptions(_id) {
|
|
796
808
|
var _a, _b, _c;
|
|
@@ -844,6 +856,7 @@ exports.deleteProductOptions = deleteProductOptions;
|
|
|
844
856
|
* @public
|
|
845
857
|
* @documentationMaturity preview
|
|
846
858
|
* @requiredField _id
|
|
859
|
+
* @permissionScope Manage Products
|
|
847
860
|
*/
|
|
848
861
|
function removeBrand(_id) {
|
|
849
862
|
var _a, _b, _c;
|
|
@@ -898,6 +911,7 @@ exports.removeBrand = removeBrand;
|
|
|
898
911
|
* @documentationMaturity preview
|
|
899
912
|
* @requiredField collection
|
|
900
913
|
* @requiredField collection.name
|
|
914
|
+
* @permissionScope Manage Products
|
|
901
915
|
*/
|
|
902
916
|
function createCollection(collection) {
|
|
903
917
|
var _a, _b, _c;
|
|
@@ -953,6 +967,7 @@ exports.createCollection = createCollection;
|
|
|
953
967
|
* @requiredField _id
|
|
954
968
|
* @requiredField collection
|
|
955
969
|
* @param collection - Collection info to update.
|
|
970
|
+
* @permissionScope Manage Products
|
|
956
971
|
*/
|
|
957
972
|
function updateCollection(_id, collection) {
|
|
958
973
|
var _a, _b, _c;
|
|
@@ -1007,6 +1022,7 @@ exports.updateCollection = updateCollection;
|
|
|
1007
1022
|
* @documentationMaturity preview
|
|
1008
1023
|
* @requiredField _id
|
|
1009
1024
|
* @param _id - ID of the collection to delete.
|
|
1025
|
+
* @permissionScope Manage Products
|
|
1010
1026
|
*/
|
|
1011
1027
|
function deleteCollection(_id) {
|
|
1012
1028
|
var _a, _b, _c;
|
|
@@ -1060,6 +1076,7 @@ exports.deleteCollection = deleteCollection;
|
|
|
1060
1076
|
* @public
|
|
1061
1077
|
* @documentationMaturity preview
|
|
1062
1078
|
* @requiredField _id
|
|
1079
|
+
* @permissionScope Manage Products
|
|
1063
1080
|
*/
|
|
1064
1081
|
function removeRibbon(_id) {
|
|
1065
1082
|
var _a, _b, _c;
|
|
@@ -1113,6 +1130,7 @@ exports.removeRibbon = removeRibbon;
|
|
|
1113
1130
|
* @documentationMaturity preview
|
|
1114
1131
|
* @requiredField ids
|
|
1115
1132
|
* @requiredField set
|
|
1133
|
+
* @permissionScope Manage Products
|
|
1116
1134
|
*/
|
|
1117
1135
|
function bulkUpdateProductsProperty(ids, set) {
|
|
1118
1136
|
var _a, _b, _c;
|
|
@@ -1168,6 +1186,7 @@ exports.bulkUpdateProductsProperty = bulkUpdateProductsProperty;
|
|
|
1168
1186
|
* @documentationMaturity preview
|
|
1169
1187
|
* @requiredField adjust
|
|
1170
1188
|
* @requiredField ids
|
|
1189
|
+
* @permissionScope Manage Products
|
|
1171
1190
|
*/
|
|
1172
1191
|
function bulkAdjustProductProperty(adjust, ids) {
|
|
1173
1192
|
var _a, _b, _c;
|
|
@@ -1218,6 +1237,9 @@ exports.bulkAdjustProductProperty = bulkAdjustProductProperty;
|
|
|
1218
1237
|
* Returns a list of up to 100 products, given the provided paging, sorting and filtering.
|
|
1219
1238
|
* @public
|
|
1220
1239
|
* @documentationMaturity preview
|
|
1240
|
+
* @permissionScope Manage Orders
|
|
1241
|
+
* @permissionScope Manage Products
|
|
1242
|
+
* @permissionScope Read Products
|
|
1221
1243
|
*/
|
|
1222
1244
|
function queryProducts() {
|
|
1223
1245
|
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
@@ -1277,6 +1299,9 @@ exports.queryProducts = queryProducts;
|
|
|
1277
1299
|
* @public
|
|
1278
1300
|
* @documentationMaturity preview
|
|
1279
1301
|
* @requiredField _id
|
|
1302
|
+
* @permissionScope Manage Orders
|
|
1303
|
+
* @permissionScope Manage Products
|
|
1304
|
+
* @permissionScope Read Products
|
|
1280
1305
|
*/
|
|
1281
1306
|
function getProduct(_id, options) {
|
|
1282
1307
|
var _a, _b, _c;
|
|
@@ -1331,6 +1356,9 @@ exports.getProduct = getProduct;
|
|
|
1331
1356
|
* @param slug - Slug of the collection to retrieve.
|
|
1332
1357
|
* @public
|
|
1333
1358
|
* @requiredField slug
|
|
1359
|
+
* @permissionScope Manage Orders
|
|
1360
|
+
* @permissionScope Manage Products
|
|
1361
|
+
* @permissionScope Read Products
|
|
1334
1362
|
*/
|
|
1335
1363
|
function getCollectionBySlug(slug) {
|
|
1336
1364
|
var _a, _b, _c;
|
|
@@ -1383,6 +1411,9 @@ exports.getCollectionBySlug = getCollectionBySlug;
|
|
|
1383
1411
|
* @public
|
|
1384
1412
|
* @requiredField _id
|
|
1385
1413
|
* @requiredField options
|
|
1414
|
+
* @permissionScope Manage Orders
|
|
1415
|
+
* @permissionScope Manage Products
|
|
1416
|
+
* @permissionScope Read Products
|
|
1386
1417
|
*/
|
|
1387
1418
|
function getProductOptionsAvailability(_id, options) {
|
|
1388
1419
|
var _a, _b, _c;
|
|
@@ -1436,6 +1467,9 @@ exports.getProductOptionsAvailability = getProductOptionsAvailability;
|
|
|
1436
1467
|
* @public
|
|
1437
1468
|
* @documentationMaturity preview
|
|
1438
1469
|
* @requiredField _id
|
|
1470
|
+
* @permissionScope Manage Orders
|
|
1471
|
+
* @permissionScope Manage Products
|
|
1472
|
+
* @permissionScope Read Products
|
|
1439
1473
|
*/
|
|
1440
1474
|
function queryProductVariants(_id, options) {
|
|
1441
1475
|
var _a, _b, _c;
|
|
@@ -1494,6 +1528,9 @@ exports.queryProductVariants = queryProductVariants;
|
|
|
1494
1528
|
* @public
|
|
1495
1529
|
* @documentationMaturity preview
|
|
1496
1530
|
* @requiredField query
|
|
1531
|
+
* @permissionScope Manage Orders
|
|
1532
|
+
* @permissionScope Manage Products
|
|
1533
|
+
* @permissionScope Read Products
|
|
1497
1534
|
*/
|
|
1498
1535
|
function queryStoreVariants(query) {
|
|
1499
1536
|
var _a, _b, _c;
|
|
@@ -1545,6 +1582,9 @@ exports.queryStoreVariants = queryStoreVariants;
|
|
|
1545
1582
|
* @public
|
|
1546
1583
|
* @documentationMaturity preview
|
|
1547
1584
|
* @requiredField _id
|
|
1585
|
+
* @permissionScope Manage Orders
|
|
1586
|
+
* @permissionScope Manage Products
|
|
1587
|
+
* @permissionScope Read Products
|
|
1548
1588
|
*/
|
|
1549
1589
|
function getStoreVariant(_id) {
|
|
1550
1590
|
var _a, _b, _c;
|