File

src/sales-force-level/dto/sales-force-level.dto.ts

Index

Properties

Properties

color
Type : string
Decorators :
@ApiProperty({example: '#FF0000', required: false})
description
Type : string
Decorators :
@ApiProperty({example: '1233', required: false})
enabled
Type : boolean
Decorators :
@ApiProperty({example: true, required: false})
useChannel
Type : boolean
Decorators :
@ApiProperty({example: true, required: false})
import { ApiProperty } from '@nestjs/swagger';

export class SalesForceLevelDto {
  @ApiProperty({ example: '1233', required: false })
  description: string;
  @ApiProperty({ example: '#FF0000', required: false })
  color: string;
  @ApiProperty({ example:true,required: false })
  enabled: boolean;
  @ApiProperty({ example: true,required: false })
  useChannel: boolean;
//   @ApiProperty({ example: '1' })
//   clientId: number;
}


enum OrderBy {
  description= 'description',
  enabled= 'enabled',
  useChannel = 'useChannel',
  id = 'id',
}
export class QuerySalesForceLevelDto extends SalesForceLevelDto{
  @ApiProperty({ example: '1',required: false })
  clientId: number;

  @ApiProperty({ required: true, example: 'description', enum:OrderBy  })
  orderBy: string;

  @ApiProperty({ required: true, enum: { asc: 'ASC', desc: 'DESC' } })
  sort: 'ASC' | 'DESC';

  @ApiProperty({ required: true, example: 1 })
  pageNumber: number;
  @ApiProperty({ required: true, example: 1 })
  pageRows: number;
}

results matching ""

    No results matching ""