@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
@@ -644,6 +644,9 @@
644
644
  SportTypes[SportTypes["mini_football"] = 12] = "mini_football";
645
645
  SportTypes[SportTypes["handball"] = 13] = "handball";
646
646
  SportTypes[SportTypes["handball_classic"] = 14] = "handball_classic";
647
+ SportTypes[SportTypes["rugby"] = 15] = "rugby";
648
+ SportTypes[SportTypes["rugby7"] = 16] = "rugby7";
649
+ SportTypes[SportTypes["rugby15"] = 17] = "rugby15";
647
650
  })(exports.SportTypes || (exports.SportTypes = {}));
648
651
  var Sport = /** @class */ (function (_super) {
649
652
  __extends(Sport, _super);
@@ -692,6 +695,15 @@
692
695
  Sport.prototype.isHandballClassic = function () {
693
696
  return this.id === exports.SportTypes.handball_classic;
694
697
  };
698
+ Sport.prototype.isRugby = function () {
699
+ return this.id === exports.SportTypes.rugby || this.parentId === exports.SportTypes.rugby;
700
+ };
701
+ Sport.prototype.isRugby15 = function () {
702
+ return this.id === exports.SportTypes.rugby15;
703
+ };
704
+ Sport.prototype.isRugby7 = function () {
705
+ return this.id === exports.SportTypes.rugby7;
706
+ };
695
707
  Sport.toFront = function (data) {
696
708
  return null;
697
709
  };
@@ -984,6 +996,45 @@
984
996
  }(BaseModel));
985
997
 
986
998
 
999
+ (function (GameRugbyPosition) {
1000
+ GameRugbyPosition[GameRugbyPosition["front_line"] = 1] = "front_line";
1001
+ GameRugbyPosition[GameRugbyPosition["second_line"] = 2] = "second_line";
1002
+ GameRugbyPosition[GameRugbyPosition["back_line"] = 3] = "back_line";
1003
+ GameRugbyPosition[GameRugbyPosition["halfback"] = 4] = "halfback";
1004
+ GameRugbyPosition[GameRugbyPosition["three_quarter"] = 5] = "three_quarter";
1005
+ GameRugbyPosition[GameRugbyPosition["fullback"] = 6] = "fullback";
1006
+ })(exports.GameRugbyPosition || (exports.GameRugbyPosition = {}));
1007
+ var RugbyProfile = /** @class */ (function (_super) {
1008
+ __extends(RugbyProfile, _super);
1009
+ function RugbyProfile() {
1010
+ return _super !== null && _super.apply(this, arguments) || this;
1011
+ }
1012
+ RugbyProfile.toFront = function (value) {
1013
+ };
1014
+ RugbyProfile.toBack = function (value) {
1015
+ };
1016
+ __decorate([
1017
+ ToFrontHook
1018
+ ], RugbyProfile, "toFront", null);
1019
+ __decorate([
1020
+ ToBackHook
1021
+ ], RugbyProfile, "toBack", null);
1022
+ RugbyProfile = __decorate([
1023
+ ModelInstance({
1024
+ mappingFields: {
1025
+ id: 'id',
1026
+ user_id: 'userId',
1027
+ position: 'position'
1028
+ },
1029
+ relation: {
1030
+ position: enumField(exports.GameRugbyPosition),
1031
+ }
1032
+ })
1033
+ ], RugbyProfile);
1034
+ return RugbyProfile;
1035
+ }(BaseModel));
1036
+
1037
+
987
1038
  (function (UserGender) {
988
1039
  UserGender[UserGender["male"] = 1] = "male";
989
1040
  UserGender[UserGender["female"] = 2] = "female";
@@ -1054,6 +1105,7 @@
1054
1105
  hockey_profile: 'hockeyProfile',
1055
1106
  football_profile: 'footballProfile',
1056
1107
  handball_profile: 'handballProfile',
1108
+ rugby_profile: 'rugbyProfile',
1057
1109
  wizards: 'wizards',
1058
1110
  city: 'city',
1059
1111
  gender: 'gender',
@@ -1068,6 +1120,7 @@
1068
1120
  hockeyProfile: HockeyProfile,
1069
1121
  footballProfile: FootballProfile,
1070
1122
  handballProfile: HandballProfile,
1123
+ rugbyProfile: RugbyProfile,
1071
1124
  city: City,
1072
1125
  gender: enumField(exports.UserGender)
1073
1126
  }
@@ -1392,7 +1445,9 @@
1392
1445
  volleyball_statistic_type: 'volleyballStatisticType',
1393
1446
  shot_clock_enabled: 'shotClockEnabled',
1394
1447
  game_time_type: 'gameTimeType',
1395
- with_result_table: 'withResultTable'
1448
+ with_result_table: 'withResultTable',
1449
+ free_substitute_enabled: 'freeSubstituteEnabled',
1450
+ bonus_points_enabled: 'bonusPointsEnabled',
1396
1451
  },
1397
1452
  relation: {
1398
1453
  type: enumField(exports.TournamentTypes),
@@ -5260,6 +5315,91 @@
5260
5315
  return LeagueUser;
5261
5316
  }(BaseModel));
5262
5317
 
