@mtgame/core 1.0.16 → 1.0.18
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 -1
- package/api/tournament-season-api.d.ts +1 -1
- package/bundles/mtgame-core.umd.js +10 -2
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +5 -2
- package/esm2015/api/tournament-season-api.js +5 -2
- package/esm2015/localization/football-game-log-types.js +3 -1
- package/fesm2015/mtgame-core.js +10 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/football-game-log-types.d.ts +2 -0
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ export declare class TournamentApi {
|
|
|
142
142
|
getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
143
143
|
getGamesDates(tournamentId: number): Promise<any>;
|
|
144
144
|
getGroups(tournamentId: number): Promise<TournamentGroup[]>;
|
|
145
|
-
getTeams(tournamentId: number, groupId?: number, short?: boolean): Promise<TournamentTeam[]>;
|
|
145
|
+
getTeams(tournamentId: number, groupId?: number, short?: boolean, micro?: boolean): Promise<TournamentTeam[]>;
|
|
146
146
|
getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
|
|
147
147
|
getTeamsAchievements(tournamentId: number): Promise<TeamAchievement[]>;
|
|
148
148
|
getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
|
|
@@ -19,7 +19,7 @@ export declare class TournamentSeasonApi {
|
|
|
19
19
|
getGames(seasonId: number, page: number, size: number, filters: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
20
20
|
getEvents(seasonId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
|
|
21
21
|
getGameMedia(seasonId: number, page: number, size: number, filters: GameMediaFilters): Promise<PaginatedResponse<Game[]>>;
|
|
22
|
-
getTeams(seasonId: number, short?: boolean): Promise<TournamentTeam[]>;
|
|
22
|
+
getTeams(seasonId: number, short?: boolean, micro?: boolean): Promise<TournamentTeam[]>;
|
|
23
23
|
getPlayoffs(seasonId: number): Promise<Playoff[]>;
|
|
24
24
|
getGamesStages(seasonId: number): Promise<GameTimelineStages>;
|
|
25
25
|
}
|
|
@@ -8121,7 +8121,7 @@
|
|
|
8121
8121
|
});
|
|
8122
8122
|
});
|
|
8123
8123
|
};
|
|
8124
|
-
TournamentApi.prototype.getTeams = function (tournamentId, groupId, short) {
|
|
8124
|
+
TournamentApi.prototype.getTeams = function (tournamentId, groupId, short, micro) {
|
|
8125
8125
|
return __awaiter(this, void 0, void 0, function () {
|
|
8126
8126
|
var params;
|
|
8127
8127
|
return __generator(this, function (_a) {
|
|
@@ -8132,6 +8132,9 @@
|
|
|
8132
8132
|
if (short) {
|
|
8133
8133
|
params = params.set('short', '1');
|
|
8134
8134
|
}
|
|
8135
|
+
if (micro) {
|
|
8136
|
+
params = params.set('micro', '1');
|
|
8137
|
+
}
|
|
8135
8138
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/", { params: params })
|
|
8136
8139
|
.pipe(operators.map(function (result) { return exports.TournamentTeam.toFront(result); }))
|
|
8137
8140
|
.toPromise()];
|
|
@@ -11529,7 +11532,7 @@
|
|
|
11529
11532
|
});
|
|
11530
11533
|
});
|
|
11531
11534
|
};
|
|
11532
|
-
TournamentSeasonApi.prototype.getTeams = function (seasonId, short) {
|
|
11535
|
+
TournamentSeasonApi.prototype.getTeams = function (seasonId, short, micro) {
|
|
11533
11536
|
return __awaiter(this, void 0, void 0, function () {
|
|
11534
11537
|
var params;
|
|
11535
11538
|
return __generator(this, function (_a) {
|
|
@@ -11537,6 +11540,9 @@
|
|
|
11537
11540
|
if (short) {
|
|
11538
11541
|
params = params.set('short', '1');
|
|
11539
11542
|
}
|
|
11543
|
+
if (micro) {
|
|
11544
|
+
params = params.set('micro', '1');
|
|
11545
|
+
}
|
|
11540
11546
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/teams/", { params: params }).pipe(operators.map(function (result) { return exports.TournamentTeam.toFront(result); })).toPromise()];
|
|
11541
11547
|
});
|
|
11542
11548
|
});
|
|
@@ -14565,6 +14571,7 @@
|
|
|
14565
14571
|
_b$d[exports.FootballGameLogTypes.double_goal] = 'Гол+2',
|
|
14566
14572
|
_b$d[exports.FootballGameLogTypes.super_game] = 'Супер игра',
|
|
14567
14573
|
_b$d[exports.FootballGameLogTypes.color_ball] = 'Цветной мяч',
|
|
14574
|
+
_b$d[exports.FootballGameLogTypes.bonus] = 'Бонус',
|
|
14568
14575
|
_b$d),
|
|
14569
14576
|
_a$d[Locales.en] = (_c$d = {},
|
|
14570
14577
|
_c$d[exports.FootballGameLogTypes.enter_game] = 'Entering the court',
|
|
@@ -14601,6 +14608,7 @@
|
|
|
14601
14608
|
_c$d[exports.FootballGameLogTypes.double_goal] = 'Goal+2',
|
|
14602
14609
|
_c$d[exports.FootballGameLogTypes.super_game] = 'Super game',
|
|
14603
14610
|
_c$d[exports.FootballGameLogTypes.color_ball] = 'Color ball',
|
|
14611
|
+
_c$d[exports.FootballGameLogTypes.bonus] = 'Bonus',
|
|
14604
14612
|
_c$d),
|
|
14605
14613
|
_a$d);
|
|
14606
14614
|
|