@mtgame/core 0.1.114 → 0.1.115

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 (40) hide show
  1. package/api/public-api.d.ts +1 -0
  2. package/api/tournament-api.d.ts +5 -0
  3. package/api/waterpolo-game-api.d.ts +18 -0
  4. package/bundles/mtgame-core.umd.js +1029 -155
  5. package/bundles/mtgame-core.umd.js.map +1 -1
  6. package/esm2015/api/public-api.js +2 -1
  7. package/esm2015/api/tournament-api.js +24 -1
  8. package/esm2015/api/waterpolo-game-api.js +65 -0
  9. package/esm2015/localization/public-api.js +2 -1
  10. package/esm2015/localization/user-profile.js +18 -1
  11. package/esm2015/localization/waterpolo-game-log-types.js +34 -0
  12. package/esm2015/models/game.js +18 -2
  13. package/esm2015/models/public-api.js +7 -1
  14. package/esm2015/models/sport.js +13 -1
  15. package/esm2015/models/team.js +7 -1
  16. package/esm2015/models/tournament.js +10 -1
  17. package/esm2015/models/user.js +4 -1
  18. package/esm2015/models/waterpolo-game-config.js +44 -0
  19. package/esm2015/models/waterpolo-game-log.js +125 -0
  20. package/esm2015/models/waterpolo-game-statistic.js +152 -0
  21. package/esm2015/models/waterpolo-game-team-statistic.js +27 -0
  22. package/esm2015/models/waterpolo-profile.js +42 -0
  23. package/esm2015/models/waterpolo-statistic.js +133 -0
  24. package/fesm2015/mtgame-core.js +665 -1
  25. package/fesm2015/mtgame-core.js.map +1 -1
  26. package/localization/public-api.d.ts +1 -0
  27. package/localization/user-profile.d.ts +16 -0
  28. package/localization/waterpolo-game-log-types.d.ts +32 -0
  29. package/models/game.d.ts +5 -1
  30. package/models/public-api.d.ts +6 -0
  31. package/models/sport.d.ts +7 -1
  32. package/models/user.d.ts +2 -0
  33. package/models/waterpolo-game-config.d.ts +19 -0
  34. package/models/waterpolo-game-log.d.ts +72 -0
  35. package/models/waterpolo-game-statistic.d.ts +73 -0
  36. package/models/waterpolo-game-team-statistic.d.ts +9 -0
  37. package/models/waterpolo-profile.d.ts +19 -0
  38. package/models/waterpolo-statistic.d.ts +92 -0
  39. package/mtgame-core.metadata.json +1 -1
  40. package/package.json +1 -1
@@ -777,6 +777,9 @@
777
777
  SportTypes[SportTypes["rugby7"] = 16] = "rugby7";
778
778
  SportTypes[SportTypes["rugby15"] = 17] = "rugby15";
779
779
  SportTypes[SportTypes["basketball_1x1"] = 18] = "basketball_1x1";
780
+ SportTypes[SportTypes["waterpolo"] = 19] = "waterpolo";
781
+ SportTypes[SportTypes["classic_waterpolo"] = 20] = "classic_waterpolo";
782
+ SportTypes[SportTypes["mini_waterpolo"] = 21] = "mini_waterpolo";
780
783
  })(exports.SportTypes || (exports.SportTypes = {}));
781
784
  exports.Sport = /** @class */ (function (_super) {
782
785
  __extends(Sport, _super);
@@ -837,6 +840,15 @@
837
840
  Sport.prototype.isRugby7 = function () {
838
841
  return this.id === exports.SportTypes.rugby7;
839
842
  };
843
+ Sport.prototype.isWaterpolo = function () {
844
+ return this.id === exports.SportTypes.waterpolo || this.parentId === exports.SportTypes.waterpolo;
845
+ };
846
+ Sport.prototype.isClassicWaterpolo = function () {
847
+ return this.id === exports.SportTypes.classic_waterpolo;
848
+ };
849
+ Sport.prototype.isMiniWaterpolo = function () {
850
+ return this.id === exports.SportTypes.mini_waterpolo;
851
+ };
840
852
  Sport.toFront = function (data) {
841
853
  return null;
842
854
  };
@@ -1167,6 +1179,50 @@
1167
1179
  })
1168
1180
  ], exports.RugbyProfile);
1169
1181
 
1182
+ exports.GameWaterpoloPosition = void 0;
1183
+ (function (GameWaterpoloPosition) {
1184
+ GameWaterpoloPosition[GameWaterpoloPosition["goalkeeper"] = 1] = "goalkeeper";
1185
+ GameWaterpoloPosition[GameWaterpoloPosition["defensemen"] = 2] = "defensemen";
1186
+ GameWaterpoloPosition[GameWaterpoloPosition["center_forward"] = 3] = "center_forward";
1187
+ GameWaterpoloPosition[GameWaterpoloPosition["mobile_forward"] = 4] = "mobile_forward";
1188
+ })(exports.GameWaterpoloPosition || (exports.GameWaterpoloPosition = {}));
1189
+ exports.WaterpoloWorkHand = void 0;
1190
+ (function (WaterpoloWorkHand) {
1191
+ WaterpoloWorkHand[WaterpoloWorkHand["left"] = 1] = "left";
1192
+ WaterpoloWorkHand[WaterpoloWorkHand["right"] = 2] = "right";
1193
+ })(exports.WaterpoloWorkHand || (exports.WaterpoloWorkHand = {}));
1194
+ exports.WaterpoloProfile = /** @class */ (function (_super) {
1195
+ __extends(WaterpoloProfile, _super);
1196
+ function WaterpoloProfile() {
1197
+ return _super !== null && _super.apply(this, arguments) || this;
1198
+ }
1199
+ WaterpoloProfile.toFront = function (value) {
1200
+ };
1201
+ WaterpoloProfile.toBack = function (value) {
1202
+ };
1203
+ return WaterpoloProfile;
1204
+ }(BaseModel));
1205
+ __decorate([
1206
+ ToFrontHook
1207
+ ], exports.WaterpoloProfile, "toFront", null);
1208
+ __decorate([
1209
+ ToBackHook
1210
+ ], exports.WaterpoloProfile, "toBack", null);
1211
+ exports.WaterpoloProfile = __decorate([
1212
+ ModelInstance({
1213
+ mappingFields: {
1214
+ id: 'id',
1215
+ user_id: 'userId',
1216
+ position: 'position',
1217
+ work_hand: 'workHand'
1218
+ },
1219
+ relation: {
1220
+ position: enumField(exports.GameWaterpoloPosition),
1221
+ workHand: enumField(exports.WaterpoloWorkHand)
1222
+ }
1223
+ })
1224
+ ], exports.WaterpoloProfile);
1225
+
1170
1226
  exports.UserGender = void 0;
1171
1227
  (function (UserGender) {
1172
1228
  UserGender[UserGender["male"] = 1] = "male";
@@ -1241,6 +1297,7 @@
1241
1297
  football_profile: 'footballProfile',
1242
1298
  handball_profile: 'handballProfile',
1243
1299
  rugby_profile: 'rugbyProfile',
1300
+ wateprolo_profile: 'waterpoloProfile',
1244
1301
  wizards: 'wizards',
1245
1302
  city: 'city',
1246
1303
  gender: 'gender',
@@ -1256,6 +1313,7 @@
1256
1313
  footballProfile: exports.FootballProfile,
1257
1314
  handballProfile: exports.HandballProfile,
1258
1315
  rugbyProfile: exports.RugbyProfile,
1316
+ waterpoloProfile: exports.WaterpoloProfile,
1259
1317
  city: exports.City,
1260
1318
  gender: enumField(exports.UserGender)
1261
1319
  }
@@ -1284,6 +1342,12 @@
1284
1342
  if (this.sport.isHandball()) {
1285
1343
  classList.push('empty-logo-handball');
1286
1344
  }
1345
+ if (this.sport.isRugby()) {
1346
+ classList.push('empty-logo-rugby');
1347
+ }
1348
+ if (this.sport.isWaterpolo()) {
1349
+ classList.push('empty-logo-waterpolo');
1350
+ }
1287
1351
  return classList.join(' ');
1288
1352
  };
1289
1353
  Team.toFront = function (data) {
@@ -1690,6 +1754,15 @@
1690
1754
  if (this.sport.isFootball()) {
1691
1755
  classList.push('empty-logo-football');
1692
1756
  }
1757
+ if (this.sport.isHandball()) {
1758
+ classList.push('empty-logo-handball');
1759
+ }
1760
+ if (this.sport.isRugby()) {
1761
+ classList.push('empty-logo-rugby');
1762
+ }
1763
+ if (this.sport.isWaterpolo()) {
1764
+ classList.push('empty-logo-waterpolo');
1765
+ }
1693
1766
  return classList.join(' ');
1694
1767
  };
1695
1768
  Tournament.toFront = function (data) { };
@@ -2239,6 +2312,63 @@
2239
2312
  })
2240
2313
  ], exports.RugbyGameConfig);
2241
2314
 
