src/users/dto/update-uploads.dto.ts
Properties |
|
| Optional cname |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/users/dto/update-uploads.dto.ts:12
|
| Optional domain |
Type : string
|
Decorators :
@ValidDomain()
|
|
Defined in src/users/dto/update-uploads.dto.ts:16
|
| Optional leaderboardPrivate |
Type : boolean
|
Decorators :
@IsOptional()
|
|
Defined in src/users/dto/update-uploads.dto.ts:22
|
| Optional raw |
Type : boolean
|
Decorators :
@IsOptional()
|
|
Defined in src/users/dto/update-uploads.dto.ts:19
|
import { IsOptional, IsString, MaxLength, IsBoolean } from 'class-validator';
import { IsUrlSafe } from '../../common/decorators/urlsafe.decorator';
import { DisallowedCname } from '../../common/decorators/disallowedcname.decorator';
import { ValidDomain } from '../../common/decorators/validdomain.decorator';
export class UpdateUploadsDto {
@IsOptional()
@IsString()
@IsUrlSafe(false)
@MaxLength(50)
@DisallowedCname()
cname?: string;
@ValidDomain()
@IsOptional()
@IsString()
domain?: string;
@IsOptional()
@IsBoolean()
raw?: boolean;
@IsOptional()
@IsBoolean()
leaderboardPrivate?: boolean;
}