@mtgame/core 0.0.52 → 0.0.54

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 (69) hide show
  1. package/api/football-game-api.d.ts +19 -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 +724 -45
  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/football-game-api.js +70 -0
  9. package/esm2015/api/public-api.js +2 -1
  10. package/esm2015/api/tournament-api.js +18 -1
  11. package/esm2015/localization/football-game-log-types.js +29 -0
  12. package/esm2015/localization/overtime-types.js +4 -2
  13. package/esm2015/localization/public-api.js +2 -1
  14. package/esm2015/localization/user-profile.js +13 -1
  15. package/esm2015/models/football-game-config.js +34 -0
  16. package/esm2015/models/football-game-log.js +94 -0
  17. package/esm2015/models/football-game-statistic.js +129 -0
  18. package/esm2015/models/football-game-team-statistic.js +27 -0
  19. package/esm2015/models/football-profile.js +43 -0
  20. package/esm2015/models/football-statistic.js +92 -0
  21. package/esm2015/models/game.js +4 -1
  22. package/esm2015/models/public-api.js +7 -1
  23. package/esm2015/models/sport.js +13 -1
  24. package/esm2015/models/team.js +4 -1
  25. package/esm2015/models/tournament-team-user.js +2 -1
  26. package/esm2015/models/tournament.js +6 -1
  27. package/esm2015/models/user.js +4 -1
  28. package/esm5/api/football-game-api.js +85 -0
  29. package/esm5/api/public-api.js +2 -1
  30. package/esm5/api/tournament-api.js +32 -1
  31. package/esm5/localization/football-game-log-types.js +30 -0
  32. package/esm5/localization/overtime-types.js +3 -1
  33. package/esm5/localization/public-api.js +2 -1
  34. package/esm5/localization/user-profile.js +14 -2
  35. package/esm5/models/football-game-config.js +39 -0
  36. package/esm5/models/football-game-log.js +101 -0
  37. package/esm5/models/football-game-statistic.js +206 -0
  38. package/esm5/models/football-game-team-statistic.js +32 -0
  39. package/esm5/models/football-profile.js +48 -0
  40. package/esm5/models/football-statistic.js +101 -0
  41. package/esm5/models/game.js +4 -1
  42. package/esm5/models/public-api.js +7 -1
  43. package/esm5/models/sport.js +13 -1
  44. package/esm5/models/team.js +4 -1
  45. package/esm5/models/tournament-team-user.js +2 -1
  46. package/esm5/models/tournament.js +6 -1
  47. package/esm5/models/user.js +4 -1
  48. package/fesm2015/mtgame-core.js +533 -2
  49. package/fesm2015/mtgame-core.js.map +1 -1
  50. package/fesm5/mtgame-core.js +714 -45
  51. package/fesm5/mtgame-core.js.map +1 -1
  52. package/localization/football-game-log-types.d.ts +28 -0
  53. package/localization/overtime-types.d.ts +2 -0
  54. package/localization/public-api.d.ts +1 -0
  55. package/localization/user-profile.d.ts +12 -0
  56. package/models/football-game-config.d.ts +15 -0
  57. package/models/football-game-log.d.ts +53 -0
  58. package/models/football-game-statistic.d.ts +55 -0
  59. package/models/football-game-team-statistic.d.ts +8 -0
  60. package/models/football-profile.d.ts +20 -0
  61. package/models/football-statistic.d.ts +64 -0
  62. package/models/game.d.ts +2 -0
  63. package/models/public-api.d.ts +6 -0
  64. package/models/sport.d.ts +7 -1
  65. package/models/tournament-team-user.d.ts +1 -0
  66. package/models/tournament.d.ts +3 -1
  67. package/models/user.d.ts +2 -0
  68. package/mtgame-core.metadata.json +1 -1
  69. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ import { FootballGameLogTypes } from '../models/football-game-log';
