Commit Graph
100 Commits
Author SHA1 Message Date
faris Aljohari 2b449e61ea add OTP email sending functionality and integrate with user authentication flow 2025-04-20 22:19:08 +03:00
faris Aljohari 1e6503c072 Merge pull request #337 from SyncrowIOT/SP-1346-be-sos-button-real-time-sync-issue 2025-04-18 09:21:24 +03:00
faris Aljohari d341c47286 add SosHandlerService and integrate SOS handling in TuyaWebSocketService 2025-04-17 16:58:34 +03:00
faris Aljohari 32112930c8 Implement product creation functionality with DTO and permissions 2025-04-15 13:26:56 +03:00
faris Aljohari 30dd8318e3 Add SQL queries for hourly energy consumption tracking and refactor daily energy consumed query 2025-04-15 12:20:37 +03:00
faris Aljohari f723b63a91 Merge branch 'dev' into fix-some-issues-wehn-add-new-device 2025-04-14 14:26:13 +03:00
faris Aljohari 7be4e4eeef Refactor SQL queries for device presence detection: rename missing_date to date, enhance motion detection logic, and update aggregation for total presence counts. 2025-04-14 14:17:48 +03:00
faris Aljohari f71279ea30 Fix SQL query in getPowerClampData method to use 'fact_daily_energy_consumed' 2025-04-14 13:47:40 +03:00
faris Aljohari 303ea696cb Add SQL queries for device logs, energy consumption, presence detection, and product category definitions 2025-04-14 13:47:32 +03:00
faris Aljohari 777105fc28 refactor: improve error handling for missing space in device listing 2025-04-14 13:24:40 +03:00
faris Aljohari 3745962827 Add PowerClamp module with controller and service for energy data retrieval 2025-04-14 12:17:44 +03:00
faris Aljohari a3001c8bb8 feat: add DEVICE_ADD permission and update device handling logic 2025-04-13 20:19:21 +03:00
faris Aljohari 22d98fa177 feat: add user UUID to project creation and validate user existence 2025-04-03 12:27:36 +03:00
faris Aljohari c7fc4e3a5d refactor: enhance TuyaWebSocketService to handle environment-specific message extraction 2025-03-28 03:34:30 +03:00
faris Aljohari cf8cf08bdc add client relation btw user and client 2025-03-27 01:55:26 +03:00
faris Aljohari cbd3f5028b finished client endpoints 2025-03-27 01:28:40 +03:00
faris Aljohari cd05c9906d convert the api from post to put 2025-03-25 10:25:13 +03:00
faris Aljohari ef9cf6ad28 convert the route to devices 2025-03-25 10:24:52 +03:00
faris Aljohari c5dac6c564 add register client api 2025-03-25 10:10:08 +03:00
faris Aljohari a4b743eb58 add client entity 2025-03-25 02:29:00 +03:00
faris Aljohari 6785fb2b1e finished refactor vistitor password device 2025-03-24 03:28:26 +03:00
faris Aljohari 8efd8cfba2 finished refactor devices module 2025-03-24 02:32:44 +03:00
faris Aljohari 2712ce673a Merge pull request #322 from SyncrowIOT/edit-visitor-passwords-route
finished edit visitor passwords route
2025-03-21 09:57:24 +03:00
faris Aljohari 794e12d5d3 finished edit visitor passwords route 2025-03-21 09:56:13 +03:00
faris Aljohari fb2e0c6cba Merge pull request #321 from SyncrowIOT/add-community-in-get-scenes-and-automation
finished add community data in scene and automation
2025-03-21 09:46:02 +03:00
faris Aljohari 338b73ac7a Merge pull request #320 from SyncrowIOT/SP-1309-be-create-custom-nestjs-guard-for-project-validation-and-SP-1242
Sp 1309 be create custom nestjs guard for project validation and sp 1242
2025-03-21 09:45:35 +03:00
faris Aljohari d09bdd1f6e finished add community data in scene and automation 2025-03-20 11:12:37 +03:00
faris Aljohari dd1229db9c add password as optional 2025-03-20 10:50:35 +03:00
faris Aljohari 9bc763bad3 refactor visitor passwords apis 2025-03-20 09:42:54 +03:00
faris Aljohari b5469cb316 add project in the token 2025-03-20 09:42:28 +03:00
faris Aljohari 670c026cfd Merge pull request #317 from SyncrowIOT/SP-1331-be-return-space-name-in-get-scene-and-get-automation-by-space-apis
SP-1331-be-return-space-name-in-get-scene-and-get-automation-by-space-apis
2025-03-19 11:05:53 +03:00
faris Aljohari 611cee79b3 Merge pull request #318 from SyncrowIOT/SP-1332-be-return-the-last-three-parent-for-spaces-that-have-devices
finished return the last three parents
2025-03-19 11:04:43 +03:00
faris Aljohari 1a313c103d finished return the last three parents 2025-03-19 00:50:24 +03:00
faris Aljohari 770d08ce08 add space name to get scenes endpoint 2025-03-18 13:35:49 +03:00
faris Aljohari 770ece21b3 add space name to get automations endpoint 2025-03-18 13:35:09 +03:00
faris Aljohari ec851eda9d Merge pull request #316 from SyncrowIOT/SP-1321-be-return-the-spaces-in-get-communities-by-project-api
finished return the spaces in get community
2025-03-18 10:18:37 +03:00
faris Aljohari 39ac2e6860 add includeSpaces in the query param 2025-03-18 10:17:29 +03:00
faris Aljohari 9902b02700 finished return the spaces in get community 2025-03-18 01:52:01 +03:00
faris Aljohari b6fa37b1a3 Merge pull request #304 from SyncrowIOT/fix-assign-device-to-room
fix tag relation in device entity
2025-03-11 20:04:40 +03:00
faris Aljohari 5204cd5504 fix tag relation in device entity 2025-03-11 20:03:30 +03:00
faris Aljohari fa009d6f6e Merge pull request #303 from SyncrowIOT/fix-relation-tags-issue
fix relation tags issue
2025-03-11 15:15:40 +03:00
faris Aljohari 9f83b4286c fix relation tags issue 2025-03-11 15:14:59 +03:00
faris Aljohari c62c952544 Merge pull request #300 from SyncrowIOT/fix-get-spaces-hierarchy-issue
remove duplicate issue
2025-03-11 12:20:52 +03:00
faris Aljohari f9878ff272 remove duplicate issue 2025-03-11 12:19:26 +03:00
faris Aljohari 7dc2a8d0c9 Merge pull request #297 from SyncrowIOT/fix-get-spaces-issue
return tags name
2025-03-10 15:41:43 +03:00
faris Aljohari 7e513f0d31 return tags name 2025-03-10 15:40:58 +03:00
faris Aljohari f6d47d0e39 Merge branch 'dev' of https://github.com/SyncrowIOT/backend into dev 2025-03-10 11:24:23 +03:00
faris Aljohari ea09f633ee remove tags relation from device table 2025-03-10 11:23:51 +03:00
faris Aljohari c8d72a90b6 remove old tag flow 2025-03-10 10:42:00 +03:00
faris Aljohari dd56300b96 fix delete space and sub space 2025-03-07 03:16:24 +03:00
faris Aljohari f7848a7394 finished edit the response 2025-03-06 13:03:56 +03:00
faris Aljohari 5e6c7bef9e Merge pull request #280 from SyncrowIOT/SP-1078-be-implement-api-to-assign-a-space-model-or-reassign-it-to-a-space
add space linking when create or update space
2025-03-06 12:33:31 +03:00
faris Aljohari 61692c70d1 add overwrite when update spaces with spacesModel 2025-03-06 11:13:14 +03:00
faris Aljohari 6864e000b8 add space linking when create or update space 2025-03-06 02:33:48 +03:00
faris Aljohari 4e43954175 clear subspace tags allocation 2025-03-03 21:06:22 +03:00
faris Aljohari 2b6f6be149 clear space tags allocation 2025-03-03 21:05:54 +03:00
faris Aljohari 5d5984da80 Merge pull request #276 from SyncrowIOT/tags-dto-error
fix ProcessTagDto dto issues
2025-03-03 10:08:38 +03:00
faris Aljohari 95ecbab165 fix ProcessTagDto dto issues 2025-03-03 10:05:11 +03:00
faris Aljohari 221a2af32b using new tags relation with space 2025-03-03 00:23:55 +03:00
faris Aljohari 8a5709b1c9 finished spaces validation endpoint 2025-03-02 22:48:02 +03:00
faris Aljohari a9e5454b61 Add space product 2025-02-27 13:36:28 +03:00
faris Aljohari 902ddbab50 update space service 2025-02-27 13:36:08 +03:00
faris Aljohari 419a10e055 Merge pull request #270 from SyncrowIOT/SP-1229-be-return-community-id-with-each-space-in-the-user-management 2025-02-26 16:25:49 +03:00
faris Aljohari e3e2981673 Include community details in user spaces response 2025-02-26 16:19:55 +03:00
faris Aljohari 2bdc406cf7 Merge pull request #265 from SyncrowIOT/fix-firebase-real-time-issue
change set to transaction
2025-02-25 15:37:02 +03:00
faris Aljohari 630b3ee2b9 change set to transaction 2025-02-25 15:33:04 +03:00
faris Aljohari 19ef10aa87 Merge pull request #259 from SyncrowIOT/add-space-name-to-door-lock-devices
Add space device relation and space name to device details
2025-02-17 02:18:18 -06:00
faris Aljohari 733ccee88d Add space device relation and space name to device details 2025-02-17 02:13:28 -06:00
faris Aljohari afec306681 Merge pull request #258 from SyncrowIOT/fix-get-device-by-project
Add project UUID filter to device query in DeviceService
2025-02-17 01:16:36 -06:00
faris Aljohari 6fbeef97df Add project UUID filter to device query in DeviceService 2025-02-17 01:15:48 -06:00
faris Aljohari b2b8d02400 Merge pull request #255 from SyncrowIOT/return-project-uuid-in-user-details
Include project relation in user retrieval
2025-02-13 05:59:32 -06:00
faris Aljohari b793597711 Include project relation in user retrieval 2025-02-13 05:53:48 -06:00
faris Aljohari 7546dbbf35 Add Tag Module with CRUD operations 2025-02-12 00:42:47 -06:00
faris Aljohari f9869e86c9 Merge branch 'dev' 2025-02-05 08:24:25 -06:00
faris Aljohari 533282deba Merge pull request #251 from SyncrowIOT/fix-signup-issue-
Fix user sign-up logic to correctly handle inactive users
2025-02-05 08:20:51 -06:00
faris Aljohari f97b02fdfa Fix user sign-up logic to correctly handle inactive users 2025-02-05 08:09:21 -06:00
faris Aljohari 74c8c0b64b Merge branch 'dev' 2025-02-05 06:33:59 -06:00
faris Aljohari 9d72ad3717 Merge pull request #247 from SyncrowIOT/fix-delted-user-error
Refactor user and invited user validation in InviteUserService
2025-02-04 07:40:31 -06:00
faris Aljohari a3dbf6697c Merge branch 'dev' into fix-delted-user-errorn 2025-02-04 07:40:11 -06:00
faris Aljohari 5ccac95ee1 Refactor user and invited user validation in InviteUserService 2025-02-04 07:38:00 -06:00
faris Aljohari 35aaa06551 Merge pull request #246 from SyncrowIOT/fix-null-user-issue
Add optional chaining to user and invitedUser checks
2025-02-04 07:25:15 -06:00
faris Aljohari b02b4c049c Add optional chaining to user and invitedUser checks 2025-02-04 07:24:47 -06:00
faris Aljohari 33d7d60755 Merge pull request #243 from SyncrowIOT/check-if-user-deleted-validation 2025-02-04 03:08:30 -06:00
faris Aljohari 8193014692 Merge pull request #244 from SyncrowIOT/fix-space-owner-permissions
Add missing permissions for SPACE_OWNER role
2025-02-04 02:16:42 -06:00
faris Aljohari c9f2da1b57 Add missing permissions for SPACE_OWNER role 2025-02-04 02:14:27 -06:00
faris Aljohari a92497603f Check user active status before sign-up and invite 2025-02-04 01:56:56 -06:00
faris Aljohari 8461d0fc87 Merge pull request #242 from SyncrowIOT/fix-update-invted-user-role
Update user role in repository when inviting user
2025-02-04 01:27:51 -06:00
faris Aljohari 6e942109fa Update user role in repository when inviting user 2025-02-04 01:11:10 -06:00
faris Aljohari 5d83555a99 Merge pull request #241 from SyncrowIOT/fix-trigger-automation
Update permission requirement for automation status update
2025-02-04 00:55:30 -06:00
faris Aljohari ed6662a08a Update permission requirement for automation status update 2025-02-04 00:52:43 -06:00
faris Aljohari 9dcb68da2d Add function to remove circular references and use it in SpaceService 2025-02-03 07:38:19 -06:00
faris Aljohari 6a857aac65 Order users by creation date in ascending order 2025-01-30 04:26:39 -06:00
faris Aljohari 0a7c61e1f5 Merge pull request #230 from SyncrowIOT/SP-prevent-the-space-owner-and-space-member-to-have-access-on-the-web-platform
Add platform type to user login and enforce access restrictions
2025-01-29 03:49:18 -06:00
faris Aljohari dc23cce89a Add platform type to user login and enforce access restrictions 2025-01-28 19:41:03 -06:00
faris Aljohari 65eac98270 Merge pull request #229 from SyncrowIOT/SP-1147-be-save-the-automation-in-our-database-to-get-the-automation-by-syncrow-spaces
Sp 1147 be save the automation in our database to get the automation by syncrow spaces
2025-01-28 19:13:01 -06:00
faris Aljohari 2477f4825e Refactor automation and scene fetching to handle errors and improve readability 2025-01-28 19:12:31 -06:00
faris Aljohari 8161e8469b Add new automation actions and repository 2025-01-28 03:43:11 -06:00
faris Aljohari 9a163b0e85 Add Automation Module and Entity 2025-01-28 03:42:52 -06:00
faris Aljohari 666fa67784 return device status for each device 2025-01-27 02:03:35 -06:00
faris Aljohari ec06434191 Add tag and subspace fields to device validation 2025-01-27 02:01:40 -06:00