@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/api/tournament-api.d.ts
CHANGED
|
@@ -63,4 +63,5 @@ export declare class TournamentApi {
|
|
|
63
63
|
getBasketballStatistic(filters?: StatisticFilters): Promise<BasketballStatistic[]>;
|
|
64
64
|
getVolleyballStatistic(filters?: StatisticFilters): Promise<VolleyballStatistic[]>;
|
|
65
65
|
getHockeyStatistic(filters?: StatisticFilters): Promise<HockeyStatistic[]>;
|
|
66
|
+
getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
|
|
66
67
|
}
|
|
@@ -884,6 +884,9 @@
|
|
|
884
884
|
if (this.sport.isVolleyball()) {
|
|
885
885
|
classList.push('empty-logo-volleyball');
|
|
886
886
|
}
|
|
887
|
+
if (this.sport.isHockey()) {
|
|
888
|
+
classList.push('empty-logo-hockey');
|
|
889
|
+
}
|
|
887
890
|
return classList.join(' ');
|
|
888
891
|
};
|
|
889
892
|
Team.toFront = function (data) {
|
|
@@ -1152,6 +1155,9 @@
|
|
|
1152
1155
|
if (this.sport.isVolleyball()) {
|
|
1153
1156
|
classList.push('empty-logo-volleyball');
|
|
1154
1157
|
}
|
|
1158
|
+
if (this.sport.isHockey()) {
|
|
1159
|
+
classList.push('empty-logo-hockey');
|
|
1160
|
+
}
|
|
1155
1161
|
return classList.join(' ');
|
|
1156
1162
|
};
|
|
1157
1163
|
Tournament.toFront = function (data) { };
|
|
@@ -5090,6 +5096,13 @@
|
|
|
5090
5096
|
});
|
|
5091
5097
|
});
|
|
5092
5098
|
};
|
|
5099
|
+
TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
|
|
5100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5101
|
+
return __generator(this, function (_a) {
|
|
5102
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/users/").pipe(operators.map(function (result) { return TournamentTeamUser.toFront(result); })).toPromise()];
|
|
5103
|
+
});
|
|
5104
|
+
});
|
|
5105
|
+
};
|
|
5093
5106
|
TournamentApi.ctorParameters = function () { return [
|
|
5094
5107
|
{ type: http.HttpClient },
|
|
5095
5108
|
{ type: ConfigService }
|