@mtgame/core 1.0.36 → 1.0.37

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 HockeyGameApi extends GameBaseApi {
15
15
  getLogs(gameId: number): Promise<HockeyGameLog[]>;
16
16
  downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
17
17
  downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
18
+ downloadShlApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
18
19
  }
@@ -5680,6 +5680,16 @@
5680
5680
  });
5681
5681
  });
5682
5682
  };
5683
+ HockeyGameApi.prototype.downloadShlApplication = function (gameId, format, type) {
5684
+ return __awaiter(this, void 0, void 0, function () {
5685
+ return __generator(this, function (_a) {
5686
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_hockey_game/" + gameId + "/shl_game_application_file/", {
5687
+ params: new i1.HttpParams().set('file_type', format).set('application_type', type),
5688
+ responseType: 'blob'
5689
+ }).toPromise()];
5690
+ });
5691
+ });
5692
+ };
5683
5693
  return HockeyGameApi;
5684
5694
  }(GameBaseApi));
5685
5695
  HockeyGameApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HockeyGameApi_Factory() { return new HockeyGameApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: HockeyGameApi, providedIn: "root" });