@mtgame/core 1.0.1 → 1.0.2

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.
@@ -15,4 +15,5 @@ export declare class BasketballGameApi extends GameBaseApi {
15
15
  getLogs(gameId: number): Promise<BasketballGameLog[]>;
16
16
  downloadProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
17
17
  downloadFibaProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
18
+ downloadMFBApplication(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
18
19
  }
@@ -4740,6 +4740,16 @@
4740
4740
  });
4741
4741
  });
4742
4742
  };
4743
+ BasketballGameApi.prototype.downloadMFBApplication = function (gameId, fileType) {
4744
+ return __awaiter(this, void 0, void 0, function () {
4745
+ return __generator(this, function (_a) {
4746
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_basketball_game/" + gameId + "/mfb_game_application_file/?file_type=" + fileType, {
4747
+ params: new i1.HttpParams().set('file_type', fileType),
4748
+ responseType: 'blob'
4749
+ }).toPromise()];
4750
+ });
4751
+ });
4752
+ };
4743
4753
  return BasketballGameApi;
4744
4754
  }(GameBaseApi));
4745
4755
  BasketballGameApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function BasketballGameApi_Factory() { return new BasketballGameApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: BasketballGameApi, providedIn: "root" });