| 1 | import { ApiProperty } from '@nestjs/swagger'; |
| 2 | import { IsInt, IsOptional |
| 3 | |
| 4 | export class StorageUsageDTO |
| 5 | @ApiProperty({ description |
| 6 | @IsInt() |
| 7 | usedBytes: number; |
| 8 | |
| 9 | @ApiProperty({ |
| 10 | type: Number, |
| 11 | nullable: true, |
| 12 | description: '`null` when this instance sets no quota.', |
| 13 | }) |
| 14 | @IsInt() |
| 15 | @IsOptional() |
| 16 | quotaBytes: number |
| 17 | |
| 18 | @ApiProperty({ description |
| 19 | @IsInt() |
| 20 | maxAssetBytes: number; |
| 21 | } |