@terreno/admin-backend 0.9.1 → 0.9.3
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/package.json +5 -2
- package/src/adminApp.ts +2 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@google-cloud/storage": "^7.15.0",
|
|
8
|
-
"@terreno/api": "0.9.
|
|
8
|
+
"@terreno/api": "0.9.3",
|
|
9
9
|
"express": "^5.2.1",
|
|
10
10
|
"luxon": "^3.7.2",
|
|
11
11
|
"multer": "^1.4.5-lts.1"
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"main": "dist/index.js",
|
|
37
37
|
"name": "@terreno/admin-backend",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
38
41
|
"repository": {
|
|
39
42
|
"type": "git",
|
|
40
43
|
"url": "git+ssh://git@github.com/FlourishHealth/terreno.git"
|
|
@@ -49,5 +52,5 @@
|
|
|
49
52
|
"test:ci": "bun test"
|
|
50
53
|
},
|
|
51
54
|
"types": "dist/index.d.ts",
|
|
52
|
-
"version": "0.9.
|
|
55
|
+
"version": "0.9.3"
|
|
53
56
|
}
|
package/src/adminApp.ts
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
logger,
|
|
10
10
|
type ModelRouterOptions,
|
|
11
11
|
modelRouter,
|
|
12
|
+
type OpenApiMiddleware,
|
|
12
13
|
Permissions,
|
|
13
14
|
type ScriptContext,
|
|
14
15
|
type ScriptResult,
|
|
@@ -374,7 +375,7 @@ export class AdminApp {
|
|
|
374
375
|
for (const config of modelConfigs) {
|
|
375
376
|
const hiddenFieldSet = new Set(config.hiddenFields ?? []);
|
|
376
377
|
const routerOptions: ModelRouterOptions<any> = {
|
|
377
|
-
...(openApi ? {openApi: openApi as
|
|
378
|
+
...(openApi ? {openApi: openApi as OpenApiMiddleware} : {}),
|
|
378
379
|
permissions: {
|
|
379
380
|
create: [Permissions.IsAdmin],
|
|
380
381
|
delete: [Permissions.IsAdmin],
|