Commit Graph
80 Commits
Author SHA1 Message Date
faris Aljohari 35b41e1be1 Add UserSpaceEntity to database module imports 2024-04-16 11:11:47 +03:00
faris Aljohari 6673bcd913 Add UserSpaceEntity relation to SpaceEntity and UserEntity 2024-04-16 11:11:36 +03:00
faris Aljohari 9837227fc5 Add user space DTO, entity, repository, and module 2024-04-16 11:11:18 +03:00
faris Aljohari 99aca8cf01 Refactor middleware to guards for type checking 2024-04-14 13:13:56 +03:00
faris Aljohari d92ae03eac Refactor error handling in controllers and services 2024-04-14 11:28:52 +03:00
faris Aljohari 53628236a6 Add endpoint to rename room by UUID 2024-04-14 10:57:13 +03:00
faris Aljohari bf60303ddc Add endpoint to rename unit by UUID 2024-04-14 10:47:54 +03:00
faris Aljohari 8dca50b24d Add endpoint to rename floor by UUID 2024-04-14 10:40:03 +03:00
faris Aljohari a9be4d315a Add endpoint to rename building by UUID 2024-04-14 10:31:49 +03:00
faris Aljohari 42a4d0cc11 Add endpoint to rename community by UUID 2024-04-14 10:17:11 +03:00
faris Aljohari dffe347adf Add CheckUnitTypeMiddleware and update room module 2024-04-14 08:54:44 +03:00
faris Aljohari 4401b4358c Refactor filtering logic in UnitService 2024-04-13 18:07:54 +03:00
faris Aljohari c0e84d80d4 Add unit module with controller, service, dtos, and middleware 2024-04-13 17:55:28 +03:00
faris Aljohari 120939b470 Refactor middleware function names for clarity 2024-04-13 17:25:48 +03:00
faris Aljohari 9e3544756e Refactor filtering logic in FloorService 2024-04-13 17:23:56 +03:00
faris Aljohari d5f396e4f5 Add floor module with controller, service, DTOs, and interfaces 2024-04-13 17:20:20 +03:00
faris Aljohari 9b837bd15a Refactor buildHierarchy method for improved performance 2024-04-03 15:07:11 +03:00
faris Aljohari 249dd67591 Add totalCount field to CommunityChildInterface 2024-04-03 15:07:00 +03:00
faris Aljohari cb6ec0e278 Add BuildingModule to imports in app.module.ts 2024-04-03 14:55:50 +03:00
faris Aljohari 033e09a44e Add BuildingModule and CheckCommunityTypeMiddleware 2024-04-03 14:55:08 +03:00
faris Aljohari 526bf4b661 Add building service and check building middleware 2024-04-03 14:52:30 +03:00
faris Aljohari 296457310a Add building interfaces for parent and child relationships 2024-04-03 14:52:07 +03:00
faris Aljohari 6fedcb6c3b Add building and get building DTOs 2024-04-03 14:51:53 +03:00
faris Aljohari 499603f3c0 Add BuildingController with CRUD operations 2024-04-03 14:51:40 +03:00
faris Aljohari 7cf26f3146 Update property name to communityName 2024-04-02 18:12:48 +03:00
faris Aljohari 72756e4e08 Add endpoint to get community child by UUID 2024-04-02 17:31:20 +03:00
faris Aljohari ca5d67e291 Refactor community service to include child hierarchy retrieval 2024-04-02 17:30:54 +03:00
faris Aljohari 893667c1b5 Update global validation pipe configuration 2024-04-02 17:30:40 +03:00
faris Aljohari 8a759aca35 Refactor GetCommunityByUuidInterface 2024-04-02 17:30:31 +03:00
faris Aljohari dcbeb92ce6 Refactor class-validator imports in community DTOs 2024-04-02 17:30:11 +03:00
faris Aljohari 4a033107da Add SpaceEntity and SpaceTypeEntity to database module 2024-04-02 17:29:33 +03:00
faris Aljohari badda01a05 Add SpaceTypeRepository to CommunityModule imports 2024-04-02 11:30:44 +03:00
faris Aljohari ae8d909268 Add endpoint to get community by UUID 2024-04-01 00:04:38 +03:00
faris Aljohari d765d090ea Refactor CommunityService constructor for simplicity and readability 2024-03-31 22:39:26 +03:00
faris Aljohari be880e47e7 Add CommunityModule to app.module.ts 2024-03-31 22:31:49 +03:00
faris Aljohari 85f6dce85f Add CommunityService implementation 2024-03-31 22:30:51 +03:00
faris Aljohari 9654d58ea0 Add AddCommunityDto class with properties 2024-03-31 22:30:05 +03:00
faris Aljohari 75197664fd Add CommunityController 2024-03-31 22:29:33 +03:00
faris Aljohari 4092c67f89 make spaceType nullable false 2024-03-31 22:28:51 +03:00
faris Aljohari 861aa788ae Add space type DTO, entity, repository, and module 2024-03-31 13:36:19 +03:00
faris Aljohari 93e8aabc4d Add space DTO, entity, repository, and module 2024-03-31 13:35:49 +03:00
faris Aljohari da634167d0 fix build issue 2024-03-31 12:20:00 +03:00
faris Aljohari e26c0475a3 Remove commented out code 2024-03-25 14:37:48 +03:00
faris Aljohari 46e7fc4260 Refactor getDevicesInstructionStatus method for improved readability 2024-03-25 14:36:31 +03:00
faris Aljohari 6c02f60f28 Refactor device interfaces to use interfaces instead of classes 2024-03-25 14:36:11 +03:00
faris Aljohari a289b1645c Refactor device controller method names 2024-03-25 14:28:13 +03:00
faris Aljohari fba0063268 Refactor device service methods for better error handling and readability 2024-03-25 14:27:50 +03:00
faris Aljohari ca86e07981 Update GetDeviceDetailsInterface and add new interfaces 2024-03-25 14:27:31 +03:00
faris Aljohari fc387703ea Add camelCaseConverter helper function 2024-03-25 14:27:01 +03:00
faris Aljohari 2d6ce1842b Add ProductEntity to entities list in database module 2024-03-25 13:37:05 +03:00
faris Aljohari 37aa519107 Add ProductRepository to DeviceModule imports and providers 2024-03-25 13:36:45 +03:00
faris Aljohari 37316fd9e6 Refactor OTP deletion in UserAuthService 2024-03-25 13:36:34 +03:00
faris Aljohari 2cf45b1703 Refactor primary key generation in AbstractEntity 2024-03-25 13:36:14 +03:00
faris Aljohari 22bcd37de7 Add product DTO, entity, repository, and module 2024-03-25 13:36:00 +03:00
faris Aljohari ed210e94c7 fix some issues 2024-03-24 10:51:17 +03:00
faris Aljohari 57fb43f47b Refactor device service to fetch devices by group ID 2024-03-20 13:17:53 +03:00
faris Aljohari a8dc4c28f7 meger branch with dev branch 2024-03-13 14:00:42 +03:00
faris Aljohari 1bd30ebb33 finshed device endpoint 2024-03-13 13:57:04 +03:00
faris Aljohari 5f18d1f4d5 finshed get devices by room id 2024-03-13 11:17:22 +03:00
faris Aljohari e011949bda finshed get home by id api 2024-03-12 15:40:16 +03:00
faris Aljohari dc51cbb5ef finshed get room by id api 2024-03-12 15:29:25 +03:00
faris Aljohari db7802776a add get group by id api 2024-03-12 15:03:06 +03:00
faris Aljohari b5eab2c858 resolve conflict 2024-03-12 14:22:58 +03:00
faris Aljohari 8683725d67 Merge branch 'dev' into create-group-endpoint 2024-03-12 14:22:18 +03:00
faris Aljohari ed301540a7 Merge branch 'dev' into create-group-endpoint 2024-03-12 14:13:29 +03:00
faris Aljohari 4cdba75367 finished delete group api 2024-03-12 14:11:23 +03:00
faris Aljohari 1f5789db1b finished rename group api 2024-03-12 13:49:41 +03:00
faris Aljohari db22ceba17 remove comments 2024-03-12 13:36:38 +03:00
faris Aljohari 70020171c5 finished control group api 2024-03-12 13:36:11 +03:00
faris Aljohari f0c65f63d6 Merge branch 'dev' into create-group-endpoint 2024-03-12 12:56:24 +03:00
faris Aljohari 1cf345d28d finished groups endpoint 2024-03-12 12:56:14 +03:00
faris Aljohari dce87ac2b6 Merge pull request #9 from SyncrowIOT/create-home-endpoint
Create home endpoint
2024-03-12 12:38:20 +03:00
faris Aljohari e522a3a207 finished get rooms api 2024-03-11 11:40:24 +03:00
faris Aljohari 73916400ac Merge branch 'create-home-endpoint' into create-room-endpoint 2024-03-11 10:35:37 +03:00
faris Aljohari 65ff07b0e6 fix some issues 2024-03-11 10:34:03 +03:00
faris Aljohari b2e835c805 finished add room api 2024-03-11 10:31:47 +03:00
faris Aljohari 35feab71bb finshed homes endpoint 2024-03-11 09:26:22 +03:00
faris Aljohari 63411cada4 create get and post home api 2024-03-10 22:43:02 +03:00
faris Aljohari a553481c9a create home entity 2024-03-10 21:07:13 +03:00
faris Aljohari c5537b3230 convert project from microservices to rest apis 2024-03-10 12:49:51 +03:00