@betterportal/config-manager 0.0.1 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/plugins/service-betterportal-config-manager/.bp-generated/registry.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js +96 -45
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.js +3 -0
- 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 +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{config/_theme.bootstrap1/index.d.ts → auth/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/{index.js → GET.js} +19 -19
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts +1 -95
- 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 -77
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts +96 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js +78 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{auth/_theme.bootstrap1/index.d.ts → config/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{routes/_theme.bootstrap1/index.d.ts → config/_theme.embedded/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/{_theme.embedded.js → _theme.embedded/GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts +1 -42
- 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 -67
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts +43 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js +68 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{services/_theme.bootstrap1/index.d.ts → fragments/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts +1 -31
- 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 -31
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts +32 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js +32 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts +1 -59
- 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 -47
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts +60 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js +48 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts +1 -47
- 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 -39
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts +48 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js +40 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{settings/_theme.bootstrap1/index.d.ts → routes/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts +1 -79
- 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 -58
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +80 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +59 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{fragments/_theme.bootstrap1/index.d.ts → services/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts +1 -127
- 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 -88
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts +128 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js +89 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.d.ts +5 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts +1 -88
- 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 -92
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts +89 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js +93 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.d.ts +4 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/{index.js → GET.js} +10 -10
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts +1 -179
- 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 -404
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts +180 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js +405 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.js +52 -0
- package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +4 -0
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/syncApi.js.map +1 -1
- package/lib/schemas/service-betterportal-config-manager.json +1 -1
- package/lib/schemas/service-betterportal-config-manager.plugin.json +1 -1
- package/package.json +11 -11
- package/bsb-tests.json +0 -14
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.d.ts +0 -5
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.d.ts +0 -4
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.js.map +0 -1
|
@@ -1,89 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import { type ApiAuthRequirement, type CacheHints, type DemoScenario } from "@betterportal/framework";
|
|
4
|
-
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
-
title: av.StringSchema;
|
|
6
|
-
tenant: av.ObjectSchema<{
|
|
7
|
-
id: av.StringSchema;
|
|
8
|
-
title: av.StringSchema;
|
|
9
|
-
}>;
|
|
10
|
-
app: av.ObjectSchema<{
|
|
11
|
-
id: av.StringSchema;
|
|
12
|
-
tenantId: av.StringSchema;
|
|
13
|
-
title: av.StringSchema;
|
|
14
|
-
hostnames: av.ArraySchema<av.StringSchema>;
|
|
15
|
-
}>;
|
|
16
|
-
idsVisible: av.BoolSchema;
|
|
17
|
-
managementDiscoveryUrl: av.StringSchema;
|
|
18
|
-
automationCatalogUrl: av.StringSchema;
|
|
19
|
-
endpoints: av.ObjectSchema<{
|
|
20
|
-
current: av.StringSchema;
|
|
21
|
-
services: av.StringSchema;
|
|
22
|
-
activateService: av.StringSchema;
|
|
23
|
-
routes: av.StringSchema;
|
|
24
|
-
fragments: av.StringSchema;
|
|
25
|
-
theme: av.StringSchema;
|
|
26
|
-
webhooks: av.StringSchema;
|
|
27
|
-
webhookEvents: av.StringSchema;
|
|
28
|
-
}>;
|
|
29
|
-
sharedServices: av.ArraySchema<av.ObjectSchema<{
|
|
30
|
-
id: av.StringSchema;
|
|
31
|
-
serviceId: av.OptionalSchema<av.StringSchema>;
|
|
32
|
-
title: av.StringSchema;
|
|
33
|
-
description: av.OptionalSchema<av.StringSchema>;
|
|
34
|
-
baseUrl: av.StringSchema;
|
|
35
|
-
category: av.OptionalSchema<av.StringSchema>;
|
|
36
|
-
tags: av.ArraySchema<av.StringSchema>;
|
|
37
|
-
enabled: av.BoolSchema;
|
|
38
|
-
active: av.BoolSchema;
|
|
39
|
-
}>>;
|
|
40
|
-
routeCount: av.IntSchema;
|
|
41
|
-
fragmentCount: av.IntSchema;
|
|
42
|
-
}>;
|
|
43
|
-
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
44
|
-
export declare const title = "App Settings";
|
|
45
|
-
export declare const description = "Manage the current BetterPortal app through the user management API.";
|
|
46
|
-
export declare const auth: ApiAuthRequirement;
|
|
47
|
-
export declare const dependencies: string[];
|
|
48
|
-
export declare const cacheHints: CacheHints;
|
|
49
|
-
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
50
|
-
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
51
|
-
title: string;
|
|
52
|
-
tenant: {
|
|
53
|
-
id: string;
|
|
54
|
-
title: string;
|
|
55
|
-
};
|
|
56
|
-
app: {
|
|
57
|
-
id: string;
|
|
58
|
-
tenantId: string;
|
|
59
|
-
title: string;
|
|
60
|
-
hostnames: string[];
|
|
61
|
-
};
|
|
62
|
-
idsVisible: boolean;
|
|
63
|
-
managementDiscoveryUrl: string;
|
|
64
|
-
automationCatalogUrl: string;
|
|
65
|
-
endpoints: {
|
|
66
|
-
current: string;
|
|
67
|
-
services: string;
|
|
68
|
-
activateService: string;
|
|
69
|
-
routes: string;
|
|
70
|
-
fragments: string;
|
|
71
|
-
theme: string;
|
|
72
|
-
webhooks: string;
|
|
73
|
-
webhookEvents: string;
|
|
74
|
-
};
|
|
75
|
-
sharedServices: {
|
|
76
|
-
id: string;
|
|
77
|
-
title: string;
|
|
78
|
-
baseUrl: string;
|
|
79
|
-
tags: string[];
|
|
80
|
-
enabled: boolean;
|
|
81
|
-
active: boolean;
|
|
82
|
-
serviceId?: string | undefined;
|
|
83
|
-
description?: string | undefined;
|
|
84
|
-
category?: string | undefined;
|
|
85
|
-
}[];
|
|
86
|
-
routeCount: number;
|
|
87
|
-
fragmentCount: number;
|
|
88
|
-
}, unknown, Record<string, unknown>>;
|
|
1
|
+
export { title, description, auth, dependencies, cacheHints, demoScenarios } from "./route.impl.js";
|
|
89
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,93 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { createHandler } from "@betterportal/framework";
|
|
3
|
-
const TenantSchema = av.object({
|
|
4
|
-
id: av.string().minLength(1),
|
|
5
|
-
title: av.string().minLength(1)
|
|
6
|
-
}, { unknownKeys: "strip" });
|
|
7
|
-
const AppSchema = av.object({
|
|
8
|
-
id: av.string().minLength(1),
|
|
9
|
-
tenantId: av.string().minLength(1),
|
|
10
|
-
title: av.string().minLength(1),
|
|
11
|
-
hostnames: av.array(av.string()).default([])
|
|
12
|
-
}, { unknownKeys: "strip" });
|
|
13
|
-
const SharedServiceSchema = av.object({
|
|
14
|
-
id: av.string().minLength(1),
|
|
15
|
-
serviceId: av.optional(av.string().minLength(1)),
|
|
16
|
-
title: av.string().minLength(1),
|
|
17
|
-
description: av.optional(av.string()),
|
|
18
|
-
baseUrl: av.string().minLength(1),
|
|
19
|
-
category: av.optional(av.string()),
|
|
20
|
-
tags: av.array(av.string()).default([]),
|
|
21
|
-
enabled: av.bool().default(true),
|
|
22
|
-
active: av.bool().default(false)
|
|
23
|
-
}, { unknownKeys: "strip" });
|
|
24
|
-
const EndpointSchema = av.object({
|
|
25
|
-
current: av.string().minLength(1),
|
|
26
|
-
services: av.string().minLength(1),
|
|
27
|
-
activateService: av.string().minLength(1),
|
|
28
|
-
routes: av.string().minLength(1),
|
|
29
|
-
fragments: av.string().minLength(1),
|
|
30
|
-
theme: av.string().minLength(1),
|
|
31
|
-
webhooks: av.string().minLength(1),
|
|
32
|
-
webhookEvents: av.string().minLength(1)
|
|
33
|
-
}, { unknownKeys: "strip" });
|
|
34
|
-
export const ResponseSchema = av.object({
|
|
35
|
-
title: av.string().minLength(1),
|
|
36
|
-
tenant: TenantSchema,
|
|
37
|
-
app: AppSchema,
|
|
38
|
-
idsVisible: av.bool().default(true),
|
|
39
|
-
managementDiscoveryUrl: av.string().minLength(1),
|
|
40
|
-
automationCatalogUrl: av.string().minLength(1),
|
|
41
|
-
endpoints: EndpointSchema,
|
|
42
|
-
sharedServices: av.array(SharedServiceSchema).default([]),
|
|
43
|
-
routeCount: av.int().min(0),
|
|
44
|
-
fragmentCount: av.int().min(0)
|
|
45
|
-
}, { unknownKeys: "strip" });
|
|
46
|
-
export const title = "App Settings";
|
|
47
|
-
export const description = "Manage the current BetterPortal app through the user management API.";
|
|
48
|
-
export const auth = {
|
|
49
|
-
required: true,
|
|
50
|
-
permissions: [
|
|
51
|
-
{ serviceId: "service.betterportal.config-manager", viewId: "settings.index", permissions: ["read", "update"] }
|
|
52
|
-
]
|
|
53
|
-
};
|
|
54
|
-
export const dependencies = [
|
|
55
|
-
"services.index",
|
|
56
|
-
"routes.index",
|
|
57
|
-
"fragments.index",
|
|
58
|
-
"config.index"
|
|
59
|
-
];
|
|
60
|
-
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin", "referer"] };
|
|
61
|
-
export const demoScenarios = [
|
|
62
|
-
{
|
|
63
|
-
id: "default",
|
|
64
|
-
title: "Default",
|
|
65
|
-
response: {
|
|
66
|
-
title: "App Settings",
|
|
67
|
-
tenant: { id: "tenant-id", title: "Tenant" },
|
|
68
|
-
app: { id: "app-id", tenantId: "tenant-id", title: "App", hostnames: [] },
|
|
69
|
-
idsVisible: true,
|
|
70
|
-
managementDiscoveryUrl: "/.well-known/bp/management",
|
|
71
|
-
automationCatalogUrl: "/.well-known/bp/automation/catalog",
|
|
72
|
-
endpoints: {
|
|
73
|
-
current: "/.well-known/bp/manage/current",
|
|
74
|
-
services: "/.well-known/bp/manage/services",
|
|
75
|
-
activateService: "/.well-known/bp/manage/services/activate",
|
|
76
|
-
routes: "/.well-known/bp/manage/routes",
|
|
77
|
-
fragments: "/.well-known/bp/manage/fragments",
|
|
78
|
-
theme: "/.well-known/bp/manage/theme",
|
|
79
|
-
webhooks: "/.well-known/bp/manage/webhooks/targets",
|
|
80
|
-
webhookEvents: "/.well-known/bp/manage/webhooks/events"
|
|
81
|
-
},
|
|
82
|
-
sharedServices: [],
|
|
83
|
-
routeCount: 0,
|
|
84
|
-
fragmentCount: 0
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
];
|
|
88
|
-
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
89
|
-
if (ctx.responseModel)
|
|
90
|
-
return ctx.responseModel;
|
|
91
|
-
return demoScenarios[0].response;
|
|
92
|
-
});
|
|
1
|
+
export { title, description, auth, dependencies, cacheHints, demoScenarios } from "./route.impl.js";
|
|
93
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import type { Infer } from "anyvali";
|
|
3
|
+
import { type ApiAuthRequirement, type CacheHints, type DemoScenario } from "@betterportal/framework";
|
|
4
|
+
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
+
title: av.StringSchema;
|
|
6
|
+
tenant: av.ObjectSchema<{
|
|
7
|
+
id: av.StringSchema;
|
|
8
|
+
title: av.StringSchema;
|
|
9
|
+
}>;
|
|
10
|
+
app: av.ObjectSchema<{
|
|
11
|
+
id: av.StringSchema;
|
|
12
|
+
tenantId: av.StringSchema;
|
|
13
|
+
title: av.StringSchema;
|
|
14
|
+
hostnames: av.ArraySchema<av.StringSchema>;
|
|
15
|
+
}>;
|
|
16
|
+
idsVisible: av.BoolSchema;
|
|
17
|
+
managementDiscoveryUrl: av.StringSchema;
|
|
18
|
+
automationCatalogUrl: av.StringSchema;
|
|
19
|
+
endpoints: av.ObjectSchema<{
|
|
20
|
+
current: av.StringSchema;
|
|
21
|
+
services: av.StringSchema;
|
|
22
|
+
activateService: av.StringSchema;
|
|
23
|
+
routes: av.StringSchema;
|
|
24
|
+
fragments: av.StringSchema;
|
|
25
|
+
theme: av.StringSchema;
|
|
26
|
+
webhooks: av.StringSchema;
|
|
27
|
+
webhookEvents: av.StringSchema;
|
|
28
|
+
}>;
|
|
29
|
+
sharedServices: av.ArraySchema<av.ObjectSchema<{
|
|
30
|
+
id: av.StringSchema;
|
|
31
|
+
serviceId: av.OptionalSchema<av.StringSchema>;
|
|
32
|
+
title: av.StringSchema;
|
|
33
|
+
description: av.OptionalSchema<av.StringSchema>;
|
|
34
|
+
baseUrl: av.StringSchema;
|
|
35
|
+
category: av.OptionalSchema<av.StringSchema>;
|
|
36
|
+
tags: av.ArraySchema<av.StringSchema>;
|
|
37
|
+
enabled: av.BoolSchema;
|
|
38
|
+
active: av.BoolSchema;
|
|
39
|
+
}>>;
|
|
40
|
+
routeCount: av.IntSchema;
|
|
41
|
+
fragmentCount: av.IntSchema;
|
|
42
|
+
}>;
|
|
43
|
+
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
44
|
+
export declare const title = "App Settings";
|
|
45
|
+
export declare const description = "Manage the current BetterPortal app through the user management API.";
|
|
46
|
+
export declare const auth: ApiAuthRequirement;
|
|
47
|
+
export declare const dependencies: string[];
|
|
48
|
+
export declare const cacheHints: CacheHints;
|
|
49
|
+
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
50
|
+
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
51
|
+
title: string;
|
|
52
|
+
tenant: {
|
|
53
|
+
id: string;
|
|
54
|
+
title: string;
|
|
55
|
+
};
|
|
56
|
+
app: {
|
|
57
|
+
id: string;
|
|
58
|
+
tenantId: string;
|
|
59
|
+
title: string;
|
|
60
|
+
hostnames: string[];
|
|
61
|
+
};
|
|
62
|
+
idsVisible: boolean;
|
|
63
|
+
managementDiscoveryUrl: string;
|
|
64
|
+
automationCatalogUrl: string;
|
|
65
|
+
endpoints: {
|
|
66
|
+
current: string;
|
|
67
|
+
services: string;
|
|
68
|
+
activateService: string;
|
|
69
|
+
routes: string;
|
|
70
|
+
fragments: string;
|
|
71
|
+
theme: string;
|
|
72
|
+
webhooks: string;
|
|
73
|
+
webhookEvents: string;
|
|
74
|
+
};
|
|
75
|
+
sharedServices: {
|
|
76
|
+
id: string;
|
|
77
|
+
title: string;
|
|
78
|
+
baseUrl: string;
|
|
79
|
+
tags: string[];
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
active: boolean;
|
|
82
|
+
serviceId?: string | undefined;
|
|
83
|
+
description?: string | undefined;
|
|
84
|
+
category?: string | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
routeCount: number;
|
|
87
|
+
fragmentCount: number;
|
|
88
|
+
}, unknown, Record<string, unknown>>;
|
|
89
|
+
//# sourceMappingURL=route.impl.d.ts.map
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/settings/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,EACf,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAqCjC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWC,CAAC;AAC7B,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,iBAAiB,CAAC;AACpC,eAAO,MAAM,WAAW,yEAAyE,CAAC;AAElG,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,YAAY,UAKxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAuE,CAAC;AAEjG,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EA0BrD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAMrB,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import { createHandler } from "@betterportal/framework";
|
|
3
|
+
const TenantSchema = av.object({
|
|
4
|
+
id: av.string().minLength(1),
|
|
5
|
+
title: av.string().minLength(1)
|
|
6
|
+
}, { unknownKeys: "strip" });
|
|
7
|
+
const AppSchema = av.object({
|
|
8
|
+
id: av.string().minLength(1),
|
|
9
|
+
tenantId: av.string().minLength(1),
|
|
10
|
+
title: av.string().minLength(1),
|
|
11
|
+
hostnames: av.array(av.string()).default([])
|
|
12
|
+
}, { unknownKeys: "strip" });
|
|
13
|
+
const SharedServiceSchema = av.object({
|
|
14
|
+
id: av.string().minLength(1),
|
|
15
|
+
serviceId: av.optional(av.string().minLength(1)),
|
|
16
|
+
title: av.string().minLength(1),
|
|
17
|
+
description: av.optional(av.string()),
|
|
18
|
+
baseUrl: av.string().minLength(1),
|
|
19
|
+
category: av.optional(av.string()),
|
|
20
|
+
tags: av.array(av.string()).default([]),
|
|
21
|
+
enabled: av.bool().default(true),
|
|
22
|
+
active: av.bool().default(false)
|
|
23
|
+
}, { unknownKeys: "strip" });
|
|
24
|
+
const EndpointSchema = av.object({
|
|
25
|
+
current: av.string().minLength(1),
|
|
26
|
+
services: av.string().minLength(1),
|
|
27
|
+
activateService: av.string().minLength(1),
|
|
28
|
+
routes: av.string().minLength(1),
|
|
29
|
+
fragments: av.string().minLength(1),
|
|
30
|
+
theme: av.string().minLength(1),
|
|
31
|
+
webhooks: av.string().minLength(1),
|
|
32
|
+
webhookEvents: av.string().minLength(1)
|
|
33
|
+
}, { unknownKeys: "strip" });
|
|
34
|
+
export const ResponseSchema = av.object({
|
|
35
|
+
title: av.string().minLength(1),
|
|
36
|
+
tenant: TenantSchema,
|
|
37
|
+
app: AppSchema,
|
|
38
|
+
idsVisible: av.bool().default(true),
|
|
39
|
+
managementDiscoveryUrl: av.string().minLength(1),
|
|
40
|
+
automationCatalogUrl: av.string().minLength(1),
|
|
41
|
+
endpoints: EndpointSchema,
|
|
42
|
+
sharedServices: av.array(SharedServiceSchema).default([]),
|
|
43
|
+
routeCount: av.int().min(0),
|
|
44
|
+
fragmentCount: av.int().min(0)
|
|
45
|
+
}, { unknownKeys: "strip" });
|
|
46
|
+
export const title = "App Settings";
|
|
47
|
+
export const description = "Manage the current BetterPortal app through the user management API.";
|
|
48
|
+
export const auth = {
|
|
49
|
+
required: true,
|
|
50
|
+
permissions: [
|
|
51
|
+
{ serviceId: "service.betterportal.config-manager", viewId: "settings.index", permissions: ["read", "update"] }
|
|
52
|
+
]
|
|
53
|
+
};
|
|
54
|
+
export const dependencies = [
|
|
55
|
+
"services.index",
|
|
56
|
+
"routes.index",
|
|
57
|
+
"fragments.index",
|
|
58
|
+
"config.index"
|
|
59
|
+
];
|
|
60
|
+
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin", "referer"] };
|
|
61
|
+
export const demoScenarios = [
|
|
62
|
+
{
|
|
63
|
+
id: "default",
|
|
64
|
+
title: "Default",
|
|
65
|
+
response: {
|
|
66
|
+
title: "App Settings",
|
|
67
|
+
tenant: { id: "tenant-id", title: "Tenant" },
|
|
68
|
+
app: { id: "app-id", tenantId: "tenant-id", title: "App", hostnames: [] },
|
|
69
|
+
idsVisible: true,
|
|
70
|
+
managementDiscoveryUrl: "/.well-known/bp/management",
|
|
71
|
+
automationCatalogUrl: "/.well-known/bp/automation/catalog",
|
|
72
|
+
endpoints: {
|
|
73
|
+
current: "/.well-known/bp/manage/current",
|
|
74
|
+
services: "/.well-known/bp/manage/services",
|
|
75
|
+
activateService: "/.well-known/bp/manage/services/activate",
|
|
76
|
+
routes: "/.well-known/bp/manage/routes",
|
|
77
|
+
fragments: "/.well-known/bp/manage/fragments",
|
|
78
|
+
theme: "/.well-known/bp/manage/theme",
|
|
79
|
+
webhooks: "/.well-known/bp/manage/webhooks/targets",
|
|
80
|
+
webhookEvents: "/.well-known/bp/manage/webhooks/events"
|
|
81
|
+
},
|
|
82
|
+
sharedServices: [],
|
|
83
|
+
routeCount: 0,
|
|
84
|
+
fragmentCount: 0
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
89
|
+
if (ctx.responseModel)
|
|
90
|
+
return ctx.responseModel;
|
|
91
|
+
return demoScenarios[0].response;
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=route.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,YAAY,GAAG,EAAE,CAAC,MAAM,CAAC;IAC7B,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CAChC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,SAAS,GAAG,EAAE,CAAC,MAAM,CAAC;IAC1B,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAClC,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC7C,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,mBAAmB,GAAG,EAAE,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,C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,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DELETE.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DELETE.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POST.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POST.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PUT.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PUT.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAsDrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA4PzD"}
|
|
@@ -21,20 +21,20 @@ function tenantsScript(apiBase, serviceUrl) {
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
document.querySelectorAll("[data-bp-edit-tenant]").forEach((btn) => {
|
|
24
|
-
btn.addEventListener("click", () => {
|
|
25
|
-
const data = JSON.parse(btn.dataset.bpEditTenant);
|
|
24
|
+
btn.addEventListener("click", () => {
|
|
25
|
+
const data = JSON.parse(btn.dataset.bpEditTenant);
|
|
26
26
|
const form = document.getElementById("bp-edit-tenant-form");
|
|
27
27
|
if (!form) return;
|
|
28
28
|
form.querySelector("[name=tenantId]").value = data.id;
|
|
29
29
|
form.querySelector("[name=title]").value = data.title;
|
|
30
30
|
form.querySelector("[name=slug]").value = data.slug;
|
|
31
31
|
form.querySelector("[name=active]").checked = data.active;
|
|
32
|
-
if (window.htmx) window.htmx.process(form);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
document.querySelectorAll("[data-bp-edit-app]").forEach((btn) => {
|
|
37
|
-
btn.addEventListener("click", () => {
|
|
32
|
+
if (window.htmx) window.htmx.process(form);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
document.querySelectorAll("[data-bp-edit-app]").forEach((btn) => {
|
|
37
|
+
btn.addEventListener("click", () => {
|
|
38
38
|
const data = JSON.parse(btn.dataset.bpEditApp);
|
|
39
39
|
const form = document.getElementById("bp-edit-app-form");
|
|
40
40
|
if (!form) return;
|
|
@@ -49,7 +49,7 @@ function tenantsScript(apiBase, serviceUrl) {
|
|
|
49
49
|
authSelect.value = data.authServiceId || "";
|
|
50
50
|
if (window.htmx) window.htmx.process(form);
|
|
51
51
|
});
|
|
52
|
-
});
|
|
52
|
+
});
|
|
53
53
|
})()`);
|
|
54
54
|
}
|
|
55
55
|
export function render(data) {
|
|
@@ -58,4 +58,4 @@ export function render(data) {
|
|
|
58
58
|
const tenantsPath = `${serviceUrl}/tenants`;
|
|
59
59
|
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsx("h2", { class: "mb-4", children: data.title }), _jsxs("div", { class: "d-flex justify-content-between align-items-center mb-3", children: [_jsx("h4", { class: "mb-0", children: "Tenants" }), _jsx("button", { class: "btn btn-sm btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-tenant-panel", children: "+ Add Tenant" })] }), data.tenants.length === 0 ? (_jsx("div", { class: "alert alert-secondary mb-4", children: "No tenants configured" })) : (_jsx("div", { class: "table-responsive mb-4", children: _jsxs("table", { class: "table table-sm table-hover align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "ID" }), _jsx("th", { children: "Slug" }), _jsx("th", { children: "Title" }), _jsx("th", { children: "Services" }), _jsx("th", { children: "Status" }), _jsx("th", {})] }) }), _jsx("tbody", { children: data.tenants.map((t) => (_jsxs("tr", { children: [_jsx("td", { class: "fw-semibold font-monospace small", children: t.id }), _jsx("td", { children: t.slug }), _jsx("td", { children: t.title }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-secondary", children: t.serviceCount }) }), _jsx("td", { children: _jsx("span", { class: `badge ${t.active ? "text-bg-success" : "text-bg-secondary"}`, children: t.active ? "active" : "inactive" }) }), _jsx("td", { children: _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-edit-tenant-panel", "data-bp-edit-tenant": JSON.stringify(t), children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${tenantsPath}?entity=tenant&id=${encodeURIComponent(t.id)}`, "hx-confirm": `Delete tenant ${t.id} and all its apps?`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: "x" })] }) })] }))) })] }) })), _jsxs("div", { class: "d-flex justify-content-between align-items-center mb-3", children: [_jsx("h4", { class: "mb-0", children: "Apps" }), _jsx("button", { class: "btn btn-sm btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-app-panel", children: "+ Add App" })] }), data.apps.length === 0 ? (_jsx("div", { class: "alert alert-secondary", children: "No apps configured" })) : (_jsx("div", { class: "row g-3 mb-4", children: data.apps.map((app) => (_jsx("div", { class: "col-12 col-lg-6", children: _jsx("div", { class: "card border-0 shadow-sm h-100", children: _jsxs("div", { class: "card-body", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-start mb-2", children: [_jsxs("div", { children: [_jsx("h5", { class: "mb-0", children: app.title }), _jsx("div", { class: "small text-secondary font-monospace", children: app.id })] }), _jsxs("div", { class: "d-flex gap-1", children: [_jsx("span", { class: "badge text-bg-secondary", children: app.shellServiceId ? "shell" : "no shell" }), _jsx("span", { class: "badge text-bg-secondary", children: app.authServiceId ? "auth" : "no auth" })] })] }), _jsxs("div", { class: "small mb-1", children: [_jsx("strong", { children: "Tenant:" }), " ", app.tenantId] }), _jsxs("div", { class: "small mb-1", children: [_jsx("strong", { children: "Hostnames:" }), " ", app.hostnames.join(", ")] }), _jsxs("div", { class: "small mb-1", children: [_jsx("strong", { children: "Shell:" }), " ", _jsx("span", { class: "font-monospace", children: app.shellServiceId ?? "not selected" })] }), _jsxs("div", { class: "small mb-1", children: [_jsx("strong", { children: "Auth:" }), " ", _jsx("span", { class: "font-monospace", children: app.authServiceId ?? "not selected" })] }), _jsxs("div", { class: "small mb-2", children: [_jsx("strong", { children: "Routes:" }), " ", app.routeCount] }), _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-edit-app-panel", "data-bp-edit-app": JSON.stringify(app), children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${tenantsPath}?entity=app&id=${encodeURIComponent(app.id)}`, "hx-confirm": `Delete app ${app.id}?`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: "Delete" })] })] }) }) }))) })), _jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-tenant-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add Tenant" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-add-tenant-form", "hx-post": tenantsPath, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "entity", value: "tenant" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Tenant Name" }), _jsx("input", { type: "text", class: "form-control", name: "title", placeholder: "My Organization", required: true }), _jsx("div", { class: "form-text", children: "ID is generated automatically." })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-tenant-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Create Tenant" })] }) })] }), _jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-edit-tenant-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit Tenant" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-edit-tenant-form", "hx-put": tenantsPath, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "entity", value: "tenant" }), _jsx("input", { type: "hidden", name: "tenantId" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Slug" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "slug", required: true })] }), _jsxs("div", { class: "form-check form-switch mb-3", children: [_jsx("input", { type: "hidden", name: "active", value: "false" }), _jsx("input", { class: "form-check-input", type: "checkbox", name: "active", value: "true", id: "bp-tenant-active" }), _jsx("label", { class: "form-check-label", for: "bp-tenant-active", children: "Active" })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-edit-tenant-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Save" })] }) })] }), _jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-app-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add App" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-add-app-form", "hx-post": tenantsPath, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "entity", value: "app" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Tenant" }), _jsxs("select", { class: "form-select", name: "tenantId", required: true, children: [_jsx("option", { value: "", children: "Select tenant..." }), data.tenants.map((t) => (_jsx("option", { value: t.id, children: t.title })))] })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "App Name" }), _jsx("input", { type: "text", class: "form-control", name: "title", placeholder: "Web App", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Hostname" }), _jsx("input", { type: "text", class: "form-control", name: "hostname", placeholder: "localhost:3100", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Shell service" }), _jsxs("select", { class: "form-select", name: "shellServiceId", "data-bp-tenant-scoped": "", children: [_jsx("option", { value: "", children: "No shell selected" }), data.shellServices.map((service) => (_jsx("option", { value: service.id, "data-bp-tenant-id": service.tenantId, children: service.title })))] })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Auth provider" }), _jsxs("select", { class: "form-select", name: "authServiceId", "data-bp-tenant-scoped": "", children: [_jsx("option", { value: "", children: "No auth provider" }), data.authServices.map((service) => (_jsx("option", { value: service.id, "data-bp-tenant-id": service.tenantId, children: service.title })))] })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-app-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Create App" })] }) })] }), _jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-edit-app-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit App" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-edit-app-form", "hx-put": tenantsPath, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "entity", value: "app" }), _jsx("input", { type: "hidden", name: "appId" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Slug" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "slug", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Hostnames (comma-separated)" }), _jsx("input", { type: "text", class: "form-control", name: "hostnames", placeholder: "localhost:3100, example.com", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Shell service" }), _jsxs("select", { class: "form-select", name: "shellServiceId", "data-bp-tenant-scoped": "", children: [_jsx("option", { value: "", children: "No shell selected" }), data.shellServices.map((service) => (_jsx("option", { value: service.id, "data-bp-tenant-id": service.tenantId, children: service.title })))] }), _jsx("div", { class: "form-text", children: "Only theme-capable services registered for this app's tenant should be selected." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Auth provider" }), _jsxs("select", { class: "form-select", name: "authServiceId", "data-bp-tenant-scoped": "", children: [_jsx("option", { value: "", children: "No auth provider" }), data.authServices.map((service) => (_jsx("option", { value: service.id, "data-bp-tenant-id": service.tenantId, children: service.title })))] }), _jsx("div", { class: "form-text", children: "Only auth-capable services registered for this app's tenant should be selected." })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-edit-app-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Save" })] }) })] }), _jsx("script", { children: tenantsScript(apiBase, serviceUrl) })] }));
|
|
60
60
|
}
|
|
61
|
-
//# sourceMappingURL=
|
|
61
|
+
//# sourceMappingURL=GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,aAAa,CAAC,OAAe,EAAE,UAAkB;IACxD,OAAO,EAAE,CAAC;sBACU,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;yBACpB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8C5C,CAAC,CAAC;AACT,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC;IAC7C,MAAM,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC;IAC/C,MAAM,WAAW,GAAG,GAAG,UAAU,UAAU,CAAC;IAE5C,OAAO,CACL,eAAK,KAAK,EAAC,sBAAsB,aAC/B,aAAI,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,KAAK,GAAM,EAGlC,eAAK,KAAK,EAAC,wDAAwD,aACjE,aAAI,KAAK,EAAC,MAAM,wBAAa,EAC7B,iBAAQ,KAAK,EAAC,wBAAwB,oBAAgB,WAAW,oBAAgB,sBAAsB,6BAAsB,IACzH,EAEL,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC3B,cAAK,KAAK,EAAC,4BAA4B,sCAA4B,CACpE,CAAC,CAAC,CAAC,CACF,cAAK,KAAK,EAAC,uBAAuB,YAChC,iBAAO,KAAK,EAAC,yCAAyC,aACpD,0BAAO,yBAAI,8BAAW,EAAA,gCAAa,EAAA,iCAAc,EAAA,oCAAiB,EAAA,kCAAe,EAAA,cAAS,IAAK,GAA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