32 lines
487 B
TypeScript
32 lines
487 B
TypeScript
import { IsNotEmpty, IsOptional } from 'class-validator';
|
|
import { AssetType } from '../entities/asset.entity';
|
|
|
|
export class CreateAssetDto {
|
|
@IsNotEmpty()
|
|
deviceAssetId: string;
|
|
|
|
@IsNotEmpty()
|
|
deviceId: string;
|
|
|
|
@IsNotEmpty()
|
|
assetType: AssetType;
|
|
|
|
@IsNotEmpty()
|
|
createdAt: string;
|
|
|
|
@IsNotEmpty()
|
|
modifiedAt: string;
|
|
|
|
@IsNotEmpty()
|
|
isFavorite: boolean;
|
|
|
|
@IsNotEmpty()
|
|
fileExtension: string;
|
|
|
|
@IsOptional()
|
|
lat: string;
|
|
|
|
@IsOptional()
|
|
lon: string;
|
|
}
|