feat: update device and space services to use productType instead of deviceType and add query support for device retrieval by product type

This commit is contained in:
faris Aljohari
2025-05-13 03:19:21 +03:00
parent 799fcb6fb9
commit 4aa3d04478
5 changed files with 44 additions and 9 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export class GetDevicesBySpaceOrCommunityDto {
})
@IsString()
@IsNotEmpty()
public deviceType: string;
public productType: string;
@IsUUID('4', { message: 'Invalid space UUID format' })
@IsOptional()
spaceUuid?: string;