@betterportal/config-manager 10.1.64 → 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.
- package/lib/.bsb/clients/service-betterportal-config-manager.d.ts +1 -1
- package/lib/.bsb/clients/service-betterportal-config-manager.js +1 -1
- package/lib/bp-contracts/org.betterportal.config-manager.json +198 -14
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js +9 -4
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts +13 -4
- package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.js +37 -31
- package/lib/plugins/service-betterportal-config-manager/adminApi.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts +140 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js +103 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js +4 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_renderer.bootstrap5/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts +43 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js +67 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_renderer.embedded/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts +32 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js +31 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts +60 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js +47 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts +48 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js +39 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts +114 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js +75 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.js +5 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_renderer.bootstrap5/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts +176 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js +114 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts +101 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js +92 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts +13 -4
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js +6 -6
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_renderer.bootstrap5/GET.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_renderer.bootstrap5/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.js +1 -0
- package/lib/plugins/service-betterportal-config-manager/fragmentsEditor.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/index.js +25 -4
- package/lib/plugins/service-betterportal-config-manager/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/menuEditor.js +2 -2
- package/lib/plugins/service-betterportal-config-manager/menuEditor.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.js +67 -2
- package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +22 -3
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.js +164 -22
- package/lib/plugins/service-betterportal-config-manager/syncApi.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/{bp-routes/tenants/route.impl.d.ts → tenantManagement.d.ts} +5 -5
- package/lib/plugins/service-betterportal-config-manager/tenantManagement.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/{bp-routes/tenants/route.impl.js → tenantManagement.js} +8 -7
- package/lib/plugins/service-betterportal-config-manager/tenantManagement.js.map +1 -0
- package/lib/schemas/service-betterportal-config-manager.json +1 -1
- package/lib/schemas/service-betterportal-config-manager.plugin.json +1 -1
- package/package.json +5 -5
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts +0 -118
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js +0 -91
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts +0 -43
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js +0 -68
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts +0 -32
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js +0 -32
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts +0 -60
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js +0 -48
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts +0 -48
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js +0 -40
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +0 -104
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +0 -71
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts +0 -176
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js +0 -115
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts +0 -89
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js +0 -93
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +0 -1
|
@@ -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,MAAM,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,0BAA0B,GAAG,EAAE,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACnC,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACnC,eAAe,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IAC1C,cAAc,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACxC,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IACpC,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IACpC,WAAW,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,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ACF;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
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map
DELETED
|
@@ -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
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map
DELETED
|
@@ -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,EAA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AS,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,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,CAAC;AAEjC,MAAM,iBAAiB,GAAG,EAAE,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,EAAE,CAAC,MA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AAO,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
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map
DELETED
|
@@ -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"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as av from "anyvali";
|
|
2
|
-
import { createHandler } from "@betterportal/framework";
|
|
3
|
-
const ServiceViewSchema = av.object({
|
|
4
|
-
serviceId: av.string().minLength(1),
|
|
5
|
-
endpointBaseUrl: av.string().format("url"),
|
|
6
|
-
views: av.array(av.object({
|
|
7
|
-
viewId: av.string().minLength(1),
|
|
8
|
-
title: av.string(),
|
|
9
|
-
path: av.string().minLength(1),
|
|
10
|
-
renderers: av.array(av.string()),
|
|
11
|
-
components: av.array(av.string()),
|
|
12
|
-
hasFragments: av.bool(),
|
|
13
|
-
demoScenarios: av.array(av.object({
|
|
14
|
-
id: av.string().minLength(1),
|
|
15
|
-
title: av.string()
|
|
16
|
-
}))
|
|
17
|
-
}))
|
|
18
|
-
});
|
|
19
|
-
export const ResponseSchema = av.object({
|
|
20
|
-
title: av.string().minLength(1),
|
|
21
|
-
services: av.array(ServiceViewSchema)
|
|
22
|
-
});
|
|
23
|
-
export const title = "Component Preview";
|
|
24
|
-
export const description = "Browse and preview service views, components, and fragments.";
|
|
25
|
-
export const auth = {
|
|
26
|
-
required: true,
|
|
27
|
-
permissions: [
|
|
28
|
-
{ serviceId: "org.betterportal.config-manager", viewId: "preview.index", permissions: ["read"] }
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
|
|
32
|
-
export const demoScenarios = [
|
|
33
|
-
{ id: "default", title: "Default", response: { title: "Component Preview", services: [] } }
|
|
34
|
-
];
|
|
35
|
-
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
36
|
-
if (ctx.responseModel)
|
|
37
|
-
return ctx.responseModel;
|
|
38
|
-
return { title: "Component Preview", services: [] };
|
|
39
|
-
});
|
|
40
|
-
//# 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/preview/route.impl.ts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B,CAAC;AACzC,MAAM,CAAC,MAAM,WAAW,GAAG,8DAA8D,CAAC;AAE1F,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,EAAE,SAAS,EAAE,iCAAiC,EAAE,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE;KACjG;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAe,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;AAEtF,MAAM,CAAC,MAAM,aAAa,GAAiC;IACzD,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE;CAC5F,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,mBAAmB,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AACtD,CAAC,CACF,CAAC"}
|
|
@@ -1,104 +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
|
-
openApiServiceId: av.OptionalSchema<av.StringSchema>;
|
|
13
|
-
routes: av.ArraySchema<av.ObjectSchema<{
|
|
14
|
-
id: av.StringSchema;
|
|
15
|
-
kind: av.EnumSchema<readonly ["page", "api"]>;
|
|
16
|
-
path: av.StringSchema;
|
|
17
|
-
serviceId: av.StringSchema;
|
|
18
|
-
viewId: av.StringSchema;
|
|
19
|
-
targetPath: av.OptionalSchema<av.StringSchema>;
|
|
20
|
-
servicePathVariant: av.OptionalSchema<av.StringSchema>;
|
|
21
|
-
fixedParams: av.RecordSchema<av.StringSchema>;
|
|
22
|
-
operations: av.ArraySchema<av.StringSchema>;
|
|
23
|
-
methods: av.ArraySchema<av.StringSchema>;
|
|
24
|
-
query: av.OptionalSchema<av.StringSchema>;
|
|
25
|
-
title: av.OptionalSchema<av.StringSchema>;
|
|
26
|
-
renderable: av.BoolSchema;
|
|
27
|
-
enabled: av.BoolSchema;
|
|
28
|
-
}>>;
|
|
29
|
-
availableServices: av.ArraySchema<av.ObjectSchema<{
|
|
30
|
-
id: av.StringSchema;
|
|
31
|
-
title: av.StringSchema;
|
|
32
|
-
hostname: av.StringSchema;
|
|
33
|
-
serviceId: av.OptionalSchema<av.StringSchema>;
|
|
34
|
-
manifestLoaded: av.BoolSchema;
|
|
35
|
-
views: av.ArraySchema<av.ObjectSchema<{
|
|
36
|
-
viewId: av.StringSchema;
|
|
37
|
-
operationId: av.StringSchema;
|
|
38
|
-
title: av.StringSchema;
|
|
39
|
-
description: av.StringSchema;
|
|
40
|
-
path: av.StringSchema;
|
|
41
|
-
pathVariants: av.ArraySchema<av.StringSchema>;
|
|
42
|
-
paramsSchema: av.OptionalSchema<av.BaseSchema<unknown, import("@betterportal/framework").JsonObject>>;
|
|
43
|
-
method: av.StringSchema;
|
|
44
|
-
renderable: av.BoolSchema;
|
|
45
|
-
dependencies: av.ArraySchema<av.StringSchema>;
|
|
46
|
-
}>>;
|
|
47
|
-
}>>;
|
|
48
|
-
adminApiBase: av.StringSchema;
|
|
49
|
-
serviceBaseUrl: av.StringSchema;
|
|
50
|
-
}>;
|
|
51
|
-
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
52
|
-
export declare const title = "Route Designer";
|
|
53
|
-
export declare const description = "Design navigation routes for apps.";
|
|
54
|
-
export declare const auth: ApiAuthRequirement;
|
|
55
|
-
export declare const cacheHints: CacheHints;
|
|
56
|
-
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
57
|
-
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
58
|
-
title: string;
|
|
59
|
-
apps: {
|
|
60
|
-
id: string;
|
|
61
|
-
title: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
}[];
|
|
64
|
-
routes: {
|
|
65
|
-
id: string;
|
|
66
|
-
kind: "page" | "api";
|
|
67
|
-
path: string;
|
|
68
|
-
serviceId: string;
|
|
69
|
-
viewId: string;
|
|
70
|
-
fixedParams: Record<string, string>;
|
|
71
|
-
operations: string[];
|
|
72
|
-
methods: string[];
|
|
73
|
-
renderable: boolean;
|
|
74
|
-
enabled: boolean;
|
|
75
|
-
targetPath?: string | undefined;
|
|
76
|
-
servicePathVariant?: string | undefined;
|
|
77
|
-
query?: string | undefined;
|
|
78
|
-
title?: string | undefined;
|
|
79
|
-
}[];
|
|
80
|
-
availableServices: {
|
|
81
|
-
id: string;
|
|
82
|
-
title: string;
|
|
83
|
-
hostname: string;
|
|
84
|
-
manifestLoaded: boolean;
|
|
85
|
-
views: {
|
|
86
|
-
viewId: string;
|
|
87
|
-
operationId: string;
|
|
88
|
-
title: string;
|
|
89
|
-
description: string;
|
|
90
|
-
path: string;
|
|
91
|
-
pathVariants: string[];
|
|
92
|
-
method: string;
|
|
93
|
-
renderable: boolean;
|
|
94
|
-
dependencies: string[];
|
|
95
|
-
paramsSchema?: import("@betterportal/framework").JsonObject | undefined;
|
|
96
|
-
}[];
|
|
97
|
-
serviceId?: string | undefined;
|
|
98
|
-
}[];
|
|
99
|
-
adminApiBase: string;
|
|
100
|
-
serviceBaseUrl: string;
|
|
101
|
-
selectedAppId?: string | undefined;
|
|
102
|
-
openApiServiceId?: string | undefined;
|
|
103
|
-
}, unknown, Record<string, unknown>>;
|
|
104
|
-
//# sourceMappingURL=route.impl.d.ts.map
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AA+CjC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASzB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,mBAAmB,CAAC;AACtC,eAAO,MAAM,WAAW,uCAAuC,CAAC;AAEhE,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,71 +0,0 @@
|
|
|
1
|
-
import * as av from "anyvali";
|
|
2
|
-
import { createHandler, JsonObjectSchema } from "@betterportal/framework";
|
|
3
|
-
const RouteItemSchema = av.object({
|
|
4
|
-
id: av.string().minLength(1),
|
|
5
|
-
kind: av.enum_(["page", "api"]).default("page"),
|
|
6
|
-
path: av.string().minLength(1),
|
|
7
|
-
serviceId: av.string().minLength(1),
|
|
8
|
-
viewId: av.string().minLength(1),
|
|
9
|
-
targetPath: av.optional(av.string()),
|
|
10
|
-
servicePathVariant: av.optional(av.string()),
|
|
11
|
-
fixedParams: av.record(av.string()).default({}),
|
|
12
|
-
operations: av.array(av.string()).default([]),
|
|
13
|
-
methods: av.array(av.string()).default([]),
|
|
14
|
-
query: av.optional(av.string()),
|
|
15
|
-
title: av.optional(av.string()),
|
|
16
|
-
renderable: av.bool().default(true),
|
|
17
|
-
enabled: av.bool()
|
|
18
|
-
});
|
|
19
|
-
const AppSummarySchema = av.object({
|
|
20
|
-
id: av.string().minLength(1),
|
|
21
|
-
title: av.string().minLength(1),
|
|
22
|
-
tenantId: av.string().minLength(1)
|
|
23
|
-
});
|
|
24
|
-
const AvailableViewSchema = av.object({
|
|
25
|
-
viewId: av.string().minLength(1),
|
|
26
|
-
operationId: av.string().minLength(1),
|
|
27
|
-
title: av.string(),
|
|
28
|
-
description: av.string(),
|
|
29
|
-
path: av.string(),
|
|
30
|
-
pathVariants: av.array(av.string()).default([]),
|
|
31
|
-
paramsSchema: av.optional(JsonObjectSchema),
|
|
32
|
-
method: av.string().minLength(1),
|
|
33
|
-
renderable: av.bool().default(true),
|
|
34
|
-
dependencies: av.array(av.string()).default([])
|
|
35
|
-
});
|
|
36
|
-
const AvailableServiceSchema = av.object({
|
|
37
|
-
id: av.string().minLength(1),
|
|
38
|
-
title: av.string(),
|
|
39
|
-
hostname: av.string().format("url"),
|
|
40
|
-
serviceId: av.optional(av.string()),
|
|
41
|
-
manifestLoaded: av.bool().default(false),
|
|
42
|
-
views: av.array(AvailableViewSchema).default([])
|
|
43
|
-
});
|
|
44
|
-
export const ResponseSchema = av.object({
|
|
45
|
-
title: av.string().minLength(1),
|
|
46
|
-
apps: av.array(AppSummarySchema),
|
|
47
|
-
selectedAppId: av.optional(av.string()),
|
|
48
|
-
openApiServiceId: av.optional(av.string()),
|
|
49
|
-
routes: av.array(RouteItemSchema),
|
|
50
|
-
availableServices: av.array(AvailableServiceSchema).default([]),
|
|
51
|
-
adminApiBase: av.string().minLength(1),
|
|
52
|
-
serviceBaseUrl: av.string().minLength(1)
|
|
53
|
-
});
|
|
54
|
-
export const title = "Route Designer";
|
|
55
|
-
export const description = "Design navigation routes for apps.";
|
|
56
|
-
export const auth = {
|
|
57
|
-
required: true,
|
|
58
|
-
permissions: [
|
|
59
|
-
{ serviceId: "org.betterportal.config-manager", viewId: "routes.index", permissions: ["read", "create", "update", "delete"] }
|
|
60
|
-
]
|
|
61
|
-
};
|
|
62
|
-
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
|
|
63
|
-
export const demoScenarios = [
|
|
64
|
-
{ id: "default", title: "Default", response: { title: "Route Designer", apps: [], routes: [], availableServices: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
|
|
65
|
-
];
|
|
66
|
-
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
67
|
-
if (ctx.responseModel)
|
|
68
|
-
return ctx.responseModel;
|
|
69
|
-
return { title: "Route Designer", apps: [], routes: [], availableServices: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
|
|
70
|
-
});
|
|
71
|
-
//# 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/routes/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EACb,gBAAgB,EAIjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,eAAe,GAAG,EAAE,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC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