mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
14 lines
278 B
TypeScript
14 lines
278 B
TypeScript
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;
|
|
}
|