@mtgame/core 0.1.38 → 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 +3 -1
- package/bundles/mtgame-core.umd.js +16 -2
- 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 +15 -3
- package/esm5/api/tournament-api.js +18 -3
- package/fesm2015/mtgame-core.js +13 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +16 -2
- 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,10 +5298,24 @@ var TournamentApi = /** @class */ (function () {
|
|
|
5298
5298
|
});
|
|
5299
5299
|
});
|
|
5300
5300
|
};
|
|
5301
|
-
TournamentApi.prototype.
|
|
5301
|
+
TournamentApi.prototype.getGroups = function (tournamentId) {
|
|
5302
5302
|
return __awaiter(this, void 0, void 0, function () {
|
|
5303
5303
|
return __generator(this, function (_a) {
|
|
5304
|
-
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/
|
|
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
|
+
};
|
|
5310
|
+
TournamentApi.prototype.getTeams = function (tournamentId, groupId) {
|
|
5311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5312
|
+
var params;
|
|
5313
|
+
return __generator(this, function (_a) {
|
|
5314
|
+
params = new HttpParams();
|
|
5315
|
+
if (groupId) {
|
|
5316
|
+
params = params.set('group_id', groupId.toString());
|
|
5317
|
+
}
|
|
5318
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/", { params: params })
|
|
5305
5319
|
.pipe(map(function (result) { return TournamentTeam.toFront(result); }))
|
|
5306
5320
|
.toPromise()];
|
|
5307
5321
|
});
|