@mtgame/core 0.2.65 → 0.2.66

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.
@@ -29,6 +29,9 @@ import { GameHockeyPosition } from '../models/hockey-profile';
29
29
  import { GameFootballPosition } from '../models/football-profile';
30
30
  import { GameHandballPosition } from '../models/handball-profile';
31
31
  import { GameWaterpoloPosition } from '../models/waterpolo-profile';
32
+ import { GameBasketballPosition } from '../models/basketball-profile';
33
+ import { GameVolleyballPosition } from '../models/volleyball-profile';
34
+ import { GameRugbyPosition } from '../models/rugby-profile';
32
35
  export interface TournamentGamesFilters {
33
36
  tournamentIds?: number[];
34
37
  tournamentSeasonId?: number;
@@ -57,6 +60,7 @@ export interface StatisticFilters {
57
60
  tournament_id?: number;
58
61
  tournament_ids?: number[];
59
62
  tournament_season_id?: number;
63
+ tournament_season_ids?: number[];
60
64
  tournament_team_id?: number;
61
65
  league_player_id?: number;
62
66
  tournament_team_user_id?: number;
@@ -76,10 +80,13 @@ export interface StatisticFilters {
76
80
  date_to?: string;
77
81
  query?: string;
78
82
  gender?: UserGender;
83
+ basketball_position?: GameBasketballPosition;
84
+ volleyball_position?: GameVolleyballPosition;
79
85
  hockey_position?: GameHockeyPosition;
80
86
  football_position?: GameFootballPosition;
81
87
  handball_position?: GameHandballPosition;
82
88
  waterpolo_position?: GameWaterpoloPosition;
89
+ rugby_position?: GameRugbyPosition;
83
90
  per_game?: boolean;
84
91
  group_by: StatisticGroupByTypes;
85
92
  order_by?: string;
@@ -7943,7 +7943,13 @@
7943
7943
  for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
7944
7944
  var key = _c.value;
7945
7945
  if (filters[key]) {
7946
- if (key === 'hockey_position') {
7946
+ if (key === 'basketball_position') {
7947
+ params = params.set(key, exports.GameBasketballPosition[filters[key]]);
7948
+ }
7949
+ else if (key === 'volleyball_position') {
7950
+ params = params.set(key, exports.GameVolleyballPosition[filters[key]]);
7951
+ }
7952
+ else if (key === 'hockey_position') {
7947
7953
  params = params.set(key, exports.GameHockeyPosition[filters[key]]);
7948
7954
  }
7949
7955
  else if (key === 'football_position') {
@@ -7955,6 +7961,9 @@
7955
7961
  else if (key === 'waterpolo_position') {
7956
7962
  params = params.set(key, exports.GameWaterpoloPosition[filters[key]]);
7957
7963
  }
7964
+ else if (key === 'rugby_position') {
7965
+ params = params.set(key, exports.GameRugbyPosition[filters[key]]);
7966
+ }
7958
7967
  else {
7959
7968
  params = params.set(key, filters[key]);
7960
7969
  }
@@ -7974,6 +7983,9 @@
7974
7983
  if (filters.tournament_ids) {
7975
7984
  params = params.set('tournament_ids', filters.tournament_ids.join(','));
7976
7985
  }
7986
+ if (filters.tournament_season_ids) {
7987
+ params = params.set('tournament_season_ids', filters.tournament_season_ids.join(','));
7988
+ }
7977
7989
  if (filters.is_playoff !== undefined && filters.is_playoff !== null) {
7978
7990
  params = params.set('is_playoff', filters.is_playoff ? '1' : '0');
7979
7991
  }