@spiffcommerce/core 31.0.0 → 31.1.0-beta.c5afa5d3-4b53-5432-9ee2-0dbc6dca6200

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,18 @@ 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
+ ## [30.2.0] - 01-09-2025
18
+
19
+ ## Added
20
+
21
+ - The `getOrCreateCustomer` call will fetch an existing customer's product collection customers.
22
+
23
+ ## [31.1.0] - 01-09-2025
24
+
25
+ ## Added
26
+
27
+ - The function `ProductCollection.fetchProductsFeed` now supports an additional string parameter to further filter the returned products by name.
28
+
17
29
  ## [31.0.0] - 29-08-2025
18
30
 
19
31
  ## Added
package/dist/index.d.ts CHANGED
@@ -1640,9 +1640,12 @@ declare class ProductCollection {
1640
1640
  * @param limit The maximum number of products to return.
1641
1641
  * @param filters Optional metafield filters to apply to the query.
1642
1642
  * @param tags Optional object of tag filters to apply.
1643
+ * @param sortKey Optional field of the products to sort by.
1644
+ * @param sortDescending Optional boolean to indicate if the sort should be in descending order.
1645
+ * @param quickSearch Optional string to filter products by name.
1643
1646
  * @returns
1644
1647
  */
1645
- fetchProductsFeed(offset: number, limit: number, filters?: ProductMetafieldFilter[], tags?: ProductTagFilter, sortKey?: ProductCollectionProductSortKey, sortDescending?: boolean): Promise<{
1648
+ fetchProductsFeed(offset: number, limit: number, filters?: ProductMetafieldFilter[], tags?: ProductTagFilter, sortKey?: ProductCollectionProductSortKey, sortDescending?: boolean, quickSearch?: string): Promise<{
1646
1649
  items: CollectionProduct[];
1647
1650
  total: number;
1648
1651
  }>;
@@ -4140,6 +4143,7 @@ interface Customer {
4140
4143
  stakeholders?: Stakeholder[];
4141
4144
  bundleStakeholders?: BundleStakeholder[];
4142
4145
  hasBundleTemplates?: boolean;
4146
+ productCollectionCustomers?: ProductCollectionCustomer[];
4143
4147
  }
4144
4148
  interface CustomerDetailsInput {
4145
4149
  emailAddress: string;
@@ -4230,6 +4234,7 @@ type ProductCollectionResource = {
4230
4234
  dispatchEndDate?: string;
4231
4235
  image?: Asset;
4232
4236
  transformCollection?: TransformCollection;
4237
+ productCollectionCustomers?: ProductCollectionCustomer[];
4233
4238
  };
4234
4239
  type ProductCollectionProductResource = {
4235
4240
  id: string;
@@ -4243,6 +4248,16 @@ type ProductCollectionProductsFeedResource = {
4243
4248
  items: ProductCollectionProductResource[];
4244
4249
  total: number;
4245
4250
  };
4251
+ interface ProductCollectionCustomer {
4252
+ id: string;
4253
+ customer: Customer;
4254
+ productCollection: ProductCollectionResource;
4255
+ }
4256
+ interface ProductCollectionCustomer {
4257
+ id: string;
4258
+ customer: Customer;
4259
+ productCollection: ProductCollectionResource;
4260
+ }
4246
4261
  type GlobalPropertyState = {
4247
4262
  id: string;
4248
4263
  aspects: GlobalPropertyStateAspect[];