File

src/settings/dto/settings.dto.ts

Index

Properties

Properties

cdConfiguracao
Type : number
Decorators :
@ApiProperty()
cdIntermediario
Type : number
Decorators :
@ApiProperty()
createdAt
Type : Date
Decorators :
@ApiProperty()
updatedAt
Type : Date
Decorators :
@ApiProperty()
import { ApiProperty } from "@nestjs/swagger";

export class SettingsResultDto {
  @ApiProperty()
  cdConfiguracao: number;
  @ApiProperty()
  tpConfiguracao: number;
  @ApiProperty()
  cdPessoa: number;
  @ApiProperty()
  hmsdb: string;
  @ApiProperty()
  nmConfiguracao: string;
  @ApiProperty()
  warehouseLocation: string;
  @ApiProperty()
  workloadId: string;
  @ApiProperty()
  createdAt: Date;
  @ApiProperty()
  updatedAt: Date;
  @ApiProperty()
  cdUsuario: number;
  @ApiProperty()
  ambiente: string;
  @ApiProperty()
  dtCriacaoAmbiente: Date;
}

export class CreateSettingsBody {
  @ApiProperty({ enum: [1, 2] })
  type: number
  @ApiProperty()
  clientId: number
  @ApiProperty({ maxLength: 10 })
  name: string
  @ApiProperty({ maxLength: 30 })
  hmsdb: string
  @ApiProperty({ maxLength: 255 })
  warehouseLocation: string
}

export class UpdateSettingsBody {
  @ApiProperty({ enum: [1, 2] })
  type: number
  @ApiProperty()
  cdConfiguracao: number
  @ApiProperty()
  workloadId: string
  @ApiProperty()
  ambiente: string
  @ApiProperty({ maxLength: 10 })
  name: string
  @ApiProperty({ maxLength: 30 })
  hmsdb: string
  @ApiProperty({ maxLength: 255 })
  warehouseLocation: string
}

export class ListSuppliers {
  @ApiProperty()
  cdConfiguracao: number;
  @ApiProperty()
  cdFornecedor: number;
  @ApiProperty()
  createdAt: Date;
  @ApiProperty()
  updatedAt: Date;
}

export class ListDistributors {
  @ApiProperty()
  cdConfiguracao: number;
  @ApiProperty()
  cdIntermediario: number;
  @ApiProperty()
  createdAt: Date;
  @ApiProperty()
  updatedAt: Date;
}

results matching ""

    No results matching ""