@golemio/fypr 1.12.0 → 2.0.0-dev.2868130045

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 (271) hide show
  1. package/README.md +11 -0
  2. package/dist/helpers/errors/ErrorHelper.d.ts +2 -2
  3. package/dist/helpers/errors/ErrorHelper.js +4 -7
  4. package/dist/helpers/errors/ErrorHelper.js.map +1 -1
  5. package/dist/index.d.ts +3 -3
  6. package/dist/index.js +3 -39
  7. package/dist/index.js.map +1 -1
  8. package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.d.ts +2 -2
  9. package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.js +7 -10
  10. package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.js.map +1 -1
  11. package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.d.ts +3 -3
  12. package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.js +10 -13
  13. package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.js.map +1 -1
  14. package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.d.ts +3 -3
  15. package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js +10 -13
  16. package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js.map +1 -1
  17. package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.d.ts +3 -3
  18. package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.js +10 -13
  19. package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.js.map +1 -1
  20. package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.d.ts +3 -3
  21. package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.js +10 -13
  22. package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.js.map +1 -1
  23. package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.d.ts +3 -3
  24. package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.js +10 -13
  25. package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.js.map +1 -1
  26. package/dist/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.d.ts +3 -3
  27. package/dist/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.js +13 -15
  28. package/dist/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.js.map +1 -1
  29. package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.d.ts +3 -3
  30. package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.js +12 -15
  31. package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.js.map +1 -1
  32. package/dist/integration-engine/helpers/StrapiPaginationHelper.js +5 -8
  33. package/dist/integration-engine/helpers/StrapiPaginationHelper.js.map +1 -1
  34. package/dist/integration-engine/index.d.ts +1 -1
  35. package/dist/integration-engine/index.js +2 -5
  36. package/dist/integration-engine/index.js.map +1 -1
  37. package/dist/integration-engine/ioc/Di.d.ts +1 -1
  38. package/dist/integration-engine/ioc/Di.js +63 -66
  39. package/dist/integration-engine/ioc/Di.js.map +1 -1
  40. package/dist/integration-engine/ioc/FYPRIEContainerTokens.js +1 -4
  41. package/dist/integration-engine/ioc/FYPRIEContainerTokens.js.map +1 -1
  42. package/dist/integration-engine/repositories/AbstractFyprRepository.d.ts +7 -7
  43. package/dist/integration-engine/repositories/AbstractFyprRepository.js +11 -13
  44. package/dist/integration-engine/repositories/AbstractFyprRepository.js.map +1 -1
  45. package/dist/integration-engine/repositories/DeviceStatusRepository.d.ts +7 -7
  46. package/dist/integration-engine/repositories/DeviceStatusRepository.js +22 -23
  47. package/dist/integration-engine/repositories/DeviceStatusRepository.js.map +1 -1
  48. package/dist/integration-engine/repositories/DisplayCaseRepository.d.ts +8 -8
  49. package/dist/integration-engine/repositories/DisplayCaseRepository.js +17 -19
  50. package/dist/integration-engine/repositories/DisplayCaseRepository.js.map +1 -1
  51. package/dist/integration-engine/repositories/InformationPanelPresetsRepository.d.ts +6 -6
  52. package/dist/integration-engine/repositories/InformationPanelPresetsRepository.js +28 -28
  53. package/dist/integration-engine/repositories/InformationPanelPresetsRepository.js.map +1 -1
  54. package/dist/integration-engine/repositories/InformationPanelPresetsRoutesRepository.d.ts +6 -6
  55. package/dist/integration-engine/repositories/InformationPanelPresetsRoutesRepository.js +24 -24
  56. package/dist/integration-engine/repositories/InformationPanelPresetsRoutesRepository.js.map +1 -1
  57. package/dist/integration-engine/repositories/InformationPanelPresetsStopsRepository.d.ts +6 -6
  58. package/dist/integration-engine/repositories/InformationPanelPresetsStopsRepository.js +24 -24
  59. package/dist/integration-engine/repositories/InformationPanelPresetsStopsRepository.js.map +1 -1
  60. package/dist/integration-engine/repositories/InformationPanelRepository.d.ts +8 -8
  61. package/dist/integration-engine/repositories/InformationPanelRepository.js +17 -19
  62. package/dist/integration-engine/repositories/InformationPanelRepository.js.map +1 -1
  63. package/dist/integration-engine/repositories/ObeliskRepository.d.ts +8 -8
  64. package/dist/integration-engine/repositories/ObeliskRepository.js +17 -19
  65. package/dist/integration-engine/repositories/ObeliskRepository.js.map +1 -1
  66. package/dist/integration-engine/repositories/SignpostRepository.d.ts +8 -8
  67. package/dist/integration-engine/repositories/SignpostRepository.js +17 -19
  68. package/dist/integration-engine/repositories/SignpostRepository.js.map +1 -1
  69. package/dist/integration-engine/repositories/TotemRepository.d.ts +8 -8
  70. package/dist/integration-engine/repositories/TotemRepository.js +17 -19
  71. package/dist/integration-engine/repositories/TotemRepository.js.map +1 -1
  72. package/dist/integration-engine/transformations/AbstractElementTransformation.d.ts +3 -3
  73. package/dist/integration-engine/transformations/AbstractElementTransformation.js +2 -6
  74. package/dist/integration-engine/transformations/AbstractElementTransformation.js.map +1 -1
  75. package/dist/integration-engine/transformations/DisplayCasesTransformation.d.ts +3 -3
  76. package/dist/integration-engine/transformations/DisplayCasesTransformation.js +6 -9
  77. package/dist/integration-engine/transformations/DisplayCasesTransformation.js.map +1 -1
  78. package/dist/integration-engine/transformations/InformationPanelsTransformation.d.ts +3 -3
  79. package/dist/integration-engine/transformations/InformationPanelsTransformation.js +6 -9
  80. package/dist/integration-engine/transformations/InformationPanelsTransformation.js.map +1 -1
  81. package/dist/integration-engine/transformations/ObelisksTransformation.d.ts +3 -3
  82. package/dist/integration-engine/transformations/ObelisksTransformation.js +6 -9
  83. package/dist/integration-engine/transformations/ObelisksTransformation.js.map +1 -1
  84. package/dist/integration-engine/transformations/SignpostsTransformation.d.ts +3 -3
  85. package/dist/integration-engine/transformations/SignpostsTransformation.js +6 -9
  86. package/dist/integration-engine/transformations/SignpostsTransformation.js.map +1 -1
  87. package/dist/integration-engine/transformations/TotemsTransformation.d.ts +3 -3
  88. package/dist/integration-engine/transformations/TotemsTransformation.js +6 -9
  89. package/dist/integration-engine/transformations/TotemsTransformation.js.map +1 -1
  90. package/dist/integration-engine/workers/FYPRWorker.d.ts +2 -2
  91. package/dist/integration-engine/workers/FYPRWorker.js +14 -18
  92. package/dist/integration-engine/workers/FYPRWorker.js.map +1 -1
  93. package/dist/integration-engine/workers/constants.js +1 -4
  94. package/dist/integration-engine/workers/constants.js.map +1 -1
  95. package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.d.ts +5 -5
  96. package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.js +8 -11
  97. package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.js.map +1 -1
  98. package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.d.ts +7 -7
  99. package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.js +31 -33
  100. package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.js.map +1 -1
  101. package/dist/integration-engine/workers/tasks/FetchDCIPStatusTask.d.ts +3 -3
  102. package/dist/integration-engine/workers/tasks/FetchDCIPStatusTask.js +18 -20
  103. package/dist/integration-engine/workers/tasks/FetchDCIPStatusTask.js.map +1 -1
  104. package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.d.ts +7 -7
  105. package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.js +17 -19
  106. package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.js.map +1 -1
  107. package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.d.ts +7 -7
  108. package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.js +17 -19
  109. package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.js.map +1 -1
  110. package/dist/integration-engine/workers/tasks/UpdateObelisksTask.d.ts +7 -7
  111. package/dist/integration-engine/workers/tasks/UpdateObelisksTask.js +17 -19
  112. package/dist/integration-engine/workers/tasks/UpdateObelisksTask.js.map +1 -1
  113. package/dist/integration-engine/workers/tasks/UpdatePresetsTask.d.ts +5 -5
  114. package/dist/integration-engine/workers/tasks/UpdatePresetsTask.js +29 -30
  115. package/dist/integration-engine/workers/tasks/UpdatePresetsTask.js.map +1 -1
  116. package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.d.ts +7 -7
  117. package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.js +17 -19
  118. package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.js.map +1 -1
  119. package/dist/integration-engine/workers/tasks/UpdateTotemsTask.d.ts +7 -7
  120. package/dist/integration-engine/workers/tasks/UpdateTotemsTask.js +17 -19
  121. package/dist/integration-engine/workers/tasks/UpdateTotemsTask.js.map +1 -1
  122. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.d.ts +6 -6
  123. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js +25 -25
  124. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js.map +1 -1
  125. package/dist/output-gateway/fypr/controllers/v1/V1FyprMetadataController.d.ts +1 -1
  126. package/dist/output-gateway/fypr/controllers/v1/V1FyprMetadataController.js +11 -14
  127. package/dist/output-gateway/fypr/controllers/v1/V1FyprMetadataController.js.map +1 -1
  128. package/dist/output-gateway/fypr/data-access/FyprElementRepository.d.ts +5 -5
  129. package/dist/output-gateway/fypr/data-access/FyprElementRepository.js +9 -12
  130. package/dist/output-gateway/fypr/data-access/FyprElementRepository.js.map +1 -1
  131. package/dist/output-gateway/fypr/routers/index.d.ts +2 -2
  132. package/dist/output-gateway/fypr/routers/index.js +2 -7
  133. package/dist/output-gateway/fypr/routers/index.js.map +1 -1
  134. package/dist/output-gateway/fypr/routers/middlewares/cacheMiddleware.d.ts +3 -3
  135. package/dist/output-gateway/fypr/routers/middlewares/cacheMiddleware.js +1 -4
  136. package/dist/output-gateway/fypr/routers/middlewares/cacheMiddleware.js.map +1 -1
  137. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.d.ts +3 -3
  138. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js +41 -43
  139. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js.map +1 -1
  140. package/dist/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.d.ts +3 -3
  141. package/dist/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.js +15 -18
  142. package/dist/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.js.map +1 -1
  143. package/dist/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.d.ts +1 -1
  144. package/dist/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.js +1 -5
  145. package/dist/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.js.map +1 -1
  146. package/dist/output-gateway/fypr/transformations/InformationPanelOutputTransformation.d.ts +3 -3
  147. package/dist/output-gateway/fypr/transformations/InformationPanelOutputTransformation.js +9 -12
  148. package/dist/output-gateway/fypr/transformations/InformationPanelOutputTransformation.js.map +1 -1
  149. package/dist/output-gateway/index.d.ts +1 -1
  150. package/dist/output-gateway/index.js +2 -5
  151. package/dist/output-gateway/index.js.map +1 -1
  152. package/dist/output-gateway/interfaces/IOGInformationPanel.d.ts +2 -2
  153. package/dist/output-gateway/interfaces/IOGInformationPanel.js +1 -2
  154. package/dist/output-gateway/interfaces/IOGInformationPanelScopes.d.ts +2 -2
  155. package/dist/output-gateway/interfaces/IOGInformationPanelScopes.js +1 -2
  156. package/dist/output-gateway/ioc/Di.d.ts +1 -1
  157. package/dist/output-gateway/ioc/Di.js +20 -23
  158. package/dist/output-gateway/ioc/Di.js.map +1 -1
  159. package/dist/output-gateway/ioc/FYPROGContainerTokens.js +1 -4
  160. package/dist/output-gateway/ioc/FYPROGContainerTokens.js.map +1 -1
  161. package/dist/output-gateway/shared/constants/element-kinds.d.ts +2 -1
  162. package/dist/output-gateway/shared/constants/element-kinds.js +1 -5
  163. package/dist/output-gateway/shared/constants/element-kinds.js.map +1 -1
  164. package/dist/output-gateway/shared/constants/index.d.ts +1 -1
  165. package/dist/output-gateway/shared/constants/index.js +1 -17
  166. package/dist/output-gateway/shared/constants/index.js.map +1 -1
  167. package/dist/schema-definitions/FyprElementTypes.d.ts +5 -5
  168. package/dist/schema-definitions/FyprElementTypes.js +1 -2
  169. package/dist/schema-definitions/const.js +11 -14
  170. package/dist/schema-definitions/const.js.map +1 -1
  171. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.d.ts +2 -2
  172. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js +22 -25
  173. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js.map +1 -1
  174. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.d.ts +2 -2
  175. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js +15 -18
  176. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js.map +1 -1
  177. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.d.ts +2 -2
  178. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js +83 -86
  179. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js.map +1 -1
  180. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.d.ts +2 -2
  181. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js +17 -20
  182. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js.map +1 -1
  183. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.d.ts +2 -2
  184. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js +19 -22
  185. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js.map +1 -1
  186. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.d.ts +2 -2
  187. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js +55 -58
  188. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js.map +1 -1
  189. package/dist/schema-definitions/data-sources/DCIPStatusOverviewJSONSchema.d.ts +2 -2
  190. package/dist/schema-definitions/data-sources/DCIPStatusOverviewJSONSchema.js +3 -6
  191. package/dist/schema-definitions/data-sources/DCIPStatusOverviewJSONSchema.js.map +1 -1
  192. package/dist/schema-definitions/data-sources/GolemioPresetsJSONSchema.d.ts +2 -2
  193. package/dist/schema-definitions/data-sources/GolemioPresetsJSONSchema.js +1 -4
  194. package/dist/schema-definitions/data-sources/GolemioPresetsJSONSchema.js.map +1 -1
  195. package/dist/schema-definitions/data-sources/index.js +11 -14
  196. package/dist/schema-definitions/data-sources/index.js.map +1 -1
  197. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.d.ts +1 -1
  198. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.js +1 -2
  199. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.d.ts +1 -1
  200. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.js +1 -2
  201. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.d.ts +1 -1
  202. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.js +1 -2
  203. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.d.ts +1 -1
  204. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.js +1 -2
  205. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.d.ts +1 -1
  206. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.js +1 -2
  207. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.d.ts +1 -1
  208. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.js +1 -2
  209. package/dist/schema-definitions/data-sources/interfaces/IDCIPStatusOverview.d.ts +1 -1
  210. package/dist/schema-definitions/data-sources/interfaces/IDCIPStatusOverview.js +1 -2
  211. package/dist/schema-definitions/data-sources/interfaces/IGolemioPresetsResponse.js +1 -2
  212. package/dist/schema-definitions/index.d.ts +4 -3
  213. package/dist/schema-definitions/index.js +29 -33
  214. package/dist/schema-definitions/index.js.map +1 -1
  215. package/dist/schema-definitions/models/AbstractElementModel.d.ts +6 -3
  216. package/dist/schema-definitions/models/AbstractElementModel.js +39 -42
  217. package/dist/schema-definitions/models/AbstractElementModel.js.map +1 -1
  218. package/dist/schema-definitions/models/DeviceStatusModel.d.ts +5 -2
  219. package/dist/schema-definitions/models/DeviceStatusModel.js +7 -10
  220. package/dist/schema-definitions/models/DeviceStatusModel.js.map +1 -1
  221. package/dist/schema-definitions/models/DisplayCaseModel.d.ts +4 -4
  222. package/dist/schema-definitions/models/DisplayCaseModel.js +46 -49
  223. package/dist/schema-definitions/models/DisplayCaseModel.js.map +1 -1
  224. package/dist/schema-definitions/models/InformationPanelModel.d.ts +4 -4
  225. package/dist/schema-definitions/models/InformationPanelModel.js +177 -180
  226. package/dist/schema-definitions/models/InformationPanelModel.js.map +1 -1
  227. package/dist/schema-definitions/models/InformationPanelPresetsModel.d.ts +6 -3
  228. package/dist/schema-definitions/models/InformationPanelPresetsModel.js +13 -16
  229. package/dist/schema-definitions/models/InformationPanelPresetsModel.js.map +1 -1
  230. package/dist/schema-definitions/models/InformationPanelPresetsRoutesAggModel.d.ts +5 -2
  231. package/dist/schema-definitions/models/InformationPanelPresetsRoutesAggModel.js +8 -11
  232. package/dist/schema-definitions/models/InformationPanelPresetsRoutesAggModel.js.map +1 -1
  233. package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.d.ts +6 -3
  234. package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.js +10 -13
  235. package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.js.map +1 -1
  236. package/dist/schema-definitions/models/InformationPanelPresetsStopsModel.d.ts +6 -3
  237. package/dist/schema-definitions/models/InformationPanelPresetsStopsModel.js +7 -10
  238. package/dist/schema-definitions/models/InformationPanelPresetsStopsModel.js.map +1 -1
  239. package/dist/schema-definitions/models/ObeliskModel.d.ts +4 -4
  240. package/dist/schema-definitions/models/ObeliskModel.js +36 -39
  241. package/dist/schema-definitions/models/ObeliskModel.js.map +1 -1
  242. package/dist/schema-definitions/models/SignpostModel.d.ts +4 -4
  243. package/dist/schema-definitions/models/SignpostModel.js +40 -43
  244. package/dist/schema-definitions/models/SignpostModel.js.map +1 -1
  245. package/dist/schema-definitions/models/TotemModel.d.ts +4 -4
  246. package/dist/schema-definitions/models/TotemModel.js +110 -113
  247. package/dist/schema-definitions/models/TotemModel.js.map +1 -1
  248. package/dist/schema-definitions/models/interfaces/IDeviceStatus.d.ts +1 -1
  249. package/dist/schema-definitions/models/interfaces/IDeviceStatus.js +1 -2
  250. package/dist/schema-definitions/models/interfaces/IDisplayCase.d.ts +1 -1
  251. package/dist/schema-definitions/models/interfaces/IDisplayCase.js +1 -2
  252. package/dist/schema-definitions/models/interfaces/IElement.d.ts +1 -1
  253. package/dist/schema-definitions/models/interfaces/IElement.js +1 -2
  254. package/dist/schema-definitions/models/interfaces/IInformationPanel.d.ts +1 -1
  255. package/dist/schema-definitions/models/interfaces/IInformationPanel.js +1 -2
  256. package/dist/schema-definitions/models/interfaces/IInformationPanelPreset.js +1 -2
  257. package/dist/schema-definitions/models/interfaces/IInformationPanelPresetRoute.js +1 -2
  258. package/dist/schema-definitions/models/interfaces/IInformationPanelPresetStop.js +1 -2
  259. package/dist/schema-definitions/models/interfaces/IObelisk.d.ts +1 -1
  260. package/dist/schema-definitions/models/interfaces/IObelisk.js +1 -2
  261. package/dist/schema-definitions/models/interfaces/IPresetRouteAgg.js +1 -2
  262. package/dist/schema-definitions/models/interfaces/ISignpost.d.ts +1 -1
  263. package/dist/schema-definitions/models/interfaces/ISignpost.js +1 -2
  264. package/dist/schema-definitions/models/interfaces/ITotem.d.ts +1 -1
  265. package/dist/schema-definitions/models/interfaces/ITotem.js +1 -2
  266. package/dist/schema-definitions/models/interfaces/fyprElementStates.js +1 -4
  267. package/dist/schema-definitions/models/interfaces/fyprElementStates.js.map +1 -1
  268. package/dist/schema-definitions/translation/index.d.ts +1 -1
  269. package/dist/schema-definitions/translation/index.js +13 -19
  270. package/dist/schema-definitions/translation/index.js.map +1 -1
  271. package/package.json +42 -15
