Commit Graph

22 Commits

Author SHA1 Message Date
9bebcb2f3e feat: implement scheduler for periodic data updates and optimize database procedures
- Added SchedulerModule and SchedulerService to handle hourly data updates for AQI, occupancy, and energy consumption.
- Refactored existing services to remove unused device repository dependencies and streamline procedure execution.
- Updated SQL procedures to use correct parameter indexing.
- Enhanced error handling and logging for scheduled tasks.
- Integrated new repositories for presence sensor and AQI pollutant stats across multiple modules.
- Added NestJS schedule package for task scheduling capabilities.
2025-06-25 03:20:25 -06:00
689a38ee0c Revamp/space management (#409)
* task: add getCommunitiesV2

* task: update getOneSpace API to match revamp structure

* refactor: implement modifications to pace management APIs

* refactor: remove space link
2025-06-18 10:34:29 +03:00
8503ee728d Refactor/space management (#404)
* refactor: reducing used queries on get communities (#385)

* refactor: fix create space logic (#394)

* Remove unique constraint on subspace and product in SubspaceProductAllocationEntity; update product relation to nullable in NewTagEntity

* refactor: fix create space logic

* device model updated to include the fixes and final columns

* updated space models to include suggested fixes, update final logic and column names

* task: removing old references of the old tag-product relation

* task: remove old use of tags

* task: remove old tag & tag model usage

* refactor: delete space

* task: remove unused functions

* fix lint rule
2025-06-11 13:15:21 +03:00
c86be27576 Add AQI module and related services, controllers, and DTOs
- Introduced AqiModule with AqiService and AqiController for handling AQI data.
- Added DTOs for AQI requests: GetAqiDailyBySpaceDto and GetAqiPollutantBySpaceDto.
- Implemented AqiDataService for managing AQI sensor historical data.
- Updated existing modules to include AqiDataService where necessary.
- Defined new routes for AQI data retrieval in ControllerRoute.
2025-06-10 18:19:34 -06:00
7ec4171e1a feat: add occupancy module with controller, service, and related DTOs for heat map data retrieval 2025-05-12 02:15:57 +03:00
f3fd6646a1 feat: add SqlLoaderService to multiple modules for improved SQL data handling 2025-04-24 02:31:35 +03:00
7f43ef5de5 feat: integrate PowerClamp service and repositories across multiple modules 2025-04-24 02:14:58 +03:00
1a313c103d finished return the last three parents 2025-03-19 00:50:24 +03:00
9902b02700 finished return the spaces in get community 2025-03-18 01:52:01 +03:00
427e764539 faster querying 2025-02-03 00:43:38 +04:00
bdbab026f5 Refactor activation code handling and user space verification 2025-01-10 06:18:48 -06:00
45181704a7 Add InviteSpaceRepository and update invite handling logic 2025-01-09 05:53:43 -06:00
5ce016f429 Add support for sending edit user email with template 2025-01-04 22:42:07 -06:00
39d73bf241 finished Update invited user endpoint 2025-01-04 06:25:50 -06:00
c616547f9b Add activation code endpoint 2025-01-04 04:44:34 -06:00
e3ebcff78a Add EmailService and send invitation email in InviteUserService 2024-12-28 19:41:30 -06:00
74fb06f67e Fix import case sensitivity in InviteUserRepositoryModule 2024-12-17 02:16:01 -06:00
c27aca1196 Fix inconsistent casing in Invite-user module paths 2024-12-17 02:13:34 -06:00
4ce7620584 Fix typo in import path for repositories 2024-12-17 01:48:36 -06:00
9de1d7134a Fix inconsistent casing in file imports 2024-12-16 19:41:51 -06:00
c1af930dc9 Fix inconsistent casing in import paths for Invite-user module 2024-12-16 19:36:40 -06:00
64027d3a16 Add permission and role management features 2024-12-16 00:19:14 -06:00