@mtgame/core 0.0.7 → 0.0.9

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.
@@ -21,4 +21,5 @@ export declare class MediaApi {
21
21
  getGameMediaById(gameId: number): Promise<Game>;
22
22
  getGameMedia(gameId: number): Promise<MediaItem[]>;
23
23
  createZip(mediaIds: number[]): Promise<any>;
24
+ downloadMedia(mediaId: number): Promise<any>;
24
25
  }
@@ -982,7 +982,7 @@
982
982
  (function (BasketballStatisticTypes) {
983
983
  BasketballStatisticTypes[BasketballStatisticTypes["standard"] = 1] = "standard";
984
984
  BasketballStatisticTypes[BasketballStatisticTypes["light"] = 2] = "light";
985
- BasketballStatisticTypes[BasketballStatisticTypes["extended"] = 3] = "extended";
985
+ BasketballStatisticTypes[BasketballStatisticTypes["advanced"] = 3] = "advanced";
986
986
  })(exports.BasketballStatisticTypes || (exports.BasketballStatisticTypes = {}));
987
987
 
988
988
  (function (GameTimeTypes) {
@@ -1386,8 +1386,10 @@
1386
1386
  id: 'id',
1387
1387
  status: 'status',
1388
1388
  team: 'team',
1389
+ tournament_team_id: 'tournamentTeamId',
1389
1390
  team_id: 'teamId',
1390
1391
  competitor_team: 'competitorTeam',
1392
+ competitor_tournament_team_id: 'competitorTournamentTeamId',
1391
1393
  competitor_team_id: 'competitorTeamId',
1392
1394
  competitor_team_name: 'competitorTeamName',
1393
1395
  datetime: 'datetime',
@@ -2611,6 +2613,14 @@
2611
2613
  });
2612
2614
  });
2613
2615
  };
2616
+ MediaApi.prototype.downloadMedia = function (mediaId) {
2617
+ return __awaiter(this, void 0, void 0, function () {
2618
+ return __generator(this, function (_a) {
2619
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/media/" + mediaId + "/download/", { responseType: 'blob' })
2620
+ .toPromise()];
2621
+ });
2622
+ });
2623
+ };
2614
2624
  MediaApi.ctorParameters = function () { return [
2615
2625
  { type: http.HttpClient },
2616
2626
  { type: ConfigService }