@mtgame/core 1.0.1 → 1.0.3

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
  }
@@ -982,7 +982,8 @@
982
982
  ModelInstance({
983
983
  mappingFields: {
984
984
  id: 'id',
985
- name: 'name'
985
+ name: 'name',
986
+ name_en: 'nameEn',
986
987
  }
987
988
  })
988
989
  ], exports.City);
@@ -4740,6 +4741,16 @@
4740
4741
  });
4741
4742
  });
4742
4743
  };
4744
+ BasketballGameApi.prototype.downloadMFBApplication = function (gameId, fileType) {
4745
+ return __awaiter(this, void 0, void 0, function () {
4746
+ return __generator(this, function (_a) {
4747
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_basketball_game/" + gameId + "/mfb_game_application_file/?file_type=" + fileType, {
4748
+ params: new i1.HttpParams().set('file_type', fileType),
4749
+ responseType: 'blob'
4750
+ }).toPromise()];
4751
+ });
4752
+ });
4753
+ };
4743
4754
  return BasketballGameApi;
4744
4755
  }(GameBaseApi));
4745
4756
  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" });