@spiffcommerce/core 0.10.77 → 0.10.78

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
@@ -478,6 +478,7 @@ export interface WorkflowManager {
478
478
  getStepSpecificServices: (stepName: string) => StepSpecificServices | undefined;
479
479
  getStepStorage: (stepName: string) => _StepStorage1 | undefined;
480
480
  getMetadata: (stepName: string) => StepMetadata | undefined;
481
+ getWorkflowMetadata: () => WorkflowMetadata;
481
482
  getInformationResults(): InformationResult[];
482
483
  getTransaction: () => Transaction;
483
484
  getWorkflow: () => _Workflow1;
@@ -611,6 +612,10 @@ export interface Transaction {
611
612
  * Product that this transaction belongs to.
612
613
  */
613
614
  product?: Product;
615
+ /**
616
+ * The integration product related to this lineitem.
617
+ */
618
+ integrationProduct?: IntegrationProduct;
614
619
  /**
615
620
  * The line item corresponding to this transaction.
616
621
  */
@@ -641,6 +646,9 @@ export interface Transaction {
641
646
  bulkEmailAddress?: string;
642
647
  lastSyncedAt?: string;
643
648
  }
649
+ interface IntegrationProduct {
650
+ id: string;
651
+ }
644
652
  /**
645
653
  * Fields found in a variant within a line item resource.
646
654
  */
@@ -1209,6 +1217,10 @@ export const createDesign: (workflowManager: WorkflowManager, workflow: _Workflo
1209
1217
  * should get an instance of this class from a Client you have constructed previously.
1210
1218
  */
1211
1219
  export interface WorkflowExperience {
1220
+ /**
1221
+ * Returns the client that was responsible for spawning this experience.
1222
+ */
1223
+ getClient(): SpiffCommerceClient;
1212
1224
  /**
1213
1225
  * State related to the design of the user.
1214
1226
  */
@@ -1325,6 +1337,7 @@ export class MockWorkflowManager implements WorkflowManager {
1325
1337
  getCommandContext: () => _CommandContext1;
1326
1338
  getAllLayoutData: () => LayoutState[];
1327
1339
  getMetadata: (stepName: string) => StepMetadata | undefined;
1340
+ getWorkflowMetadata: () => WorkflowMetadata;
1328
1341
  getStepStorage: (stepName: string) => _StepStorage1 | undefined;
1329
1342
  getInformationResults(): InformationResult[];
1330
1343
  getVariationRecords(): VariationRecord[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.77",
3
+ "version": "0.10.78",
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",