@mtgame/core 0.1.51 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,7 @@ export interface TournamentGamesFilters {
26
26
  tournamentTour?: number;
27
27
  teamId?: number;
28
28
  playoffStage?: number;
29
+ playoffRound?: number;
29
30
  playoffId?: number;
30
31
  isPlayoff?: boolean;
31
32
  status?: GameStatuses;
@@ -49,6 +50,7 @@ export interface StatisticFilters {
49
50
  tournament_stage_id?: number;
50
51
  tournament_tour?: number;
51
52
  playoff_stage?: number;
53
+ playoff_round?: number;
52
54
  playoff_id?: number;
53
55
  is_playoff?: boolean;
54
56
  date_from?: string;
@@ -2241,10 +2241,10 @@
2241
2241
  return null;
2242
2242
  }
2243
2243
  if (this.isTeamWon) {
2244
- return this.team.id;
2244
+ return this.team.id || this.teamId;
2245
2245
  }
2246
2246
  if (this.isCompetitorTeamWon) {
2247
- return this.competitorTeam.id;
2247
+ return this.competitorTeam.id || this.competitorTeamId;
2248
2248
  }
2249
2249
  return null;
2250
2250
  },
@@ -2290,6 +2290,7 @@
2290
2290
  rugby_game_config: 'rugbyGameConfig',
2291
2291
  score_by_period: 'scoreByPeriod',
2292
2292
  playoff_stage: 'playoffStage',
2293
+ playoff_round: 'playoffRound',
2293
2294
  tournament_stage_id: 'tournamentStageId',
2294
2295
  tournament_playoff_id: 'tournamentPlayoffId',
2295
2296
  tournament_playoff: 'tournamentPlayoff',
@@ -5062,6 +5063,7 @@
5062
5063
  stage_id: 'stageId',
5063
5064
  tours_count: 'toursCount',
5064
5065
  playoff_stages_count: 'playoffStagesCount',
5066
+ playoff_teams_count: 'playoffTeamsCount',
5065
5067
  }
5066
5068
  })
5067
5069
  ], GameTimelineStageItem);
@@ -5085,8 +5087,10 @@
5085
5087
  mappingFields: {
5086
5088
  tours_count: 'toursCount',
5087
5089
  playoff_stages_count: 'playoffStagesCount',
5090
+ playoff_teams_count: 'playoffTeamsCount',
5088
5091
  current_tour: 'currentTour',
5089
5092
  current_playoff_stage: 'currentPlayoffStage',
5093
+ current_playoff_round: 'currentPlayoffRound',
5090
5094
  stages: 'stages',
5091
5095
  tournament_stage_id: 'tournamentStageId',
5092
5096
  },
@@ -5953,6 +5957,9 @@
5953
5957
  if (filters.playoffStage) {
5954
5958
  params = params.set('playoff_stage', filters.playoffStage.toString());
5955
5959
  }
5960
+ if (filters.playoffRound) {
5961
+ params = params.set('playoff_round', filters.playoffRound.toString());
5962
+ }
5956
5963
  if (filters.teamId) {
5957
5964
  params = params.set('team_id', filters.teamId.toString());
5958
5965
  }
@@ -6505,6 +6512,9 @@
6505
6512
  if (filters.playoffStage) {
6506
6513
  params = params.set('playoff_stage', filters.playoffStage.toString());
6507
6514
  }
6515
+ if (filters.playoffRound) {
6516
+ params = params.set('playoff_round', filters.playoffRound.toString());
6517
+ }
6508
6518
  if (filters.status) {
6509
6519
  params = params.set('status', exports.GameStatuses[filters.status]);
6510
6520
  }