@mtgame/core 0.0.15 → 0.0.17
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 +17 -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 +6 -1
- package/esm2015/models/team.js +4 -1
- package/esm2015/models/tournament-team.js +5 -1
- package/esm2015/models/tournament.js +4 -1
- package/esm5/api/tournament-api.js +8 -1
- package/esm5/models/team.js +4 -1
- package/esm5/models/tournament-team.js +5 -1
- package/esm5/models/tournament.js +4 -1
- package/fesm2015/mtgame-core.js +15 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +17 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/tournament-team.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -671,6 +671,9 @@ var Team = /** @class */ (function (_super) {
|
|
|
671
671
|
if (this.sport.isVolleyball()) {
|
|
672
672
|
classList.push('empty-logo-volleyball');
|
|
673
673
|
}
|
|
674
|
+
if (this.sport.isHockey()) {
|
|
675
|
+
classList.push('empty-logo-hockey');
|
|
676
|
+
}
|
|
674
677
|
return classList.join(' ');
|
|
675
678
|
};
|
|
676
679
|
Team.toFront = function (data) {
|
|
@@ -939,6 +942,9 @@ var Tournament = /** @class */ (function (_super) {
|
|
|
939
942
|
if (this.sport.isVolleyball()) {
|
|
940
943
|
classList.push('empty-logo-volleyball');
|
|
941
944
|
}
|
|
945
|
+
if (this.sport.isHockey()) {
|
|
946
|
+
classList.push('empty-logo-hockey');
|
|
947
|
+
}
|
|
942
948
|
return classList.join(' ');
|
|
943
949
|
};
|
|
944
950
|
Tournament.toFront = function (data) { };
|
|
@@ -1421,6 +1427,10 @@ var TournamentTeam = /** @class */ (function (_super) {
|
|
|
1421
1427
|
users_count: 'usersCount',
|
|
1422
1428
|
games: 'games',
|
|
1423
1429
|
notifications_count: 'notificationsCount',
|
|
1430
|
+
win_normal_time_games_count: 'winNormalTimeGamesCount',
|
|
1431
|
+
lose_normal_time_games_count: 'loseNormalTimeGamesCount',
|
|
1432
|
+
win_overtime_games_count: 'winOvertimeGamesCount',
|
|
1433
|
+
lose_overtime_games_count: 'loseOvertimeGamesCount',
|
|
1424
1434
|
},
|
|
1425
1435
|
relation: {
|
|
1426
1436
|
tournament: Tournament,
|
|
@@ -4873,6 +4883,13 @@ var TournamentApi = /** @class */ (function () {
|
|
|
4873
4883
|
});
|
|
4874
4884
|
});
|
|
4875
4885
|
};
|
|
4886
|
+
TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
|
|
4887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4888
|
+
return __generator(this, function (_a) {
|
|
4889
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/users/").pipe(map(function (result) { return TournamentTeamUser.toFront(result); })).toPromise()];
|
|
4890
|
+
});
|
|
4891
|
+
});
|
|
4892
|
+
};
|
|
4876
4893
|
TournamentApi.ctorParameters = function () { return [
|
|
4877
4894
|
{ type: HttpClient },
|
|
4878
4895
|
{ type: ConfigService }
|