@mtgame/core 0.0.67 → 0.0.68

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/handball-game-api.d.ts +18 -0
  2. package/api/public-api.d.ts +1 -0
  3. package/api/tournament-api.d.ts +2 -0
  4. package/bundles/mtgame-core.umd.js +650 -54
  5. package/bundles/mtgame-core.umd.js.map +1 -1
  6. package/bundles/mtgame-core.umd.min.js +2 -2
  7. package/bundles/mtgame-core.umd.min.js.map +1 -1
  8. package/esm2015/api/handball-game-api.js +66 -0
  9. package/esm2015/api/public-api.js +2 -1
  10. package/esm2015/api/tournament-api.js +21 -1
  11. package/esm2015/localization/handball-game-log-types.js +24 -0
  12. package/esm2015/localization/public-api.js +2 -1
  13. package/esm2015/localization/user-profile.js +9 -1
  14. package/esm2015/models/game.js +4 -1
  15. package/esm2015/models/handball-game-config.js +34 -0
  16. package/esm2015/models/handball-game-log.js +92 -0
  17. package/esm2015/models/handball-game-statistic.js +101 -0
  18. package/esm2015/models/handball-game-team-statistic.js +27 -0
  19. package/esm2015/models/handball-profile.js +39 -0
  20. package/esm2015/models/handball-statistic.js +86 -0
  21. package/esm2015/models/public-api.js +7 -1
  22. package/esm2015/models/sport.js +9 -1
  23. package/esm2015/models/user.js +4 -1
  24. package/esm5/api/handball-game-api.js +81 -0
  25. package/esm5/api/public-api.js +2 -1
  26. package/esm5/api/tournament-api.js +35 -1
  27. package/esm5/localization/handball-game-log-types.js +25 -0
  28. package/esm5/localization/public-api.js +2 -1
  29. package/esm5/localization/user-profile.js +10 -2
  30. package/esm5/models/game.js +4 -1
  31. package/esm5/models/handball-game-config.js +39 -0
  32. package/esm5/models/handball-game-log.js +99 -0
  33. package/esm5/models/handball-game-statistic.js +162 -0
  34. package/esm5/models/handball-game-team-statistic.js +32 -0
  35. package/esm5/models/handball-profile.js +44 -0
  36. package/esm5/models/handball-statistic.js +95 -0
  37. package/esm5/models/public-api.js +7 -1
  38. package/esm5/models/sport.js +9 -1
  39. package/esm5/models/user.js +4 -1
  40. package/fesm2015/mtgame-core.js +466 -1
  41. package/fesm2015/mtgame-core.js.map +1 -1
  42. package/fesm5/mtgame-core.js +641 -54
  43. package/fesm5/mtgame-core.js.map +1 -1
  44. package/localization/handball-game-log-types.d.ts +23 -0
  45. package/localization/public-api.d.ts +1 -0
  46. package/localization/user-profile.d.ts +8 -0
  47. package/models/game.d.ts +2 -0
  48. package/models/handball-game-config.d.ts +15 -0
  49. package/models/handball-game-log.d.ts +49 -0
  50. package/models/handball-game-statistic.d.ts +44 -0
  51. package/models/handball-game-team-statistic.d.ts +8 -0
  52. package/models/handball-profile.d.ts +17 -0
  53. package/models/handball-statistic.d.ts +55 -0
  54. package/models/public-api.d.ts +6 -0
  55. package/models/sport.d.ts +5 -1
  56. package/models/user.d.ts +2 -0
  57. package/mtgame-core.metadata.json +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { HandballGameLogTypes } from '../models/handball-game-log';
2
+ export declare const HandballGameLogTypeLocalization: {
3
+ 1: string;
4
+ 2: string;
5
+ 3: string;
6
+ 4: string;
7
+ 5: string;
8
+ 6: string;
9
+ 7: string;
10
+ 8: string;
11
+ 9: string;
12
+ 10: string;
13
+ 11: string;
14
+ 12: string;
15
+ 13: string;
16
+ 14: string;
17
+ 15: string;
18
+ 16: string;
19
+ 17: string;
20
+ 18: string;
21
+ 19: string;
22
+ 20: string;
23
+ };
@@ -2,6 +2,7 @@ export * from './basketball-game-log-types';
2
2
  export * from './hockey-game-log-types';
