@mtgame/core 0.1.40 → 0.1.42

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 (43) hide show
  1. package/api/game-base-api.d.ts +1 -0
  2. package/api/rugby-game-api.d.ts +3 -0
  3. package/bundles/mtgame-core.umd.js +257 -134
  4. package/bundles/mtgame-core.umd.js.map +1 -1
  5. package/bundles/mtgame-core.umd.min.js +1 -1
  6. package/bundles/mtgame-core.umd.min.js.map +1 -1
  7. package/esm2015/api/game-base-api.js +10 -2
  8. package/esm2015/api/rugby-game-api.js +16 -2
  9. package/esm2015/localization/public-api.js +2 -1
  10. package/esm2015/localization/rugby-foul-sanction.js +10 -0
  11. package/esm2015/localization/rugby-game-log-types.js +4 -1
  12. package/esm2015/models/game.js +15 -1
  13. package/esm2015/models/public-api.js +2 -1
  14. package/esm2015/models/rugby-foul-type.js +35 -0
  15. package/esm2015/models/rugby-game-log.js +32 -24
  16. package/esm2015/models/rugby-game-statistic.js +7 -1
  17. package/esm2015/models/rugby-statistic.js +15 -1
  18. package/esm5/api/game-base-api.js +12 -2
  19. package/esm5/api/rugby-game-api.js +20 -2
  20. package/esm5/localization/public-api.js +2 -1
  21. package/esm5/localization/rugby-foul-sanction.js +11 -0
  22. package/esm5/localization/rugby-game-log-types.js +4 -1
  23. package/esm5/models/game.js +19 -1
  24. package/esm5/models/public-api.js +2 -1
  25. package/esm5/models/rugby-foul-type.js +40 -0
  26. package/esm5/models/rugby-game-log.js +32 -24
  27. package/esm5/models/rugby-game-statistic.js +7 -1
  28. package/esm5/models/rugby-statistic.js +15 -1
  29. package/fesm2015/mtgame-core.js +160 -55
  30. package/fesm2015/mtgame-core.js.map +1 -1
  31. package/fesm5/mtgame-core.js +257 -136
  32. package/fesm5/mtgame-core.js.map +1 -1
  33. package/localization/public-api.d.ts +1 -0
  34. package/localization/rugby-foul-sanction.d.ts +9 -0
  35. package/localization/rugby-game-log-types.d.ts +3 -0
  36. package/models/game.d.ts +4 -0
  37. package/models/public-api.d.ts +1 -0
  38. package/models/rugby-foul-type.d.ts +16 -0
  39. package/models/rugby-game-log.d.ts +27 -21
  40. package/models/rugby-game-statistic.d.ts +6 -0
  41. package/models/rugby-statistic.d.ts +14 -0
  42. package/mtgame-core.metadata.json +1 -1
  43. 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-foul-sanction';
7
8
  export * from './rugby-game-log-types';
8
9
  export * from './team-event-type';
9
10
  export * from './team-user-role';
@@ -0,0 +1,9 @@
1
+ import { RugbyFoulSanctions } from '../models/rugby-foul-type';
2
+ export declare const RugbyFoulSanctionLocalization: {
3
+ 1: string;
4
+ 2: string;
5
+ 3: string;
6
+ 4: string;
7
+ 5: string;
8
+ 6: string;
9
+ };
@@ -32,4 +32,7 @@ export declare const RugbyGameLogTypeLocalization: {
32
32
  30: string;
33
33
  31: string;
34
34
  32: string;
35
+ 33: string;
36
+ 34: string;
37
+ 35: string;
35
38
  };
package/models/game.d.ts CHANGED
@@ -11,6 +11,7 @@ import { HandballGameConfig } from './handball-game-config';
11
11
  import { Playoff } from './playoff';
12
12
  import { TournamentGroup } from './tournament-group';
13
13
  import { File } from './file';
