@ldsg/forms 0.2.12 → 0.3.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/resource.d.ts.map +1 -1
- package/dist/resource.js +3 -6
- package/package.json +11 -11
package/dist/resource.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI1C,OAAO,EAAE,QAAQ,EAAE,6BAA6B,EAAe,MAAM,SAAS,CAAC;AAG/E,UAAU,kBAAkB;IAC1B;;OAEG;IACH,YAAY,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,KAAK,eAAe,GAAG,CAAC,MAAM,CAAC,EAAE,eAAe,KAAK,kBAAkB,CAAC;AAExE,qBAAa,aAAc,SAAQ,QAAQ,CAAC,6BAA6B,CAAC;IACxE,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAE1B,eAAe,EAAE,eAAe,CA4B9B;IAEF,gBAAgB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI1C,OAAO,EAAE,QAAQ,EAAE,6BAA6B,EAAe,MAAM,SAAS,CAAC;AAG/E,UAAU,kBAAkB;IAC1B;;OAEG;IACH,YAAY,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,KAAK,eAAe,GAAG,CAAC,MAAM,CAAC,EAAE,eAAe,KAAK,kBAAkB,CAAC;AAExE,qBAAa,aAAc,SAAQ,QAAQ,CAAC,6BAA6B,CAAC;IACxE,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAE1B,eAAe,EAAE,eAAe,CA4B9B;IAEF,gBAAgB,EAAE,gBAAgB,CAkDhC;IAEF,mBAAmB,EAAE,mBAAmB,CAetC;CACH"}
|
package/dist/resource.js
CHANGED
|
@@ -59,16 +59,13 @@ class FormsResource extends resource_1.Resource {
|
|
|
59
59
|
const formInfo = formInfoList.find((formInfo) => {
|
|
60
60
|
return formInfo.id === formId;
|
|
61
61
|
});
|
|
62
|
-
const variables = {
|
|
63
|
-
args: req.body,
|
|
64
|
-
};
|
|
65
62
|
if (!formInfo) {
|
|
66
63
|
throw new Error("invalid form");
|
|
67
64
|
}
|
|
68
|
-
const
|
|
69
|
-
|
|
65
|
+
const workflowInputVariables = req.body;
|
|
66
|
+
const { variables: workflowOutputVariables } = await formInfo.workflowInfo.execute({
|
|
67
|
+
variables: workflowInputVariables,
|
|
70
68
|
});
|
|
71
|
-
const workflowOutputVariables = workflowExecuteRes === null || workflowExecuteRes === void 0 ? void 0 : workflowExecuteRes.variables;
|
|
72
69
|
res.json(workflowOutputVariables);
|
|
73
70
|
});
|
|
74
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/forms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
19
|
-
"@ldsg/resource
|
|
20
|
-
"@ldsg/resource": "0.
|
|
18
|
+
"@ldsg/handler": "0.3.0",
|
|
19
|
+
"@ldsg/resource": "0.3.0",
|
|
20
|
+
"@ldsg/resource-definition": "0.3.0"
|
|
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/
|
|
29
|
-
"@ldsg/
|
|
30
|
-
"@ldsg/
|
|
31
|
-
"@ldsg/
|
|
32
|
-
"@ldsg/object-field": "0.
|
|
33
|
-
"@ldsg/types": "0.
|
|
34
|
-
"@ldsg/workflow": "0.
|
|
28
|
+
"@ldsg/application": "0.3.0",
|
|
29
|
+
"@ldsg/field-type": "0.3.0",
|
|
30
|
+
"@ldsg/graphql": "0.3.0",
|
|
31
|
+
"@ldsg/object": "0.3.0",
|
|
32
|
+
"@ldsg/object-field": "0.3.0",
|
|
33
|
+
"@ldsg/types": "0.3.0",
|
|
34
|
+
"@ldsg/workflow": "0.3.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc --project tsconfig.build.json",
|