@spiffcommerce/core 21.17.6-2 → 21.18.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
@@ -1927,6 +1927,7 @@ declare class SpiffCommerceClient {
1927
1927
  externalIntegrationId: string;
1928
1928
  externalProductId: string;
1929
1929
  }>): Promise<IntegrationProduct>;
1930
+ getShareActionsForTransaction(transactionId: string): Promise<TransactionShareAction[] | undefined>;
1930
1931
  }
1931
1932
 
1932
1933
  interface SilentIllustrationStepData extends SilentStepData, Placeable {
@@ -2076,6 +2077,11 @@ interface WorkflowManager {
2076
2077
  * Returns the client that was responsible for spawning this manager.
2077
2078
  */
2078
2079
  getClient(): SpiffCommerceClient;
2080
+ /**
2081
+ * Re-fetches the transactionShareActions for this WorkflowManager's Transaction object.
2082
+ * The updated transactionShareActions overwrite the existing values on the Transaction object returned by `getTransaction()`.
2083
+ */
2084
+ updateTransactionShareActions(): Promise<void>;
2079
2085
  }
2080
2086
 
2081
2087
  interface StepService<T extends AnyStepData> {
@@ -3055,6 +3061,7 @@ declare class MockWorkflowManager implements WorkflowManager {
3055
3061
  injectIntoPreviewService(_previewService: any): Promise<void>;
3056
3062
  ejectFromPreviewService(): void;
3057
3063
  setWorkflowStateSyncEnabled(_enabled: boolean): void;
3064
+ updateTransactionShareActions(): Promise<void>;
3058
3065
  }
3059
3066
 
3060
3067
  declare const generateCommands: (designInputSteps: DesignInputStep[], workflow: Workflow, layouts: ILayout[], productOverlayImageUrl?: string) => Promise<CanvasCommand[]>;