14
+ import { RugbyGameConfig } from "./rugby-game-config";
14
15
  export declare enum GameStatuses {
15
16
  open = 1,
16
17
  in_progress = 2,
@@ -37,6 +38,7 @@ export declare class Game extends BaseModel {
37
38
  private _hockeyGameConfig;
38
39
  private _footballGameConfig;
39
40
  private _handballGameConfig;
41
+ private _rugbyGameConfig;
40
42
  id: number;
41
43
  status: GameStatuses;
42
44
  team: Team;
@@ -78,6 +80,8 @@ export declare class Game extends BaseModel {
78
80
  set handballGameConfig(value: HandballGameConfig);
79
81
  get footballGameConfig(): FootballGameConfig;
80
82
  set footballGameConfig(value: FootballGameConfig);
83
+ get rugbyGameConfig(): RugbyGameConfig;
84
+ set rugbyGameConfig(value: RugbyGameConfig);
81
85
  get scoreByPeriodList(): {
82
86
  period: number;
83
87
  teamScore: number;
@@ -47,6 +47,7 @@ export * from './notification-settings';
47
47
  export * from './organization';
48
48
  export * from './playoff';
49
49
  export * from './poll';
50
+ export * from './rugby-foul-type';
50
51
  export * from './rugby-game-config';
51
52
  export * from './rugby-game-log';
52
53
  export * from './rugby-game-statistic';
@@ -0,0 +1,16 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum RugbyFoulSanctions {
3
+ scrum = 1,
4
+ lineout = 2,
5
+ free_kick = 3,
6
+ penalty_shot = 4,
7
+ yellow_card = 5,
8
+ red_card = 6
9
+ }
10
+ export declare class RugbyFoulType extends BaseModel {
11
+ id: number;
12
+ name: string;
13
+ sanction: RugbyFoulSanctions[];
14
+ static toFront(data: any): any;
15
+ static toBack(data: any): any;
16
+ }
@@ -1,6 +1,7 @@
1
1
  import { BaseModel } from './util';
2
2
  import { GameLogBase } from './game-log-base';
3
3
  import { GameUser } from './game-user';
4
+ import { RugbyFoulSanctions, RugbyFoulType } from './rugby-foul-type';
4
5
  export declare enum RugbyGameLogTypes {
5
6
  enter_game = 1,
6
7
  exit_game = 2,
@@ -14,26 +15,29 @@ export declare enum RugbyGameLogTypes {
14
15
  drop_goal = 10,
15
16
  drop_goal_miss = 11,
16
17
  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
18
+ foul = 13,
19
+ yellow_card = 14,
20
+ red_card = 15,
21
+ offload = 16,
22
+ tackle = 17,
23
+ out = 18,
24
+ handling_error = 19,
25
+ carries_other_gainline = 20,
26
+ bleeding_injury = 21,
27
+ head_injury = 22,
28
+ timeout = 23,
29
+ scrum_won = 24,
30
+ scrum_lose = 25,
31
+ scrum_won_free = 26,
32
+ lineout_success = 27,
33
+ lineout_loss = 28,
34
+ lineout_steal = 29,
35
+ quick_throw = 30,
36
+ ruck_won = 31,
37
+ ruck_lose = 32,
38
+ maul_won = 33,
39
+ maul_lose = 34,
40
+ team_foul = 35
37
41
  }
38
42
  export declare const RUGBY_GAME_LOG_TYPE_POINTS: {
39
43
  4: number;
@@ -46,6 +50,7 @@ export declare const RUGBY_TEAM_LOG_TYPES: RugbyGameLogTypes[];
46
50
  export declare class RugbyGameLog extends BaseModel implements GameLogBase {
47
51
  id: number;
48
52
  uniqueId: string;
53
+ group: string;
49
54
  gameId: number;
50
55
  gameUserId: number;
51
56
  gameUser: GameUser;
@@ -58,7 +63,8 @@ export declare class RugbyGameLog extends BaseModel implements GameLogBase {
58
63
  teamScore: number;
59
64
  competitorTeamScore: number;
60
65
  isHighlight: boolean;
61
- isGoalie: boolean;
66
+ foulType: RugbyFoulType;
67
+ foulSanction: RugbyFoulSanctions;
62
68
  compare(model: RugbyGameLog): number;
63
69
  get timeFormatted(): string;
64
70
  isScoreType(): boolean;
@@ -4,13 +4,19 @@ export declare class RugbyGameStatistic extends BaseModel {
4
4
  points: number;
5
5
  tries: number;
6
6
  penaltyTries: number;
7
+ conversionShots: number;
7
8
  conversionGoals: number;
8
9
  conversionMisses: number;
10
+ conversionGoalsPercent: number;
9
11
  drawingBall: number;
10
12
  penaltyMisses: number;
11
13
  penaltyGoals: number;
14
+ penaltyShots: number;
15
+ penaltyGoalsPercent: number;
12
16
  dropGoals: number;
13
17
  dropGoalMisses: number;
18
+ dropGoalShots: number;
19
+ dropGoalsPercent: number;
14
20
  freeKicks: number;
15
21
  yellowCards: number;
16
22
  redCards: number;
@@ -18,13 +18,19 @@ export declare class RugbyStatistic extends BaseModel {
18
18
  points: number;
19
19
  tries: number;
20
20
  penaltyTries: number;
21
+ conversionShots: number;
21
22
  conversionGoals: number;
22
23
  conversionMisses: number;
24
+ conversionGoalsPercent: number;
23
25
  drawingBall: number;
26
+ penaltyShots: number;
24
27
  penaltyMisses: number;
25
28
  penaltyGoals: number;
29
+ penaltyGoalsPercent: number;
30
+ dropGoalShots: number;
26
31
  dropGoals: number;
27
32
  dropGoalMisses: number;
33
+ dropGoalPercent: number;
28
34
  freeKicks: number;
29
35
  yellowCards: number;
30
36
  redCards: number;
@@ -35,16 +41,24 @@ export declare class RugbyStatistic extends BaseModel {
35
41
  carriesOtherGainline: number;
36
42
  plusMinus: number;
37
43
  gameTime: number;
44
+ scrums: number;
38
45
  scrumsWon: number;
39
46
  scrumLosses: number;
47
+ scrumsWonPercent: number;
40
48
  scrumsWonFree: number;
49
+ lineouts: number;
41
50
  lineoutsSuccess: number;
51
+ lineoutLoses: number;
42
52
  lineoutsSteal: number;
43
53
  quickThrows: number;
54
+ rucks: number;
44
55
  rucksWon: number;
45
56
  ruckLosses: number;
57
+ rucksWonPercent: number;
58
+ mauls: number;
46
59
  maulsWon: number;
47
60
  maulLosses: number;
61
+ maulWonPercent: number;
48
62
  fouls: number;
49
63
  get userMinutes(): string;
50
64
  static toFront(data: any): any;