@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.
Files changed (201) hide show
  1. package/lib/.bsb/clients/service-betterportal-config-manager.d.ts +1 -1
  2. package/lib/.bsb/clients/service-betterportal-config-manager.js +1 -1
  3. package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.d.ts.map +1 -1
  4. package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js +96 -45
  5. package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js.map +1 -1
  6. package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts.map +1 -1
  7. package/lib/plugins/service-betterportal-config-manager/adminApi.js +3 -0
  8. package/lib/plugins/service-betterportal-config-manager/adminApi.js.map +1 -1
  9. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts +3 -0
  10. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts.map +1 -0
  11. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js +3 -0
  12. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js.map +1 -0
  13. package/lib/plugins/service-betterportal-config-manager/bp-routes/{config/_theme.bootstrap1/index.d.ts → auth/_theme.bootstrap1/GET.d.ts} +2 -2
  14. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.d.ts.map +1 -0
  15. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/{index.js → GET.js} +19 -19
  16. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.js.map +1 -0
  17. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts +1 -95
  18. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts.map +1 -1
  19. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js +1 -77
  20. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js.map +1 -1
  21. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts +96 -0
  22. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts.map +1 -0
  23. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js +78 -0
  24. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js.map +1 -0
  25. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts +3 -0
  26. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts.map +1 -0
  27. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js +3 -0
  28. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js.map +1 -0
  29. package/lib/plugins/service-betterportal-config-manager/bp-routes/{auth/_theme.bootstrap1/index.d.ts → config/_theme.bootstrap1/GET.d.ts} +2 -2
  30. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/GET.d.ts.map +1 -0
  31. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/{index.js → GET.js} +1 -1
  32. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/GET.js.map +1 -0
  33. package/lib/plugins/service-betterportal-config-manager/bp-routes/{routes/_theme.bootstrap1/index.d.ts → config/_theme.embedded/GET.d.ts} +2 -2
  34. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded/GET.d.ts.map +1 -0
  35. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/{_theme.embedded.js → _theme.embedded/GET.js} +1 -1
  36. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded/GET.js.map +1 -0
  37. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts +1 -42
  38. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts.map +1 -1
  39. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js +1 -67
  40. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js.map +1 -1
  41. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts +43 -0
  42. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts.map +1 -0
  43. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js +68 -0
  44. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js.map +1 -0
  45. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts +3 -0
  46. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts.map +1 -0
  47. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js +3 -0
  48. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js.map +1 -0
  49. package/lib/plugins/service-betterportal-config-manager/bp-routes/{services/_theme.bootstrap1/index.d.ts → fragments/_theme.bootstrap1/GET.d.ts} +2 -2
  50. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.d.ts.map +1 -0
  51. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/{index.js → GET.js} +1 -1
  52. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.js.map +1 -0
  53. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts +1 -31
  54. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts.map +1 -1
  55. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js +1 -31
  56. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js.map +1 -1
  57. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts +32 -0
  58. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map +1 -0
  59. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js +32 -0
  60. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map +1 -0
  61. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts +3 -0
  62. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts.map +1 -0
  63. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js +3 -0
  64. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js.map +1 -0
  65. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
  66. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.d.ts.map +1 -0
  67. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/{index.js → GET.js} +1 -1
  68. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.js.map +1 -0
  69. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts +1 -59
  70. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts.map +1 -1
  71. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js +1 -47
  72. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js.map +1 -1
  73. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts +60 -0
  74. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts.map +1 -0
  75. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js +48 -0
  76. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js.map +1 -0
  77. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts +3 -0
  78. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts.map +1 -0
  79. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js +3 -0
  80. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js.map +1 -0
  81. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
  82. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.d.ts.map +1 -0
  83. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/{index.js → GET.js} +1 -1
  84. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.js.map +1 -0
  85. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts +1 -47
  86. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts.map +1 -1
  87. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js +1 -39
  88. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js.map +1 -1
  89. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts +48 -0
  90. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map +1 -0
  91. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js +40 -0
  92. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js.map +1 -0
  93. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts +3 -0
  94. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts.map +1 -0
  95. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js +3 -0
  96. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js.map +1 -0
  97. package/lib/plugins/service-betterportal-config-manager/bp-routes/{settings/_theme.bootstrap1/index.d.ts → routes/_theme.bootstrap1/GET.d.ts} +2 -2
  98. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.d.ts.map +1 -0
  99. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/{index.js → GET.js} +1 -1
  100. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.js.map +1 -0
  101. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts +1 -79
  102. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts.map +1 -1
  103. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js +1 -58
  104. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js.map +1 -1
  105. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +80 -0
  106. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +1 -0
  107. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +59 -0
  108. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +1 -0
  109. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts +3 -0
  110. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts.map +1 -0
  111. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js +3 -0
  112. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js.map +1 -0
  113. package/lib/plugins/service-betterportal-config-manager/bp-routes/{fragments/_theme.bootstrap1/index.d.ts → services/_theme.bootstrap1/GET.d.ts} +2 -2
  114. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.d.ts.map +1 -0
  115. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/{index.js → GET.js} +1 -1
  116. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.js.map +1 -0
  117. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts +1 -127
  118. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts.map +1 -1
  119. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js +1 -88
  120. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js.map +1 -1
  121. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts +128 -0
  122. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts.map +1 -0
  123. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js +89 -0
  124. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js.map +1 -0
  125. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts +3 -0
  126. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts.map +1 -0
  127. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js +3 -0
  128. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js.map +1 -0
  129. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.d.ts +5 -0
  130. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.d.ts.map +1 -0
  131. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/{index.js → GET.js} +1 -1
  132. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.js.map +1 -0
  133. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts +1 -88
  134. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts.map +1 -1
  135. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js +1 -92
  136. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js.map +1 -1
  137. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts +89 -0
  138. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map +1 -0
  139. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js +93 -0
  140. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js.map +1 -0
  141. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts +3 -0
  142. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts.map +1 -0
  143. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js +3 -0
  144. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js.map +1 -0
  145. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts +3 -0
  146. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts.map +1 -0
  147. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js +3 -0
  148. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js.map +1 -0
  149. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts +3 -0
  150. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts.map +1 -0
  151. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js +3 -0
  152. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js.map +1 -0
  153. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts +3 -0
  154. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts.map +1 -0
  155. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js +3 -0
  156. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js.map +1 -0
  157. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.d.ts +4 -0
  158. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.d.ts.map +1 -0
  159. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/{index.js → GET.js} +10 -10
  160. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.js.map +1 -0
  161. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts +1 -179
  162. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts.map +1 -1
  163. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js +1 -404
  164. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js.map +1 -1
  165. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts +180 -0
  166. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +1 -0
  167. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js +405 -0
  168. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +1 -0
  169. package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts.map +1 -1
  170. package/lib/plugins/service-betterportal-config-manager/storage/core.js +52 -0
  171. package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
  172. package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +4 -0
  173. package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
  174. package/lib/plugins/service-betterportal-config-manager/syncApi.js +3 -0
  175. package/lib/plugins/service-betterportal-config-manager/syncApi.js.map +1 -1
  176. package/lib/schemas/service-betterportal-config-manager.json +1 -1
  177. package/lib/schemas/service-betterportal-config-manager.plugin.json +1 -1
  178. package/package.json +11 -11
  179. package/bsb-tests.json +0 -14
  180. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/index.d.ts.map +0 -1
  181. package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/index.js.map +0 -1
  182. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/index.d.ts.map +0 -1
  183. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/index.js.map +0 -1
  184. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.d.ts +0 -5
  185. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.d.ts.map +0 -1
  186. package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.js.map +0 -1
  187. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/index.d.ts.map +0 -1
  188. package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/index.js.map +0 -1
  189. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/index.d.ts.map +0 -1
  190. package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/index.js.map +0 -1
  191. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/index.d.ts.map +0 -1
  192. package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/index.js.map +0 -1
  193. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/index.d.ts.map +0 -1
  194. package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/index.js.map +0 -1
  195. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/index.d.ts.map +0 -1
  196. package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/index.js.map +0 -1
  197. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/index.d.ts.map +0 -1
  198. package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/index.js.map +0 -1
  199. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.d.ts +0 -4
  200. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.d.ts.map +0 -1
  201. package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW,qBAA0C,CAAC;AAEnE,eAAO,MAAM,aAAa,qBAA0C,CAAC;AAErE,eAAO,MAAM,aAAa,qBAA0C,CAAC;AAYrE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;EAMC,CAAC;AAC7B,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAIxD,eAAO,MAAM,KAAK,mBAAmB,CAAC;AACtC,eAAO,MAAM,WAAW,uEAAuE,CAAC;AAEhG,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAarD,CAAC;AAIF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;oCAoBrB,CAAC"}
