59 Commits

Author SHA1 Message Date
85687e7950 fix: refactor device status logging and improve property handling in batch processing 2025-07-16 20:05:58 -06:00
c5f8f96977 Merge branch 'dev' into SP-1754-be-implement-configure-space 2025-07-02 02:25:43 -06:00
f80d097ff8 refactor: optimize log insertion and clean up device cache handling in TuyaWebSocketService 2025-06-25 18:57:56 -06:00
04bd156df1 Merge branch 'dev' into add-check-log-to-trace-the-map-issue 2025-06-25 18:42:43 -06:00
731819aeaa feat: enhance device status handling with caching and batch processing improvements 2025-06-25 18:37:46 -06:00
c0a069b460 fix: enhance device status handling by integrating device cache for improved performance 2025-06-25 08:03:23 -06:00
a83424f45b fix: remove unnecessary validation for missing properties in device status logs 2025-06-25 05:29:28 -06:00
71f6ccb4db fix: add validation for missing properties in device status logs 2025-06-25 05:20:26 -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
43ab0030f0 refactor: clean up unused services and optimize batch processing in DeviceStatusFirebaseService 2025-06-25 03:20:12 -06:00
d1d4d529a8 Add methods to handle SOS events and device status updates in Firebase and our DB 2025-06-23 08:10:33 -06:00
ff370b2baa Implement message queue for TuyaWebSocketService and batch processing 2025-06-23 07:31:58 -06:00
75d03366c2 Revert "SP-1778-be-fix-time-out-connections-in-the-db" 2025-06-23 06:58:57 -06:00
a6053b3971 refactor: implement query runners for database operations in multiple services 2025-06-23 06:34:53 -06:00
332b2f5851 feat: implement Booking module with BookableSpace entity, controller, service, and DTOs for managing bookable spaces 2025-06-17 22:02:13 -06: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
180d16eeb1 feat: add occupancy duration data retrieval and update procedures 2025-05-18 17:40:41 +03: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
91abfb41ab Implement month-based date formatting and filtering in PowerClamp service 2025-05-07 12:17:17 +03:00
d197bf2bb4 feat: implement date formatting function and enhance PowerClampService with space-based data retrieval 2025-05-04 22:28:38 +03:00
aee6b8df69 refactor: update procedure names in PowerClampService for clarity 2025-05-02 01:57:12 +03:00
881618a4ee feat: enhance PowerClamp service with energy consumption procedures and enums 2025-04-24 03:14:03 +03:00
92f908c0fb feat: implement PowerClampService for managing hourly energy consumption data 2025-04-24 02:15:45 +03:00
d341c47286 add SosHandlerService and integrate SOS handling in TuyaWebSocketService 2025-04-17 16:58:34 +03:00
3745962827 Add PowerClamp module with controller and service for energy data retrieval 2025-04-14 12:17:44 +03:00
c7fc4e3a5d refactor: enhance TuyaWebSocketService to handle environment-specific message extraction 2025-03-28 03:34:30 +03:00
9dcb68da2d Add function to remove circular references and use it in SpaceService 2025-02-03 07:38:19 -06:00
689d42cf1e Merge branch 'dev' of https://github.com/SyncrowIOT/backend into feature/space-management 2024-10-30 23:08:51 +04:00
2422f40a2d remove unused guard 2024-10-30 11:28:25 +04:00
84bcf098d3 Removed community user 2024-10-29 13:19:47 +04:00
74428b408e add subspace controller 2024-10-28 09:53:47 +04:00
ce9555a5f4 changed device log table 2024-10-27 09:56:23 +03:00
d6777c8ec1 Added all community endpoints 2024-10-17 10:55:26 +04:00
9a868c5757 added enums to replace constants 2024-10-06 15:44:49 +03:00
90127bd510 change time from UTC+4 to UTC+3 2024-09-18 12:02:00 +03:00
d962d4a7b3 finished schedule module 2024-09-15 18:03:30 +03:00
176276ef05 merged with dev 2024-08-11 14:19:02 +03:00
95635ca02a Merge branch 'dev' into real-time-devices 2024-08-11 12:56:22 +03:00
16595432c3 Switch device status storage to Firebase from MongoDB 2024-08-10 21:01:10 +03:00
be8152bad9 otp check if user is verified 2024-08-09 18:57:17 +03:00
842e64a4d1 otp cooldown 2024-08-09 18:44:28 +03:00
8f761168b4 changed entity and type structure 2024-08-03 23:50:49 +03:00
26cba4d05b added unit tests 2024-07-31 22:26:51 +03:00
8cb131f395 test 2024-07-30 14:14:58 +03:00
6a8eed73bd Refactor user service to use removeBase64Prefix utility function 2024-07-24 14:30:29 +03:00
5f27695a0b Refactor snake case converter function and improve code readability 2024-07-20 18:27:13 +03:00
720b9ce23f Add snake case converter helper function 2024-06-24 13:28:21 +03:00
8cf8a2da90 Add conditional check for Tuya web socket service 2024-06-02 19:30:51 +03:00
948d133e4f Merge branch 'dev' into SP-232-consume-the-tuya-messaging-service-for-device-logs 2024-06-02 19:09:58 +03:00
f0606f81e7 Add generateRandomString helper function and remove nanoid dependency 2024-06-01 20:25:05 +03:00