@spiffcommerce/core 21.17.6 → 21.19.0-alpha.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 +14 -7
- package/dist/index.js +798 -759
- package/dist/index.umd.cjs +65 -50
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1744,23 +1744,23 @@ interface GetWorkflowFromTransactionOptions extends GetWorkflowOptionsBase {
|
|
|
1744
1744
|
workflowState?: string;
|
|
1745
1745
|
type: "transaction";
|
|
1746
1746
|
}
|
|
1747
|
-
interface
|
|
1747
|
+
interface GetNewWorkflowOptionsBase extends GetWorkflowOptionsBase {
|
|
1748
|
+
/** A name for the new transaction. */
|
|
1749
|
+
designName?: string;
|
|
1748
1750
|
/** The workflow to load. */
|
|
1749
1751
|
workflowId: string;
|
|
1750
|
-
integrationProductId: string;
|
|
1751
1752
|
/** An existing workflow state, if available. */
|
|
1752
1753
|
workflowState?: string;
|
|
1754
|
+
}
|
|
1755
|
+
interface GetWorkflowFromIntegrationProductOptions extends GetNewWorkflowOptionsBase {
|
|
1756
|
+
integrationProductId: string;
|
|
1753
1757
|
type: "integration";
|
|
1754
1758
|
}
|
|
1755
|
-
interface GetWorkflowFromExternalProductOptions extends
|
|
1756
|
-
/** The workflow to load. */
|
|
1757
|
-
workflowId: string;
|
|
1759
|
+
interface GetWorkflowFromExternalProductOptions extends GetNewWorkflowOptionsBase {
|
|
1758
1760
|
/** The external ID associated with an integration. */
|
|
1759
1761
|
externalIntegrationId: string;
|
|
1760
1762
|
/** The ID of the product from the external system. */
|
|
1761
1763
|
externalProductId: string;
|
|
1762
|
-
/** An existing workflow state, if available. */
|
|
1763
|
-
workflowState?: string;
|
|
1764
1764
|
type: "external";
|
|
1765
1765
|
}
|
|
1766
1766
|
type GetNewWorkflowOptions = GetWorkflowFromIntegrationProductOptions | GetWorkflowFromExternalProductOptions;
|
|
@@ -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[]>;
|