2315
+ exports.WaterpoloGameConfig = /** @class */ (function (_super) {
2316
+ __extends(WaterpoloGameConfig, _super);
2317
+ function WaterpoloGameConfig() {
2318
+ return _super !== null && _super.apply(this, arguments) || this;
2319
+ }
2320
+ WaterpoloGameConfig.toFront = function (data) { };
2321
+ WaterpoloGameConfig.toBack = function (data) { };
2322
+ Object.defineProperty(WaterpoloGameConfig.prototype, "overtimePeriod", {
2323
+ get: function () {
2324
+ return this.periodsCount + 1;
2325
+ },
2326
+ enumerable: false,
2327
+ configurable: true
2328
+ });
2329
+ Object.defineProperty(WaterpoloGameConfig.prototype, "bullitsPeriod", {
2330
+ get: function () {
2331
+ return this.periodsCount + 2;
2332
+ },
2333
+ enumerable: false,
2334
+ configurable: true
2335
+ });
2336
+ Object.defineProperty(WaterpoloGameConfig.prototype, "playoffBullitsPeriod", {
2337
+ get: function () {
2338
+ return this.periodsCount + 3;
2339
+ },
2340
+ enumerable: false,
2341
+ configurable: true
2342
+ });
2343
+ return WaterpoloGameConfig;
2344
+ }(BaseModel));
2345
+ __decorate([
2346
+ ToFrontHook
2347
+ ], exports.WaterpoloGameConfig, "toFront", null);
2348
+ __decorate([
2349
+ ToBackHook
2350
+ ], exports.WaterpoloGameConfig, "toBack", null);
2351
+ exports.WaterpoloGameConfig = __decorate([
2352
+ ModelInstance({
2353
+ mappingFields: {
2354
+ periods_count: 'periodsCount',
2355
+ period_time: 'periodTime',
2356
+ overtime_type: 'overtimeType',
2357
+ overtime_time: 'overtimeTime',
2358
+ max_game_players: 'maxGamePlayers',
2359
+ timeout_count: 'timeoutCount',
2360
+ overtime_timeout_count: 'overtimeTimeoutCount',
2361
+ timeout_time: 'timeoutTime',
2362
+ game_time_type: 'gameTimeType',
2363
+ substitute_manage_enabled: 'substituteManageEnabled',
2364
+ },
2365
+ relation: {
2366
+ overtimeType: enumField(exports.OvertimeTypes),
2367
+ gameTimeType: enumField(exports.GameTimeTypes),
2368
+ }
2369
+ })
2370
+ ], exports.WaterpoloGameConfig);
2371
+
2242
2372
  exports.GameStatuses = void 0;
2243
2373
  (function (GameStatuses) {
2244
2374
  GameStatuses[GameStatuses["open"] = 1] = "open";
@@ -2382,6 +2512,22 @@
2382
2512
  enumerable: false,
2383
2513
  configurable: true
2384
2514
  });
2515
+ Object.defineProperty(Game.prototype, "waterpoloGameConfig", {
2516
+ get: function () {
2517
+ if (this._waterpoloGameConfig && this._waterpoloGameConfig.periodsCount) {
2518
+ return this._waterpoloGameConfig;
2519
+ }
2520
+ if (this.gameConfig) {
2521
+ this._waterpoloGameConfig = exports.WaterpoloGameConfig.toFront(this.gameConfig);
2522
+ }
2523
+ return this._waterpoloGameConfig;
2524
+ },
2525
+ set: function (value) {
2526
+ this._waterpoloGameConfig = value;
2527
+ },
2528
+ enumerable: false,
2529
+ configurable: true
2530
+ });
2385
2531
  Object.defineProperty(Game.prototype, "scoreByPeriodList", {
2386
2532
  get: function () {
2387
2533
  var _this = this;
@@ -2473,6 +2619,7 @@
2473
2619
  football_game_config: 'footballGameConfig',
2474
2620
  handball_game_config: 'handballGameConfig',
2475
2621
  rugby_game_config: 'rugbyGameConfig',
2622
+ waterpolo_game_config: 'waterpoloGameConfig',
2476
2623
  score_by_period: 'scoreByPeriod',
2477
2624
  playoff_stage: 'playoffStage',
2478
2625
  playoff_round: 'playoffRound',
@@ -2499,6 +2646,8 @@
2499
2646
  hockeyGameConfig: exports.HockeyGameConfig,
2500
2647
  footballGameConfig: exports.FootballGameConfig,
2501
2648
  handballGameConfig: exports.HandballGameConfig,
2649
+ rugbyGameConfig: exports.RugbyGameConfig,
2650
+ waterpoloGameConfig: exports.WaterpoloGameConfig,
2502
2651
  tournamentPlayoff: exports.Playoff,
2503
2652
  tournamentCourt: exports.LeagueCourt,
2504
2653
  media: listField(exports.MediaItem),
@@ -2871,16 +3020,16 @@
2871
3020
  })
2872
3021
  ], exports.TournamentDisqualification);
2873
3022
 
2874
- var _a$g;
3023
+ var _a$h;
2875
3024
  exports.Qualification = void 0;
2876
3025
  (function (Qualification) {
2877
3026
  Qualification[Qualification["practician"] = 1] = "practician";
2878
3027
  Qualification[Qualification["amateur"] = 2] = "amateur";
2879
3028
  })(exports.Qualification || (exports.Qualification = {}));
2880
- var QualificationLocalization = (_a$g = {},
2881
- _a$g[exports.Qualification.practician] = 'Практик',
2882
- _a$g[exports.Qualification.amateur] = 'Любитель',
2883
- _a$g);
3029
+ var QualificationLocalization = (_a$h = {},
3030
+ _a$h[exports.Qualification.practician] = 'Практик',
3031
+ _a$h[exports.Qualification.amateur] = 'Любитель',
3032
+ _a$h);
2884
3033
  exports.LeaguePlayer = /** @class */ (function (_super) {
2885
3034
  __extends(LeaguePlayer, _super);
2886
3035
  function LeaguePlayer() {
@@ -6102,6 +6251,155 @@
6102
6251
  })
6103
6252
  ], exports.TeamAchievement);
6104
6253
 
6254
+ exports.WaterpoloStatistic = /** @class */ (function (_super) {
6255
+ __extends(WaterpoloStatistic, _super);
6256
+ function WaterpoloStatistic() {
6257
+ return _super !== null && _super.apply(this, arguments) || this;
6258
+ }
6259
+ Object.defineProperty(WaterpoloStatistic.prototype, "assists", {
6260
+ get: function () {
6261
+ return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
6262
+ },
6263
+ enumerable: false,
6264
+ configurable: true
6265
+ });
6266
+ Object.defineProperty(WaterpoloStatistic.prototype, "goalpass", {
6267
+ get: function () {
6268
+ return (this.totalGoals || 0) + (this.assists || 0);
6269
+ },
6270
+ enumerable: false,
6271
+ configurable: true
6272
+ });
6273
+ Object.defineProperty(WaterpoloStatistic.prototype, "userMinutes", {
6274
+ get: function () {
6275
+ if (!this.gameTime) {
6276
+ return '00:00';
6277
+ }
6278
+ var minutes = Math.floor(this.gameTime / 60);
6279
+ var seconds = Math.floor(this.gameTime - minutes * 60);
6280
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
6281
+ },
6282
+ enumerable: false,
6283
+ configurable: true
6284
+ });
6285
+ Object.defineProperty(WaterpoloStatistic.prototype, "gamesWonPercent", {
6286
+ get: function () {
6287
+ if (!this.gamesCount) {
6288
+ return 0;
6289
+ }
6290
+ return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
6291
+ },
6292
+ enumerable: false,
6293
+ configurable: true
6294
+ });
6295
+ Object.defineProperty(WaterpoloStatistic.prototype, "tournamentTeamPoints", {
6296
+ get: function () {
6297
+ return this.tournamentTeam && this.tournamentTeam.points;
6298
+ },
6299
+ enumerable: false,
6300
+ configurable: true
6301
+ });
6302
+ WaterpoloStatistic.toFront = function (data) { };
6303
+ WaterpoloStatistic.toBack = function (data) { };
6304
+ return WaterpoloStatistic;
6305
+ }(BaseModel));
6306
+ __decorate([
6307
+ ToFrontHook
6308
+ ], exports.WaterpoloStatistic, "toFront", null);
6309
+ __decorate([
6310
+ ToBackHook
6311
+ ], exports.WaterpoloStatistic, "toBack", null);
6312
+ exports.WaterpoloStatistic = __decorate([
6313
+ ModelInstance({
6314
+ mappingFields: {
6315
+ league_player: 'leaguePlayer',
6316
+ tournament_team_user: 'tournamentTeamUser',
6317
+ team: 'team',
6318
+ team_user: 'teamUser',
6319
+ user: 'user',
6320
+ tournament_team: 'tournamentTeam',
6321
+ month: 'month',
6322
+ win_lose: 'winLose',
6323
+ games_count: 'gamesCount',
6324
+ won_games_count: 'wonGamesCount',
6325
+ lose_games_count: 'loseGamesCount',
6326
+ points: 'points',
6327
+ pp_shots: 'ppShots',
6328
+ pp_shot_misses: 'ppShotMisses',
6329
+ pp_shots_on_goal: 'ppShotsOnGoal',
6330
+ pp_shots_blocked: 'ppShotsBlocked',
6331
+ ev_shots: 'evShots',
6332
+ ev_shot_misses: 'evShotMisses',
6333
+ ev_shots_on_goal: 'evShotsOnGoal',
6334
+ ev_shots_blocked: 'evShotsBlocked',
6335
+ sh_shots: 'shShots',
6336
+ sh_shot_misses: 'shShotMisses',
6337
+ sh_shots_on_goal: 'shShotsOnGoal',
6338
+ sh_shots_blocked: 'shShotsBlocked',
6339
+ pp_goals_percent: 'ppGoalsPercent',
6340
+ pp_goals: 'ppGoals',
6341
+ ev_goals_percent: 'evGoalsPercent',
6342
+ ev_goals: 'evGoals',
6343
+ sh_goals_percent: 'shGoalsPercent',
6344
+ goals: 'goals',
6345
+ total_goals: 'totalGoals',
6346
+ sh_goals: 'shGoals',
6347
+ shot_misses: 'shotMisses',
6348
+ shots_on_goal: 'shotsOnGoal',
6349
+ shots_blocked: 'shotsBlocked',
6350
+ shots: 'shots',
6351
+ total_shots: 'totalShots',
6352
+ goals_percent: 'goalsPercent',
6353
+ total_goals_percent: 'totalGoalsPercent',
6354
+ pp_assists: 'ppAssists',
6355
+ ev_assists: 'evAssists',
6356
+ sh_assists: 'shAssists',
6357
+ shootout_attempts: 'shootoutAttempts',
6358
+ shootout_goals: 'shootoutGoals',
6359
+ after_game_shootout_attempts: 'afterGameShootoutAttempts',
6360
+ after_game_shootout_goals: 'afterGameShootoutGoals',
6361
+ block_shots: 'blockShots',
6362
+ face_off_losses: 'faceOffLosses',
6363
+ face_off_wins: 'faceOffWins',
6364
+ face_offs: 'faceOffs',
6365
+ face_off_percent: 'faceOffPercent',
6366
+ saves: 'saves',
6367
+ total_saves: 'totalSaves',
6368
+ shootout_saves: 'shootoutSaves',
6369
+ shots_against: 'shotsAgainst',
6370
+ shootout_shots_against: 'shootoutShotsAgainst',
6371
+ total_shots_against: 'totalShotsAgainst',
6372
+ saves_percent: 'savesPercent',
6373
+ total_saves_percent: 'totalSavesPercent',
6374
+ goals_against: 'goalsAgainst',
6375
+ shootout_goals_against: 'shootoutGoalsAgainst',
6376
+ total_goals_against: 'totalGoalsAgainst',
6377
+ safety_rate: 'safetyRate',
6378
+ penalty_minutes: 'penaltyMinutes',
6379
+ game_time: 'gameTime',
6380
+ plus_minus: 'plusMinus',
6381
+ free_kicks: 'freeKicks',
6382
+ yellow_cards: 'yellowCards',
6383
+ red_cards: 'redCards',
6384
+ fouls: 'fouls',
6385
+ losses: 'losses',
6386
+ steals: 'steals',
6387
+ drawn_fouls: 'drawnFouls',
6388
+ newbie: 'newbie',
6389
+ rank: 'rank',
6390
+ },
6391
+ relation: {
6392
+ leaguePlayer: exports.LeaguePlayer,
6393
+ tournamentTeamUser: exports.TournamentTeamUser,
6394
+ team: exports.Team,
6395
+ teamUser: exports.TeamUser,
6396
+ user: exports.User,
6397
+ tournamentTeam: exports.TournamentTeam,
6398
+ month: DateField
6399
+ }
6400
+ })
6401
+ ], exports.WaterpoloStatistic);
6402
+
6105
6403
  var TournamentApi = /** @class */ (function () {
6106
6404
  function TournamentApi(httpClient, configService) {
6107
6405
  this.httpClient = httpClient;
@@ -6436,6 +6734,32 @@
6436
6734
  });
6437
6735
  });
