Commit Graph
100 Commits
Author SHA1 Message Date
faris Aljohari 77cf893121 Merge branch 'dev' into feature/test-ai-pr-action 2025-07-16 00:08:21 -06:00
faris Aljohari 61348aa351 fix: update workflow to use HuggingFace Falcon model for PR description generation 2025-07-16 00:08:08 -06:00
faris Aljohari b281ad766d Merge branch 'dev' into feature/test-ai-pr-action 2025-07-16 00:05:49 -06:00
faris Aljohari dea942f11e fix: update workflow to use HuggingFace for PR description generation 2025-07-16 00:05:33 -06:00
faris Aljohari bed2c526dd Merge branch 'dev' into feature/test-ai-pr-action 2025-07-15 23:48:01 -06:00
faris Aljohari d62e620828 fix: update workflow name and enhance OpenAI request handling in AI PR Description 2025-07-15 23:47:45 -06:00
faris Aljohari 3ebca8d98f Merge branch 'dev' into feature/test-ai-pr-action 2025-07-15 23:45:34 -06:00
faris Aljohari f0556813ac fix: update workflow name and enhance commit message handling in AI PR Description 2025-07-15 23:45:16 -06:00
faris Aljohari eac72dd2a4 Merge branch 'dev' into feature/test-ai-pr-action 2025-07-15 23:43:15 -06:00
faris Aljohari 6d2252a403 fix: add debug information to AI PR Description workflow 2025-07-15 23:43:00 -06:00
faris Aljohari 2b1f5190ef Merge branch 'dev' into feature/test-ai-pr-action 2025-07-15 23:39:19 -06:00
faris Aljohari 8d265c9105 fix: update workflow name and change GitHub token secret 2025-07-15 23:38:57 -06:00
faris Aljohari ffa38de046 Test AI PR Action from internal branch 2025-07-15 23:25:51 -06:00
faris Aljohari a4095c837b fix: rename workflow and update AI description generation method 2025-07-15 23:19:22 -06:00
faris Aljohari 65d4a56135 fix: update GitHub CLI installation method and refine AI PR description prompt 2025-07-15 19:00:23 -06:00
faris Aljohari fffa27b6ee Add AI PR Description Action 2025-07-15 18:48:43 -06:00
faris Aljohari 60bc03cf79 fix deployed issue 2025-07-03 01:12:23 -06:00
faris Aljohari a9eaf44d31 Merge branch 'main' into dev 2025-07-03 00:10:00 -06:00
faris Aljohari 5c916ed445 add pr template 2025-07-03 00:01:37 -06:00
faris Aljohari c5f8f96977 Merge branch 'dev' into SP-1754-be-implement-configure-space 2025-07-02 02:25:43 -06:00
faris Aljohari 8f9b15f49f fix: adjust category handling for CUR_2 device type in schedule retrieval 2025-06-30 07:12:43 -06:00
faris Aljohari 13c0f87fc6 fix: filter daily averages by space_id and event_date in update procedure 2025-06-30 04:09:40 -06:00
faris Aljohari c9d794d988 fix: update role type formatting in user invitation email 2025-06-30 01:25:09 -06:00
faris Aljohari f4e748d735 fix: update role type formatting in user invitation email 2025-06-30 00:58:30 -06:00
faris Aljohari f80d097ff8 refactor: optimize log insertion and clean up device cache handling in TuyaWebSocketService 2025-06-25 18:57:56 -06:00
faris Aljohari 04bd156df1 Merge branch 'dev' into add-check-log-to-trace-the-map-issue 2025-06-25 18:42:43 -06:00
faris Aljohari 731819aeaa feat: enhance device status handling with caching and batch processing improvements 2025-06-25 18:37:46 -06:00
faris Aljohari 68d2d3b53d fix: improve device retrieval logic in addDeviceStatusToFirebase method 2025-06-25 08:13:02 -06:00
faris Aljohari c0a069b460 fix: enhance device status handling by integrating device cache for improved performance 2025-06-25 08:03:23 -06:00
faris Aljohari 324661e1ee fix: add missing check for device UUID in batch processing logs 2025-06-25 05:30:15 -06:00
faris Aljohari a83424f45b fix: remove unnecessary validation for missing properties in device status logs 2025-06-25 05:29:28 -06:00
faris Aljohari 71f6ccb4db fix: add validation for missing properties in device status logs 2025-06-25 05:20:26 -06:00
faris Aljohari 27dbe04299 fix: remove unnecessary comment from ScheduleModule import in scheduler module 2025-06-25 04:47:38 -06:00
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
faris Aljohari 43ab0030f0 refactor: clean up unused services and optimize batch processing in DeviceStatusFirebaseService 2025-06-25 03:20:12 -06:00
faris Aljohari d1d4d529a8 Add methods to handle SOS events and device status updates in Firebase and our DB 2025-06-23 08:10:33 -06:00
faris Aljohari cf19f08dca turn on all the updates data points 2025-06-23 07:33:01 -06:00
faris Aljohari ff370b2baa Implement message queue for TuyaWebSocketService and batch processing 2025-06-23 07:31:58 -06:00
faris Aljohari 04f64407e1 turn off some update data points 2025-06-23 07:10:47 -06:00
faris Aljohari c8d691b380 tern off data procedure 2025-06-23 07:02:23 -06:00
faris Aljohari a6053b3971 refactor: implement query runners for database operations in multiple services 2025-06-23 06:34:53 -06:00
faris Aljohari d3d84da5e3 fix: correct property name from bookableConfigs to bookableConfig in BookableSpaceEntity and SpaceEntity 2025-06-23 00:39:29 -06:00
faris Aljohari 7dc28d0cb3 fix: enable AQI sensor historical data update in device status processing 2025-06-18 07:32:39 -06:00
faris Aljohari d9ad431a23 fix: correct procedure names in energy consumption updates 2025-06-18 05:33:49 -06:00
faris Aljohari 4bf43dab2b feat: enhance device status DTO and service with optional properties and environment checks 2025-06-18 05:33:43 -06:00
faris Aljohari 49cc762962 fix duplication from conflict merge 2025-06-18 01:56:51 -06:00
faris Aljohari a94d4610ed Merge branch 'dev' into SP-1754-be-implement-configure-space 2025-06-18 01:55:48 -06:00
faris Aljohari 274cdf741f refactor: streamline Booking module and service by removing unused imports and consolidating space validation logic 2025-06-18 01:49:00 -06:00
faris Aljohari df59e9a4a3 refactor: update BookableSpaceEntity relationship to OneToOne with SpaceEntity 2025-06-18 01:48:46 -06:00
faris Aljohari 8c34c68ba6 refactor: remove BookableSpaceDto and its index export 2025-06-18 01:48:35 -06:00
faris Aljohari 332b2f5851 feat: implement Booking module with BookableSpace entity, controller, service, and DTOs for managing bookable spaces 2025-06-17 22:02:13 -06:00
faris Aljohari 8d44b66dd3 feat: add BookableSpace entity, DTO, repository, and integrate with Space entity 2025-06-17 22:02:08 -06:00
faris Aljohari 72753b6dfb merge dev to main 2025-06-14 15:18:20 -06:00
faris Aljohari 568eef8119 Merge branch 'dev' 2025-06-14 15:04:48 -06:00
faris Aljohari f2ed04f206 feat: add SpaceDailyOccupancyDuration entity, DTO, and repository for occupancy tracking 2025-06-12 02:49:59 -06:00
faris Aljohari 2cb77504ca Add PollutantType enum and update AQI-related entities and services to use it 2025-06-11 00:28:00 -06: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
faris Aljohari 3a08f9f258 Merge branch 'dev' into aqi-test 2025-06-10 17:08:06 -06:00
faris Aljohari 97e14e70f7 Refactor DeviceStatusLogEntity: expand unique constraint to include code and value 2025-06-10 01:41:41 -06:00
faris Aljohari 0793441e06 Refactor DeviceStatusLogEntity: correct unique constraint name for event time and device ID 2025-06-10 01:24:33 -06:00
faris Aljohari b6321c2530 Refactor DeviceStatusLogEntity: update unique constraint to include deviceId 2025-06-10 01:18:58 -06:00
faris Aljohari 7eb13088ac Refactor DeviceStatusLogEntity: update unique constraint and primary key definition 2025-06-09 04:50:58 -06:00
faris Aljohari 0d6de2df43 Refactor AqiSpaceDailyPollutantStatsEntity: update unique constraint and rename event fields for clarity 2025-06-04 15:24:13 -06:00
faris Aljohari 43dfaaa90d fix: utilize WEATHER_API_URL in WeatherService for dynamic API endpoint 2025-06-04 01:32:01 -06:00
faris Aljohari ea021ad228 fix: update error message for invalid latitude and longitude in fetchWeatherDetails method 2025-06-04 01:09:49 -06:00
faris Aljohari cd3e9016f2 fix: improve error handling in fetchWeatherDetails method 2025-06-04 01:08:33 -06:00
faris Aljohari ef2245eae1 Add AQI space daily pollutant stats module and related entities, DTOs, and repositories 2025-06-03 23:37:52 -06:00
faris Aljohari c39129f75b Add Weather module with controller, service, and DTO for fetching weather details 2025-06-03 02:38:44 -06:00
faris Aljohari 0fe6c80731 Add utility function to associate space UUID with devices in community and device services 2025-06-01 21:56:08 -06:00
faris Aljohari 81e017430e Merge pull request #392 from SyncrowIOT/temp-product-relation-fixes
Remove unique constraint on subspace and product in SubspaceProductAllocationEntity; update product relation to nullable in NewTagEntity
2025-06-02 06:20:03 +03:00
faris Aljohari 191d0dfaf6 Remove unique constraint on subspace and product in SubspaceProductAllocationEntity; update product relation to nullable in NewTagEntity 2025-06-01 21:16:51 -06:00
faris Aljohari 180d16eeb1 feat: add occupancy duration data retrieval and update procedures 2025-05-18 17:40:41 +03:00
faris Aljohari 8750da7e62 feat: optimize getAllDevicesByCommunity to prevent duplicate space processing 2025-05-15 10:09:29 +03:00
faris Aljohari e253d1ca03 refactor: optimize device retrieval by avoiding duplicate space visits in getAllDevicesByCommunity 2025-05-15 10:08:02 +03:00
faris Aljohari 67331aa92a feat: update DEVICE_SPACE_COMMUNITY route and add validation for spaceUuid and communityUuid in DTO 2025-05-14 13:00:09 +03:00
faris Aljohari 4aa3d04478 feat: update device and space services to use productType instead of deviceType and add query support for device retrieval by product type 2025-05-13 03:19:21 +03:00
faris Aljohari 799fcb6fb9 feat: add DEVICE_SPACE_COMMUNITY route and controller for device retrieval by space or community 2025-05-13 03:06:43 +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 fb5084ba3a feat: add groupByDevice option to GetPowerClampBySpaceDto and update service logic 2025-05-11 01:59:26 +03:00
faris Aljohari 8030644fee refactor: rename presence sensor entities and update related references 2025-05-09 13:11:14 +03:00
faris Aljohari 85602fa952 check deployment 2025-05-08 13:15:31 +03:00
faris Aljohari 45b8cdcaae Add endpoints and logic for fetching power clamp data by community or space
- Introduced new API endpoints to retrieve power clamp historical data based on community or space UUID.
- Updated PowerClampController to handle requests with optional parameters for community and space.
- Enhanced PowerClampService to validate input and fetch devices accordingly.
- Created ResourceParamsDto to manage request parameters.
- Updated ControllerRoute with new action summaries and descriptions.
2025-05-07 23:09:01 +03:00
faris Aljohari 91abfb41ab Implement month-based date formatting and filtering in PowerClamp service 2025-05-07 12:17:17 +03:00
faris Aljohari d40fb7a762 Merge branch 'dev' into SP-1551-be-implement-total-energy-consumption-api-for-analytics-dashboard 2025-05-07 10:59:42 +03:00
faris Aljohari d197bf2bb4 feat: implement date formatting function and enhance PowerClampService with space-based data retrieval 2025-05-04 22:28:38 +03:00
faris Aljohari 2a1f1f52f6 feat: add presence sensor module with entity, DTO, and repository 2025-05-04 19:11:14 +03:00
faris Aljohari 0fcd974af2 refactor: update winston logger configuration for environment-based logging 2025-05-02 02:28:01 +03:00
faris Aljohari aee6b8df69 refactor: update procedure names in PowerClampService for clarity 2025-05-02 01:57:12 +03:00
faris Aljohari 13e3f3e213 Merge branch 'dev' 2025-04-29 09:58:05 +03:00
faris Aljohari 8040594dc6 refactor: enhance PowerClampController with additional ApiParam for powerClampUuid 2025-04-28 10:18:07 +03:00
faris Aljohari 588d4cb98e refactor: update PowerClampController and service to use PowerClampParamsDto for parameter handling 2025-04-28 01:37:04 +03:00
faris Aljohari 72e65882b1 feat: update PowerClamp routes to support historical data retrieval 2025-04-24 15:08:54 +03:00
faris Aljohari 1bdb13846f Merge branch 'dev' into SP-1355-powr-clap-historical-data 2025-04-24 15:04:11 +03:00
faris Aljohari 0ee26698ff feat: enhance PowerClamp service and controller to support filtering by date, month, and year 2025-04-24 12:46:24 +03:00
faris Aljohari 45eec4bb30 Merge branch 'dev' into fix-add-device-issue 2025-04-24 11:08:38 +03:00
faris Aljohari 51bf4c0170 fix: update connection timeout value in database module 2025-04-24 11:06:47 +03:00
faris Aljohari fa3f49af18 fix: handle potential undefined deviceDetails in getDeviceByDeviceUuid 2025-04-24 11:06:41 +03:00
faris Aljohari 881618a4ee feat: enhance PowerClamp service with energy consumption procedures and enums 2025-04-24 03:14:03 +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 3c5b97f2f9 feat: add SQL procedures for daily, hourly, and monthly energy consumption data 2025-04-24 02:22:13 +03:00