@mtgame/core 0.1.0 → 0.1.1

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.
@@ -10,6 +10,7 @@ export interface GameMediaFilters extends TournamentGamesFilters {
10
10
  export interface MediaFilters {
11
11
  mediaType?: 'photo' | 'video' | 'live_video';
12
12
  sort?: string;
13
+ teamId?: number;
13
14
  }
14
15
  export declare class MediaApi {
15
16
  private httpClient;
@@ -5141,7 +5141,7 @@
5141
5141
  }
5142
5142
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/volleyball_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
5143
5143
  total: +result.headers.get('X-Page-Count'),
5144
- data: VolleyballStatistic.toFront(result)
5144
+ data: VolleyballStatistic.toFront(result.body)
5145
5145
  }); })).toPromise()];
5146
5146
  });
5147
5147
  });
@@ -5177,7 +5177,7 @@
5177
5177
  }
5178
5178
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/hockey_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
5179
5179
  total: +result.headers.get('X-Page-Count'),
5180
- data: HockeyStatistic.toFront(result)
5180
+ data: HockeyStatistic.toFront(result.body)
5181
5181
  }); })).toPromise()];
5182
5182
  });
5183
5183
  });
@@ -5213,7 +5213,7 @@
5213
5213
  }
5214
5214
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/football_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
5215
5215
  total: +result.headers.get('X-Page-Count'),
5216
- data: FootballStatistic.toFront(result)
5216
+ data: FootballStatistic.toFront(result.body)
5217
5217
  }); })).toPromise()];
5218
5218
  });
5219
5219
  });
@@ -5249,7 +5249,7 @@
5249
5249
  }
5250
5250
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/handball_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
5251
5251
  total: +result.headers.get('X-Page-Count'),
5252
- data: HandballStatistic.toFront(result)
5252
+ data: HandballStatistic.toFront(result.body)
5253
5253
  }); })).toPromise()];
5254
5254
  });
5255
5255
  });
@@ -5718,6 +5718,9 @@
5718
5718
  if (filters.sort) {
5719
5719
  params = params.set('sort', filters.sort);
5720
5720
  }
5721
+ if (filters.teamId) {
5722
+ params = params.set('team_id', filters.teamId.toString());
5723
+ }
5721
5724
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/media/", { params: params, observe: 'response' })
5722
5725
  .pipe(operators.map(function (response) { return ({
5723
5726
  total: +response.headers.get('X-Page-Count'),