@cyberismo/backend 0.0.8 → 0.0.10
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/app.js +22 -8
- package/dist/app.js.map +1 -1
- package/dist/common/validationSchemas.js +39 -0
- package/dist/common/validationSchemas.js.map +1 -0
- package/dist/domain/calculations/index.js +102 -0
- package/dist/domain/calculations/index.js.map +1 -0
- package/dist/domain/calculations/schema.js +24 -0
- package/dist/domain/calculations/schema.js.map +1 -0
- package/dist/domain/calculations/service.js +21 -0
- package/dist/domain/calculations/service.js.map +1 -0
- package/dist/domain/cardTypes/index.js +86 -0
- package/dist/domain/cardTypes/index.js.map +1 -0
- package/dist/domain/cardTypes/schema.js +19 -0
- package/dist/domain/cardTypes/schema.js.map +1 -0
- package/dist/domain/cardTypes/service.js +20 -0
- package/dist/domain/cardTypes/service.js.map +1 -0
- package/dist/{routes/cards.js → domain/cards/index.js} +52 -223
- package/dist/domain/cards/index.js.map +1 -0
- package/dist/domain/cards/lib.js +80 -0
- package/dist/domain/cards/lib.js.map +1 -0
- package/dist/domain/cards/service.js +178 -0
- package/dist/domain/cards/service.js.map +1 -0
- package/dist/domain/fieldTypes/index.js +87 -0
- package/dist/domain/fieldTypes/index.js.map +1 -0
- package/dist/domain/fieldTypes/schema.js +30 -0
- package/dist/domain/fieldTypes/schema.js.map +1 -0
- package/dist/domain/fieldTypes/service.js +24 -0
- package/dist/domain/fieldTypes/service.js.map +1 -0
- package/dist/domain/graphModels/index.js +50 -0
- package/dist/domain/graphModels/index.js.map +1 -0
- package/dist/domain/graphModels/schema.js +18 -0
- package/dist/domain/graphModels/schema.js.map +1 -0
- package/dist/domain/graphModels/service.js +16 -0
- package/dist/domain/graphModels/service.js.map +1 -0
- package/dist/domain/graphViews/index.js +50 -0
- package/dist/domain/graphViews/index.js.map +1 -0
- package/dist/domain/graphViews/schema.js +6 -0
- package/dist/domain/graphViews/schema.js.map +1 -0
- package/dist/domain/graphViews/service.js +16 -0
- package/dist/domain/graphViews/service.js.map +1 -0
- package/dist/domain/linkTypes/index.js +76 -0
- package/dist/domain/linkTypes/index.js.map +1 -0
- package/dist/domain/linkTypes/schema.js +18 -0
- package/dist/domain/linkTypes/schema.js.map +1 -0
- package/dist/domain/linkTypes/service.js +24 -0
- package/dist/domain/linkTypes/service.js.map +1 -0
- package/dist/domain/logicPrograms/index.js +25 -0
- package/dist/domain/logicPrograms/index.js.map +1 -0
- package/dist/domain/logicPrograms/service.js +9 -0
- package/dist/domain/logicPrograms/service.js.map +1 -0
- package/dist/domain/reports/index.js +50 -0
- package/dist/domain/reports/index.js.map +1 -0
- package/dist/domain/reports/schema.js +18 -0
- package/dist/domain/reports/schema.js.map +1 -0
- package/dist/domain/reports/service.js +16 -0
- package/dist/domain/reports/service.js.map +1 -0
- package/dist/domain/resources/index.js +128 -0
- package/dist/domain/resources/index.js.map +1 -0
- package/dist/domain/resources/schema.js +9 -0
- package/dist/domain/resources/schema.js.map +1 -0
- package/dist/domain/resources/service.js +258 -0
- package/dist/domain/resources/service.js.map +1 -0
- package/dist/domain/templates/index.js +81 -0
- package/dist/domain/templates/index.js.map +1 -0
- package/dist/domain/templates/schema.js +18 -0
- package/dist/domain/templates/schema.js.map +1 -0
- package/dist/domain/templates/service.js +23 -0
- package/dist/domain/templates/service.js.map +1 -0
- package/dist/domain/tree/index.js +44 -0
- package/dist/domain/tree/index.js.map +1 -0
- package/dist/domain/tree/service.js +17 -0
- package/dist/domain/tree/service.js.map +1 -0
- package/dist/domain/workflows/index.js +50 -0
- package/dist/domain/workflows/index.js.map +1 -0
- package/dist/domain/workflows/schema.js +18 -0
- package/dist/domain/workflows/schema.js.map +1 -0
- package/dist/domain/workflows/service.js +16 -0
- package/dist/domain/workflows/service.js.map +1 -0
- package/dist/export.js +3 -3
- package/dist/export.js.map +1 -1
- package/dist/middleware/zvalidator.js +8 -0
- package/dist/middleware/zvalidator.js.map +1 -0
- package/dist/public/THIRD-PARTY.txt +2452 -296
- package/dist/public/assets/index-jhDO7xT5.js +161493 -0
- package/dist/public/cropped-favicon-180x180.png +0 -0
- package/dist/public/cropped-favicon-192x192.png +0 -0
- package/dist/public/cropped-favicon-270x270.png +0 -0
- package/dist/public/cropped-favicon-32x32.png +0 -0
- package/dist/public/index.html +8 -1
- package/dist/types.js +14 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.js +3 -1
- package/dist/utils.js.map +1 -1
- package/package.json +7 -3
- package/src/app.ts +22 -8
- package/src/common/validationSchemas.ts +46 -0
- package/src/domain/calculations/index.ts +121 -0
- package/src/domain/calculations/schema.ts +27 -0
- package/src/domain/calculations/service.ts +32 -0
- package/src/domain/cardTypes/index.ts +96 -0
- package/src/domain/cardTypes/schema.ts +19 -0
- package/src/domain/cardTypes/service.ts +28 -0
- package/src/{routes/cards.ts → domain/cards/index.ts} +82 -270
- package/src/domain/cards/lib.ts +103 -0
- package/src/domain/cards/service.ts +254 -0
- package/src/domain/fieldTypes/index.ts +97 -0
- package/src/domain/fieldTypes/schema.ts +30 -0
- package/src/domain/fieldTypes/service.ts +38 -0
- package/src/domain/graphModels/index.ts +54 -0
- package/src/domain/graphModels/schema.ts +18 -0
- package/src/domain/graphModels/service.ts +21 -0
- package/src/domain/graphViews/index.ts +53 -0
- package/src/domain/graphViews/schema.ts +6 -0
- package/src/domain/graphViews/service.ts +20 -0
- package/src/domain/linkTypes/index.ts +84 -0
- package/src/domain/linkTypes/schema.ts +19 -0
- package/src/domain/linkTypes/service.ts +34 -0
- package/src/domain/logicPrograms/index.ts +35 -0
- package/src/domain/logicPrograms/service.ts +25 -0
- package/src/domain/reports/index.ts +54 -0
- package/src/domain/reports/schema.ts +19 -0
- package/src/domain/reports/service.ts +21 -0
- package/src/domain/resources/index.ts +166 -0
- package/src/domain/resources/schema.ts +19 -0
- package/src/domain/resources/service.ts +436 -0
- package/src/domain/templates/index.ts +89 -0
- package/src/domain/templates/schema.ts +19 -0
- package/src/domain/templates/service.ts +29 -0
- package/src/domain/tree/index.ts +50 -0
- package/src/domain/tree/service.ts +22 -0
- package/src/domain/workflows/index.ts +54 -0
- package/src/domain/workflows/schema.ts +19 -0
- package/src/domain/workflows/service.ts +21 -0
- package/src/export.ts +9 -5
- package/src/middleware/commandManager.ts +1 -1
- package/src/middleware/zvalidator.ts +17 -0
- package/src/types.ts +20 -0
- package/src/utils.ts +4 -2
- package/dist/public/assets/index-D5kiRHuF.js +0 -111171
- package/dist/routes/cards.js.map +0 -1
- package/dist/routes/fieldTypes.js +0 -42
- package/dist/routes/fieldTypes.js.map +0 -1
- package/dist/routes/linkTypes.js +0 -42
- package/dist/routes/linkTypes.js.map +0 -1
- package/dist/routes/templates.js +0 -46
- package/dist/routes/templates.js.map +0 -1
- package/dist/routes/tree.js +0 -40
- package/dist/routes/tree.js.map +0 -1
- package/src/routes/fieldTypes.ts +0 -53
- package/src/routes/linkTypes.ts +0 -53
- package/src/routes/templates.ts +0 -52
- package/src/routes/tree.ts +0 -45
package/dist/routes/cards.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.js","sourceRoot":"","sources":["../../src/routes/cards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAEL,YAAY,GAGb,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAkB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3E,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;AAE1B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC1B,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;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,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACnC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IAC1C,MAAM,QAAQ,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;IAEvC,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO,CAAC,CAAC,IAAI,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,cAAc,CAC9D,GAAG,EACH,QAAQ,CACT,CAAC;QAEF,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACxB,OAAO,CAAC,CAAC,IAAI,CACX,iCAAiC,GAAG,iBAAiB,QAAQ,EAAE,EAC/D,GAAG,CACJ,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,kBAAyB,CAAC;QAE1C,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,UAAU,EAAE;YACtC,OAAO,EAAE;gBACP,cAAc,EAAE,OAAO,CAAC,QAAQ;gBAChC,qBAAqB,EAAE,yBAAyB,QAAQ,GAAG;gBAC3D,eAAe,EAAE,UAAU;aAC5B;SACF,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,CAAC,IAAI,CACX;YACE,KAAK,EAAE,iCAAiC,GAAG,iBAAiB,QAAQ,EAAE;SACvE,EACD,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
import { Hono } from 'hono';
|
|
13
|
-
const router = new Hono();
|
|
14
|
-
/**
|
|
15
|
-
* @swagger
|
|
16
|
-
* /api/fieldTypes:
|
|
17
|
-
* get:
|
|
18
|
-
* summary: Returns a list of all field types in the defined project.
|
|
19
|
-
* description: List of field types includes all field types in the project with all their details
|
|
20
|
-
* responses:
|
|
21
|
-
* 200:
|
|
22
|
-
* description: Object containing the project field types. See definitions.ts/FieldTypes for the structure.
|
|
23
|
-
* 400:
|
|
24
|
-
* description: Error in reading project details.
|
|
25
|
-
* 500:
|
|
26
|
-
* description: project_path not set or other internal error
|
|
27
|
-
*/
|
|
28
|
-
router.get('/', async (c) => {
|
|
29
|
-
const commands = c.get('commands');
|
|
30
|
-
const response = await commands.showCmd.showResources('fieldTypes');
|
|
31
|
-
if (response) {
|
|
32
|
-
const fieldTypes = await Promise.all(response.map((fieldType) => commands.showCmd.showResource(fieldType)));
|
|
33
|
-
return c.json(fieldTypes);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return c.json({
|
|
37
|
-
error: `No field types found from path ${c.get('projectPath')}`,
|
|
38
|
-
}, 500);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export default router;
|
|
42
|
-
//# sourceMappingURL=fieldTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fieldTypes.js","sourceRoot":"","sources":["../../src/routes/fieldTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;AAE1B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC1B,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACpE,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAiB,EAAE,EAAE,CACjC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CACzC,CACF,CAAC;QAEF,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,CAAC,IAAI,CACX;YACE,KAAK,EAAE,kCAAkC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;SAChE,EACD,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/dist/routes/linkTypes.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
import { Hono } from 'hono';
|
|
13
|
-
const router = new Hono();
|
|
14
|
-
/**
|
|
15
|
-
* @swagger
|
|
16
|
-
* /api/linkTypes:
|
|
17
|
-
* get:
|
|
18
|
-
* summary: Returns a list of all link types in the defined project.
|
|
19
|
-
* description: List of link types includes all link types in the project with all their details
|
|
20
|
-
* responses:
|
|
21
|
-
* 200:
|
|
22
|
-
* description: Object containing the project link types.
|
|
23
|
-
* 400:
|
|
24
|
-
* description: Error in reading project details.
|
|
25
|
-
* 500:
|
|
26
|
-
* description: project_path not set or other internal error
|
|
27
|
-
*/
|
|
28
|
-
router.get('/', async (c) => {
|
|
29
|
-
const commands = c.get('commands');
|
|
30
|
-
const response = await commands.showCmd.showResources('linkTypes');
|
|
31
|
-
if (response) {
|
|
32
|
-
const linkTypes = await Promise.all(response.map((linkType) => commands.showCmd.showResource(linkType)));
|
|
33
|
-
return c.json(linkTypes);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return c.json({
|
|
37
|
-
error: `No link types found from path ${c.get('projectPath')}`,
|
|
38
|
-
}, 500);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export default router;
|
|
42
|
-
//# sourceMappingURL=linkTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkTypes.js","sourceRoot":"","sources":["../../src/routes/linkTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;AAE1B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC1B,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IACnE,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CACjC,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAChC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CACxC,CACF,CAAC;QAEF,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,CAAC,IAAI,CACX;YACE,KAAK,EAAE,iCAAiC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;SAC/D,EACD,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/dist/routes/templates.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
import { Hono } from 'hono';
|
|
13
|
-
import { isSSGContext } from 'hono/ssg';
|
|
14
|
-
const router = new Hono();
|
|
15
|
-
/**
|
|
16
|
-
* @swagger
|
|
17
|
-
* /api/templates:
|
|
18
|
-
* get:
|
|
19
|
-
* summary: Returns a list of all templates in the defined project.
|
|
20
|
-
* description: List of templates includes only the names of the templates in the project.
|
|
21
|
-
* responses:
|
|
22
|
-
* 200:
|
|
23
|
-
* description: Array containing the names of the project templates.
|
|
24
|
-
* 400:
|
|
25
|
-
* description: Error in reading project details.
|
|
26
|
-
* 500:
|
|
27
|
-
* description: project_path not set or other internal error
|
|
28
|
-
*/
|
|
29
|
-
router.get('/', async (c) => {
|
|
30
|
-
// We do not need templates in ssg context
|
|
31
|
-
if (isSSGContext(c)) {
|
|
32
|
-
return c.json([]);
|
|
33
|
-
}
|
|
34
|
-
const commands = c.get('commands');
|
|
35
|
-
const response = await commands.showCmd.showTemplatesWithDetails();
|
|
36
|
-
if (response) {
|
|
37
|
-
return c.json(response);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return c.json({
|
|
41
|
-
error: `No templates found from path ${c.get('projectPath')}`,
|
|
42
|
-
}, 500);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
export default router;
|
|
46
|
-
//# sourceMappingURL=templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/routes/templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;AAE1B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC1B,0CAA0C;IAC1C,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;QACpB,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpB,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,wBAAwB,EAAE,CAAC;IACnE,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,CAAC,IAAI,CACX;YACE,KAAK,EAAE,gCAAgC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;SAC9D,EACD,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/dist/routes/tree.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
import { Hono } from 'hono';
|
|
13
|
-
const router = new Hono();
|
|
14
|
-
/**
|
|
15
|
-
* @swagger
|
|
16
|
-
* /api/tree
|
|
17
|
-
* get:
|
|
18
|
-
* summary: Returns everything required by treeview
|
|
19
|
-
* description: Returns the query result
|
|
20
|
-
* responses:
|
|
21
|
-
* 200:
|
|
22
|
-
* description: Object containing the query result
|
|
23
|
-
* 500:
|
|
24
|
-
* description: project_path not set or other internal error
|
|
25
|
-
*/
|
|
26
|
-
router.get('/', async (c) => {
|
|
27
|
-
const commands = c.get('commands');
|
|
28
|
-
try {
|
|
29
|
-
await commands.calculateCmd.generate();
|
|
30
|
-
const tree = await commands.calculateCmd.runQuery('tree');
|
|
31
|
-
return c.json(tree);
|
|
32
|
-
}
|
|
33
|
-
catch (e) {
|
|
34
|
-
return c.json({
|
|
35
|
-
error: (e instanceof Error && e.message) || '',
|
|
36
|
-
}, 500);
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export default router;
|
|
40
|
-
//# sourceMappingURL=tree.js.map
|
package/dist/routes/tree.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/routes/tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;AAE1B;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC1B,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,CAAC;QACH,MAAM,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,CAAC,IAAI,CACX;YACE,KAAK,EAAE,CAAC,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE;SAC/C,EACD,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/src/routes/fieldTypes.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { Hono } from 'hono';
|
|
14
|
-
|
|
15
|
-
const router = new Hono();
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @swagger
|
|
19
|
-
* /api/fieldTypes:
|
|
20
|
-
* get:
|
|
21
|
-
* summary: Returns a list of all field types in the defined project.
|
|
22
|
-
* description: List of field types includes all field types in the project with all their details
|
|
23
|
-
* responses:
|
|
24
|
-
* 200:
|
|
25
|
-
* description: Object containing the project field types. See definitions.ts/FieldTypes for the structure.
|
|
26
|
-
* 400:
|
|
27
|
-
* description: Error in reading project details.
|
|
28
|
-
* 500:
|
|
29
|
-
* description: project_path not set or other internal error
|
|
30
|
-
*/
|
|
31
|
-
router.get('/', async (c) => {
|
|
32
|
-
const commands = c.get('commands');
|
|
33
|
-
|
|
34
|
-
const response = await commands.showCmd.showResources('fieldTypes');
|
|
35
|
-
if (response) {
|
|
36
|
-
const fieldTypes = await Promise.all(
|
|
37
|
-
response.map((fieldType: string) =>
|
|
38
|
-
commands.showCmd.showResource(fieldType),
|
|
39
|
-
),
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
return c.json(fieldTypes);
|
|
43
|
-
} else {
|
|
44
|
-
return c.json(
|
|
45
|
-
{
|
|
46
|
-
error: `No field types found from path ${c.get('projectPath')}`,
|
|
47
|
-
},
|
|
48
|
-
500,
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export default router;
|
package/src/routes/linkTypes.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { Hono } from 'hono';
|
|
14
|
-
|
|
15
|
-
const router = new Hono();
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @swagger
|
|
19
|
-
* /api/linkTypes:
|
|
20
|
-
* get:
|
|
21
|
-
* summary: Returns a list of all link types in the defined project.
|
|
22
|
-
* description: List of link types includes all link types in the project with all their details
|
|
23
|
-
* responses:
|
|
24
|
-
* 200:
|
|
25
|
-
* description: Object containing the project link types.
|
|
26
|
-
* 400:
|
|
27
|
-
* description: Error in reading project details.
|
|
28
|
-
* 500:
|
|
29
|
-
* description: project_path not set or other internal error
|
|
30
|
-
*/
|
|
31
|
-
router.get('/', async (c) => {
|
|
32
|
-
const commands = c.get('commands');
|
|
33
|
-
|
|
34
|
-
const response = await commands.showCmd.showResources('linkTypes');
|
|
35
|
-
if (response) {
|
|
36
|
-
const linkTypes = await Promise.all(
|
|
37
|
-
response.map((linkType: string) =>
|
|
38
|
-
commands.showCmd.showResource(linkType),
|
|
39
|
-
),
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
return c.json(linkTypes);
|
|
43
|
-
} else {
|
|
44
|
-
return c.json(
|
|
45
|
-
{
|
|
46
|
-
error: `No link types found from path ${c.get('projectPath')}`,
|
|
47
|
-
},
|
|
48
|
-
500,
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export default router;
|
package/src/routes/templates.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { Hono } from 'hono';
|
|
14
|
-
import { isSSGContext } from 'hono/ssg';
|
|
15
|
-
|
|
16
|
-
const router = new Hono();
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @swagger
|
|
20
|
-
* /api/templates:
|
|
21
|
-
* get:
|
|
22
|
-
* summary: Returns a list of all templates in the defined project.
|
|
23
|
-
* description: List of templates includes only the names of the templates in the project.
|
|
24
|
-
* responses:
|
|
25
|
-
* 200:
|
|
26
|
-
* description: Array containing the names of the project templates.
|
|
27
|
-
* 400:
|
|
28
|
-
* description: Error in reading project details.
|
|
29
|
-
* 500:
|
|
30
|
-
* description: project_path not set or other internal error
|
|
31
|
-
*/
|
|
32
|
-
router.get('/', async (c) => {
|
|
33
|
-
// We do not need templates in ssg context
|
|
34
|
-
if (isSSGContext(c)) {
|
|
35
|
-
return c.json([]);
|
|
36
|
-
}
|
|
37
|
-
const commands = c.get('commands');
|
|
38
|
-
|
|
39
|
-
const response = await commands.showCmd.showTemplatesWithDetails();
|
|
40
|
-
if (response) {
|
|
41
|
-
return c.json(response);
|
|
42
|
-
} else {
|
|
43
|
-
return c.json(
|
|
44
|
-
{
|
|
45
|
-
error: `No templates found from path ${c.get('projectPath')}`,
|
|
46
|
-
},
|
|
47
|
-
500,
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export default router;
|
package/src/routes/tree.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Cyberismo
|
|
3
|
-
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation.
|
|
6
|
-
|
|
7
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
|
|
9
|
-
You should have received a copy of the GNU Affero General Public
|
|
10
|
-
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { Hono } from 'hono';
|
|
14
|
-
|
|
15
|
-
const router = new Hono();
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @swagger
|
|
19
|
-
* /api/tree
|
|
20
|
-
* get:
|
|
21
|
-
* summary: Returns everything required by treeview
|
|
22
|
-
* description: Returns the query result
|
|
23
|
-
* responses:
|
|
24
|
-
* 200:
|
|
25
|
-
* description: Object containing the query result
|
|
26
|
-
* 500:
|
|
27
|
-
* description: project_path not set or other internal error
|
|
28
|
-
*/
|
|
29
|
-
router.get('/', async (c) => {
|
|
30
|
-
const commands = c.get('commands');
|
|
31
|
-
try {
|
|
32
|
-
await commands.calculateCmd.generate();
|
|
33
|
-
const tree = await commands.calculateCmd.runQuery('tree');
|
|
34
|
-
return c.json(tree);
|
|
35
|
-
} catch (e) {
|
|
36
|
-
return c.json(
|
|
37
|
-
{
|
|
38
|
-
error: (e instanceof Error && e.message) || '',
|
|
39
|
-
},
|
|
40
|
-
500,
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export default router;
|