5318
+ var RugbyStatistic = /** @class */ (function (_super) {
5319
+ __extends(RugbyStatistic, _super);
5320
+ function RugbyStatistic() {
5321
+ return _super !== null && _super.apply(this, arguments) || this;
5322
+ }
5323
+ Object.defineProperty(RugbyStatistic.prototype, "userMinutes", {
5324
+ get: function () {
5325
+ if (!this.gameTime) {
5326
+ return '00:00';
5327
+ }
5328
+ var minutes = Math.floor(this.gameTime / 60);
5329
+ var seconds = Math.floor(this.gameTime - minutes * 60);
5330
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
5331
+ },
5332
+ enumerable: true,
5333
+ configurable: true
5334
+ });
5335
+ RugbyStatistic.toFront = function (data) { };
5336
+ RugbyStatistic.toBack = function (data) { };
5337
+ __decorate([
5338
+ ToFrontHook
5339
+ ], RugbyStatistic, "toFront", null);
5340
+ __decorate([
5341
+ ToBackHook
5342
+ ], RugbyStatistic, "toBack", null);
5343
+ RugbyStatistic = __decorate([
5344
+ ModelInstance({
5345
+ mappingFields: {
5346
+ tournament_team_user: 'tournamentTeamUser',
5347
+ team: 'team',
5348
+ team_user: 'teamUser',
5349
+ user: 'user',
5350
+ tournament_team: 'tournamentTeam',
5351
+ month: 'month',
5352
+ win_lose: 'winLose',
5353
+ games_count: 'gamesCount',
5354
+ won_games_count: 'wonGamesCount',
5355
+ newbie: 'newbie',
5356
+ // User statistic
5357
+ points: 'points',
5358
+ tries: 'tries',
5359
+ penalty_tries: 'penaltyTries',
5360
+ conversion_goals: 'conversionGoals',
5361
+ conversion_misses: 'conversionMisses',
5362
+ drawing_ball: 'drawingBall',
5363
+ penalty_misses: 'penaltyMisses',
5364
+ penalty_goals: 'penaltyGoals',
5365
+ drop_goals: 'dropGoals',
5366
+ drop_goal_misses: 'dropGoalMisses',
5367
+ free_kicks: 'freeKicks',
5368
+ yellow_cards: 'yellowCards',
5369
+ red_cards: 'redCards',
5370
+ offloads: 'offloads',
5371
+ tackles: 'tackles',
5372
+ outs: 'outs',
5373
+ handling_errors: 'handlingErrors',
5374
+ carries_other_gainline: 'carriesOtherGainline',
5375
+ plus_minus: 'plusMinus',
5376
+ game_time: 'gameTime',
5377
+ // Team statistic
5378
+ scrums_won: 'scrumsWon',
5379
+ scrum_losses: 'scrumLosses',
5380
+ scrums_won_free: 'scrumsWonFree',
5381
+ lineouts_success: 'lineoutsSuccess',
5382
+ lineouts_steal: 'lineoutsSteal',
5383
+ quick_throws: 'quickThrows',
5384
+ rucks_won: 'rucksWon',
5385
+ ruck_losses: 'ruckLosses',
5386
+ mauls_won: 'maulsWon',
5387
+ maul_losses: 'maulLosses',
5388
+ fouls: 'fouls'
5389
+ },
5390
+ relation: {
5391
+ tournamentTeamUser: TournamentTeamUser,
5392
+ team: Team,
5393
+ teamUser: TeamUser,
5394
+ user: User,
5395
+ tournamentTeam: TournamentTeam,
5396
+ month: DateField
5397
+ }
5398
+ })
5399
+ ], RugbyStatistic);
5400
+ return RugbyStatistic;
5401
+ }(BaseModel));
5402
+
5263
5403
  var TournamentApi = /** @class */ (function () {
5264
5404
  function TournamentApi(httpClient, configService) {
5265
5405
  this.httpClient = httpClient;
@@ -5371,10 +5511,15 @@
5371
5511
  });
5372
5512
  });
5373
5513
  };
5374
- TournamentApi.prototype.getTeams = function (tournamentId) {
5514
+ TournamentApi.prototype.getTeams = function (tournamentId, groupId) {
5375
5515
  return __awaiter(this, void 0, void 0, function () {
5516
+ var params;
5376
5517
  return __generator(this, function (_a) {
5377
- return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/")
5518
+ params = new http.HttpParams();
5519
+ if (groupId) {
5520
+ params = params.set('group_id', groupId.toString());
5521
+ }
5522
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/", { params: params })
5378
5523
  .pipe(operators.map(function (result) { return TournamentTeam.toFront(result); }))
5379
5524
  .toPromise()];
5380
5525
  });
@@ -5611,6 +5756,19 @@
5611
5756
  });
5612
5757
  });
5613
5758
  };
5759
+ TournamentApi.prototype.getRugbyStatistic = function (filters) {
5760
+ return __awaiter(this, void 0, void 0, function () {
5761
+ var params;
5762
+ return __generator(this, function (_a) {
5763
+ params = new http.HttpParams();
5764
+ params = applyStatisticFilters(filters, params);
5765
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/rugby_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
5766
+ total: +result.headers.get('X-Page-Count'),
5767
+ data: RugbyStatistic.toFront(result.body)
5768
+ }); })).toPromise()];
5769
+ });
5770
+ });
5771
+ };
5614
5772
  TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
