@spiffcommerce/core 19.3.0-alpha.4 → 19.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/dist/index.d.ts CHANGED
@@ -995,8 +995,8 @@ interface BundleStakeholderInput {
995
995
  type ProductCollectionResource = {
996
996
  id: string;
997
997
  globalPropertyConfiguration?: GlobalPropertyConfiguration;
998
- productCollectionProducts?: ProductCollectionProductResource[];
999
998
  name: string;
999
+ productCollectionProducts: ProductCollectionProductResource[];
1000
1000
  transformCollection?: TransformCollection$1;
1001
1001
  };
1002
1002
  type ProductCollectionProductResource = {
@@ -1638,7 +1638,7 @@ declare class ProductCollection {
1638
1638
  /**
1639
1639
  * A list of products in this collections with useful helpers for interacting with them.
1640
1640
  */
1641
- getProducts(): Promise<CollectionProduct[]>;
1641
+ getProducts(): CollectionProduct[];
1642
1642
  getTransformCollection(): TransformCollection | undefined;
1643
1643
  /**
1644
1644
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -1798,6 +1798,10 @@ interface Bundle {
1798
1798
  * @returns A promise that resolves when the name and metadata have been updated in the Spiff Commerce system.
1799
1799
  */
1800
1800
  setNameAndMetadata(name: string, metadata: Map<string, string>): Promise<void>;
1801
+ /**
1802
+ * Returns true when the bundle contains products that share global properties.
1803
+ */
1804
+ hasGlobalProperties(): boolean;
1801
1805
  /**
1802
1806
  * Get a handle to the global properties available within this bundle. Setting values
1803
1807
  * via this method will make selections on all bundles that share the property.