@spiffcommerce/core 22.1.5 → 22.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/index.d.ts +10 -0
- package/dist/index.js +658 -620
- package/dist/index.umd.cjs +121 -97
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2120,6 +2120,11 @@ interface WorkflowManager {
|
|
|
2120
2120
|
* The updated transactionShareActions overwrite the existing values on the Transaction object returned by `getTransaction()`.
|
|
2121
2121
|
*/
|
|
2122
2122
|
updateTransactionShareActions(): Promise<void>;
|
|
2123
|
+
/**
|
|
2124
|
+
* Re-fetches the stakeholders and currentStakeholder for this WorkflowManager's Transaction object.
|
|
2125
|
+
* The updated stakeholders and currentStakeholder overwrite the existing values on the Transaction object returned by `getTransaction()`.
|
|
2126
|
+
*/
|
|
2127
|
+
updateTransactionStakeholders(): Promise<void>;
|
|
2123
2128
|
}
|
|
2124
2129
|
|
|
2125
2130
|
interface StepService<T extends AnyStepData> {
|
|
@@ -2285,6 +2290,8 @@ interface Transaction {
|
|
|
2285
2290
|
* The users who have access to this transaction.
|
|
2286
2291
|
*/
|
|
2287
2292
|
stakeholders?: Stakeholder[];
|
|
2293
|
+
/** The stakeholder of the currently logged in user, if applicable. */
|
|
2294
|
+
currentStakeholder?: Stakeholder;
|
|
2288
2295
|
/**
|
|
2289
2296
|
* The amount of this transaction that was, or will be, ordered
|
|
2290
2297
|
*/
|
|
@@ -2308,6 +2315,8 @@ interface Transaction {
|
|
|
2308
2315
|
* A list of actions that have been associated to this transaction. To be used by the client to interact further post design.
|
|
2309
2316
|
*/
|
|
2310
2317
|
transactionShareActions?: TransactionShareAction[];
|
|
2318
|
+
/** Whether any share actions for this Transaction require the user to be authenticated as a stakeholder */
|
|
2319
|
+
hasAuthenticatedActions?: boolean;
|
|
2311
2320
|
}
|
|
2312
2321
|
interface TransactionShareAction {
|
|
2313
2322
|
id: string;
|
|
@@ -3126,6 +3135,7 @@ declare class MockWorkflowManager implements WorkflowManager {
|
|
|
3126
3135
|
getValidationErrors(): {
|
|
3127
3136
|
steps: Map<any, any>;
|
|
3128
3137
|
};
|
|
3138
|
+
updateTransactionStakeholders(): Promise<void>;
|
|
3129
3139
|
}
|
|
3130
3140
|
|
|
3131
3141
|
declare const generateCommands: (designInputSteps: DesignInputStep[], workflow: Workflow, layouts: ILayout[], productOverlayImageUrl?: string) => Promise<CanvasCommand[]>;
|