2
+ export declare const FootballGameLogTypeLocalization: {
3
+ 1: string;
4
+ 2: string;
5
+ 3: string;
6
+ 4: string;
7
+ 5: string;
8
+ 6: string;
9
+ 13: string;
10
+ 7: string;
11
+ 8: string;
12
+ 10: string;
13
+ 11: string;
14
+ 14: string;
15
+ 15: string;
16
+ 16: string;
17
+ 18: string;
18
+ 9: string;
19
+ 12: string;
20
+ 17: string;
21
+ 19: string;
22
+ 20: string;
23
+ 21: string;
24
+ 22: string;
25
+ 23: string;
26
+ 24: string;
27
+ 25: string;
28
+ };
@@ -7,4 +7,6 @@ export declare const OvertimeTypeLocalization: {
7
7
  5: string;
8
8
  6: string;
9
9
  7: string;
10
+ 8: string;
11
+ 9: string;
10
12
  };
@@ -1,6 +1,7 @@
1
1
  export * from './basketball-game-log-types';
2
2
  export * from './hockey-game-log-types';
3
3
  export * from './hockey-penalty-types';
4
+ export * from './football-game-log-types';
4
5
  export * from './overtime-types';
5
6
  export * from './team-event-type';
6
7
  export * from './team-user-role';
@@ -1,6 +1,7 @@
1
1
  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
