Commit Graph

46 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
a91d0f22a4 fix: send correct enable status to email sender function (#407) 2025-06-13 09:46:41 +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
e9a3cd14a8 fixed entity relation, removed circular dependency 2025-02-10 20:36:29 +04:00
5ccac95ee1 Refactor user and invited user validation in InviteUserService 2025-02-04 07:38:00 -06:00
33d7d60755 Merge pull request #243 from SyncrowIOT/check-if-user-deleted-validation 2025-02-04 03:08:30 -06:00
a92497603f Check user active status before sign-up and invite 2025-02-04 01:56:56 -06:00
6e942109fa Update user role in repository when inviting user 2025-02-04 01:11:10 -06:00
427e764539 faster querying 2025-02-03 00:43:38 +04:00
9542f9334f Refactor invite user service to validate spaces and improve code structure 2025-01-21 00:02:25 -06:00
0246420e67 Merge pull request #211 from SyncrowIOT/fix-edit-email
Update email template data in `sendEditUserEmailWithTemplate`
2025-01-11 02:55:54 -06:00
48d597a066 Update email template data in sendEditUserEmailWithTemplate 2025-01-11 02:54:08 -06:00
78617dde83 Remove invitationCode from unique constraint and update invite user logic 2025-01-11 01:39:52 -06: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
ddb0d27d4f Remove unnecessary console logs from InviteUserService 2025-01-07 04:20:58 -06:00
983c49c503 Add roleType relation and debug logs in InviteUserService 2025-01-07 04:19:35 -06:00
92089698e4 Add roleType to inviteUser creation payload 2025-01-07 02:02:48 -06:00
5ce016f429 Add support for sending edit user email with template 2025-01-04 22:42:07 -06:00
81ec60d947 Add delete user invitation functionality 2025-01-04 20:10:37 -06:00
7ca9c19a2e Add Mailtrap disable and enable template UUIDs and update email service 2025-01-04 19:45:01 -06:00
10a2036fa0 Refactor update logic for invited users 2025-01-04 19:18:55 -06:00
fe51705730 Add endpoint to disable user invitation 2025-01-04 19:13:33 -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
8ebedd6d8d Merge branch 'dev' into SP-986-be-send-email-for-inviting-user-role 2024-12-30 19:02:09 -06:00
e3ebcff78a Add EmailService and send invitation email in InviteUserService 2024-12-28 19:41:30 -06:00
6aff5e54e9 Add email and project validation before inviting user 2024-12-25 19:58:44 -06:00
77d2e18b36 Make jobTitle and phoneNumber optional in InviteUserEntity and DTO 2024-12-25 19:58:37 -06:00
864884933e Add endpoint to check email and project existence 2024-12-23 00:01:36 -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
8f6e5e31e2 Update dependencies and refactor import statements 2024-12-17 01:11:53 -06:00
6f3891a68e Add invitedBy field to InviteUserDto and InviteUserEntity 2024-12-16 19:56:37 -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
57397e653a Add Invite User Module and Update User and Space Entities
This commit introduces a new module for handling user invitations, including DTOs, entities, and repositories. It also updates the User and Space entities to include relationships with the new Invite User entities.
2024-12-16 00:17:50 -06:00