@mtgame/core 0.1.37 → 0.1.39
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 +10 -9
- package/api/rugby-game-api.d.ts +16 -0
- package/api/tournament-api.d.ts +3 -1
- package/bundles/mtgame-core.umd.js +676 -159
- 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/public-api.js +10 -9
- package/esm2015/api/rugby-game-api.js +50 -0
- package/esm2015/api/tournament-api.js +18 -3
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/rugby-game-log-types.js +36 -0
- package/esm2015/localization/user-profile.js +10 -1
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/rugby-game-config.js +34 -0
- package/esm2015/models/rugby-game-log.js +124 -0
- package/esm2015/models/rugby-game-statistic.js +51 -0
- package/esm2015/models/rugby-game-team-statistic.js +27 -0
- package/esm2015/models/rugby-profile.js +37 -0
- package/esm2015/models/rugby-statistic.js +84 -0
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/tournament.js +4 -2
- package/esm2015/models/user.js +4 -1
- package/esm5/api/public-api.js +10 -9
- package/esm5/api/rugby-game-api.js +61 -0
- package/esm5/api/tournament-api.js +22 -3
- package/esm5/localization/public-api.js +2 -1
- package/esm5/localization/rugby-game-log-types.js +37 -0
- package/esm5/localization/user-profile.js +11 -2
- package/esm5/models/public-api.js +7 -1
- package/esm5/models/rugby-game-config.js +39 -0
- package/esm5/models/rugby-game-log.js +132 -0
- package/esm5/models/rugby-game-statistic.js +64 -0
- package/esm5/models/rugby-game-team-statistic.js +32 -0
- package/esm5/models/rugby-profile.js +42 -0
- package/esm5/models/rugby-statistic.js +93 -0
- package/esm5/models/sport.js +13 -1
- package/esm5/models/tournament.js +4 -2
- package/esm5/models/user.js +4 -1
- package/fesm2015/mtgame-core.js +445 -4
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +662 -160
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/rugby-game-log-types.d.ts +35 -0
- package/localization/user-profile.d.ts +9 -0
- package/models/public-api.d.ts +6 -0
- package/models/rugby-game-config.d.ts +15 -0
- package/models/rugby-game-log.d.ts +71 -0
- package/models/rugby-game-statistic.d.ts +29 -0
- package/models/rugby-game-team-statistic.d.ts +8 -0
- package/models/rugby-profile.d.ts +16 -0
- package/models/rugby-statistic.d.ts +52 -0
- package/models/sport.d.ts +7 -1
- package/models/tournament.d.ts +2 -0
- package/models/user.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/public-api.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './basketball-game-api';
|
|
2
2
|
export * from './feedback-api';
|
|
3
3
|
export * from './file-api';
|
|
4
4
|
export * from './game-base-api';
|
|
5
5
|
export * from './hockey-game-api';
|
|
6
6
|
export * from './football-game-api';
|
|
7
7
|
export * from './handball-game-api';
|
|
8
|
-
export
|
|
8
|
+
export * from './league-api';
|
|
9
9
|
export * from './league-news-api';
|
|
10
10
|
export * from './league-player-api';
|
|
11
|
-
export
|
|
11
|
+
export * from './media-api';
|
|
12
12
|
export * from './notification-api';
|
|
13
13
|
export * from './notification-base-api';
|
|
14
14
|
export * from './org-notification-api';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export * from './paginated-response.interface';
|
|
16
|
+
export * from './reference-api';
|
|
17
|
+
export * from './rugby-game-api';
|
|
17
18
|
export * from './team-api';
|
|
18
19
|
export * from './team-event-api';
|
|
19
|
-
export
|
|
20
|
-
export
|
|
20
|
+
export * from './tournament-api';
|
|
21
|
+
export * from './tournament-join-api';
|
|
21
22
|
export * from './tournament-season-api';
|
|
22
|
-
export
|
|
23
|
+
export * from './tournament-stage-api';
|
|
23
24
|
export * from './user-api';
|
|
24
|
-
export
|
|
25
|
+
export * from './volleyball-game-api';
|
|
25
26
|
export * from './public-team-api';
|
|
26
27
|
export * from './public-user-api';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Game } from '../models/game';
|
|
3
|
+
import { ConfigService } from '../services/config.service';
|
|
4
|
+
import { GameBaseApi } from './game-base-api';
|
|
5
|
+
import { RugbyGameTeamStatistic } from '../models/rugby-game-team-statistic';
|
|
6
|
+
import { RugbyGameStatistic } from '../models/rugby-game-statistic';
|
|
7
|
+
import { RugbyGameLog } from '../models/rugby-game-log';
|
|
8
|
+
export declare class RugbyGameApi 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<RugbyGameTeamStatistic>;
|
|
14
|
+
getUserStatistic(gameId: number): Promise<RugbyGameStatistic[]>;
|
|
15
|
+
getLogs(gameId: number): Promise<RugbyGameLog[]>;
|
|
16
|
+
}
|
package/api/tournament-api.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { HockeyStatistic } from '../models/hockey-statistic';
|
|
|
17
17
|
import { FootballStatistic } from '../models/football-statistic';
|
|
18
18
|
import { LeagueUserPermissions } from '../models/league-user';
|
|
19
19
|
import { HandballStatistic } from '../models/handball-statistic';
|
|
20
|
+
import { RugbyStatistic } from '../models/rugby-statistic';
|
|
20
21
|
export interface TournamentGamesFilters {
|
|
21
22
|
tournamentIds?: number[];
|
|
22
23
|
tournamentSeasonId?: number;
|
|
@@ -93,7 +94,7 @@ export declare class TournamentApi {
|
|
|
93
94
|
getPlayoffGames(playoffId: number, playoffNumber?: string): Promise<Game[]>;
|
|
94
95
|
getGamesStages(tournamentId: number): Promise<GameTimelineStages>;
|
|
95
96
|
getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
96
|
-
getTeams(tournamentId: number): Promise<TournamentTeam[]>;
|
|
97
|
+
getTeams(tournamentId: number, groupId?: number): Promise<TournamentTeam[]>;
|
|
97
98
|
getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
|
|
98
99
|
getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
|
|
99
100
|
getUserById(userId: number): Promise<TournamentTeamUser>;
|
|
@@ -118,6 +119,7 @@ export declare class TournamentApi {
|
|
|
118
119
|
getHockeyStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<HockeyStatistic[]>>;
|
|
119
120
|
getFootballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<FootballStatistic[]>>;
|
|
120
121
|
getHandballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<HandballStatistic[]>>;
|
|
122
|
+
getRugbyStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<RugbyStatistic[]>>;
|
|
121
123
|
getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
|
|
122
124
|
myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
|
|
123
125
|
getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
|