@@ -0,0 +1,68 @@
1
+ import * as av from "anyvali";
2
+ import { createHandler } from "@betterportal/framework";
3
+ // -- Schemas ---------------------------------------------------------
4
+ export const QuerySchema = av.object({}, { unknownKeys: "strip" });
5
+ export const HeadersSchema = av.object({}, { unknownKeys: "strip" });
6
+ export const RequestSchema = av.object({}, { unknownKeys: "strip" });
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
+ }, { unknownKeys: "strip" });
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
+ }, { unknownKeys: "strip" });
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: "service.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
@@ -0,0 +1 @@
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,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,OAA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F,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ResponseSchema } from "./route.impl.js";
2
+ export { handleGet as default } from "./route.impl.js";
3
+ //# sourceMappingURL=GET.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/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,3 @@
1
+ export { ResponseSchema } from "./route.impl.js";
2
+ export { handleGet as default } from "./route.impl.js";
3
+ //# sourceMappingURL=GET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /** @jsxImportSource jsx-htmx */
2
2
  import type { HtmlRenderable } from "@betterportal/framework";
3
- import type { ResponseData } from "../index.js";
3
+ import type { ResponseData } from "../route.impl.js";
4
4
  export declare function render(data: ResponseData): HtmlRenderable;
5
- //# sourceMappingURL=index.d.ts.map
5
+ //# sourceMappingURL=GET.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAsCzD"}
@@ -8,4 +8,4 @@ export function render(data) {
8
8
  ? _jsx("div", { class: "text-secondary", children: "Loading editor..." })
9
9
  : _jsx("div", { class: "alert alert-secondary", children: "Select an app to manage its fragments" }) })] }));
