@mtgame/core 0.1.20 → 0.1.22
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 +2 -1
- package/bundles/mtgame-core.umd.js +10 -2
- 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 +10 -3
- package/esm2015/models/game.js +1 -1
- package/esm5/api/tournament-api.js +11 -3
- package/esm5/models/game.js +1 -1
- package/fesm2015/mtgame-core.js +9 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +10 -2
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export interface TournamentGamesFilters {
|
|
|
25
25
|
teamId?: number;
|
|
26
26
|
playoffStage?: number;
|
|
27
27
|
playoffId?: number;
|
|
28
|
+
isPlayoff?: boolean;
|
|
28
29
|
status?: GameStatuses;
|
|
29
30
|
statuses?: GameStatuses[];
|
|
30
31
|
tournamentCourtId?: number;
|
|
@@ -87,7 +88,7 @@ export declare class TournamentApi {
|
|
|
87
88
|
getEvents(tournamentId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
|
|
88
89
|
getTournamentStages(tournamentId: number): Promise<TournamentStage[]>;
|
|
89
90
|
getPlayoff(tournamentId: number): Promise<Playoff[]>;
|
|
90
|
-
getPlayoffGames(playoffId: number): Promise<Game[]>;
|
|
91
|
+
getPlayoffGames(playoffId: number, playoffNumber?: string): Promise<Game[]>;
|
|
91
92
|
getGamesStages(tournamentId: number): Promise<GameTimelineStages>;
|
|
92
93
|
getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
93
94
|
getTeams(tournamentId: number): Promise<TournamentTeam[]>;
|
|
@@ -5006,10 +5006,15 @@
|
|
|
5006
5006
|
});
|
|
5007
5007
|
});
|
|
5008
5008
|
};
|
|
5009
|
-
TournamentApi.prototype.getPlayoffGames = function (playoffId) {
|
|
5009
|
+
TournamentApi.prototype.getPlayoffGames = function (playoffId, playoffNumber) {
|
|
5010
5010
|
return __awaiter(this, void 0, void 0, function () {
|
|
5011
|
+
var params;
|
|
5011
5012
|
return __generator(this, function (_a) {
|
|
5012
|
-
|
|
5013
|
+
params = new http.HttpParams();
|
|
5014
|
+
if (playoffNumber) {
|
|
5015
|
+
params = params.set('playoff_number', playoffNumber);
|
|
5016
|
+
}
|
|
5017
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_playoff/" + playoffId + "/games/", { params: params }).pipe(operators.map(function (result) { return Game.toFront(result); })).toPromise()];
|
|
5013
5018
|
});
|
|
5014
5019
|
});
|
|
5015
5020
|
};
|
|
@@ -5350,6 +5355,9 @@
|
|
|
5350
5355
|
if (filters.query) {
|
|
5351
5356
|
params = params.set('query', filters.query);
|
|
5352
5357
|
}
|
|
5358
|
+
if (filters.isPlayoff !== undefined && filters.isPlayoff !== null) {
|
|
5359
|
+
params = params.set('is_playoff', filters.isPlayoff ? '1' : '0');
|
|
5360
|
+
}
|
|
5353
5361
|
return params;
|
|
5354
5362
|
}
|
|
5355
5363
|
function applyStatisticFilters(filters, params) {
|