@golemio/fypr 1.12.1-dev.2832960889 → 2.0.0-dev.2871273577

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,4 +1,3 @@
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);
@@ -11,30 +10,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DisplayCaseRepository = void 0;
16
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
18
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
19
- const const_1 = require("../../schema-definitions/const");
20
- const DisplayCaseModel_1 = require("../../schema-definitions/models/DisplayCaseModel");
21
- const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
22
- let DisplayCaseRepository = class DisplayCaseRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
13
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
14
+ import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
15
+ import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
16
+ import { PG_SCHEMA } from "#sch/const";
17
+ import { DisplayCaseModel } from "#sch/models/DisplayCaseModel";
18
+ import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
19
+ const { JSONSchemaValidator } = GolemioValidator;
20
+ let DisplayCaseRepository = class DisplayCaseRepository extends AbstractFyprRepository {
23
21
  constructor(connector, logger) {
24
22
  super(connector, logger);
25
- this.tableName = DisplayCaseModel_1.DisplayCaseModel.tableName;
23
+ this.tableName = DisplayCaseModel.tableName;
26
24
  this.entityLabel = "DisplayCases";
27
- this.validator = new golemio_validator_1.JSONSchemaValidator("DisplayCaseRepository", DisplayCaseModel_1.DisplayCaseModel.jsonSchema);
28
- this.sequelizeModel = connector.getConnection().define(this.tableName, DisplayCaseModel_1.DisplayCaseModel.attributeModel, {
29
- schema: const_1.PG_SCHEMA,
25
+ this.validator = new JSONSchemaValidator("DisplayCaseRepository", DisplayCaseModel.jsonSchema);
26
+ this.sequelizeModel = connector.getConnection().define(this.tableName, DisplayCaseModel.attributeModel, {
27
+ schema: PG_SCHEMA,
30
28
  });
31
29
  }
32
30
  };
33
- exports.DisplayCaseRepository = DisplayCaseRepository;
34
- exports.DisplayCaseRepository = DisplayCaseRepository = __decorate([
35
- (0, tsyringe_1.injectable)(),
36
- __param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
37
- __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
31
+ DisplayCaseRepository = __decorate([
32
+ injectable(),
33
+ __param(0, inject(CoreToken.PostgresConnector)),
34
+ __param(1, inject(CoreToken.Logger)),
38
35
  __metadata("design:paramtypes", [Object, Object])
39
36
  ], DisplayCaseRepository);
37
+ export { DisplayCaseRepository };
40
38
  //# sourceMappingURL=DisplayCaseRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayCaseRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/DisplayCaseRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,mFAAkF;AAElF,iEAAwE;AACxE,0DAAuC;AACvC,uFAAgE;AAEhE,qEAAkE;AAG3D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAoC;IAO3E,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,mCAAgB,CAAC,SAAS,CAAC;QAGpC,gBAAW,GAAG,cAAc,CAAC;QAInC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,uBAAuB,EAAE,mCAAgB,CAAC,UAAU,CAAC,CAAC;QAC/F,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAgB,CAAC,cAAc,EAAE;YACpG,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,qBAAqB,CAcjC"}
1
+ {"version":3,"file":"DisplayCaseRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/DisplayCaseRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,sBAAoC;IAO3E,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;QAGpC,gBAAW,GAAG,cAAc,CAAC;QAInC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAC/F,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,cAAc,EAAE;YACpG,MAAM,EAAE,SAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,qBAAqB;IADjC,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,qBAAqB,CAcjC"}
@@ -1,12 +1,12 @@
1
- import { ILogger } from "@golemio/core/dist/helpers";
2
- import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
- import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
4
- import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
5
- import { IInformationPanelPreset } from "../../schema-definitions/models/interfaces/IInformationPanelPreset";
1
+ import type { ILogger } from "@golemio/core/dist/helpers/index.js";
2
+ import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
3
+ import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
4
+ import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
5
+ import type { IInformationPanelPreset } from "#sch/models/interfaces/IInformationPanelPreset";
6
6
  export declare class InformationPanelPresetsRepository extends AbstractValidatableRepository {
7
7
  schema: string;
8
8
  tableName: string;
9
- validator: JSONSchemaValidator;
9
+ validator: TJSONSchemaValidator;
10
10
  private sequelizeModel;
11
11
  constructor(connector: IDatabaseConnector, log: ILogger);
12
12
  /**
@@ -1,4 +1,3 @@
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);
@@ -11,26 +10,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.InformationPanelPresetsRepository = void 0;
16
- const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
17
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
18
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
19
- const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
20
- const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
21
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
22
- const const_1 = require("../../schema-definitions/const");
23
- const InformationPanelModel_1 = require("../../schema-definitions/models/InformationPanelModel");
24
- const InformationPanelPresetsModel_1 = require("../../schema-definitions/models/InformationPanelPresetsModel");
25
- let InformationPanelPresetsRepository = class InformationPanelPresetsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
13
+ import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
14
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
15
+ import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
16
+ import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
17
+ import Sequelize from "@golemio/core/dist/shared/sequelize.js";
18
+ import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
19
+ import { PG_SCHEMA, STALE_ROW_THRESHOLD } from "#sch/const";
20
+ import { InformationPanelModel } from "#sch/models/InformationPanelModel";
21
+ import { InformationPanelPresetsModel } from "#sch/models/InformationPanelPresetsModel";
22
+ const { GeneralError } = GolemioErrors;
23
+ const { JSONSchemaValidator } = GolemioValidator;
24
+ const { Op, QueryTypes, literal } = Sequelize;
25
+ let InformationPanelPresetsRepository = class InformationPanelPresetsRepository extends AbstractValidatableRepository {
26
26
  constructor(connector, log) {
27
27
  super(connector, log);
28
- this.schema = const_1.PG_SCHEMA;
29
- this.tableName = InformationPanelPresetsModel_1.InformationPanelPresetsModel.tableName;
30
- this.validator = new golemio_validator_1.JSONSchemaValidator("InformationPanelPresetsRepository", InformationPanelPresetsModel_1.InformationPanelPresetsModel.jsonSchema);
28
+ this.schema = PG_SCHEMA;
29
+ this.tableName = InformationPanelPresetsModel.tableName;
30
+ this.validator = new JSONSchemaValidator("InformationPanelPresetsRepository", InformationPanelPresetsModel.jsonSchema);
31
31
  this.sequelizeModel = connector
32
32
  .getConnection()
33
- .define(this.tableName, InformationPanelPresetsModel_1.InformationPanelPresetsModel.attributeModel, { schema: this.schema });
33
+ .define(this.tableName, InformationPanelPresetsModel.attributeModel, { schema: this.schema });
34
34
  }
35
35
  /**
36
36
  * Upserts presets and re-establishes panel links atomically — relink runs in the same transaction
@@ -42,36 +42,36 @@ let InformationPanelPresetsRepository = class InformationPanelPresetsRepository
42
42
  let rows;
43
43
  try {
44
44
  rows = await this.sequelizeModel.bulkCreate(data, {
45
- updateOnDuplicate: InformationPanelPresetsModel_1.InformationPanelPresetsModel.getUpdateAttributes(),
45
+ updateOnDuplicate: InformationPanelPresetsModel.getUpdateAttributes(),
46
46
  transaction,
47
47
  });
48
48
  await this.sequelizeModel.destroy({
49
- where: { updated_at: { [sequelize_1.Op.lt]: (0, sequelize_1.literal)(const_1.STALE_ROW_THRESHOLD) } },
49
+ where: { updated_at: { [Op.lt]: literal(STALE_ROW_THRESHOLD) } },
50
50
  transaction,
51
51
  });
52
- await this.connector.getConnection().query(`UPDATE ${const_1.PG_SCHEMA}.${InformationPanelPresetsModel_1.InformationPanelPresetsModel.tableName} AS p
52
+ await this.connector.getConnection().query(`UPDATE ${PG_SCHEMA}.${InformationPanelPresetsModel.tableName} AS p
53
53
  SET information_panel_document_id = mapping.document_id, updated_at = now()
54
54
  FROM (
55
55
  SELECT ip.document_id, trim(preset_name) AS route_name
56
- FROM ${const_1.PG_SCHEMA}.${InformationPanelModel_1.InformationPanelModel.tableName} AS ip,
56
+ FROM ${PG_SCHEMA}.${InformationPanelModel.tableName} AS ip,
57
57
  regexp_split_to_table(ip.preset, '[\\s,]+') AS preset_name
58
58
  WHERE ip.preset IS NOT NULL AND trim(preset_name) <> ''
59
59
  ) AS mapping
60
- WHERE p.route_name = mapping.route_name`, { type: sequelize_1.QueryTypes.UPDATE, transaction });
60
+ WHERE p.route_name = mapping.route_name`, { type: QueryTypes.UPDATE, transaction });
61
61
  await transaction.commit();
62
62
  }
63
63
  catch (err) {
64
64
  await transaction.rollback();
65
- throw new golemio_errors_1.GeneralError("updateListAndRelink error", this.constructor.name, err);
65
+ throw new GeneralError("updateListAndRelink error", this.constructor.name, err);
66
66
  }
67
67
  return rows;
68
68
  }
69
69
  };
70
- exports.InformationPanelPresetsRepository = InformationPanelPresetsRepository;
71
- exports.InformationPanelPresetsRepository = InformationPanelPresetsRepository = __decorate([
72
- (0, tsyringe_1.injectable)(),
73
- __param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
74
- __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
70
+ InformationPanelPresetsRepository = __decorate([
71
+ injectable(),
72
+ __param(0, inject(CoreToken.PostgresConnector)),
73
+ __param(1, inject(CoreToken.Logger)),
75
74
  __metadata("design:paramtypes", [Object, Object])
76
75
  ], InformationPanelPresetsRepository);
76
+ export { InformationPanelPresetsRepository };
77
77
  //# sourceMappingURL=InformationPanelPresetsRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelPresetsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAA2F;AAC3F,iEAAwE;AACxE,0DAA4D;AAC5D,iGAA0E;AAC1E,+GAAwF;AAIjF,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,6DAA6B;IAOhF,YAAiD,SAA6B,EAA4B,GAAY;QAClH,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAPnB,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,2DAA4B,CAAC,SAAS,CAAC;QAOtD,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,mCAAmC,EAAE,2DAA4B,CAAC,UAAU,CAAC,CAAC;QACvH,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,2DAA4B,CAAC,cAAc,EAAE,EAAE,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BAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,iCAAiC,CAuD7C"}
1
+ {"version":3,"file":"InformationPanelPresetsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+FAA+F,CAAC;AAC9I,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,SAAS,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAGxF,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;AACvC,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AACjD,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;AAGvC,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,6BAA6B;IAOhF,YAAiD,SAA6B,EAA4B,GAAY;QAClH,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAPnB,WAAM,GAAG,SAAS,CAAC;QACnB,cAAS,GAAG,4BAA4B,CAAC,SAAS,CAAC;QAOtD,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CAAC,mCAAmC,EAAE,4BAA4B,CAAC,UAAU,CAAC,C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,CAAC,CAAC;QACpF,CAAC;QAED,OAAO,IAAiC,CAAC;IAC7C,CAAC;CACJ,CAAA;AAvDY,iCAAiC;IAD7C,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,iCAAiC,CAuD7C"}
@@ -1,12 +1,12 @@
1
- import { ILogger } from "@golemio/core/dist/helpers";
2
- import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
- import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
4
- import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
5
- import { IInformationPanelPresetRoute } from "../../schema-definitions/models/interfaces/IInformationPanelPresetRoute";
1
+ import type { ILogger } from "@golemio/core/dist/helpers/index.js";
2
+ import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
3
+ import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
4
+ import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
5
+ import type { IInformationPanelPresetRoute } from "#sch/models/interfaces/IInformationPanelPresetRoute";
6
6
  export declare class InformationPanelPresetsRoutesRepository extends AbstractValidatableRepository {
7
7
  schema: string;
8
8
  tableName: string;
9
- validator: JSONSchemaValidator;
9
+ validator: TJSONSchemaValidator;
10
10
  private sequelizeModel;
11
11
  constructor(connector: IDatabaseConnector, log: ILogger);
12
12
  updateList(data: IInformationPanelPresetRoute[]): Promise<void>;
@@ -1,4 +1,3 @@
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);
@@ -11,25 +10,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.InformationPanelPresetsRoutesRepository = void 0;
16
- const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
17
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
18
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
19
- const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
20
- const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
21
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
22
- const const_1 = require("../../schema-definitions/const");
23
- const InformationPanelPresetsRoutesModel_1 = require("../../schema-definitions/models/InformationPanelPresetsRoutesModel");
24
- let InformationPanelPresetsRoutesRepository = class InformationPanelPresetsRoutesRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
13
+ import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
14
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
15
+ import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
16
+ import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
17
+ import Sequelize from "@golemio/core/dist/shared/sequelize.js";
18
+ import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
19
+ import { PG_SCHEMA, STALE_ROW_THRESHOLD } from "#sch/const";
20
+ import { InformationPanelPresetsRoutesModel } from "#sch/models/InformationPanelPresetsRoutesModel";
21
+ const { GeneralError } = GolemioErrors;
22
+ const { JSONSchemaValidator } = GolemioValidator;
23
+ const { Op, literal } = Sequelize;
24
+ let InformationPanelPresetsRoutesRepository = class InformationPanelPresetsRoutesRepository extends AbstractValidatableRepository {
25
25
  constructor(connector, log) {
26
26
  super(connector, log);
27
- this.schema = const_1.PG_SCHEMA;
28
- this.tableName = InformationPanelPresetsRoutesModel_1.InformationPanelPresetsRoutesModel.tableName;
29
- this.validator = new golemio_validator_1.JSONSchemaValidator("InformationPanelPresetsRoutesRepository", InformationPanelPresetsRoutesModel_1.InformationPanelPresetsRoutesModel.jsonSchema);
27
+ this.schema = PG_SCHEMA;
28
+ this.tableName = InformationPanelPresetsRoutesModel.tableName;
29
+ this.validator = new JSONSchemaValidator("InformationPanelPresetsRoutesRepository", InformationPanelPresetsRoutesModel.jsonSchema);
30
30
  this.sequelizeModel = connector
31
31
  .getConnection()
32
- .define(this.tableName, InformationPanelPresetsRoutesModel_1.InformationPanelPresetsRoutesModel.attributeModel, { schema: this.schema });
32
+ .define(this.tableName, InformationPanelPresetsRoutesModel.attributeModel, { schema: this.schema });
33
33
  }
34
34
  async updateList(data) {
35
35
  this.validator.Validate(data);
@@ -38,26 +38,26 @@ let InformationPanelPresetsRoutesRepository = class InformationPanelPresetsRoute
38
38
  const transaction = await this.sequelizeModel.sequelize.transaction();
39
39
  try {
40
40
  await this.sequelizeModel.bulkCreate(deduped, {
41
- updateOnDuplicate: InformationPanelPresetsRoutesModel_1.InformationPanelPresetsRoutesModel.getUpdateAttributes(),
41
+ updateOnDuplicate: InformationPanelPresetsRoutesModel.getUpdateAttributes(),
42
42
  transaction,
43
43
  });
44
44
  await this.sequelizeModel.destroy({
45
- where: { updated_at: { [sequelize_1.Op.lt]: (0, sequelize_1.literal)(const_1.STALE_ROW_THRESHOLD) } },
45
+ where: { updated_at: { [Op.lt]: literal(STALE_ROW_THRESHOLD) } },
46
46
  transaction,
47
47
  });
48
48
  await transaction.commit();
49
49
  }
50
50
  catch (err) {
51
51
  await transaction.rollback();
52
- throw new golemio_errors_1.GeneralError("updateList error", this.constructor.name, err);
52
+ throw new GeneralError("updateList error", this.constructor.name, err);
53
53
  }
54
54
  }
55
55
  };
56
- exports.InformationPanelPresetsRoutesRepository = InformationPanelPresetsRoutesRepository;
57
- exports.InformationPanelPresetsRoutesRepository = InformationPanelPresetsRoutesRepository = __decorate([
58
- (0, tsyringe_1.injectable)(),
59
- __param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
60
- __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
56
+ InformationPanelPresetsRoutesRepository = __decorate([
57
+ injectable(),
58
+ __param(0, inject(CoreToken.PostgresConnector)),
59
+ __param(1, inject(CoreToken.Logger)),
61
60
  __metadata("design:paramtypes", [Object, Object])
62
61
  ], InformationPanelPresetsRoutesRepository);
62
+ export { InformationPanelPresetsRoutesRepository };
63
63
  //# sourceMappingURL=InformationPanelPresetsRoutesRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelPresetsRoutesRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRoutesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAA+E;AAC/E,iEAAwE;AACxE,0DAA4D;AAC5D,2HAAoG;AAI7F,IAAM,uCAAuC,GAA7C,MAAM,uCAAwC,SAAQ,6DAA6B;IAOtF,YAAiD,SAA6B,EAA4B,GAAY;QAClH,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAPnB,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,uEAAkC,CAAC,SAAS,CAAC;QAO5D,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CACpC,yCAAyC,EACzC,uEAAkC,CAAC,UAAU,CAChD,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,uEAAkC,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,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WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,uCAAuC,CA4CnD"}
1
+ {"version":3,"file":"InformationPanelPresetsRoutesRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRoutesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+FAA+F,CAAC;AAC9I,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,SAAS,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AAGpG,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;AACvC,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AACjD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;AAG3B,IAAM,uCAAuC,GAA7C,MAAM,uCAAwC,SAAQ,6BAA6B;IAOtF,YAAiD,SAA6B,EAA4B,GAAY;QAClH,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAPnB,WAAM,GAAG,SAAS,CAAC;QACnB,cAAS,GAAG,kCAAkC,CAAC,SAAS,CAAC;QAO5D,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CACpC,yCAAyC,EACzC,kCAAkC,CAAC,UAAU,CAChD,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC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AA;AA5CY,uCAAuC;IADnD,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,uCAAuC,CA4CnD"}
@@ -1,12 +1,12 @@
1
- import { ILogger } from "@golemio/core/dist/helpers";
2
- import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
- import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
4
- import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
5
- import { IInformationPanelPresetStop } from "../../schema-definitions/models/interfaces/IInformationPanelPresetStop";
1
+ import type { ILogger } from "@golemio/core/dist/helpers/index.js";
2
+ import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
3
+ import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
4
+ import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
5
+ import type { IInformationPanelPresetStop } from "#sch/models/interfaces/IInformationPanelPresetStop";
6
6
  export declare class InformationPanelPresetsStopsRepository extends AbstractValidatableRepository {
7
7
  schema: string;
8
8
  tableName: string;
9
- validator: JSONSchemaValidator;
9
+ validator: TJSONSchemaValidator;
10
10
  private sequelizeModel;
11
11
  constructor(connector: IDatabaseConnector, log: ILogger);
12
12
  updateList(data: IInformationPanelPresetStop[]): Promise<void>;
@@ -1,4 +1,3 @@
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);
@@ -11,51 +10,52 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.InformationPanelPresetsStopsRepository = void 0;
16
- const AbstractValidatableRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository");
17
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
18
- const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
19
- const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
20
- const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
21
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
22
- const const_1 = require("../../schema-definitions/const");
23
- const InformationPanelPresetsStopsModel_1 = require("../../schema-definitions/models/InformationPanelPresetsStopsModel");
24
- let InformationPanelPresetsStopsRepository = class InformationPanelPresetsStopsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
13
+ import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
14
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
15
+ import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
16
+ import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
17
+ import Sequelize from "@golemio/core/dist/shared/sequelize.js";
18
+ import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
19
+ import { PG_SCHEMA, STALE_ROW_THRESHOLD } from "#sch/const";
20
+ import { InformationPanelPresetsStopsModel } from "#sch/models/InformationPanelPresetsStopsModel";
21
+ const { GeneralError } = GolemioErrors;
22
+ const { JSONSchemaValidator } = GolemioValidator;
23
+ const { Op, literal } = Sequelize;
24
+ let InformationPanelPresetsStopsRepository = class InformationPanelPresetsStopsRepository extends AbstractValidatableRepository {
25
25
  constructor(connector, log) {
26
26
  super(connector, log);
27
- this.schema = const_1.PG_SCHEMA;
28
- this.tableName = InformationPanelPresetsStopsModel_1.InformationPanelPresetsStopsModel.tableName;
29
- this.validator = new golemio_validator_1.JSONSchemaValidator("InformationPanelPresetsStopsRepository", InformationPanelPresetsStopsModel_1.InformationPanelPresetsStopsModel.jsonSchema);
27
+ this.schema = PG_SCHEMA;
28
+ this.tableName = InformationPanelPresetsStopsModel.tableName;
29
+ this.validator = new JSONSchemaValidator("InformationPanelPresetsStopsRepository", InformationPanelPresetsStopsModel.jsonSchema);
30
30
  this.sequelizeModel = connector
31
31
  .getConnection()
32
- .define(this.tableName, InformationPanelPresetsStopsModel_1.InformationPanelPresetsStopsModel.attributeModel, { schema: this.schema });
32
+ .define(this.tableName, InformationPanelPresetsStopsModel.attributeModel, { schema: this.schema });
33
33
  }
34
34
  async updateList(data) {
35
35
  this.validator.Validate(data);
36
36
  const transaction = await this.sequelizeModel.sequelize.transaction();
37
37
  try {
38
38
  await this.sequelizeModel.bulkCreate(data, {
39
- updateOnDuplicate: InformationPanelPresetsStopsModel_1.InformationPanelPresetsStopsModel.getUpdateAttributes(),
39
+ updateOnDuplicate: InformationPanelPresetsStopsModel.getUpdateAttributes(),
40
40
  transaction,
41
41
  });
42
42
  await this.sequelizeModel.destroy({
43
- where: { updated_at: { [sequelize_1.Op.lt]: (0, sequelize_1.literal)(const_1.STALE_ROW_THRESHOLD) } },
43
+ where: { updated_at: { [Op.lt]: literal(STALE_ROW_THRESHOLD) } },
44
44
  transaction,
45
45
  });
46
46
  await transaction.commit();
47
47
  }
48
48
  catch (err) {
49
49
  await transaction.rollback();
50
- throw new golemio_errors_1.GeneralError("updateList error", this.constructor.name, err);
50
+ throw new GeneralError("updateList error", this.constructor.name, err);
51
51
  }
52
52
  }
53
53
  };
54
- exports.InformationPanelPresetsStopsRepository = InformationPanelPresetsStopsRepository;
55
- exports.InformationPanelPresetsStopsRepository = InformationPanelPresetsStopsRepository = __decorate([
56
- (0, tsyringe_1.injectable)(),
57
- __param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
58
- __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
54
+ InformationPanelPresetsStopsRepository = __decorate([
55
+ injectable(),
56
+ __param(0, inject(CoreToken.PostgresConnector)),
57
+ __param(1, inject(CoreToken.Logger)),
59
58
  __metadata("design:paramtypes", [Object, Object])
60
59
  ], InformationPanelPresetsStopsRepository);
60
+ export { InformationPanelPresetsStopsRepository };
61
61
  //# sourceMappingURL=InformationPanelPresetsStopsRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelPresetsStopsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsStopsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAA+E;AAC/E,iEAAwE;AACxE,0DAA4D;AAC5D,yHAAkG;AAI3F,IAAM,sCAAsC,GAA5C,MAAM,sCAAuC,SAAQ,6DAA6B;IAOrF,YAAiD,SAA6B,EAA4B,GAAY;QAClH,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAPnB,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,qEAAiC,CAAC,SAAS,CAAC;QAO3D,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CACpC,wCAAwC,EACxC,qEAAiC,CAAC,UAAU,CAC/C,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,qEAAiC,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3G,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,IAAmC;QACvD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAU,CAAC,WAAW,EAAE,CAAC;QACvE,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAW,EAAE;gBAC9C,iBAAiB,EAAE,qEAAiC,CAAC,mBAAmB,EAAS;gBACjF,WAAW;aACd,CAAC,CAAC;YAEH,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBAC9B,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,cAAE,CAAC,EAAE,CAAC,EAAE,IAAA,mBAAO,EAAC,2BAAmB,CAAC,EAAE,EAAE;gBAChE,WAAW;aACd,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,WAAW,CAAC,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,6BAAY,CAAC,kBAAkB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3E,CAAC;IACL,CAAC;CACJ,CAAA;AAtCY,wFAAsC;iDAAtC,sCAAsC;IADlD,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,sCAAsC,CAsClD"}
1
+ {"version":3,"file":"InformationPanelPresetsStopsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsStopsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+FAA+F,CAAC;AAC9I,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,SAAS,MAAM,wCAAwC,C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C,OAAO,CAAC;gBAC9B,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;gBAChE,WAAW;aACd,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,WAAW,CAAC,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3E,CAAC;IACL,CAAC;CACJ,CAAA;AAtCY,sCAAsC;IADlD,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,sCAAsC,CAsClD"}
@@ -1,12 +1,12 @@
1
- import { ILogger } from "@golemio/core/dist/helpers";
2
- import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
- import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
- import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
- import { InformationPanelModel } from "../../schema-definitions/models/InformationPanelModel";
6
- import { IInformationPanel } from "../../schema-definitions/models/interfaces/IInformationPanel";
7
- import { AbstractFyprRepository } from "./AbstractFyprRepository";
1
+ import type { ILogger } from "@golemio/core/dist/helpers/index.js";
2
+ import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
3
+ import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
4
+ import type { ModelStatic } from "@golemio/core/dist/shared/sequelize.js";
5
+ import { InformationPanelModel } from "#sch/models/InformationPanelModel";
6
+ import type { IInformationPanel } from "#sch/models/interfaces/IInformationPanel";
7
+ import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
8
8
  export declare class InformationPanelRepository extends AbstractFyprRepository<IInformationPanel> {
9
- validator: JSONSchemaValidator;
9
+ validator: TJSONSchemaValidator;
10
10
  tableName: string;
11
11
  protected sequelizeModel: ModelStatic<InformationPanelModel>;
12
12
  protected entityLabel: string;
@@ -1,4 +1,3 @@
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);
@@ -11,30 +10,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.InformationPanelRepository = void 0;
16
- const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
17
- const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
18
- const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
19
- const const_1 = require("../../schema-definitions/const");
20
- const InformationPanelModel_1 = require("../../schema-definitions/models/InformationPanelModel");
21
- const AbstractFyprRepository_1 = require("./AbstractFyprRepository");
22
- let InformationPanelRepository = class InformationPanelRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
13
+ import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
14
+ import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
15
+ import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
16
+ import { PG_SCHEMA } from "#sch/const";
17
+ import { InformationPanelModel } from "#sch/models/InformationPanelModel";
18
+ import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
19
+ const { JSONSchemaValidator } = GolemioValidator;
20
+ let InformationPanelRepository = class InformationPanelRepository extends AbstractFyprRepository {
23
21
  constructor(connector, logger) {
24
22
  super(connector, logger);
25
- this.tableName = InformationPanelModel_1.InformationPanelModel.tableName;
23
+ this.tableName = InformationPanelModel.tableName;
26
24
  this.entityLabel = "InformationPanels";
27
- this.validator = new golemio_validator_1.JSONSchemaValidator("InformationPanelRepository", InformationPanelModel_1.InformationPanelModel.jsonSchema);
28
- this.sequelizeModel = connector.getConnection().define(this.tableName, InformationPanelModel_1.InformationPanelModel.attributeModel, {
29
- schema: const_1.PG_SCHEMA,
25
+ this.validator = new JSONSchemaValidator("InformationPanelRepository", InformationPanelModel.jsonSchema);
26
+ this.sequelizeModel = connector.getConnection().define(this.tableName, InformationPanelModel.attributeModel, {
27
+ schema: PG_SCHEMA,
30
28
  });
31
29
  }
32
30
  };
33
- exports.InformationPanelRepository = InformationPanelRepository;
34
- exports.InformationPanelRepository = InformationPanelRepository = __decorate([
35
- (0, tsyringe_1.injectable)(),
36
- __param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
37
- __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
31
+ InformationPanelRepository = __decorate([
32
+ injectable(),
33
+ __param(0, inject(CoreToken.PostgresConnector)),
34
+ __param(1, inject(CoreToken.Logger)),
38
35
  __metadata("design:paramtypes", [Object, Object])
39
36
  ], InformationPanelRepository);
37
+ export { InformationPanelRepository };
40
38
  //# sourceMappingURL=InformationPanelRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAqE;AACrE,mFAAkF;AAElF,iEAAwE;AACxE,0DAAuC;AACvC,iGAA0E;AAE1E,qEAAkE;AAG3D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,+CAAyC;IAOrF,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,6CAAqB,CAAC,SAAS,CAAC;QAGzC,gBAAW,GAAG,mBAAmB,CAAC;QAIxC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,6CAAqB,CAAC,UAAU,CAAC,CAAC;QACzG,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,6CAAqB,CAAC,cAAc,EAAE;YACzG,MAAM,EAAE,iBAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,qBAAU,GAAE;IAQI,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,0BAA0B,CActC"}
1
+ {"version":3,"file":"InformationPanelRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,sBAAyC;IAOrF,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,qBAAqB,CAAC,SAAS,CAAC;QAGzC,gBAAW,GAAG,mBAAmB,CAAC;QAIxC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CAAC,4BAA4B,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACzG,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,cAAc,EAAE;YACzG,MAAM,EAAE,SAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,0BAA0B;IADtC,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,0BAA0B,CActC"}
@@ -1,12 +1,12 @@
1
- import { ILogger } from "@golemio/core/dist/helpers";
2
- import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
- import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
4
- import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
5
- import { ObeliskModel } from "../../schema-definitions/models/ObeliskModel";
6
- import { IObelisk } from "../../schema-definitions/models/interfaces/IObelisk";
7
- import { AbstractFyprRepository } from "./AbstractFyprRepository";
1
+ import type { ILogger } from "@golemio/core/dist/helpers/index.js";
2
+ import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
3
+ import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
4
+ import type { ModelStatic } from "@golemio/core/dist/shared/sequelize.js";
5
+ import { ObeliskModel } from "#sch/models/ObeliskModel";
6
+ import type { IObelisk } from "#sch/models/interfaces/IObelisk";
7
+ import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
8
8
  export declare class ObeliskRepository extends AbstractFyprRepository<IObelisk> {
9
- validator: JSONSchemaValidator;
9
+ validator: TJSONSchemaValidator;
10
10
  tableName: string;
11
11
  protected sequelizeModel: ModelStatic<ObeliskModel>;
12
12
  protected entityLabel: string;