@ldsg/forms 0.2.11 → 0.2.12

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/resource.js CHANGED
@@ -59,17 +59,17 @@ class FormsResource extends resource_1.Resource {
59
59
  const formInfo = formInfoList.find((formInfo) => {
60
60
  return formInfo.id === formId;
61
61
  });
62
- const startNodeInputVariables = {
62
+ const variables = {
63
63
  args: req.body,
64
64
  };
65
65
  if (!formInfo) {
66
66
  throw new Error("invalid form");
67
67
  }
68
- const executeRes = await formInfo.workflowInfo.execute({
69
- startNodeInputVariables,
68
+ const workflowExecuteRes = await formInfo.workflowInfo.execute({
69
+ variables,
70
70
  });
71
- const data = executeRes === null || executeRes === void 0 ? void 0 : executeRes.endNodeOutputVariables;
72
- res.json(data);
71
+ const workflowOutputVariables = workflowExecuteRes === null || workflowExecuteRes === void 0 ? void 0 : workflowExecuteRes.variables;
72
+ res.json(workflowOutputVariables);
73
73
  });
74
74
  };
75
75
  this.modifyGraphQLSchema = (params) => {
@@ -21,10 +21,10 @@ const getNewFields = (params) => {
21
21
  args: inputITC.getFields(),
22
22
  resolve: async (resolveParams) => {
23
23
  const { args } = resolveParams;
24
- const { endNodeOutputVariables } = await workflowInfo.execute({
25
- startNodeInputVariables: args,
24
+ const { variables: res } = await workflowInfo.execute({
25
+ variables: args,
26
26
  });
27
- return endNodeOutputVariables;
27
+ return res;
28
28
  },
29
29
  };
30
30
  const fieldResolver = schemaComposer.createResolver(resolverDefinition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/forms",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "lodash": "^4.17.21",
18
- "@ldsg/handler": "0.2.11",
19
- "@ldsg/resource-definition": "0.2.11",
20
- "@ldsg/resource": "0.2.11"
18
+ "@ldsg/handler": "0.2.12",
19
+ "@ldsg/resource-definition": "0.2.12",
20
+ "@ldsg/resource": "0.2.12"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/lodash": "^4.14.202",
@@ -25,13 +25,13 @@
25
25
  "graphql": "16.11.0",
26
26
  "graphql-compose": "^9.1.0",
27
27
  "supertest": "^6.3.4",
28
- "@ldsg/graphql": "0.2.11",
29
- "@ldsg/application": "0.2.11",
30
- "@ldsg/object": "0.2.11",
31
- "@ldsg/field-type": "0.2.11",
32
- "@ldsg/object-field": "0.2.11",
33
- "@ldsg/types": "0.2.11",
34
- "@ldsg/workflow": "0.2.11"
28
+ "@ldsg/field-type": "0.2.12",
29
+ "@ldsg/application": "0.2.12",
30
+ "@ldsg/object": "0.2.12",
31
+ "@ldsg/graphql": "0.2.12",
32
+ "@ldsg/object-field": "0.2.12",
33
+ "@ldsg/types": "0.2.12",
34
+ "@ldsg/workflow": "0.2.12"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsc --project tsconfig.build.json",