mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
Transfer repository from Gitlab
This commit is contained in:
13
server/src/api-v1/device-info/dto/create-device-info.dto.ts
Normal file
13
server/src/api-v1/device-info/dto/create-device-info.dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { IsNotEmpty, IsOptional } from 'class-validator';
|
||||
import { DeviceType } from '../entities/device-info.entity';
|
||||
|
||||
export class CreateDeviceInfoDto {
|
||||
@IsNotEmpty()
|
||||
deviceId: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
deviceType: DeviceType;
|
||||
|
||||
@IsOptional()
|
||||
isAutoBackup: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user