create-exif.dto.ts 669 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { IsNotEmpty, IsOptional } from 'class-validator';
  2. export class CreateExifDto {
  3. @IsNotEmpty()
  4. assetId: string;
  5. @IsOptional()
  6. make: string;
  7. @IsOptional()
  8. model: string;
  9. @IsOptional()
  10. imageName: string;
  11. @IsOptional()
  12. exifImageWidth: number;
  13. @IsOptional()
  14. exifImageHeight: number;
  15. @IsOptional()
  16. fileSizeInByte: number;
  17. @IsOptional()
  18. orientation: string;
  19. @IsOptional()
  20. dateTimeOriginal: Date;
  21. @IsOptional()
  22. modifiedDate: Date;
  23. @IsOptional()
  24. lensModel: string;
  25. @IsOptional()
  26. fNumber: number;
  27. @IsOptional()
  28. focalLenght: number;
  29. @IsOptional()
  30. iso: number;
  31. @IsOptional()
  32. exposureTime: number;
  33. }