@spiffcommerce/core 25.0.8 → 25.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
@@ -1492,7 +1492,15 @@ interface BundleOptions {
1492
1492
  additionalHeaders?: {
1493
1493
  [key: string]: string;
1494
1494
  };
1495
+ /**
1496
+ * If set to true, the products associated with the bundle will be eagerly fetched.
1497
+ */
1495
1498
  eagerFetchProducts?: boolean;
1499
+ /**
1500
+ * If set to true, a new global state will be created. Typically for use when we
1501
+ * know the bundle is new and we want to skip the existing state check.
1502
+ */
1503
+ createNewGlobalState?: boolean;
1496
1504
  }
1497
1505
 
1498
1506
  /**
@@ -2214,6 +2222,7 @@ declare class SpiffCommerceClient {
2214
2222
  }>;
2215
2223
  clearCustomer(): void;
2216
2224
  clearCustomerForTransaction(transactionId: string): void;
2225
+ customerHasBundleTemplates(emailAddress: string): Promise<boolean>;
2217
2226
  getStakeholderTypeForTransaction(transactionId: string): StakeholderType | undefined;
2218
2227
  getOrCreateCustomer(emailAddress: string): Promise<{
2219
2228
  customer: Customer;
@@ -3885,6 +3894,7 @@ interface Customer {
3885
3894
  partner?: Partner;
3886
3895
  stakeholders?: Stakeholder[];
3887
3896
  bundleStakeholders?: BundleStakeholder[];
3897
+ hasBundleTemplates?: boolean;
3888
3898
  }
3889
3899
  interface CustomerDetailsInput {
3890
3900
  emailAddress: string;