File

src/application/dto/application.dto.ts

Index

Properties

Properties

objectNameMinio
Type : string
Decorators :
@ApiProperty({example: 'e1840669c9d1037ec55cafb5e27941d4'})
translations
Type : ApplicationTranslation[]
Decorators :
@ApiProperty({example: undefined})
type
Type : ApplicationType
Decorators :
@ApiProperty({enum: ApplicationType, enumName: 'type', example: undefined})
url
Type : string
Decorators :
@ApiProperty({example: 'http://localhost:3000'})
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;
}

results matching ""

    No results matching ""