@@ -1 +1 @@
1
- {"version":3,"file":"FyprElementRepository.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/data-access/FyprElementRepository.ts"],"names":[],"mappings":";;;AAAA,6DAAuC;AAIvC,kIAA+H;AAC/H,6EAAwE;AAGxE,6GAA6G;AAC7G,oGAAoG;AACpG,MAAa,qBAAyB,SAAQ,iDAAuB;IASjE,IAAY,cAAc;QACtB,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS;iBAChC,aAAa,EAAE;iBACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED,IAAY,aAAa;QACrB,IAAI,CAAC,IAAI,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AAC;IAEM,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,IAAI,6BAAY,CAAC,iCAAiC,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAChH,CAAC;IACL,CAAC;CACJ;AAnFD,sDAmFC"}
1
+ {"version":3,"file":"FyprElementRepository.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/data-access/FyprElementRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yFAAyF,CAAC;AAClI,OAAO,aAAa,MAAM,6CAA6C,CAAC;AAGxE,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;AAEvC,6GAA6G;AAC7G,oGAAoG;AACpG,MAAM,OAAO,qBAAyB,SAAQ,uBAAuB;IASjE,IAAY,cAAc;QACtB,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS;iBAChC,aAAa,EAAE;iBACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED,IAAY,aAAa;QACrB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;YACjD,IAAI,CAAC,cAAc,GAAG,MA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EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,IAAI,YAAY,CAAC,iCAAiC,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAChH,CAAC;IACL,CAAC;CACJ"}
@@ -1,2 +1,2 @@
1
- export { v1FyprElementKindsRouter } from "./v1/V1FyprElementKindsRouter";
2
- export { v1FyprMetadataRouter } from "./v1/V1FyprMetadataRouter";
1
+ export { v1FyprElementKindsRouter } from "./v1/V1FyprElementKindsRouter.js";
2
+ export { v1FyprMetadataRouter } from "./v1/V1FyprMetadataRouter.js";
@@ -1,8 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.v1FyprMetadataRouter = exports.v1FyprElementKindsRouter = void 0;
4
- var V1FyprElementKindsRouter_1 = require("./v1/V1FyprElementKindsRouter");
5
- Object.defineProperty(exports, "v1FyprElementKindsRouter", { enumerable: true, get: function () { return V1FyprElementKindsRouter_1.v1FyprElementKindsRouter; } });
6
- var V1FyprMetadataRouter_1 = require("./v1/V1FyprMetadataRouter");
7
- Object.defineProperty(exports, "v1FyprMetadataRouter", { enumerable: true, get: function () { return V1FyprMetadataRouter_1.v1FyprMetadataRouter; } });
1
+ export { v1FyprElementKindsRouter } from "./v1/V1FyprElementKindsRouter.js";
2
+ export { v1FyprMetadataRouter } from "./v1/V1FyprMetadataRouter.js";
8
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/routers/index.ts"],"names":[],"mappings":";;;AAAA,0EAAyE;AAAhE,oIAAA,wBAAwB,OAAA;AACjC,kEAAiE;AAAxD,4HAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/routers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,6 +1,6 @@
1
- import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
2
- import { CacheHeaderMiddleware } from "@golemio/core/dist/output-gateway/CacheHeaderMiddleware";
3
- import { RequestHandler } from "@golemio/core/dist/shared/express";
1
+ import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
2
+ import { CacheHeaderMiddleware } from "@golemio/core/dist/output-gateway/CacheHeaderMiddleware.js";
3
+ import type { RequestHandler } from "@golemio/core/dist/shared/express.js";
4
4
  /**
5
5
  * Builds a Cache-Control middleware from a `<configKeyPrefix>.maxAge` / `.staleWhileRevalidate`
6
6
  * config pair, falling back to the given defaults. Centralized so each router's cache TTL can be
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveCacheMiddleware = resolveCacheMiddleware;
4
1
  /**
5
2
  * Builds a Cache-Control middleware from a `<configKeyPrefix>.maxAge` / `.staleWhileRevalidate`
6
3
  * config pair, falling back to the given defaults. Centralized so each router's cache TTL can be
7
4
  * tuned independently of the others without re-deriving the config lookup in every router.
8
5
  */
