@spiffcommerce/core 31.2.4 → 31.3.0

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/CHANGELOG.md CHANGED
@@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ ## [31.3.0] - 10-09-2025
18
+
19
+ ## Added
20
+
21
+ - The function `ProductCollection.fetchProductsFeed` now supports an additional metafield filters parameter for filtering via attached workflows.
22
+
17
23
  ## [31.2.4] - 04-09-2025
18
24
 
19
25
  ## Fixed
@@ -24,7 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
30
 
25
31
  ## Added
26
32
 
27
- - The `collectionId`field will now be available on the complete event.
33
+ - The `collectionId` field will now be available on the complete event.
28
34
 
29
35
  ## [31.2.2] - 01-09-2025
30
36
 
package/dist/index.d.ts CHANGED
@@ -1570,7 +1570,7 @@ interface BundleOptions {
1570
1570
  readonly?: boolean;
1571
1571
  }
1572
1572
 
1573
- interface ProductMetafieldFilter {
1573
+ interface MetafieldFilter {
1574
1574
  operator: "Equals" | "IsEmpty";
1575
1575
  invert?: boolean;
1576
1576
  metafieldConfigurationId: string;
@@ -1633,19 +1633,20 @@ declare class ProductCollection {
1633
1633
  * @param filters A list of metafield filters to apply.
1634
1634
  * @param tags An object of tag filters to apply.
1635
1635
  */
1636
- filterProducts(filters?: ProductMetafieldFilter[], tags?: ProductTagFilter, sortKey?: ProductCollectionProductSortKey, sortDescending?: boolean): Promise<CollectionProduct[]>;
1636
+ filterProducts(filters?: MetafieldFilter[], tags?: ProductTagFilter, sortKey?: ProductCollectionProductSortKey, sortDescending?: boolean): Promise<CollectionProduct[]>;
1637
1637
  /**
1638
1638
  * Fetches a paginated feed of products.
1639
1639
  * @param offset The zero-based start index.
1640
1640
  * @param limit The maximum number of products to return.
1641
- * @param filters Optional metafield filters to apply to the query.
1641
+ * @param productFilters Optional product metafields to filter the products by.
1642
1642
  * @param tags Optional object of tag filters to apply.
1643
1643
  * @param sortKey Optional field of the products to sort by.
1644
1644
  * @param sortDescending Optional boolean to indicate if the sort should be in descending order.
1645
1645
  * @param quickSearch Optional string to filter products by name.
1646
+ * @param workflowFilters Optional workflow metafields to filter the products and their workflows by.
1646
1647
  * @returns
1647
1648
  */
1648
- fetchProductsFeed(offset: number, limit: number, filters?: ProductMetafieldFilter[], tags?: ProductTagFilter, sortKey?: ProductCollectionProductSortKey, sortDescending?: boolean, quickSearch?: string): Promise<{
1649
+ fetchProductsFeed(offset: number, limit: number, productFilters?: MetafieldFilter[], tags?: ProductTagFilter, sortKey?: ProductCollectionProductSortKey, sortDescending?: boolean, quickSearch?: string, workflowFilters?: MetafieldFilter[]): Promise<{
1649
1650
  items: CollectionProduct[];
1650
1651
  total: number;
1651
1652
  }>;