From 91ad6ac7fb30b11461705385806146b4531565e1 Mon Sep 17 00:00:00 2001 From: Gitlab CI Pipeline Date: Fri, 16 Feb 2024 12:53:43 +0000 Subject: [PATCH] dev-vbl-statistic from API (6e3b311a) --- libs/types/src/lib/api/Game/gameList.view.ts | 1 + libs/types/src/lib/api/Game/index.ts | 1 + .../api/Game/lastXGamesByMatchGame.view.ts | 8 +++++ libs/types/src/lib/api/Lineup/index.ts | 1 + .../src/lib/api/Lineup/lineupPlayerV.view.ts | 15 ++++++++++ libs/types/src/lib/api/Match/Game/index.ts | 1 + .../Match/Game/matchGameLineupRequest.data.ts | 11 +++++++ libs/types/src/lib/api/Media/media.view.ts | 1 + libs/types/src/lib/api/Overall/index.ts | 2 ++ .../statisticOverallTournament.view.ts | 9 ++++++ .../statisticOverallUtCardResults.view.ts | 12 ++++++++ .../api/Round/roundWithStageAndGroup.view.ts | 5 ++-- .../src/lib/api/Statistic/HeadToHead/index.ts | 2 ++ .../HeadToHead/statisticClub.view.ts | 29 +++++++++++++++++++ .../HeadToHead/statisticPlayer.view.ts | 29 +++++++++++++++++++ .../lib/api/Statistic/statisticValue.view.ts | 2 +- .../userTournamentRegistration.view.ts | 2 +- libs/types/src/lib/api/index.ts | 7 +++++ 18 files changed, 133 insertions(+), 5 deletions(-) create mode 100644 libs/types/src/lib/api/Game/lastXGamesByMatchGame.view.ts create mode 100644 libs/types/src/lib/api/Lineup/lineupPlayerV.view.ts create mode 100644 libs/types/src/lib/api/Match/Game/index.ts create mode 100644 libs/types/src/lib/api/Match/Game/matchGameLineupRequest.data.ts create mode 100644 libs/types/src/lib/api/Overall/index.ts create mode 100644 libs/types/src/lib/api/Overall/statisticOverallTournament.view.ts create mode 100644 libs/types/src/lib/api/Overall/statisticOverallUtCardResults.view.ts create mode 100644 libs/types/src/lib/api/Statistic/HeadToHead/index.ts create mode 100644 libs/types/src/lib/api/Statistic/HeadToHead/statisticClub.view.ts create mode 100644 libs/types/src/lib/api/Statistic/HeadToHead/statisticPlayer.view.ts diff --git a/libs/types/src/lib/api/Game/gameList.view.ts b/libs/types/src/lib/api/Game/gameList.view.ts index 110bdc689..fb307f10c 100644 --- a/libs/types/src/lib/api/Game/gameList.view.ts +++ b/libs/types/src/lib/api/Game/gameList.view.ts @@ -16,6 +16,7 @@ export interface GameListView { gameType: string | null; platform: PlatformListView | null; isActive: boolean; + matchGameNumber: number; } export default GameListView; diff --git a/libs/types/src/lib/api/Game/index.ts b/libs/types/src/lib/api/Game/index.ts index 3d445fcf2..3f1f7bba8 100644 --- a/libs/types/src/lib/api/Game/index.ts +++ b/libs/types/src/lib/api/Game/index.ts @@ -1,4 +1,5 @@ export { GameListViewUnion } from './gameListView.union'; +export { LastXGamesByMatchGameView } from './lastXGamesByMatchGame.view'; export { GameRankingView } from './gameRanking.view'; export { GameListView } from './gameList.view'; export { GameDetailView } from './gameDetail.view'; diff --git a/libs/types/src/lib/api/Game/lastXGamesByMatchGame.view.ts b/libs/types/src/lib/api/Game/lastXGamesByMatchGame.view.ts new file mode 100644 index 000000000..d19e9ec10 --- /dev/null +++ b/libs/types/src/lib/api/Game/lastXGamesByMatchGame.view.ts @@ -0,0 +1,8 @@ +// Generated Interface, do not change manually! + +export interface LastXGamesByMatchGameView { + home: any; + away: any; +} + +export default LastXGamesByMatchGameView; diff --git a/libs/types/src/lib/api/Lineup/index.ts b/libs/types/src/lib/api/Lineup/index.ts index 41914a310..09e1d6958 100644 --- a/libs/types/src/lib/api/Lineup/index.ts +++ b/libs/types/src/lib/api/Lineup/index.ts @@ -1,3 +1,4 @@ export { FormationStructureView } from './formationStructure.view'; +export { LineupPlayerV2View } from './lineupPlayerV.view'; export { LineupPlayerView } from './lineupPlayer.view'; export { LineupListView } from './lineupList.view'; diff --git a/libs/types/src/lib/api/Lineup/lineupPlayerV.view.ts b/libs/types/src/lib/api/Lineup/lineupPlayerV.view.ts new file mode 100644 index 000000000..0f7d74798 --- /dev/null +++ b/libs/types/src/lib/api/Lineup/lineupPlayerV.view.ts @@ -0,0 +1,15 @@ +// Generated Interface, do not change manually! +import { MediaView } from './../Media/media.view'; + +export interface LineupPlayerV2View { + fullname: string | null; + firstname: string | null; + lastname: string | null; + club: string | null; + sorting: number; + position: string | null; + rating: number | null; + media: MediaView | null; +} + +export default LineupPlayerV2View; diff --git a/libs/types/src/lib/api/Match/Game/index.ts b/libs/types/src/lib/api/Match/Game/index.ts new file mode 100644 index 000000000..27c948d42 --- /dev/null +++ b/libs/types/src/lib/api/Match/Game/index.ts @@ -0,0 +1 @@ +export { MatchGameLineupRequestData } from './matchGameLineupRequest.data'; diff --git a/libs/types/src/lib/api/Match/Game/matchGameLineupRequest.data.ts b/libs/types/src/lib/api/Match/Game/matchGameLineupRequest.data.ts new file mode 100644 index 000000000..024930f5b --- /dev/null +++ b/libs/types/src/lib/api/Match/Game/matchGameLineupRequest.data.ts @@ -0,0 +1,11 @@ +// Generated Interface, do not change manually! + +export interface MatchGameLineupRequestData { + + /** + * @default false + */ + switchLineups?: boolean; +} + +export default MatchGameLineupRequestData; diff --git a/libs/types/src/lib/api/Media/media.view.ts b/libs/types/src/lib/api/Media/media.view.ts index 67febe6e4..fb573cbf2 100644 --- a/libs/types/src/lib/api/Media/media.view.ts +++ b/libs/types/src/lib/api/Media/media.view.ts @@ -7,6 +7,7 @@ export interface MediaView { description: string | null; providerReference: string | null; path: string | null; + original: string | null; } export default MediaView; diff --git a/libs/types/src/lib/api/Overall/index.ts b/libs/types/src/lib/api/Overall/index.ts new file mode 100644 index 000000000..273f6d2fc --- /dev/null +++ b/libs/types/src/lib/api/Overall/index.ts @@ -0,0 +1,2 @@ +export { StatisticOverallTournamentView } from './statisticOverallTournament.view'; +export { StatisticOverallUtCardResultsView } from './statisticOverallUtCardResults.view'; diff --git a/libs/types/src/lib/api/Overall/statisticOverallTournament.view.ts b/libs/types/src/lib/api/Overall/statisticOverallTournament.view.ts new file mode 100644 index 000000000..f9d36e39d --- /dev/null +++ b/libs/types/src/lib/api/Overall/statisticOverallTournament.view.ts @@ -0,0 +1,9 @@ +// Generated Interface, do not change manually! + +export interface StatisticOverallTournamentView { + totalMatchGameCount: number; + totalScoreSum: number; + averageScore: number; +} + +export default StatisticOverallTournamentView; diff --git a/libs/types/src/lib/api/Overall/statisticOverallUtCardResults.view.ts b/libs/types/src/lib/api/Overall/statisticOverallUtCardResults.view.ts new file mode 100644 index 000000000..8cc26d15a --- /dev/null +++ b/libs/types/src/lib/api/Overall/statisticOverallUtCardResults.view.ts @@ -0,0 +1,12 @@ +// Generated Interface, do not change manually! +import { MediaMinimalView } from './mediaMinimal.view'; + +export interface StatisticOverallUtCardResultsView { + goalsShot: number | null; + playerInLineup: number | null; + utCardFirstName: string; + utCardLastName: string; + utCardImage: MediaMinimalView | null; +} + +export default StatisticOverallUtCardResultsView; diff --git a/libs/types/src/lib/api/Round/roundWithStageAndGroup.view.ts b/libs/types/src/lib/api/Round/roundWithStageAndGroup.view.ts index 8ca7fb593..512f9886c 100644 --- a/libs/types/src/lib/api/Round/roundWithStageAndGroup.view.ts +++ b/libs/types/src/lib/api/Round/roundWithStageAndGroup.view.ts @@ -1,7 +1,6 @@ // Generated Interface, do not change manually! - -import { GroupListView } from '../Group'; -import { StageListView } from '../Stage'; +import { StageListView } from './stageList.view'; +import { GroupListView } from './groupList.view'; export interface RoundWithStageAndGroupView { id: string; diff --git a/libs/types/src/lib/api/Statistic/HeadToHead/index.ts b/libs/types/src/lib/api/Statistic/HeadToHead/index.ts new file mode 100644 index 000000000..1069520c5 --- /dev/null +++ b/libs/types/src/lib/api/Statistic/HeadToHead/index.ts @@ -0,0 +1,2 @@ +export { StatisticPlayerView } from './statisticPlayer.view'; +export { StatisticClubView } from './statisticClub.view'; diff --git a/libs/types/src/lib/api/Statistic/HeadToHead/statisticClub.view.ts b/libs/types/src/lib/api/Statistic/HeadToHead/statisticClub.view.ts new file mode 100644 index 000000000..0ed5c8904 --- /dev/null +++ b/libs/types/src/lib/api/Statistic/HeadToHead/statisticClub.view.ts @@ -0,0 +1,29 @@ +// Generated Interface, do not change manually! +import { TeamParticipantViewUnion } from './../../Participant/teamParticipantView.union'; + +export interface StatisticClubView { + id: string; + statisticConfigurationId: string; + identityId: string; + participant: TeamParticipantViewUnion; + matchesPlayed: number; + gamesPlayed: number; + wonSum: number | null; + lostSum: number | null; + tieSum: number | null; + scoreSum: number | null; + scoreDifference: number | null; + averagePointsPerMatch: number | null; + gamesPlayedOneVsOne: number; + gamesPlayedTwoVsTwo: number; + averagePointsOneVsOnePerGame: number | null; + averagePointsTwoVsTwoPerGame: number | null; + averageGoalsPerGame: number | null; + placement: number | null; + efficiency: number | null; + trendPoints: number | null; + trendPointsZone: string | null; + createdAt: string; +} + +export default StatisticClubView; diff --git a/libs/types/src/lib/api/Statistic/HeadToHead/statisticPlayer.view.ts b/libs/types/src/lib/api/Statistic/HeadToHead/statisticPlayer.view.ts new file mode 100644 index 000000000..1a0995c1e --- /dev/null +++ b/libs/types/src/lib/api/Statistic/HeadToHead/statisticPlayer.view.ts @@ -0,0 +1,29 @@ +// Generated Interface, do not change manually! +import { PlayerParticipantView } from './../../Participant/playerParticipant.view'; +import { PlayerListViewUnion } from './../../Player/playerListView.union'; + +export interface StatisticPlayerView { + id: string; + statisticConfigurationId: string; + identityId: string; + participant: PlayerParticipantView | null; + player: PlayerListViewUnion | null; + gamesPlayed: number; + wonSum: number | null; + lostSum: number | null; + tieSum: number | null; + scoreSum: number | null; + scoreDifference: number | null; + averageGoalsPerGame: number | null; + averageEnemyGoalsPerGame: number | null; + averagePointsPerGame: number | null; + averageShotsPerGoal: number | null; + averageBallRecoveryTimePerGame: number | null; + efficiency: number | null; + trendPoints: number | null; + trendPointsZone: string | null; + averageExpectedScorePerGame: number | null; + createdAt: string; +} + +export default StatisticPlayerView; diff --git a/libs/types/src/lib/api/Statistic/statisticValue.view.ts b/libs/types/src/lib/api/Statistic/statisticValue.view.ts index 5e2f83fb4..42fd21786 100644 --- a/libs/types/src/lib/api/Statistic/statisticValue.view.ts +++ b/libs/types/src/lib/api/Statistic/statisticValue.view.ts @@ -2,7 +2,7 @@ export interface StatisticValueView { value: number | null; - totalMatchGames: number; + totalMatchesOrMatchGames: number; } export default StatisticValueView; diff --git a/libs/types/src/lib/api/Tournament/Registration/userTournamentRegistration.view.ts b/libs/types/src/lib/api/Tournament/Registration/userTournamentRegistration.view.ts index 553661d1e..e76c08342 100644 --- a/libs/types/src/lib/api/Tournament/Registration/userTournamentRegistration.view.ts +++ b/libs/types/src/lib/api/Tournament/Registration/userTournamentRegistration.view.ts @@ -1,6 +1,6 @@ // Generated Interface, do not change manually! -import { MediaView } from '../../Media'; import { CheckInStatus } from './../../Registration/checkIn.status'; +import { MediaView } from './media.view'; export interface UserTournamentRegistrationView { id: string; diff --git a/libs/types/src/lib/api/index.ts b/libs/types/src/lib/api/index.ts index 8053a04b3..abae98b9e 100644 --- a/libs/types/src/lib/api/index.ts +++ b/libs/types/src/lib/api/index.ts @@ -2,9 +2,12 @@ export { StatisticValueView } from './Statistic/statisticValue.view'; export { StatisticListView } from './Statistic/statisticList.view'; export { RoundWithStageAndGroupView } from './Round/roundWithStageAndGroup.view'; export { StageListView } from './Stage/stageList.view'; +export { LineupPlayerVView } from './Lineup/lineupPlayerV.view'; export { FormationStructureView } from './Lineup/formationStructure.view'; export { PaginationView } from './pagination.view'; export { FormViolationView } from './Form/formViolation.view'; +export { StatisticClubView } from './Statistic/HeadToHead/statisticClub.view'; +export { StatisticPlayerView } from './Statistic/HeadToHead/statisticPlayer.view'; export { GroupedStatisticListView } from './Statistic/groupedStatisticList.view'; export { ListTournamentSearchRequestData } from './Season/listTournamentSearchRequest.data'; export { SeasonWithTournamentGroupsView } from './Season/seasonWithTournamentGroups.view'; @@ -15,6 +18,7 @@ export { RoundListView } from './Round/roundList.view'; export { MatchListViewUnion } from './Match/matchListView.union'; export { DetailedMatchListView } from './Match/detailedMatchList.view'; export { MatchRankingView } from './Match/matchRanking.view'; +export { MatchGameLineupRequestData } from './Match/Game/matchGameLineupRequest.data'; export { ListUpcomingMatchesForUserSearchRequestData } from './Match/listUpcomingMatchesForUserSearchRequest.data'; export { MatchStreamDetailView } from './Match/Stream/matchStreamDetail.view'; export { MatchStreamListView } from './Match/Stream/matchStreamList.view'; @@ -55,6 +59,9 @@ export { GroupStageStageStructureView } from './Tournament/groupStageStageStruct export { ListSearchRequestData } from './Tournament/listSearchRequest.data'; export { BaseStageStageStructureView } from './Tournament/baseStageStageStructure.view'; export { IdentityView } from './Identity/identity.view'; +export { StatisticOverallTournamentView } from './Overall/statisticOverallTournament.view'; +export { StatisticOverallUtCardResultsView } from './Overall/statisticOverallUtCardResults.view'; +export { LastXGamesByMatchGameView } from './Game/lastXGamesByMatchGame.view'; export { GameListView } from './Game/gameList.view'; export { GameRankingView } from './Game/gameRanking.view'; export { SubstitutionEventView } from './Game/Event/substitutionEvent.view';