9
- function resolveCacheMiddleware(cacheHeaderMiddleware, config, configKeyPrefix, defaults) {
6
+ export function resolveCacheMiddleware(cacheHeaderMiddleware, config, configKeyPrefix, defaults) {
10
7
  const maxAge = config.getValue(`${configKeyPrefix}.maxAge`, defaults.maxAge);
11
8
  const staleWhileRevalidate = config.getValue(`${configKeyPrefix}.staleWhileRevalidate`, defaults.staleWhileRevalidate);
12
9
  return cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate);
@@ -1 +1 @@
1
- {"version":3,"file":"cacheMiddleware.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/routers/middlewares/cacheMiddleware.ts"],"names":[],"mappings":";;AASA,wDAYC;AAjBD;;;;GAIG;AACH,SAAgB,sBAAsB,CAClC,qBAA4C,EAC5C,MAAqB,EACrB,eAAuB,EACvB,QAA0D;IAE1D,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAS,GAAG,eAAe,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAW,CAAC;IAC/F,MAAM,oBAAoB,GAAG,MAAM,CAAC,QAAQ,CACxC,GAAG,eAAe,uBAAuB,EACzC,QAAQ,CAAC,oBAAoB,CACtB,CAAC;IACZ,OAAO,qBAAqB,CAAC,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAC7E,CAAC"}
1
+ {"version":3,"file":"cacheMiddleware.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/routers/middlewares/cacheMiddleware.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAClC,qBAA4C,EAC5C,MAAqB,EACrB,eAAuB,EACvB,QAA0D;IAE1D,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAS,GAAG,eAAe,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAW,CAAC;IAC/F,MAAM,oBAAoB,GAAG,MAAM,CAAC,QAAQ,CACxC,GAAG,eAAe,uBAAuB,EACzC,QAAQ,CAAC,oBAAoB,CACtB,CAAC;IACZ,OAAO,qBAAqB,CAAC,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAC7E,CAAC"}
@@ -1,7 +1,7 @@
1
- import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
2
- import { Router } from "@golemio/core/dist/shared/express";
1
+ import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter.js";
2
+ import type { Router as TRouter } from "@golemio/core/dist/shared/express.js";
3
3
  export declare class V1FyprElementKindsRouter extends AbstractRouter {
4
- router: Router;
4
+ router: TRouter;
5
5
  private cacheHeaderMiddleware;
6
6
  private controller;
7
7
  constructor();
@@ -1,70 +1,69 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.v1FyprElementKindsRouter = exports.V1FyprElementKindsRouter = void 0;
4
- const Di_1 = require("../../../ioc/Di");
5
- const FYPROGContainerTokens_1 = require("../../../ioc/FYPROGContainerTokens");
6
- const constants_1 = require("../../../shared/constants");
7
- const cacheMiddleware_1 = require("../middlewares/cacheMiddleware");
8
- const index_1 = require("../../../../schema-definitions/index");
9
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
10
- const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
11
- const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
12
- const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
13
- const express_1 = require("@golemio/core/dist/shared/express");
14
- const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
15
- const InformationPanelsOnlyValidator_1 = require("./validators/InformationPanelsOnlyValidator");
16
- class V1FyprElementKindsRouter extends AbstractRouter_1.AbstractRouter {
1
+ import { fyprOGContainer } from "#og/ioc/Di";
2
+ import { fyprOGContainerTokens } from "#og/ioc/FYPROGContainerTokens";
3
+ import { fyprElementKinds } from "#og/shared/constants/index";
4
+ import { resolveCacheMiddleware } from "#og/fypr/routers/middlewares/cacheMiddleware";
5
+ import { fyprElementStates, informationPanelScopes, SCOPE_DEVICE_STATUS } from "#sch/index";
6
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
7
+ import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter.js";
8
+ import { checkErrors, paginationLimitMiddleware } from "@golemio/core/dist/output-gateway/Validation.js";
9
+ import { ContainerToken, OutputGatewayContainer } from "@golemio/core/dist/output-gateway/ioc/index.js";
10
+ import Express from "@golemio/core/dist/shared/express.js";
11
+ import ExpressValidator from "@golemio/core/dist/shared/express-validator.js";
12
+ import { InformationPanelsOnlyValidator } from "#og/fypr/routers/v1/validators/InformationPanelsOnlyValidator";
13
+ const { Router } = Express;
14
+ const { param, query } = ExpressValidator;
15
+ export class V1FyprElementKindsRouter extends AbstractRouter {
17
16
  constructor() {
18
17
  super("v1", "fypr/elements");
19
- this.router = (0, express_1.Router)();
20
- this.cacheHeaderMiddleware = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
21
- this.controller = Di_1.fyprOGContainer.resolve(FYPROGContainerTokens_1.fyprOGContainerTokens.V1FyprElementKindsController);
18
+ this.router = Router();
19
+ this.cacheHeaderMiddleware = OutputGatewayContainer.resolve(ContainerToken.CacheHeaderMiddleware);
20
+ this.controller = fyprOGContainer.resolve(fyprOGContainerTokens.V1FyprElementKindsController);
22
21
  this.initRoutes();
23
22
  }
24
23
  initRoutes() {
25
- const config = ioc_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.SimpleConfig);
26
- const cacheMiddleware = (0, cacheMiddleware_1.resolveCacheMiddleware)(this.cacheHeaderMiddleware, config, "module.fypr.output-gateway.elements.cache", { maxAge: 5 * 60, staleWhileRevalidate: 60 });
24
+ const config = OutputGatewayContainer.resolve(CoreToken.SimpleConfig);
25
+ const cacheMiddleware = resolveCacheMiddleware(this.cacheHeaderMiddleware, config, "module.fypr.output-gateway.elements.cache", { maxAge: 5 * 60, staleWhileRevalidate: 60 });
27
26
  // DCIP refreshes device statuses ~1×/min, so the 5-minute default above would be too stale.
28
- const deviceStatusCacheMiddleware = (0, cacheMiddleware_1.resolveCacheMiddleware)(this.cacheHeaderMiddleware, config, "module.fypr.output-gateway.deviceStatuses.cache", { maxAge: 60, staleWhileRevalidate: 30 });
27
+ const deviceStatusCacheMiddleware = resolveCacheMiddleware(this.cacheHeaderMiddleware, config, "module.fypr.output-gateway.deviceStatuses.cache", { maxAge: 60, staleWhileRevalidate: 30 });
29
28
  const listCacheMiddleware = (req, res, next) => {
30
29
  const scopes = req.query.scopes;
31
30
  const requestsDeviceStatus = Array.isArray(scopes)
32
- ? scopes.includes(index_1.SCOPE_DEVICE_STATUS)
33
- : scopes === index_1.SCOPE_DEVICE_STATUS;
31
+ ? scopes.includes(SCOPE_DEVICE_STATUS)
32
+ : scopes === SCOPE_DEVICE_STATUS;
34
33
  (requestsDeviceStatus ? deviceStatusCacheMiddleware : cacheMiddleware)(req, res, next);
35
34
  };
36
- const kindParamMiddleware = (0, express_validator_1.param)("kind")
37
- .isIn(constants_1.fyprElementKinds)
38
- .withMessage(`kind must be one of: ${constants_1.fyprElementKinds.join(", ")}`);
35
+ const kindParamMiddleware = param("kind")
36
+ .isIn(fyprElementKinds)
37
+ .withMessage(`kind must be one of: ${fyprElementKinds.join(", ")}`);
39
38
  this.router.get("/", cacheMiddleware, this.controller.getIndex(`/${this.version}/${this.path}`));
40
- this.router.get("/:kind", kindParamMiddleware, ...this.informationPanelsQueryMiddleware(), (0, Validation_1.paginationLimitMiddleware)("FyprElementKindsRouter"), Validation_1.checkErrors, listCacheMiddleware, this.controller.getAll);
41
- this.router.get("/:kind/:id", kindParamMiddleware, (0, express_validator_1.param)("id").isUUID(), Validation_1.checkErrors, cacheMiddleware, this.controller.getOne);
39
+ this.router.get("/:kind", kindParamMiddleware, ...this.informationPanelsQueryMiddleware(), paginationLimitMiddleware("FyprElementKindsRouter"), checkErrors, listCacheMiddleware, this.controller.getAll);
40
+ this.router.get("/:kind/:id", kindParamMiddleware, param("id").isUUID(), checkErrors, cacheMiddleware, this.controller.getOne);
42
41
  }
43
42
  // Optional query filters that only apply to the information-panels listing. checkExact (in
44
43
  // checkErrors) registers them so they pass the no-unknown-params guard once validated.
45
44
  informationPanelsQueryMiddleware() {
46
- const jis = (0, express_validator_1.query)("jis")
45
+ const jis = query("jis")
47
46
  .optional()
48
- .custom(InformationPanelsOnlyValidator_1.InformationPanelsOnlyValidator.field("jis"))
47
+ .custom(InformationPanelsOnlyValidator.field("jis"))
49
48
  .bail()
50
49
  .isBoolean({ strict: false })
51
50
  .withMessage("jis must be a boolean")
52
51
  .toBoolean();
53
- const scopes = (0, express_validator_1.query)("scopes")
52
+ const scopes = query("scopes")
54
53
  .optional()
55
- .custom(InformationPanelsOnlyValidator_1.InformationPanelsOnlyValidator.field("scopes"))
54
+ .custom(InformationPanelsOnlyValidator.field("scopes"))
56
55
  .bail()
57
- .isIn(index_1.informationPanelScopes)
58
- .withMessage(`scopes must be one of: ${index_1.informationPanelScopes.join(", ")}`);
59
- const state = (0, express_validator_1.query)("state")
56
+ .isIn(informationPanelScopes)
57
+ .withMessage(`scopes must be one of: ${informationPanelScopes.join(", ")}`);
58
+ const state = query("state")
60
59
  .optional()
61
- .custom(InformationPanelsOnlyValidator_1.InformationPanelsOnlyValidator.field("state"))
60
+ .custom(InformationPanelsOnlyValidator.field("state"))
62
61
  .bail()
63
- .isIn(index_1.fyprElementStates)
64
- .withMessage(`state must be one of: ${index_1.fyprElementStates.join(", ")}`);
65
- const hasDeviceId = (0, express_validator_1.query)("hasDeviceId")
62
+ .isIn(fyprElementStates)
63
+ .withMessage(`state must be one of: ${fyprElementStates.join(", ")}`);
64
+ const hasDeviceId = query("hasDeviceId")
66
65
  .optional()
67
- .custom(InformationPanelsOnlyValidator_1.InformationPanelsOnlyValidator.field("hasDeviceId"))
66
+ .custom(InformationPanelsOnlyValidator.field("hasDeviceId"))
68
67
  .bail()
69
68
  .isBoolean({ strict: false })
70
69
  .withMessage("hasDeviceId must be a boolean")
@@ -72,6 +71,5 @@ class V1FyprElementKindsRouter extends AbstractRouter_1.AbstractRouter {
72
71
  return [jis, scopes, state, hasDeviceId];
73
72
  }
74
73
  }
75
- exports.V1FyprElementKindsRouter = V1FyprElementKindsRouter;
76
- exports.v1FyprElementKindsRouter = new V1FyprElementKindsRouter();
74
+ export const v1FyprElementKindsRouter = new V1FyprElementKindsRouter();
77
75
  //# sourceMappingURL=V1FyprElementKindsRouter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"V1FyprElementKindsRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/routers/v1/V1FyprElementKinds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aACN,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;aAC5B,WAAW,CAAC,+BAA+B,CAAC;aAC5C,SAAS,EAAE,CAAC;QAEjB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IAC7C,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAmB,IAAI,wBAAwB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
- import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
2
- import { Router } from "@golemio/core/dist/shared/express";
1
+ import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter.js";
2
+ import type { Router as TRouter } from "@golemio/core/dist/shared/express.js";
3
3
  export declare class V1FyprMetadataRouter extends AbstractRouter {
4
- router: Router;
4
+ router: TRouter;
5
5
  private cacheHeaderMiddleware;
6
6
  private controller;
7
7
  constructor();
@@ -1,27 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.v1FyprMetadataRouter = exports.V1FyprMetadataRouter = void 0;
4
- const Di_1 = require("../../../ioc/Di");
5
- const FYPROGContainerTokens_1 = require("../../../ioc/FYPROGContainerTokens");
6
- const cacheMiddleware_1 = require("../middlewares/cacheMiddleware");
7
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
8
- const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
9
- const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
10
- const express_1 = require("@golemio/core/dist/shared/express");
11
- class V1FyprMetadataRouter extends AbstractRouter_1.AbstractRouter {
1
+ import { fyprOGContainer } from "#og/ioc/Di";
2
+ import { fyprOGContainerTokens } from "#og/ioc/FYPROGContainerTokens";
3
+ import { resolveCacheMiddleware } from "#og/fypr/routers/middlewares/cacheMiddleware";
4
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
5
+ import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter.js";
6
+ import { ContainerToken, OutputGatewayContainer } from "@golemio/core/dist/output-gateway/ioc/index.js";
7
+ import Express from "@golemio/core/dist/shared/express.js";
8
+ const { Router } = Express;
9
+ export class V1FyprMetadataRouter extends AbstractRouter {
12
10
  constructor() {
13
11
  super("v1", "fypr/metadata");
14
- this.router = (0, express_1.Router)();
15
- this.cacheHeaderMiddleware = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
16
- this.controller = Di_1.fyprOGContainer.resolve(FYPROGContainerTokens_1.fyprOGContainerTokens.V1FyprMetadataController);
12
+ this.router = Router();
13
+ this.cacheHeaderMiddleware = OutputGatewayContainer.resolve(ContainerToken.CacheHeaderMiddleware);
14
+ this.controller = fyprOGContainer.resolve(fyprOGContainerTokens.V1FyprMetadataController);
17
15
  this.initRoutes();
18
16
  }
19
17
  initRoutes() {
20
- const config = ioc_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.SimpleConfig);
21
- const cacheMiddleware = (0, cacheMiddleware_1.resolveCacheMiddleware)(this.cacheHeaderMiddleware, config, "module.fypr.output-gateway.elements.cache", { maxAge: 5 * 60, staleWhileRevalidate: 60 });
18
+ const config = OutputGatewayContainer.resolve(CoreToken.SimpleConfig);
19
+ const cacheMiddleware = resolveCacheMiddleware(this.cacheHeaderMiddleware, config, "module.fypr.output-gateway.elements.cache", { maxAge: 5 * 60, staleWhileRevalidate: 60 });
22
20
  this.router.get("/", cacheMiddleware, this.controller.getMetadata(`/${this.version}/fypr/elements`));
23
21
  }
24
22
  }
25
- exports.V1FyprMetadataRouter = V1FyprMetadataRouter;
26
- exports.v1FyprMetadataRouter = new V1FyprMetadataRouter();
23
+ export const v1FyprMetadataRouter = new V1FyprMetadataRouter();
27
24
  //# sourceMappingURL=V1FyprMetadataRouter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"V1FyprMetadataRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.ts"],"names":[],"mappings":";;;AACA,wCAA6C;AAC7C,8EAAsE;AACtE,oEAAsF;AAEtF,wEAAqE;AACrE,sFAAmF;AAEnF,+DAA+F;AAC/F,+DAA2D;AAE3D,MAAa,oBAAqB,SAAQ,+BAAc;IAKpD;QACI,KAAK,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAL1B,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QAM7B,IAAI,CAAC,qBAAqB,GAAG,4BAAsB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACzH,IAAI,CAAC,UAAU,GAAG,oBAAe,CAAC,OAAO,CAA2B,6CAAqB,CAAC,wBAAwB,CAAC,CAAC;QACpH,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;QAChB,MAAM,MAAM,GAAG,4BAAsB,CAAC,OAAO,CAAgB,qBAAS,CAAC,YAAY,CAAC,CAAC;QACrF,MAAM,eAAe,GAAG,IAAA,wCAAsB,EAC1C,IAAI,CAAC,qBAAqB,EAC1B,MAAM,EACN,2CAA2C,EAC3C,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAC/C,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;IACzG,CAAC;CACJ;AAtBD,oDAsBC;AAEY,QAAA,oBAAoB,GAAmB,IAAI,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"V1FyprMetadataRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAA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@golemio/core/dist/shared/express-validator";
1
+ import type { CustomValidator } from "@golemio/core/dist/shared/express-validator.js";
2
2
  export declare class InformationPanelsOnlyValidator {
3
3
  static field(paramName: string): CustomValidator;
4
4
  }
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InformationPanelsOnlyValidator = void 0;
4
1
  // Filters jis/scopes/state/hasDeviceId only make sense for information-panels; reject them on other kinds.
5
- class InformationPanelsOnlyValidator {
2
+ export class InformationPanelsOnlyValidator {
6
3
  static field(paramName) {
7
4
  return (_value, { req }) => {
8
5
  if (req.params?.["kind"] !== "information-panels") {
@@ -12,5 +9,4 @@ class InformationPanelsOnlyValidator {
12
9
  };
13
10
  }
14
11
  }
15
- exports.InformationPanelsOnlyValidator = InformationPanelsOnlyValidator;
16
12
  //# sourceMappingURL=InformationPanelsOnlyValidator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelsOnlyValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.ts"],"names":[],"mappings":";;;AAEA,2GAA2G;AAC3G,MAAa,8BAA8B;IAChC,MAAM,CAAC,KAAK,CAAC,SAAiB;QACjC,OAAO,CAAC,MAAe,EAAE,EAAE,GAAG,EAAQ,EAAW,EAAE;YAC/C,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,oBAAoB,EAAE,CAAC;gBAChD,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,2CAA2C,CAAC,CAAC;YAC7E,CAAC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;IACN,CAAC;CACJ;AATD,wEASC"}
1
+ {"version":3,"file":"InformationPanelsOnlyValidator.js","sourceRoot":"","sources":["../../../../../../src/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.ts"],"names":[],"mappings":"AAEA,2GAA2G;AAC3G,MAAM,OAAO,8BAA8B;IAChC,MAAM,CAAC,KAAK,CAAC,SAAiB;QACjC,OAAO,CAAC,MAAe,EAAE,EAAE,GAAG,EAAQ,EAAW,EAAE;YAC/C,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,oBAAoB,EAAE,CAAC;gBAChD,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,2CAA2C,CAAC,CAAC;YAC7E,CAAC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;IACN,CAAC;CACJ"}
@@ -1,6 +1,6 @@
1
- import { IOGInformationPanel } from "../../interfaces/IOGInformationPanel";
2
- import { AnyFyprElement } from "../../../schema-definitions";
3
- import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
1
+ import type { IOGInformationPanel } from "#og/interfaces/IOGInformationPanel";
2
+ import type { AnyFyprElement } from "#sch/index";
3
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation.js";
4
4
  export declare class InformationPanelOutputTransformation extends AbstractTransformation<AnyFyprElement, IOGInformationPanel> {
5
5
  readonly name = "InformationPanelOutputTransformation";
6
6
  transformArray: (data: AnyFyprElement[], embeds?: string[]) => IOGInformationPanel[];
@@ -1,16 +1,13 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
6
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.InformationPanelOutputTransformation = void 0;
10
- const _sch_1 = require("../../../schema-definitions");
11
- const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
12
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
13
- let InformationPanelOutputTransformation = class InformationPanelOutputTransformation extends AbstractTransformation_1.AbstractTransformation {
7
+ import { SCOPE_DEVICE_STATUS, SCOPE_ROUTES } from "#sch/index";
8
+ import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation.js";
9
+ import { injectable } from "@golemio/core/dist/shared/tsyringe.js";
10
+ let InformationPanelOutputTransformation = class InformationPanelOutputTransformation extends AbstractTransformation {
14
11
  constructor() {
15
12
  super(...arguments);
16
13
  this.name = "InformationPanelOutputTransformation";
@@ -23,7 +20,7 @@ let InformationPanelOutputTransformation = class InformationPanelOutputTransform
23
20
  presets: this.convertDelimitedStringToArray(preset),
24
21
  panel_size: this.parsePanelSize(panel_size),
25
22
  };
26
- if (embeds?.includes(_sch_1.SCOPE_ROUTES) && presetsRoutesAgg?.length) {
23
+ if (embeds?.includes(SCOPE_ROUTES) && presetsRoutesAgg?.length) {
27
24
  result.routes = presetsRoutesAgg.map(({ route_name, note, is_testing, routes }) => ({
28
25
  route_name,
29
26
  note,
@@ -31,7 +28,7 @@ let InformationPanelOutputTransformation = class InformationPanelOutputTransform
31
28
  routes,
32
29
  }));
33
30
  }
34
- if (embeds?.includes(_sch_1.SCOPE_DEVICE_STATUS)) {
31
+ if (embeds?.includes(SCOPE_DEVICE_STATUS)) {
35
32
  result.device_status = deviceStatus
36
33
  ? {
37
34
  last_contact: deviceStatus.last_contact ? new Date(deviceStatus.last_contact).toISOString() : null,
@@ -58,8 +55,8 @@ let InformationPanelOutputTransformation = class InformationPanelOutputTransform
58
55
  return isNaN(parsed) ? null : parsed;
59
56
  }
60
57
  };
61
- exports.InformationPanelOutputTransformation = InformationPanelOutputTransformation;
62
- exports.InformationPanelOutputTransformation = InformationPanelOutputTransformation = __decorate([
63
- (0, tsyringe_1.injectable)()
58
+ InformationPanelOutputTransformation = __decorate([
59
+ injectable()
64
60
  ], InformationPanelOutputTransformation);
61
+ export { InformationPanelOutputTransformation };
65
62
  //# sourceMappingURL=InformationPanelOutputTransformation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelOutputTransformation.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/transformations/InformationPanelOutputTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,sDAAyE;AAGzE,6GAA0G;AAC1G,iEAAgE;AAGzD,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,+CAA2D;IAA9G;;QACa,SAAI,GAAG,sCAAsC,CAAC;QAE9C,mBAAc,GAAG,CAAC,IAAsB,EAAE,MAAiB,EAAyB,EAAE,CAClG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAwD,EAAE,EAAE,CAClE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CACrE,CAAC;QAEU,qBAAgB,GAAG,CAC/B,OAA2D,EAC3D,MAAiB,EACE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAE5F,sBAAiB,GAAG,CAAC,KAAqB,EAAE,MAAiB,EAAuB,EAAE;YAC5F,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,KAGvE,CAAC;YACF,MAAM,MAAM,GAAwB;gBAChC,GAAG,IAAI;gBACP,OAAO,EAAE,IAAI,CAAC,6BAA6B,CAAC,MAAM,CAAC;gBACnD,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC;aAC9C,CAAC;YACF,IAAI,MAAM,EAAE,QAAQ,CAAC,mBAAY,CAAC,IAAI,gBAAgB,EAAE,MAAM,EAAE,CAA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;QACrD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;CACJ,CAAA;AAxDY,oFAAoC;+CAApC,oCAAoC;IADhD,IAAA,qBAAU,GAAE;GACA,oCAAoC,CAwDhD"}
1
+ {"version":3,"file":"InformationPanelOutputTransformation.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/transformations/InformationPanelOutputTransformation.ts"],"names":[],"mappings":";;;;;;AAEA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAG5D,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,sBAA2D;IAA9G;;QACa,SAAI,GAAG,sCAAsC,CAAC;QAE9C,mBAAc,GAAG,CAAC,IAAsB,EAAE,MAAiB,EAAyB,EAAE,CAClG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAwD,EAAE,EAAE,CAClE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CACrE,CAAC;QAEU,qBAAgB,GAAG,CAC/B,OAA2D,EAC3D,MAAiB,EACE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAE5F,sBAAiB,GAAG,CAAC,KAAqB,EAAE,MAAiB,EAAuB,EAAE;YAC5F,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,KAGvE,CAAC;YACF,MAAM,MAAM,GAA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CAAC,CAAC,CAAC,IAAI,CAAC;IAC3C,CAAC;IAEO,cAAc,CAAC,KAAoB;QACvC,IAAI,KAAK,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC/B,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACrD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;CACJ,CAAA;AAxDY,oCAAoC;IADhD,UAAU,EAAE;GACA,oCAAoC,CAwDhD"}
@@ -1,2 +1,2 @@
1
- import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
1
+ import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter.js";
2
2
  export declare const routers: AbstractRouter[];
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.routers = void 0;
4
- const routers_1 = require("./fypr/routers");
5
- exports.routers = [routers_1.v1FyprElementKindsRouter, routers_1.v1FyprMetadataRouter];
1
+ import { v1FyprElementKindsRouter, v1FyprMetadataRouter } from "#og/fypr/routers/index";
2
+ export const routers = [v1FyprElementKindsRouter, v1FyprMetadataRouter];
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":";;;AAAA,4CAAkF;AAGrE,QAAA,OAAO,GAAqB,CAAC,kCAAwB,EAAE,8BAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGxF,MAAM,CAAC,MAAM,OAAO,GAAqB,CAAC,wBAAwB,EAAE,oBAAoB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { IInformationPanel } from "../../schema-definitions/models/interfaces/IInformationPanel";
2
- import { IOGInformationPanelScopes } from "./IOGInformationPanelScopes";
1
+ import type { IInformationPanel } from "#sch/models/interfaces/IInformationPanel";
2
+ import type { IOGInformationPanelScopes } from "./IOGInformationPanelScopes.js";
3
3
  export type IOGInformationPanel = Omit<IInformationPanel, "preset" | "panel_size"> & Partial<IOGInformationPanelScopes> & {
4
4
  presets: string[] | null;
5
5
  panel_size: number | null;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=IOGInformationPanel.js.map
@@ -1,5 +1,5 @@
1
- import { IDCIPStatusOverview } from "../../schema-definitions/data-sources/interfaces/IDCIPStatusOverview";
2
- import { IPresetRouteAgg } from "../../schema-definitions/models/interfaces/IPresetRouteAgg";
1
+ import type { IDCIPStatusOverview } from "#sch/data-sources/interfaces/IDCIPStatusOverview";
2
+ import type { IPresetRouteAgg } from "#sch/models/interfaces/IPresetRouteAgg";
3
3
  export type IOGPresetRoute = IPresetRouteAgg;
4
4
  export interface IOGPresetRoutes {
5
5
  route_name: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=IOGInformationPanelScopes.js.map
@@ -1,2 +1,2 @@
1
- import { DependencyContainer } from "@golemio/core/dist/shared/tsyringe";
1
+ import type { DependencyContainer } from "@golemio/core/dist/shared/tsyringe.js";
2
2
  export declare const fyprOGContainer: DependencyContainer;
@@ -1,37 +1,34 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fyprOGContainer = void 0;
4
- const V1FyprElementKindsController_1 = require("../fypr/controllers/v1/V1FyprElementKindsController");
5
- const InformationPanelOutputTransformation_1 = require("../fypr/transformations/InformationPanelOutputTransformation");
6
- const V1FyprMetadataController_1 = require("../fypr/controllers/v1/V1FyprMetadataController");
7
- const FyprElementRepository_1 = require("../fypr/data-access/FyprElementRepository");
8
- const _sch_1 = require("../../schema-definitions");
9
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
10
- const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
11
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
12
- const FYPROGContainerTokens_1 = require("./FYPROGContainerTokens");
1
+ import { V1FyprElementKindsController } from "#og/fypr/controllers/v1/V1FyprElementKindsController";
2
+ import { InformationPanelOutputTransformation } from "#og/fypr/transformations/InformationPanelOutputTransformation";
3
+ import { V1FyprMetadataController } from "#og/fypr/controllers/v1/V1FyprMetadataController";
4
+ import { FyprElementRepository } from "#og/fypr/data-access/FyprElementRepository";
5
+ import { FyprElementsConfig, fyprElementKinds } from "#sch/index";
6
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
7
+ import { OutputGatewayContainer } from "@golemio/core/dist/output-gateway/ioc/index.js";
8
+ import { instanceCachingFactory } from "@golemio/core/dist/shared/tsyringe.js";
9
+ import { fyprOGContainerTokens } from "./FYPROGContainerTokens.js";
13
10
  //#region Initialization
14
- exports.fyprOGContainer = ioc_1.OutputGatewayContainer.createChildContainer();
11
+ export const fyprOGContainer = OutputGatewayContainer.createChildContainer();
15
12
  //#endregion
16
13
  //#region Repositories
17
- exports.fyprOGContainer.register(FYPROGContainerTokens_1.fyprOGContainerTokens.FyprElementRepositoriesMap, {
18
- useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => {
19
- const connector = c.resolve(CoreToken_1.CoreToken.PostgresConnector);
20
- const logger = c.resolve(CoreToken_1.CoreToken.Logger);
14
+ fyprOGContainer.register(fyprOGContainerTokens.FyprElementRepositoriesMap, {
15
+ useFactory: instanceCachingFactory((c) => {
16
+ const connector = c.resolve(CoreToken.PostgresConnector);
17
+ const logger = c.resolve(CoreToken.Logger);
21
18
  const map = new Map();
22
- for (const kind of _sch_1.fyprElementKinds) {
23
- const { modelName, tableName, attributeModel, embeds } = _sch_1.FyprElementsConfig[kind];
24
- map.set(kind, new FyprElementRepository_1.FyprElementRepository(connector, logger, modelName, tableName, attributeModel, embeds));
19
+ for (const kind of fyprElementKinds) {
20
+ const { modelName, tableName, attributeModel, embeds } = FyprElementsConfig[kind];
21
+ map.set(kind, new FyprElementRepository(connector, logger, modelName, tableName, attributeModel, embeds));
25
22
  }
26
23
  return map;
27
24
  }),
28
25
  });
29
26
  //#endregion
30
27
  //#region Transformations
31
- exports.fyprOGContainer.registerSingleton(FYPROGContainerTokens_1.fyprOGContainerTokens.InformationPanelOutputTransformation, InformationPanelOutputTransformation_1.InformationPanelOutputTransformation);
28
+ fyprOGContainer.registerSingleton(fyprOGContainerTokens.InformationPanelOutputTransformation, InformationPanelOutputTransformation);
32
29
  //#endregion
33
30
  //#region Controllers
34
- exports.fyprOGContainer.registerSingleton(FYPROGContainerTokens_1.fyprOGContainerTokens.V1FyprElementKindsController, V1FyprElementKindsController_1.V1FyprElementKindsController);
35
- exports.fyprOGContainer.registerSingleton(FYPROGContainerTokens_1.fyprOGContainerTokens.V1FyprMetadataController, V1FyprMetadataController_1.V1FyprMetadataController);
31
+ fyprOGContainer.registerSingleton(fyprOGContainerTokens.V1FyprElementKindsController, V1FyprElementKindsController);
32
+ fyprOGContainer.registerSingleton(fyprOGContainerTokens.V1FyprMetadataController, V1FyprMetadataController);
36
33
  //#endregion
37
34
  //# sourceMappingURL=Di.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,sGAAoG;AACpG,uHAAqH;AACrH,8FAA4F;AAC5F,qFAAmF;AACnF,mDAA6F;AAG7F,wEAAqE;AACrE,+DAA+E;AAC/E,iEAAiG;AACjG,mEAAgE;AAEhE,wBAAwB;AACX,QAAA,eAAe,GAAwB,4BAAsB,CAAC,oBAAoB,EAAE,CAAC;AAClG,YAAY;AAEZ,sBAA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iB,CAC7B,qBAAqB,CAAC,oCAAoC,EAC1D,oCAAoC,CACvC,CAAC;AACF,YAAY;AAEZ,qBAAqB;AACrB,eAAe,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,4BAA4B,EAAE,4BAA4B,CAAC,CAAC;AACpH,eAAe,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAC;AAC5G,YAAY"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fyprOGContainerTokens = void 0;
4
- exports.fyprOGContainerTokens = {
1
+ export const fyprOGContainerTokens = {
5
2
  //#region Repositories
6
3
  FyprElementRepositoriesMap: Symbol("FyprElementRepositoriesMap"),
7
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"FYPROGContainerTokens.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/FYPROGContainerTokens.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACjC,sBAAsB;IACtB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,YAAY;IAEZ,yBAAyB;IACzB,oCAAoC,EAAE,MAAM,CAAC,sCAAsC,CAAC;IACpF,YAAY;IAEZ,qBAAqB;IACrB,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CAAC;IACpE,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,YAAY;CACf,CAAC"}
1
+ {"version":3,"file":"FYPROGContainerTokens.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/FYPROGContainerTokens.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,sBAAsB;IACtB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,YAAY;IAEZ,yBAAyB;IACzB,oCAAoC,EAAE,MAAM,CAAC,sCAAsC,CAAC;IACpF,YAAY;IAEZ,qBAAqB;IACrB,4BAA4B,EAAE,MAAM,CAAC,8BAA8B,CAAC;IACpE,wBAAwB,EAAE,MAAM,CAAC,0BAA0B,CAAC;IAC5D,YAAY;CACf,CAAC"}
@@ -1 +1,2 @@
1
- export { FyprElementKind, fyprElementKinds } from "../../../schema-definitions";
1
+ export { fyprElementKinds } from "#sch/index";
2
+ export type { FyprElementKind } from "#sch/index";
@@ -1,6 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fyprElementKinds = void 0;
4
- var _sch_1 = require("../../../schema-definitions");
5
- Object.defineProperty(exports, "fyprElementKinds", { enumerable: true, get: function () { return _sch_1.fyprElementKinds; } });
1
+ export { fyprElementKinds } from "#sch/index";
6
2
  //# sourceMappingURL=element-kinds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"element-kinds.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/constants/element-kinds.ts"],"names":[],"mappings":";;;AAAA,oDAAyD;AAA/B,wGAAA,gBAAgB,OAAA"}
1
+ {"version":3,"file":"element-kinds.js","sourceRoot":"","sources":["../../../../src/output-gateway/shared/constants/element-kinds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- export * from "./element-kinds";
1
+ export * from "./element-kinds.js";