@mtgame/core 0.1.128 → 0.1.130
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/league-api.d.ts +2 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +13 -2
- package/api/tournament-round-api.d.ts +23 -0
- package/bundles/mtgame-core.umd.js +379 -9
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/league-api.js +7 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +36 -4
- package/esm2015/api/tournament-round-api.js +71 -0
- package/esm2015/models/base-statistic.js +1 -1
- package/esm2015/models/basketball-statistic.js +4 -1
- package/esm2015/models/football-statistic.js +9 -1
- package/esm2015/models/game-timeline-stages.js +2 -1
- package/esm2015/models/game-user.js +2 -1
- package/esm2015/models/game.js +14 -1
- package/esm2015/models/handball-statistic.js +4 -1
- package/esm2015/models/hockey-statistic.js +4 -1
- package/esm2015/models/league-court.js +3 -2
- package/esm2015/models/playoff.js +4 -2
- package/esm2015/models/public-api.js +4 -1
- package/esm2015/models/rugby-statistic.js +7 -1
- package/esm2015/models/season-tournament.js +22 -0
- package/esm2015/models/tournament-division.js +27 -0
- package/esm2015/models/tournament-group.js +4 -2
- package/esm2015/models/tournament-round-team.js +95 -0
- package/esm2015/models/tournament-round.js +36 -0
- package/esm2015/models/tournament-team.js +4 -1
- package/esm2015/models/tournament.js +2 -1
- package/esm2015/models/volleyball-statistic.js +4 -1
- package/esm2015/models/waterpolo-statistic.js +4 -1
- package/esm2015/storage/store.js +4 -4
- package/esm2015/utils/array.js +2 -2
- package/fesm2015/mtgame-core.js +316 -11
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/base-statistic.d.ts +3 -1
- package/models/basketball-statistic.d.ts +3 -0
- package/models/football-statistic.d.ts +6 -0
- package/models/game-timeline-stages.d.ts +1 -0
- package/models/game-user.d.ts +1 -0
- package/models/game.d.ts +3 -1
- package/models/handball-statistic.d.ts +3 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/models/league-court.d.ts +1 -0
- package/models/playoff.d.ts +2 -0
- package/models/public-api.d.ts +3 -0
- package/models/rugby-statistic.d.ts +3 -1
- package/models/season-tournament.d.ts +7 -0
- package/models/tournament-division.d.ts +9 -0
- package/models/tournament-group.d.ts +2 -0
- package/models/tournament-round-team.d.ts +51 -0
- package/models/tournament-round.d.ts +17 -0
- package/models/tournament-team.d.ts +2 -0
- package/models/tournament.d.ts +1 -0
- package/models/volleyball-statistic.d.ts +3 -0
- package/models/waterpolo-statistic.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
- package/storage/store.d.ts +1 -1
package/api/league-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { LeagueCourt } from '../models/league-court';
|
|
|
12
12
|
import { BannerLocation, LeagueBanner } from '../models/league-banner';
|
|
13
13
|
import { LeagueDocument } from '../models/league-document';
|
|
14
14
|
import { TeamsAndUsers } from '../models/teams-and-users';
|
|
15
|
+
import { SeasonTournament } from '../models/season-tournament';
|
|
15
16
|
export interface TournamentListFilters {
|
|
16
17
|
statuses: TournamentStatuses[];
|
|
17
18
|
}
|
|
@@ -21,6 +22,7 @@ export declare class LeagueApi {
|
|
|
21
22
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
22
23
|
getByAlias(alias: string): Promise<League>;
|
|
23
24
|
getByDomain(domain: string): Promise<League>;
|
|
25
|
+
getSeasonTournaments(leagueId: number): Promise<SeasonTournament[]>;
|
|
24
26
|
getTournaments(leagueId: number, filters?: TournamentListFilters): Promise<Tournament[]>;
|
|
25
27
|
getEvents(leagueId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
|
|
26
28
|
getTournamentSeasons(leagueId: number): Promise<TournamentSeason[]>;
|
package/api/public-api.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './team-api';
|
|
|
19
19
|
export * from './team-event-api';
|
|
20
20
|
export * from './tournament-api';
|
|
21
21
|
export * from './tournament-join-api';
|
|
22
|
+
export * from './tournament-round-api';
|
|
22
23
|
export * from './tournament-season-api';
|
|
23
24
|
export * from './tournament-stage-api';
|
|
24
25
|
export * from './user-api';
|
package/api/tournament-api.d.ts
CHANGED
|
@@ -21,10 +21,14 @@ import { RugbyStatistic } from '../models/rugby-statistic';
|
|
|
21
21
|
import { TournamentGroup } from '../models/tournament-group';
|
|
22
22
|
import { TeamAchievement } from '../models/team-achievement';
|
|
23
23
|
import { WaterpoloStatistic } from '../models/waterpolo-statistic';
|
|
24
|
+
import { TournamentRound } from '../models/tournament-round';
|
|
25
|
+
import { TournamentDivision } from '../models/tournament-division';
|
|
24
26
|
export interface TournamentGamesFilters {
|
|
25
27
|
tournamentIds?: number[];
|
|
26
28
|
tournamentSeasonId?: number;
|
|
27
29
|
tournamentStageId?: number;
|
|
30
|
+
tournamentRoundId?: number;
|
|
31
|
+
divisionId?: number;
|
|
28
32
|
tournamentTour?: number;
|
|
29
33
|
teamId?: number;
|
|
30
34
|
playoffStage?: number;
|
|
@@ -40,6 +44,7 @@ export interface TournamentGamesFilters {
|
|
|
40
44
|
}
|
|
41
45
|
export declare type StatisticGroupByTypes = 'team' | 'user' | 'team_user' | 'tournament_team' | 'league_player' | 'tournament_team_user' | 'month' | 'win_loses';
|
|
42
46
|
export interface StatisticFilters {
|
|
47
|
+
league_id?: number;
|
|
43
48
|
tournament_id?: number;
|
|
44
49
|
tournament_ids?: number[];
|
|
45
50
|
tournament_season_id?: number;
|
|
@@ -50,6 +55,9 @@ export interface StatisticFilters {
|
|
|
50
55
|
team_user_id?: number;
|
|
51
56
|
user_id?: number;
|
|
52
57
|
tournament_stage_id?: number;
|
|
58
|
+
tournament_round_id?: number;
|
|
59
|
+
division_id?: number;
|
|
60
|
+
tournament_group_id?: number;
|
|
53
61
|
tournament_tour?: number;
|
|
54
62
|
playoff_stage?: number;
|
|
55
63
|
playoff_round?: number;
|
|
@@ -92,16 +100,19 @@ export declare class TournamentApi {
|
|
|
92
100
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
93
101
|
getById(tournamentId: number): Promise<Tournament>;
|
|
94
102
|
getByAlias(leagueId: number, alias: string): Promise<Tournament>;
|
|
103
|
+
getSeasonTournaments(seasonTournamentId: number): Promise<Tournament[]>;
|
|
95
104
|
getNews(tournamentId: number): Promise<TournamentNews[]>;
|
|
96
105
|
getEvents(tournamentId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
|
|
97
106
|
getTournamentStages(tournamentId: number): Promise<TournamentStage[]>;
|
|
107
|
+
getTournamentRounds(tournamentId: number): Promise<TournamentRound[]>;
|
|
108
|
+
getTournamentDivisions(tournamentId: number): Promise<TournamentDivision[]>;
|
|
98
109
|
getPlayoff(tournamentId: number): Promise<Playoff[]>;
|
|
99
110
|
getPlayoffGames(playoffId: number, playoffNumber?: string): Promise<Game[]>;
|
|
100
|
-
getGamesStages(tournamentId: number): Promise<GameTimelineStages>;
|
|
111
|
+
getGamesStages(tournamentId: number, roundId?: number): Promise<GameTimelineStages>;
|
|
101
112
|
getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
102
113
|
getGamesDates(tournamentId: number): Promise<any>;
|
|
103
114
|
getGroups(tournamentId: number): Promise<TournamentGroup[]>;
|
|
104
|
-
getTeams(tournamentId: number, groupId?: number): Promise<TournamentTeam[]>;
|
|
115
|
+
getTeams(tournamentId: number, groupId?: number, short?: boolean): Promise<TournamentTeam[]>;
|
|
105
116
|
getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
|
|
106
117
|
getTeamsAchievements(tournamentId: number): Promise<TeamAchievement[]>;
|
|
107
118
|
getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ConfigService } from '../services/config.service';
|
|
3
|
+
import { TournamentRound } from '../models/tournament-round';
|
|
4
|
+
import { TournamentRoundTeam } from '../models/tournament-round-team';
|
|
5
|
+
import { Playoff } from '../models/playoff';
|
|
6
|
+
import { TournamentGroup } from '../models/tournament-group';
|
|
7
|
+
import { TournamentGamesFilters } from './tournament-api';
|
|
8
|
+
import { PaginatedResponse } from './paginated-response.interface';
|
|
9
|
+
import { Game } from '../models/game';
|
|
10
|
+
export interface TournamentRoundTeamsFilters {
|
|
11
|
+
groupId?: number;
|
|
12
|
+
divisionId?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class TournamentRoundApi {
|
|
15
|
+
private httpClient;
|
|
16
|
+
private configService;
|
|
17
|
+
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
18
|
+
getById(tournamentRoundId: number): Promise<TournamentRound>;
|
|
19
|
+
getTeams(tournamentRoundId: number, filters?: TournamentRoundTeamsFilters): Promise<TournamentRoundTeam[]>;
|
|
20
|
+
getPlayoffs(tournamentRoundId: number): Promise<Playoff[]>;
|
|
21
|
+
getGroups(tournamentRoundId: number): Promise<TournamentGroup[]>;
|
|
22
|
+
getGames(roundId: number, page: number, size: number, filters: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
23
|
+
}
|