@mtgame/core 0.1.11 → 0.1.13
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-season-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +8 -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-season-api.js +7 -1
- package/esm2015/models/tournament-group.js +2 -1
- package/esm5/api/tournament-season-api.js +9 -1
- package/esm5/models/tournament-group.js +2 -1
- package/fesm2015/mtgame-core.js +6 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +8 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/tournament-group.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2047,6 +2047,7 @@ var TournamentGroup = /** @class */ (function (_super) {
|
|
|
2047
2047
|
mappingFields: {
|
|
2048
2048
|
id: 'id',
|
|
2049
2049
|
name: 'name',
|
|
2050
|
+
sort: 'sort',
|
|
2050
2051
|
tournament_stage_id: 'tournamentStageId'
|
|
2051
2052
|
}
|
|
2052
2053
|
})
|
|
@@ -7313,6 +7314,13 @@ var TournamentSeasonApi = /** @class */ (function () {
|
|
|
7313
7314
|
});
|
|
7314
7315
|
});
|
|
7315
7316
|
};
|
|
7317
|
+
TournamentSeasonApi.prototype.getPlayoffs = function (seasonId) {
|
|
7318
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7319
|
+
return __generator(this, function (_a) {
|
|
7320
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/playoffs/").pipe(map(function (result) { return Playoff.toFront(result); })).toPromise()];
|
|
7321
|
+
});
|
|
7322
|
+
});
|
|
7323
|
+
};
|
|
7316
7324
|
TournamentSeasonApi.prototype.getGamesStages = function (seasonId) {
|
|
7317
7325
|
return __awaiter(this, void 0, void 0, function () {
|
|
7318
7326
|
return __generator(this, function (_a) {
|