@mtgame/core 0.0.34 → 0.0.36

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.
@@ -14,4 +14,5 @@ export declare class BasketballGameApi {
14
14
  getTeamStatistic(gameId: number): Promise<BasketballGameTeamStatistic>;
15
15
  getUserStatistic(gameId: number): Promise<BasketballGameStatistic[]>;
16
16
  getLogs(gameId: number): Promise<BasketballGameLog[]>;
17
+ downloadProtocol(gameId: number, fileType: 'xlsx' | 'pdf'): Promise<any>;
17
18
  }
@@ -2389,6 +2389,14 @@
2389
2389
  });
2390
2390
  });
2391
2391
  };
2392
+ BasketballGameApi.prototype.downloadProtocol = function (gameId, fileType) {
2393
+ return __awaiter(this, void 0, void 0, function () {
2394
+ return __generator(this, function (_a) {
2395
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_basketball_game/" + gameId + "/game_protocol/?file_type=" + fileType, { responseType: 'blob' })
2396
+ .toPromise()];
2397
+ });
2398
+ });
2399
+ };
2392
2400
  BasketballGameApi.ctorParameters = function () { return [
2393
2401
  { type: http.HttpClient },
2394
2402
  { type: ConfigService }