6438
6736
  };
6737
+ TournamentApi.prototype.getWaterpoloStatisticLeaders = function (filters) {
6738
+ return __awaiter(this, void 0, void 0, function () {
6739
+ var params;
6740
+ return __generator(this, function (_a) {
6741
+ params = new i1.HttpParams();
6742
+ params = applyStatisticLeadersFilters(filters, params);
6743
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/waterpolo_statistic_leaders/", { params: params }).pipe(operators.map(function (result) {
6744
+ var e_6, _a;
6745
+ try {
6746
+ for (var _b = __values(Object.keys(result)), _c = _b.next(); !_c.done; _c = _b.next()) {
6747
+ var key = _c.value;
6748
+ result[key] = exports.WaterpoloStatistic.toFront(result[key]);
6749
+ }
6750
+ }
6751
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
6752
+ finally {
6753
+ try {
6754
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6755
+ }
6756
+ finally { if (e_6) throw e_6.error; }
6757
+ }
6758
+ return result;
6759
+ })).toPromise()];
6760
+ });
6761
+ });
6762
+ };
6439
6763
  TournamentApi.prototype.getBasketballStatistic = function (filters) {
6440
6764
  return __awaiter(this, void 0, void 0, function () {
6441
6765
  var params;
@@ -6514,6 +6838,19 @@
6514
6838
  });
6515
6839
  });
6516
6840
  };
6841
+ TournamentApi.prototype.getWaterpoloStatistic = function (filters) {
6842
+ return __awaiter(this, void 0, void 0, function () {
6843
+ var params;
6844
+ return __generator(this, function (_a) {
6845
+ params = new i1.HttpParams();
6846
+ params = applyStatisticFilters(filters, params);
6847
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/waterpolo_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
6848
+ total: +result.headers.get('X-Page-Count'),
6849
+ data: exports.WaterpoloStatistic.toFront(result.body)
6850
+ }); })).toPromise()];
6851
+ });
6852
+ });
6853
+ };
6517
6854
  TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
6518
6855
  return __awaiter(this, void 0, void 0, function () {
6519
6856
  return __generator(this, function (_a) {
@@ -6596,7 +6933,7 @@
6596
6933
  return params;
6597
6934
  }
6598
6935
  function applyStatisticFilters(filters, params) {
6599
- var e_6, _a;
6936
+ var e_7, _a;
6600
6937
  try {
6601
6938
  for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
6602
6939
  var key = _c.value;
@@ -6605,12 +6942,12 @@
6605
6942
  }
6606
6943
  }
6607
6944
  }
6608
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
6945
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
6609
6946
  finally {
6610
6947
  try {
6611
6948
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6612
6949
  }
6613
- finally { if (e_6) throw e_6.error; }
6950
+ finally { if (e_7) throw e_7.error; }
6614
6951
  }
6615
6952
  if (filters.per_game !== undefined) {
6616
6953
  params = params.set('per_game', filters.per_game ? '1' : '0');
@@ -6624,7 +6961,7 @@
6624
6961
  return params;
6625
6962
  }
6626
6963
  function applyStatisticLeadersFilters(filters, params) {
6627
- var e_7, _a;
6964
+ var e_8, _a;
6628
6965
  try {
6629
6966
  for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
6630
6967
  var key = _c.value;
@@ -6633,12 +6970,12 @@
6633
6970
  }
6634
6971
  }
6635
6972
  }
6636
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
6973
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
6637
6974
  finally {
6638
6975
  try {
6639
6976
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6640
6977
  }
6641
- finally { if (e_7) throw e_7.error; }
6978
+ finally { if (e_8) throw e_8.error; }
6642
6979
  }
6643
6980
  if (filters.per_game !== undefined) {
6644
6981
  params = params.set('per_game', filters.per_game ? '1' : '0');
@@ -7416,11 +7753,11 @@
7416
7753
  TeamEventTypes[TeamEventTypes["other"] = 2] = "other";
7417
7754
  })(exports.TeamEventTypes || (exports.TeamEventTypes = {}));
7418
7755
 
7419
- var _a$f;
7420
- var TeamEventTypeLocalization = (_a$f = {},
7421
- _a$f[exports.TeamEventTypes.training] = 'Тренировка',
7422
- _a$f[exports.TeamEventTypes.other] = 'Другое',
7423
- _a$f);
7756
+ var _a$g;
7757
+ var TeamEventTypeLocalization = (_a$g = {},
7758
+ _a$g[exports.TeamEventTypes.training] = 'Тренировка',
7759
+ _a$g[exports.TeamEventTypes.other] = 'Другое',
7760
+ _a$g);
7424
7761
 
7425
7762
  exports.TeamEvent = /** @class */ (function (_super) {
7426
7763
  __extends(TeamEvent, _super);
@@ -8033,7 +8370,7 @@
8033
8370
  })
8034
8371
  ], exports.RugbyFoulType);
8035
8372
 
8036
- var _a$e;
8373
+ var _a$f;
8037
8374
  exports.RugbyGameLogTypes = void 0;
8038
8375
  (function (RugbyGameLogTypes) {
8039
8376
  RugbyGameLogTypes[RugbyGameLogTypes["enter_game"] = 1] = "enter_game";
@@ -8074,14 +8411,14 @@
8074
8411
  RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 35] = "maul_lost";
8075
8412
  RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 36] = "team_foul";
