@mtgame/core 1.0.6 → 1.0.7
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.
- package/api/tournament-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +10 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +9 -1
- package/fesm2015/mtgame-core.js +8 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export declare class TournamentApi {
|
|
|
180
180
|
getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
|
|
181
181
|
getTournamentUserTournaments(tournamentTeamUserId: number): Promise<Tournament[]>;
|
|
182
182
|
getTournamentTeamUsersLimitation(tournamentTeamId: number): Promise<GameUserLimitations[]>;
|
|
183
|
+
downloadTeamSanctionList(tournamentTeamId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
183
184
|
}
|
|
184
185
|
export declare function applyGamesFilters(filters: TournamentGamesFilters, params: HttpParams): HttpParams;
|
|
185
186
|
export declare function applyStatisticFilters(filters: StatisticFilters): object;
|
|
@@ -8495,6 +8495,16 @@
|
|
|
8495
8495
|
});
|
|
8496
8496
|
});
|
|
8497
8497
|
};
|
|
8498
|
+
TournamentApi.prototype.downloadTeamSanctionList = function (tournamentTeamId, fileType) {
|
|
8499
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8500
|
+
return __generator(this, function (_a) {
|
|
8501
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/sanction_list_file/?file_type=" + fileType, {
|
|
8502
|
+
params: new i1.HttpParams().set('file_type', fileType),
|
|
8503
|
+
responseType: 'blob'
|
|
8504
|
+
}).toPromise()];
|
|
8505
|
+
});
|
|
8506
|
+
});
|
|
8507
|
+
};
|
|
8498
8508
|
return TournamentApi;
|
|
8499
8509
|
}());
|
|
8500
8510
|
TournamentApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TournamentApi_Factory() { return new TournamentApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: TournamentApi, providedIn: "root" });
|