145 lines
2.8 KiB
TypeScript
Raw Normal View History

2025-03-25 17:10:33 +05:30
import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsString } from 'class-validator';
export class InsertNewServiceProviderDTO {
@ApiProperty({ required: true })
@IsString()
p_name: string;
@ApiProperty({ required: true })
@IsString()
p_lookupcode: string;
@ApiProperty({ required: true })
@IsString()
p_address1: string;
@ApiProperty({ required: false })
@IsString()
p_address2: string;
@ApiProperty({ required: true })
@IsString()
p_city: string;
@ApiProperty({ required: true })
@IsString()
p_state: string;
@ApiProperty({ required: true })
@IsString()
p_zip: string;
@ApiProperty({ required: true })
@IsString()
p_country: string;
@ApiProperty({ required: true })
@IsString()
p_issuingregion: string;
@ApiProperty({ required: true })
@IsString()
p_replacementregion: string;
@ApiProperty({ required: true })
@IsString()
p_bondsurety: string;
@ApiProperty({ required: true })
@IsString()
p_cargopolicyno: string;
@ApiProperty({ required: true })
@IsString()
p_cargosurety: string;
@ApiProperty({ required: true })
@IsString()
p_user_id: string;
@ApiProperty({ required: false })
@IsString()
P_NOTES: string;
@ApiProperty({ required: false })
@IsString()
P_FILEIDS: string;
}
export class UpdateServiceProviderDTO {
@ApiProperty({ required: true })
@IsNumber()
p_spid: number;
@ApiProperty({ required: true })
@IsString()
p_name: string;
@ApiProperty({ required: true })
@IsString()
p_lookupcode: string;
@ApiProperty({ required: true })
@IsString()
p_address1: string;
@ApiProperty({ required: false })
@IsString()
p_address2: string;
@ApiProperty({ required: true })
@IsString()
p_city: string;
@ApiProperty({ required: true })
@IsString()
p_state: string;
@ApiProperty({ required: true })
@IsString()
p_zip: string;
@ApiProperty({ required: true })
@IsString()
p_country: string;
@ApiProperty({ required: true })
@IsString()
p_issuingregion: string;
@ApiProperty({ required: true })
@IsString()
p_replacementregion: string;
@ApiProperty({ required: true })
@IsString()
p_bondsurety: string;
@ApiProperty({ required: true })
@IsString()
p_cargopolicyno: string;
@ApiProperty({ required: true })
@IsString()
p_cargosurety: string;
@ApiProperty({ required: true })
@IsString()
p_user_id: string;
@ApiProperty({ required: false })
@IsString()
P_NOTES: string;
@ApiProperty({ required: false })
@IsString()
P_FILEIDS: string;
}
// export class GetSPcontactsDTO {
// @IsNumber()
// p_SPid: number;
// }