@mtgame/core 0.1.21 → 0.1.23

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.
@@ -4793,10 +4793,15 @@ var TournamentApi = /** @class */ (function () {
4793
4793
  });
4794
4794
  });
4795
4795
  };
4796
- TournamentApi.prototype.getPlayoffGames = function (playoffId) {
4796
+ TournamentApi.prototype.getPlayoffGames = function (playoffId, playoffNumber) {
4797
4797
  return __awaiter(this, void 0, void 0, function () {
4798
+ var params;
4798
4799
  return __generator(this, function (_a) {
4799
- return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_playoff/" + playoffId + "/games/").pipe(map(function (result) { return Game.toFront(result); })).toPromise()];
4800
+ params = new HttpParams();
4801
+ if (playoffNumber) {
4802
+ params = params.set('playoff_number', playoffNumber);
4803
+ }
4804
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_playoff/" + playoffId + "/games/", { params: params }).pipe(map(function (result) { return Game.toFront(result); })).toPromise()];
4800
4805
  });
4801
4806
  });
4802
4807
  };
@@ -8045,6 +8050,10 @@ var PublicUserApi = /** @class */ (function () {
8045
8050
  var params = new HttpParams().set('season_id', seasonId.toString());
8046
8051
  return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_user/" + userId + "/tournament_user/", { params: params }).pipe(map(function (result) { return TournamentTeamUser.toFront(result); })).toPromise();
8047
8052
  };
8053
+ PublicUserApi.prototype.getLeaguePlayer = function (userId, leagueId) {
8054
+ var params = new HttpParams().set('league_id', leagueId.toString());
8055
+ return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_user/" + userId + "/league_player/", { params: params }).pipe(map(function (result) { return LeaguePlayer.toFront(result); })).toPromise();
8056
+ };
8048
8057
  PublicUserApi.ctorParameters = function () { return [
8049
8058
  { type: HttpClient },
8050
8059
  { type: ConfigService }