@mtgame/core 0.1.37 → 0.1.38

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 +2 -0
  4. package/bundles/mtgame-core.umd.js +669 -157
  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 +12 -1
  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 +15 -1
  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 +439 -2
  41. package/fesm2015/mtgame-core.js.map +1 -1
  42. package/fesm5/mtgame-core.js +655 -158
  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
@@ -4,6 +4,7 @@ export * from './hockey-penalty-types';
4
4
  export * from './football-game-log-types';
5
5
  export * from './handball-game-log-types';
6
6
  export * from './overtime-types';
7
+ export * from './rugby-game-log-types';
7
8
  export * from './team-event-type';
8
9
  export * from './team-user-role';
9
10
  export * from './user-profile';
@@ -0,0 +1,35 @@
1
+ import { RugbyGameLogTypes } from '../models/rugby-game-log';
2
+ export declare const RugbyGameLogTypeLocalization: {
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
+ 21: string;
24
+ 22: string;
25
+ 23: string;
26
+ 24: string;
27
+ 25: string;
28
+ 26: string;
29
+ 27: string;
30
+ 28: string;
31
+ 29: string;
32
+ 30: string;
33
+ 31: string;
34
+ 32: string;
35
+ };
@@ -3,6 +3,7 @@ import { GameVolleyballPosition, VolleyballWorkHand } from '../models/volleyball
3
3
  import { GameHockeyPosition } from '../models/hockey-profile';
4
4
  import { FootballWorkFoot, GameFootballPosition } from '../models/football-profile';
5
5
  import { GameHandballPosition } from '../models/handball-profile';
