contract testing

This commit is contained in:
2025-12-24 00:01:01 +01:00
parent 43a8afe7a9
commit 5e491d9724
52 changed files with 2058 additions and 612 deletions

View File

@@ -97,7 +97,7 @@
"type": "string"
},
"price": {
"type": "number"
"type": "string"
},
"currency": {
"type": "string"
@@ -213,28 +213,28 @@
"type": "object",
"properties": {
"impressions": {
"type": "number"
"type": "string"
},
"impressionsChange": {
"type": "number"
"type": "string"
},
"uniqueViewers": {
"type": "number"
"type": "string"
},
"viewersChange": {
"type": "number"
"type": "string"
},
"races": {
"type": "number"
"type": "string"
},
"drivers": {
"type": "number"
"type": "string"
},
"exposure": {
"type": "number"
"type": "string"
},
"exposureChange": {
"type": "number"
"type": "string"
}
},
"required": [
@@ -252,13 +252,13 @@
"type": "object",
"properties": {
"activeSponsorships": {
"type": "number"
"type": "string"
},
"totalInvestment": {
"type": "number"
"type": "string"
},
"costPerThousandViews": {
"type": "number"
"type": "string"
}
},
"required": [
@@ -334,28 +334,32 @@
},
"date": {
"type": "string"
},
"views": {
"type": "string"
}
},
"required": [
"id",
"name",
"date"
"date",
"views"
]
},
"PrivacySettingsDTO": {
"type": "object",
"properties": {
"publicProfile": {
"type": "boolean"
"type": "string"
},
"showStats": {
"type": "boolean"
"type": "string"
},
"showActiveSponsorships": {
"type": "boolean"
"type": "string"
},
"allowDirectContact": {
"type": "boolean"
"type": "string"
}
},
"required": [
@@ -380,22 +384,22 @@
"type": "object",
"properties": {
"emailNewSponsorships": {
"type": "boolean"
"type": "string"
},
"emailWeeklyReport": {
"type": "boolean"
"type": "string"
},
"emailRaceAlerts": {
"type": "boolean"
"type": "string"
},
"emailPaymentAlerts": {
"type": "boolean"
"type": "string"
},
"emailNewOpportunities": {
"type": "boolean"
"type": "string"
},
"emailContractExpiry": {
"type": "boolean"
"type": "string"
}
},
"required": [
@@ -442,13 +446,13 @@
"type": "string"
},
"amount": {
"type": "number"
"type": "string"
},
"vatAmount": {
"type": "number"
"type": "string"
},
"totalAmount": {
"type": "number"
"type": "string"
}
},
"required": [
@@ -519,21 +523,33 @@
"id": {
"type": "string"
},
"iracingId": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"position": {
"type": "string"
},
"races": {
"type": "string"
},
"impressions": {
"type": "string"
},
"team": {
"type": "string"
}
},
"required": [
"id",
"iracingId",
"name",
"country"
"country",
"position",
"races",
"impressions",
"team"
]
},
"CreateSponsorInputDTO": {
@@ -555,22 +571,22 @@
"type": "object",
"properties": {
"totalSpent": {
"type": "number"
"type": "string"
},
"pendingAmount": {
"type": "number"
"type": "string"
},
"nextPaymentDate": {
"type": "string"
},
"nextPaymentAmount": {
"type": "number"
"type": "string"
},
"activeSponsorships": {
"type": "number"
"type": "string"
},
"averageMonthlySpend": {
"type": "number"
"type": "string"
}
},
"required": [
@@ -595,10 +611,10 @@
"type": "string"
},
"drivers": {
"type": "number"
"type": "string"
},
"avgViewsPerRace": {
"type": "number"
"type": "string"
}
},
"required": [
@@ -1197,12 +1213,6 @@
},
"scheduledAt": {
"type": "string"
},
"status": {
"type": "string"
},
"isMyLeague": {
"type": "boolean"
}
},
"required": [
@@ -1211,9 +1221,7 @@
"leagueName",
"track",
"car",
"scheduledAt",
"status",
"isMyLeague"
"scheduledAt"
]
},
"DashboardLeagueStandingSummaryDTO": {
@@ -1373,6 +1381,36 @@
"leagueName"
]
},
"AllRacesStatusFilterDTO": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"label": {
"type": "string"
}
},
"required": [
"value",
"label"
]
},
"AllRacesLeagueFilterDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
"UpdatePaymentStatusInputDTO": {
"type": "object",
"properties": {
@@ -1384,7 +1422,7 @@
"paymentId"
]
},
"PaymentDto": {
"PaymentDTO": {
"type": "object",
"properties": {
"id": {
@@ -1395,7 +1433,7 @@
"id"
]
},
"MembershipFeeDto": {
"MembershipFeeDTO": {
"type": "object",
"properties": {
"id": {
@@ -1410,7 +1448,7 @@
"leagueId"
]
},
"MemberPaymentDto": {
"MemberPaymentDTO": {
"type": "object",
"properties": {
"id": {
@@ -1441,7 +1479,7 @@
"netAmount"
]
},
"PrizeDto": {
"PrizeDTO": {
"type": "object",
"properties": {
"id": {
@@ -1472,7 +1510,7 @@
"amount"
]
},
"WalletDto": {
"WalletDTO": {
"type": "object",
"properties": {
"id": {
@@ -1512,7 +1550,7 @@
"currency"
]
},
"TransactionDto": {
"TransactionDTO": {
"type": "object",
"properties": {
"id": {
@@ -1527,18 +1565,7 @@
"walletId"
]
},
"PaymentDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"UploadMediaOutputDTO": {
"DeletePrizeResultDTO": {
"type": "object",
"properties": {
"success": {
@@ -1549,11 +1576,22 @@
"success"
]
},
"UploadMediaOutputDTO": {
"type": "object",
"properties": {
"success": {
"type": "string"
}
},
"required": [
"success"
]
},
"UpdateAvatarOutputDTO": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
"type": "string"
}
},
"required": [
@@ -1610,8 +1648,7 @@
"type": "string"
},
"uploadedAt": {
"type": "string",
"format": "date-time"
"type": "string"
},
"size": {
"type": "number"
@@ -1639,7 +1676,7 @@
"type": "object",
"properties": {
"success": {
"type": "boolean"
"type": "string"
}
},
"required": [
@@ -1840,33 +1877,11 @@
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"ownerId": {
"type": "string"
},
"settings": {
"type": "object"
},
"maxDrivers": {
"type": "number"
},
"sessionDuration": {
"type": "number"
},
"visibility": {
"type": "string"
}
},
"required": [
"id",
"name",
"description",
"ownerId",
"settings",
"maxDrivers"
"name"
]
},
"LeagueSummaryDTO": {
@@ -2283,151 +2298,6 @@
"driverId"
]
},
"DriverProfileDriverSummaryDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"avatarUrl": {
"type": "string"
}
},
"required": [
"id",
"name",
"country",
"avatarUrl"
]
},
"DriverProfileStatsDTO": {
"type": "object",
"properties": {
"totalRaces": {
"type": "number"
},
"wins": {
"type": "number"
},
"podiums": {
"type": "number"
},
"dnfs": {
"type": "number"
}
},
"required": [
"totalRaces",
"wins",
"podiums",
"dnfs"
]
},
"DriverProfileFinishDistributionDTO": {
"type": "object",
"properties": {
"totalRaces": {
"type": "number"
},
"wins": {
"type": "number"
},
"podiums": {
"type": "number"
},
"topTen": {
"type": "number"
},
"dnfs": {
"type": "number"
},
"other": {
"type": "number"
}
},
"required": [
"totalRaces",
"wins",
"podiums",
"topTen",
"dnfs",
"other"
]
},
"DriverProfileTeamMembershipDTO": {
"type": "object",
"properties": {
"teamId": {
"type": "string"
},
"teamName": {
"type": "string"
}
},
"required": [
"teamId",
"teamName"
]
},
"DriverProfileSocialFriendSummaryDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"avatarUrl": {
"type": "string"
}
},
"required": [
"id",
"name",
"country",
"avatarUrl"
]
},
"DriverProfileSocialSummaryDTO": {
"type": "object",
"properties": {
"friendsCount": {
"type": "number"
}
},
"required": [
"friendsCount"
]
},
"DriverProfileAchievementDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"id",
"title",
"description"
]
},
"GetDriverOutputDTO": {
"type": "object",
"properties": {
@@ -2488,6 +2358,151 @@
"driverId"
]
},
"DriverProfileTeamMembershipDTO": {
"type": "object",
"properties": {
"teamId": {
"type": "string"
},
"teamName": {
"type": "string"
}
},
"required": [
"teamId",
"teamName"
]
},
"DriverProfileStatsDTO": {
"type": "object",
"properties": {
"totalRaces": {
"type": "number"
},
"wins": {
"type": "number"
},
"podiums": {
"type": "number"
},
"dnfs": {
"type": "number"
}
},
"required": [
"totalRaces",
"wins",
"podiums",
"dnfs"
]
},
"DriverProfileSocialSummaryDTO": {
"type": "object",
"properties": {
"friendsCount": {
"type": "number"
}
},
"required": [
"friendsCount"
]
},
"DriverProfileSocialFriendSummaryDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"avatarUrl": {
"type": "string"
}
},
"required": [
"id",
"name",
"country",
"avatarUrl"
]
},
"DriverProfileFinishDistributionDTO": {
"type": "object",
"properties": {
"totalRaces": {
"type": "number"
},
"wins": {
"type": "number"
},
"podiums": {
"type": "number"
},
"topTen": {
"type": "number"
},
"dnfs": {
"type": "number"
},
"other": {
"type": "number"
}
},
"required": [
"totalRaces",
"wins",
"podiums",
"topTen",
"dnfs",
"other"
]
},
"DriverProfileDriverSummaryDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"country": {
"type": "string"
},
"avatarUrl": {
"type": "string"
}
},
"required": [
"id",
"name",
"country",
"avatarUrl"
]
},
"DriverProfileAchievementDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"id",
"title",
"description"
]
},
"DriverLeaderboardItemDTO": {
"type": "object",
"properties": {