@spiffcommerce/core 14.8.2-beta.0 → 14.9.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 +176 -167
- package/dist/module.js +173 -164
- package/dist/types.d.ts +8 -9
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1156,14 +1156,6 @@ declare class AssetService implements AssetManager {
|
|
|
1156
1156
|
* Allows for retrieving an asset, returns the option from a cache if possible.
|
|
1157
1157
|
*/
|
|
1158
1158
|
getLocalOrFromServer(assetKey: string): Promise<_Asset1>;
|
|
1159
|
-
/**
|
|
1160
|
-
* Caches an asset if it doesn't already exist.
|
|
1161
|
-
*/
|
|
1162
|
-
cacheAsset(asset: _Asset1): void;
|
|
1163
|
-
/**
|
|
1164
|
-
* Caches a material if it doesn't already exist.
|
|
1165
|
-
*/
|
|
1166
|
-
cacheMaterial(material: MaterialResource): void;
|
|
1167
1159
|
/**
|
|
1168
1160
|
* Allows for retrieving amaterial, returns the option from a cache if possible.
|
|
1169
1161
|
* @param id The option ID to be retrieved.
|
|
@@ -2272,7 +2264,7 @@ export class ObjectInput extends FlowExecutionInput {
|
|
|
2272
2264
|
export class TextInput extends FlowExecutionInput {
|
|
2273
2265
|
constructor(id: string);
|
|
2274
2266
|
}
|
|
2275
|
-
export const getWorkflow: (id: string) => Promise<_Workflow1>;
|
|
2267
|
+
export const getWorkflow: (id: string, options?: GetWorkflowGraphqlOptions) => Promise<_Workflow1>;
|
|
2276
2268
|
/**
|
|
2277
2269
|
* Options that can be used during instantiation of the SpiffCommerce Javascript Client.
|
|
2278
2270
|
* Please refer to the documentation for more information.
|
|
@@ -2290,11 +2282,18 @@ interface ClientOptions {
|
|
|
2290
2282
|
*/
|
|
2291
2283
|
applicationKey?: string;
|
|
2292
2284
|
}
|
|
2285
|
+
interface GetWorkflowGraphqlAssetsOptions {
|
|
2286
|
+
metadata?: boolean;
|
|
2287
|
+
}
|
|
2288
|
+
interface GetWorkflowGraphqlOptions {
|
|
2289
|
+
assets?: GetWorkflowGraphqlAssetsOptions;
|
|
2290
|
+
}
|
|
2293
2291
|
interface GetWorkflowOptionsBase {
|
|
2294
2292
|
/**
|
|
2295
2293
|
* An existing preview service to use, instead of creating a new one.
|
|
2296
2294
|
*/
|
|
2297
2295
|
previewService?: any;
|
|
2296
|
+
graphql?: GetWorkflowGraphqlOptions;
|
|
2298
2297
|
}
|
|
2299
2298
|
interface GetWorkflowFromTransactionOptions extends GetWorkflowOptionsBase {
|
|
2300
2299
|
/** The existing Transaction to use. */
|