10
10
  }
11
- //# sourceMappingURL=index.js.map
11
+ //# sourceMappingURL=GET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,MAAM,UAAU,GAAG,wCAAwC,CAAC;IAC5D,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,UAAU,UAAU,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7G,OAAO,CACL,eAAK,KAAK,EAAC,sBAAsB,aAC/B,eAAK,KAAK,EAAC,MAAM,aACf,aAAI,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,KAAK,GAAM,EAClC,YAAG,KAAK,EAAC,qBAAqB,oFAAwE,IAClG,EAEN,eAAK,KAAK,EAAC,MAAM,aACf,gBAAO,KAAK,EAAC,wBAAwB,oBAAY,EACjD,kBAAQ,KAAK,EAAC,aAAa,EAAC,IAAI,EAAC,OAAO,YAC9B,UAAU,eACR,sBAAsB,aACxB,WAAW,gBACR,QAAQ,gBACR,MAAM,aACjB,iBAAQ,KAAK,EAAC,EAAE,iCAA0B,EACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACtB,kBAAQ,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,aAAa,aAC3D,GAAG,CAAC,KAAK,QAAI,GAAG,CAAC,QAAQ,SACnB,CACV,CAAC,IACK,IACL,EAEN,cAAK,EAAE,EAAC,qBAAqB,KACvB,CAAC,IAAI,CAAC,aAAa;oBACrB,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE;oBACxE,CAAC,CAAC,EAAE,CAAC,YACN,IAAI,CAAC,aAAa;oBACjB,CAAC,CAAC,cAAK,KAAK,EAAC,gBAAgB,kCAAwB;oBACrD,CAAC,CAAC,cAAK,KAAK,EAAC,uBAAuB,sDAA4C,GAC9E,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,32 +1,2 @@
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>>;
1
+ export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
32
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/fragments/index.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;;;;;;;;;;EAMC,CAAC;AAC7B,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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,32 +1,2 @@
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
- }, { unknownKeys: "strip" });
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
- }, { unknownKeys: "strip" });
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: "service.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
- });
1
+ export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
32
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,gBAAgB,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,QAAQ,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACnC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAChC,aAAa,EAAE,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AE,EAAE,CAAC;AACrG,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,32 @@
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
@@ -0,0 +1 @@
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;;;;;;;;;;EAMC,CAAC;AAC7B,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"}
@@ -0,0 +1,32 @@
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
+ }, { unknownKeys: "strip" });
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
+ }, { unknownKeys: "strip" });
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: "service.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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,gBAAgB,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,QAAQ,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACnC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAChC,aAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IACvC,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACzC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAG7B,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;AACjC,MAAM,CAAC,MAAM,WAAW,GAAG,yCAAyC,CAAC;AAErE,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,EAAE,SAAS,EAAE,qCAAqC,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,CAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,CAAC,EAAE;KAClI;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,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"}
@@ -0,0 +1,3 @@
1
+ export { ResponseSchema } from "./route.impl.js";
2
+ export { handleGet as default } from "./route.impl.js";
3
+ //# sourceMappingURL=GET.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/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,3 @@
1
+ export { ResponseSchema } from "./route.impl.js";
2
+ export { handleGet as default } from "./route.impl.js";
3
+ //# sourceMappingURL=GET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { HtmlRenderable } from "@betterportal/framework";
2
- import type { ResponseData } from "../index.js";
2
+ import type { ResponseData } from "../route.impl.js";
3
3
  export declare function render(data: ResponseData): HtmlRenderable;
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=GET.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgKrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAwCzD"}
@@ -167,4 +167,4 @@ export function render(data) {
167
167
  ? _jsx("div", { class: "text-secondary", children: "Loading editor..." })
168
168
  : _jsx("div", { class: "alert alert-secondary", children: "Select an app to design its menu" }) }), _jsx("script", { children: dragScript() })] }));
