@spiffcommerce/core 0.10.41 → 0.10.43
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/main.js +2 -2
- package/dist/module.js +1 -1
- package/dist/types.d.ts +10 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -469,7 +469,14 @@ export interface WorkflowManager {
|
|
|
469
469
|
getTransaction: () => Transaction;
|
|
470
470
|
getWorkflow: () => _Workflow1;
|
|
471
471
|
getWorkflowSelections: () => WorkflowSelections;
|
|
472
|
-
|
|
472
|
+
/**
|
|
473
|
+
* A promise resolving when the initial state of the workflow has completed loading.
|
|
474
|
+
*/
|
|
475
|
+
getInitializationPromise: () => Promise<void>;
|
|
476
|
+
/**
|
|
477
|
+
* Returns true when the initial state of the workflow has been loaded and settled.
|
|
478
|
+
*/
|
|
479
|
+
isInitialized(): boolean;
|
|
473
480
|
markStepsAsInitialised: (stepNames: string[]) => void;
|
|
474
481
|
getUpdatesPending: () => boolean;
|
|
475
482
|
markUpdateCompleted: (id: string) => void;
|
|
@@ -1297,7 +1304,8 @@ export class Client {
|
|
|
1297
1304
|
getTransaction(): Transaction;
|
|
1298
1305
|
}
|
|
1299
1306
|
export class MockWorkflowManager implements WorkflowManager {
|
|
1300
|
-
|
|
1307
|
+
getInitializationPromise(): Promise<void>;
|
|
1308
|
+
isInitialized(): boolean;
|
|
1301
1309
|
getCommandContext: () => _CommandContext1;
|
|
1302
1310
|
getAllLayoutData: () => LayoutState[];
|
|
1303
1311
|
getMetadata: (stepName: string) => StepMetadata | undefined;
|