fix data flow issues
This commit is contained in:
56
apps/api/src/domain/sponsor/dtos/SponsorProfileDTO.ts
Normal file
56
apps/api/src/domain/sponsor/dtos/SponsorProfileDTO.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString, IsOptional, IsObject } from 'class-validator';
|
||||
|
||||
export class SponsorProfileDTO {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
companyName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
contactName: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
contactEmail: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
contactPhone: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
website: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
description: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
logoUrl?: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
industry: string;
|
||||
|
||||
@ApiProperty({ type: Object })
|
||||
address: {
|
||||
street: string;
|
||||
city: string;
|
||||
country: string;
|
||||
postalCode: string;
|
||||
};
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
taxId: string;
|
||||
|
||||
@ApiProperty({ type: Object })
|
||||
socialLinks: {
|
||||
twitter: string;
|
||||
linkedin: string;
|
||||
instagram: string;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user