@spiffcommerce/core 14.8.1 → 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/types.d.ts CHANGED
@@ -2264,7 +2264,7 @@ export class ObjectInput extends FlowExecutionInput {
2264
2264
  export class TextInput extends FlowExecutionInput {
2265
2265
  constructor(id: string);
2266
2266
  }
2267
- export const getWorkflow: (id: string) => Promise<_Workflow1>;
2267
+ export const getWorkflow: (id: string, options?: GetWorkflowGraphqlOptions) => Promise<_Workflow1>;
2268
2268
  /**
2269
2269
  * Options that can be used during instantiation of the SpiffCommerce Javascript Client.
2270
2270
  * Please refer to the documentation for more information.
@@ -2282,11 +2282,18 @@ interface ClientOptions {
2282
2282
  */
2283
2283
  applicationKey?: string;
2284
2284
  }
2285
+ interface GetWorkflowGraphqlAssetsOptions {
2286
+ metadata?: boolean;
2287
+ }
2288
+ interface GetWorkflowGraphqlOptions {
2289
+ assets?: GetWorkflowGraphqlAssetsOptions;
2290
+ }
2285
2291
  interface GetWorkflowOptionsBase {
2286
2292
  /**
2287
2293
  * An existing preview service to use, instead of creating a new one.
2288
2294
  */
2289
2295
  previewService?: any;
2296
+ graphql?: GetWorkflowGraphqlOptions;
2290
2297
  }
2291
2298
  interface GetWorkflowFromTransactionOptions extends GetWorkflowOptionsBase {
2292
2299
  /** The existing Transaction to use. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "14.8.1",
3
+ "version": "14.9.0",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",