@golemio/fypr 1.1.1-dev.2368450356 → 1.1.1-dev.2387575538

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 (88) hide show
  1. package/db/example/01_display_cases.sql +4 -4
  2. package/db/example/02_information_panels.sql +4 -4
  3. package/db/example/03_obelisks.sql +4 -4
  4. package/db/example/05_totems.sql +1 -1
  5. package/db/migrations/postgresql/20260312000000-schema-updates.js +53 -0
  6. package/db/migrations/postgresql/20260316093713-add-source-created-at-index.js +53 -0
  7. package/db/migrations/postgresql/sqls/20260312000000-schema-updates-down.sql +14 -0
  8. package/db/migrations/postgresql/sqls/20260312000000-schema-updates-up.sql +14 -0
  9. package/db/migrations/postgresql/sqls/20260316093713-add-source-created-at-index-down.sql +6 -0
  10. package/db/migrations/postgresql/sqls/20260316093713-add-source-created-at-index-up.sql +17 -0
  11. package/dist/integration-engine/transformations/AbstractElementTransformation.js +1 -0
  12. package/dist/integration-engine/transformations/AbstractElementTransformation.js.map +1 -1
  13. package/dist/integration-engine/transformations/InformationPanelsTransformation.js +7 -0
  14. package/dist/integration-engine/transformations/InformationPanelsTransformation.js.map +1 -1
  15. package/dist/integration-engine/transformations/TotemsTransformation.js +2 -1
  16. package/dist/integration-engine/transformations/TotemsTransformation.js.map +1 -1
  17. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.d.ts +13 -0
  18. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js +67 -0
  19. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js.map +1 -0
  20. package/dist/output-gateway/fypr/data-access/FyprElementRepository.d.ts +18 -0
  21. package/dist/output-gateway/fypr/data-access/FyprElementRepository.js +46 -0
  22. package/dist/output-gateway/fypr/data-access/FyprElementRepository.js.map +1 -0
  23. package/dist/output-gateway/fypr/routers/index.d.ts +1 -0
  24. package/dist/output-gateway/fypr/routers/index.js +6 -0
  25. package/dist/output-gateway/fypr/routers/index.js.map +1 -0
  26. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.d.ts +10 -0
  27. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js +44 -0
  28. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js.map +1 -0
  29. package/dist/output-gateway/index.js +2 -3
  30. package/dist/output-gateway/index.js.map +1 -1
  31. package/dist/output-gateway/ioc/Di.d.ts +2 -0
  32. package/dist/output-gateway/ioc/Di.js +26 -0
  33. package/dist/output-gateway/ioc/Di.js.map +1 -0
  34. package/dist/output-gateway/ioc/FYPROGContainerTokens.d.ts +4 -0
  35. package/dist/output-gateway/ioc/FYPROGContainerTokens.js +12 -0
  36. package/dist/output-gateway/ioc/FYPROGContainerTokens.js.map +1 -0
  37. package/dist/output-gateway/shared/constants/element-kinds.d.ts +1 -0
  38. package/dist/output-gateway/shared/constants/element-kinds.js +6 -0
  39. package/dist/output-gateway/shared/constants/element-kinds.js.map +1 -0
  40. package/dist/output-gateway/shared/constants/index.d.ts +1 -0
  41. package/dist/output-gateway/shared/constants/index.js +18 -0
  42. package/dist/output-gateway/shared/constants/index.js.map +1 -0
  43. package/dist/schema-definitions/FyprElementTypes.d.ts +6 -0
  44. package/dist/schema-definitions/FyprElementTypes.js +3 -0
  45. package/dist/schema-definitions/FyprElementTypes.js.map +1 -0
  46. package/dist/schema-definitions/const.d.ts +44 -0
  47. package/dist/schema-definitions/const.js +17 -1
  48. package/dist/schema-definitions/const.js.map +1 -1
  49. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js +22 -71
  50. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js.map +1 -1
  51. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js +15 -45
  52. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js.map +1 -1
  53. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js +85 -281
  54. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js.map +1 -1
  55. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js +17 -53
  56. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js.map +1 -1
  57. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js +19 -59
  58. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js.map +1 -1
  59. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js +59 -203
  60. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js.map +1 -1
  61. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.d.ts +7 -0
  62. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.d.ts +3 -1
  63. package/dist/schema-definitions/index.d.ts +34 -2
  64. package/dist/schema-definitions/index.js +34 -1
  65. package/dist/schema-definitions/index.js.map +1 -1
  66. package/dist/schema-definitions/models/AbstractElementModel.d.ts +9 -0
  67. package/dist/schema-definitions/models/AbstractElementModel.js +15 -35
  68. package/dist/schema-definitions/models/AbstractElementModel.js.map +1 -1
  69. package/dist/schema-definitions/models/DisplayCaseModel.js +20 -60
  70. package/dist/schema-definitions/models/DisplayCaseModel.js.map +1 -1
  71. package/dist/schema-definitions/models/InformationPanelModel.d.ts +7 -0
  72. package/dist/schema-definitions/models/InformationPanelModel.js +90 -261
  73. package/dist/schema-definitions/models/InformationPanelModel.js.map +1 -1
  74. package/dist/schema-definitions/models/ObeliskModel.js +15 -42
  75. package/dist/schema-definitions/models/ObeliskModel.js.map +1 -1
  76. package/dist/schema-definitions/models/SignpostModel.js +17 -48
  77. package/dist/schema-definitions/models/SignpostModel.js.map +1 -1
  78. package/dist/schema-definitions/models/TotemModel.d.ts +1 -1
  79. package/dist/schema-definitions/models/TotemModel.js +53 -177
  80. package/dist/schema-definitions/models/TotemModel.js.map +1 -1
  81. package/dist/schema-definitions/models/interfaces/IElement.d.ts +1 -0
  82. package/dist/schema-definitions/models/interfaces/IInformationPanel.d.ts +7 -0
  83. package/dist/schema-definitions/models/interfaces/ITotem.d.ts +1 -1
  84. package/docs/asyncapi.yaml +26 -0
  85. package/docs/implementation_documentation.md +67 -16
  86. package/docs/openapi-output.yaml +437 -249
  87. package/docs/translations.md +9 -1
  88. package/package.json +13 -4
