@oktis-works/api 0.11.0 → 0.12.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/field-types/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/field-types/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAK5B,QAAA,MAAM,MAAM,4EAAa,CAAC;AAwB1B,eAAe,MAAM,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
// @oktis-works/api - Field Types Catalog Routes
|
|
2
2
|
import { Hono } from 'hono';
|
|
3
3
|
import { listFieldTypes, listFieldTypesByCategory, FIELD_TYPE_CATEGORIES } from '@oktis-works/core';
|
|
4
|
+
import { fieldTypeExtensionService } from '@oktis-works/core';
|
|
4
5
|
import { authMiddleware, requirePermission } from '../../middleware/auth.js';
|
|
5
6
|
const router = new Hono();
|
|
6
7
|
router.use('*', authMiddleware);
|
|
7
8
|
router.get('/', requirePermission('read', 'content'), async (c) => {
|
|
8
9
|
const category = c.req.query('category');
|
|
10
|
+
const _tenantId = c.get('tenantId');
|
|
11
|
+
// Sync plugin field types for this tenant
|
|
12
|
+
await fieldTypeExtensionService.syncToRegistry();
|
|
9
13
|
if (category) {
|
|
10
14
|
const grouped = listFieldTypesByCategory();
|
|
11
15
|
const key = category;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/field-types/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,qBAAqB,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G,wBAAwB,EAAE,CAAC;QAC3C,MAAM,GAAG,GAAG,QAAgC,CAAC;QAC7C,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,CAAC,CAAC,IAAI,CAAC;QACZ,UAAU,EAAE,qBAAqB;QACjC,KAAK;KACN,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oktis-works/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@oktis-works/core": "^0.
|
|
22
|
-
"@oktis-works/auth": "^0.7.
|
|
23
|
-
"@oktis-works/config": "^0.6.
|
|
24
|
-
"@oktis-works/database": "^0.7.
|
|
25
|
-
"@oktis-works/types": "^0.
|
|
21
|
+
"@oktis-works/core": "^0.6.1",
|
|
22
|
+
"@oktis-works/auth": "^0.7.1",
|
|
23
|
+
"@oktis-works/config": "^0.6.3",
|
|
24
|
+
"@oktis-works/database": "^0.7.1",
|
|
25
|
+
"@oktis-works/types": "^0.8.0",
|
|
26
26
|
"hono": "4.13.12",
|
|
27
27
|
"@hono/node-server": "1.8.0",
|
|
28
28
|
"@oktis-works/validation": "^0.6.0"
|