@mtgame/core 0.1.39 → 0.1.40
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 +2 -0
- package/bundles/mtgame-core.umd.js +9 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/tournament-api.js +9 -1
- package/esm5/api/tournament-api.js +11 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +9 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -5298,6 +5298,15 @@ var TournamentApi = /** @class */ (function () {
|
|
|
5298
5298
|
});
|
|
5299
5299
|
});
|
|
5300
5300
|
};
|
|
5301
|
+
TournamentApi.prototype.getGroups = function (tournamentId) {
|
|
5302
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5303
|
+
return __generator(this, function (_a) {
|
|
5304
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/groups/")
|
|
5305
|
+
.pipe(map(function (result) { return TournamentGroup.toFront(result); }))
|
|
5306
|
+
.toPromise()];
|
|
5307
|
+
});
|
|
5308
|
+
});
|
|
5309
|
+
};
|
|
5301
5310
|
TournamentApi.prototype.getTeams = function (tournamentId, groupId) {
|
|
5302
5311
|
return __awaiter(this, void 0, void 0, function () {
|
|
5303
5312
|
var params;
|