169
169
  }
170
- //# sourceMappingURL=index.js.map
170
+ //# sourceMappingURL=GET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap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ACK,IACL,EAEN,cAAK,EAAE,EAAC,gBAAgB,KAClB,CAAC,IAAI,CAAC,aAAa;oBACrB,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE;oBACxE,CAAC,CAAC,EAAE,CAAC,YACN,IAAI,CAAC,aAAa;oBACjB,CAAC,CAAC,cAAK,KAAK,EAAC,gBAAgB,kCAAwB;oBACrD,CAAC,CAAC,cAAK,KAAK,EAAC,uBAAuB,iDAAuC,GACzE,EAEN,2BAAS,UAAU,EAAE,GAAU,IAC3B,CACP,CAAC;AACJ,CAAC"}
@@ -1,60 +1,2 @@
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>>;
1
+ export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
60
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/menu/index.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;;;;;;;;;;;;;;;;;;;;;;;;EAQC,CAAC;AAC7B,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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,48 +1,2 @@
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
- }, { unknownKeys: "strip" });
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
- }, { unknownKeys: "strip" });
17
- const AppSummarySchema = av.object({
18
- id: av.string().minLength(1),
19
- title: av.string().minLength(1),
20
- tenantId: av.string().minLength(1)
21
- }, { unknownKeys: "strip" });
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
- }, { unknownKeys: "strip" });
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: "service.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
- });
1
+ export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
48
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.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,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE;CACnB,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,cAAc,GAAG,EAAE,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAC/B,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IACjC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAC9B,OAAO,EAAE,EAAE,CAAC,IAAI,EAAE;IAClB,eAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;CACxC,EAAE,EAA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AAY,EAAE,WAAW,EAAE,CAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,CAAC,EAAE;KAC7H;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,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;CACrK,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,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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,60 @@
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
@@ -0,0 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;EAQC,CAAC;AAC7B,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"}
@@ -0,0 +1,48 @@
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
+ }, { unknownKeys: "strip" });
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
+ }, { unknownKeys: "strip" });
17
+ const AppSummarySchema = av.object({
18
+ id: av.string().minLength(1),
19
+ title: av.string().minLength(1),
20
+ tenantId: av.string().minLength(1)
21
+ }, { unknownKeys: "strip" });
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
+ }, { unknownKeys: "strip" });
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: "service.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
@@ -0,0 +1 @@
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,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE;CACnB,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,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AChE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AAC/H,CAAC,CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ResponseSchema } from "./route.impl.js";
2
+ export { handleGet as default } from "./route.impl.js";
3
+ //# sourceMappingURL=GET.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/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,3 @@
1
+ export { ResponseSchema } from "./route.impl.js";
2
+ export { handleGet as default } from "./route.impl.js";
3
+ //# sourceMappingURL=GET.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { HtmlRenderable } from "@betterportal/framework";
2
- import type { ResponseData } from "../index.js";
2
+ import type { ResponseData } from "../route.impl.js";
3
3
  export declare function render(data: ResponseData): HtmlRenderable;
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=GET.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAwBrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAmEzD"}