src/application/dto/application.dto.ts
Properties |
objectNameMinio |
Type : string
|
Decorators :
@ApiProperty({example: 'e1840669c9d1037ec55cafb5e27941d4'})
|
Defined in src/application/dto/application.dto.ts:51
|
translations |
Type : ApplicationTranslation[]
|
Decorators :
@ApiProperty({example: undefined})
|
Defined in src/application/dto/application.dto.ts:48
|
type |
Type : ApplicationType
|
Decorators :
@ApiProperty({enum: ApplicationType, enumName: 'type', example: undefined})
|
Defined in src/application/dto/application.dto.ts:40
|
url |
Type : string
|
Decorators :
@ApiProperty({example: 'http://localhost:3000'})
|
Defined in src/application/dto/application.dto.ts:33
|
import { ApiProperty } from '@nestjs/swagger';
import { ApplicationType } from 'src/entities/application';
import { ApplicationTranslation } from 'src/entities/application-translation';
export class ApplicationCreateDTO {
@ApiProperty({ example: 'http://localhost:3000' })
url: string;
@ApiProperty({
enum: ApplicationType,
enumName: 'type',
example: ApplicationType.WEB,
})
type: ApplicationType;
@ApiProperty({ example: 0 })
exclusiveClientId?: number;
@ApiProperty({
example: [
{ locale: 'pt-BR', name: 'Appteste', description: 'Desc teste' },
{ locale: 'en-US', name: 'Appteste', description: 'Desc teste' },
],
})
translations: ApplicationTranslation[];
@ApiProperty({ example: 'e1840669c9d1037ec55cafb5e27941d4' })
objectNameMinio: string;
}
export class ApplicationUpdateDTO {
@ApiProperty({ example: 'http://localhost:3000' })
url: string;
@ApiProperty({
enum: ApplicationType,
enumName: 'type',
example: ApplicationType.WEB,
})
type: ApplicationType;
@ApiProperty({
example: [
{ locale: 'pt-BR', name: 'Appteste', description: 'Desc teste' },
{ locale: 'en-US', name: 'Appteste', description: 'Desc teste' },
],
})
translations: ApplicationTranslation[];
@ApiProperty({ example: 'e1840669c9d1037ec55cafb5e27941d4' })
objectNameMinio: string;
}