@mtgame/core 0.0.15 → 0.0.17

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.
@@ -63,4 +63,5 @@ export declare class TournamentApi {
63
63
  getBasketballStatistic(filters?: StatisticFilters): Promise<BasketballStatistic[]>;
64
64
  getVolleyballStatistic(filters?: StatisticFilters): Promise<VolleyballStatistic[]>;
65
65
  getHockeyStatistic(filters?: StatisticFilters): Promise<HockeyStatistic[]>;
66
+ getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
66
67
  }
@@ -884,6 +884,9 @@
884
884
  if (this.sport.isVolleyball()) {
885
885
  classList.push('empty-logo-volleyball');
886
886
  }
887
+ if (this.sport.isHockey()) {
888
+ classList.push('empty-logo-hockey');
889
+ }
887
890
  return classList.join(' ');
888
891
  };
889
892
  Team.toFront = function (data) {
@@ -1152,6 +1155,9 @@
1152
1155
  if (this.sport.isVolleyball()) {
1153
1156
  classList.push('empty-logo-volleyball');
1154
1157
  }
1158
+ if (this.sport.isHockey()) {
1159
+ classList.push('empty-logo-hockey');
1160
+ }
1155
1161
  return classList.join(' ');
1156
1162
  };
1157
1163
  Tournament.toFront = function (data) { };
@@ -1634,6 +1640,10 @@
1634
1640
  users_count: 'usersCount',
1635
1641
  games: 'games',
1636
1642
  notifications_count: 'notificationsCount',
1643
+ win_normal_time_games_count: 'winNormalTimeGamesCount',
1644
+ lose_normal_time_games_count: 'loseNormalTimeGamesCount',
1645
+ win_overtime_games_count: 'winOvertimeGamesCount',
1646
+ lose_overtime_games_count: 'loseOvertimeGamesCount',
1637
1647
  },
1638
1648
  relation: {
1639
1649
  tournament: Tournament,
@@ -5086,6 +5096,13 @@
5086
5096
  });
5087
5097
  });
5088
5098
  };
5099
+ TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
5100
+ return __awaiter(this, void 0, void 0, function () {
5101
+ return __generator(this, function (_a) {
5102
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/users/").pipe(operators.map(function (result) { return TournamentTeamUser.toFront(result); })).toPromise()];
5103
+ });
5104
+ });
5105
+ };
5089
5106
  TournamentApi.ctorParameters = function () { return [
5090
5107
  { type: http.HttpClient },
5091
5108
  { type: ConfigService }