@mtgame/core 0.0.48 → 0.0.50

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.
@@ -908,12 +908,16 @@ var TournamentSeason = /** @class */ (function (_super) {
908
908
  cover: 'cover',
909
909
  preview_image: 'previewImage',
910
910
  status: 'status',
911
+ start_date: 'startDate',
912
+ closed_date: 'closedDate',
911
913
  },
912
914
  relation: {
913
915
  logo: File,
914
916
  cover: File,
915
917
  previewImage: File,
916
918
  status: enumField(TournamentSeasonStatuses),
919
+ startDate: DateField,
920
+ closedDate: DateField,
917
921
  }
918
922
  })
919
923
  ], TournamentSeason);
@@ -2611,6 +2615,13 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
2611
2615
  enumerable: true,
2612
2616
  configurable: true
2613
2617
  });
2618
+ Object.defineProperty(HockeyGameStatistic.prototype, "gameMinutes", {
2619
+ get: function () {
2620
+ return Math.floor(this.gameTime / 60);
2621
+ },
2622
+ enumerable: true,
2623
+ configurable: true
2624
+ });
2614
2625
  HockeyGameStatistic.toFront = function (data) { };
2615
2626
  HockeyGameStatistic.toBack = function (data) { };
2616
2627
  __decorate([
@@ -3065,6 +3076,9 @@ var LeagueApi = /** @class */ (function () {
3065
3076
  statuses = filters.statuses.map(function (i) { return GameStatuses[i]; });
3066
3077
  params = params.set('statuses', statuses.join(','));
3067
3078
  }
3079
+ if (filters.tournamentCourtId) {
3080
+ params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
3081
+ }
3068
3082
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/games/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
3069
3083
  total: +result.headers.get('X-Page-Count'),
3070
3084
  data: Game.toFront(result.body)
@@ -5222,6 +5236,9 @@ var TournamentApi = /** @class */ (function () {
5222
5236
  statuses = filters.statuses.map(function (i) { return GameStatuses[i]; });
5223
5237
  params = params.set('statuses', statuses.join(','));
5224
5238
  }
5239
+ if (filters.tournamentCourtId) {
5240
+ params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
5241
+ }
5225
5242
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/games/", { params: params, observe: 'response' })
5226
5243
  .pipe(map(function (result) { return ({
5227
5244
  total: +result.headers.get('X-Page-Count'),
@@ -5550,6 +5567,9 @@ var TournamentSeasonApi = /** @class */ (function () {
5550
5567
  statuses = filters.statuses.map(function (i) { return GameStatuses[i]; });
5551
5568
  params = params.set('statuses', statuses.join(','));
5552
5569
  }
5570
+ if (filters.tournamentCourtId) {
5571
+ params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
5572
+ }
5553
5573
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/games/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
5554
5574
  total: +result.headers.get('X-Page-Count'),
5555
5575
  data: Game.toFront(result.body)