Commit Graph

24 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
9902b02700 finished return the spaces in get community 2025-03-18 01:52:01 +03:00
8cbbb3a8ba updated space product model allocation 2025-03-12 23:08:18 +04:00
1220ee395d fixing propagation 2025-03-07 23:01:38 +04:00
902ddbab50 update space service 2025-02-27 13:36:08 +03:00
6b20428719 added service to delete space model 2025-02-26 00:36:37 +04:00
cd8d368e21 added services 2025-02-25 23:16:00 +04:00
c7ffba7290 fix dependency issue 2025-02-17 23:15:27 +04:00
0145f72651 Add InviteSpaceEntity and InviteSpaceRepository 2025-01-09 05:37:40 -06:00
6a89a17ce9 disable space 2024-12-30 10:06:33 +04:00
a74a0db26e updated space update 2024-12-25 10:52:48 +04:00
97b53bf417 space cleanup 2024-12-24 08:12:56 +04:00
a4740e8bbd updated create space model 2024-12-23 12:25:24 +04:00
5d4f04611f service clean up 2024-12-23 08:44:10 +04:00
a771fa8ee5 propagate add 2024-12-19 09:12:26 +04:00
4fb4e32c3d folder restructuring 2024-12-13 15:08:50 +04:00
1373dfb0ce subspace model also has product model and item 2024-12-13 15:00:33 +04:00
02faca3397 added space model controller for create 2024-12-11 11:06:41 +04:00