56 lines
920 B
TypeScript
56 lines
920 B
TypeScript
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;
|
|
};
|
|
} |