57 lines
911 B
TypeScript
57 lines
911 B
TypeScript
|
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||
|
|
import { IsOptional, IsString } from 'class-validator'
|
||
|
|
|
||
|
|
export class CreateConfigDto {
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
app_version: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
build_number: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
uuid: string
|
||
|
|
|
||
|
|
@ApiProperty({ required: false })
|
||
|
|
@IsString()
|
||
|
|
@IsOptional()
|
||
|
|
fcm_token?: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
platform: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
brand: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
model: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
device: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
os_version: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
sdk_version: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
release_number: string
|
||
|
|
|
||
|
|
@ApiProperty({ required: false })
|
||
|
|
@IsString()
|
||
|
|
@IsOptional()
|
||
|
|
browser_name: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export class UpdateConfigDto extends PartialType(CreateConfigDto) {}
|