website refactor

This commit is contained in:
2026-01-12 01:01:49 +01:00
parent 5ca6023a5a
commit fefd8d1cd6
294 changed files with 4628 additions and 4991 deletions

View File

@@ -1,3 +1,27 @@
/**
* Interface for sponsorship data input
*/
export interface SponsorshipDataInput {
id: string;
type: 'leagues' | 'teams' | 'drivers' | 'races' | 'platform';
entityId: string;
entityName: string;
tier?: 'main' | 'secondary';
status: 'active' | 'pending_approval' | 'approved' | 'rejected' | 'expired';
applicationDate?: string | Date;
approvalDate?: string | Date;
rejectionReason?: string;
startDate: string | Date;
endDate: string | Date;
price: number;
impressions: number;
impressionsChange?: number;
engagement?: number;
details?: string;
entityOwner?: string;
applicationMessage?: string;
}
/**
* Sponsorship View Model
*
@@ -23,7 +47,7 @@ export class SponsorshipViewModel {
entityOwner?: string;
applicationMessage?: string;
constructor(data: any) {
constructor(data: SponsorshipDataInput) {
this.id = data.id;
this.type = data.type;
this.entityId = data.entityId;