Commit Graph

66 Commits

Author SHA1 Message Date
c5f8f96977 Merge branch 'dev' into SP-1754-be-implement-configure-space 2025-07-02 02:25:43 -06: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
60d2c8330b fix: increase DB max pool size (#425) 2025-06-23 15:23:53 +03:00
aa9e90bf08 Test/prevent server block on rate limit (#419)
* increase DB max connection to 50
2025-06-19 14:34:23 +03:00
a94d4610ed Merge branch 'dev' into SP-1754-be-implement-configure-space 2025-06-18 01:55:48 -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
8d44b66dd3 feat: add BookableSpace entity, DTO, repository, and integrate with Space entity 2025-06-17 22:02:08 -06:00
f2ed04f206 feat: add SpaceDailyOccupancyDuration entity, DTO, and repository for occupancy tracking 2025-06-12 02:49:59 -06: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
ef2245eae1 Add AQI space daily pollutant stats module and related entities, DTOs, and repositories 2025-06-03 23:37:52 -06:00
8030644fee refactor: rename presence sensor entities and update related references 2025-05-09 13:11:14 +03:00
2a1f1f52f6 feat: add presence sensor module with entity, DTO, and repository 2025-05-04 19:11:14 +03:00
1bdb13846f Merge branch 'dev' into SP-1355-powr-clap-historical-data 2025-04-24 15:04:11 +03:00
45eec4bb30 Merge branch 'dev' into fix-add-device-issue 2025-04-24 11:08:38 +03:00
51bf4c0170 fix: update connection timeout value in database module 2025-04-24 11:06:47 +03:00
8228ccc293 feat: add power clamp entities, DTOs, and repository for energy consumption tracking 2025-04-23 15:08:51 +03:00
cff947a84a database config 2025-04-22 21:44:46 +04:00
fcb27155d8 typeorm logger 2025-04-22 10:20:48 +04:00
a4b743eb58 add client entity 2025-03-25 02:29:00 +03:00
e9a3cd14a8 fixed entity relation, removed circular dependency 2025-02-10 20:36:29 +04:00
acf8c42170 typo fix 2025-02-10 12:59:43 +04:00
9a163b0e85 Add Automation Module and Entity 2025-01-28 03:42:52 -06:00
0145f72651 Add InviteSpaceEntity and InviteSpaceRepository 2025-01-09 05:37:40 -06:00
1e47fffc0a cleaned space entities 2024-12-24 08:43:25 +04:00
97b53bf417 space cleanup 2024-12-24 08:12:56 +04:00
2dd48b7bc2 clean model entities 2024-12-23 08:32:02 +04:00
885d43d834 Merge branch 'dev' of https://github.com/SyncrowIOT/backend into feat/link-space-to-space-model 2024-12-17 20:41:08 +04:00
c27aca1196 Fix inconsistent casing in Invite-user module paths 2024-12-17 02:13:34 -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
05b2bddc26 added subspace product item 2024-12-13 15:39:13 +04:00
d268a81d85 added subspace product 2024-12-13 15:30:38 +04:00
9fdd559b9f added subspace model product and item entities 2024-12-12 16:37:49 +04:00
88a4b26919 added entities for space product item 2024-12-11 15:27:06 +04:00
783b37cd1f Added space model, subspace model, space product model entities 2024-12-10 15:12:51 +04:00
df80928b68 created project entity 2024-12-09 10:51:58 +04:00
9fdee1540b Merge branch 'feat/add-product-space' into feat/add-space-position 2024-11-20 21:46:33 +04:00
2ed5d9dce7 Added space product relation 2024-11-20 16:16:17 +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
a1f74938fc removed unused entity 2024-11-15 13:27:20 +04:00
689d42cf1e Merge branch 'dev' of https://github.com/SyncrowIOT/backend into feature/space-management 2024-10-30 23:08:51 +04:00
6d6560b3e0 Added subspace entity 2024-10-25 13:59:25 +04:00
c2958498e5 finished scene icons 2024-10-22 02:13:53 -05:00
07ac955eb0 added timeseries 2024-10-20 16:46:44 +03:00
2292c01220 community controller 2024-10-15 11:01:56 +04:00
ef4541a371 Add Visitor Password Entity and Relationships 2024-08-27 22:08:31 +03:00
8f761168b4 changed entity and type structure 2024-08-03 23:50:49 +03:00
f98f3cd47b Add RegionEntity and TimeZoneEntity to database module imports 2024-07-15 15:49:28 +03:00
bcab5a00d8 Refactor: Remove group and group-device modules 2024-06-02 21:12:50 +03:00