8076
8413
  })(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
8077
- var RUGBY_GAME_LOG_TYPE_POINTS = (_a$e = {},
8078
- _a$e[exports.RugbyGameLogTypes.penalty_try] = 7,
8079
- _a$e[exports.RugbyGameLogTypes.try] = 5,
8080
- _a$e[exports.RugbyGameLogTypes.conversion_goal] = 2,
8081
- _a$e[exports.RugbyGameLogTypes.penalty_goal] = 3,
8082
- _a$e[exports.RugbyGameLogTypes.drop_goal] = 3,
8083
- _a$e[exports.RugbyGameLogTypes.end_game_penalty_goal] = 1,
8084
- _a$e);
8414
+ var RUGBY_GAME_LOG_TYPE_POINTS = (_a$f = {},
8415
+ _a$f[exports.RugbyGameLogTypes.penalty_try] = 7,
8416
+ _a$f[exports.RugbyGameLogTypes.try] = 5,
8417
+ _a$f[exports.RugbyGameLogTypes.conversion_goal] = 2,
8418
+ _a$f[exports.RugbyGameLogTypes.penalty_goal] = 3,
8419
+ _a$f[exports.RugbyGameLogTypes.drop_goal] = 3,
8420
+ _a$f[exports.RugbyGameLogTypes.end_game_penalty_goal] = 1,
8421
+ _a$f);
8085
8422
  var RUGBY_TEAM_LOG_TYPES = [
8086
8423
  exports.RugbyGameLogTypes.timeout, exports.RugbyGameLogTypes.scrum_won, exports.RugbyGameLogTypes.scrum_lost, exports.RugbyGameLogTypes.scrum_won_free,
8087
8424
  exports.RugbyGameLogTypes.lineout_won, exports.RugbyGameLogTypes.lineout_lost,
@@ -9977,6 +10314,488 @@
9977
10314
  { type: ConfigService }
9978
10315
  ]; };
9979
10316
 