6
+ import { GameRugbyPosition } from '../models/rugby-profile';
6
7
  export declare const GameBasketballPositionLocalization: {
7
8
  1: string;
8
9
  2: string;
@@ -69,3 +70,11 @@ export declare const GameHandballPositionLocalization: {
69
70
  4: string;
70
71
  5: string;
71
72
  };
73
+ export declare const GameRugbyPositionLocalization: {
74
+ 1: string;
75
+ 2: string;
76
+ 3: string;
77
+ 4: string;
78
+ 5: string;
79
+ 6: string;
80
+ };
@@ -47,6 +47,12 @@ export * from './notification-settings';
47
47
  export * from './organization';
48
48
  export * from './playoff';
49
49
  export * from './poll';
50
+ export * from './rugby-game-config';
51
+ export * from './rugby-game-log';
52
+ export * from './rugby-game-statistic';
53
+ export * from './rugby-game-team-statistic';
54
+ export * from './rugby-profile';
55
+ export * from './rugby-statistic';
50
56
  export * from './sport';
51
57
  export * from './team';
52
58
  export * from './team-access';
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './util';
2
+ import { GameTimeTypes, OvertimeTypes } from './tournament';
3
+ export declare class RugbyGameConfig extends BaseModel {
4
+ periodsCount: number;
5
+ periodTime: number;
6
+ overtimeType: OvertimeTypes;
7
+ overtimeTime: number;
8
+ overtimePeriods: number;
9
+ maxGamePlayers: number;
10
+ gameTimeType: GameTimeTypes;
11
+ substituteCount: number;
12
+ freeSubstituteEnabled: boolean;
13
+ static toFront(data: any): any;
14
+ static toBack(data: any): any;
15
+ }
@@ -0,0 +1,71 @@
1
+ import { BaseModel } from './util';
2
+ import { GameLogBase } from './game-log-base';
3
+ import { GameUser } from './game-user';
4
+ export declare enum RugbyGameLogTypes {
5
+ enter_game = 1,
6
+ exit_game = 2,
7
+ try = 3,
8
+ penalty_try = 4,
9
+ conversion_goal = 5,
10
+ conversion_miss = 6,
11
+ drawing_ball = 7,
12
+ penalty_miss = 8,
13
+ penalty_goal = 9,
14
+ drop_goal = 10,
15
+ drop_goal_miss = 11,
16
+ free_kick = 12,
17
+ yellow_card = 13,
18
+ red_card = 14,
19
+ offload = 15,
20
+ tackle = 16,
21
+ out = 17,
22
+ handling_error = 18,
23
+ carries_other_gainline = 19,
24
+ timeout = 20,
25
+ scrum_won = 21,
26
+ scrum_lose = 22,
27
+ scrum_won_free = 23,
28
+ lineout_success = 24,
29
+ lineout_loss = 25,
30
+ lineout_steal = 26,
31
+ quick_throw = 27,
32
+ ruck_won = 28,
33
+ ruck_lose = 29,
34
+ maul_won = 30,
35
+ maul_lose = 31,
36
+ team_foul = 32
37
+ }
38
+ export declare const RUGBY_GAME_LOG_TYPE_POINTS: {
39
+ 4: number;
40
+ 3: number;
41
+ 5: number;
42
+ 9: number;
43
+ 10: number;
44
+ };
45
+ export declare const RUGBY_TEAM_LOG_TYPES: RugbyGameLogTypes[];
46
+ export declare class RugbyGameLog extends BaseModel implements GameLogBase {
47
+ id: number;
48
+ uniqueId: string;
49
+ gameId: number;
50
+ gameUserId: number;
51
+ gameUser: GameUser;
52
+ teamId: number;
53
+ logType: RugbyGameLogTypes;
54
+ datetime: Date;
55
+ time: number;
56
+ period: number;
57
+ active: boolean;
58
+ teamScore: number;
59
+ competitorTeamScore: number;
60
+ isHighlight: boolean;
61
+ isGoalie: boolean;
62
+ compare(model: RugbyGameLog): number;
63
+ get timeFormatted(): string;
64
+ isScoreType(): boolean;
65
+ scorePoints(): number;
66
+ isAfter(log: RugbyGameLog): boolean;
67
+ isFoulType(): boolean;
68
+ isTeamType(): boolean;
69
+ static toFront(value: any): any;
70
+ static toBack(value: any): any;
71
+ }
@@ -0,0 +1,29 @@
1
+ import { BaseModel } from './util';
2
+ export declare class RugbyGameStatistic extends BaseModel {
3
+ gameUserId: number;
4
+ points: number;
5
+ tries: number;
6
+ penaltyTries: number;
7
+ conversionGoals: number;
8
+ conversionMisses: number;
9
+ drawingBall: number;
10
+ penaltyMisses: number;
11
+ penaltyGoals: number;
12
+ dropGoals: number;
13
+ dropGoalMisses: number;
14
+ freeKicks: number;
15
+ yellowCards: number;
16
+ redCards: number;
17
+ offloads: number;
18
+ tackles: number;
19
+ outs: number;
20
+ handlingErrors: number;
21
+ carriesOtherGainline: number;
22
+ gameTime: number;
23
+ plusMinus: number;
24
+ updatedAt: Date;
25
+ get id(): number;
26
+ get gameMinutes(): number;
27
+ static toFront(data: any): any;
28
+ static toBack(data: any): any;
29
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './util';
2
+ import { RugbyStatistic } from './rugby-statistic';
3
+ export declare class RugbyGameTeamStatistic extends BaseModel {
4
+ team: RugbyStatistic;
5
+ competitorTeam: RugbyStatistic;
6
+ static toFront(data: any): any;
7
+ static toBack(data: any): any;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum GameRugbyPosition {
3
+ front_line = 1,
4
+ second_line = 2,
5
+ back_line = 3,
6
+ halfback = 4,
7
+ three_quarter = 5,
8
+ fullback = 6
9
+ }
10
+ export declare class RugbyProfile extends BaseModel {
11
+ id: number;
12
+ userId: number;
13
+ position: GameRugbyPosition;
14
+ static toFront(value: any): any;
15
+ static toBack(value: any): any;
16
+ }
@@ -0,0 +1,52 @@
1
+ import { BaseModel } from './util';
2
+ import { TournamentTeamUser } from './tournament-team-user';
3
+ import { Team } from './team';
4
+ import { TeamUser } from './team-user';
5
+ import { User } from './user';
6
+ import { TournamentTeam } from './tournament-team';
7
+ export declare class RugbyStatistic extends BaseModel {
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
+ newbie: boolean;
18
+ points: number;
19
+ tries: number;
20
+ penaltyTries: number;
21
+ conversionGoals: number;
22
+ conversionMisses: number;
23
+ drawingBall: number;
24
+ penaltyMisses: number;
25
+ penaltyGoals: number;
26
+ dropGoals: number;
27
+ dropGoalMisses: number;
28
+ freeKicks: number;
29
+ yellowCards: number;
30
+ redCards: number;
31
+ offloads: number;
32
+ tackles: number;
33
+ outs: number;
34
+ handlingErrors: number;
35
+ carriesOtherGainline: number;
36
+ plusMinus: number;
37
+ gameTime: number;
38
+ scrumsWon: number;
39
+ scrumLosses: number;
40
+ scrumsWonFree: number;
41
+ lineoutsSuccess: number;
42
+ lineoutsSteal: number;
43
+ quickThrows: number;
44
+ rucksWon: number;
45
+ ruckLosses: number;
46
+ maulsWon: number;
47
+ maulLosses: number;
48
+ fouls: number;
49
+ get userMinutes(): string;
50
+ static toFront(data: any): any;
51
+ static toBack(data: any): any;
52
+ }
package/models/sport.d.ts CHANGED
@@ -13,7 +13,10 @@ export declare enum SportTypes {
13
13
  classic_football = 11,
14
14
  mini_football = 12,
15
15
  handball = 13,
16
- handball_classic = 14
16
+ handball_classic = 14,
17
+ rugby = 15,
18
+ rugby7 = 16,
19
+ rugby15 = 17
17
20
  }
18
21
  export declare class Sport extends BaseModel {
19
22
  id: number;
@@ -34,6 +37,9 @@ export declare class Sport extends BaseModel {
34
37
  isMiniFootball(): boolean;
35
38
  isHandball(): boolean;
36
39
  isHandballClassic(): boolean;
40
+ isRugby(): boolean;
41
+ isRugby15(): boolean;
42
+ isRugby7(): boolean;
37
43
  static toFront(data: any): any;
38
44
  static toBack(sport: Sport): any;
39
45
  }
@@ -74,6 +74,8 @@ export declare class TournamentSettings extends BaseModel {
74
74
  shotClockEnabled: boolean;
75
75
  gameTimeType: GameTimeTypes;
76
76
  withResultTable: boolean;
77
+ freeSubstituteEnabled: boolean;
78
+ bonusPointsEnabled: boolean;
77
79
  static toFront(data: any): any;
78
80
  static toBack(data: any): any;
79
81
  }
package/models/user.d.ts CHANGED
@@ -7,6 +7,7 @@ import { VolleyballProfile } from './volleyball-profile';
7
7
  import { HockeyProfile } from './hockey-profile';
8
8
  import { FootballProfile } from './football-profile';
9
9
  import { HandballProfile } from './handball-profile';
10
+ import { RugbyProfile } from './rugby-profile';
10
11
  export declare enum UserGender {
11
12
  male = 1,
12
13
  female = 2
@@ -25,6 +26,7 @@ export declare class User extends BaseModel {
25
26
  hockeyProfile: HockeyProfile;
26
27
  footballProfile: FootballProfile;
27
28
  handballProfile: HandballProfile;
29
+ rugbyProfile: RugbyProfile;
28
30
  photo: File;
29
31
  wizards: string[];
30
32
  city: City;