5615
5773
  return __awaiter(this, void 0, void 0, function () {
5616
5774
  return __generator(this, function (_a) {
@@ -6943,6 +7101,271 @@
6943
7101
  return ReferenceApi;
6944
7102
  }());
6945
7103
 
7104
+ var RugbyGameTeamStatistic = /** @class */ (function (_super) {
7105
+ __extends(RugbyGameTeamStatistic, _super);
7106
+ function RugbyGameTeamStatistic() {
7107
+ return _super !== null && _super.apply(this, arguments) || this;
7108
+ }
7109
+ RugbyGameTeamStatistic.toFront = function (data) { };
7110
+ RugbyGameTeamStatistic.toBack = function (data) { };
7111
+ __decorate([
7112
+ ToFrontHook
7113
+ ], RugbyGameTeamStatistic, "toFront", null);
7114
+ __decorate([
7115
+ ToBackHook
7116
+ ], RugbyGameTeamStatistic, "toBack", null);
7117
+ RugbyGameTeamStatistic = __decorate([
7118
+ ModelInstance({
7119
+ mappingFields: {
7120
+ team: 'team',
7121
+ competitor_team: 'competitorTeam'
7122
+ },
7123
+ relation: {
7124
+ team: RugbyStatistic,
7125
+ competitorTeam: RugbyStatistic
7126
+ }
7127
+ })
7128
+ ], RugbyGameTeamStatistic);
7129
+ return RugbyGameTeamStatistic;
7130
+ }(BaseModel));
7131
+
7132
+ var RugbyGameStatistic = /** @class */ (function (_super) {
7133
+ __extends(RugbyGameStatistic, _super);
7134
+ function RugbyGameStatistic() {
7135
+ return _super !== null && _super.apply(this, arguments) || this;
7136
+ }
7137
+ Object.defineProperty(RugbyGameStatistic.prototype, "id", {
7138
+ get: function () {
7139
+ return this.gameUserId;
7140
+ },
7141
+ enumerable: true,
7142
+ configurable: true
7143
+ });
7144
+ Object.defineProperty(RugbyGameStatistic.prototype, "gameMinutes", {
7145
+ get: function () {
7146
+ return Math.floor(this.gameTime / 60);
7147
+ },
7148
+ enumerable: true,
7149
+ configurable: true
7150
+ });
7151
+ RugbyGameStatistic.toFront = function (data) { };
7152
+ RugbyGameStatistic.toBack = function (data) { };
7153
+ __decorate([
7154
+ ToFrontHook
7155
+ ], RugbyGameStatistic, "toFront", null);
7156
+ __decorate([
7157
+ ToBackHook
7158
+ ], RugbyGameStatistic, "toBack", null);
7159
+ RugbyGameStatistic = __decorate([
7160
+ ModelInstance({
7161
+ mappingFields: {
7162
+ game_user_id: 'gameUserId',
7163
+ updated_at: 'updatedAt',
7164
+ points: 'points',
7165
+ tries: 'tries',
7166
+ penalty_tries: 'penaltyTries',
7167
+ conversion_goals: 'conversionGoals',
7168
+ conversion_misses: 'conversionMisses',
7169
+ drawing_ball: 'drawingBall',
7170
+ penalty_misses: 'penaltyMisses',
7171
+ penalty_goals: 'penaltyGoals',
7172
+ drop_goals: 'dropGoals',
7173
+ drop_goal_misses: 'dropGoalMisses',
7174
+ free_kicks: 'freeKicks',
7175
+ yellow_cards: 'yellowCards',
7176
+ red_cards: 'redCards',
7177
+ offloads: 'offloads',
7178
+ tackles: 'tackles',
7179
+ outs: 'outs',
7180
+ handling_errors: 'handlingErrors',
7181
+ carries_other_gainline: 'carriesOtherGainline',
7182
+ game_time: 'gameTime',
7183
+ plus_minus: 'plusMinus'
7184
+ },
7185
+ relation: {
7186
+ updatedAt: DateTimeField,
7187
+ }
7188
+ })
7189
+ ], RugbyGameStatistic);
7190
+ return RugbyGameStatistic;
7191
+ }(BaseModel));
7192
+
7193
+ var _a$1;
7194
+
7195
+ (function (RugbyGameLogTypes) {
7196
+ RugbyGameLogTypes[RugbyGameLogTypes["enter_game"] = 1] = "enter_game";
7197
+ RugbyGameLogTypes[RugbyGameLogTypes["exit_game"] = 2] = "exit_game";
7198
+ RugbyGameLogTypes[RugbyGameLogTypes["try"] = 3] = "try";
7199
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_try"] = 4] = "penalty_try";
7200
+ RugbyGameLogTypes[RugbyGameLogTypes["conversion_goal"] = 5] = "conversion_goal";
7201
+ RugbyGameLogTypes[RugbyGameLogTypes["conversion_miss"] = 6] = "conversion_miss";
7202
+ RugbyGameLogTypes[RugbyGameLogTypes["drawing_ball"] = 7] = "drawing_ball";
7203
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_miss"] = 8] = "penalty_miss";
7204
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_goal"] = 9] = "penalty_goal";
7205
+ RugbyGameLogTypes[RugbyGameLogTypes["drop_goal"] = 10] = "drop_goal";
7206
+ RugbyGameLogTypes[RugbyGameLogTypes["drop_goal_miss"] = 11] = "drop_goal_miss";
7207
+ RugbyGameLogTypes[RugbyGameLogTypes["free_kick"] = 12] = "free_kick";
7208
+ RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 13] = "yellow_card";
7209
+ RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 14] = "red_card";
7210
+ RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 15] = "offload";
7211
+ RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 16] = "tackle";
7212
+ RugbyGameLogTypes[RugbyGameLogTypes["out"] = 17] = "out";
7213
+ RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 18] = "handling_error";
7214
+ RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 19] = "carries_other_gainline";
7215
+ // team actions
7216
+ RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 20] = "timeout";
7217
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 21] = "scrum_won";
7218
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 22] = "scrum_lose";
7219
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 23] = "scrum_won_free";
7220
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 24] = "lineout_success";
7221
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 25] = "lineout_loss";
7222
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 26] = "lineout_steal";
7223
+ RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 27] = "quick_throw";
7224
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 28] = "ruck_won";
7225
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 29] = "ruck_lose";
7226
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 30] = "maul_won";
7227
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 31] = "maul_lose";
7228
+ RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 32] = "team_foul";
7229
+ })(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
7230
+ var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
7231
+ _a$1[exports.RugbyGameLogTypes.penalty_try] = 7,
7232
+ _a$1[exports.RugbyGameLogTypes.try] = 5,
7233
+ _a$1[exports.RugbyGameLogTypes.conversion_goal] = 2,
7234
+ _a$1[exports.RugbyGameLogTypes.penalty_goal] = 3,
7235
+ _a$1[exports.RugbyGameLogTypes.drop_goal] = 3,
7236
+ _a$1);
7237
+ var RUGBY_TEAM_LOG_TYPES = [
7238
+ exports.RugbyGameLogTypes.timeout, exports.RugbyGameLogTypes.scrum_won, exports.RugbyGameLogTypes.scrum_lose, exports.RugbyGameLogTypes.scrum_won_free,
7239
+ exports.RugbyGameLogTypes.lineout_success, exports.RugbyGameLogTypes.lineout_loss, exports.RugbyGameLogTypes.lineout_steal, exports.RugbyGameLogTypes.quick_throw,
7240
+ exports.RugbyGameLogTypes.ruck_won, exports.RugbyGameLogTypes.ruck_lose, exports.RugbyGameLogTypes.maul_won, exports.RugbyGameLogTypes.maul_lose,
7241
+ exports.RugbyGameLogTypes.team_foul,
7242
+ ];
7243
+ var RugbyGameLog = /** @class */ (function (_super) {
7244
+ __extends(RugbyGameLog, _super);
7245
+ function RugbyGameLog() {
7246
+ var _this = _super !== null && _super.apply(this, arguments) || this;
7247
+ _this.active = true;
7248
+ return _this;
7249
+ }
7250
+ RugbyGameLog.prototype.compare = function (model) {
7251
+ if (this.time === model.time && this.period === model.period) {
7252
+ return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
7253
+ }
7254
+ if (this.period === model.period) {
7255
+ return this.time < model.time ? 1 : -1;
7256
+ }
7257
+ return this.period < model.period ? 1 : -1;
7258
+ };
7259
+ Object.defineProperty(RugbyGameLog.prototype, "timeFormatted", {
7260
+ get: function () {
7261
+ var minutes = Math.floor(this.time / 60);
7262
+ var seconds = this.time - minutes * 60;
7263
+ return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
7264
+ },
7265
+ enumerable: true,
7266
+ configurable: true
7267
+ });
7268
+ RugbyGameLog.prototype.isScoreType = function () {
7269
+ return RUGBY_GAME_LOG_TYPE_POINTS[this.logType] !== undefined;
7270
+ };
7271
+ RugbyGameLog.prototype.scorePoints = function () {
7272
+ return RUGBY_GAME_LOG_TYPE_POINTS[this.logType];
7273
+ };
7274
+ RugbyGameLog.prototype.isAfter = function (log) {
7275
+ if (this.time === log.time && this.period === log.period) {
7276
+ return this.id > log.id;
7277
+ }
7278
+ if (this.period === log.period) {
7279
+ return this.time > log.time;
7280
+ }
7281
+ return this.period > log.period;
7282
+ };
7283
+ RugbyGameLog.prototype.isFoulType = function () {
7284
+ return [exports.RugbyGameLogTypes.team_foul, exports.RugbyGameLogTypes.yellow_card, exports.RugbyGameLogTypes.red_card].indexOf(this.logType) > -1;
7285
+ };
7286
+ RugbyGameLog.prototype.isTeamType = function () {
7287
+ return RUGBY_TEAM_LOG_TYPES.includes(this.logType);
7288
+ };
7289
+ RugbyGameLog.toFront = function (value) { };
7290
+ RugbyGameLog.toBack = function (value) { };
7291
+ __decorate([
7292
+ ToFrontHook
7293
+ ], RugbyGameLog, "toFront", null);
7294
+ __decorate([
7295
+ ToBackHook
7296
+ ], RugbyGameLog, "toBack", null);
7297
+ RugbyGameLog = __decorate([
7298
+ ModelInstance({
7299
+ mappingFields: {
7300
+ id: 'id',
7301
+ unique_id: 'uniqueId',
7302
+ game_id: 'gameId',
7303
+ game_user_id: 'gameUserId',
7304
+ team_id: 'teamId',
7305
+ log_type: 'logType',
7306
+ datetime: 'datetime',
7307
+ time: 'time',
7308
+ period: 'period',
7309
+ active: 'active',
7310
+ is_highlight: 'isHighlight',
7311
+ penalty_type: 'penaltyType',
7312
+ },
7313
+ relation: {
7314
+ datetime: DateTimeField,
7315
+ logType: enumField(exports.RugbyGameLogTypes)
7316
+ }
7317
+ })
7318
+ ], RugbyGameLog);
7319
+ return RugbyGameLog;
7320
+ }(BaseModel));
7321
+
7322
+ var RugbyGameApi = /** @class */ (function (_super) {
7323
+ __extends(RugbyGameApi, _super);
7324
+ function RugbyGameApi(httpClient, configService) {
7325
+ var _this = _super.call(this, httpClient, configService) || this;
7326
+ _this.httpClient = httpClient;
7327
+ _this.configService = configService;
7328
+ return _this;
7329
+ }
7330
+ RugbyGameApi.prototype.getById = function (gameId) {
7331
+ return __awaiter(this, void 0, void 0, function () {
7332
+ return __generator(this, function (_a) {
7333
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/").pipe(operators.map(function (result) { return Game.toFront(result); })).toPromise()];
7334
+ });
7335
+ });
7336
+ };
7337
+ RugbyGameApi.prototype.getTeamStatistic = function (gameId) {
7338
+ return __awaiter(this, void 0, void 0, function () {
7339
+ return __generator(this, function (_a) {
7340
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/team_statistic/").pipe(operators.map(function (result) { return RugbyGameTeamStatistic.toFront(result); })).toPromise()];
7341
+ });
7342
+ });
7343
+ };
7344
+ RugbyGameApi.prototype.getUserStatistic = function (gameId) {
7345
+ return __awaiter(this, void 0, void 0, function () {
7346
+ return __generator(this, function (_a) {
7347
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/user_statistic/").pipe(operators.map(function (result) { return RugbyGameStatistic.toFront(result); })).toPromise()];
7348
+ });
7349
+ });
7350
+ };
7351
+ RugbyGameApi.prototype.getLogs = function (gameId) {
7352
+ return __awaiter(this, void 0, void 0, function () {
7353
+ return __generator(this, function (_a) {
7354
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/logs/").pipe(operators.map(function (result) { return RugbyGameLog.toFront(result); })).toPromise()];
7355
+ });
7356
+ });
7357
+ };
7358
+ RugbyGameApi.ctorParameters = function () { return [
7359
+ { type: http.HttpClient },
7360
+ { type: ConfigService }
7361
+ ]; };
7362
+ RugbyGameApi.ɵprov = core.ɵɵdefineInjectable({ factory: function RugbyGameApi_Factory() { return new RugbyGameApi(core.ɵɵinject(http.HttpClient), core.ɵɵinject(ConfigService)); }, token: RugbyGameApi, providedIn: "root" });
7363
+ RugbyGameApi = __decorate([
7364
+ core.Injectable({ providedIn: 'root' })
7365
+ ], RugbyGameApi);
7366
+ return RugbyGameApi;
7367
+ }(GameBaseApi));
7368
+
6946
7369
  var TeamInviteExternal = /** @class */ (function (_super) {
6947
7370
  __extends(TeamInviteExternal, _super);
6948
7371
  function TeamInviteExternal() {
@@ -8638,152 +9061,188 @@
8638
9061
  return PublicUserApi;
8639
9062
  }());
8640
9063
 
8641
- var _a$1;
8642
- var BasketballGameLogTypeLocalization = (_a$1 = {},
8643
- _a$1[exports.BasketballGameLogTypes.enter_game] = 'Выход на площадку',
8644
- _a$1[exports.BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
8645
- _a$1[exports.BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
8646
- _a$1[exports.BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
8647
- _a$1[exports.BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
8648
- _a$1[exports.BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
8649
- _a$1[exports.BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
8650
- _a$1[exports.BasketballGameLogTypes.two_point_made] = '2 очка',
8651
- _a$1[exports.BasketballGameLogTypes.three_point_made] = '3 очка',
8652
- _a$1[exports.BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
8653
- _a$1[exports.BasketballGameLogTypes.one_point_made] = '1 очко',
8654
- _a$1[exports.BasketballGameLogTypes.assist] = 'Передача',
8655
- _a$1[exports.BasketballGameLogTypes.block] = 'Блокшот',
8656
- _a$1[exports.BasketballGameLogTypes.rebound] = 'Подбор',
8657
- _a$1[exports.BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
8658
- _a$1[exports.BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
8659
- _a$1[exports.BasketballGameLogTypes.steal] = 'Перехват',
8660
- _a$1[exports.BasketballGameLogTypes.turnover] = 'Потеря',
8661
- _a$1[exports.BasketballGameLogTypes.personal_foul] = 'Фол',
8662
- _a$1[exports.BasketballGameLogTypes.technical_foul] = 'Технический фол',
8663
- _a$1[exports.BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
8664
- _a$1[exports.BasketballGameLogTypes.timeout] = 'Таймаут',
8665
- _a$1[exports.BasketballGameLogTypes.team_rebound] = 'Командный подбор',
8666
- _a$1);
8667
-
8668
9064
  var _a$2;
8669
- var HockeyGameLogTypeLocalization = (_a$2 = {},
8670
- _a$2[exports.HockeyGameLogTypes.enter_game] = 'Выход на площадку',
8671
- _a$2[exports.HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
8672
- _a$2[exports.HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
8673
- _a$2[exports.HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
8674
- _a$2[exports.HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
8675
- _a$2[exports.HockeyGameLogTypes.goal] = 'Гол',
8676
- _a$2[exports.HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
8677
- _a$2[exports.HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
8678
- _a$2[exports.HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
8679
- _a$2[exports.HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
8680
- _a$2[exports.HockeyGameLogTypes.assist] = 'Передача',
8681
- _a$2[exports.HockeyGameLogTypes.block_shot] = 'Блокировка броска',
8682
- _a$2[exports.HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
8683
- _a$2[exports.HockeyGameLogTypes.major_penalty] = 'Большой штраф',
8684
- _a$2[exports.HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
8685
- _a$2[exports.HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
8686
- _a$2[exports.HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
8687
- _a$2[exports.HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
8688
- _a$2[exports.HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
8689
- _a$2[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
8690
- _a$2[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
8691
- _a$2[exports.HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
8692
- _a$2[exports.HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
8693
- _a$2[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
8694
- _a$2[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
8695
- _a$2[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
9065
+ var BasketballGameLogTypeLocalization = (_a$2 = {},
9066
+ _a$2[exports.BasketballGameLogTypes.enter_game] = 'Выход на площадку',
9067
+ _a$2[exports.BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
9068
+ _a$2[exports.BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
9069
+ _a$2[exports.BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
9070
+ _a$2[exports.BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
9071
+ _a$2[exports.BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
9072
+ _a$2[exports.BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
9073
+ _a$2[exports.BasketballGameLogTypes.two_point_made] = '2 очка',
9074
+ _a$2[exports.BasketballGameLogTypes.three_point_made] = '3 очка',
9075
+ _a$2[exports.BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
9076
+ _a$2[exports.BasketballGameLogTypes.one_point_made] = '1 очко',
9077
+ _a$2[exports.BasketballGameLogTypes.assist] = 'Передача',
9078
+ _a$2[exports.BasketballGameLogTypes.block] = 'Блокшот',
9079
+ _a$2[exports.BasketballGameLogTypes.rebound] = 'Подбор',
9080
+ _a$2[exports.BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
9081
+ _a$2[exports.BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
9082
+ _a$2[exports.BasketballGameLogTypes.steal] = 'Перехват',
9083
+ _a$2[exports.BasketballGameLogTypes.turnover] = 'Потеря',
9084
+ _a$2[exports.BasketballGameLogTypes.personal_foul] = 'Фол',
9085
+ _a$2[exports.BasketballGameLogTypes.technical_foul] = 'Технический фол',
9086
+ _a$2[exports.BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
9087
+ _a$2[exports.BasketballGameLogTypes.timeout] = 'Таймаут',
9088
+ _a$2[exports.BasketballGameLogTypes.team_rebound] = 'Командный подбор',
8696
9089
  _a$2);
8697
9090
 
8698
9091
  var _a$3;
8699
- var FootballGameLogTypeLocalization = (_a$3 = {},
8700
- _a$3[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
8701
- _a$3[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
8702
- _a$3[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
8703
- _a$3[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
8704
- _a$3[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
8705
- _a$3[exports.FootballGameLogTypes.goal] = 'Гол',
8706
- _a$3[exports.FootballGameLogTypes.assist] = 'Передача',
8707
- _a$3[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
8708
- _a$3[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
8709
- _a$3[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
8710
- _a$3[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
8711
- _a$3[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
8712
- _a$3[exports.FootballGameLogTypes.corner] = 'Угловой',
8713
- _a$3[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
8714
- _a$3[exports.FootballGameLogTypes.save] = 'Отражен удар',
8715
- _a$3[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
8716
- _a$3[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
8717
- _a$3[exports.FootballGameLogTypes.foul] = 'Фол',
8718
- _a$3[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
8719
- _a$3[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
8720
- _a$3[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
8721
- _a$3[exports.FootballGameLogTypes.loss] = 'Потеря',
8722
- _a$3[exports.FootballGameLogTypes.steal] = 'Перехват',
8723
- _a$3[exports.FootballGameLogTypes.out] = 'Аут',
8724
- _a$3[exports.FootballGameLogTypes.timeout] = 'Таймаут',
8725
- _a$3[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
9092
+ var HockeyGameLogTypeLocalization = (_a$3 = {},
9093
+ _a$3[exports.HockeyGameLogTypes.enter_game] = 'Выход на площадку',
9094
+ _a$3[exports.HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
9095
+ _a$3[exports.HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
9096
+ _a$3[exports.HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
9097
+ _a$3[exports.HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
9098
+ _a$3[exports.HockeyGameLogTypes.goal] = 'Гол',
9099
+ _a$3[exports.HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
9100
+ _a$3[exports.HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
9101
+ _a$3[exports.HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
9102
+ _a$3[exports.HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
9103
+ _a$3[exports.HockeyGameLogTypes.assist] = 'Передача',
9104
+ _a$3[exports.HockeyGameLogTypes.block_shot] = 'Блокировка броска',
9105
+ _a$3[exports.HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
9106
+ _a$3[exports.HockeyGameLogTypes.major_penalty] = 'Большой штраф',
9107
+ _a$3[exports.HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
9108
+ _a$3[exports.HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
9109
+ _a$3[exports.HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
9110
+ _a$3[exports.HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
9111
+ _a$3[exports.HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
9112
+ _a$3[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
9113
+ _a$3[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
9114
+ _a$3[exports.HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
9115
+ _a$3[exports.HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
9116
+ _a$3[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
9117
+ _a$3[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
9118
+ _a$3[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
8726
9119
  _a$3);
8727
9120
 
8728
9121
  var _a$4;
8729
- var HandballGameLogTypeLocalization = (_a$4 = {},
8730
- _a$4[exports.HandballGameLogTypes.enter_game] = 'Выход на поле',
8731
- _a$4[exports.HandballGameLogTypes.exit_game] = 'Ушел с поля',
8732
- _a$4[exports.HandballGameLogTypes.shot_miss] = 'Бросок мимо',
8733
- _a$4[exports.HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
8734
- _a$4[exports.HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
8735
- _a$4[exports.HandballGameLogTypes.goal] = 'Гол',
8736
- _a$4[exports.HandballGameLogTypes.assist] = 'Передача',
8737
- _a$4[exports.HandballGameLogTypes.penalty_miss] = ' промах',
8738
- _a$4[exports.HandballGameLogTypes.penalty_shot_on_goal] = ' в створ',
8739
- _a$4[exports.HandballGameLogTypes.penalty_goal] = ' гол',
8740
- _a$4[exports.HandballGameLogTypes.save] = 'Сэйв',
8741
- _a$4[exports.HandballGameLogTypes.penalty_save] = 'Сэйв ',
8742
- _a$4[exports.HandballGameLogTypes.foul] = 'Фол',
8743
- _a$4[exports.HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
8744
- _a$4[exports.HandballGameLogTypes.red_card] = 'Красная карточка',
8745
- _a$4[exports.HandballGameLogTypes.two_minute_foul] = ' минутный штраф',
8746
- _a$4[exports.HandballGameLogTypes.turnover] = 'Потеря',
8747
- _a$4[exports.HandballGameLogTypes.steal] = 'Перехват',
8748
- _a$4[exports.HandballGameLogTypes.block_shot] = 'Блок броска',
8749
- _a$4[exports.HandballGameLogTypes.timeout] = 'Таймаут',
9122
+ var FootballGameLogTypeLocalization = (_a$4 = {},
9123
+ _a$4[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
9124
+ _a$4[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
9125
+ _a$4[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
9126
+ _a$4[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
9127
+ _a$4[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
9128
+ _a$4[exports.FootballGameLogTypes.goal] = 'Гол',
9129
+ _a$4[exports.FootballGameLogTypes.assist] = 'Передача',
9130
+ _a$4[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
9131
+ _a$4[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
9132
+ _a$4[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
9133
+ _a$4[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
9134
+ _a$4[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
9135
+ _a$4[exports.FootballGameLogTypes.corner] = 'Угловой',
9136
+ _a$4[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
9137
+ _a$4[exports.FootballGameLogTypes.save] = 'Отражен удар',
9138
+ _a$4[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
9139
+ _a$4[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
9140
+ _a$4[exports.FootballGameLogTypes.foul] = 'Фол',
9141
+ _a$4[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
9142
+ _a$4[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
9143
+ _a$4[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
9144
+ _a$4[exports.FootballGameLogTypes.loss] = 'Потеря',
9145
+ _a$4[exports.FootballGameLogTypes.steal] = 'Перехват',
9146
+ _a$4[exports.FootballGameLogTypes.out] = 'Аут',
9147
+ _a$4[exports.FootballGameLogTypes.timeout] = 'Таймаут',
9148
+ _a$4[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
8750
9149
  _a$4);
8751
9150
 
8752
9151
  var _a$5;
8753
- var OvertimeTypeLocalization = (_a$5 = {},
8754
- _a$5[exports.OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
8755
- _a$5[exports.OvertimeTypes.to_score_total] = 'До N очков',
8756
- _a$5[exports.OvertimeTypes.time] = 'По времени',
8757
- _a$5[exports.OvertimeTypes.without_overtime] = 'Без овертайма',
8758
- _a$5[exports.OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
8759
- _a$5[exports.OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
8760
- _a$5[exports.OvertimeTypes.bullitts] = 'Буллиты',
8761
- _a$5[exports.OvertimeTypes.penalties] = 'Пенальти',
8762
- _a$5[exports.OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
9152
+ var HandballGameLogTypeLocalization = (_a$5 = {},
9153
+ _a$5[exports.HandballGameLogTypes.enter_game] = 'Выход на поле',
9154
+ _a$5[exports.HandballGameLogTypes.exit_game] = 'Ушел с поля',
9155
+ _a$5[exports.HandballGameLogTypes.shot_miss] = 'Бросок мимо',
9156
+ _a$5[exports.HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
9157
+ _a$5[exports.HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
9158
+ _a$5[exports.HandballGameLogTypes.goal] = 'Гол',
9159
+ _a$5[exports.HandballGameLogTypes.assist] = 'Передача',
9160
+ _a$5[exports.HandballGameLogTypes.penalty_miss] = '7м промах',
9161
+ _a$5[exports.HandballGameLogTypes.penalty_shot_on_goal] = ' в створ',
9162
+ _a$5[exports.HandballGameLogTypes.penalty_goal] = '7м гол',
9163
+ _a$5[exports.HandballGameLogTypes.save] = 'Сэйв',
9164
+ _a$5[exports.HandballGameLogTypes.penalty_save] = 'Сэйв 7м',
9165
+ _a$5[exports.HandballGameLogTypes.foul] = 'Фол',
9166
+ _a$5[exports.HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
9167
+ _a$5[exports.HandballGameLogTypes.red_card] = 'Красная карточка',
9168
+ _a$5[exports.HandballGameLogTypes.two_minute_foul] = '2х минутный штраф',
9169
+ _a$5[exports.HandballGameLogTypes.turnover] = 'Потеря',
9170
+ _a$5[exports.HandballGameLogTypes.steal] = 'Перехват',
9171
+ _a$5[exports.HandballGameLogTypes.block_shot] = 'Блок броска',
9172
+ _a$5[exports.HandballGameLogTypes.timeout] = 'Таймаут',
8763
9173
  _a$5);
8764
9174
 
8765
9175
  var _a$6;
8766
- var TeamUserRoleLocalization = (_a$6 = {},
8767
- _a$6[exports.TeamUserRole.member] = 'Пользователь',
8768
- _a$6[exports.TeamUserRole.moderator] = 'Модератор',
8769
- _a$6[exports.TeamUserRole.admin] = 'Владелец',
8770
- _a$6[exports.TeamUserRole.coach] = 'Тренер',
8771
- _a$6[exports.TeamUserRole.head_coach] = 'Главный тренер',
8772
- _a$6[exports.TeamUserRole.playing_coach] = 'Играющий тренер',
8773
- _a$6[exports.TeamUserRole.manager] = 'Менеджер',
8774
- _a$6[exports.TeamUserRole.head_manager] = 'Генеральный менеджер',
8775
- _a$6[exports.TeamUserRole.captain] = 'Капитан',
8776
- _a$6[exports.TeamUserRole.assistant] = 'Ассистент',
9176
+ var OvertimeTypeLocalization = (_a$6 = {},
9177
+ _a$6[exports.OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
9178
+ _a$6[exports.OvertimeTypes.to_score_total] = 'До N очков',
9179
+ _a$6[exports.OvertimeTypes.time] = 'По времени',
9180
+ _a$6[exports.OvertimeTypes.without_overtime] = 'Без овертайма',
9181
+ _a$6[exports.OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
9182
+ _a$6[exports.OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
9183
+ _a$6[exports.OvertimeTypes.bullitts] = 'Буллиты',
9184
+ _a$6[exports.OvertimeTypes.penalties] = 'Пенальти',
9185
+ _a$6[exports.OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
8777
9186
  _a$6);
8778
9187
 
8779
- var _a$7, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
8780
- var GameBasketballPositionLocalization = (_a$7 = {},
8781
- _a$7[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
8782
- _a$7[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
8783
- _a$7[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
8784
- _a$7[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
8785
- _a$7[exports.GameBasketballPosition.center] = 'Центровой',
9188
+ var _a$7;
9189
+ var RugbyGameLogTypeLocalization = (_a$7 = {},
9190
+ _a$7[exports.RugbyGameLogTypes.enter_game] = 'Выход на площадку',
9191
+ _a$7[exports.RugbyGameLogTypes.exit_game] = 'Ушел с площадки',
9192
+ _a$7[exports.RugbyGameLogTypes.try] = 'Попытка',
9193
+ _a$7[exports.RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
9194
+ _a$7[exports.RugbyGameLogTypes.conversion_goal] = 'Реализация',
9195
+ _a$7[exports.RugbyGameLogTypes.conversion_miss] = 'Реализация промах',
9196
+ _a$7[exports.RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
9197
+ _a$7[exports.RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
9198
+ _a$7[exports.RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
9199
+ _a$7[exports.RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
9200
+ _a$7[exports.RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
9201
+ _a$7[exports.RugbyGameLogTypes.free_kick] = 'Свободный удар',
9202
+ _a$7[exports.RugbyGameLogTypes.yellow_card] = 'Желтая карточка',
9203
+ _a$7[exports.RugbyGameLogTypes.red_card] = 'Красная карточка',
9204
+ _a$7[exports.RugbyGameLogTypes.offload] = 'Скидка при завхвате',
9205
+ _a$7[exports.RugbyGameLogTypes.tackle] = 'Успешный захват',
9206
+ _a$7[exports.RugbyGameLogTypes.out] = 'Аут',
9207
+ _a$7[exports.RugbyGameLogTypes.handling_error] = 'Ошибка приема',
9208
+ _a$7[exports.RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
9209
+ _a$7[exports.RugbyGameLogTypes.timeout] = 'Таймаут',
9210
+ _a$7[exports.RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
9211
+ _a$7[exports.RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
9212
+ _a$7[exports.RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
9213
+ _a$7[exports.RugbyGameLogTypes.lineout_success] = 'Корридор выиграно',
9214
+ _a$7[exports.RugbyGameLogTypes.lineout_loss] = 'Корридор потеря',
9215
+ _a$7[exports.RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
9216
+ _a$7[exports.RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
9217
+ _a$7[exports.RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
9218
+ _a$7[exports.RugbyGameLogTypes.ruck_lose] = 'Рак проиграно',
9219
+ _a$7[exports.RugbyGameLogTypes.maul_won] = 'Мол выиграно',
9220
+ _a$7[exports.RugbyGameLogTypes.maul_lose] = 'Мол проиграно',
9221
+ _a$7[exports.RugbyGameLogTypes.team_foul] = 'Фол',
8786
9222
  _a$7);
9223
+
9224
+ var _a$8;
9225
+ var TeamUserRoleLocalization = (_a$8 = {},
9226
+ _a$8[exports.TeamUserRole.member] = 'Пользователь',
9227
+ _a$8[exports.TeamUserRole.moderator] = 'Модератор',
9228
+ _a$8[exports.TeamUserRole.admin] = 'Владелец',
9229
+ _a$8[exports.TeamUserRole.coach] = 'Тренер',
9230
+ _a$8[exports.TeamUserRole.head_coach] = 'Главный тренер',
9231
+ _a$8[exports.TeamUserRole.playing_coach] = 'Играющий тренер',
9232
+ _a$8[exports.TeamUserRole.manager] = 'Менеджер',
9233
+ _a$8[exports.TeamUserRole.head_manager] = 'Генеральный менеджер',
9234
+ _a$8[exports.TeamUserRole.captain] = 'Капитан',
9235
+ _a$8[exports.TeamUserRole.assistant] = 'Ассистент',
9236
+ _a$8);
9237
+
9238
+ var _a$9, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
9239
+ var GameBasketballPositionLocalization = (_a$9 = {},
9240
+ _a$9[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
9241
+ _a$9[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
9242
+ _a$9[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
9243
+ _a$9[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
9244
+ _a$9[exports.GameBasketballPosition.center] = 'Центровой',
9245
+ _a$9);
8787
9246
  var GameBasketballPositionShortLocalization = (_b = {},
8788
9247
  _b[exports.GameBasketballPosition.point_guard] = 'PG',
8789
9248
  _b[exports.GameBasketballPosition.shooting_guard] = 'SG',
@@ -8843,32 +9302,40 @@
8843
9302
  _l[exports.GameHandballPosition.centre_back] = 'Центральный',
8844
9303
  _l[exports.GameHandballPosition.fullback] = 'Полусредний',
8845
9304
  _l);
8846
-
8847
- var _a$8;
8848
- var VolleyballGameLogTypeLocalization = (_a$8 = {},
8849
- _a$8[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
8850
- _a$8[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
8851
- _a$8[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
8852
- _a$8[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
8853
- _a$8[exports.VolleyballGameLogType.serve_hit] = 'Подача',
8854
- _a$8[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
8855
- _a$8[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
8856
- _a$8[exports.VolleyballGameLogType.attack_shot] = 'Атака',
8857
- _a$8[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
8858
- _a$8[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
8859
- _a$8[exports.VolleyballGameLogType.block_rebound] = 'Блок',
8860
- _a$8[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
8861
- _a$8[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
8862
- _a$8[exports.VolleyballGameLogType.receive] = 'Прием',
8863
- _a$8[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
8864
- _a$8[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
8865
- _a$8[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
8866
- _a$8[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
8867
- _a$8[exports.VolleyballGameLogType.point] = 'Очко',
8868
- _a$8[exports.VolleyballGameLogType.fault] = 'Ошибка',
8869
- _a$8[exports.VolleyballGameLogType.timeout] = 'Таймаут',
8870
- _a$8[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
8871
- _a$8);
9305
+ var GameRugbyPositionLocalization = (_m = {},
9306
+ _m[exports.GameRugbyPosition.front_line] = 'Надающий первой линии',
9307
+ _m[exports.GameRugbyPosition.second_line] = 'Нападающий второй линии',
9308
+ _m[exports.GameRugbyPosition.back_line] = 'Нападающий задней линии',
9309
+ _m[exports.GameRugbyPosition.halfback] = 'Полузащитник',
9310
+ _m[exports.GameRugbyPosition.three_quarter] = 'Трехчетвертный',
9311
+ _m[exports.GameRugbyPosition.fullback] = 'Замыкающий',
9312
+ _m);
9313
+
9314
+ var _a$a;
9315
+ var VolleyballGameLogTypeLocalization = (_a$a = {},
9316
+ _a$a[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
9317
+ _a$a[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
9318
+ _a$a[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
9319
+ _a$a[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
9320
+ _a$a[exports.VolleyballGameLogType.serve_hit] = 'Подача',
9321
+ _a$a[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
9322
+ _a$a[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
9323
+ _a$a[exports.VolleyballGameLogType.attack_shot] = 'Атака',
9324
+ _a$a[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
9325
+ _a$a[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
9326
+ _a$a[exports.VolleyballGameLogType.block_rebound] = 'Блок',
9327
+ _a$a[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
9328
+ _a$a[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
9329
+ _a$a[exports.VolleyballGameLogType.receive] = 'Прием',
9330
+ _a$a[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
9331
+ _a$a[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
9332
+ _a$a[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
9333
+ _a$a[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
9334
+ _a$a[exports.VolleyballGameLogType.point] = 'Очко',
9335
+ _a$a[exports.VolleyballGameLogType.fault] = 'Ошибка',
9336
+ _a$a[exports.VolleyballGameLogType.timeout] = 'Таймаут',
9337
+ _a$a[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
9338
+ _a$a);
8872
9339
 
8873
9340
  var LeaguePlaylist = /** @class */ (function (_super) {
8874
9341
  __extends(LeaguePlaylist, _super);
@@ -8899,6 +9366,41 @@
8899
9366
  return LeaguePlaylist;
8900
9367
  }(BaseModel));
8901
9368
 
9369
+ var RugbyGameConfig = /** @class */ (function (_super) {
9370
+ __extends(RugbyGameConfig, _super);
9371
+ function RugbyGameConfig() {
9372
+ return _super !== null && _super.apply(this, arguments) || this;
9373
+ }
9374
+ RugbyGameConfig.toFront = function (data) { };
9375
+ RugbyGameConfig.toBack = function (data) { };
9376
+ __decorate([
9377
+ ToFrontHook
9378
+ ], RugbyGameConfig, "toFront", null);
9379
+ __decorate([
9380
+ ToBackHook
9381
+ ], RugbyGameConfig, "toBack", null);
9382
+ RugbyGameConfig = __decorate([
9383
+ ModelInstance({
9384
+ mappingFields: {
9385
+ periods_count: 'periodsCount',
9386
+ period_time: 'periodTime',
9387
+ overtime_type: 'overtimeType',
9388
+ overtime_time: 'overtimeTime',
9389
+ overtime_periods: 'overtimePeriods',
9390
+ max_game_players: 'maxGamePlayers',
9391
+ game_time_type: 'gameTimeType',
9392
+ substitute_count: 'substituteCount',
9393
+ free_substitute_enabled: 'freeSubstituteEnabled',
9394
+ },
9395
+ relation: {
9396
+ overtimeType: enumField(exports.OvertimeTypes),
9397
+ gameTimeType: enumField(exports.GameTimeTypes),
9398
+ }
9399
+ })
9400
+ ], RugbyGameConfig);
9401
+ return RugbyGameConfig;
9402
+ }(BaseModel));
9403
+
8902
9404
  var CentrifugoService = /** @class */ (function () {
8903
9405
  function CentrifugoService(httpClient, configService) {
8904
9406
  this.httpClient = httpClient;
@@ -9353,6 +9855,7 @@
9353
9855
  exports.GameHandballPositionLocalization = GameHandballPositionLocalization;
9354
9856
  exports.GameHockeyPositionLocalization = GameHockeyPositionLocalization;
9355
9857
  exports.GameInvite = GameInvite;
9858
+ exports.GameRugbyPositionLocalization = GameRugbyPositionLocalization;
9356
9859
  exports.GameTimelineStageItem = GameTimelineStageItem;
9357
9860
  exports.GameTimelineStages = GameTimelineStages;
9358
9861
  exports.GameUser = GameUser;
@@ -9412,7 +9915,17 @@
9412
9915
  exports.PollVariant = PollVariant;
9413
9916
  exports.PublicTeamApi = PublicTeamApi;
9414
9917
  exports.PublicUserApi = PublicUserApi;
9918
+ exports.RUGBY_GAME_LOG_TYPE_POINTS = RUGBY_GAME_LOG_TYPE_POINTS;
9919
+ exports.RUGBY_TEAM_LOG_TYPES = RUGBY_TEAM_LOG_TYPES;
9415
9920
  exports.ReferenceApi = ReferenceApi;
9921
+ exports.RugbyGameApi = RugbyGameApi;
9922
+ exports.RugbyGameConfig = RugbyGameConfig;
9923
+ exports.RugbyGameLog = RugbyGameLog;
9924
+ exports.RugbyGameLogTypeLocalization = RugbyGameLogTypeLocalization;
9925
+ exports.RugbyGameStatistic = RugbyGameStatistic;
9926
+ exports.RugbyGameTeamStatistic = RugbyGameTeamStatistic;
9927
+ exports.RugbyProfile = RugbyProfile;
9928
+ exports.RugbyStatistic = RugbyStatistic;
9416
9929
  exports.SCORE_LOG_TYPES = SCORE_LOG_TYPES;
9417
9930
  exports.Sport = Sport;
9418
9931
  exports.StorageEngine = StorageEngine;
@@ -9470,6 +9983,10 @@
9470
9983
  exports.VolleyballWorkHandLocalization = VolleyballWorkHandLocalization;
9471
9984
  exports.WorkHandLocalization = WorkHandLocalization;
9472
9985
  exports.addItemInArray = addItemInArray;
9986
+ exports.applyGameMediaFilters = applyGameMediaFilters;
9987
+ exports.applyGamesFilters = applyGamesFilters;
9988
+ exports.applyStatisticFilters = applyStatisticFilters;
9989
+ exports.applyStatisticLeadersFilters = applyStatisticLeadersFilters;
9473
9990
  exports.changeFavicons = changeFavicons;
9474
9991
  exports.componentDestroyed = componentDestroyed;
9475
9992
  exports.deleteItemFromArray = deleteItemFromArray;