3
3
  export * from './hockey-penalty-types';
4
4
  export * from './football-game-log-types';
5
+ export * from './handball-game-log-types';
5
6
  export * from './overtime-types';
6
7
  export * from './team-event-type';
7
8
  export * from './team-user-role';
@@ -2,6 +2,7 @@ import { GameBasketballPosition, WorkHand } from '../models/basketball-profile';
2
2
  import { GameVolleyballPosition, VolleyballWorkHand } from '../models/volleyball-profile';
3
3
  import { GameHockeyPosition } from '../models/hockey-profile';
4
4
  import { FootballWorkFoot, GameFootballPosition } from '../models/football-profile';
5
+ import { GameHandballPosition } from '../models/handball-profile';
5
6
  export declare const GameBasketballPositionLocalization: {
6
7
  1: string;
7
8
  2: string;
@@ -61,3 +62,10 @@ export declare const FootballWorkFootLocalization: {
61
62
  2: string;
62
63
  3: string;
63
64
  };
65
+ export declare const GameHandballPositionLocalization: {
66
+ 1: string;
67
+ 2: string;
68
+ 3: string;
69
+ 4: string;
70
+ 5: string;
71
+ };
package/models/game.d.ts CHANGED
@@ -7,6 +7,7 @@ import { MediaItem } from './media-item';
7
7
  import { HockeyGameConfig } from './hockey-game-config';
8
8
  import { Tournament } from './tournament';
9
9
  import { FootballGameConfig } from './football-game-config';
10
+ import { HandballGameConfig } from './handball-game-config';
10
11
  export declare enum GameStatuses {
11
12
  open = 1,
12
13
  in_progress = 2,
@@ -42,6 +43,7 @@ export declare class Game extends BaseModel {
42
43
  volleyballGameConfig: VolleyballGameConfig;
43
44
  hockeyGameConfig: HockeyGameConfig;
44
45
  footballGameConfig: FootballGameConfig;
46
+ handballGameConfig: HandballGameConfig;
45
47
  scoreByPeriod: any;
46
48
  playoffStage: string;
47
49
  tournamentStageId: number;
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './util';
2
+ import { GameTimeTypes, OvertimeTypes } from './tournament';
3
+ export declare class HandballGameConfig extends BaseModel {
4
+ periodsCount: number;
5
+ periodTime: number;
6
+ overtimeType: OvertimeTypes;
7
+ overtimeTime: number;
8
+ maxGamePlayers: number;
9
+ timeoutCount: number;
10
+ overtimeTimeoutCount: number;
11
+ timeoutTime: number;
12
+ gameTimeType: GameTimeTypes;
13
+ static toFront(data: any): any;
14
+ static toBack(data: any): any;
15
+ }
@@ -0,0 +1,49 @@
1
+ import { BaseModel } from './util';
2
+ import { GameLogBase } from './game-log-base';
3
+ import { GameUser } from './game-user';
4
+ export declare enum HandballGameLogTypes {
5
+ enter_game = 1,
6
+ exit_game = 2,
7
+ shot_miss = 3,
8
+ shot_on_goal = 4,
9
+ shot_blocked = 5,
10
+ goal = 6,
11
+ assist = 7,
12
+ penalty_miss = 8,
13
+ penalty_shot_on_goal = 9,
14
+ penalty_goal = 10,
15
+ save = 11,
16
+ penalty_save = 12,
17
+ foul = 13,
18
+ yellow_card = 14,
19
+ red_card = 15,
20
+ two_minute_foul = 16,
21
+ turnover = 17,
22
+ steal = 18,
23
+ block_shot = 19,
24
+ timeout = 20
25
+ }
26
+ export declare class HandballGameLog extends BaseModel implements GameLogBase {
27
+ id: number;
28
+ uniqueId: string;
29
+ gameId: number;
30
+ gameUserId: number;
31
+ gameUser: GameUser;
32
+ teamId: number;
33
+ logType: HandballGameLogTypes;
34
+ datetime: Date;
35
+ time: number;
36
+ period: number;
37
+ active: boolean;
38
+ teamScore: number;
39
+ competitorTeamScore: number;
40
+ isHighlight: boolean;
41
+ isGoalie: boolean;
42
+ compare(model: HandballGameLog): number;
43
+ get timeFormatted(): string;
44
+ isScoreType(): boolean;
45
+ isAfter(log: HandballGameLog): boolean;
46
+ isFoulType(): boolean;
47
+ static toFront(value: any): any;
48
+ static toBack(value: any): any;
49
+ }
@@ -0,0 +1,44 @@
1
+ import { BaseModel } from './util';
2
+ import { GameStatisticBase } from './game-statistic-base';
3
+ export declare class HandballGameStatistic extends BaseModel implements GameStatisticBase {
4
+ gameUserId: number;
5
+ points: number;
6
+ shotMisses: number;
7
+ shotsOnGoal: number;
8
+ shotsBlocked: number;
9
+ goals: number;
10
+ assists: number;
11
+ penaltyGoals: number;
12
+ penaltyMisses: number;
13
+ penaltyShotsOnGoal: number;
14
+ saves: number;
15
+ penaltySaves: number;
16
+ goalsAgainst: number;
17
+ penaltyGoalsAgainst: number;
18
+ safetyRate: number;
19
+ fouls: number;
20
+ yellowCards: number;
21
+ redCards: number;
22
+ twoMinuteFouls: number;
23
+ turnovers: number;
24
+ steals: number;
25
+ blockShots: number;
26
+ gameTime: number;
27
+ plusMinus: number;
28
+ get id(): number;
29
+ get shots(): number;
30
+ get totalGoals(): number;
31
+ get goalsPercent(): number;
32
+ get shotsOnGoalPercent(): number;
33
+ get penaltyShots(): number;
34
+ get penaltyGoalsPercent(): number;
35
+ get shotsAgainst(): number;
36
+ get penaltyShotsAgainst(): number;
37
+ get totalGoalsAgainst(): number;
38
+ get totalSaves(): number;
39
+ get savesPercent(): number;
40
+ get penaltySavesPercent(): number;
41
+ get gameMinutes(): number;
42
+ static toFront(data: any): any;
43
+ static toBack(data: any): any;
44
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './util';
2
+ import { HandballStatistic } from './handball-statistic';
3
+ export declare class HandballGameTeamStatistic extends BaseModel {
4
+ team: HandballStatistic;
5
+ competitorTeam: HandballStatistic;
6
+ static toFront(data: any): any;
7
+ static toBack(data: any): any;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './util';
2
+ import { WorkHand } from './basketball-profile';
3
+ export declare enum GameHandballPosition {
4
+ goalkeeper = 1,
5
+ winger = 2,
6
+ pivot = 3,
7
+ centre_back = 4,
8
+ fullback = 5
9
+ }
10
+ export declare class HandballProfile extends BaseModel {
11
+ id: number;
12
+ userId: number;
13
+ position: GameHandballPosition;
14
+ workHand: WorkHand;
15
+ static toFront(value: any): any;
16
+ static toBack(value: any): any;
17
+ }
@@ -0,0 +1,55 @@
1
+ import { TournamentTeamUser } from './tournament-team-user';
2
+ import { Team } from './team';
3
+ import { TeamUser } from './team-user';
4
+ import { User } from './user';
5
+ import { TournamentTeam } from './tournament-team';
6
+ import { BaseStatistic } from './base-statistic';
7
+ export declare class HandballStatistic extends BaseStatistic {
8
+ tournamentTeamUser: TournamentTeamUser;
9
+ team: Team;
10
+ teamUser: TeamUser;
11
+ user: User;
12
+ tournamentTeam: TournamentTeam;
13
+ month: Date;
14
+ winLose: boolean;
15
+ gamesCount: number;
16
+ wonGamesCount: number;
17
+ points: number;
18
+ shotMisses: number;
19
+ shotsOnGoal: number;
20
+ shotsBlocked: number;
21
+ goals: number;
22
+ assists: number;
23
+ penaltyGoals: number;
24
+ penaltyMisses: number;
25
+ penaltyShotsOnGoal: number;
26
+ saves: number;
27
+ penaltySaves: number;
28
+ goalsAgainst: number;
29
+ penaltyGoalsAgainst: number;
30
+ safetyRate: number;
31
+ fouls: number;
32
+ yellowCards: number;
33
+ redCards: number;
34
+ twoMinuteFouls: number;
35
+ turnovers: number;
36
+ steals: number;
37
+ blockShots: number;
38
+ gameTime: number;
39
+ plusMinus: number;
40
+ shots: number;
41
+ goalsPercent: number;
42
+ penaltyShots: number;
43
+ penaltyGoalsPercent: number;
44
+ shotsAgainst: number;
45
+ savesPercent: number;
46
+ penaltyShotsAgainst: number;
47
+ penaltySavesPercent: number;
48
+ totalGoals: number;
49
+ totalSaves: number;
50
+ totalGoalsAgainst: number;
51
+ newbie: boolean;
52
+ get userMinutes(): string;
53
+ static toFront(data: any): any;
54
+ static toBack(data: any): any;
55
+ }
@@ -13,6 +13,12 @@ export * from './game-invite';
13
13
  export { GameLogBase } from './game-log-base';
14
14
  export { GameTimelineStageItem, GameTimelineStages } from './game-timeline-stages';
15
15
  export { GameUser } from './game-user';
16
+ export * from './handball-game-config';
17
+ export * from './handball-game-log';
18
+ export * from './handball-game-statistic';
19
+ export * from './handball-game-team-statistic';
20
+ export * from './handball-profile';
21
+ export * from './handball-statistic';
16
22
  export * from './hockey-game-config';
17
23
  export * from './hockey-game-log';
18
24
  export * from './hockey-game-statistic';
package/models/sport.d.ts CHANGED
@@ -11,7 +11,9 @@ export declare enum SportTypes {
11
11
  ball_hockey = 9,
12
12
  football = 10,
13
13
  classic_football = 11,
14
- mini_football = 12
14
+ mini_football = 12,
15
+ handball = 13,
16
+ handball_classic = 14
15
17
  }
16
18
  export declare class Sport extends BaseModel {
17
19
  id: number;
@@ -30,6 +32,8 @@ export declare class Sport extends BaseModel {
30
32
  isFootball(): boolean;
31
33
  isClassicFootball(): boolean;
32
34
  isMiniFootball(): boolean;
35
+ isHandball(): boolean;
36
+ isHandballClassic(): boolean;
33
37
  static toFront(data: any): any;
34
38
  static toBack(sport: Sport): any;
35
39
  }
package/models/user.d.ts CHANGED
@@ -6,6 +6,7 @@ import { BasketballProfile } from './basketball-profile';
6
6
  import { VolleyballProfile } from './volleyball-profile';
7
7
  import { HockeyProfile } from './hockey-profile';
8
8
  import { FootballProfile } from './football-profile';
9
+ import { HandballProfile } from './handball-profile';
9
10
  export declare enum UserGender {
10
11
  male = 1,
11
12
  female = 2
@@ -23,6 +24,7 @@ export declare class User extends BaseModel {
23
24
  volleyballProfile: VolleyballProfile;
24
25
  hockeyProfile: HockeyProfile;
25
26
  footballProfile: FootballProfile;
27
+ handballProfile: HandballProfile;
26
28
  photo: File;
27
29
  wizards: string[];
28
30
  city: City;