@spiffcommerce/core 1.1.0 → 1.2.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/types.d.ts CHANGED
@@ -492,11 +492,6 @@ export interface WorkflowManager {
492
492
  getWorkflowMetadata: () => WorkflowMetadata;
493
493
  getInformationResults(): InformationResult[];
494
494
  getTransaction: () => Transaction;
495
- getTransactionCustomer: () => Customer | undefined;
496
- setTransactionCustomer: (customer: Customer) => void;
497
- /**
498
- * @deprecated Use setTransactionCustomer instead.
499
- */
500
495
  setTransactionCustomerDetails: (details: {
501
496
  email: string;
502
497
  }) => void;
@@ -940,15 +935,8 @@ export enum ConversionLocation {
940
935
  /**
941
936
  * The data configured to be requested.
942
937
  */
943
- export enum ConversionDataType {
944
- Email = "Email",
945
- FirstName = "FirstName",
946
- LastName = "LastName",
947
- Phone = "Phone"
948
- }
949
- export interface ConversionData {
950
- type: ConversionDataType;
951
- mandatory: boolean;
938
+ export enum ConversionData {
939
+ Email = "Email"
952
940
  }
953
941
  /**
954
942
  * The configuration for conversion, exposed on products currently.
@@ -960,34 +948,6 @@ export interface ConversionConfiguration {
960
948
  requestedData: ConversionData[];
961
949
  mandatory?: boolean;
962
950
  }
963
- /**
964
- * Someone who has used a workflow experience and entered their contact details.
965
- */
966
- export interface Customer {
967
- id?: string;
968
- emailAddress: string;
969
- firstName?: string;
970
- lastName?: string;
971
- phoneNumber?: string;
972
- }
973
- export interface CustomerDetailsInput {
974
- emailAddress: string;
975
- firstName?: string;
976
- lastName?: string;
977
- phoneNumber?: string;
978
- }
979
- enum StakeholderType {
980
- Owner = "Owner",
981
- Approver = "Approver",
982
- Editor = "Editor",
983
- Viewer = "Viewer"
984
- }
985
- export interface Stakeholder {
986
- id: string;
987
- type?: StakeholderType;
988
- transaction?: Transaction;
989
- customer?: Customer;
990
- }
991
951
  interface StorageService {
992
952
  /**
993
953
  * Get a value.
@@ -1656,7 +1616,6 @@ export interface WorkflowExperience {
1656
1616
  * Attach specific details about the customer to the experience. This is useful for things like retargeting. Currently only
1657
1617
  * email is supported. From SpiffCommerce hosted experiences these details will be attached whenever the customer has provided & given permission.
1658
1618
  * @param details The new customer details. Only email is supported.
1659
- * @deprecated Use assignCustomerDetails instead.
1660
1619
  */
1661
1620
  attachCustomerDetails(details: {
1662
1621
  /**
@@ -1664,12 +1623,6 @@ export interface WorkflowExperience {
1664
1623
  */
1665
1624
  email: string;
1666
1625
  }): Promise<void>;
1667
- /**
1668
- * Attach specific details about the customer to the experience. This is useful for things like retargeting.
1669
- * From SpiffCommerce hosted experiences these details will be attached whenever the customer has provided & given permission.
1670
- * @param details The new customer details.
1671
- */
1672
- assignCustomerDetails(details: CustomerDetailsInput): Promise<void>;
1673
1626
  /**
1674
1627
  * Attaches a listener to the scenes on a workflow experience. The scenes returned are a subset of the scenes configured in the
1675
1628
  * workflow and are based on the current state of the experience. This is useful for building a navigation menu.
@@ -1809,8 +1762,6 @@ export class MockWorkflowManager implements WorkflowManager {
1809
1762
  getTransaction(): {
1810
1763
  id: string;
1811
1764
  };
1812
- getTransactionCustomer(): undefined;
1813
- setTransactionCustomer(): void;
1814
1765
  setTransactionCustomerDetails(): void;
1815
1766
  getWorkflow(): {
1816
1767
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",