@mtgame/core 0.0.16 → 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 +13 -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.js +4 -1
- package/esm5/api/tournament-api.js +8 -1
- package/esm5/models/team.js +4 -1
- package/esm5/models/tournament.js +4 -1
- package/fesm2015/mtgame-core.js +11 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +13 -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
|
@@ -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) { };
|
|
@@ -4877,6 +4883,13 @@ var TournamentApi = /** @class */ (function () {
|
|
|
4877
4883
|
});
|
|
4878
4884
|
});
|
|
4879
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
|
+
};
|
|
4880
4893
|
TournamentApi.ctorParameters = function () { return [
|
|
4881
4894
|
{ type: HttpClient },
|
|
4882
4895
|
{ type: ConfigService }
|