@mtgame/core 1.0.35 → 1.0.36
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/league-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +9 -6
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/league-api.js +4 -1
- package/esm2015/models/public-api.js +2 -1
- package/fesm2015/mtgame-core.js +4 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/public-api.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/league-api.d.ts
CHANGED
|
@@ -8977,7 +8977,7 @@
|
|
|
8977
8977
|
})
|
|
8978
8978
|
], exports.TeamsAndUsers);
|
|
8979
8979
|
|
|
8980
|
-
|
|
8980
|
+
exports.SeasonTournament = /** @class */ (function (_super) {
|
|
8981
8981
|
__extends(SeasonTournament, _super);
|
|
8982
8982
|
function SeasonTournament() {
|
|
8983
8983
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -8988,18 +8988,18 @@
|
|
|
8988
8988
|
}(BaseModel));
|
|
8989
8989
|
__decorate([
|
|
8990
8990
|
ToFrontHook
|
|
8991
|
-
], SeasonTournament, "toFront", null);
|
|
8991
|
+
], exports.SeasonTournament, "toFront", null);
|
|
8992
8992
|
__decorate([
|
|
8993
8993
|
ToBackHook
|
|
8994
|
-
], SeasonTournament, "toBack", null);
|
|
8995
|
-
SeasonTournament = __decorate([
|
|
8994
|
+
], exports.SeasonTournament, "toBack", null);
|
|
8995
|
+
exports.SeasonTournament = __decorate([
|
|
8996
8996
|
ModelInstance({
|
|
8997
8997
|
mappingFields: {
|
|
8998
8998
|
id: 'id',
|
|
8999
8999
|
name: 'name',
|
|
9000
9000
|
},
|
|
9001
9001
|
})
|
|
9002
|
-
], SeasonTournament);
|
|
9002
|
+
], exports.SeasonTournament);
|
|
9003
9003
|
|
|
9004
9004
|
exports.TournamentFilterStatusEnum = void 0;
|
|
9005
9005
|
(function (TournamentFilterStatusEnum) {
|
|
@@ -9030,7 +9030,7 @@
|
|
|
9030
9030
|
LeagueApi.prototype.getSeasonTournaments = function (leagueId) {
|
|
9031
9031
|
return __awaiter(this, void 0, void 0, function () {
|
|
9032
9032
|
return __generator(this, function (_a) {
|
|
9033
|
-
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/season_tournaments/").pipe(operators.map(function (response) { return SeasonTournament.toFront(response); })).toPromise()];
|
|
9033
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/season_tournaments/").pipe(operators.map(function (response) { return exports.SeasonTournament.toFront(response); })).toPromise()];
|
|
9034
9034
|
});
|
|
9035
9035
|
});
|
|
9036
9036
|
};
|
|
@@ -9196,6 +9196,9 @@
|
|
|
9196
9196
|
{ type: ConfigService }
|
|
9197
9197
|
]; };
|
|
9198
9198
|
function applyTournamentListFilters(params, filters) {
|
|
9199
|
+
if (filters.search) {
|
|
9200
|
+
params = params.set('search', filters.search);
|
|
9201
|
+
}
|
|
9199
9202
|
if (filters.statuses) {
|
|
9200
9203
|
params = params.set('statuses', filters.statuses.map(function (s) { return exports.TournamentStatuses[s]; }).join(','));
|
|
9201
9204
|
}
|