@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.
Files changed (58) hide show
  1. package/api/public-api.d.ts +10 -9
  2. package/api/rugby-game-api.d.ts +16 -0
  3. package/api/tournament-api.d.ts +3 -1
  4. package/bundles/mtgame-core.umd.js +676 -159
  5. package/bundles/mtgame-core.umd.js.map +1 -1
  6. package/bundles/mtgame-core.umd.min.js +1 -1
  7. package/bundles/mtgame-core.umd.min.js.map +1 -1
  8. package/esm2015/api/public-api.js +10 -9
  9. package/esm2015/api/rugby-game-api.js +50 -0
  10. package/esm2015/api/tournament-api.js +18 -3
  11. package/esm2015/localization/public-api.js +2 -1
  12. package/esm2015/localization/rugby-game-log-types.js +36 -0
  13. package/esm2015/localization/user-profile.js +10 -1
  14. package/esm2015/models/public-api.js +7 -1
  15. package/esm2015/models/rugby-game-config.js +34 -0
  16. package/esm2015/models/rugby-game-log.js +124 -0
  17. package/esm2015/models/rugby-game-statistic.js +51 -0
  18. package/esm2015/models/rugby-game-team-statistic.js +27 -0
  19. package/esm2015/models/rugby-profile.js +37 -0
  20. package/esm2015/models/rugby-statistic.js +84 -0
  21. package/esm2015/models/sport.js +13 -1
  22. package/esm2015/models/tournament.js +4 -2
  23. package/esm2015/models/user.js +4 -1
  24. package/esm5/api/public-api.js +10 -9
  25. package/esm5/api/rugby-game-api.js +61 -0
  26. package/esm5/api/tournament-api.js +22 -3
  27. package/esm5/localization/public-api.js +2 -1
  28. package/esm5/localization/rugby-game-log-types.js +37 -0
  29. package/esm5/localization/user-profile.js +11 -2
  30. package/esm5/models/public-api.js +7 -1
  31. package/esm5/models/rugby-game-config.js +39 -0
  32. package/esm5/models/rugby-game-log.js +132 -0
  33. package/esm5/models/rugby-game-statistic.js +64 -0
  34. package/esm5/models/rugby-game-team-statistic.js +32 -0
  35. package/esm5/models/rugby-profile.js +42 -0
  36. package/esm5/models/rugby-statistic.js +93 -0
  37. package/esm5/models/sport.js +13 -1
  38. package/esm5/models/tournament.js +4 -2
  39. package/esm5/models/user.js +4 -1
  40. package/fesm2015/mtgame-core.js +445 -4
  41. package/fesm2015/mtgame-core.js.map +1 -1
  42. package/fesm5/mtgame-core.js +662 -160
  43. package/fesm5/mtgame-core.js.map +1 -1
  44. package/localization/public-api.d.ts +1 -0
  45. package/localization/rugby-game-log-types.d.ts +35 -0
  46. package/localization/user-profile.d.ts +9 -0
  47. package/models/public-api.d.ts +6 -0
  48. package/models/rugby-game-config.d.ts +15 -0
  49. package/models/rugby-game-log.d.ts +71 -0
  50. package/models/rugby-game-statistic.d.ts +29 -0
  51. package/models/rugby-game-team-statistic.d.ts +8 -0
  52. package/models/rugby-profile.d.ts +16 -0
  53. package/models/rugby-statistic.d.ts +52 -0
  54. package/models/sport.d.ts +7 -1
  55. package/models/tournament.d.ts +2 -0
  56. package/models/user.d.ts +2 -0
  57. package/mtgame-core.metadata.json +1 -1
  58. package/package.json +1 -1
@@ -1,26 +1,27 @@
1
- export { BasketballGameApi } from './basketball-game-api';
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 { LeagueApi } from './league-api';
8
+ export * from './league-api';
9
9
  export * from './league-news-api';
10
10
  export * from './league-player-api';
11
- export { MediaApi, GameMediaFilters } from './media-api';
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 { PaginatedResponse } from './paginated-response.interface';
16
- export { ReferenceApi } from './reference-api';
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 { TournamentApi, TournamentGamesFilters, TournamentEventsListFilter, StatisticGroupByTypes, StatisticFilters } from './tournament-api';
20
- export { TournamentJoinApi } from './tournament-join-api';
20
+ export * from './tournament-api';
21
+ export * from './tournament-join-api';
21
22
  export * from './tournament-season-api';
22
- export { TournamentStageApi } from './tournament-stage-api';
23
+ export * from './tournament-stage-api';
23
24
  export * from './user-api';
24
- export { VolleyballGameApi } from './volleyball-game-api';
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
+ }
@@ -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[]>;