@golemio/energetics 1.3.7-dev.1315648116 → 1.3.7-dev.1317526410

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 (58) hide show
  1. package/db/example/04_measurements.sql +27 -0
  2. package/db/migrations/postgresql/20240531150935-measurements-partitions.js +53 -0
  3. package/db/migrations/postgresql/sqls/20240531150935-measurements-partitions-down.sql +9 -0
  4. package/db/migrations/postgresql/sqls/20240531150935-measurements-partitions-up.sql +47 -0
  5. package/dist/output-gateway/constants/Links.d.ts +1 -0
  6. package/dist/output-gateway/constants/Links.js +2 -1
  7. package/dist/output-gateway/constants/Links.js.map +1 -1
  8. package/dist/output-gateway/{routers/helpers/parseParams.d.ts → controllers/helpers/parsePaginationParams.d.ts} +1 -1
  9. package/dist/output-gateway/{routers/helpers/parseParams.js → controllers/helpers/parsePaginationParams.js} +5 -5
  10. package/dist/output-gateway/controllers/helpers/parsePaginationParams.js.map +1 -0
  11. package/dist/output-gateway/controllers/interfaces/IMeasurementsParams.d.ts +15 -0
  12. package/dist/output-gateway/controllers/interfaces/IMeasurementsParams.js +3 -0
  13. package/dist/output-gateway/controllers/interfaces/IMeasurementsParams.js.map +1 -0
  14. package/dist/output-gateway/controllers/interfaces/IPaginationParams.js.map +1 -0
  15. package/dist/output-gateway/controllers/v2/V2DevicesController.js +2 -2
  16. package/dist/output-gateway/controllers/v2/V2DevicesController.js.map +1 -1
  17. package/dist/output-gateway/controllers/v2/V2MeasurementsController.d.ts +9 -0
  18. package/dist/output-gateway/controllers/v2/V2MeasurementsController.js +70 -0
  19. package/dist/output-gateway/controllers/v2/V2MeasurementsController.js.map +1 -0
  20. package/dist/output-gateway/controllers/v2/V2OrganizationsController.js +2 -2
  21. package/dist/output-gateway/controllers/v2/V2OrganizationsController.js.map +1 -1
  22. package/dist/output-gateway/index.d.ts +2 -1
  23. package/dist/output-gateway/index.js +3 -2
  24. package/dist/output-gateway/index.js.map +1 -1
  25. package/dist/output-gateway/ioc/Di.js +11 -3
  26. package/dist/output-gateway/ioc/Di.js.map +1 -1
  27. package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +4 -0
  28. package/dist/output-gateway/ioc/ModuleContainerToken.js +4 -0
  29. package/dist/output-gateway/ioc/ModuleContainerToken.js.map +1 -1
  30. package/dist/output-gateway/models/BuildingsSecondaryModel.d.ts +1 -1
  31. package/dist/output-gateway/models/BuildingsSecondaryModel.js.map +1 -1
  32. package/dist/output-gateway/repositories/DevicesRepository.d.ts +1 -1
  33. package/dist/output-gateway/repositories/MeasurementRepository.d.ts +10 -0
  34. package/dist/output-gateway/repositories/MeasurementRepository.js +101 -0
  35. package/dist/output-gateway/repositories/MeasurementRepository.js.map +1 -0
  36. package/dist/output-gateway/repositories/OrganizationsRepository.d.ts +1 -1
  37. package/dist/output-gateway/routers/interfaces/IMeasurementResponse.d.ts +8 -0
  38. package/dist/output-gateway/routers/interfaces/IMeasurementResponse.js +3 -0
  39. package/dist/output-gateway/routers/interfaces/IMeasurementResponse.js.map +1 -0
  40. package/dist/output-gateway/routers/v2/{BuildingsRouter.d.ts → V2BuildingsRouter.d.ts} +1 -3
  41. package/dist/output-gateway/routers/v2/{BuildingsRouter.js → V2BuildingsRouter.js} +18 -7
  42. package/dist/output-gateway/routers/v2/V2BuildingsRouter.js.map +1 -0
  43. package/dist/output-gateway/routers/v2/V2MeasurementsRouter.d.ts +7 -0
  44. package/dist/output-gateway/routers/v2/V2MeasurementsRouter.js +66 -0
  45. package/dist/output-gateway/routers/v2/V2MeasurementsRouter.js.map +1 -0
  46. package/dist/schema-definitions/models/MeasurementsModel.js +3 -2
  47. package/dist/schema-definitions/models/MeasurementsModel.js.map +1 -1
  48. package/dist/schema-definitions/models/constants/MeasurementConstants.d.ts +2 -0
  49. package/dist/schema-definitions/models/constants/MeasurementConstants.js +19 -0
  50. package/dist/schema-definitions/models/constants/MeasurementConstants.js.map +1 -0
  51. package/docs/implementation_documentation.md +8 -0
  52. package/docs/openapi-output.yaml +210 -22
  53. package/package.json +1 -1
  54. package/dist/output-gateway/routers/helpers/parseParams.js.map +0 -1
  55. package/dist/output-gateway/routers/interfaces/IPaginationParams.js.map +0 -1
  56. package/dist/output-gateway/routers/v2/BuildingsRouter.js.map +0 -1
  57. /package/dist/output-gateway/{routers → controllers}/interfaces/IPaginationParams.d.ts +0 -0
  58. /package/dist/output-gateway/{routers → controllers}/interfaces/IPaginationParams.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseParams.js","sourceRoot":"","sources":["../../../../src/output-gateway/routers/helpers/parseParams.ts"],"names":[],"mappings":";;;AACA,6EAAwE;AAGxE,SAAgB,WAAW,CAAC,GAAY;IACpC,IAAI;QACA,OAAO;YACH,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,SAAS;YACxE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;SAC9E,CAAC;KACL;IAAC,OAAO,GAAG,EAAE;QACV,MAAM,IAAI,6BAAY,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;KAClF;AACL,CAAC;AATD,kCASC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPaginationParams.js","sourceRoot":"","sources":["../../../../src/output-gateway/routers/interfaces/IPaginationParams.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BuildingsRouter.js","sourceRoot":"","sources":["../../../../src/output-gateway/routers/v2/BuildingsRouter.ts"],"names":[],"mappings":";;;AAAA,iDAAoD;AACpD,+DAA0D;AAC1D,kFAA6E;AAC7E,qCAAmD;AACnD,sFAAmF;AAEnF,6EAA2E;AAC3E,+DAAuE;AACvE,mFAAoE;AAEpE,MAAa,eAAgB,SAAQ,+BAAc;IAK/C;QACI,KAAK,CAAC,2BAAY,CAAC,EAAE,EAAE,qBAAa,CAAC,CAAC;QAHlC,WAAM,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU;QAIpC,IAAI,CAAC,UAAU,GAAG,IAAI,yCAAmB,EAAE,CAAC;QAC5C,IAAI,CAAC,qBAAqB,GAAG,0BAAqB,CAAC,OAAO,CAAwB,oBAAc,CAAC,qBAAqB,CAAC,CAAC;QACxH,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;QAChB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACpG,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,MAAM,EACN,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,EACrD,IAAA,yBAAK,EAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAChD,wBAAW,EACX,IAAI,CAAC,UAAU,CAAC,MAAM,CACzB,CAAC;IACN,CAAC;CACJ;AAtBD,0CAsBC;AAED,MAAM,iBAAiB,GAAmB,IAAI,eAAe,EAAE,CAAC;AAEvD,8CAAiB"}