Commit Graph
142 Commits
Author SHA1 Message Date
ZaydSkaff 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
ZaydSkaff 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
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 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 f3fd6646a1 feat: add SqlLoaderService to multiple modules for improved SQL data handling 2025-04-24 02:31:35 +03:00
faris Aljohari 7f43ef5de5 feat: integrate PowerClamp service and repositories across multiple modules 2025-04-24 02:14:58 +03:00
faris Aljohari 9902b02700 finished return the spaces in get community 2025-03-18 01:52:01 +03:00
hannathkadher 8b3232b2f4 length checking 2025-03-13 13:39:26 +04:00
hannathkadher 8cbbb3a8ba updated space product model allocation 2025-03-12 23:08:18 +04:00
hannathkadher 537f20f8de propagate subspace allocations 2025-03-12 21:57:08 +04:00
hannathkadher 1ce2f3c3cc fix issues 2025-03-12 01:36:10 +04:00
hannathkadher 67a78dbdfd error 2025-03-11 22:31:14 +04:00
hannathkadher 5c47a3195f fixed delete propagation 2025-03-11 22:29:01 +04:00
hannathkadher 7fae1bf407 fix the issue in unliking 2025-03-11 15:45:21 +04:00
hannathkadher f9f9592603 fix duplication 2025-03-11 13:43:23 +04:00
hannathkadher 64f83cbda2 fix typo 2025-03-11 12:47:50 +04:00
hannathkadher eb42948d8e removed log 2025-03-11 12:34:53 +04:00
hannathkadher 3367ca8fab Merge branch 'dev' of https://github.com/SyncrowIOT/backend into bugix/delete-subspace 2025-03-11 01:25:31 +04:00
hannathkadher 9122137922 fixed delete subspace model propagation 2025-03-11 01:25:27 +04:00
hannathkadher a8fbf2b510 fixed issue in create space with space model 2025-03-10 15:52:11 +04:00
hannathkadher aa609266c7 propagate 2025-03-10 15:13:04 +04:00
hannathkadher 5e9de023ac update add handler 2025-03-10 12:07:57 +04:00
hannathkadher d1a976d152 removed old tags 2025-03-10 10:57:27 +04:00
hannathkadher 3bbc39734b Merge branch 'dev' of https://github.com/SyncrowIOT/backend into feat/fix-propagation 2025-03-10 05:58:50 +04:00
hannathkadher 63f1f7a7c0 fixed get spaces 2025-03-09 14:03:59 +04:00
hannathkadher 36612a40b9 fix propagation 2025-03-09 13:56:06 +04:00
hannathkadher 1220ee395d fixing propagation 2025-03-07 23:01:38 +04:00
hannathkadher 76d29bab16 fixed unlinking space model on delete 2025-03-07 12:02:13 +04:00
hannathkadher d64e78f03e fixed overwriting 2025-03-07 00:54:13 +04:00
hannathkadher 61fc699cf8 fix issue on deleting subspace 2025-03-06 22:51:19 +04:00
hannathkadher a68f4c1847 fixed allocating tag from subspace to space 2025-03-06 20:54:51 +04:00
hannathkadher 1f18f50923 adding tag in space model will add tag to spaces 2025-03-06 15:49:14 +04: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
hannathkadher d0d1dd615a fixed issue in subspace allocation 2025-03-06 13:09:04 +04:00
faris Aljohari 61692c70d1 add overwrite when update spaces with spacesModel 2025-03-06 11:13:14 +03:00
hannathkadher 07828eafd7 fix issues in deleting from space model product allocation and space product allocation 2025-03-06 11:01:08 +04:00
hannathkadher 6805ff226c added proper validations 2025-03-06 09:35:25 +04:00
faris Aljohari 6864e000b8 add space linking when create or update space 2025-03-06 02:33:48 +03:00
hannathkadher 823cb6cf7a no need to do anything if delete dto is empty 2025-03-05 23:57:38 +04:00
hannathkadher 547e37dadb fix delete dto 2025-03-05 23:54:41 +04:00
hannathkadher 1caecfe6d9 removed the validation for space model subspaces and allocations 2025-03-04 12:48:21 +04:00
hannathkadher 553cdb28bf prettify 2025-03-04 00:45:53 +04:00
hannathkadher 34f4b61ae0 changed description of controller 2025-03-04 00:45:42 +04:00
hannathkadher d059171b72 fixed issues in create space model 2025-03-04 00:44:22 +04:00
hannathkadher e17a3fdda8 Merge pull request #273 from SyncrowIOT/feat/project-tag
New tag entitiy
2025-03-02 00:25:55 +04:00
hannathkadher e9cda53636 Merge branch 'dev' into feat/project-tag 2025-03-02 00:22:28 +04:00
hannathkadher 9250b08b17 Merge branch 'feat/project-tag' of https://github.com/SyncrowIOT/backend into SP-1079-BE-Implement-API-for-linking-space-model-to-space 2025-03-02 00:08:32 +04:00
hannathkadher 1d71be4b06 added linking 2025-03-02 00:08:28 +04: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