@mtgame/core 0.1.10 → 0.1.12
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-season-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +9 -1
- 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-season-api.js +7 -1
- package/esm2015/models/game-user-limitation.js +3 -2
- package/esm5/api/tournament-season-api.js +9 -1
- package/esm5/models/game-user-limitation.js +3 -2
- package/fesm2015/mtgame-core.js +7 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +9 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game-user-limitation.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { TournamentEvent } from '../models/tournament-event';
|
|
|
9
9
|
import { GameMediaFilters } from './media-api';
|
|
10
10
|
import { TournamentTeam } from '../models/tournament-team';
|
|
11
11
|
import { GameTimelineStages } from '../models/game-timeline-stages';
|
|
12
|
+
import { Playoff } from '../models/playoff';
|
|
12
13
|
export declare class TournamentSeasonApi {
|
|
13
14
|
private httpClient;
|
|
14
15
|
private configService;
|
|
@@ -19,5 +20,6 @@ export declare class TournamentSeasonApi {
|
|
|
19
20
|
getEvents(seasonId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
|
|
20
21
|
getGameMedia(seasonId: number, page: number, size: number, filters: GameMediaFilters): Promise<PaginatedResponse<Game[]>>;
|
|
21
22
|
getTeams(seasonId: number): Promise<TournamentTeam[]>;
|
|
23
|
+
getPlayoffs(seasonId: number): Promise<Playoff[]>;
|
|
22
24
|
getGamesStages(seasonId: number): Promise<GameTimelineStages>;
|
|
23
25
|
}
|
|
@@ -2835,7 +2835,8 @@
|
|
|
2835
2835
|
ModelInstance({
|
|
2836
2836
|
mappingFields: {
|
|
2837
2837
|
min_user_games_count: 'minUserGamesCount',
|
|
2838
|
-
min_user_time: 'minUserTime'
|
|
2838
|
+
min_user_time: 'minUserTime',
|
|
2839
|
+
manual: 'manual',
|
|
2839
2840
|
},
|
|
2840
2841
|
})
|
|
2841
2842
|
], GameUserLimitationTypes);
|
|
@@ -7525,6 +7526,13 @@
|
|
|
7525
7526
|
});
|
|
7526
7527
|
});
|
|
7527
7528
|
};
|
|
7529
|
+
TournamentSeasonApi.prototype.getPlayoffs = function (seasonId) {
|
|
7530
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7531
|
+
return __generator(this, function (_a) {
|
|
7532
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/playoffs/").pipe(operators.map(function (result) { return Playoff.toFront(result); })).toPromise()];
|
|
7533
|
+
});
|
|
7534
|
+
});
|
|
7535
|
+
};
|
|
7528
7536
|
TournamentSeasonApi.prototype.getGamesStages = function (seasonId) {
|
|
7529
7537
|
return __awaiter(this, void 0, void 0, function () {
|
|
7530
7538
|
return __generator(this, function (_a) {
|