@spiffcommerce/core 17.5.0-alpha.3 → 17.5.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
@@ -1428,13 +1428,6 @@ interface WorkflowExperience {
1428
1428
  * A convenience function returning the sum of the selection and base price values.
1429
1429
  */
1430
1430
  getTotalPriceSubunits(): number;
1431
- /**
1432
- * Takes selections made by the user in another workflow and applies them to this workflow. For
1433
- * selections to be copied they must both have a matching global property configuration.
1434
- * @param experience The experience to take selections from.
1435
- * @param filter A list of steps to apply the selections to. If undefined all steps will be updated.
1436
- */
1437
- copySelectionsViaGlobalConfiguration(bundle: Bundle, experience: WorkflowExperience, filter?: StepHandle<AnyStepData>[]): Promise<void>;
1438
1431
  /**
1439
1432
  * Attach specific details about the customer to the experience. This is useful for things like retargeting. Currently only
1440
1433
  * email is supported. From SpiffCommerce hosted experiences these details will be attached whenever the customer has provided & given permission.
@@ -1511,7 +1504,6 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
1511
1504
  getSelectionPriceSubunits(): number;
1512
1505
  getBasePriceSubunits(): number;
1513
1506
  getTotalPriceSubunits(): number;
1514
- copySelectionsViaGlobalConfiguration(bundle: Bundle, experience: WorkflowExperience, filter?: StepHandle<AnyStepData>[]): Promise<void>;
1515
1507
  getStepByName(name: string): TextStepHandle | FrameStepHandle | ShapeStepHandle | InformationStepHandle | IllustrationStepHandle | MaterialStepHandle | ModelStepHandle | PictureStepHandle | QuestionStepHandle | undefined;
1516
1508
  getStepsByType(type: StepType): StepHandle<AnyStepData>[];
1517
1509
  getStepsByScene(scene: Scene): StepHandle<AnyStepData>[];
@@ -2204,7 +2196,9 @@ declare class SpiffCommerceClient {
2204
2196
  * @param collectionId Optional: The id of the product collection that the bundle can use.
2205
2197
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
2206
2198
  */
2207
- getNewBundle(collectionId?: string): Promise<Bundle>;
2199
+ getNewBundle(collectionId?: string, initialMetadata?: {
2200
+ [key: string]: string;
2201
+ }): Promise<Bundle>;
2208
2202
  /**
2209
2203
  * Retrieves an existing bundle from the API, by id.
2210
2204
  * @param bundleId The id of the bundle to retrieve.