10317
+ exports.WaterpoloGameLogTypes = void 0;
10318
+ (function (WaterpoloGameLogTypes) {
10319
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["enter_game"] = 1] = "enter_game";
10320
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["exit_game"] = 2] = "exit_game";
10321
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_miss"] = 3] = "shot_miss";
10322
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_on_goal"] = 4] = "shot_on_goal";
10323
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_blocked"] = 5] = "shot_blocked";
10324
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["goal"] = 6] = "goal";
10325
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_attempt"] = 7] = "shootout_attempt";
10326
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_goal"] = 8] = "shootout_goal";
10327
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["assist"] = 9] = "assist";
10328
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["block_shot"] = 10] = "block_shot";
10329
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick"] = 11] = "free_kick";
10330
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["minor_penalty"] = 12] = "minor_penalty";
10331
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["major_penalty"] = 13] = "major_penalty";
10332
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["match_penalty"] = 14] = "match_penalty";
10333
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["foul"] = 15] = "foul";
10334
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["yellow_card"] = 16] = "yellow_card";
10335
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["red_card"] = 17] = "red_card";
10336
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_shot"] = 18] = "penalty_shot";
10337
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["face_off_lose"] = 19] = "face_off_lose";
10338
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["face_off_win"] = 20] = "face_off_win";
10339
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["save"] = 21] = "save";
10340
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["timeout"] = 22] = "timeout";
10341
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_start"] = 23] = "penalty_start";
10342
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_end"] = 24] = "penalty_end";
10343
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_attempt"] = 25] = "after_game_shootout_attempt";
10344
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_goal"] = 26] = "after_game_shootout_goal";
10345
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_save"] = 27] = "after_game_shootout_save";
10346
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_save"] = 28] = "shootout_save";
10347
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["loss"] = 29] = "loss";
10348
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["steal"] = 30] = "steal";
10349
+ })(exports.WaterpoloGameLogTypes || (exports.WaterpoloGameLogTypes = {}));
10350
+ exports.WaterpoloAdvantageTypes = void 0;
10351
+ (function (WaterpoloAdvantageTypes) {
10352
+ WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["power_play"] = 1] = "power_play";
10353
+ WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["shorthanded"] = 2] = "shorthanded";
10354
+ WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["even_strength"] = 3] = "even_strength";
10355
+ })(exports.WaterpoloAdvantageTypes || (exports.WaterpoloAdvantageTypes = {}));
10356
+ exports.WaterpoloGameLog = /** @class */ (function (_super) {
10357
+ __extends(WaterpoloGameLog, _super);
10358
+ function WaterpoloGameLog() {
10359
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
10360
+ _this.active = true;
10361
+ return _this;
10362
+ }
10363
+ Object.defineProperty(WaterpoloGameLog.prototype, "penalizedGameUserId", {
10364
+ get: function () {
10365
+ if (this._penalizedGameUserId) {
10366
+ return this._penalizedGameUserId;
10367
+ }
10368
+ return this.gameUserId;
10369
+ },
10370
+ set: function (value) {
10371
+ this._penalizedGameUserId = value;
10372
+ },
10373
+ enumerable: false,
10374
+ configurable: true
10375
+ });
10376
+ WaterpoloGameLog.prototype.compare = function (model) {
10377
+ if (this.time === model.time && this.period === model.period) {
10378
+ return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
10379
+ }
10380
+ if (this.period === model.period) {
10381
+ return this.time < model.time ? 1 : -1;
10382
+ }
10383
+ return this.period < model.period ? 1 : -1;
10384
+ };
10385
+ Object.defineProperty(WaterpoloGameLog.prototype, "timeFormatted", {
10386
+ get: function () {
10387
+ var minutes = Math.floor(this.time / 60);
10388
+ var seconds = this.time - minutes * 60;
10389
+ return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
10390
+ },
10391
+ enumerable: false,
10392
+ configurable: true
10393
+ });
10394
+ WaterpoloGameLog.prototype.isScoreType = function () {
10395
+ return [exports.WaterpoloGameLogTypes.goal, exports.WaterpoloGameLogTypes.shootout_goal, exports.WaterpoloGameLogTypes.after_game_shootout_goal].indexOf(this.logType) > -1;
10396
+ };
10397
+ WaterpoloGameLog.prototype.isPenaltyType = function () {
10398
+ return [
10399
+ exports.WaterpoloGameLogTypes.minor_penalty, exports.WaterpoloGameLogTypes.major_penalty, exports.WaterpoloGameLogTypes.match_penalty
10400
+ ].indexOf(this.logType) > -1;
10401
+ };
10402
+ WaterpoloGameLog.prototype.isAfter = function (log) {
10403
+ if (this.time === log.time && this.period === log.period) {
10404
+ return this.id > log.id;
10405
+ }
10406
+ if (this.period === log.period) {
10407
+ return this.time > log.time;
10408
+ }
10409
+ return this.period > log.period;
10410
+ };
10411
+ WaterpoloGameLog.toFront = function (value) { };
10412
+ WaterpoloGameLog.toBack = function (value) { };
10413
+ return WaterpoloGameLog;
10414
+ }(BaseModel));
10415
+ __decorate([
10416
+ ToFrontHook
10417
+ ], exports.WaterpoloGameLog, "toFront", null);
10418
+ __decorate([
10419
+ ToBackHook
10420
+ ], exports.WaterpoloGameLog, "toBack", null);
10421
+ exports.WaterpoloGameLog = __decorate([
10422
+ ModelInstance({
10423
+ mappingFields: {
10424
+ id: 'id',
10425
+ unique_id: 'uniqueId',
10426
+ game_id: 'gameId',
10427
+ game_user_id: 'gameUserId',
10428
+ team_id: 'teamId',
10429
+ log_type: 'logType',
10430
+ datetime: 'datetime',
10431
+ time: 'time',
10432
+ period: 'period',
10433
+ active: 'active',
10434
+ is_highlight: 'isHighlight',
10435
+ advantage: 'advantage',
10436
+ advantage_num: 'advantageNum',
10437
+ is_goalie: 'isGoalie',
10438
+ penalized_game_user_id: 'penalizedGameUserId',
10439
+ foul_on_game_user_id: 'foulOnGameUserId',
10440
+ mutual_penalty: 'mutualPenalty',
10441
+ },
10442
+ relation: {
10443
+ datetime: DateTimeField,
10444
+ logType: enumField(exports.WaterpoloGameLogTypes),
10445
+ advantage: enumField(exports.WaterpoloAdvantageTypes),
10446
+ }
10447
+ })
10448
+ ], exports.WaterpoloGameLog);
10449
+
10450
+ exports.WaterpoloGameStatistic = /** @class */ (function (_super) {
10451
+ __extends(WaterpoloGameStatistic, _super);
10452
+ function WaterpoloGameStatistic() {
10453
+ return _super !== null && _super.apply(this, arguments) || this;
10454
+ }
10455
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "id", {
10456
+ get: function () {
10457
+ return this.gameUserId;
10458
+ },
10459
+ enumerable: false,
10460
+ configurable: true
10461
+ });
10462
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoal", {
10463
+ get: function () {
10464
+ return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
10465
+ },
10466
+ enumerable: false,
10467
+ configurable: true
10468
+ });
10469
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsBlocked", {
10470
+ get: function () {
10471
+ return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
10472
+ },
10473
+ enumerable: false,
10474
+ configurable: true
10475
+ });
10476
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotMisses", {
10477
+ get: function () {
10478
+ return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0);
10479
+ },
10480
+ enumerable: false,
10481
+ configurable: true
10482
+ });
10483
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "ppShots", {
10484
+ get: function () {
10485
+ return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
10486
+ },
10487
+ enumerable: false,
10488
+ configurable: true
10489
+ });
10490
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "evShots", {
10491
+ get: function () {
10492
+ return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
10493
+ },
10494
+ enumerable: false,
10495
+ configurable: true
10496
+ });
10497
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shShots", {
10498
+ get: function () {
10499
+ return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
10500
+ },
10501
+ enumerable: false,
10502
+ configurable: true
10503
+ });
10504
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shots", {
10505
+ get: function () {
10506
+ return this.ppShots + this.evShots + this.shShots + (this.shootoutAttempts || 0);
10507
+ },
10508
+ enumerable: false,
10509
+ configurable: true
10510
+ });
10511
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
10512
+ get: function () {
10513
+ return this.shots + (this.shootoutAttempts || 0);
10514
+ },
10515
+ enumerable: false,
10516
+ configurable: true
10517
+ });
10518
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "goals", {
10519
+ get: function () {
10520
+ return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
10521
+ },
10522
+ enumerable: false,
10523
+ configurable: true
10524
+ });
10525
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoals", {
10526
+ get: function () {
10527
+ return this.goals + (this.shootoutGoals || 0);
10528
+ },
10529
+ enumerable: false,
10530
+ configurable: true
10531
+ });
10532
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "assists", {
10533
+ get: function () {
10534
+ return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
10535
+ },
10536
+ enumerable: false,
10537
+ configurable: true
10538
+ });
10539
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "faceOffs", {
10540
+ get: function () {
10541
+ return (this.faceOffWins || 0) + (this.faceOffLosses || 0);
10542
+ },
10543
+ enumerable: false,
10544
+ configurable: true
10545
+ });
10546
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shootOuts", {
10547
+ get: function () {
10548
+ return (this.shootoutAttempts || 0) + (this.shootoutGoals || 0);
10549
+ },
10550
+ enumerable: false,
10551
+ configurable: true
10552
+ });
10553
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsAgainst", {
10554
+ get: function () {
10555
+ return (this.saves || 0) + (this.goalsAgainst || 0);
10556
+ },
10557
+ enumerable: false,
10558
+ configurable: true
10559
+ });
10560
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutShotsAgainst", {
10561
+ get: function () {
10562
+ return (this.shootoutSaves || 0) + (this.shootoutGoalsAgainst || 0);
10563
+ },
10564
+ enumerable: false,
10565
+ configurable: true
10566
+ });
10567
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShotsAgainst", {
10568
+ get: function () {
10569
+ return this.shotsAgainst + this.shootoutShotsAgainst;
10570
+ },
10571
+ enumerable: false,
10572
+ configurable: true
10573
+ });
10574
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "savesPercent", {
10575
+ get: function () {
10576
+ if (!this.shotsAgainst || !this.saves) {
10577
+ return 0;
10578
+ }
10579
+ return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
10580
+ },
10581
+ enumerable: false,
10582
+ configurable: true
10583
+ });
10584
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSaves", {
10585
+ get: function () {
10586
+ return (this.saves || 0) + (this.shootoutSaves || 0);
10587
+ },
10588
+ enumerable: false,
10589
+ configurable: true
10590
+ });
10591
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSavesPercent", {
10592
+ get: function () {
10593
+ if (!this.totalShotsAgainst || !this.totalSaves) {
10594
+ return 0;
10595
+ }
10596
+ return Math.round(1000 * this.totalSaves / this.totalShotsAgainst) / 10;
10597
+ },
10598
+ enumerable: false,
10599
+ configurable: true
10600
+ });
10601
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoalsAgainst", {
10602
+ get: function () {
10603
+ return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
10604
+ },
10605
+ enumerable: false,
10606
+ configurable: true
10607
+ });
10608
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "gameMinutes", {
10609
+ get: function () {
10610
+ return Math.floor(this.gameTime / 60);
10611
+ },
10612
+ enumerable: false,
10613
+ configurable: true
10614
+ });
10615
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "goalsPercent", {
10616
+ get: function () {
10617
+ if (!this.totalGoals || !this.totalShots) {
10618
+ return 0;
10619
+ }
10620
+ return Math.round(1000 * this.totalGoals / this.totalShots) / 10;
10621
+ },
10622
+ enumerable: false,
10623
+ configurable: true
10624
+ });
10625
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "faceOffPercent", {
10626
+ get: function () {
10627
+ if (!this.faceOffWins || !this.faceOffs) {
10628
+ return 0;
10629
+ }
10630
+ return Math.round(1000 * this.faceOffWins / this.faceOffs) / 10;
10631
+ },
10632
+ enumerable: false,
10633
+ configurable: true
10634
+ });
10635
+ Object.defineProperty(WaterpoloGameStatistic.prototype, "goalpass", {
10636
+ get: function () {
10637
+ return (this.totalGoals || 0) + (this.assists || 0);
10638
+ },
10639
+ enumerable: false,
10640
+ configurable: true
10641
+ });
10642
+ WaterpoloGameStatistic.toFront = function (data) { };
10643
+ WaterpoloGameStatistic.toBack = function (data) { };
10644
+ return WaterpoloGameStatistic;
10645
+ }(BaseModel));
10646
+ __decorate([
10647
+ ToFrontHook
10648
+ ], exports.WaterpoloGameStatistic, "toFront", null);
10649
+ __decorate([
10650
+ ToBackHook
10651
+ ], exports.WaterpoloGameStatistic, "toBack", null);
10652
+ exports.WaterpoloGameStatistic = __decorate([
10653
+ ModelInstance({
10654
+ mappingFields: {
10655
+ game_user_id: 'gameUserId',
10656
+ updated_at: 'updatedAt',
10657
+ points: 'points',
10658
+ pp_shot_misses: 'ppShotMisses',
10659
+ pp_shots_on_goal: 'ppShotsOnGoal',
10660
+ pp_shots_blocked: 'ppShotsBlocked',
10661
+ ev_shot_misses: 'evShotMisses',
10662
+ ev_shots_on_goal: 'evShotsOnGoal',
10663
+ ev_shots_blocked: 'evShotsBlocked',
10664
+ sh_shot_misses: 'shShotMisses',
10665
+ sh_shots_on_goal: 'shShotsOnGoal',
10666
+ sh_shots_blocked: 'shShotsBlocked',
10667
+ pp_goals: 'ppGoals',
10668
+ ev_goals: 'evGoals',
10669
+ sh_goals: 'shGoals',
10670
+ pp_assists: 'ppAssists',
10671
+ ev_assists: 'evAssists',
10672
+ sh_assists: 'shAssists',
10673
+ shootout_attempts: 'shootoutAttempts',
10674
+ shootout_goals: 'shootoutGoals',
10675
+ after_game_shootout_attempts: 'afterGameShootoutAttempts',
10676
+ after_game_shootout_goals: 'afterGameShootoutGoals',
10677
+ block_shots: 'blockShots',
10678
+ face_off_losses: 'faceOffLosses',
10679
+ face_off_wins: 'faceOffWins',
10680
+ saves: 'saves',
10681
+ shootout_save: 'shootoutSaves',
10682
+ after_game_shootout_saves: 'afterGameShootoutSaves',
10683
+ goals_against: 'goalsAgainst',
10684
+ shootout_goals_against: 'shootoutGoalsAgainst',
10685
+ after_game_shootout_goals_against: 'afterGameShootoutGoalsAgainst',
10686
+ safety_rate: 'safetyRate',
10687
+ penalty_minutes: 'penaltyMinutes',
10688
+ game_time: 'gameTime',
10689
+ plus_minus: 'plusMinus',
10690
+ free_kicks: 'freeKicks',
10691
+ yellow_cards: 'yellowCards',
10692
+ red_cards: 'redCards',
10693
+ fouls: 'fouls',
10694
+ losses: 'losses',
10695
+ steals: 'steals',
10696
+ drawn_fouls: 'drawnFouls',
10697
+ },
10698
+ relation: {
10699
+ updatedAt: DateTimeField,
10700
+ }
10701
+ })
10702
+ ], exports.WaterpoloGameStatistic);
10703
+
10704
+ exports.WaterpoloGameTeamStatistic = /** @class */ (function (_super) {
10705
+ __extends(WaterpoloGameTeamStatistic, _super);
10706
+ function WaterpoloGameTeamStatistic() {
10707
+ return _super !== null && _super.apply(this, arguments) || this;
10708
+ }
10709
+ WaterpoloGameTeamStatistic.toFront = function (data) { };
10710
+ WaterpoloGameTeamStatistic.toBack = function (data) { };
10711
+ return WaterpoloGameTeamStatistic;
10712
+ }(BaseModel));
10713
+ __decorate([
10714
+ ToFrontHook
10715
+ ], exports.WaterpoloGameTeamStatistic, "toFront", null);
10716
+ __decorate([
10717
+ ToBackHook
10718
+ ], exports.WaterpoloGameTeamStatistic, "toBack", null);
10719
+ exports.WaterpoloGameTeamStatistic = __decorate([
10720
+ ModelInstance({
10721
+ mappingFields: {
10722
+ team: 'team',
10723
+ competitor_team: 'competitorTeam'
10724
+ },
10725
+ relation: {
10726
+ team: exports.WaterpoloStatistic,
10727
+ competitorTeam: exports.WaterpoloStatistic
10728
+ }
10729
+ })
10730
+ ], exports.WaterpoloGameTeamStatistic);
10731
+
10732
+ var WaterpoloGameApi = /** @class */ (function (_super) {
10733
+ __extends(WaterpoloGameApi, _super);
10734
+ function WaterpoloGameApi(httpClient, configService) {
10735
+ var _this = _super.call(this, httpClient, configService) || this;
10736
+ _this.httpClient = httpClient;
10737
+ _this.configService = configService;
10738
+ return _this;
10739
+ }
10740
+ WaterpoloGameApi.prototype.getById = function (gameId) {
10741
+ return __awaiter(this, void 0, void 0, function () {
10742
+ return __generator(this, function (_a) {
10743
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/").pipe(operators.map(function (result) { return exports.Game.toFront(result); })).toPromise()];
10744
+ });
10745
+ });
10746
+ };
10747
+ WaterpoloGameApi.prototype.getTeamStatistic = function (gameId) {
10748
+ return __awaiter(this, void 0, void 0, function () {
10749
+ return __generator(this, function (_a) {
10750
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/team_statistic/").pipe(operators.map(function (result) { return exports.WaterpoloGameTeamStatistic.toFront(result); })).toPromise()];
10751
+ });
10752
+ });
10753
+ };
10754
+ WaterpoloGameApi.prototype.getUserStatistic = function (gameId) {
10755
+ return __awaiter(this, void 0, void 0, function () {
10756
+ return __generator(this, function (_a) {
10757
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/user_statistic/").pipe(operators.map(function (result) { return exports.WaterpoloGameStatistic.toFront(result); })).toPromise()];
10758
+ });
10759
+ });
10760
+ };
10761
+ WaterpoloGameApi.prototype.getLogs = function (gameId) {
10762
+ return __awaiter(this, void 0, void 0, function () {
10763
+ return __generator(this, function (_a) {
10764
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/logs/").pipe(operators.map(function (result) { return exports.WaterpoloGameLog.toFront(result); })).toPromise()];
10765
+ });
10766
+ });
10767
+ };
10768
+ WaterpoloGameApi.prototype.downloadProtocol = function (gameId, format) {
10769
+ return __awaiter(this, void 0, void 0, function () {
10770
+ return __generator(this, function (_a) {
10771
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/game_protocol/", {
10772
+ params: new i1.HttpParams().set('file_type', format),
10773
+ responseType: 'blob'
10774
+ }).toPromise()];
10775
+ });
10776
+ });
10777
+ };
10778
+ WaterpoloGameApi.prototype.downloadApplication = function (gameId, format, type) {
10779
+ return __awaiter(this, void 0, void 0, function () {
10780
+ return __generator(this, function (_a) {
10781
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/game_application_file/", {
10782
+ params: new i1.HttpParams().set('file_type', format).set('application_type', type),
10783
+ responseType: 'blob'
10784
+ }).toPromise()];
10785
+ });
10786
+ });
10787
+ };
10788
+ return WaterpoloGameApi;
10789
+ }(GameBaseApi));
10790
+ WaterpoloGameApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function WaterpoloGameApi_Factory() { return new WaterpoloGameApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: WaterpoloGameApi, providedIn: "root" });
10791
+ WaterpoloGameApi.decorators = [
10792
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
10793
+ ];
10794
+ WaterpoloGameApi.ctorParameters = function () { return [
10795
+ { type: i1.HttpClient },
10796
+ { type: ConfigService }
10797
+ ]; };
10798
+
9980
10799
  var PublicTeamApi = /** @class */ (function () {
9981
10800
  function PublicTeamApi(httpClient, configService) {
9982
10801
  this.httpClient = httpClient;
@@ -10031,148 +10850,182 @@
10031
10850
  { type: ConfigService }
10032
10851
  ]; };
10033
10852
 
10034
- var _a$d;
10035
- var BasketballGameLogTypeLocalization = (_a$d = {},
10036
- _a$d[exports.BasketballGameLogTypes.enter_game] = 'Выход на площадку',
10037
- _a$d[exports.BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
10038
- _a$d[exports.BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
10039
- _a$d[exports.BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
10040
- _a$d[exports.BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
10041
- _a$d[exports.BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
10042
- _a$d[exports.BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
10043
- _a$d[exports.BasketballGameLogTypes.two_point_made] = '2 очка',
10044
- _a$d[exports.BasketballGameLogTypes.three_point_made] = '3 очка',
10045
- _a$d[exports.BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
10046
- _a$d[exports.BasketballGameLogTypes.one_point_made] = '1 очко',
10047
- _a$d[exports.BasketballGameLogTypes.assist] = 'Передача',
10048
- _a$d[exports.BasketballGameLogTypes.block] = 'Блокшот',
10049
- _a$d[exports.BasketballGameLogTypes.rebound] = 'Подбор',
10050
- _a$d[exports.BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
10051
- _a$d[exports.BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
10052
- _a$d[exports.BasketballGameLogTypes.steal] = 'Перехват',
10053
- _a$d[exports.BasketballGameLogTypes.turnover] = 'Потеря',
10054
- _a$d[exports.BasketballGameLogTypes.personal_foul] = 'Фол',
10055
- _a$d[exports.BasketballGameLogTypes.technical_foul] = 'Технический фол',
10056
- _a$d[exports.BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
10057
- _a$d[exports.BasketballGameLogTypes.timeout] = 'Таймаут',
10058
- _a$d[exports.BasketballGameLogTypes.team_rebound] = 'Командный подбор',
10059
- _a$d);
10853
+ var _a$e;
10854
+ var BasketballGameLogTypeLocalization = (_a$e = {},
10855
+ _a$e[exports.BasketballGameLogTypes.enter_game] = 'Выход на площадку',
10856
+ _a$e[exports.BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
10857
+ _a$e[exports.BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
10858
+ _a$e[exports.BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
10859
+ _a$e[exports.BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
10860
+ _a$e[exports.BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
10861
+ _a$e[exports.BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
10862
+ _a$e[exports.BasketballGameLogTypes.two_point_made] = '2 очка',
10863
+ _a$e[exports.BasketballGameLogTypes.three_point_made] = '3 очка',
10864
+ _a$e[exports.BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
10865
+ _a$e[exports.BasketballGameLogTypes.one_point_made] = '1 очко',
10866
+ _a$e[exports.BasketballGameLogTypes.assist] = 'Передача',
10867
+ _a$e[exports.BasketballGameLogTypes.block] = 'Блокшот',
10868
+ _a$e[exports.BasketballGameLogTypes.rebound] = 'Подбор',
10869
+ _a$e[exports.BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
10870
+ _a$e[exports.BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
10871
+ _a$e[exports.BasketballGameLogTypes.steal] = 'Перехват',
10872
+ _a$e[exports.BasketballGameLogTypes.turnover] = 'Потеря',
10873
+ _a$e[exports.BasketballGameLogTypes.personal_foul] = 'Фол',
10874
+ _a$e[exports.BasketballGameLogTypes.technical_foul] = 'Технический фол',
10875
+ _a$e[exports.BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
10876
+ _a$e[exports.BasketballGameLogTypes.timeout] = 'Таймаут',
10877
+ _a$e[exports.BasketballGameLogTypes.team_rebound] = 'Командный подбор',
10878
+ _a$e);
10060
10879
 
10061
- var _a$c;
10062
- var BasketballGameSubLogTypesLocalization = (_a$c = {},
10880
+ var _a$d;
10881
+ var BasketballGameSubLogTypesLocalization = (_a$d = {},
10063
10882
  // Shots
10064
- _a$c[exports.BasketballSubLogTypes.jump_shot] = 'Джампшот',
10065
- _a$c[exports.BasketballSubLogTypes.step_back_jump_shot] = 'Степ-бэк',
10066
- _a$c[exports.BasketballSubLogTypes.floating_jump_shot] = 'Флоатинг',
10067
- _a$c[exports.BasketballSubLogTypes.fade_away_jump_shot] = 'Фэйдавэй',
10068
- _a$c[exports.BasketballSubLogTypes.pull_up_jump_shot] = 'Пуллап',
10069
- _a$c[exports.BasketballSubLogTypes.turnaround_jump_shot] = 'Турнэраунд',
10070
- _a$c[exports.BasketballSubLogTypes.dunk] = 'Данк',
10071
- _a$c[exports.BasketballSubLogTypes.layup] = 'Лэйап',
10072
- _a$c[exports.BasketballSubLogTypes.driving_layup] = 'Драйвинг лэйап',
10073
- _a$c[exports.BasketballSubLogTypes.alley_oop] = 'Алейуп',
10074
- _a$c[exports.BasketballSubLogTypes.hook_shot] = 'Хукшот',
10883
+ _a$d[exports.BasketballSubLogTypes.jump_shot] = 'Джампшот',
10884
+ _a$d[exports.BasketballSubLogTypes.step_back_jump_shot] = 'Степ-бэк',
10885
+ _a$d[exports.BasketballSubLogTypes.floating_jump_shot] = 'Флоатинг',
10886
+ _a$d[exports.BasketballSubLogTypes.fade_away_jump_shot] = 'Фэйдавэй',
10887
+ _a$d[exports.BasketballSubLogTypes.pull_up_jump_shot] = 'Пуллап',
10888
+ _a$d[exports.BasketballSubLogTypes.turnaround_jump_shot] = 'Турнэраунд',
10889
+ _a$d[exports.BasketballSubLogTypes.dunk] = 'Данк',
10890
+ _a$d[exports.BasketballSubLogTypes.layup] = 'Лэйап',
10891
+ _a$d[exports.BasketballSubLogTypes.driving_layup] = 'Драйвинг лэйап',
10892
+ _a$d[exports.BasketballSubLogTypes.alley_oop] = 'Алейуп',
10893
+ _a$d[exports.BasketballSubLogTypes.hook_shot] = 'Хукшот',
10075
10894
  // foul
10076
- _a$c[exports.BasketballSubLogTypes.offensive_foul] = 'В нападении',
10077
- _a$c[exports.BasketballSubLogTypes.shot_foul] = 'При броксе',
10078
- _a$c[exports.BasketballSubLogTypes.mutual_foul] = 'Обоюдный фол',
10895
+ _a$d[exports.BasketballSubLogTypes.offensive_foul] = 'В нападении',
10896
+ _a$d[exports.BasketballSubLogTypes.shot_foul] = 'При броксе',
10897
+ _a$d[exports.BasketballSubLogTypes.mutual_foul] = 'Обоюдный фол',
10079
10898
  // Turnover
10080
- _a$c[exports.BasketballSubLogTypes.bad_pass] = 'Плохой пас',
10081
- _a$c[exports.BasketballSubLogTypes.ball_handling] = 'На ведении',
10082
- _a$c[exports.BasketballSubLogTypes.travel] = 'Пробежка',
10083
- _a$c[exports.BasketballSubLogTypes.double_dribble] = 'Двойная пробежка',
10084
- _a$c[exports.BasketballSubLogTypes.out_of_bounds] = 'Заступ в аут',
10085
- _a$c[exports.BasketballSubLogTypes.three_seconds] = '3 секунды',
10086
- _a$c[exports.BasketballSubLogTypes.five_seconds] = '5 секунд',
10087
- _a$c[exports.BasketballSubLogTypes.eight_seconds] = '8 секунд',
10088
- _a$c[exports.BasketballSubLogTypes.twenty_four_seconds] = '24 секунды',
10899
+ _a$d[exports.BasketballSubLogTypes.bad_pass] = 'Плохой пас',
10900
+ _a$d[exports.BasketballSubLogTypes.ball_handling] = 'На ведении',
10901
+ _a$d[exports.BasketballSubLogTypes.travel] = 'Пробежка',
10902
+ _a$d[exports.BasketballSubLogTypes.double_dribble] = 'Двойная пробежка',
10903
+ _a$d[exports.BasketballSubLogTypes.out_of_bounds] = 'Заступ в аут',
10904
+ _a$d[exports.BasketballSubLogTypes.three_seconds] = '3 секунды',
10905
+ _a$d[exports.BasketballSubLogTypes.five_seconds] = '5 секунд',
10906
+ _a$d[exports.BasketballSubLogTypes.eight_seconds] = '8 секунд',
10907
+ _a$d[exports.BasketballSubLogTypes.twenty_four_seconds] = '24 секунды',
10908
+ _a$d);
10909
+
10910
+ var _a$c;
10911
+ var HockeyGameLogTypeLocalization = (_a$c = {},
10912
+ _a$c[exports.HockeyGameLogTypes.enter_game] = 'Выход на площадку',
10913
+ _a$c[exports.HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
10914
+ _a$c[exports.HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
10915
+ _a$c[exports.HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
10916
+ _a$c[exports.HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
10917
+ _a$c[exports.HockeyGameLogTypes.goal] = 'Гол',
10918
+ _a$c[exports.HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
10919
+ _a$c[exports.HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
10920
+ _a$c[exports.HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
10921
+ _a$c[exports.HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
10922
+ _a$c[exports.HockeyGameLogTypes.assist] = 'Передача',
10923
+ _a$c[exports.HockeyGameLogTypes.block_shot] = 'Блокировка броска',
10924
+ _a$c[exports.HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
10925
+ _a$c[exports.HockeyGameLogTypes.major_penalty] = 'Большой штраф',
10926
+ _a$c[exports.HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
10927
+ _a$c[exports.HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
10928
+ _a$c[exports.HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
10929
+ _a$c[exports.HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
10930
+ _a$c[exports.HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
10931
+ _a$c[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
10932
+ _a$c[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
10933
+ _a$c[exports.HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
10934
+ _a$c[exports.HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
10935
+ _a$c[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
10936
+ _a$c[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
10937
+ _a$c[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
10089
10938
  _a$c);
10090
10939
 
10091
10940
  var _a$b;
10092
- var HockeyGameLogTypeLocalization = (_a$b = {},
10093
- _a$b[exports.HockeyGameLogTypes.enter_game] = 'Выход на площадку',
10094
- _a$b[exports.HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
10095
- _a$b[exports.HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
10096
- _a$b[exports.HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
10097
- _a$b[exports.HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
10098
- _a$b[exports.HockeyGameLogTypes.goal] = 'Гол',
10099
- _a$b[exports.HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
10100
- _a$b[exports.HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
10101
- _a$b[exports.HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
10102
- _a$b[exports.HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
10103
- _a$b[exports.HockeyGameLogTypes.assist] = 'Передача',
10104
- _a$b[exports.HockeyGameLogTypes.block_shot] = 'Блокировка броска',
10105
- _a$b[exports.HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
10106
- _a$b[exports.HockeyGameLogTypes.major_penalty] = 'Большой штраф',
10107
- _a$b[exports.HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
10108
- _a$b[exports.HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
10109
- _a$b[exports.HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
10110
- _a$b[exports.HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
10111
- _a$b[exports.HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
10112
- _a$b[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
10113
- _a$b[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
10114
- _a$b[exports.HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
10115
- _a$b[exports.HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
10116
- _a$b[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
10117
- _a$b[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
10118
- _a$b[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
10941
+ var FootballGameLogTypeLocalization = (_a$b = {},
10942
+ _a$b[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
10943
+ _a$b[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
10944
+ _a$b[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
10945
+ _a$b[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
10946
+ _a$b[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
10947
+ _a$b[exports.FootballGameLogTypes.goal] = 'Гол',
10948
+ _a$b[exports.FootballGameLogTypes.assist] = 'Передача',
10949
+ _a$b[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
10950
+ _a$b[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
10951
+ _a$b[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
10952
+ _a$b[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
10953
+ _a$b[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
10954
+ _a$b[exports.FootballGameLogTypes.corner] = 'Угловой',
10955
+ _a$b[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
10956
+ _a$b[exports.FootballGameLogTypes.save] = 'Отражен удар',
10957
+ _a$b[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
10958
+ _a$b[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
10959
+ _a$b[exports.FootballGameLogTypes.foul] = 'Фол',
10960
+ _a$b[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
10961
+ _a$b[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
10962
+ _a$b[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
10963
+ _a$b[exports.FootballGameLogTypes.loss] = 'Потеря',
10964
+ _a$b[exports.FootballGameLogTypes.steal] = 'Перехват',
10965
+ _a$b[exports.FootballGameLogTypes.out] = 'Аут',
10966
+ _a$b[exports.FootballGameLogTypes.timeout] = 'Таймаут',
10967
+ _a$b[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
10968
+ _a$b[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
10969
+ _a$b[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
10970
+ _a$b[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
10119
10971
  _a$b);
10120
10972
 
10121
10973
  var _a$a;
10122
- var FootballGameLogTypeLocalization = (_a$a = {},
10123
- _a$a[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
10124
- _a$a[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
10125
- _a$a[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
10126
- _a$a[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
10127
- _a$a[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
10128
- _a$a[exports.FootballGameLogTypes.goal] = 'Гол',
10129
- _a$a[exports.FootballGameLogTypes.assist] = 'Передача',
10130
- _a$a[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
10131
- _a$a[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
10132
- _a$a[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
10133
- _a$a[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
10134
- _a$a[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
10135
- _a$a[exports.FootballGameLogTypes.corner] = 'Угловой',
10136
- _a$a[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
10137
- _a$a[exports.FootballGameLogTypes.save] = 'Отражен удар',
10138
- _a$a[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
10139
- _a$a[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
10140
- _a$a[exports.FootballGameLogTypes.foul] = 'Фол',
10141
- _a$a[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
10142
- _a$a[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
10143
- _a$a[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
10144
- _a$a[exports.FootballGameLogTypes.loss] = 'Потеря',
10145
- _a$a[exports.FootballGameLogTypes.steal] = 'Перехват',
10146
- _a$a[exports.FootballGameLogTypes.out] = 'Аут',
10147
- _a$a[exports.FootballGameLogTypes.timeout] = 'Таймаут',
10148
- _a$a[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
10149
- _a$a[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
10150
- _a$a[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
10151
- _a$a[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
10974
+ var HandballGameLogTypeLocalization = (_a$a = {},
10975
+ _a$a[exports.HandballGameLogTypes.enter_game] = 'Выход на поле',
10976
+ _a$a[exports.HandballGameLogTypes.exit_game] = 'Ушел с поля',
10977
+ _a$a[exports.HandballGameLogTypes.shot_miss] = 'Бросок мимо',
10978
+ _a$a[exports.HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
10979
+ _a$a[exports.HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
10980
+ _a$a[exports.HandballGameLogTypes.goal] = 'Гол',
10981
+ _a$a[exports.HandballGameLogTypes.assist] = 'Передача',
10982
+ _a$a[exports.HandballGameLogTypes.penalty_miss] = ' промах',
10983
+ _a$a[exports.HandballGameLogTypes.penalty_shot_on_goal] = ' в створ',
10984
+ _a$a[exports.HandballGameLogTypes.penalty_goal] = ' гол',
10985
+ _a$a[exports.HandballGameLogTypes.save] = 'Сэйв',
10986
+ _a$a[exports.HandballGameLogTypes.penalty_save] = 'Сэйв ',
10987
+ _a$a[exports.HandballGameLogTypes.foul] = 'Фол',
10988
+ _a$a[exports.HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
10989
+ _a$a[exports.HandballGameLogTypes.red_card] = 'Красная карточка',
10990
+ _a$a[exports.HandballGameLogTypes.two_minute_foul] = ' минутный штраф',
10991
+ _a$a[exports.HandballGameLogTypes.turnover] = 'Потеря',
10992
+ _a$a[exports.HandballGameLogTypes.steal] = 'Перехват',
10993
+ _a$a[exports.HandballGameLogTypes.block_shot] = 'Блок броска',
10994
+ _a$a[exports.HandballGameLogTypes.timeout] = 'Таймаут',
10152
10995
  _a$a);
10153
10996
 
10154
10997
  var _a$9;
10155
- var HandballGameLogTypeLocalization = (_a$9 = {},
10156
- _a$9[exports.HandballGameLogTypes.enter_game] = 'Выход на поле',
10157
- _a$9[exports.HandballGameLogTypes.exit_game] = 'Ушел с поля',
10158
- _a$9[exports.HandballGameLogTypes.shot_miss] = 'Бросок мимо',
10159
- _a$9[exports.HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
10160
- _a$9[exports.HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
10161
- _a$9[exports.HandballGameLogTypes.goal] = 'Гол',
10162
- _a$9[exports.HandballGameLogTypes.assist] = 'Передача',
10163
- _a$9[exports.HandballGameLogTypes.penalty_miss] = ' промах',
10164
- _a$9[exports.HandballGameLogTypes.penalty_shot_on_goal] = ' в створ',
10165
- _a$9[exports.HandballGameLogTypes.penalty_goal] = ' гол',
10166
- _a$9[exports.HandballGameLogTypes.save] = 'Сэйв',
10167
- _a$9[exports.HandballGameLogTypes.penalty_save] = 'Сэйв ',
10168
- _a$9[exports.HandballGameLogTypes.foul] = 'Фол',
10169
- _a$9[exports.HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
10170
- _a$9[exports.HandballGameLogTypes.red_card] = 'Красная карточка',
10171
- _a$9[exports.HandballGameLogTypes.two_minute_foul] = '2х минутный штраф',
10172
- _a$9[exports.HandballGameLogTypes.turnover] = 'Потеря',
10173
- _a$9[exports.HandballGameLogTypes.steal] = 'Перехват',
10174
- _a$9[exports.HandballGameLogTypes.block_shot] = 'Блок броска',
10175
- _a$9[exports.HandballGameLogTypes.timeout] = 'Таймаут',
10998
+ var WaterpoloGameLogTypeLocalization = (_a$9 = {},
10999
+ _a$9[exports.WaterpoloGameLogTypes.enter_game] = 'Выход на площадку',
11000
+ _a$9[exports.WaterpoloGameLogTypes.exit_game] = 'Ушел с площадки',
11001
+ _a$9[exports.WaterpoloGameLogTypes.shot_miss] = 'Бросок мимо',
11002
+ _a$9[exports.WaterpoloGameLogTypes.shot_on_goal] = 'Бросок по воротам',
11003
+ _a$9[exports.WaterpoloGameLogTypes.shot_blocked] = 'Заблокированный бросок',
11004
+ _a$9[exports.WaterpoloGameLogTypes.goal] = 'Гол',
11005
+ _a$9[exports.WaterpoloGameLogTypes.shootout_attempt] = 'Пенальти промах',
11006
+ _a$9[exports.WaterpoloGameLogTypes.shootout_goal] = 'Пенальти гол',
11007
+ _a$9[exports.WaterpoloGameLogTypes.after_game_shootout_attempt] = 'Пенальти промах',
11008
+ _a$9[exports.WaterpoloGameLogTypes.after_game_shootout_goal] = 'Пенальти гол',
11009
+ _a$9[exports.WaterpoloGameLogTypes.assist] = 'Передача',
11010
+ _a$9[exports.WaterpoloGameLogTypes.block_shot] = 'Блокировка броска',
11011
+ _a$9[exports.WaterpoloGameLogTypes.minor_penalty] = 'Штраф 20 сек.',
11012
+ _a$9[exports.WaterpoloGameLogTypes.major_penalty] = 'Штраф 4 мин.',
11013
+ _a$9[exports.WaterpoloGameLogTypes.match_penalty] = 'Матч-штраф',
11014
+ _a$9[exports.WaterpoloGameLogTypes.foul] = 'Фол',
11015
+ _a$9[exports.WaterpoloGameLogTypes.penalty_shot] = 'Штрафной бросок',
11016
+ _a$9[exports.WaterpoloGameLogTypes.face_off_lose] = 'Проигрыш в спринте',
11017
+ _a$9[exports.WaterpoloGameLogTypes.face_off_win] = 'Победа в спринте',
11018
+ _a$9[exports.WaterpoloGameLogTypes.save] = 'Отражен бросок',
11019
+ _a$9[exports.WaterpoloGameLogTypes.shootout_save] = 'Отражен бросок',
11020
+ _a$9[exports.WaterpoloGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
11021
+ _a$9[exports.WaterpoloGameLogTypes.timeout] = 'Таймаут',
11022
+ _a$9[exports.WaterpoloGameLogTypes.penalty_start] = 'Начало штрафного времени',
11023
+ _a$9[exports.WaterpoloGameLogTypes.penalty_end] = 'Конец штрафного времени',
11024
+ _a$9[exports.WaterpoloGameLogTypes.yellow_card] = 'Желтая карточка',
11025
+ _a$9[exports.WaterpoloGameLogTypes.red_card] = 'Красная карточка',
11026
+ _a$9[exports.WaterpoloGameLogTypes.free_kick] = 'Свободный удар',
11027
+ _a$9[exports.WaterpoloGameLogTypes.loss] = 'Потеря',
11028
+ _a$9[exports.WaterpoloGameLogTypes.steal] = 'Перехват',
10176
11029
  _a$9);
10177
11030
 
10178
11031
  var _a$8;
@@ -10252,7 +11105,7 @@
10252
11105
  _a$5[exports.TeamUserRole.assistant] = 'Ассистент',
10253
11106
  _a$5);
10254
11107
 
10255
- var _a$4, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
11108
+ var _a$4, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
10256
11109
  var GameBasketballPositionLocalization = (_a$4 = {},
10257
11110
  _a$4[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
10258
11111
  _a$4[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
@@ -10331,6 +11184,22 @@
10331
11184
  _o[exports.GameRugbyPosition.three_quarter] = 'Трехчетвертный',
10332
11185
  _o[exports.GameRugbyPosition.fullback] = 'Замыкающий',
10333
11186
  _o);
11187
+ var GameWaterpoloPositionLocalization = (_p = {},
11188
+ _p[exports.GameWaterpoloPosition.defensemen] = 'Защитник',
11189
+ _p[exports.GameWaterpoloPosition.goalkeeper] = 'Вратарь',
11190
+ _p[exports.GameWaterpoloPosition.center_forward] = 'Центральный нападающий',
11191
+ _p[exports.GameWaterpoloPosition.mobile_forward] = 'Подвижный нападающий',
11192
+ _p);
11193
+ var GameWaterpoloPositionShortRuLocalization = (_q = {},
11194
+ _q[exports.GameWaterpoloPosition.defensemen] = 'З',
11195
+ _q[exports.GameWaterpoloPosition.goalkeeper] = 'Вр',
11196
+ _q[exports.GameWaterpoloPosition.center_forward] = 'ЦН',
11197
+ _q[exports.GameWaterpoloPosition.mobile_forward] = 'ПН',
11198
+ _q);
11199
+ var WaterpoloWorkHandLocalization = (_r = {},
11200
+ _r[exports.WaterpoloWorkHand.left] = 'Левая',
11201
+ _r[exports.WaterpoloWorkHand.right] = 'Правая',
11202
+ _r);
10334
11203
 
10335
11204
  var _a$3;
10336
11205
  var VolleyballGameLogTypeLocalization = (_a$3 = {},
@@ -11018,6 +11887,8 @@
11018
11887
  exports.GameVolleyballPositionLocalization = GameVolleyballPositionLocalization;
11019
11888
  exports.GameVolleyballPositionShortLocalization = GameVolleyballPositionShortLocalization;
11020
11889
  exports.GameVolleyballPositionShortRuLocalization = GameVolleyballPositionShortRuLocalization;
11890
+ exports.GameWaterpoloPositionLocalization = GameWaterpoloPositionLocalization;
11891
+ exports.GameWaterpoloPositionShortRuLocalization = GameWaterpoloPositionShortRuLocalization;
11021
11892
  exports.HandballGameApi = HandballGameApi;
11022
11893
  exports.HandballGameLogTypeLocalization = HandballGameLogTypeLocalization;
11023
11894
  exports.HockeyGameApi = HockeyGameApi;
@@ -11069,6 +11940,9 @@
11069
11940
  exports.VolleyballGameApi = VolleyballGameApi;
11070
11941
  exports.VolleyballGameLogTypeLocalization = VolleyballGameLogTypeLocalization;
11071
11942
  exports.VolleyballWorkHandLocalization = VolleyballWorkHandLocalization;
11943
+ exports.WaterpoloGameApi = WaterpoloGameApi;
11944
+ exports.WaterpoloGameLogTypeLocalization = WaterpoloGameLogTypeLocalization;
11945
+ exports.WaterpoloWorkHandLocalization = WaterpoloWorkHandLocalization;
11072
11946
  exports.WorkHandLocalization = WorkHandLocalization;
11073
11947
  exports.addItemInArray = addItemInArray;
11074
11948
  exports.addItemsInArray = addItemsInArray;