fix data flow issues
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString } from 'class-validator';
|
||||
import { IsString, IsArray, IsObject } from 'class-validator';
|
||||
import { SponsorDashboardMetricsDTO } from './SponsorDashboardMetricsDTO';
|
||||
import { SponsoredLeagueDTO } from './SponsoredLeagueDTO';
|
||||
import { SponsorDashboardInvestmentDTO } from './SponsorDashboardInvestmentDTO';
|
||||
import { SponsorshipDTO } from './SponsorshipDTO';
|
||||
import { ActivityItemDTO } from './ActivityItemDTO';
|
||||
import { RenewalAlertDTO } from './RenewalAlertDTO';
|
||||
|
||||
export class SponsorDashboardDTO {
|
||||
@ApiProperty()
|
||||
@@ -21,4 +24,19 @@ export class SponsorDashboardDTO {
|
||||
|
||||
@ApiProperty({ type: SponsorDashboardInvestmentDTO })
|
||||
investment: SponsorDashboardInvestmentDTO;
|
||||
|
||||
@ApiProperty({ type: Object })
|
||||
sponsorships: {
|
||||
leagues: SponsorshipDTO[];
|
||||
teams: SponsorshipDTO[];
|
||||
drivers: SponsorshipDTO[];
|
||||
races: SponsorshipDTO[];
|
||||
platform: SponsorshipDTO[];
|
||||
};
|
||||
|
||||
@ApiProperty({ type: [ActivityItemDTO] })
|
||||
recentActivity: ActivityItemDTO[];
|
||||
|
||||
@ApiProperty({ type: [RenewalAlertDTO] })
|
||||
upcomingRenewals: RenewalAlertDTO[];
|
||||
}
|
||||
Reference in New Issue
Block a user