Commit Graph

42 Commits

Author SHA1 Message Date
74d3620d0e Chore/space link tag cleanup (#462)
* chore: remove unused imports and dead code for space link

* chore: remove unused imports and dead code

* chore: remove unused imports and dead code of tag service
2025-07-09 14:25:26 +03:00
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
1220ee395d fixing propagation 2025-03-07 23:01:38 +04:00
8a5709b1c9 finished spaces validation endpoint 2025-03-02 22:48:02 +03:00
902ddbab50 update space service 2025-02-27 13:36:08 +03:00
aed9719178 removed tag service 2025-02-26 00:35:36 +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
8161e8469b Add new automation actions and repository 2025-01-28 03:43:11 -06:00
78617dde83 Remove invitationCode from unique constraint and update invite user logic 2025-01-11 01:39:52 -06:00
79b3b14a9c Rename getSpaceInvitationCode to generateSpaceInvitationCode and update imports 2025-01-10 06:15:41 -06:00
0145f72651 Add InviteSpaceEntity and InviteSpaceRepository 2025-01-09 05:37:40 -06:00
fcf1964599 delete propogation 2024-12-27 09:02:47 +04:00
f7b75a630a disabling space 2024-12-25 16:23:09 +04:00
a74a0db26e updated space update 2024-12-25 10:52:48 +04:00
cb2778dce5 update in tag service 2024-12-24 11:33:58 +04:00
97b53bf417 space cleanup 2024-12-24 08:12:56 +04:00
d1050babd1 space product service 2024-12-17 19:08:48 +04:00
b3e8af7540 added subspace product item 2024-12-17 12:18:03 +04:00
3099e905e2 subspace product repository created 2024-12-15 19:59:36 +04:00
b8590841a8 aadded product item to space 2024-12-12 14:37:44 +04:00
ba002ae474 reduced code duplication 2024-12-12 09:21:56 +04:00
cdc95056ae updated space endpoint to follow project 2024-12-09 17:33:19 +04:00
9fdee1540b Merge branch 'feat/add-product-space' into feat/add-space-position 2024-11-20 21:46:33 +04:00
11564eece7 added space product service 2024-11-20 16:34:44 +04:00
c7404972a2 added space link service 2024-11-20 16:01:51 +04:00
857b02b97b added space link entity 2024-11-20 09:11:22 +04:00
eb916b79b4 finished 4scene configration endpoints 2024-11-16 23:05:06 -06:00
7e9894b1d3 Fixed scene 2024-11-02 19:36:56 +04:00
5a5911ca8a space device controller 2024-10-30 19:10:13 +04:00
adacc60a40 get devices 2024-10-30 19:07:26 +04:00
295013fd15 automation service 2024-10-30 14:42:01 +04:00
eb77f8ab99 subspace endpoints 2024-10-29 13:13:44 +04:00
74428b408e add subspace controller 2024-10-28 09:53:47 +04:00
f8c011f9dc space management without roles 2024-10-21 09:47:52 +04:00
96d52962aa Space CRUD apis 2024-10-17 11:20:05 +04:00