Commit Graph
37 Commits
Author SHA1 Message Date
faris Aljohari 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
ZaydSkaff 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
ZaydSkaff 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
faris Aljohari 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
Mhd Zayd Skaff f7fd96afa1 fix: remove unused params from get all projects api 2025-05-20 14:40:48 +03:00
faris Aljohari 7ec4171e1a feat: add occupancy module with controller, service, and related DTOs for heat map data retrieval 2025-05-12 02:15:57 +03:00
faris Aljohari f3fd6646a1 feat: add SqlLoaderService to multiple modules for improved SQL data handling 2025-04-24 02:31:35 +03:00
faris Aljohari 7f43ef5de5 feat: integrate PowerClamp service and repositories across multiple modules 2025-04-24 02:14:58 +03:00
hannathkadher ed3c526efd fix commissioning 2025-04-21 10:58:14 +04:00
hannathkadher c677be400c added community info and tag 2025-04-17 10:41:39 +04:00
hannathkadher 4810cc6f35 added controller to export 2025-04-16 10:28:57 +04:00
hannathkadher 5d379e0c36 export 2025-04-15 20:01:42 +04:00
faris Aljohari 22d98fa177 feat: add user UUID to project creation and validate user existence 2025-04-03 12:27:36 +03:00
hannathkadher f9f9592603 fix duplication 2025-03-11 13:43:23 +04:00
hannathkadher e17a3fdda8 Merge pull request #273 from SyncrowIOT/feat/project-tag
New tag entitiy
2025-03-02 00:25:55 +04:00
faris Aljohari e3e2981673 Include community details in user spaces response 2025-02-26 16:19:55 +03:00
hannathkadher 7ddd75041e added project validation 2025-02-17 23:07:15 +04:00
faris Aljohari 6a857aac65 Order users by creation date in ascending order 2025-01-30 04:26:39 -06:00
faris Aljohari 5f26e7b7d2 Simplify user space retrieval in ProjectUserService 2025-01-04 19:12:11 -06:00
faris Aljohari a7615975b0 Remove DISABLED status and add isEnabled field 2025-01-04 18:57:19 -06:00
faris Aljohari 39d73bf241 finished Update invited user endpoint 2025-01-04 06:25:50 -06:00
faris Aljohari 687d88ea2e Update user spaces retrieval based on user status 2025-01-04 06:21:39 -06:00
faris Aljohari 77061d3ce3 Rename userUuid to invitedUserUuid in project-user controller and service 2025-01-04 04:26:37 -06:00
faris Aljohari eac5fce859 Simplify user retrieval and normalization in ProjectUserService 2025-01-04 04:19:48 -06:00
faris Aljohari 9c03b9e95d Remove unused UserRepository from project.module.ts 2025-01-04 04:19:34 -06:00
faris Aljohari ff30d36f8e Update user relations and formatUserResponse method 2025-01-02 20:41:58 -06:00
faris Aljohari 6d87966b22 Add project existence check in getUsersByProject method 2025-01-02 03:46:33 -06:00
faris Aljohari 337539c293 Include spaces and userSpaces in user relations 2024-12-30 19:53:31 -06:00
faris Aljohari 7e6e34a3de Refactor and add new user-related endpoints for projects 2024-12-30 18:59:42 -06:00
faris Aljohari a96dccd19d Add endpoint to get users by project 2024-12-29 22:31:56 -06:00
hannathkadher 66364811f6 added project name to community name 2024-12-19 11:57:06 +04:00
hannathkadher a5ab883957 create orphan community and space for project 2024-12-18 08:22:53 +04:00
hannathkadher ba002ae474 reduced code duplication 2024-12-12 09:21:56 +04:00
hannathkadher 1e5b61e3e0 added project endpoints 2024-12-09 13:26:17 +04:00
hannathkadher 459e971498 added dto 2024-12-09 12:44:57 +04:00
hannathkadher 768ea7cad8 add update project 2024-12-09 12:26:53 +04:00
hannathkadher 7f739b88d8 Project service to CRUD project entity 2024-12-09 11:48:53 +04:00