@spiffcommerce/core 14.8.2-beta.0 → 14.10.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/main.js +195 -171
- package/dist/module.js +195 -171
- package/dist/types.d.ts +30 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -2131,16 +2131,38 @@ export interface Bundle {
|
|
|
2131
2131
|
* @param experience The workflow experience to add to this bundle.
|
|
2132
2132
|
*/
|
|
2133
2133
|
addWorkflowExperience(experience: WorkflowExperience): Promise<void>;
|
|
2134
|
+
/**
|
|
2135
|
+
* Adds multiple workflow experiences to this bundle.
|
|
2136
|
+
* @param experiences The workflow experiences to add to this bundle.
|
|
2137
|
+
*/
|
|
2138
|
+
addWorkflowExperiences(experiences: WorkflowExperience[]): Promise<void>;
|
|
2134
2139
|
/**
|
|
2135
2140
|
* Remove a workflow experience from this bundle.
|
|
2136
2141
|
* @param experience The workflow experience to remove from this bundle.
|
|
2137
2142
|
*/
|
|
2138
2143
|
removeWorkflowExperience(experience: WorkflowExperience): Promise<void>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Removes multiple workflow experiences from this bundle.
|
|
2146
|
+
* @param experiences The workflow experiences to remove from this bundle.
|
|
2147
|
+
*/
|
|
2148
|
+
removeWorkflowExperiences(experiences: WorkflowExperience[]): Promise<void>;
|
|
2139
2149
|
/**
|
|
2140
2150
|
* Remove a workflow experience from this bundle by transaction.
|
|
2141
2151
|
* @param transaction The transaction to remove from this bundle.
|
|
2142
2152
|
*/
|
|
2143
2153
|
removeWorkflowExperienceByTransaction(transaction: Transaction): Promise<void>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Removes multiple workflow experiences from this bundle by their transactions.
|
|
2156
|
+
* @param transactions The transactions to remove from this bundle.
|
|
2157
|
+
*/
|
|
2158
|
+
removeWorkflowExperiencesByTransactions(transactions: Transaction[]): Promise<void>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Inserts the given workflow experience into the bundle at the given index.
|
|
2161
|
+
* NOTE: If you intend to insert a workflow experience at the end of the bundle, use `addWorkflowExperience` instead as it is more efficient.
|
|
2162
|
+
* @param experience The workflow experience to insert.
|
|
2163
|
+
* @param index The index to insert the workflow experience at.
|
|
2164
|
+
*/
|
|
2165
|
+
insertWorkflowExperience(experience: WorkflowExperience, index: number): Promise<void>;
|
|
2144
2166
|
/**
|
|
2145
2167
|
* Returns all workflow experiences currently added to this bundle.
|
|
2146
2168
|
*/
|
|
@@ -2272,7 +2294,7 @@ export class ObjectInput extends FlowExecutionInput {
|
|
|
2272
2294
|
export class TextInput extends FlowExecutionInput {
|
|
2273
2295
|
constructor(id: string);
|
|
2274
2296
|
}
|
|
2275
|
-
export const getWorkflow: (id: string) => Promise<_Workflow1>;
|
|
2297
|
+
export const getWorkflow: (id: string, options?: GetWorkflowGraphqlOptions) => Promise<_Workflow1>;
|
|
2276
2298
|
/**
|
|
2277
2299
|
* Options that can be used during instantiation of the SpiffCommerce Javascript Client.
|
|
2278
2300
|
* Please refer to the documentation for more information.
|
|
@@ -2290,11 +2312,18 @@ interface ClientOptions {
|
|
|
2290
2312
|
*/
|
|
2291
2313
|
applicationKey?: string;
|
|
2292
2314
|
}
|
|
2315
|
+
interface GetWorkflowGraphqlAssetsOptions {
|
|
2316
|
+
metadata?: boolean;
|
|
2317
|
+
}
|
|
2318
|
+
interface GetWorkflowGraphqlOptions {
|
|
2319
|
+
assets?: GetWorkflowGraphqlAssetsOptions;
|
|
2320
|
+
}
|
|
2293
2321
|
interface GetWorkflowOptionsBase {
|
|
2294
2322
|
/**
|
|
2295
2323
|
* An existing preview service to use, instead of creating a new one.
|
|
2296
2324
|
*/
|
|
2297
2325
|
previewService?: any;
|
|
2326
|
+
graphql?: GetWorkflowGraphqlOptions;
|
|
2298
2327
|
}
|
|
2299
2328
|
interface GetWorkflowFromTransactionOptions extends GetWorkflowOptionsBase {
|
|
2300
2329
|
/** The existing Transaction to use. */
|