resolve todos in website and api

This commit is contained in:
2025-12-20 10:45:56 +01:00
parent 656ec62426
commit 7bbad511e2
62 changed files with 2036 additions and 611 deletions

View File

@@ -137,6 +137,17 @@
"seasonName"
]
},
"SponsorshipDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"SponsoredLeagueDTO": {
"type": "object",
"properties": {
@@ -167,6 +178,37 @@
"sponsorName"
]
},
"SponsorProfileDTO": {
"type": "object",
"properties": {
"companyName": {
"type": "string"
},
"contactName": {
"type": "string"
},
"contactEmail": {
"type": "string"
},
"contactPhone": {
"type": "string"
},
"website": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"companyName",
"contactName",
"contactEmail",
"contactPhone",
"website",
"description"
]
},
"SponsorDashboardMetricsDTO": {
"type": "object",
"properties": {
@@ -255,6 +297,21 @@
"name"
]
},
"RenewalAlertDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
"RejectSponsorshipRequestInputDTO": {
"type": "object",
"properties": {
@@ -266,6 +323,144 @@
"respondedBy"
]
},
"RaceDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"date": {
"type": "string"
}
},
"required": [
"id",
"name",
"date"
]
},
"PrivacySettingsDTO": {
"type": "object",
"properties": {
"publicProfile": {
"type": "boolean"
},
"showStats": {
"type": "boolean"
},
"showActiveSponsorships": {
"type": "boolean"
},
"allowDirectContact": {
"type": "boolean"
}
},
"required": [
"publicProfile",
"showStats",
"showActiveSponsorships",
"allowDirectContact"
]
},
"PaymentMethodDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"NotificationSettingsDTO": {
"type": "object",
"properties": {
"emailNewSponsorships": {
"type": "boolean"
},
"emailWeeklyReport": {
"type": "boolean"
},
"emailRaceAlerts": {
"type": "boolean"
},
"emailPaymentAlerts": {
"type": "boolean"
},
"emailNewOpportunities": {
"type": "boolean"
},
"emailContractExpiry": {
"type": "boolean"
}
},
"required": [
"emailNewSponsorships",
"emailWeeklyReport",
"emailRaceAlerts",
"emailPaymentAlerts",
"emailNewOpportunities",
"emailContractExpiry"
]
},
"LeagueDetailDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"game": {
"type": "string"
}
},
"required": [
"id",
"name",
"game"
]
},
"InvoiceDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"invoiceNumber": {
"type": "string"
},
"date": {
"type": "string"
},
"dueDate": {
"type": "string"
},
"amount": {
"type": "number"
},
"vatAmount": {
"type": "number"
},
"totalAmount": {
"type": "number"
}
},
"required": [
"id",
"invoiceNumber",
"date",
"dueDate",
"amount",
"vatAmount",
"totalAmount"
]
},
"GetSponsorSponsorshipsQueryParamsDTO": {
"type": "object",
"properties": {
@@ -303,6 +498,44 @@
"entityId"
]
},
"GetEntitySponsorshipPricingResultDTO": {
"type": "object",
"properties": {
"entityType": {
"type": "string"
},
"entityId": {
"type": "string"
}
},
"required": [
"entityType",
"entityId"
]
},
"DriverDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"iracingId": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
}
},
"required": [
"id",
"iracingId",
"name",
"country"
]
},
"CreateSponsorInputDTO": {
"type": "object",
"properties": {
@@ -318,6 +551,75 @@
"contactEmail"
]
},
"BillingStatsDTO": {
"type": "object",
"properties": {
"totalSpent": {
"type": "number"
},
"pendingAmount": {
"type": "number"
},
"nextPaymentDate": {
"type": "string"
},
"nextPaymentAmount": {
"type": "number"
},
"activeSponsorships": {
"type": "number"
},
"averageMonthlySpend": {
"type": "number"
}
},
"required": [
"totalSpent",
"pendingAmount",
"nextPaymentDate",
"nextPaymentAmount",
"activeSponsorships",
"averageMonthlySpend"
]
},
"AvailableLeagueDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"game": {
"type": "string"
},
"drivers": {
"type": "number"
},
"avgViewsPerRace": {
"type": "number"
}
},
"required": [
"id",
"name",
"game",
"drivers",
"avgViewsPerRace"
]
},
"ActivityItemDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"AcceptSponsorshipRequestInputDTO": {
"type": "object",
"properties": {
@@ -723,25 +1025,6 @@
"avatarUrl"
]
},
"RaceDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"date": {
"type": "string"
}
},
"required": [
"id",
"name",
"date"
]
},
"RaceActionParamsDTO": {
"type": "object",
"properties": {
@@ -772,6 +1055,29 @@
"adminId"
]
},
"ImportRaceResultsSummaryDTO": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"raceId": {
"type": "string"
},
"driversProcessed": {
"type": "number"
},
"resultsRecorded": {
"type": "number"
}
},
"required": [
"success",
"raceId",
"driversProcessed",
"resultsRecorded"
]
},
"ImportRaceResultsDTO": {
"type": "object",
"properties": {
@@ -787,7 +1093,7 @@
"resultsFileContent"
]
},
"GetRaceDetailParamsDTODTO": {
"GetRaceDetailParamsDTO": {
"type": "object",
"properties": {
"raceId": {
@@ -891,6 +1197,12 @@
},
"scheduledAt": {
"type": "string"
},
"status": {
"type": "string"
},
"isMyLeague": {
"type": "boolean"
}
},
"required": [
@@ -899,7 +1211,9 @@
"leagueName",
"track",
"car",
"scheduledAt"
"scheduledAt",
"status",
"isMyLeague"
]
},
"DashboardLeagueStandingSummaryDTO": {
@@ -1024,6 +1338,41 @@
"enum"
]
},
"AllRacesListItemDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"track": {
"type": "string"
},
"car": {
"type": "string"
},
"scheduledAt": {
"type": "string"
},
"status": {
"type": "string"
},
"leagueId": {
"type": "string"
},
"leagueName": {
"type": "string"
}
},
"required": [
"id",
"track",
"car",
"scheduledAt",
"status",
"leagueId",
"leagueName"
]
},
"UpdatePaymentStatusInputDTO": {
"type": "object",
"properties": {
@@ -1297,6 +1646,40 @@
"success"
]
},
"WithdrawFromLeagueWalletOutputDTO": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
}
},
"required": [
"success"
]
},
"WithdrawFromLeagueWalletInputDTO": {
"type": "object",
"properties": {
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"seasonId": {
"type": "string"
},
"destinationAccount": {
"type": "string"
}
},
"required": [
"amount",
"currency",
"seasonId",
"destinationAccount"
]
},
"UpdateLeagueMemberRoleOutputDTO": {
"type": "object",
"properties": {
@@ -1327,6 +1710,17 @@
"targetDriverId"
]
},
"TotalLeaguesDTO": {
"type": "object",
"properties": {
"totalLeagues": {
"type": "number"
}
},
"required": [
"totalLeagues"
]
},
"SeasonDTO": {
"type": "object",
"properties": {
@@ -1408,6 +1802,9 @@
"id": {
"type": "string"
},
"leagueId": {
"type": "string"
},
"raceId": {
"type": "string"
},
@@ -1427,6 +1824,7 @@
},
"required": [
"id",
"leagueId",
"raceId",
"protestingDriverId",
"accusedDriverId",
@@ -1442,11 +1840,33 @@
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"ownerId": {
"type": "string"
},
"settings": {
"type": "object"
},
"maxDrivers": {
"type": "number"
},
"sessionDuration": {
"type": "number"
},
"visibility": {
"type": "string"
}
},
"required": [
"id",
"name"
"name",
"description",
"ownerId",
"settings",
"maxDrivers"
]
},
"LeagueSummaryDTO": {
@@ -1513,6 +1933,44 @@
"status"
]
},
"LeagueScoringPresetDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"id",
"name",
"description"
]
},
"LeagueMembershipDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"leagueId": {
"type": "string"
},
"driverId": {
"type": "string"
}
},
"required": [
"id",
"leagueId",
"driverId"
]
},
"LeagueMemberDTO": {
"type": "object",
"properties": {
@@ -1634,6 +2092,52 @@
"canUpdateRoles"
]
},
"WalletTransactionDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"GetLeagueWalletOutputDTO": {
"type": "object",
"properties": {
"balance": {
"type": "number"
},
"currency": {
"type": "string"
},
"totalRevenue": {
"type": "number"
},
"totalFees": {
"type": "number"
},
"totalWithdrawals": {
"type": "number"
},
"pendingPayouts": {
"type": "number"
},
"canWithdraw": {
"type": "boolean"
}
},
"required": [
"balance",
"currency",
"totalRevenue",
"totalFees",
"totalWithdrawals",
"pendingPayouts",
"canWithdraw"
]
},
"GetLeagueSeasonsQueryDTO": {
"type": "object",
"properties": {
@@ -2031,29 +2535,6 @@
"rank"
]
},
"DriverDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"iracingId": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
}
},
"required": [
"id",
"iracingId",
"name",
"country"
]
},
"CompleteOnboardingOutputDTO": {
"type": "object",
"properties": {