+ import { FootballWorkFoot, GameFootballPosition } from '../models/football-profile';
4
5
  export declare const GameBasketballPositionLocalization: {
5
6
  1: string;
6
7
  2: string;
@@ -49,3 +50,14 @@ export declare const GameHockeyPositionLocalization: {
49
50
  1: string;
50
51
  2: string;
51
52
  };
53
+ export declare const GameFootballPositionLocalization: {
54
+ 4: string;
55
+ 1: string;
56
+ 2: string;
57
+ 3: string;
58
+ };
59
+ export declare const FootballWorkFootLocalization: {
60
+ 1: string;
61
+ 2: string;
62
+ 3: string;
63
+ };
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './util';
2
+ import { GameTimeTypes, OvertimeTypes } from './tournament';
3
+ export declare class FootballGameConfig 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,53 @@
1
+ import { BaseModel } from './util';
2
+ import { GameUser } from './game-user';
3
+ import { GameLogBase } from './game-log-base';
4
+ export declare enum FootballGameLogTypes {
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
+ penalty_attempt = 7,
12
+ penalty_goal = 8,
13
+ penalty_save = 9,
14
+ small_penalty_attempt = 10,
15
+ small_penalty_goal = 11,
16
+ small_penalty_save = 12,
17
+ assist = 13,
18
+ block_shot = 14,
19
+ corner = 15,
20
+ free_kick = 16,
21
+ foul = 17,
22
+ save = 18,
23
+ yellow_card = 19,
24
+ red_card = 20,
25
+ perfect_pass = 21,
26
+ loss = 22,
27
+ steal = 23,
28
+ out = 24,
29
+ timeout = 25
30
+ }
31
+ export declare class FootballGameLog extends BaseModel implements GameLogBase {
32
+ id: number;
33
+ uniqueId: string;
34
+ gameId: number;
35
+ gameUserId: number;
36
+ gameUser: GameUser;
37
+ teamId: number;
38
+ logType: FootballGameLogTypes;
39
+ datetime: Date;
40
+ time: number;
41
+ period: number;
42
+ active: boolean;
43
+ teamScore: number;
44
+ competitorTeamScore: number;
45
+ isHighlight: boolean;
46
+ isGoalie: boolean;
47
+ compare(model: FootballGameLog): number;
48
+ get timeFormatted(): string;
49
+ isScoreType(): boolean;
50
+ isAfter(log: FootballGameLog): boolean;
51
+ static toFront(value: any): any;
52
+ static toBack(value: any): any;
53
+ }
@@ -0,0 +1,55 @@
1
+ import { BaseModel } from './util';
2
+ import { GameStatisticBase } from './game-statistic-base';
3
+ export declare class FootballGameStatistic 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
+ blockShots: number;
12
+ corners: number;
13
+ freeKicks: number;
14
+ penaltyGoals: number;
15
+ penaltyAttempts: number;
16
+ penaltyGoalsAgainst: number;
17
+ penaltySaves: number;
18
+ smallPenaltyGoals: number;
19
+ smallPenaltyAttempts: number;
20
+ smallPenaltyGoalsAgainst: number;
21
+ smallPenaltySaves: number;
22
+ saves: number;
23
+ goalsAgainst: number;
24
+ safetyRate: number;
25
+ fouls: number;
26
+ yellowCards: number;
27
+ redCards: number;
28
+ perfectPasses: number;
29
+ losses: number;
30
+ steals: number;
31
+ outs: number;
32
+ gameTime: number;
33
+ plusMinus: number;
34
+ updatedAt: Date;
35
+ get id(): number;
36
+ get shots(): number;
37
+ get totalGoals(): number;
38
+ get goalsPercent(): number;
39
+ get shotsOnGoalPercent(): number;
40
+ get penalties(): number;
41
+ get penaltyGoalsPercent(): number;
42
+ get smallPenalties(): number;
43
+ get smallPenaltyGoalsPercent(): number;
44
+ get shotsAgainst(): number;
45
+ get penaltyShotsAgainst(): number;
46
+ get smallPenaltyShotsAgainst(): number;
47
+ get totalGoalsAgainst(): number;
48
+ get totalSaves(): number;
49
+ get savesPercent(): number;
50
+ get penaltySavesPercent(): number;
51
+ get smallPenaltySavesPercent(): number;
52
+ get gameMinutes(): number;
53
+ static toFront(data: any): any;
54
+ static toBack(data: any): any;
55
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './util';
2
+ import { FootballStatistic } from './football-statistic';
3
+ export declare class FootballGameTeamStatistic extends BaseModel {
4
+ team: FootballStatistic;
5
+ competitorTeam: FootballStatistic;
6
+ static toFront(data: any): any;
7
+ static toBack(data: any): any;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum GameFootballPosition {
3
+ defensemen = 1,
4
+ midfielder = 2,
5
+ forward = 3,
6
+ goalkeeper = 4
7
+ }
8
+ export declare enum FootballWorkFoot {
9
+ left = 1,
10
+ right = 2,
11
+ both = 3
12
+ }
13
+ export declare class FootballProfile extends BaseModel {
14
+ id: number;
15
+ userId: number;
16
+ position: GameFootballPosition;
17
+ workFoot: FootballWorkFoot;
18
+ static toFront(value: any): any;
19
+ static toBack(value: any): any;
20
+ }
@@ -0,0 +1,64 @@
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 FootballStatistic 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
+ shotsOnGoalPercent: number;
22
+ shots: number;
23
+ goals: number;
24
+ totalGoals: number;
25
+ goalsPercent: number;
26
+ assists: number;
27
+ penaltyGoals: number;
28
+ penaltyAttempts: number;
29
+ penaltyGoalsPercent: number;
30
+ penaltySaves: number;
31
+ penaltyGoalsAgainst: number;
32
+ penaltyShotsAgainst: number;
33
+ penaltySavesPercent: number;
34
+ smallPenaltyGoals: number;
35
+ smallPenaltyAttempts: number;
36
+ smallPenaltyGoalsPercent: number;
37
+ smallPenaltySaves: number;
38
+ smallPenaltyGoalsAgainst: number;
39
+ smallPenaltyShotsAgainst: number;
40
+ smallPenaltySavesPercent: number;
41
+ saves: number;
42
+ savesPercent: number;
43
+ totalSaves: number;
44
+ goalsAgainst: number;
45
+ totalGoalsAgainst: number;
46
+ shotsAgainst: number;
47
+ safetyRate: number;
48
+ fouls: number;
49
+ yellowCards: number;
50
+ redCards: number;
51
+ perfectPasses: number;
52
+ losses: number;
53
+ steals: number;
54
+ outs: number;
55
+ gameTime: number;
56
+ plusMinus: number;
57
+ blockShots: number;
58
+ corners: number;
59
+ freeKicks: number;
60
+ newbie: boolean;
61
+ get userMinutes(): string;
62
+ static toFront(data: any): any;
63
+ static toBack(data: any): any;
64
+ }
package/models/game.d.ts CHANGED
@@ -6,6 +6,7 @@ import { LeagueCourt } from './league-court';
6
6
  import { MediaItem } from './media-item';
7
7
  import { HockeyGameConfig } from './hockey-game-config';
8
8
  import { Tournament } from './tournament';
9
+ import { FootballGameConfig } from './football-game-config';
9
10
  export declare enum GameStatuses {
10
11
  open = 1,
11
12
  in_progress = 2,
@@ -40,6 +41,7 @@ export declare class Game extends BaseModel {
40
41
  basketballGameConfig: BasketballGameConfig;
41
42
  volleyballGameConfig: VolleyballGameConfig;
42
43
  hockeyGameConfig: HockeyGameConfig;
44
+ footballGameConfig: FootballGameConfig;
43
45
  scoreByPeriod: any;
44
46
  playoffStage: string;
45
47
  tournamentStageId: number;
@@ -19,6 +19,12 @@ export * from './hockey-game-statistic';
19
19
  export * from './hockey-game-team-statistic';
20
20
  export * from './hockey-profile';
21
21
  export * from './hockey-statistic';
22
+ export * from './football-game-config';
23
+ export * from './football-game-log';
24
+ export * from './football-game-statistic';
25
+ export * from './football-game-team-statistic';
26
+ export * from './football-profile';
27
+ export * from './football-statistic';
22
28
  export { League } from './league';
23
29
  export { LeagueCourt } from './league-court';
24
30
  export * from './league-news';
package/models/sport.d.ts CHANGED
@@ -8,7 +8,10 @@ export declare enum SportTypes {
8
8
  beach_volleyball = 6,
9
9
  hockey = 7,
10
10
  ice_hockey = 8,
11
- ball_hockey = 9
11
+ ball_hockey = 9,
12
+ football = 10,
13
+ classic_football = 11,
14
+ mini_football = 12
12
15
  }
13
16
  export declare class Sport extends BaseModel {
14
17
  id: number;
@@ -24,6 +27,9 @@ export declare class Sport extends BaseModel {
24
27
  isHockey(): boolean;
25
28
  isIceHockey(): boolean;
26
29
  isBallHockey(): boolean;
30
+ isFootball(): boolean;
31
+ isClassicFootball(): boolean;
32
+ isMiniFootball(): boolean;
27
33
  static toFront(data: any): any;
28
34
  static toBack(sport: Sport): any;
29
35
  }
@@ -14,6 +14,7 @@ export declare class TournamentTeamUser extends BaseModel {
14
14
  photo: File;
15
15
  disqualification: TournamentDisqualification;
16
16
  hasChanges: boolean;
17
+ rating: number;
17
18
  get fullName(): string;
18
19
  get shortName(): string;
19
20
  get initials(): string;
@@ -41,7 +41,9 @@ export declare enum OvertimeTypes {
41
41
  without_overtime = 4,
42
42
  to_first_goal = 5,
43
43
  to_first_goal_and_bullitts = 6,
44
- bullitts = 7
44
+ bullitts = 7,
45
+ penalties = 8,
46
+ time_and_penalties = 9
45
47
  }
46
48
  export declare class TournamentSettings extends BaseModel {
47
49
  id: number;
package/models/user.d.ts CHANGED
@@ -5,6 +5,7 @@ import { City } from './city';
5
5
  import { BasketballProfile } from './basketball-profile';
6
6
  import { VolleyballProfile } from './volleyball-profile';
7
7
  import { HockeyProfile } from './hockey-profile';
8
+ import { FootballProfile } from './football-profile';
8
9
  export declare enum UserGender {
9
10
  male = 1,
10
11
  female = 2
@@ -21,6 +22,7 @@ export declare class User extends BaseModel {
21
22
  basketballProfile: BasketballProfile;
22
23
  volleyballProfile: VolleyballProfile;
23
24
  hockeyProfile: HockeyProfile;
25
+ footballProfile: FootballProfile;
24
26
  photo: File;
25
27
  wizards: string[];
26
28
  city: City;