@betterportal/config-manager 10.1.63 → 10.1.65

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.
Files changed (178) hide show
  1. package/lib/.bsb/clients/service-betterportal-config-manager.d.ts +1 -1
  2. package/lib/.bsb/clients/service-betterportal-config-manager.js +1 -1
  3. package/lib/bp-contracts/org.betterportal.config-manager.json +200 -12
  4. package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.d.ts.map +1 -1
  5. package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js +9 -4
  6. package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js.map +1 -1
  7. package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts +13 -4
  8. package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts.map +1 -1
  9. package/lib/plugins/service-betterportal-config-manager/adminApi.js +37 -31
  10. package/lib/plugins/service-betterportal-config-manager/adminApi.js.map +1 -1
  11. package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.d.ts +11 -1
  12. package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.d.ts.map +1 -1
  13. package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.js +9 -2
  14. package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.js.map +1 -1
  15. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts +140 -3
  16. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts.map +1 -1
  17. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js +103 -3
  18. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js.map +1 -1
  19. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts +1 -1
  20. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts.map +1 -1
  21. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js +4 -1
  22. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js.map +1 -1
  23. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts +1 -1
  24. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts.map +1 -1
  25. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js +1 -1
  26. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js.map +1 -1
  27. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts +43 -3
  28. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts.map +1 -1
  29. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js +67 -3
  30. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js.map +1 -1
  31. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.d.ts +1 -1
  32. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.d.ts.map +1 -1
  33. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts +1 -1
  34. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts.map +1 -1
  35. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts +1 -1
  36. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts.map +1 -1
  37. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js +1 -1
  38. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js.map +1 -1
  39. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts +32 -3
  40. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts.map +1 -1
  41. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js +31 -3
  42. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js.map +1 -1
  43. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_renderer.bootstrap5/GET.d.ts +1 -1
  44. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_renderer.bootstrap5/GET.d.ts.map +1 -1
  45. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts +1 -1
  46. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts.map +1 -1
  47. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js +1 -1
  48. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js.map +1 -1
  49. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts +60 -3
  50. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts.map +1 -1
  51. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js +47 -3
  52. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js.map +1 -1
  53. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_renderer.bootstrap5/GET.d.ts +1 -1
  54. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_renderer.bootstrap5/GET.d.ts.map +1 -1
  55. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts +1 -1
  56. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts.map +1 -1
  57. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js +1 -1
  58. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js.map +1 -1
  59. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts +48 -3
  60. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts.map +1 -1
  61. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js +39 -3
  62. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js.map +1 -1
  63. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_renderer.bootstrap5/GET.d.ts +1 -1
  64. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_renderer.bootstrap5/GET.d.ts.map +1 -1
  65. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts +1 -1
  66. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts.map +1 -1
  67. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js +1 -1
  68. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js.map +1 -1
  69. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts +114 -3
  70. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts.map +1 -1
  71. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js +75 -3
  72. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js.map +1 -1
  73. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.d.ts +1 -1
  74. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.d.ts.map +1 -1
  75. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.js +5 -3
  76. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.js.map +1 -1
  77. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts +1 -1
  78. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts.map +1 -1
  79. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js +1 -1
  80. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js.map +1 -1
  81. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts +176 -3
  82. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts.map +1 -1
  83. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js +114 -3
  84. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js.map +1 -1
  85. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_renderer.bootstrap5/GET.d.ts +1 -1
  86. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_renderer.bootstrap5/GET.d.ts.map +1 -1
  87. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts +1 -1
  88. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts.map +1 -1
  89. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js +1 -1
  90. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js.map +1 -1
  91. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts +101 -3
  92. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts.map +1 -1
  93. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js +92 -3
  94. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js.map +1 -1
  95. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_renderer.bootstrap5/GET.d.ts +1 -1
  96. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_renderer.bootstrap5/GET.d.ts.map +1 -1
  97. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts +1 -1
  98. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts.map +1 -1
  99. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js +1 -1
  100. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js.map +1 -1
  101. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts +3 -3
  102. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts.map +1 -1
  103. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js +3 -3
  104. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js.map +1 -1
  105. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts +13 -3
  106. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts.map +1 -1
  107. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js +8 -3
  108. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js.map +1 -1
  109. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts +3 -3
  110. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts.map +1 -1
  111. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js +3 -3
  112. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js.map +1 -1
  113. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts +3 -3
  114. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts.map +1 -1
  115. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js +3 -3
  116. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js.map +1 -1
  117. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_renderer.bootstrap5/GET.d.ts +1 -1
  118. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_renderer.bootstrap5/GET.d.ts.map +1 -1
  119. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts +1 -1
  120. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts.map +1 -1
  121. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js +1 -1
  122. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js.map +1 -1
  123. package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.d.ts.map +1 -1
  124. package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.js +1 -0
  125. package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.js.map +1 -1
  126. package/lib/plugins/service-betterportal-config-manager/index.d.ts.map +1 -1
  127. package/lib/plugins/service-betterportal-config-manager/index.js +25 -4
  128. package/lib/plugins/service-betterportal-config-manager/index.js.map +1 -1
  129. package/lib/plugins/service-betterportal-config-manager/menuEditor.js +2 -2
  130. package/lib/plugins/service-betterportal-config-manager/menuEditor.js.map +1 -1
  131. package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts.map +1 -1
  132. package/lib/plugins/service-betterportal-config-manager/storage/core.js +67 -2
  133. package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
  134. package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +22 -3
  135. package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
  136. package/lib/plugins/service-betterportal-config-manager/syncApi.js +164 -22
  137. package/lib/plugins/service-betterportal-config-manager/syncApi.js.map +1 -1
  138. package/lib/plugins/service-betterportal-config-manager/{bp-routes/tenants/route.impl.d.ts → tenantManagement.d.ts} +5 -5
  139. package/lib/plugins/service-betterportal-config-manager/tenantManagement.d.ts.map +1 -0
  140. package/lib/plugins/service-betterportal-config-manager/{bp-routes/tenants/route.impl.js → tenantManagement.js} +8 -7
  141. package/lib/plugins/service-betterportal-config-manager/tenantManagement.js.map +1 -0
  142. package/lib/schemas/service-betterportal-config-manager.json +1 -1
  143. package/lib/schemas/service-betterportal-config-manager.plugin.json +1 -1
  144. package/package.json +5 -5
  145. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts +0 -118
  146. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts.map +0 -1
  147. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js +0 -91
  148. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js.map +0 -1
  149. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts +0 -43
  150. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts.map +0 -1
  151. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js +0 -68
  152. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js.map +0 -1
  153. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts +0 -32
  154. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map +0 -1
  155. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js +0 -32
  156. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map +0 -1
  157. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts +0 -60
  158. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts.map +0 -1
  159. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js +0 -48
  160. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js.map +0 -1
  161. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts +0 -48
  162. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map +0 -1
  163. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js +0 -40
  164. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js.map +0 -1
  165. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +0 -104
  166. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +0 -1
  167. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +0 -71
  168. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +0 -1
  169. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts +0 -176
  170. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts.map +0 -1
  171. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js +0 -115
  172. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js.map +0 -1
  173. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts +0 -89
  174. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map +0 -1
  175. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js +0 -93
  176. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js.map +0 -1
  177. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +0 -1
  178. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterportal/config-manager",
