@spiffcommerce/core 17.4.1-0 → 17.5.0-alpha.1

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,6 +1428,13 @@ 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
+ copySelections(experience: WorkflowExperience, filter?: StepHandle<AnyStepData>[]): any;
1431
1438
  /**
1432
1439
  * Attach specific details about the customer to the experience. This is useful for things like retargeting. Currently only
1433
1440
  * email is supported. From SpiffCommerce hosted experiences these details will be attached whenever the customer has provided & given permission.
@@ -1504,6 +1511,7 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
1504
1511
  getSelectionPriceSubunits(): number;
1505
1512
  getBasePriceSubunits(): number;
1506
1513
  getTotalPriceSubunits(): number;
1514
+ copySelections(experience: WorkflowExperience, filter?: StepHandle<AnyStepData>[]): void;
1507
1515
  getStepByName(name: string): TextStepHandle | FrameStepHandle | ShapeStepHandle | InformationStepHandle | IllustrationStepHandle | MaterialStepHandle | ModelStepHandle | PictureStepHandle | QuestionStepHandle | undefined;
1508
1516
  getStepsByType(type: StepType): StepHandle<AnyStepData>[];
1509
1517
  getStepsByScene(scene: Scene): StepHandle<AnyStepData>[];