@spiffcommerce/core 16.0.3-0 → 16.1.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/dist/index.d.ts CHANGED
@@ -943,9 +943,17 @@ type ProductCollectionResource = {
943
943
  id: string;
944
944
  globalPropertyConfiguration?: GlobalPropertyConfiguration;
945
945
  name: string;
946
- products: Product[];
946
+ productCollectionProducts: ProductCollectionProductResource[];
947
947
  transformCollection?: TransformCollection;
948
948
  };
949
+ type ProductCollectionProductResource = {
950
+ id: string;
951
+ productCollection?: ProductCollectionResource;
952
+ productCollectionId?: string;
953
+ product: Product;
954
+ productId: string;
955
+ workflowId?: string;
956
+ };
949
957
  type GlobalPropertyState = {
950
958
  id: string;
951
959
  aspects: GlobalPropertyStateAspect[];
@@ -1570,7 +1578,8 @@ declare class ProductCollection {
1570
1578
  */
1571
1579
  declare class CollectionProduct {
1572
1580
  private readonly product;
1573
- constructor(product: Product);
1581
+ private readonly productResource;
1582
+ constructor(productCollectionProduct: ProductCollectionProductResource);
1574
1583
  /**
1575
1584
  * The ID of the product in SpiffCommerce.
1576
1585
  * @returns
@@ -1995,13 +2004,6 @@ interface ClientOptions {
1995
2004
  * authenticate with the SpiffCommerce API.
1996
2005
  */
1997
2006
  applicationKey?: string;
1998
- /**
1999
- * When set to true, the client will instantiate a service for tracking internal errors. This allows
2000
- * us to track errors that occur within the client, and improve the experience for our users.
2001
- *
2002
- * NOTE: True by default, you may disable if you have privacy requirements.
2003
- */
2004
- internalAnalytics?: boolean;
2005
2007
  }
2006
2008
  interface GetWorkflowGraphqlAssetsOptions {
2007
2009
  metadata?: boolean;