3
- "version": "10.1.63",
3
+ "version": "10.1.65",
4
4
  "description": "BetterPortal admin config management service for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -28,16 +28,16 @@
28
28
  "license": "(AGPL-3.0-only OR Commercial)",
29
29
  "type": "module",
30
30
  "devDependencies": {
31
- "@bsb/tests": "^9.6.60",
31
+ "@bsb/tests": "^9.6.66",
32
32
  "@types/node": "^26.0.0",
33
33
  "@types/pg": "^8.20.0",
34
34
  "tsx": "^4.21.0",
35
35
  "typescript": "^6.0.3"
36
36
  },
37
37
  "dependencies": {
38
- "@betterportal/framework": "10.1.63",
39
- "@betterportal/plugin-bsb": "10.1.63",
40
- "@bsb/base": "^9.6.60",
38
+ "@betterportal/framework": "10.1.65",
39
+ "@betterportal/plugin-bsb": "10.1.65",
40
+ "@bsb/base": "^9.6.66",
41
41
  "anyvali": "^1.0.6",
42
42
  "jsx-htmx": "4.0.0-beta6"
43
43
  },
@@ -1,118 +0,0 @@
1
- import * as av from "anyvali";
2
- import type { Infer } from "anyvali";
3
- import { type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
4
- export declare const QuerySchema: av.ObjectSchema<{
5
- appId: av.OptionalSchema<av.StringSchema>;
6
- }>;
7
- export declare const HeadersSchema: av.ObjectSchema<{}>;
8
- export declare const RequestSchema: av.ObjectSchema<{}>;
9
- export declare const ResponseSchema: av.ObjectSchema<{
10
- title: av.StringSchema;
11
- apps: av.ArraySchema<av.ObjectSchema<{
12
- id: av.StringSchema;
13
- tenantId: av.StringSchema;
14
- title: av.StringSchema;
15
- }>>;
16
- selectedAppId: av.OptionalSchema<av.StringSchema>;
17
- selectedTenantId: av.OptionalSchema<av.StringSchema>;
18
- authConfigured: av.BoolSchema;
19
- servicePermissions: av.ArraySchema<av.ObjectSchema<{
20
- serviceId: av.StringSchema;
21
- title: av.StringSchema;
22
- hostname: av.StringSchema;
23
- manifestVersion: av.OptionalSchema<av.StringSchema>;
24
- views: av.ArraySchema<av.ObjectSchema<{
25
- viewId: av.StringSchema;
26
- path: av.StringSchema;
27
- operations: av.ArraySchema<av.ObjectSchema<{
28
- operationId: av.StringSchema;
29
- method: av.StringSchema;
30
- role: av.OptionalSchema<av.StringSchema>;
31
- requiredPermissions: av.ArraySchema<av.ObjectSchema<{
32
- serviceId: av.StringSchema;
33
- viewId: av.StringSchema;
34
- permissions: av.ArraySchema<av.StringSchema>;
35
- }>>;
36
- }>>;
37
- }>>;
38
- }>>;
39
- currentRoles: av.ArraySchema<av.ObjectSchema<{
40
- id: av.StringSchema;
41
- title: av.StringSchema;
42
- description: av.OptionalSchema<av.StringSchema>;
43
- permissions: av.ArraySchema<av.ObjectSchema<{
44
- serviceId: av.StringSchema;
45
- viewId: av.StringSchema;
46
- permissions: av.ArraySchema<av.EnumSchema<readonly ["read", "create", "update", "delete"]>>;
47
- }>>;
48
- }>>;
49
- externalRoleSync: av.OptionalSchema<av.ObjectSchema<{
50
- serviceTitle: av.StringSchema;
51
- fragmentUrl: av.StringSchema;
52
- }>>;
53
- managedRoleSync: av.OptionalSchema<av.ObjectSchema<{
54
- serviceTitle: av.StringSchema;
55
- syncUrl: av.StringSchema;
56
- }>>;
57
- adminApiBase: av.StringSchema;
58
- serviceBaseUrl: av.OptionalSchema<av.StringSchema>;
59
- }>;
60
- export type ResponseData = Infer<typeof ResponseSchema>;
61
- export declare const title = "Permission Manager";
62
- export declare const description = "Define role -> permission grants per app. Services advertise per-view permission requirements via their manifest.";
63
- export declare const auth: ApiAuthRequirement;
64
- export declare const cacheHints: CacheHints;
65
- export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, {
66
- appId?: string | undefined;
67
- }, Record<string, string>, Record<string, unknown>, {
68
- title: string;
69
- apps: {
70
- id: string;
71
- tenantId: string;
72
- title: string;
73
- }[];
74
- authConfigured: boolean;
75
- servicePermissions: {
76
- serviceId: string;
77
- title: string;
78
- hostname: string;
79
- views: {
80
- viewId: string;
81
- path: string;
82
- operations: {
83
- operationId: string;
84
- method: string;
85
- requiredPermissions: {
86
- serviceId: string;
87
- viewId: string;
88
- permissions: string[];
89
- }[];
90
- role?: string | undefined;
91
- }[];
92
- }[];
93
- manifestVersion?: string | undefined;
94
- }[];
95
- currentRoles: {
96
- id: string;
97
- title: string;
98
- permissions: {
99
- serviceId: string;
100
- viewId: string;
101
- permissions: ("read" | "create" | "update" | "delete")[];
102
- }[];
103
- description?: string | undefined;
104
- }[];
105
- adminApiBase: string;
106
- selectedAppId?: string | undefined;
107
- selectedTenantId?: string | undefined;
108
- externalRoleSync?: {
109
- serviceTitle: string;
110
- fragmentUrl: string;
111
- } | undefined;
112
- managedRoleSync?: {
113
- serviceTitle: string;
114
- syncUrl: string;
115
- } | undefined;
116
- serviceBaseUrl?: string | undefined;
117
- }, unknown, Record<string, unknown>>;
118
- //# sourceMappingURL=route.impl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAwDjC,eAAO,MAAM,WAAW;;EAEtB,CAAC;AAEH,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAE3C,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAE3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,uBAAuB,CAAC;AAC1C,eAAO,MAAM,WAAW,sHAAsH,CAAC;AAE/I,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAGxB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAarB,CAAC"}
@@ -1,91 +0,0 @@
1
- import * as av from "anyvali";
2
- import { createHandler } from "@betterportal/framework";
3
- const PermissionActionSchema = av.enum_(["read", "create", "update", "delete"]);
4
- const ViewWithPermsSchema = av.object({
5
- viewId: av.string().minLength(1),
6
- path: av.string().minLength(1),
7
- operations: av.array(av.object({
8
- operationId: av.string().minLength(1),
9
- method: av.string().minLength(1),
10
- role: av.optional(av.string()),
11
- requiredPermissions: av.array(av.object({
12
- serviceId: av.string().minLength(1),
13
- viewId: av.string().minLength(1),
14
- permissions: av.array(av.string())
15
- })).default([])
16
- })).default([])
17
- });
18
- const ServiceWithViewsSchema = av.object({
19
- serviceId: av.string().minLength(1),
20
- title: av.string().minLength(1),
21
- hostname: av.string(),
22
- manifestVersion: av.optional(av.string()),
23
- views: av.array(ViewWithPermsSchema).default([])
24
- });
25
- const RolePermissionGrantSchema = av.object({
26
- serviceId: av.string().minLength(1),
27
- viewId: av.string().minLength(1),
28
- permissions: av.array(PermissionActionSchema).minItems(1)
29
- });
30
- const AppRoleSchema = av.object({
31
- id: av.string().minLength(1),
32
- title: av.string().minLength(1),
33
- description: av.optional(av.string()),
34
- permissions: av.array(RolePermissionGrantSchema).default([])
35
- });
36
- const AppSummarySchema = av.object({
37
- id: av.string().minLength(1),
38
- tenantId: av.string().minLength(1),
39
- title: av.string().minLength(1)
40
- });
41
- const ExternalRoleSyncSchema = av.object({
42
- serviceTitle: av.string().minLength(1),
43
- fragmentUrl: av.string().minLength(1)
44
- });
45
- const ManagedRoleSyncSchema = av.object({
46
- serviceTitle: av.string().minLength(1),
47
- syncUrl: av.string().minLength(1)
48
- });
49
- export const QuerySchema = av.object({
50
- appId: av.optional(av.string().minLength(1))
51
- });
52
- export const HeadersSchema = av.object({});
53
- export const RequestSchema = av.object({});
54
- export const ResponseSchema = av.object({
55
- title: av.string().minLength(1),
56
- apps: av.array(AppSummarySchema).default([]),
57
- selectedAppId: av.optional(av.string()),
58
- selectedTenantId: av.optional(av.string()),
59
- authConfigured: av.bool().default(false),
60
- servicePermissions: av.array(ServiceWithViewsSchema).default([]),
61
- currentRoles: av.array(AppRoleSchema).default([]),
62
- externalRoleSync: av.optional(ExternalRoleSyncSchema),
63
- managedRoleSync: av.optional(ManagedRoleSyncSchema),
64
- adminApiBase: av.string().default("/.well-known/bp/admin"),
65
- serviceBaseUrl: av.optional(av.string())
66
- });
67
- export const title = "Permission Manager";
68
- export const description = "Define role -> permission grants per app. Services advertise per-view permission requirements via their manifest.";
69
- export const auth = {
70
- required: true,
71
- permissions: [
72
- { serviceId: "org.betterportal.config-manager", viewId: "auth.index", permissions: ["read", "create", "update", "delete"] }
73
- ]
74
- };
75
- export const cacheHints = {
76
- ttlSeconds: 0,
77
- varyBy: ["accept", "origin"]
78
- };
79
- export const handleGet = createHandler({ response: ResponseSchema, query: QuerySchema }, (ctx) => {
80
- if (ctx.responseModel)
81
- return ctx.responseModel;
82
- return {
83
- title: "Permission Manager",
84
- apps: [],
85
- authConfigured: false,
86
- servicePermissions: [],
87
- currentRoles: [],
88
- adminApiBase: "/.well-known/bp/admin"
89
- };
90
- });
91
- //# sourceMappingURL=route.impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.ts"],"names":[],"mappings":"AA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AY,EAAE,EAAE;QAChB,YAAY,EAAE,uBAAuB;KACtC,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,43 +0,0 @@
1
- import * as av from "anyvali";
2
- import type { Infer } from "anyvali";
3
- import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
4
- export declare const QuerySchema: av.ObjectSchema<{}>;
5
- export declare const HeadersSchema: av.ObjectSchema<{}>;
6
- export declare const RequestSchema: av.ObjectSchema<{}>;
7
- export declare const ResponseSchema: av.ObjectSchema<{
8
- title: av.StringSchema;
9
- tenantId: av.StringSchema;
10
- appId: av.StringSchema;
11
- requestTimeoutMs: av.IntSchema;
12
- services: av.ArraySchema<av.ObjectSchema<{
13
- serviceId: av.StringSchema;
14
- bindingId: av.StringSchema;
15
- endpointBaseUrl: av.StringSchema;
16
- deploymentMode: av.StringSchema;
17
- healthUrl: av.StringSchema;
18
- schemaUrl: av.StringSchema;
19
- manifestUrl: av.StringSchema;
20
- }>>;
21
- }>;
22
- export type ResponseData = Infer<typeof ResponseSchema>;
23
- export declare const title = "Config Manager";
24
- export declare const description = "Admin service that discovers BetterPortal service config surfaces.";
25
- export declare const auth: ApiAuthRequirement;
26
- export declare const cacheHints: CacheHints;
27
- export declare const demoScenarios: DemoScenario<ResponseData>[];
28
- export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
29
- title: string;
30
- tenantId: string;
31
- appId: string;
32
- requestTimeoutMs: number;
33
- services: {
34
- serviceId: string;
35
- bindingId: string;
36
- endpointBaseUrl: string;
37
- deploymentMode: string;
38
- healthUrl: string;
39
- schemaUrl: string;
40
- manifestUrl: string;
41
- }[];
42
- }, unknown, Record<string, unknown>>;
43
- //# sourceMappingURL=route.impl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW,qBAAgB,CAAC;AAEzC,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAE3C,eAAO,MAAM,aAAa,qBAAgB,CAAC;AAY3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;EAMzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAIxD,eAAO,MAAM,KAAK,mBAAmB,CAAC;AACtC,eAAO,MAAM,WAAW,uEAAuE,CAAC;AAEhG,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAarD,CAAC;AAIF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;oCAoBrB,CAAC"}
@@ -1,68 +0,0 @@
1
- import * as av from "anyvali";
2
- import { createHandler } from "@betterportal/framework";
3
- // -- Schemas ---------------------------------------------------------
4
- export const QuerySchema = av.object({});
5
- export const HeadersSchema = av.object({});
6
- export const RequestSchema = av.object({});
7
- const ConfigManagerServiceSchema = av.object({
8
- serviceId: av.string().minLength(1),
9
- bindingId: av.string().minLength(1),
10
- endpointBaseUrl: av.string().format("url"),
11
- deploymentMode: av.string().minLength(1),
12
- healthUrl: av.string().format("url"),
13
- schemaUrl: av.string().format("url"),
14
- manifestUrl: av.string().format("url")
15
- });
16
- export const ResponseSchema = av.object({
17
- title: av.string().minLength(1),
18
- tenantId: av.string().minLength(1),
19
- appId: av.string().minLength(1),
20
- requestTimeoutMs: av.int().min(1),
21
- services: av.array(ConfigManagerServiceSchema)
22
- });
23
- // -- Metadata --------------------------------------------------------
24
- export const title = "Config Manager";
25
- export const description = "Admin service that discovers BetterPortal service config surfaces.";
26
- export const auth = {
27
- required: true,
28
- permissions: [
29
- { serviceId: "org.betterportal.config-manager", viewId: "config.index", permissions: ["read", "update"] }
30
- ]
31
- };
32
- export const cacheHints = {
33
- ttlSeconds: 30,
34
- varyBy: ["accept", "origin", "referer", ":origin", ":referer"]
35
- };
36
- export const demoScenarios = [
37
- {
38
- id: "default",
39
- title: "Default Config Admin",
40
- match: { query: {} },
41
- response: {
42
- title: "Config Manager",
43
- tenantId: "tenant-main",
44
- appId: "app-main",
45
- requestTimeoutMs: 2000,
46
- services: []
47
- }
48
- }
49
- ];
50
- // -- Handler ---------------------------------------------------------
51
- export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
52
- // The actual data is injected by the main plugin via the handler context.
53
- // This handler is a passthrough - the plugin builds the response model
54
- // from config/bindings and attaches it to the event before the H3 adapter
55
- // calls this handler.
56
- if (ctx.responseModel) {
57
- return ctx.responseModel;
58
- }
59
- // Fallback: return empty state (should not happen in normal flow)
60
- return {
61
- title: "Config Manager",
62
- tenantId: "unknown",
63
- appId: "unknown",
64
- requestTimeoutMs: 2000,
65
- services: []
66
- };
67
- });
68
- //# sourceMappingURL=route.impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,uEAAuE;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,M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AE;QACX,EAAE,SAAS,EAAE,iCAAiC,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,MAAM,EAAC,QAAQ,CAAC,EAAE;KACzG;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAe;IACpC,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC;CAC/D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAiC;IACzD;QACE,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACpB,QAAQ,EAAE;YACR,KAAK,EAAE,gBAAgB;YACvB,QAAQ,EAAE,aAAa;YACvB,KAAK,EAAE,UAAU;YACjB,gBAAgB,EAAE,IAAI;YACtB,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC;AAEF,uEAAuE;AAEvE,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CACpC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,CAAC,GAAG,EAAE,EAAE;IACN,0EAA0E;IAC1E,uEAAuE;IACvE,0EAA0E;IAC1E,sBAAsB;IACtB,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;QACtB,OAAO,GAAG,CAAC,aAA6B,CAAC;IAC3C,CAAC;IAED,kEAAkE;IAClE,OAAO;QACL,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,gBAAgB,EAAE,IAAI;QACtB,QAAQ,EAAE,EAAE;KACb,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,32 +0,0 @@
1
- import * as av from "anyvali";
2
- import type { Infer } from "anyvali";
3
- import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
4
- export declare const ResponseSchema: av.ObjectSchema<{
5
- title: av.StringSchema;
6
- apps: av.ArraySchema<av.ObjectSchema<{
7
- id: av.StringSchema;
8
- title: av.StringSchema;
9
- tenantId: av.StringSchema;
10
- }>>;
11
- selectedAppId: av.OptionalSchema<av.StringSchema>;
12
- adminApiBase: av.StringSchema;
13
- serviceBaseUrl: av.StringSchema;
14
- }>;
15
- export type ResponseData = Infer<typeof ResponseSchema>;
16
- export declare const title = "Fragments";
17
- export declare const description = "Manage topbar/footer fragments per app.";
18
- export declare const auth: ApiAuthRequirement;
19
- export declare const cacheHints: CacheHints;
20
- export declare const demoScenarios: DemoScenario<ResponseData>[];
21
- export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
22
- title: string;
23
- apps: {
24
- id: string;
25
- title: string;
26
- tenantId: string;
27
- }[];
28
- adminApiBase: string;
29
- serviceBaseUrl: string;
30
- selectedAppId?: string | undefined;
31
- }, unknown, Record<string, unknown>>;
32
- //# sourceMappingURL=route.impl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAQjC,eAAO,MAAM,cAAc;;;;;;;;;;EAMzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,cAAc,CAAC;AACjC,eAAO,MAAM,WAAW,4CAA4C,CAAC;AAErE,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAA4D,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAErD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;oCAMrB,CAAC"}
@@ -1,32 +0,0 @@
1
- import * as av from "anyvali";
2
- import { createHandler } from "@betterportal/framework";
3
- const AppSummarySchema = av.object({
4
- id: av.string().minLength(1),
5
- title: av.string().minLength(1),
6
- tenantId: av.string().minLength(1)
7
- });
8
- export const ResponseSchema = av.object({
9
- title: av.string().minLength(1),
10
- apps: av.array(AppSummarySchema),
11
- selectedAppId: av.optional(av.string()),
12
- adminApiBase: av.string().minLength(1),
13
- serviceBaseUrl: av.string().minLength(1)
14
- });
15
- export const title = "Fragments";
16
- export const description = "Manage topbar/footer fragments per app.";
17
- export const auth = {
18
- required: true,
19
- permissions: [
20
- { serviceId: "org.betterportal.config-manager", viewId: "fragments.index", permissions: ["read", "create", "update", "delete"] }
21
- ]
22
- };
23
- export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
24
- export const demoScenarios = [
25
- { id: "default", title: "Default", response: { title: "Fragments", apps: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
26
- ];
27
- export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
28
- if (ctx.responseModel)
29
- return ctx.responseModel;
30
- return { title: "Fragments", apps: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
31
- });
32
- //# sourceMappingURL=route.impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,gBAAgB,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,EA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,EAAE,EAAE,EAAE;CAC3I,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CACpC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,CAAC,GAAG,EAAE,EAAE;IACN,IAAI,GAAG,CAAC,aAAa;QAAE,OAAO,GAAG,CAAC,aAA6B,CAAC;IAChE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AACrG,CAAC,CACF,CAAC"}
@@ -1,60 +0,0 @@
1
- import * as av from "anyvali";
2
- import type { Infer } from "anyvali";
3
- import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
4
- export declare const ResponseSchema: av.ObjectSchema<{
5
- title: av.StringSchema;
6
- apps: av.ArraySchema<av.ObjectSchema<{
7
- id: av.StringSchema;
8
- title: av.StringSchema;
9
- tenantId: av.StringSchema;
10
- }>>;
11
- selectedAppId: av.OptionalSchema<av.StringSchema>;
12
- menu: av.ArraySchema<av.ObjectSchema<{
13
- id: av.StringSchema;
14
- type: av.StringSchema;
15
- title: av.OptionalSchema<av.StringSchema>;
16
- routeId: av.OptionalSchema<av.StringSchema>;
17
- href: av.OptionalSchema<av.StringSchema>;
18
- enabled: av.BoolSchema;
19
- defaultExpanded: av.OptionalSchema<av.BoolSchema>;
20
- }>>;
21
- routes: av.ArraySchema<av.ObjectSchema<{
22
- id: av.StringSchema;
23
- path: av.StringSchema;
24
- title: av.StringSchema;
25
- }>>;
26
- adminApiBase: av.StringSchema;
27
- serviceBaseUrl: av.StringSchema;
28
- }>;
29
- export type ResponseData = Infer<typeof ResponseSchema>;
30
- export declare const title = "Menu Designer";
31
- export declare const description = "Design app navigation menu.";
32
- export declare const auth: ApiAuthRequirement;
33
- export declare const cacheHints: CacheHints;
34
- export declare const demoScenarios: DemoScenario<ResponseData>[];
35
- export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
36
- title: string;
37
- apps: {
38
- id: string;
39
- title: string;
40
- tenantId: string;
41
- }[];
42
- menu: {
43
- id: string;
44
- type: string;
45
- enabled: boolean;
46
- title?: string | undefined;
47
- routeId?: string | undefined;
48
- href?: string | undefined;
49
- defaultExpanded?: boolean | undefined;
50
- }[];
51
- routes: {
52
- id: string;
53
- path: string;
54
- title: string;
55
- }[];
56
- adminApiBase: string;
57
- serviceBaseUrl: string;
58
- selectedAppId?: string | undefined;
59
- }, unknown, Record<string, unknown>>;
60
- //# sourceMappingURL=route.impl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAwBjC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;EAQzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,kBAAkB,CAAC;AACrC,eAAO,MAAM,WAAW,gCAAgC,CAAC;AAEzD,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAA4D,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAErD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;oCAMrB,CAAC"}
@@ -1,48 +0,0 @@
1
- import * as av from "anyvali";
2
- import { createHandler } from "@betterportal/framework";
3
- const RouteOptionSchema = av.object({
4
- id: av.string().minLength(1),
5
- path: av.string().minLength(1),
6
- title: av.string()
7
- });
8
- const MenuItemSchema = av.object({
9
- id: av.string().minLength(1),
10
- type: av.string().minLength(1),
11
- title: av.optional(av.string()),
12
- routeId: av.optional(av.string()),
13
- href: av.optional(av.string()),
14
- enabled: av.bool(),
15
- defaultExpanded: av.optional(av.bool())
16
- });
17
- const AppSummarySchema = av.object({
18
- id: av.string().minLength(1),
19
- title: av.string().minLength(1),
20
- tenantId: av.string().minLength(1)
21
- });
22
- export const ResponseSchema = av.object({
23
- title: av.string().minLength(1),
24
- apps: av.array(AppSummarySchema),
25
- selectedAppId: av.optional(av.string()),
26
- menu: av.array(MenuItemSchema).default([]),
27
- routes: av.array(RouteOptionSchema).default([]),
28
- adminApiBase: av.string().minLength(1),
29
- serviceBaseUrl: av.string().minLength(1)
30
- });
31
- export const title = "Menu Designer";
32
- export const description = "Design app navigation menu.";
33
- export const auth = {
34
- required: true,
35
- permissions: [
36
- { serviceId: "org.betterportal.config-manager", viewId: "menu.index", permissions: ["read", "create", "update", "delete"] }
37
- ]
38
- };
39
- export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
40
- export const demoScenarios = [
41
- { id: "default", title: "Default", response: { title: "Menu Designer", apps: [], menu: [], routes: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
42
- ];
43
- export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
44
- if (ctx.responseModel)
45
- return ctx.responseModel;
46
- return { title: "Menu Designer", apps: [], menu: [], routes: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
47
- });
48
- //# sourceMappingURL=route.impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,C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M,SAAS,GAAG,aAAa,CACpC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,CAAC,GAAG,EAAE,EAAE;IACN,IAAI,GAAG,CAAC,aAAa;QAAE,OAAO,GAAG,CAAC,aAA6B,CAAC;IAChE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AAC/H,CAAC,CACF,CAAC"}
@@ -1,48 +0,0 @@
1
- import * as av from "anyvali";
2
- import type { Infer } from "anyvali";
3
- import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
4
- export declare const ResponseSchema: av.ObjectSchema<{
5
- title: av.StringSchema;
6
- services: av.ArraySchema<av.ObjectSchema<{
7
- serviceId: av.StringSchema;
8
- endpointBaseUrl: av.StringSchema;
9
- views: av.ArraySchema<av.ObjectSchema<{
10
- viewId: av.StringSchema;
11
- title: av.StringSchema;
12
- path: av.StringSchema;
13
- renderers: av.ArraySchema<av.StringSchema>;
14
- components: av.ArraySchema<av.StringSchema>;
15
- hasFragments: av.BoolSchema;
16
- demoScenarios: av.ArraySchema<av.ObjectSchema<{
17
- id: av.StringSchema;
18
- title: av.StringSchema;
19
- }>>;
20
- }>>;
21
- }>>;
22
- }>;
23
- export type ResponseData = Infer<typeof ResponseSchema>;
24
- export declare const title = "Component Preview";
25
- export declare const description = "Browse and preview service views, components, and fragments.";
26
- export declare const auth: ApiAuthRequirement;
27
- export declare const cacheHints: CacheHints;
28
- export declare const demoScenarios: DemoScenario<ResponseData>[];
29
- export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
30
- title: string;
31
- services: {
32
- serviceId: string;
33
- endpointBaseUrl: string;
34
- views: {
35
- viewId: string;
36
- title: string;
37
- path: string;
38
- renderers: string[];
39
- components: string[];
40
- hasFragments: boolean;
41
- demoScenarios: {
42
- id: string;
43
- title: string;
44
- }[];
45
- }[];
46
- }[];
47
- }, unknown, Record<string, unknown>>;
48
- //# sourceMappingURL=route.impl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAmBjC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAGzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,sBAAsB,CAAC;AACzC,eAAO,MAAM,WAAW,iEAAiE,CAAC;AAE1F,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAA4D,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAErD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;oCAMrB,CAAC"}