46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
// import { ApiProperty } from "@nestjs/swagger";
|
|
// import { Type } from "class-transformer";
|
|
// import { Allow, IsNotEmpty, IsNumber, IsString } from "class-validator";
|
|
|
|
// export class CreateBankCodeDto {
|
|
// @ApiProperty({
|
|
// example: 1,
|
|
// description: 'Unique ID of a bank-code (auto-generated)',
|
|
// readOnly: true,
|
|
// })
|
|
// @Allow()
|
|
// id: number;
|
|
|
|
// @ApiProperty({
|
|
// example: 'regular, vacation, emergency, sick, parental, etc',
|
|
// description: 'Type of codes',
|
|
// })
|
|
// @IsString()
|
|
// @IsNotEmpty()
|
|
// type: string;
|
|
|
|
// @ApiProperty({
|
|
// example: 'shift, expense, leave',
|
|
// description: 'categorie of the related code',
|
|
// })
|
|
// @IsString()
|
|
// @IsNotEmpty()
|
|
// categorie: string;
|
|
|
|
// @ApiProperty({
|
|
// example: '0, 0.72, 1, 1.5, 2',
|
|
// description: 'modifier number to apply to salary',
|
|
// })
|
|
// @Type(()=> Number)
|
|
// @IsNumber()
|
|
// @IsNotEmpty()
|
|
// modifier: number;
|
|
|
|
// @ApiProperty({
|
|
// example: 'G1, G345, G501, G43, G700',
|
|
// description: 'codes given by the bank',
|
|
// })
|
|
// @IsString()
|
|
// @IsNotEmpty()
|
|
// bank_code: string;
|
|
// }
|