@mtgame/core 0.1.113 → 0.1.115
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/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +5 -0
- package/api/waterpolo-game-api.d.ts +18 -0
- package/bundles/mtgame-core.umd.js +1074 -170
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +24 -1
- package/esm2015/api/waterpolo-game-api.js +65 -0
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/user-profile.js +18 -1
- package/esm2015/localization/waterpolo-game-log-types.js +34 -0
- package/esm2015/models/basketball-game-statistic.js +2 -1
- package/esm2015/models/basketball-statistic.js +2 -1
- package/esm2015/models/football-game-statistic.js +4 -1
- package/esm2015/models/football-statistic.js +4 -1
- package/esm2015/models/game.js +18 -2
- package/esm2015/models/hockey-game-statistic.js +4 -1
- package/esm2015/models/hockey-statistic.js +4 -1
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/team.js +7 -1
- package/esm2015/models/tournament.js +10 -1
- package/esm2015/models/user.js +4 -1
- package/esm2015/models/waterpolo-game-config.js +44 -0
- package/esm2015/models/waterpolo-game-log.js +125 -0
- package/esm2015/models/waterpolo-game-statistic.js +152 -0
- package/esm2015/models/waterpolo-game-team-statistic.js +27 -0
- package/esm2015/models/waterpolo-profile.js +42 -0
- package/esm2015/models/waterpolo-statistic.js +133 -0
- package/fesm2015/mtgame-core.js +679 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/user-profile.d.ts +16 -0
- package/localization/waterpolo-game-log-types.d.ts +32 -0
- package/models/basketball-game-statistic.d.ts +1 -0
- package/models/basketball-statistic.d.ts +1 -0
- package/models/football-game-statistic.d.ts +1 -0
- package/models/football-statistic.d.ts +1 -0
- package/models/game.d.ts +5 -1
- package/models/hockey-game-statistic.d.ts +1 -0
- package/models/hockey-statistic.d.ts +1 -0
- package/models/public-api.d.ts +6 -0
- package/models/sport.d.ts +7 -1
- package/models/user.d.ts +2 -0
- package/models/waterpolo-game-config.d.ts +19 -0
- package/models/waterpolo-game-log.d.ts +72 -0
- package/models/waterpolo-game-statistic.d.ts +73 -0
- package/models/waterpolo-game-team-statistic.d.ts +9 -0
- package/models/waterpolo-profile.d.ts +19 -0
- package/models/waterpolo-statistic.d.ts +92 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/public-api.d.ts
CHANGED
|
@@ -23,5 +23,6 @@ export * from './tournament-season-api';
|
|
|
23
23
|
export * from './tournament-stage-api';
|
|
24
24
|
export * from './user-api';
|
|
25
25
|
export * from './volleyball-game-api';
|
|
26
|
+
export * from './waterpolo-game-api';
|
|
26
27
|
export * from './public-team-api';
|
|
27
28
|
export * from './public-user-api';
|
package/api/tournament-api.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { HandballStatistic } from '../models/handball-statistic';
|
|
|
20
20
|
import { RugbyStatistic } from '../models/rugby-statistic';
|
|
21
21
|
import { TournamentGroup } from '../models/tournament-group';
|
|
22
22
|
import { TeamAchievement } from '../models/team-achievement';
|
|
23
|
+
import { WaterpoloStatistic } from '../models/waterpolo-statistic';
|
|
23
24
|
export interface TournamentGamesFilters {
|
|
24
25
|
tournamentIds?: number[];
|
|
25
26
|
tournamentSeasonId?: number;
|
|
@@ -122,12 +123,16 @@ export declare class TournamentApi {
|
|
|
122
123
|
getHandballStatisticLeaders(filters: StatisticLeadersFilters): Promise<{
|
|
123
124
|
[key: string]: HandballStatistic[];
|
|
124
125
|
}>;
|
|
126
|
+
getWaterpoloStatisticLeaders(filters: StatisticLeadersFilters): Promise<{
|
|
127
|
+
[key: string]: WaterpoloStatistic[];
|
|
128
|
+
}>;
|
|
125
129
|
getBasketballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<BasketballStatistic[]>>;
|
|
126
130
|
getVolleyballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<VolleyballStatistic[]>>;
|
|
127
131
|
getHockeyStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<HockeyStatistic[]>>;
|
|
128
132
|
getFootballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<FootballStatistic[]>>;
|
|
129
133
|
getHandballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<HandballStatistic[]>>;
|
|
130
134
|
getRugbyStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<RugbyStatistic[]>>;
|
|
135
|
+
getWaterpoloStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<WaterpoloStatistic[]>>;
|
|
131
136
|
getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
|
|
132
137
|
myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
|
|
133
138
|
getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Game } from '../models/game';
|
|
3
|
+
import { ConfigService } from '../services/config.service';
|
|
4
|
+
import { WaterpoloGameLog } from '../models/waterpolo-game-log';
|
|
5
|
+
import { WaterpoloGameStatistic } from '../models/waterpolo-game-statistic';
|
|
6
|
+
import { WaterpoloGameTeamStatistic } from '../models/waterpolo-game-team-statistic';
|
|
7
|
+
import { GameBaseApi } from './game-base-api';
|
|
8
|
+
export declare class WaterpoloGameApi extends GameBaseApi {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected configService: ConfigService;
|
|
11
|
+
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
12
|
+
getById(gameId: number): Promise<Game>;
|
|
13
|
+
getTeamStatistic(gameId: number): Promise<WaterpoloGameTeamStatistic>;
|
|
14
|
+
getUserStatistic(gameId: number): Promise<WaterpoloGameStatistic[]>;
|
|
15
|
+
getLogs(gameId: number): Promise<WaterpoloGameLog[]>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
|
+
}
|