@spiffcommerce/core 25.1.1 → 25.1.3
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/dist/index.d.ts +11 -0
- package/dist/index.js +56 -44
- package/dist/index.mjs +1593 -1557
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1504,6 +1504,12 @@ interface BundleOptions {
|
|
|
1504
1504
|
bundleOwnerId?: string;
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
+
interface ProductMetafieldFilter {
|
|
1508
|
+
operator: "Equals" | "IsEmpty";
|
|
1509
|
+
invert?: boolean;
|
|
1510
|
+
metafieldConfigurationId: string;
|
|
1511
|
+
value?: string;
|
|
1512
|
+
}
|
|
1507
1513
|
/**
|
|
1508
1514
|
* A collection of products that can be used to form a bundle.
|
|
1509
1515
|
*/
|
|
@@ -1535,6 +1541,11 @@ declare class ProductCollection {
|
|
|
1535
1541
|
* A list of products in this collections with useful helpers for interacting with them.
|
|
1536
1542
|
*/
|
|
1537
1543
|
fetchProducts(productIds?: string[]): Promise<CollectionProduct[]>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Returns a list of collections products matching the associated metafield filters.
|
|
1546
|
+
* @param filters A list of filters to apply.
|
|
1547
|
+
*/
|
|
1548
|
+
filterProducts(filters: ProductMetafieldFilter[]): Promise<CollectionProduct[]>;
|
|
1538
1549
|
getTransformCollection(): TransformCollection$1 | undefined;
|
|
1539
1550
|
/**
|
|
1540
1551
|
* The raw collection resource. This is generally not needed and should be avoided.
|