import { Exclude } from 'class-transformer'; import { ApiProperty } from '@nestjs/swagger'; export class SensorDto { @ApiProperty() id: number; @ApiProperty() name: string; @ApiProperty() comment?: string; @ApiProperty() type: 'graph' | 'state'; @ApiProperty() um: string; @ApiProperty() isKeyParameter: boolean; @Exclude() createdAt: Date; @Exclude() updatedAt: Date; @Exclude() deletedAt: Date; @Exclude() version: number; }