@@ -1,4 +1,4 @@
1
- INSERT INTO display_cases (id,document_id,uid,kind,"name",state,"owner",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,stop_name,stop_direction,platform_code,stop_type,thmp_stop_id,shelter_type,shelter_id,qr_code,supplier,"comments",asw_node_id,asw_stop_id,location_description,street_name,ropid_element_id,price_without_vat,serial_number,thmp_element_number,cleaning_frequency) VALUES
2
- ('5616882e-795b-468e-97dd-0aabee1c1be5'::uuid,'uyd14p1wk56qjd0l1044zz63','accb9fb4-d502-4d56-8e8c-46d27aeb97cd','vitrína','Dolní Počernice','Hotovo','ROPID','Praha-Dolní Počernice',50.0882850,14.5692369,NULL,'rok 2024',NULL,NULL,NULL,'2025-11-04 09:24:21.807','2025-11-04 09:24:21.807','2025-11-04 09:24:21.848','2026-02-23 13:31:06.331','2026-02-23 13:31:06.331','Dolní Počernice','2. kolej',NULL,'["vlak"]',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
3
- ('8179dfb8-0c2d-4ecf-a541-06b9ecaf2a35'::uuid,'qo8njsw6kfxj6qjg2x6gfqck','d1e03bdb-428a-41f8-a8b9-4672a913c165','vitrína',NULL,'Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-11-19 10:02:28.597','2025-11-19 10:02:28.597','2025-11-19 10:02:28.618','2026-02-23 13:31:06.331','2026-02-23 13:31:06.331',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
4
- ('0ac054ea-15c7-4236-8ade-9bfbfbe835b8'::uuid,'yywjqnqqfrl2o87mzyw9z741','f43920e4-0a77-4503-90b6-0d9ece7df719','vitrína',NULL,'Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-12-03 10:20:40.150','2025-12-03 10:20:40.150','2025-12-03 10:20:40.402','2026-02-23 13:31:06.331','2026-02-23 13:31:06.331',NULL,NULL,NULL,'["bus", "P+R", "trolej"]',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
1
+ INSERT INTO display_cases (id,document_id,uid,kind,"name",state,"owner","manager",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,stop_name,stop_direction,platform_code,stop_type,thmp_stop_id,shelter_type,shelter_id,qr_code,supplier,"comments",asw_node_id,asw_stop_id,location_description,street_name,ropid_element_id,price_without_vat,serial_number,thmp_element_number,cleaning_frequency) VALUES
2
+ ('5616882e-795b-468e-97dd-0aabee1c1be5'::uuid,'uyd14p1wk56qjd0l1044zz63','accb9fb4-d502-4d56-8e8c-46d27aeb97cd','vitrína','Dolní Počernice','Hotovo','ROPID','ROPID','Praha-Dolní Počernice',50.0882850,14.5692369,NULL,'rok 2024',NULL,NULL,NULL,'2025-11-04 09:24:21.807','2025-11-04 09:24:21.807','2025-11-04 09:24:21.848','2026-02-23 13:31:06.331','2026-02-23 13:31:06.331','Dolní Počernice','2. kolej',NULL,'["vlak"]',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
3
+ ('8179dfb8-0c2d-4ecf-a541-06b9ecaf2a35'::uuid,'qo8njsw6kfxj6qjg2x6gfqck','d1e03bdb-428a-41f8-a8b9-4672a913c165','vitrína',NULL,'Plánováno',NULL,'TSK',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-11-19 10:02:28.597','2025-11-19 10:02:28.597','2025-11-19 10:02:28.618','2026-02-23 13:31:06.331','2026-02-23 13:31:06.331',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
4
+ ('0ac054ea-15c7-4236-8ade-9bfbfbe835b8'::uuid,'yywjqnqqfrl2o87mzyw9z741','f43920e4-0a77-4503-90b6-0d9ece7df719','vitrína',NULL,'Plánováno',NULL,'THMP',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-12-03 10:20:40.150','2025-12-03 10:20:40.150','2025-12-03 10:20:40.402','2026-02-23 13:31:06.331','2026-02-23 13:31:06.331',NULL,NULL,NULL,'["bus", "P+R", "trolej"]',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
@@ -1,4 +1,4 @@
1
- INSERT INTO information_panels (id,document_id,uid,kind,"name",state,"owner",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,stop_name,stop_direction,platform_code,stop_type,thmp_stop_id,land_parcel_number,land_owner,workday_boarding_count,lines,location_description,location_verification_on_street_light,shelter_type,shelter_id,street_light_number,surface_type,connection_state,connection_type,connection_mode,priority,investor_action,design_request,design_state,design_order_number,design_registry_publication,design_invoice_paid,production_order_number,production_state,production_registry_publication,production_invoice_paid,realization_request,realization_state,realization_order_number,realization_registry_publication,realization_invoice_paid,name_for_visually_impaired,voice_day,voice_night,templates,preset,data_source,imsi,connection_point,connection_point_number,foundation_type,warranty_end,initial_revision,next_revision,electronics_service,electronics_service_end,asset_registered,asset_number,insurance,handed_over_to_ozp,dpp_documentation_request,dpp_documentation_handover_date,design_deadline,production_deadline,ropid_documentation_submitted,ropid_documentation_handover_date,dpp_documentation_submitted,realization_deadline,device_id,asw_node_id,asw_stop_id,power_consumption_watt,thmp_element_number,electricity_supply_contract,cleaning_frequency,electricity_consumption_price,construction_type,panel_size,design_price_without_vat,production_price_without_vat,realization_price_without_vat,serial_number) VALUES
2
- ('1b40ca78-b9aa-4dba-b9ac-23883ada9b6f'::uuid,'povu2txx74rrm3jxx6aartjh','759554eb-1173-43a7-b008-8c75fd1ed7c6','informační panel','Koh_i_noor B','Plánováno',NULL,NULL,NULL,NULL,NULL,'rok 2026','nutné ověřit nové připojení s PRE',NULL,NULL,'2025-11-21 15:04:04.672','2025-11-21 15:04:04.672','2025-11-21 15:04:04.683','2026-02-23 13:31:11.146','2026-02-23 13:31:11.146','Koh_i_noor','Slavia','B','["tram"]','2837',NULL,NULL,2289,'4, 6, 7, 19, 22','Samostatně stojící',NULL,NULL,NULL,NULL,'Asfalt',NULL,'VO','Lze vyčlenit 24x7','p1','ROPID','ANO',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,true,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
3
- ('21d1bd5a-bf54-4231-8808-61cc992e9d44'::uuid,'u7e99lxjle3dzwt1zmpzvtkn','f3cb4f3d-1b49-40fb-89d9-4690726b19d7','informační panel','Koh_i_noor D','Plánováno',NULL,NULL,NULL,NULL,NULL,'rok 2026',NULL,NULL,NULL,'2025-11-21 15:04:05.308','2025-11-21 15:04:05.308','2025-11-21 15:04:05.314','2026-02-23 13:31:11.146','2026-02-23 13:31:11.146','Koh_i_noor','Kavkazská','D','["bus"]','2839',NULL,NULL,1003,NULL,'Samostatně stojící',NULL,NULL,NULL,NULL,NULL,NULL,'PRE','Celodenní',NULL,'ROPID','ANO',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,true,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
4
- ('ee790fb1-2f04-41c0-a6f7-ab1653dca4cc'::uuid,'mxzmfyqr25y7voo0u4f6881d','ed0e0c07-d8a8-46cd-a577-e83f03a9ae15','informační panel','Zdiby, U Kostela','Plánováno',NULL,NULL,NULL,NULL,NULL,'rok 2028','Rekonstrukce celé zastávky',NULL,NULL,'2025-11-21 15:05:39.595','2025-11-21 15:05:39.595','2025-11-21 15:05:39.600','2026-02-23 13:31:11.146','2026-02-23 13:31:11.146','Zdiby, U Kostela','Pražská',NULL,'["tram"]',NULL,NULL,NULL,NULL,'10, 27','Samostatně stojící',NULL,NULL,NULL,NULL,NULL,'NE','PRE',NULL,NULL,'DPP',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
1
+ INSERT INTO information_panels (id,document_id,uid,kind,"name",state,"owner",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,stop_name,stop_direction,platform_code,stop_type,thmp_stop_id,land_parcel_number,land_owner,workday_boarding_count,lines,location_description,location_verification_on_street_light,shelter_type,shelter_id,street_light_number,surface_type,connection_state,connection_type,connection_mode,priority,investor_action,design_request,design_state,design_order_number,design_registry_publication,design_invoice_paid,production_order_number,production_state,production_registry_publication,production_invoice_paid,realization_request,realization_state,realization_order_number,realization_registry_publication,realization_invoice_paid,name_for_visually_impaired,voice_day,voice_night,templates,preset,data_source,imsi,connection_point,connection_point_number,foundation_type,warranty_end,initial_revision,next_revision,electronics_service,electronics_service_end,asset_registered,asset_number,insurance,handed_over_to_ozp,dpp_documentation_request,dpp_documentation_handover_date,design_deadline,production_deadline,ropid_documentation_submitted,ropid_documentation_handover_date,dpp_documentation_submitted,realization_deadline,device_id,asw_node_id,asw_stop_id,power_consumption_watt,thmp_element_number,electricity_supply_contract,cleaning_frequency,electricity_consumption_price,construction_type,panel_size,design_price_without_vat,production_price_without_vat,realization_price_without_vat,serial_number,producer,panel_technology,connectivity_internet,phone_number) VALUES
2
+ ('1b40ca78-b9aa-4dba-b9ac-23883ada9b6f'::uuid,'povu2txx74rrm3jxx6aartjh','759554eb-1173-43a7-b008-8c75fd1ed7c6','informační panel','Koh_i_noor B','Plánováno',NULL,NULL,NULL,NULL,NULL,'rok 2026','nutné ověřit nové připojení s PRE',NULL,NULL,'2025-11-21 15:04:04.672','2025-11-21 15:04:04.672','2025-11-21 15:04:04.683','2026-02-23 13:31:11.146','2026-02-23 13:31:11.146','Koh_i_noor','Slavia','B','["tram"]','2837',NULL,NULL,2289,'4, 6, 7, 19, 22','Samostatně stojící',NULL,NULL,NULL,NULL,'Asfalt',NULL,'VO','Lze vyčlenit 24x7','p1','ROPID','ANO',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,true,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'OICT tisk panelu','TN',NULL,'+420 246 030 983'),
3
+ ('21d1bd5a-bf54-4231-8808-61cc992e9d44'::uuid,'u7e99lxjle3dzwt1zmpzvtkn','f3cb4f3d-1b49-40fb-89d9-4690726b19d7','informační panel','Koh_i_noor D','Plánováno',NULL,NULL,NULL,NULL,NULL,'rok 2026',NULL,NULL,NULL,'2025-11-21 15:04:05.308','2025-11-21 15:04:05.308','2025-11-21 15:04:05.314','2026-02-23 13:31:11.146','2026-02-23 13:31:11.146','Koh_i_noor','Kavkazská','D','["bus"]','2839',NULL,NULL,1003,NULL,'Samostatně stojící',NULL,NULL,NULL,NULL,NULL,NULL,'PRE','Celodenní',NULL,'ROPID','ANO',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,true,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Panelove zavody z.s.','IPS','Wi-Fi','777123123'),
4
+ ('ee790fb1-2f04-41c0-a6f7-ab1653dca4cc'::uuid,'mxzmfyqr25y7voo0u4f6881d','ed0e0c07-d8a8-46cd-a577-e83f03a9ae15','informační panel','Zdiby, U Kostela','Plánováno',NULL,NULL,NULL,NULL,NULL,'rok 2028','Rekonstrukce celé zastávky',NULL,NULL,'2025-11-21 15:05:39.595','2025-11-21 15:05:39.595','2025-11-21 15:05:39.600','2026-02-23 13:31:11.146','2026-02-23 13:31:11.146','Zdiby, U Kostela','Pražská',NULL,'["tram"]',NULL,NULL,NULL,NULL,'10, 27','Samostatně stojící',NULL,NULL,NULL,NULL,NULL,'NE','PRE',NULL,NULL,'DPP',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Vyrobce panelu s.r.o','e-ink','5G',NULL);
@@ -1,4 +1,4 @@
1
- INSERT INTO obelisks (id,document_id,uid,kind,"name",state,"owner",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,street_name,location_description,land_parcel_number,land_owner,priority,asset_registered,asset_number,insurance,insurance_state,handed_over_to_ozp,"comments",ropid_element_id,construction_type,price_without_vat) VALUES
2
- ('0120b8c3-0814-4930-827b-afff60d5fa29'::uuid,'zuk6w80q9u1azjfcdbr5cnsp','8feb49cd-a74a-495b-8c4c-fb611e1fe796','obelisk',NULL,'Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-12-17 13:17:39.324','2025-12-17 13:17:39.324','2025-12-17 13:17:39.643','2026-02-23 13:31:06.409','2026-02-23 13:31:06.409',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
3
- ('f8f60377-6329-4cb2-838b-2f03e8cbf2b4'::uuid,'esz7erj7429j9c0inkucik4w','9d4d7e43-fd6b-460b-aa79-96944df81d98','obelisk','Ostrov Štvanice','Hotovo','ROPID','Praha 7',50.0961306,14.4458244,'https://mapy.com/cs/zakladni?q=50.0961306N%0914.4458244E&x=14.5701003&y=50.0891942&z=17','rok 2024',NULL,true,NULL,'2025-12-17 14:49:00.843','2025-12-17 14:49:00.843','2025-12-17 14:49:00.864','2026-02-23 13:31:06.409','2026-02-23 13:31:06.409','Ostrov Štvanice 944',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
4
- ('547d1428-b080-49cd-8cd8-3a8ae8c35877'::uuid,'pqn75sx5jzzuqhdm9wbnhslr','8a54f2eb-e319-4908-9417-a4059dec8097','obelisk','Holešovická tržnice','Hotovo','ROPID','Praha 7',50.0984081,14.4455269,'https://mapy.com/cs/zakladni?q=50.0984081N%0914.4455269E&x=14.4458244&y=50.0961306&z=17','rok 2023',NULL,true,NULL,'2025-12-17 14:49:01.349','2025-12-17 14:49:01.349','2025-12-17 14:49:01.361','2026-02-23 13:31:06.409','2026-02-23 13:31:06.409','Bubenské nábřeží 306/13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
1
+ INSERT INTO obelisks (id,document_id,uid,kind,"name",state,"owner","manager",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,street_name,location_description,land_parcel_number,land_owner,priority,asset_registered,asset_number,insurance,insurance_state,handed_over_to_ozp,"comments",ropid_element_id,construction_type,price_without_vat) VALUES
2
+ ('0120b8c3-0814-4930-827b-afff60d5fa29'::uuid,'zuk6w80q9u1azjfcdbr5cnsp','8feb49cd-a74a-495b-8c4c-fb611e1fe796','obelisk',NULL,'Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-12-17 13:17:39.324','2025-12-17 13:17:39.324','2025-12-17 13:17:39.643','2026-02-23 13:31:06.409','2026-02-23 13:31:06.409',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
3
+ ('f8f60377-6329-4cb2-838b-2f03e8cbf2b4'::uuid,'esz7erj7429j9c0inkucik4w','9d4d7e43-fd6b-460b-aa79-96944df81d98','obelisk','Ostrov Štvanice','Hotovo','ROPID','ROPID','Praha 7',50.0961306,14.4458244,'https://mapy.com/cs/zakladni?q=50.0961306N%0914.4458244E&x=14.5701003&y=50.0891942&z=17','rok 2024',NULL,true,NULL,'2025-12-17 14:49:00.843','2025-12-17 14:49:00.843','2025-12-17 14:49:00.864','2026-02-23 13:31:06.409','2026-02-23 13:31:06.409','Ostrov Štvanice 944',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
4
+ ('547d1428-b080-49cd-8cd8-3a8ae8c35877'::uuid,'pqn75sx5jzzuqhdm9wbnhslr','8a54f2eb-e319-4908-9417-a4059dec8097','obelisk','Holešovická tržnice','Hotovo','ROPID','ROPID','Praha 7',50.0984081,14.4455269,'https://mapy.com/cs/zakladni?q=50.0984081N%0914.4455269E&x=14.4458244&y=50.0961306&z=17','rok 2023',NULL,true,NULL,'2025-12-17 14:49:01.349','2025-12-17 14:49:01.349','2025-12-17 14:49:01.361','2026-02-23 13:31:06.409','2026-02-23 13:31:06.409','Bubenské nábřeží 306/13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
@@ -1,4 +1,4 @@
1
- INSERT INTO totems (id,document_id,uid,kind,"name",state,"owner",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,panel_size,locality,displayed_icon,line,priority,site_survey,installation_height,street_light_number,street_light_replacement,tv_number,building_permit,building_permit_state,location_note,site_survey_report,order_state,order_number,warranty_end,next_revision,qr_code,supplier,stop_name,stop_type,site_survey_date,order_planned_deadline,order_registry_publication,invoice_paid,initial_revision,asset_registered,asset_number,insurance,handed_over_to_ozp,ropid_documentation_submitted,ropid_documentation_handover_date,street_name,exit_number,dpp_priority,insurance_state,"comments",asw_node_id,asw_stop_id,power_consumption_watt,thmp_element_number,electricity_supply_contract,cleaning_frequency,electricity_consumption_price,ropid_element_id,construction_type,design_price_without_vat,realization_price_without_vat,price_without_vat,serial_number) VALUES
1
+ INSERT INTO totems (id,document_id,uid,kind,"name",state,"owner",city_district,lat,lon,map_link,planned_year_of_realization,note,handover,handover_date,source_created_at,source_updated_at,source_published_at,created_at,updated_at,panel_size,locality,displayed_icon,line,priority,site_survey,installation_height,street_light_number,street_light_replacement,tv_number,building_permit,building_permit_state,location_note,site_survey_report,order_state,order_number,warranty_end,next_revision,qr_code,supplier,stop_name,stop_type,site_survey_date,order_planned_deadline,order_registry_publication,invoice_paid,initial_revision,asset_registered,asset_number,insurance,handed_over_to_ozp,ropid_documentation_submitted,ropid_documentation_handover_date,street_name,exit_number,dpp_priority,insurance_state,"comments",asw_node_id,asw_stop_id,power_consumption_watt,thmp_element_number,electricity_supply_contract,cleaning_frequency,electricity_consumption_price,ropid_element_id,construction_type,design_price_without_vat,realization_price_without_vat,production_price_without_vat,serial_number) VALUES
2
2
  ('e9395a7c-c7ae-4a13-a977-710c95ced6f7'::uuid,'uxrlswybwbqxlz9ncnqwf64l','7caf1661-68b9-45de-a6a8-1a9c8a63104b','totem','Konvářka','Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,'Výhled',NULL,NULL,'2025-10-03 14:53:51.983','2025-10-03 14:53:51.983','2025-10-03 14:53:51.990','2026-02-23 13:31:06.995','2026-02-23 13:31:06.995',NULL,NULL,NULL,NULL,5,NULL,NULL,'-',NULL,'-',false,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Konvářka',NULL,'Neřešit',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'-',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
3
3
  ('ad2ef312-90c1-407c-a525-7cbf84a2805a'::uuid,'ilna6kids0cdreib8j6s5xzm','35bdf428-eb67-4d5a-864f-f02666610073','totem','Letiště','Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,'Výhled',NULL,NULL,'2025-10-03 14:53:53.253','2025-10-03 14:53:53.253','2025-10-03 14:53:53.261','2026-02-23 13:31:06.995','2026-02-23 13:31:06.995',NULL,NULL,NULL,NULL,5,NULL,NULL,'-',NULL,'-',false,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Letiště',NULL,'Neřešit',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'-',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
4
4
  ('971c326d-02d2-4200-8d21-ae8773bb30b8'::uuid,'oy90jsit2vwcq14dpd3nb6z3','29f4fdc1-b22a-41e1-8c80-85c1bf1a0fad','totem','Liboc','Plánováno',NULL,NULL,NULL,NULL,NULL,NULL,'Výhled',NULL,NULL,'2025-10-03 14:53:54.538','2025-10-03 14:53:54.538','2025-10-03 14:53:54.547','2026-02-23 13:31:06.995','2026-02-23 13:31:06.995','Standard','ul. Brodecká',NULL,NULL,5,NULL,NULL,'0',NULL,'-',false,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Liboc',NULL,'Neřešit',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'-',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var dbm;
4
+ var type;
5
+ var seed;
6
+ var fs = require('fs');
7
+ var path = require('path');
8
+ var Promise;
9
+
10
+ /**
11
+ * We receive the dbmigrate dependency from dbmigrate initially.
12
+ * This enables us to not have to rely on NODE_PATH.
13
+ */
14
+ exports.setup = function(options, seedLink) {
15
+ dbm = options.dbmigrate;
16
+ type = dbm.dataType;
17
+ seed = seedLink;
18
+ Promise = options.Promise;
19
+ };
20
+
21
+ exports.up = function(db) {
22
+ var filePath = path.join(__dirname, 'sqls', '20260312000000-schema-updates-up.sql');
23
+ return new Promise( function( resolve, reject ) {
24
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
25
+ if (err) return reject(err);
26
+ console.log('received data: ' + data);
27
+
28
+ resolve(data);
29
+ });
30
+ })
31
+ .then(function(data) {
32
+ return db.runSql(data);
33
+ });
34
+ };
35
+
36
+ exports.down = function(db) {
37
+ var filePath = path.join(__dirname, 'sqls', '20260312000000-schema-updates-down.sql');
38
+ return new Promise( function( resolve, reject ) {
39
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
40
+ if (err) return reject(err);
41
+ console.log('received data: ' + data);
42
+
43
+ resolve(data);
44
+ });
45
+ })
46
+ .then(function(data) {
47
+ return db.runSql(data);
48
+ });
49
+ };
50
+
51
+ exports._meta = {
52
+ "version": 1
53
+ };
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var dbm;
4
+ var type;
5
+ var seed;
6
+ var fs = require('fs');
7
+ var path = require('path');
8
+ var Promise;
9
+
10
+ /**
11
+ * We receive the dbmigrate dependency from dbmigrate initially.
12
+ * This enables us to not have to rely on NODE_PATH.
13
+ */
14
+ exports.setup = function(options, seedLink) {
15
+ dbm = options.dbmigrate;
16
+ type = dbm.dataType;
17
+ seed = seedLink;
18
+ Promise = options.Promise;
19
+ };
20
+
21
+ exports.up = function(db) {
22
+ var filePath = path.join(__dirname, 'sqls', '20260316093713-add-source-created-at-index-up.sql');
23
+ return new Promise( function( resolve, reject ) {
24
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
25
+ if (err) return reject(err);
26
+ console.log('received data: ' + data);
27
+
28
+ resolve(data);
29
+ });
30
+ })
31
+ .then(function(data) {
32
+ return db.runSql(data);
33
+ });
34
+ };
35
+
36
+ exports.down = function(db) {
37
+ var filePath = path.join(__dirname, 'sqls', '20260316093713-add-source-created-at-index-down.sql');
38
+ return new Promise( function( resolve, reject ) {
39
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
40
+ if (err) return reject(err);
41
+ console.log('received data: ' + data);
42
+
43
+ resolve(data);
44
+ });
45
+ })
46
+ .then(function(data) {
47
+ return db.runSql(data);
48
+ });
49
+ };
50
+
51
+ exports._meta = {
52
+ "version": 1
53
+ };
@@ -0,0 +1,14 @@
1
+ ALTER TABLE elements
2
+ DROP COLUMN manager;
3
+
4
+ ALTER TABLE information_panels
5
+ DROP COLUMN producer,
6
+ DROP COLUMN producer_contact_person,
7
+ DROP COLUMN panel_technology,
8
+ DROP COLUMN panel_model,
9
+ DROP COLUMN owner_contact,
10
+ DROP COLUMN connectivity_internet,
11
+ DROP COLUMN phone_number;
12
+
13
+ ALTER TABLE totems
14
+ RENAME COLUMN production_price_without_vat TO price_without_vat;
@@ -0,0 +1,14 @@
1
+ ALTER TABLE totems
2
+ RENAME COLUMN price_without_vat TO production_price_without_vat;
3
+
4
+ ALTER TABLE information_panels
5
+ ADD COLUMN producer varchar(255) NULL,
6
+ ADD COLUMN producer_contact_person varchar(255) NULL,
7
+ ADD COLUMN panel_technology varchar(255) NULL,
8
+ ADD COLUMN panel_model varchar(255) NULL,
9
+ ADD COLUMN owner_contact varchar(255) NULL,
10
+ ADD COLUMN connectivity_internet varchar(255) NULL,
11
+ ADD COLUMN phone_number varchar(255) NULL;
12
+
13
+ ALTER TABLE elements
14
+ ADD COLUMN manager varchar(255) NULL;
@@ -0,0 +1,6 @@
1
+ DROP INDEX IF EXISTS elements_source_created_at_idx;
2
+ DROP INDEX IF EXISTS display_cases_source_created_at_idx;
3
+ DROP INDEX IF EXISTS information_panels_source_created_at_idx;
4
+ DROP INDEX IF EXISTS obelisks_source_created_at_idx;
5
+ DROP INDEX IF EXISTS signposts_source_created_at_idx;
6
+ DROP INDEX IF EXISTS totems_source_created_at_idx;
@@ -0,0 +1,17 @@
1
+ CREATE INDEX IF NOT EXISTS elements_source_created_at_idx
2
+ ON elements USING btree (source_created_at ASC);
3
+
4
+ CREATE INDEX IF NOT EXISTS display_cases_source_created_at_idx
5
+ ON display_cases USING btree (source_created_at ASC);
6
+
7
+ CREATE INDEX IF NOT EXISTS information_panels_source_created_at_idx
8
+ ON information_panels USING btree (source_created_at ASC);
9
+
10
+ CREATE INDEX IF NOT EXISTS obelisks_source_created_at_idx
11
+ ON obelisks USING btree (source_created_at ASC);
12
+
13
+ CREATE INDEX IF NOT EXISTS signposts_source_created_at_idx
14
+ ON signposts USING btree (source_created_at ASC);
15
+
16
+ CREATE INDEX IF NOT EXISTS totems_source_created_at_idx
17
+ ON totems USING btree (source_created_at ASC);
@@ -11,6 +11,7 @@ class AbstractElementTransformation extends AbstractTransformation_1.AbstractTra
11
11
  name: data.nazev_prvku,
12
12
  state: data.stav_prvku,
13
13
  owner: data.vlastnik_prvku,
14
+ manager: data.spravce_prvku,
14
15
  city_district: data.umisteni_mestska_cast,
15
16
  lat: this.parseCoordinate(data.souradnice_umisteni_lat),
16
17
  lon: this.parseCoordinate(data.souradnice_umisteni_lon),
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractElementTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/AbstractElementTransformation.ts"],"names":[],"mappings":";;;AAEA,6GAA0G;AAE1G,MAAsB,6BAGpB,SAAQ,+CAA+B;IAC3B,eAAe,CAAC,IAAoB;QAC1C,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,UAAU;YAC5B,GAAG,EAAE,IAAI,CAAC,SAAS;YACnB,IAAI,EAAE,IAAI,CAAC,SAAS;YACpB,IAAI,EAAE,IAAI,CAAC,WAAW;YACtB,KAAK,EAAE,IAAI,CAAC,UAAU;YACtB,KAAK,EAAE,IAAI,CAAC,cAAc;YAC1B,aAAa,EAAE,IAAI,CAAC,qBAAqB;YACzC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,uBAAuB,CAAC;YACvD,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,uBAAuB,CAAC;YACvD,QAAQ,EAAE,IAAI,CAAC,UAAU;YACzB,2BAA2B,EAAE,IAAI,CAAC,uBAAuB;YACzD,IAAI,EAAE,IAAI,CAAC,gBAAgB;YAC3B,QAAQ,EAAE,IAAI,CAAC,iBAAiB;YAChC,aAAa,EAAE,IAAI,CAAC,uBAAuB;YAC3C,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;YAC3C,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;YAC3C,mBAAmB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;SAClD,CAAC;IACN,CAAC;IAEO,eAAe,CAAC,KAAoB;QACxC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;CACJ;AAjCD,sEAiCC"}
1
+ {"version":3,"file":"AbstractElementTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/AbstractElementTransformation.ts"],"names":[],"mappings":";;;AAEA,6GAA0G;AAE1G,MAAsB,6BAGpB,SAAQ,+CAA+B;IAC3B,eAAe,CAAC,IAAoB;QAC1C,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,UAAU;YAC5B,GAAG,EAAE,IAAI,CAAC,SAAS;YACnB,IAAI,EAAE,IAAI,CAAC,SAAS;YACpB,IAAI,EAAE,IAAI,CAAC,WAAW;YACtB,KAAK,EAAE,IAAI,CAAC,UAAU;YACtB,KAAK,EAAE,IAAI,CAAC,cAAc;YAC1B,OAAO,EAAE,IAAI,CAAC,aAAa;YAC3B,aAAa,EAAE,IAAI,CAAC,qBAAqB;YACzC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,uBAAuB,CAAC;YACvD,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,uBAAuB,CAAC;YACvD,QAAQ,EAAE,IAAI,CAAC,UAAU;YACzB,2BAA2B,EAAE,IAAI,CAAC,uBAAuB;YACzD,IAAI,EAAE,IAAI,CAAC,gBAAgB;YAC3B,QAAQ,EAAE,IAAI,CAAC,iBAAiB;YAChC,aAAa,EAAE,IAAI,CAAC,uBAAuB;YAC3C,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;YAC3C,iBAAiB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;YAC3C,mBAAmB,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;SAClD,CAAC;IACN,CAAC;IAEO,eAAe,CAAC,KAAoB;QACxC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;CACJ;AAlCD,sEAkCC"}
@@ -91,6 +91,13 @@ let InformationPanelsTransformation = class InformationPanelsTransformation exte
91
91
  production_price_without_vat: data.cena_vyroba_bez_dph,
92
92
  realization_price_without_vat: data.cena_realizace_bez_dph,
93
93
  serial_number: data.vyrobni_cislo_prvku,
94
+ producer: data.vyrobce,
95
+ producer_contact_person: data.kontaktni_osoba_vyrobce,
96
+ panel_technology: data.technologie,
97
+ panel_model: data.model_panelu,
98
+ owner_contact: data.kontakt_na_majitele,
99
+ connectivity_internet: data.konektivita_internet,
100
+ phone_number: data.telefonni_cislo,
94
101
  };
95
102
  };
96
103
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanelsTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/InformationPanelsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,iEAAgE;AAChE,mFAAgF;AAMzE,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,6DAAwD;IAAtG;;QACsB,SAAI,GAAG,iCAAiC,CAAC;QAE/C,sBAAiB,GAAG,CAAC,IAAiB,EAAgB,EAAE;YACvE,OAAO;gBACH,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;gBAC7B,SAAS,EAAE,IAAI,CAAC,cAAc;gBAC9B,cAAc,EAAE,IAAI,CAAC,aAAa;gBAClC,aAAa,EAAE,IAAI,CAAC,UAAU;gBAC9B,SAAS,EAAE,IAAI,CA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gBACxC,mBAAmB,EAAE,IAAI,CAAC,gBAAgB;gBAC1C,2BAA2B,EAAE,IAAI,CAAC,uBAAuB;gBACzD,kBAAkB,EAAE,IAAI,CAAC,cAAc;gBACvC,6BAA6B,EAAE,IAAI,CAAC,uBAAuB;gBAC3D,iBAAiB,EAAE,IAAI,CAAC,oBAAoB;gBAC5C,UAAU,EAAE,IAAI,CAAC,eAAe;gBAChC,wBAAwB,EAAE,IAAI,CAAC,qBAAqB;gBACpD,4BAA4B,EAAE,IAAI,CAAC,mBAAmB;gBACtD,6BAA6B,EAAE,IAAI,CAAC,sBAAsB;gBAC1D,aAAa,EAAE,IAAI,CAAC,mBAAmB;aAC1C,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;AAnFY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,qBAAU,GAAE;GACA,+BAA+B,CAmF3C"}
1
+ {"version":3,"file":"InformationPanelsTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/InformationPanelsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,iEAAgE;AAChE,mFAAgF;AAMzE,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,6DAAwD;IAAtG;;QACsB,SAAI,GAAG,iCAAiC,CAAC;QAE/C,sBAAiB,GAAG,CAAC,IAAiB,EAAgB,EAAE;YACvE,OAAO;gBACH,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;gBAC7B,SAAS,EAAE,IAAI,CAAC,cAAc;gBAC9B,cAAc,EAAE,IAAI,CAAC,aAAa;gBAClC,aAAa,EAAE,IAAI,CAAC,UAAU;gBAC9B,SAAS,EAAE,IAAI,CAAC,YAAY;gBAC5B,YAAY,EAAE,IAAI,CAAC,gBAAgB;gBACnC,kBAAkB,EAAE,IAAI,CAAC,qBAAqB;gBAC9C,UAAU,EAAE,IAAI,CAAC,gBAAgB;gBACjC,sBAAsB,EAAE,IAAI,CAAC,8BAA8B;gBAC3D,KAAK,E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AAI,CAAC,oBAAoB;gBAC5C,UAAU,EAAE,IAAI,CAAC,eAAe;gBAChC,wBAAwB,EAAE,IAAI,CAAC,qBAAqB;gBACpD,4BAA4B,EAAE,IAAI,CAAC,mBAAmB;gBACtD,6BAA6B,EAAE,IAAI,CAAC,sBAAsB;gBAC1D,aAAa,EAAE,IAAI,CAAC,mBAAmB;gBACvC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBACtB,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;gBACrD,gBAAgB,EAAE,IAAI,CAAC,WAAW;gBAClC,WAAW,EAAE,IAAI,CAAC,YAAY;gBAC9B,aAAa,EAAE,IAAI,CAAC,mBAAmB;gBACvC,qBAAqB,EAAE,IAAI,CAAC,oBAAoB;gBAChD,YAAY,EAAE,IAAI,CAAC,eAAe;aACrC,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;AA1FY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,qBAAU,GAAE;GACA,+BAA+B,CA0F3C"}
@@ -65,7 +65,8 @@ let TotemsTransformation = class TotemsTransformation extends AbstractElementTra
65
65
  electricity_consumption_price: data.cena_za_odber_elektriny,
66
66
  ropid_element_id: data.id_prvku_ropid,
67
67
  construction_type: data.typ_konstrukce_prvku,
68
- price_without_vat: data.cena_prvku_bez_dph,
68
+ // cena_prvku_bez_dph is the legacy Strapi field name — fall back to it during the migration period.
69
+ production_price_without_vat: data.cena_vyroba_bez_dph ?? data.cena_prvku_bez_dph ?? null,
69
70
  serial_number: data.vyrobni_cislo_prvku,
70
71
  };
71
72
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TotemsTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/TotemsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,iEAAgE;AAChE,mFAAgF;AAMzE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,6DAAwD;IAA3F;;QACsB,SAAI,GAAG,sBAAsB,CAAC;QAE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B,EAAE,IAAI,CAAC,cAAc;gBACrC,gBAAgB,EAAE,IAAI,CAAC,kBAAkB;gBACzC,YAAY,EAAE,IAAI,CAAC,aAAa;gBAChC,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,kBAAkB,EAAE,IAAI,CAAC,qBAAqB;gBAC9C,6BAA6B,EAAE,IAAI,CAAC,6BAA6B;gBACjE,iCAAiC,EAAE,IAAI,CAAC,mCAAmC;gBAC3E,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,CAAC,UAAU;gBAC5B,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,eAAe,EAAE,IAAI,CAAC,cAAc;gBACpC,QAAQ,EAAE,IAAI,CAAC,SAAS;gBACxB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,sBAAsB,EAAE,IAAI,CAAC,WAAW;gBACxC,mBAAmB,EAAE,IAAI,CAAC,gBAAgB;gBAC1C,2BAA2B,EAAE,IAAI,CAAC,uBAAuB;gBACzD,kBAAkB,EAAE,IAAI,CAAC,cAAc;gBACvC,6BAA6B,EAAE,IAAI,CAAC,uBAAuB;gBAC3D,gBAAgB,EAAE,IAAI,CAAC,cAAc;gBACrC,iBAAiB,EAAE,IAAI,CAAC,oBAAoB;gBAC5C,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;gBAC1C,aAAa,EAAE,IAAI,CAAC,mBAAmB;aAC1C,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;AA3DY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,qBAAU,GAAE;GACA,oBAAoB,CA2DhC"}
1
+ {"version":3,"file":"TotemsTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/TotemsTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,iEAAgE;AAChE,mFAAgF;AAMzE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,6D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../shared/constants";
3
+ import { FyprElement } from "../../../../schema-definitions/FyprElementTypes";
4
+ import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
5
+ import { NextFunction, Request, Response } from "@golemio/core/dist/shared/express";
6
+ export declare class V1FyprElementKindsController {
7
+ private repositories;
8
+ private readonly defaultLimit;
9
+ constructor(repositories: Map<FyprElementKind, FyprElementRepository<FyprElement>>, config: ISimpleConfig);
10
+ private getRepositoryByKind;
11
+ getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
12
+ getOne: (req: Request, res: Response, next: NextFunction) => Promise<void>;
13
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.V1FyprElementKindsController = void 0;
16
+ const FYPROGContainerTokens_1 = require("../../../ioc/FYPROGContainerTokens");
17
+ const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
18
+ const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
19
+ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
20
+ const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
21
+ let V1FyprElementKindsController = class V1FyprElementKindsController {
22
+ constructor(repositories, config) {
23
+ this.repositories = repositories;
24
+ this.getAll = async (req, res, next) => {
25
+ try {
26
+ const { kind, limit, offset } = (0, express_validator_1.matchedData)(req);
27
+ const effectiveLimit = req.query.limit !== undefined ? Number(limit) : this.defaultLimit;
28
+ const data = await this.getRepositoryByKind(kind).getAll({
29
+ limit: effectiveLimit,
30
+ offset: offset != null ? Number(offset) : undefined,
31
+ });
32
+ res.status(200).send(data);
33
+ }
34
+ catch (err) {
35
+ next(err);
36
+ }
37
+ };
38
+ this.getOne = async (req, res, next) => {
39
+ try {
40
+ const { kind, id } = (0, express_validator_1.matchedData)(req);
41
+ const data = await this.getRepositoryByKind(kind).getOne(id);
42
+ if (!data) {
43
+ throw new golemio_errors_1.GeneralError("FYPR element not found.", this.constructor.name, undefined, 404);
44
+ }
45
+ res.status(200).send(data);
46
+ }
47
+ catch (err) {
48
+ next(err);
49
+ }
50
+ };
51
+ this.defaultLimit = config.getValue("module.fypr.output-gateway.elements.defaultLimit", 100);
52
+ }
53
+ getRepositoryByKind(kind) {
54
+ const repository = this.repositories.get(kind);
55
+ if (!repository)
56
+ throw new golemio_errors_1.GeneralError("Unknown kind of FYPR element.", this.constructor.name, undefined, 400);
57
+ return repository;
58
+ }
59
+ };
60
+ exports.V1FyprElementKindsController = V1FyprElementKindsController;
61
+ exports.V1FyprElementKindsController = V1FyprElementKindsController = __decorate([
62
+ (0, tsyringe_1.injectable)(),
63
+ __param(0, (0, tsyringe_1.inject)(FYPROGContainerTokens_1.fyprOGContainerTokens.FyprElementRepositoriesMap)),
64
+ __param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
65
+ __metadata("design:paramtypes", [Map, Object])
66
+ ], V1FyprElementKindsController);
67
+ //# sourceMappingURL=V1FyprElementKindsController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1FyprElementKindsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/controllers/v1/V1FyprElementK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AC,CAAC,MAAM,CAAC,EAAY,CAAC,CAAC;gBACvE,IAAI,CAAC,IAAI,EAAE,CAAC;oBACR,MAAM,IAAI,6BAAY,CAAC,yBAAyB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;gBAC7F,CAAC;gBACD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,CAAC;YACd,CAAC;QACL,CAAC,CAAC;QAlCE,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAS,kDAAkD,EAAE,GAAG,CAAW,CAAC;IACnH,CAAC;IAEO,mBAAmB,CAAC,IAAqB;QAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,6BAAY,CAAC,+BAA+B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;QAChH,OAAO,UAAU,CAAC;IACtB,CAAC;CA4BJ,CAAA;AA5CY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,qBAAU,GAAE;IAKJ,WAAA,IAAA,iBAAM,EAAC,6CAAqB,CAAC,0BAA0B,CAAC,CAAA;IAExD,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;qCADT,GAAG;GALpB,4BAA4B,CA4CxC"}
@@ -0,0 +1,18 @@
1
+ import { ILogger } from "@golemio/core/dist/helpers";
2
+ import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
3
+ import { AbstractBasicRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractBasicRepository";
4
+ import { ModelAttributes } from "@golemio/core/dist/shared/sequelize";
5
+ export declare class FyprElementRepository<T> extends AbstractBasicRepository {
6
+ readonly schema = "fypr";
7
+ readonly tableName: string;
8
+ private readonly modelName;
9
+ private readonly attributeModel;
10
+ private _sequelizeModel?;
11
+ private get sequelizeModel();
12
+ constructor(connector: IDatabaseConnector, logger: ILogger, modelName: string, tableName: string, attributeModel: ModelAttributes<any>);
13
+ getAll(options?: {
14
+ limit?: number;
15
+ offset?: number;
16
+ }): Promise<T[]>;
17
+ getOne(id: string): Promise<T | null>;
18
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FyprElementRepository = void 0;
4
+ const const_1 = require("../../../schema-definitions/const");
5
+ const AbstractBasicRepository_1 = require("@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractBasicRepository");
6
+ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
7
+ // Manually instantiated in Di.ts — not registered with the DI container
8
+ class FyprElementRepository extends AbstractBasicRepository_1.AbstractBasicRepository {
9
+ get sequelizeModel() {
10
+ if (!this._sequelizeModel) {
11
+ this._sequelizeModel = this.connector
12
+ .getConnection()
13
+ .define(this.modelName, this.attributeModel, { schema: this.schema });
14
+ }
15
+ return this._sequelizeModel;
16
+ }
17
+ constructor(connector, logger, modelName, tableName, attributeModel) {
18
+ super(connector, logger);
19
+ this.schema = const_1.PG_SCHEMA;
20
+ this.modelName = modelName;
21
+ this.tableName = tableName;
22
+ this.attributeModel = attributeModel;
23
+ }
24
+ async getAll(options = {}) {
25
+ try {
26
+ return await this.sequelizeModel.findAll({
27
+ limit: options.limit,
28
+ offset: options.offset,
29
+ order: [["source_created_at", "ASC"]],
30
+ });
31
+ }
32
+ catch (err) {
33
+ throw new golemio_errors_1.GeneralError(`Database error when listing '${this.modelName}'`, this.constructor.name, err, 500);
34
+ }
35
+ }
36
+ async getOne(id) {
37
+ try {
38
+ return await this.sequelizeModel.findByPk(id);
39
+ }
40
+ catch (err) {
41
+ throw new golemio_errors_1.GeneralError(`Database error when findByPk '${this.modelName}'`, this.constructor.name, err, 500);
42
+ }
43
+ }
44
+ }
45
+ exports.FyprElementRepository = FyprElementRepository;
46
+ //# sourceMappingURL=FyprElementRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FyprElementRepository.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/data-access/FyprElementRepository.ts"],"names":[],"mappings":";;;AAAA,6DAAuC;AAGvC,kIAA+H;AAC/H,6EAAwE;AAGxE,wEAAwE;AACxE,MAAa,qBAAyB,SAAQ,iDAAuB;IAOjE,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,YACI,SAA6B,EAC7B,MAAe,EACf,SAAiB,EACjB,SAAiB,EACjB,cAAoC;QAEpC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAtBb,WAAM,GAAG,iBAAS,CAAC;QAuB/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,UAA+C,EAAE;QACjE,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBACrC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,CAAC,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;aACxC,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,IAAI,6BAAY,CAAC,gCAAgC,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAC/G,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAClD,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;AAhDD,sDAgDC"}
@@ -0,0 +1 @@
1
+ export { v1FyprElementKindsRouter } from "./v1/V1FyprElementKindsRouter";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ 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
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/output-gateway/fypr/routers/index.ts"],"names":[],"mappings":";;;AAAA,0EAAyE;AAAhE,oIAAA,wBAAwB,OAAA"}
@@ -0,0 +1,10 @@
1
+ import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
2
+ import { Router } from "@golemio/core/dist/shared/express";
3
+ export declare class V1FyprElementKindsRouter extends AbstractRouter {
4
+ router: Router;
5
+ private cacheHeaderMiddleware;
6
+ private controller;
7
+ constructor();
8
+ protected initRoutes(): void;
9
+ }
10
+ export declare const v1FyprElementKindsRouter: AbstractRouter;
@@ -0,0 +1,44 @@
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 CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
8
+ const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
9
+ const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
10
+ const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
11
+ const express_1 = require("@golemio/core/dist/shared/express");
12
+ const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
13
+ class V1FyprElementKindsRouter extends AbstractRouter_1.AbstractRouter {
14
+ constructor() {
15
+ super("v1", "fypr/elements");
16
+ this.router = (0, express_1.Router)();
17
+ this.cacheHeaderMiddleware = ioc_1.OutputGatewayContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
18
+ this.controller = Di_1.fyprOGContainer.resolve(FYPROGContainerTokens_1.fyprOGContainerTokens.V1FyprElementKindsController);
19
+ this.initRoutes();
20
+ }
21
+ initRoutes() {
22
+ const config = ioc_1.OutputGatewayContainer.resolve(CoreToken_1.CoreToken.SimpleConfig);
23
+ const maxAge = config.getValue("module.fypr.output-gateway.elements.cache.maxAge", 5 * 60);
24
+ const staleWhileRevalidate = config.getValue("module.fypr.output-gateway.elements.cache.staleWhileRevalidate", 60);
25
+ const cacheMiddleware = this.cacheHeaderMiddleware.getMiddleware(maxAge, staleWhileRevalidate);
26
+ const kindParamMiddleware = (0, express_validator_1.param)("kind")
27
+ .isIn(constants_1.fyprElementKinds)
28
+ .withMessage(`kind must be one of: ${constants_1.fyprElementKinds.join(", ")}`);
29
+ const indexResponse = {
30
+ links: constants_1.fyprElementKinds.map((kind) => ({
31
+ rel: kind,
32
+ href: `/${this.version}/${this.path}/${kind}`,
33
+ })),
34
+ };
35
+ this.router.get("/", cacheMiddleware, (_req, res) => {
36
+ res.status(200).send(indexResponse);
37
+ });
38
+ this.router.get("/:kind", kindParamMiddleware, (0, Validation_1.paginationLimitMiddleware)("FyprElementKindsRouter"), Validation_1.checkErrors, cacheMiddleware, this.controller.getAll);
39
+ this.router.get("/:kind/:id", kindParamMiddleware, (0, express_validator_1.param)("id").isUUID(), Validation_1.checkErrors, cacheMiddleware, this.controller.getOne);
40
+ }
41
+ }
42
+ exports.V1FyprElementKindsRouter = V1FyprElementKindsRouter;
43
+ exports.v1FyprElementKindsRouter = new V1FyprElementKindsRouter();
44
+ //# sourceMappingURL=V1FyprElementKindsRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1FyprElementKindsRouter.js","sourceRoot":"","sources":["../../../../../src/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.ts"],"names":[],"mappings":";;;AACA,wCAA6C;AAC7C,8EAAsE;AACtE,yDAAwD;AAExD,wEAAqE;AACrE,sFAAmF;AAEnF,6EAAsG;AACtG,+DAA+F;AAC/F,+DAA2D;AAC3D,mFAAoE;AAEpE,MAAa,wBAAyB,SAAQ,+BAAc;IAKxD;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,CACrC,6CAAqB,CAAC,4BAA4B,CACrD,CAAC;QACF,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;QAChB,MAAM,MAAM,GAAG,4BAAsB,CAAC,OAAO,CAAgB,qBAAS,CAAC,YAAY,CAAC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C,UAAU,CAAC,MAAM,CACzB,CAAC;IACN,CAAC;CACJ;AAxDD,4DAwDC;AAEY,QAAA,wBAAwB,GAAmB,IAAI,wBAAwB,EAAE,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.routers = void 0;
4
- exports.routers = [
5
- // TODO
6
- ];
4
+ const routers_1 = require("./fypr/routers");
5
+ exports.routers = [routers_1.v1FyprElementKindsRouter];
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAqB;AACrC,OAAO;CACV,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":";;;AAAA,4CAA4D;AAG/C,QAAA,OAAO,GAAqB,CAAC,kCAAwB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { DependencyContainer } from "@golemio/core/dist/shared/tsyringe";
2
+ export declare const fyprOGContainer: DependencyContainer;
@@ -0,0 +1,26 @@
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 FyprElementRepository_1 = require("../fypr/data-access/FyprElementRepository");
6
+ const _sch_1 = require("../../schema-definitions");
7
+ const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
8
+ const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
9
+ const FYPROGContainerTokens_1 = require("./FYPROGContainerTokens");
10
+ //#region Initialization
11
+ exports.fyprOGContainer = ioc_1.OutputGatewayContainer.createChildContainer();
12
+ //#endregion
13
+ //#region Repositories
14
+ const connector = exports.fyprOGContainer.resolve(CoreToken_1.CoreToken.PostgresConnector);
15
+ const logger = exports.fyprOGContainer.resolve(CoreToken_1.CoreToken.Logger);
16
+ const fyprElementRepositoriesMap = new Map();
17
+ for (const kind of _sch_1.fyprElementKinds) {
18
+ const { modelName, tableName, attributeModel } = _sch_1.FyprElements[kind];
19
+ fyprElementRepositoriesMap.set(kind, new FyprElementRepository_1.FyprElementRepository(connector, logger, modelName, tableName, attributeModel));
20
+ }
21
+ exports.fyprOGContainer.registerInstance(FYPROGContainerTokens_1.fyprOGContainerTokens.FyprElementRepositoriesMap, fyprElementRepositoriesMap);
22
+ //#endregion
23
+ //#region Controllers
24
+ exports.fyprOGContainer.registerSingleton(FYPROGContainerTokens_1.fyprOGContainerTokens.V1FyprElementKindsController, V1FyprElementKindsController_1.V1FyprElementKindsController);
25
+ //#endregion
26
+ //# sourceMappingURL=Di.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,sGAAoG;AACpG,qFAAmF;AAEnF,mDAAuE;AAGvE,wEAAqE;AACrE,+DAA+E;AAE/E,mEAAgE;AAEhE,wBAAwB;AACX,QAAA,eAAe,GAAwB,4BAAsB,CAAC,oBAAoB,EAAE,CAAC;AAClG,YAAY;AAEZ,sBAAsB;AACtB,MAAM,SAAS,GAAG,uBAAe,CAAC,OAAO,CAAqB,qBAAS,CAAC,iBAAiB,CAAC,CAAC;AAC3F,MAAM,MAAM,GAAG,uBAAe,CAAC,OAAO,CAAU,qBAAS,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAuD,CAAC;AAElG,KAAK,MAAM,IAAI,IAAI,uBAAgB,EAAE,CAAC;IAClC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACpE,0BAA0B,CAAC,GAAG,CAC1B,IAAI,EACJ,IAAI,6CAAqB,CAAc,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,CAAC,CAClG,CAAC;AACN,CAAC;AAED,uBAAe,CAAC,gBAAgB,CAAC,6CAAqB,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,CAAC;AAC/G,YAAY;AAEZ,qBAAqB;AACrB,uBAAe,CAAC,iBAAiB,CAAC,6CAAqB,CAAC,4BAA4B,EAAE,2DAA4B,CAAC,CAAC;AACpH,YAAY"}