@spiffcommerce/core 14.12.1 → 14.13.0-alpha.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 +481 -401
- package/dist/module.js +480 -400
- package/dist/types.d.ts +8 -0
- package/package.json +3 -1
package/dist/types.d.ts
CHANGED
|
@@ -2312,6 +2312,7 @@ export class ObjectInput extends FlowExecutionInput {
|
|
|
2312
2312
|
export class TextInput extends FlowExecutionInput {
|
|
2313
2313
|
constructor(id: string);
|
|
2314
2314
|
}
|
|
2315
|
+
export const getWorkflows: (ids: string[], options?: GetWorkflowGraphqlOptions) => Promise<_Workflow1[]>;
|
|
2315
2316
|
export const getWorkflow: (id: string, options?: GetWorkflowGraphqlOptions) => Promise<_Workflow1>;
|
|
2316
2317
|
/**
|
|
2317
2318
|
* Options that can be used during instantiation of the SpiffCommerce Javascript Client.
|
|
@@ -2458,6 +2459,13 @@ export class SpiffCommerceClient {
|
|
|
2458
2459
|
* @returns A workflow experience configured as requested.
|
|
2459
2460
|
*/
|
|
2460
2461
|
getWorkflowExperience(workflowId?: string, workflowState?: string, previewServiceConstructor?: (workflow: _Workflow1) => any, options?: GetWorkflowOptions): Promise<WorkflowExperience>;
|
|
2462
|
+
/**
|
|
2463
|
+
* Gets multiple workflow experiences at once.
|
|
2464
|
+
* @param optionsArray An array of options to configure loading the transactions and workflows.
|
|
2465
|
+
* NOTE: The `previewService` field on the option is currently unsupported in this function, as loading multiple models at once will likely cause performance issues.
|
|
2466
|
+
* @returns An array of workflow experiences configured as requested.
|
|
2467
|
+
*/
|
|
2468
|
+
getWorkflowExperiences(optionsArray: GetWorkflowOptions[]): Promise<WorkflowExperience[]>;
|
|
2461
2469
|
/**
|
|
2462
2470
|
* Initialize the client from an integration product.
|
|
2463
2471
|
* @param integrationProductId The integration product to use.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spiffcommerce/core",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.13.0-alpha.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",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@types/qrcode": "^1.3.5",
|
|
55
55
|
"@types/react": "^17.0.9",
|
|
56
56
|
"@types/react-dom": "^17.0.9",
|
|
57
|
+
"@types/react-syntax-highlighter": "^15.5.7",
|
|
57
58
|
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
58
59
|
"@typescript-eslint/parser": "^5.43.0",
|
|
59
60
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
"querystring-es3": "^0.2.1",
|
|
76
77
|
"react": "^17.0.2",
|
|
77
78
|
"react-dom": "^17.0.2",
|
|
79
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
78
80
|
"stream-browserify": "^3.0.0",
|
|
79
81
|
"stream-http": "^3.2.0",
|
|
80
82
|
"ts-jest": "^29.1.1",
|