@mtgame/core 0.0.53 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/api/football-game-api.d.ts +19 -0
  2. package/api/public-api.d.ts +1 -0
  3. package/api/tournament-api.d.ts +2 -0
  4. package/bundles/mtgame-core.umd.js +734 -45
  5. package/bundles/mtgame-core.umd.js.map +1 -1
  6. package/bundles/mtgame-core.umd.min.js +2 -2
  7. package/bundles/mtgame-core.umd.min.js.map +1 -1
  8. package/esm2015/api/football-game-api.js +70 -0
  9. package/esm2015/api/public-api.js +2 -1
  10. package/esm2015/api/tournament-api.js +18 -1
  11. package/esm2015/localization/football-game-log-types.js +29 -0
  12. package/esm2015/localization/overtime-types.js +4 -2
  13. package/esm2015/localization/public-api.js +2 -1
  14. package/esm2015/localization/user-profile.js +13 -1
  15. package/esm2015/models/football-game-config.js +34 -0
  16. package/esm2015/models/football-game-log.js +94 -0
  17. package/esm2015/models/football-game-statistic.js +129 -0
  18. package/esm2015/models/football-game-team-statistic.js +27 -0
  19. package/esm2015/models/football-profile.js +43 -0
  20. package/esm2015/models/football-statistic.js +92 -0
  21. package/esm2015/models/game.js +4 -1
  22. package/esm2015/models/hockey-statistic.js +8 -1
  23. package/esm2015/models/public-api.js +7 -1
  24. package/esm2015/models/sport.js +13 -1
  25. package/esm2015/models/team.js +4 -1
  26. package/esm2015/models/tournament.js +6 -1
  27. package/esm2015/models/user.js +4 -1
  28. package/esm5/api/football-game-api.js +85 -0
  29. package/esm5/api/public-api.js +2 -1
  30. package/esm5/api/tournament-api.js +32 -1
  31. package/esm5/localization/football-game-log-types.js +30 -0
  32. package/esm5/localization/overtime-types.js +3 -1
  33. package/esm5/localization/public-api.js +2 -1
  34. package/esm5/localization/user-profile.js +14 -2
  35. package/esm5/models/football-game-config.js +39 -0
  36. package/esm5/models/football-game-log.js +101 -0
  37. package/esm5/models/football-game-statistic.js +206 -0
  38. package/esm5/models/football-game-team-statistic.js +32 -0
  39. package/esm5/models/football-profile.js +48 -0
  40. package/esm5/models/football-statistic.js +101 -0
  41. package/esm5/models/game.js +4 -1
  42. package/esm5/models/hockey-statistic.js +12 -1
  43. package/esm5/models/public-api.js +7 -1
  44. package/esm5/models/sport.js +13 -1
  45. package/esm5/models/team.js +4 -1
  46. package/esm5/models/tournament.js +6 -1
  47. package/esm5/models/user.js +4 -1
  48. package/fesm2015/mtgame-core.js +539 -2
  49. package/fesm2015/mtgame-core.js.map +1 -1
  50. package/fesm5/mtgame-core.js +724 -45
  51. package/fesm5/mtgame-core.js.map +1 -1
  52. package/localization/football-game-log-types.d.ts +28 -0
  53. package/localization/overtime-types.d.ts +2 -0
  54. package/localization/public-api.d.ts +1 -0
  55. package/localization/user-profile.d.ts +12 -0
  56. package/models/football-game-config.d.ts +15 -0
  57. package/models/football-game-log.d.ts +53 -0
  58. package/models/football-game-statistic.d.ts +55 -0
  59. package/models/football-game-team-statistic.d.ts +8 -0
  60. package/models/football-profile.d.ts +20 -0
  61. package/models/football-statistic.d.ts +64 -0
  62. package/models/game.d.ts +2 -0
  63. package/models/hockey-statistic.d.ts +2 -0
  64. package/models/public-api.d.ts +6 -0
  65. package/models/sport.d.ts +7 -1
  66. package/models/tournament.d.ts +3 -1
  67. package/models/user.d.ts +2 -0
  68. package/mtgame-core.metadata.json +1 -1
  69. package/package.json +1 -1
@@ -615,6 +615,9 @@
615
615
  SportTypes[SportTypes["hockey"] = 7] = "hockey";
616
616
  SportTypes[SportTypes["ice_hockey"] = 8] = "ice_hockey";
617
617
  SportTypes[SportTypes["ball_hockey"] = 9] = "ball_hockey";
618
+ SportTypes[SportTypes["football"] = 10] = "football";
619
+ SportTypes[SportTypes["classic_football"] = 11] = "classic_football";
620
+ SportTypes[SportTypes["mini_football"] = 12] = "mini_football";
618
621
  })(exports.SportTypes || (exports.SportTypes = {}));
619
622
  var Sport = /** @class */ (function (_super) {
620
623
  __extends(Sport, _super);
@@ -648,6 +651,15 @@
648
651
  Sport.prototype.isBallHockey = function () {
649
652
  return this.id === exports.SportTypes.ball_hockey;
650
653
  };
654
+ Sport.prototype.isFootball = function () {
655
+ return this.id === exports.SportTypes.football || this.parentId === exports.SportTypes.football;
656
+ };
657
+ Sport.prototype.isClassicFootball = function () {
658
+ return this.id === exports.SportTypes.classic_football;
659
+ };
660
+ Sport.prototype.isMiniFootball = function () {
661
+ return this.id === exports.SportTypes.mini_football;
662
+ };
651
663
  Sport.toFront = function (data) {
652
664
  return null;
653
665
  };
@@ -855,6 +867,51 @@
855
867
  }(BaseModel));
856
868
 
857
869
 
870
+ (function (GameFootballPosition) {
871
+ GameFootballPosition[GameFootballPosition["defensemen"] = 1] = "defensemen";
872
+ GameFootballPosition[GameFootballPosition["midfielder"] = 2] = "midfielder";
873
+ GameFootballPosition[GameFootballPosition["forward"] = 3] = "forward";
874
+ GameFootballPosition[GameFootballPosition["goalkeeper"] = 4] = "goalkeeper";
875
+ })(exports.GameFootballPosition || (exports.GameFootballPosition = {}));
876
+
877
+ (function (FootballWorkFoot) {
878
+ FootballWorkFoot[FootballWorkFoot["left"] = 1] = "left";
879
+ FootballWorkFoot[FootballWorkFoot["right"] = 2] = "right";
880
+ FootballWorkFoot[FootballWorkFoot["both"] = 3] = "both";
881
+ })(exports.FootballWorkFoot || (exports.FootballWorkFoot = {}));
882
+ var FootballProfile = /** @class */ (function (_super) {
883
+ __extends(FootballProfile, _super);
884
+ function FootballProfile() {
885
+ return _super !== null && _super.apply(this, arguments) || this;
886
+ }
887
+ FootballProfile.toFront = function (value) {
888
+ };
889
+ FootballProfile.toBack = function (value) {
890
+ };
891
+ __decorate([
892
+ ToFrontHook
893
+ ], FootballProfile, "toFront", null);
894
+ __decorate([
895
+ ToBackHook
896
+ ], FootballProfile, "toBack", null);
897
+ FootballProfile = __decorate([
898
+ ModelInstance({
899
+ mappingFields: {
900
+ id: 'id',
901
+ user_id: 'userId',
902
+ position: 'position',
903
+ work_foot: 'workFoot'
904
+ },
905
+ relation: {
906
+ position: enumField(exports.GameFootballPosition),
907
+ workFoot: enumField(exports.FootballWorkFoot)
908
+ }
909
+ })
910
+ ], FootballProfile);
911
+ return FootballProfile;
912
+ }(BaseModel));
913
+
914
+
858
915
  (function (UserGender) {
859
916
  UserGender[UserGender["male"] = 1] = "male";
860
917
  UserGender[UserGender["female"] = 2] = "female";
@@ -923,6 +980,7 @@
923
980
  basketball_profile: 'basketballProfile',
924
981
  volleyball_profile: 'volleyballProfile',
925
982
  hockey_profile: 'hockeyProfile',
983
+ football_profile: 'footballProfile',
926
984
  wizards: 'wizards',
927
985
  city: 'city',
928
986
  gender: 'gender',
@@ -935,6 +993,7 @@
935
993
  basketballProfile: BasketballProfile,
936
994
  volleyballProfile: VolleyballProfile,
937
995
  hockeyProfile: HockeyProfile,
996
+ footballProfile: FootballProfile,
938
997
  city: City,
939
998
  gender: enumField(exports.UserGender)
940
999
  }
@@ -959,6 +1018,9 @@
959
1018
  if (this.sport.isHockey()) {
960
1019
  classList.push('empty-logo-hockey');
961
1020
  }
1021
+ if (this.sport.isFootball()) {
1022
+ classList.push('empty-logo-football');
1023
+ }
962
1024
  return classList.join(' ');
963
1025
  };
964
1026
  Team.toFront = function (data) {
@@ -1181,6 +1243,8 @@
1181
1243
  OvertimeTypes[OvertimeTypes["to_first_goal"] = 5] = "to_first_goal";
1182
1244
  OvertimeTypes[OvertimeTypes["to_first_goal_and_bullitts"] = 6] = "to_first_goal_and_bullitts";
1183
1245
  OvertimeTypes[OvertimeTypes["bullitts"] = 7] = "bullitts";
1246
+ OvertimeTypes[OvertimeTypes["penalties"] = 8] = "penalties";
1247
+ OvertimeTypes[OvertimeTypes["time_and_penalties"] = 9] = "time_and_penalties";
1184
1248
  })(exports.OvertimeTypes || (exports.OvertimeTypes = {}));
1185
1249
  var TournamentSettings = /** @class */ (function (_super) {
1186
1250
  __extends(TournamentSettings, _super);
@@ -1284,6 +1348,9 @@
1284
1348
  if (this.sport.isHockey()) {
1285
1349
  classList.push('empty-logo-hockey');
1286
1350
  }
1351
+ if (this.sport.isFootball()) {
1352
+ classList.push('empty-logo-football');
1353
+ }
1287
1354
  return classList.join(' ');
1288
1355
  };
1289
1356
  Tournament.toFront = function (data) { };
@@ -1536,6 +1603,41 @@
1536
1603
  return HockeyGameConfig;
1537
1604
  }(BaseModel));
1538
1605
 
1606
+ var FootballGameConfig = /** @class */ (function (_super) {
1607
+ __extends(FootballGameConfig, _super);
1608
+ function FootballGameConfig() {
1609
+ return _super !== null && _super.apply(this, arguments) || this;
1610
+ }
1611
+ FootballGameConfig.toFront = function (data) { };
1612
+ FootballGameConfig.toBack = function (data) { };
1613
+ __decorate([
1614
+ ToFrontHook
1615
+ ], FootballGameConfig, "toFront", null);
1616
+ __decorate([
1617
+ ToBackHook
1618
+ ], FootballGameConfig, "toBack", null);
1619
+ FootballGameConfig = __decorate([
1620
+ ModelInstance({
1621
+ mappingFields: {
1622
+ periods_count: 'periodsCount',
1623
+ period_time: 'periodTime',
1624
+ overtime_type: 'overtimeType',
1625
+ overtime_time: 'overtimeTime',
1626
+ max_game_players: 'maxGamePlayers',
1627
+ timeout_count: 'timeoutCount',
1628
+ overtime_timeout_count: 'overtimeTimeoutCount',
1629
+ timeout_time: 'timeoutTime',
1630
+ game_time_type: 'gameTimeType',
1631
+ },
1632
+ relation: {
1633
+ overtimeType: enumField(exports.OvertimeTypes),
1634
+ gameTimeType: enumField(exports.GameTimeTypes),
1635
+ }
1636
+ })
1637
+ ], FootballGameConfig);
1638
+ return FootballGameConfig;
1639
+ }(BaseModel));
1640
+
1539
1641
 
1540
1642
  (function (GameStatuses) {
1541
1643
  GameStatuses[GameStatuses["open"] = 1] = "open";
@@ -1641,6 +1743,7 @@
1641
1743
  basketball_game_config: 'basketballGameConfig',
1642
1744
  volleyball_game_config: 'volleyballGameConfig',
1643
1745
  hockey_game_config: 'hockeyGameConfig',
1746
+ football_game_config: 'footballGameConfig',
1644
1747
  score_by_period: 'scoreByPeriod',
1645
1748
  playoff_stage: 'playoffStage',
1646
1749
  tournament_stage_id: 'tournamentStageId',
@@ -1660,6 +1763,7 @@
1660
1763
  basketballGameConfig: BasketballGameConfig,
1661
1764
  volleyballGameConfig: VolleyballGameConfig,
1662
1765
  hockeyGameConfig: HockeyGameConfig,
1766
+ footballGameConfig: FootballGameConfig,
1663
1767
  tournamentCourt: LeagueCourt,
1664
1768
  media: listField(MediaItem),
1665
1769
  tournament: Tournament,
@@ -2906,6 +3010,16 @@
2906
3010
  enumerable: true,
2907
3011
  configurable: true
2908
3012
  });
3013
+ Object.defineProperty(HockeyStatistic.prototype, "gamesWonPercent", {
3014
+ get: function () {
3015
+ if (!this.gamesCount) {
3016
+ return 0;
3017
+ }
3018
+ return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
3019
+ },
3020
+ enumerable: true,
3021
+ configurable: true
3022
+ });
2909
3023
  HockeyStatistic.toFront = function (data) { };
2910
3024
  HockeyStatistic.toBack = function (data) { };
2911
3025
  __decorate([
@@ -2926,6 +3040,7 @@
2926
3040
  win_lose: 'winLose',
2927
3041
  games_count: 'gamesCount',
2928
3042
  won_games_count: 'wonGamesCount',
3043
+ lose_games_count: 'loseGamesCount',
2929
3044
  points: 'points',
2930
3045
  pp_shots: 'ppShots',
2931
3046
  pp_shot_misses: 'ppShotMisses',
@@ -3084,6 +3199,498 @@
3084
3199
  }());
3085
3200
 
3086
3201
 
3202
+ (function (FootballGameLogTypes) {
3203
+ FootballGameLogTypes[FootballGameLogTypes["enter_game"] = 1] = "enter_game";
3204
+ FootballGameLogTypes[FootballGameLogTypes["exit_game"] = 2] = "exit_game";
3205
+ FootballGameLogTypes[FootballGameLogTypes["shot_miss"] = 3] = "shot_miss";
3206
+ FootballGameLogTypes[FootballGameLogTypes["shot_on_goal"] = 4] = "shot_on_goal";
3207
+ FootballGameLogTypes[FootballGameLogTypes["shot_blocked"] = 5] = "shot_blocked";
3208
+ FootballGameLogTypes[FootballGameLogTypes["goal"] = 6] = "goal";
3209
+ FootballGameLogTypes[FootballGameLogTypes["penalty_attempt"] = 7] = "penalty_attempt";
3210
+ FootballGameLogTypes[FootballGameLogTypes["penalty_goal"] = 8] = "penalty_goal";
3211
+ FootballGameLogTypes[FootballGameLogTypes["penalty_save"] = 9] = "penalty_save";
3212
+ FootballGameLogTypes[FootballGameLogTypes["small_penalty_attempt"] = 10] = "small_penalty_attempt";
3213
+ FootballGameLogTypes[FootballGameLogTypes["small_penalty_goal"] = 11] = "small_penalty_goal";
3214
+ FootballGameLogTypes[FootballGameLogTypes["small_penalty_save"] = 12] = "small_penalty_save";
3215
+ FootballGameLogTypes[FootballGameLogTypes["assist"] = 13] = "assist";
3216
+ FootballGameLogTypes[FootballGameLogTypes["block_shot"] = 14] = "block_shot";
3217
+ FootballGameLogTypes[FootballGameLogTypes["corner"] = 15] = "corner";
3218
+ FootballGameLogTypes[FootballGameLogTypes["free_kick"] = 16] = "free_kick";
3219
+ FootballGameLogTypes[FootballGameLogTypes["foul"] = 17] = "foul";
3220
+ FootballGameLogTypes[FootballGameLogTypes["save"] = 18] = "save";
3221
+ FootballGameLogTypes[FootballGameLogTypes["yellow_card"] = 19] = "yellow_card";
3222
+ FootballGameLogTypes[FootballGameLogTypes["red_card"] = 20] = "red_card";
3223
+ FootballGameLogTypes[FootballGameLogTypes["perfect_pass"] = 21] = "perfect_pass";
3224
+ FootballGameLogTypes[FootballGameLogTypes["loss"] = 22] = "loss";
3225
+ FootballGameLogTypes[FootballGameLogTypes["steal"] = 23] = "steal";
3226
+ FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
3227
+ FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
3228
+ })(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
3229
+ var FootballGameLog = /** @class */ (function (_super) {
3230
+ __extends(FootballGameLog, _super);
3231
+ function FootballGameLog() {
3232
+ var _this = _super !== null && _super.apply(this, arguments) || this;
3233
+ _this.active = true;
3234
+ return _this;
3235
+ }
3236
+ FootballGameLog.prototype.compare = function (model) {
3237
+ if (this.time === model.time && this.period === model.period) {
3238
+ return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
3239
+ }
3240
+ if (this.period === model.period) {
3241
+ return this.time < model.time ? 1 : -1;
3242
+ }
3243
+ return this.period < model.period ? 1 : -1;
3244
+ };
3245
+ Object.defineProperty(FootballGameLog.prototype, "timeFormatted", {
3246
+ get: function () {
3247
+ var minutes = Math.floor(this.time / 60);
3248
+ var seconds = this.time - minutes * 60;
3249
+ return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
3250
+ },
3251
+ enumerable: true,
3252
+ configurable: true
3253
+ });
3254
+ FootballGameLog.prototype.isScoreType = function () {
3255
+ return [exports.FootballGameLogTypes.goal, exports.FootballGameLogTypes.penalty_goal, exports.FootballGameLogTypes.small_penalty_goal].indexOf(this.logType) > -1;
3256
+ };
3257
+ FootballGameLog.prototype.isAfter = function (log) {
3258
+ if (this.time === log.time && this.period === log.period) {
3259
+ return this.id > log.id;
3260
+ }
3261
+ if (this.period === log.period) {
3262
+ return this.time > log.time;
3263
+ }
3264
+ return this.period > log.period;
3265
+ };
3266
+ FootballGameLog.toFront = function (value) { };
3267
+ FootballGameLog.toBack = function (value) { };
3268
+ __decorate([
3269
+ ToFrontHook
3270
+ ], FootballGameLog, "toFront", null);
3271
+ __decorate([
3272
+ ToBackHook
3273
+ ], FootballGameLog, "toBack", null);
3274
+ FootballGameLog = __decorate([
3275
+ ModelInstance({
3276
+ mappingFields: {
3277
+ id: 'id',
3278
+ unique_id: 'uniqueId',
3279
+ game_id: 'gameId',
3280
+ game_user_id: 'gameUserId',
3281
+ team_id: 'teamId',
3282
+ log_type: 'logType',
3283
+ datetime: 'datetime',
3284
+ time: 'time',
3285
+ period: 'period',
3286
+ active: 'active',
3287
+ is_highlight: 'isHighlight',
3288
+ is_goalie: 'isGoalie',
3289
+ },
3290
+ relation: {
3291
+ datetime: DateTimeField,
3292
+ logType: enumField(exports.FootballGameLogTypes)
3293
+ }
3294
+ })
3295
+ ], FootballGameLog);
3296
+ return FootballGameLog;
3297
+ }(BaseModel));
3298
+
3299
+ var FootballGameStatistic = /** @class */ (function (_super) {
3300
+ __extends(FootballGameStatistic, _super);
3301
+ function FootballGameStatistic() {
3302
+ return _super !== null && _super.apply(this, arguments) || this;
3303
+ }
3304
+ Object.defineProperty(FootballGameStatistic.prototype, "id", {
3305
+ get: function () {
3306
+ return this.gameUserId;
3307
+ },
3308
+ enumerable: true,
3309
+ configurable: true
3310
+ });
3311
+ Object.defineProperty(FootballGameStatistic.prototype, "shots", {
3312
+ get: function () {
3313
+ return (this.shotMisses || 0) + (this.shotsOnGoal || 0) + (this.shotsBlocked || 0);
3314
+ },
3315
+ enumerable: true,
3316
+ configurable: true
3317
+ });
3318
+ Object.defineProperty(FootballGameStatistic.prototype, "totalGoals", {
3319
+ get: function () {
3320
+ return (this.goals || 0) + (this.penaltyGoals || 0) + (this.smallPenaltyGoals || 0);
3321
+ },
3322
+ enumerable: true,
3323
+ configurable: true
3324
+ });
3325
+ Object.defineProperty(FootballGameStatistic.prototype, "goalsPercent", {
3326
+ get: function () {
3327
+ if (!this.shots || !this.totalGoals) {
3328
+ return 0;
3329
+ }
3330
+ return Math.round(1000 * this.totalGoals / this.shots) / 10;
3331
+ },
3332
+ enumerable: true,
3333
+ configurable: true
3334
+ });
3335
+ Object.defineProperty(FootballGameStatistic.prototype, "shotsOnGoalPercent", {
3336
+ get: function () {
3337
+ if (!this.shotsOnGoal || !this.shots) {
3338
+ return 0;
3339
+ }
3340
+ return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
3341
+ },
3342
+ enumerable: true,
3343
+ configurable: true
3344
+ });
3345
+ Object.defineProperty(FootballGameStatistic.prototype, "penalties", {
3346
+ get: function () {
3347
+ return (this.penaltyGoals || 0) + (this.penaltyAttempts || 0);
3348
+ },
3349
+ enumerable: true,
3350
+ configurable: true
3351
+ });
3352
+ Object.defineProperty(FootballGameStatistic.prototype, "penaltyGoalsPercent", {
3353
+ get: function () {
3354
+ if (!this.penaltyAttempts || !this.penaltyGoals) {
3355
+ return 0;
3356
+ }
3357
+ return Math.round(1000 * this.penaltyGoals / this.penaltyAttempts) / 10;
3358
+ },
3359
+ enumerable: true,
3360
+ configurable: true
3361
+ });
3362
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenalties", {
3363
+ get: function () {
3364
+ return (this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0);
3365
+ },
3366
+ enumerable: true,
3367
+ configurable: true
3368
+ });
3369
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyGoalsPercent", {
3370
+ get: function () {
3371
+ if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
3372
+ return 0;
3373
+ }
3374
+ return Math.round(1000 * this.smallPenaltyGoals / this.smallPenaltyAttempts) / 10;
3375
+ },
3376
+ enumerable: true,
3377
+ configurable: true
3378
+ });
3379
+ Object.defineProperty(FootballGameStatistic.prototype, "shotsAgainst", {
3380
+ get: function () {
3381
+ return (this.saves || 0) + (this.goalsAgainst || 0);
3382
+ },
3383
+ enumerable: true,
3384
+ configurable: true
3385
+ });
3386
+ Object.defineProperty(FootballGameStatistic.prototype, "penaltyShotsAgainst", {
3387
+ get: function () {
3388
+ return (this.penaltySaves || 0) + (this.penaltyGoalsAgainst || 0);
3389
+ },
3390
+ enumerable: true,
3391
+ configurable: true
3392
+ });
3393
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyShotsAgainst", {
3394
+ get: function () {
3395
+ return (this.smallPenaltySaves || 0) + (this.smallPenaltyGoalsAgainst || 0);
3396
+ },
3397
+ enumerable: true,
3398
+ configurable: true
3399
+ });
3400
+ Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
3401
+ get: function () {
3402
+ return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0);
3403
+ },
3404
+ enumerable: true,
3405
+ configurable: true
3406
+ });
3407
+ Object.defineProperty(FootballGameStatistic.prototype, "totalSaves", {
3408
+ get: function () {
3409
+ return (this.saves || 0) + (this.penaltySaves || 0) + (this.smallPenaltySaves || 0);
3410
+ },
3411
+ enumerable: true,
3412
+ configurable: true
3413
+ });
3414
+ Object.defineProperty(FootballGameStatistic.prototype, "savesPercent", {
3415
+ get: function () {
3416
+ if (!this.shotsAgainst || !this.saves) {
3417
+ return 0;
3418
+ }
3419
+ return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
3420
+ },
3421
+ enumerable: true,
3422
+ configurable: true
3423
+ });
3424
+ Object.defineProperty(FootballGameStatistic.prototype, "penaltySavesPercent", {
3425
+ get: function () {
3426
+ if (!this.penaltyShotsAgainst || !this.penaltySaves) {
3427
+ return 0;
3428
+ }
3429
+ return Math.round(1000 * this.penaltySaves / this.penaltyShotsAgainst) / 10;
3430
+ },
3431
+ enumerable: true,
3432
+ configurable: true
3433
+ });
3434
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltySavesPercent", {
3435
+ get: function () {
3436
+ if (!this.smallPenaltyShotsAgainst || !this.smallPenaltySaves) {
3437
+ return 0;
3438
+ }
3439
+ return Math.round(1000 * this.smallPenaltySaves / this.smallPenaltyShotsAgainst) / 10;
3440
+ },
3441
+ enumerable: true,
3442
+ configurable: true
3443
+ });
3444
+ Object.defineProperty(FootballGameStatistic.prototype, "gameMinutes", {
3445
+ get: function () {
3446
+ return Math.floor(this.gameTime / 60);
3447
+ },
3448
+ enumerable: true,
3449
+ configurable: true
3450
+ });
3451
+ FootballGameStatistic.toFront = function (data) { };
3452
+ FootballGameStatistic.toBack = function (data) { };
3453
+ __decorate([
3454
+ ToFrontHook
3455
+ ], FootballGameStatistic, "toFront", null);
3456
+ __decorate([
3457
+ ToBackHook
3458
+ ], FootballGameStatistic, "toBack", null);
3459
+ FootballGameStatistic = __decorate([
3460
+ ModelInstance({
3461
+ mappingFields: {
3462
+ game_user_id: 'gameUserId',
3463
+ updated_at: 'updatedAt',
3464
+ points: 'points',
3465
+ shot_misses: 'shotMisses',
3466
+ shots_on_goal: 'shotsOnGoal',
3467
+ shots_blocked: 'shotsBlocked',
3468
+ goals: 'goals',
3469
+ assists: 'assists',
3470
+ corners: 'corners',
3471
+ free_kicks: 'freeKicks',
3472
+ penalty_goals: 'penaltyGoals',
3473
+ penalty_attempts: 'penaltyAttempts',
3474
+ penalty_goals_against: 'penaltyGoalsAgainst',
3475
+ penalty_saves: 'penaltySaves',
3476
+ small_penalty_goals: 'smallPenaltyGoals',
3477
+ small_penalty_attempts: 'smallPenaltyAttempts',
3478
+ small_penalty_goals_against: 'smallPenaltyGoalsAgainst',
3479
+ small_penalty_saves: 'smallPenaltySaves',
3480
+ saves: 'saves',
3481
+ goals_against: 'goalsAgainst',
3482
+ safety_rate: 'safetyRate',
3483
+ game_time: 'gameTime',
3484
+ plus_minus: 'plusMinus',
3485
+ fouls: 'fouls',
3486
+ yellow_cards: 'yellowCards',
3487
+ red_cards: 'redCards',
3488
+ perfect_passes: 'perfectPasses',
3489
+ losses: 'losses',
3490
+ steals: 'steals',
3491
+ outs: 'outs',
3492
+ block_shots: 'blockShots'
3493
+ },
3494
+ relation: {
3495
+ updatedAt: DateTimeField,
3496
+ }
3497
+ })
3498
+ ], FootballGameStatistic);
3499
+ return FootballGameStatistic;
3500
+ }(BaseModel));
3501
+
3502
+ var FootballStatistic = /** @class */ (function (_super) {
3503
+ __extends(FootballStatistic, _super);
3504
+ function FootballStatistic() {
3505
+ return _super !== null && _super.apply(this, arguments) || this;
3506
+ }
3507
+ Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
3508
+ get: function () {
3509
+ var minutes = Math.floor(this.gameTime / 60);
3510
+ var seconds = Math.floor(this.gameTime - minutes * 60);
3511
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
3512
+ },
3513
+ enumerable: true,
3514
+ configurable: true
3515
+ });
3516
+ FootballStatistic.toFront = function (data) { };
3517
+ FootballStatistic.toBack = function (data) { };
3518
+ __decorate([
3519
+ ToFrontHook
3520
+ ], FootballStatistic, "toFront", null);
3521
+ __decorate([
3522
+ ToBackHook
3523
+ ], FootballStatistic, "toBack", null);
3524
+ FootballStatistic = __decorate([
3525
+ ModelInstance({
3526
+ mappingFields: {
3527
+ tournament_team_user: 'tournamentTeamUser',
3528
+ team: 'team',
3529
+ team_user: 'teamUser',
3530
+ user: 'user',
3531
+ tournament_team: 'tournamentTeam',
3532
+ month: 'month',
3533
+ win_lose: 'winLose',
3534
+ games_count: 'gamesCount',
3535
+ won_games_count: 'wonGamesCount',
3536
+ points: 'points',
3537
+ shot_misses: 'shotMisses',
3538
+ shots_on_goal: 'shotsOnGoal',
3539
+ shots_blocked: 'shotsBlocked',
3540
+ shots_on_goal_percent: 'shotsOnGoalPercent',
3541
+ shots: 'shots',
3542
+ goals: 'goals',
3543
+ goals_percent: 'goalsPercent',
3544
+ total_goals: 'totalGoals',
3545
+ assists: 'assists',
3546
+ penalty_goals: 'penaltyGoals',
3547
+ penalty_attempts: 'penaltyAttempts',
3548
+ penalty_goals_percent: 'penaltyGoalsPercent',
3549
+ penalty_saves: 'penaltySaves',
3550
+ penalty_goals_against: 'penaltyGoalsAgainst',
3551
+ penalty_shots_against: 'penaltyShotsAgainst',
3552
+ penalty_saves_percent: 'penaltySavesPercent',
3553
+ small_penalty_goals: 'smallPenaltyGoals',
3554
+ small_penalty_attempts: 'smallPenaltyAttempts',
3555
+ small_penalty_goals_percent: 'smallPenaltyGoalsPercent',
3556
+ small_penalty_saves: 'smallPenaltySaves',
3557
+ small_penalty_goals_against: 'smallPenaltyGoalsAgainst',
3558
+ small_penalty_shots_against: 'smallPenaltyShotsAgainst',
3559
+ small_penalty_saves_percent: 'smallPenaltySavesPercent',
3560
+ saves: 'saves',
3561
+ saves_percent: 'savesPercent',
3562
+ total_saves: 'totalSaves',
3563
+ goals_against: 'goalsAgainst',
3564
+ total_goals_against: 'totalGoalsAgainst',
3565
+ shots_against: 'shotsAgainst',
3566
+ safety_rate: 'safetyRate',
3567
+ fouls: 'fouls',
3568
+ yellow_cards: 'yellowCards',
3569
+ red_cards: 'redCards',
3570
+ perfect_passes: 'perfectPasses',
3571
+ losses: 'losses',
3572
+ steals: 'steals',
3573
+ outs: 'outs',
3574
+ block_shots: 'blockShots',
3575
+ corners: 'corners',
3576
+ free_kicks: 'freeKicks',
3577
+ game_time: 'gameTime',
3578
+ plus_minus: 'plusMinus',
3579
+ newbie: 'newbie'
3580
+ },
3581
+ relation: {
3582
+ tournamentTeamUser: TournamentTeamUser,
3583
+ team: Team,
3584
+ teamUser: TeamUser,
3585
+ user: User,
3586
+ tournamentTeam: TournamentTeam,
3587
+ month: DateField
3588
+ }
3589
+ })
3590
+ ], FootballStatistic);
3591
+ return FootballStatistic;
3592
+ }(BaseStatistic));
3593
+
3594
+ var FootballGameTeamStatistic = /** @class */ (function (_super) {
3595
+ __extends(FootballGameTeamStatistic, _super);
3596
+ function FootballGameTeamStatistic() {
3597
+ return _super !== null && _super.apply(this, arguments) || this;
3598
+ }
3599
+ FootballGameTeamStatistic.toFront = function (data) { };
3600
+ FootballGameTeamStatistic.toBack = function (data) { };
3601
+ __decorate([
3602
+ ToFrontHook
3603
+ ], FootballGameTeamStatistic, "toFront", null);
3604
+ __decorate([
3605
+ ToBackHook
3606
+ ], FootballGameTeamStatistic, "toBack", null);
3607
+ FootballGameTeamStatistic = __decorate([
3608
+ ModelInstance({
3609
+ mappingFields: {
3610
+ team: 'team',
3611
+ competitor_team: 'competitorTeam'
3612
+ },
3613
+ relation: {
3614
+ team: FootballStatistic,
3615
+ competitorTeam: FootballStatistic
3616
+ }
3617
+ })
3618
+ ], FootballGameTeamStatistic);
3619
+ return FootballGameTeamStatistic;
3620
+ }(BaseModel));
3621
+
3622
+ var FootballGameApi = /** @class */ (function () {
3623
+ function FootballGameApi(httpClient, configService) {
3624
+ this.httpClient = httpClient;
3625
+ this.configService = configService;
3626
+ }
3627
+ FootballGameApi.prototype.getById = function (gameId) {
3628
+ return __awaiter(this, void 0, void 0, function () {
3629
+ return __generator(this, function (_a) {
3630
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/").pipe(operators.map(function (result) { return Game.toFront(result); })).toPromise()];
3631
+ });
3632
+ });
3633
+ };
3634
+ FootballGameApi.prototype.getUsers = function (gameId) {
3635
+ return __awaiter(this, void 0, void 0, function () {
3636
+ return __generator(this, function (_a) {
3637
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/users/").pipe(operators.map(function (result) { return GameUser.toFront(result); })).toPromise()];
3638
+ });
3639
+ });
3640
+ };
3641
+ FootballGameApi.prototype.getTeamStatistic = function (gameId) {
3642
+ return __awaiter(this, void 0, void 0, function () {
3643
+ return __generator(this, function (_a) {
3644
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/team_statistic/").pipe(operators.map(function (result) { return FootballGameTeamStatistic.toFront(result); })).toPromise()];
3645
+ });
3646
+ });
3647
+ };
3648
+ FootballGameApi.prototype.getUserStatistic = function (gameId) {
3649
+ return __awaiter(this, void 0, void 0, function () {
3650
+ return __generator(this, function (_a) {
3651
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/user_statistic/").pipe(operators.map(function (result) { return FootballGameStatistic.toFront(result); })).toPromise()];
3652
+ });
3653
+ });
3654
+ };
3655
+ FootballGameApi.prototype.getLogs = function (gameId) {
3656
+ return __awaiter(this, void 0, void 0, function () {
3657
+ return __generator(this, function (_a) {
3658
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/logs/").pipe(operators.map(function (result) { return FootballGameLog.toFront(result); })).toPromise()];
3659
+ });
3660
+ });
3661
+ };
3662
+ FootballGameApi.prototype.downloadProtocol = function (gameId, format) {
3663
+ return __awaiter(this, void 0, void 0, function () {
3664
+ return __generator(this, function (_a) {
3665
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/game_protocol/", {
3666
+ params: new http.HttpParams().set('file_type', format),
3667
+ responseType: 'blob'
3668
+ }).toPromise()];
3669
+ });
3670
+ });
3671
+ };
3672
+ FootballGameApi.prototype.downloadApplication = function (gameId, format, type) {
3673
+ return __awaiter(this, void 0, void 0, function () {
3674
+ return __generator(this, function (_a) {
3675
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/game_application_file/", {
3676
+ params: new http.HttpParams().set('file_type', format).set('application_type', type),
3677
+ responseType: 'blob'
3678
+ }).toPromise()];
3679
+ });
3680
+ });
3681
+ };
3682
+ FootballGameApi.ctorParameters = function () { return [
3683
+ { type: http.HttpClient },
3684
+ { type: ConfigService }
3685
+ ]; };
3686
+ FootballGameApi.ɵprov = core.ɵɵdefineInjectable({ factory: function FootballGameApi_Factory() { return new FootballGameApi(core.ɵɵinject(http.HttpClient), core.ɵɵinject(ConfigService)); }, token: FootballGameApi, providedIn: "root" });
3687
+ FootballGameApi = __decorate([
3688
+ core.Injectable({ providedIn: 'root' })
3689
+ ], FootballGameApi);
3690
+ return FootballGameApi;
3691
+ }());
3692
+
3693
+
3087
3694
  (function (LeagueNewsType) {
3088
3695
  LeagueNewsType[LeagueNewsType["text"] = 1] = "text";
3089
3696
  LeagueNewsType[LeagueNewsType["video"] = 2] = "video";
@@ -5645,6 +6252,36 @@
5645
6252
  });
5646
6253
  });
5647
6254
  };
6255
+ TournamentApi.prototype.getFootballStatistic = function (filters) {
6256
+ return __awaiter(this, void 0, void 0, function () {
6257
+ var params, _a, _b, key;
6258
+ var e_4, _c;
6259
+ return __generator(this, function (_d) {
6260
+ params = new http.HttpParams();
6261
+ if (filters) {
6262
+ try {
6263
+ for (_a = __values(Object.keys(filters)), _b = _a.next(); !_b.done; _b = _a.next()) {
6264
+ key = _b.value;
6265
+ if (filters[key]) {
6266
+ params = params.set(key, filters[key]);
6267
+ }
6268
+ }
6269
+ }
6270
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
6271
+ finally {
6272
+ try {
6273
+ if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
6274
+ }
6275
+ finally { if (e_4) throw e_4.error; }
6276
+ }
6277
+ if (filters.per_game !== undefined) {
6278
+ params = params.set('per_game', filters.per_game ? '1' : '0');
6279
+ }
6280
+ }
6281
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/football_statistic/", { params: params }).pipe(operators.map(function (result) { return FootballStatistic.toFront(result); })).toPromise()];
6282
+ });
6283
+ });
6284
+ };
5648
6285
  TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
5649
6286
  return __awaiter(this, void 0, void 0, function () {
5650
6287
  return __generator(this, function (_a) {
@@ -6715,31 +7352,62 @@
6715
7352
  _a$2);
6716
7353
 
6717
7354
  var _a$3;
6718
- var OvertimeTypeLocalization = (_a$3 = {},
6719
- _a$3[exports.OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
6720
- _a$3[exports.OvertimeTypes.to_score_total] = 'До N очков',
6721
- _a$3[exports.OvertimeTypes.time] = 'По времени',
6722
- _a$3[exports.OvertimeTypes.without_overtime] = 'Без овертайма',
6723
- _a$3[exports.OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
6724
- _a$3[exports.OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
6725
- _a$3[exports.OvertimeTypes.bullitts] = 'Буллиты',
7355
+ var FootballGameLogTypeLocalization = (_a$3 = {},
7356
+ _a$3[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
7357
+ _a$3[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
7358
+ _a$3[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
7359
+ _a$3[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
7360
+ _a$3[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
7361
+ _a$3[exports.FootballGameLogTypes.goal] = 'Гол',
7362
+ _a$3[exports.FootballGameLogTypes.assist] = 'Передача',
7363
+ _a$3[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
7364
+ _a$3[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
7365
+ _a$3[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
7366
+ _a$3[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
7367
+ _a$3[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
7368
+ _a$3[exports.FootballGameLogTypes.corner] = 'Угловой',
7369
+ _a$3[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
7370
+ _a$3[exports.FootballGameLogTypes.save] = 'Отражен удар',
7371
+ _a$3[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
7372
+ _a$3[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
7373
+ _a$3[exports.FootballGameLogTypes.foul] = 'Фол',
7374
+ _a$3[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
7375
+ _a$3[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
7376
+ _a$3[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
7377
+ _a$3[exports.FootballGameLogTypes.loss] = 'Потеря',
7378
+ _a$3[exports.FootballGameLogTypes.steal] = 'Перехват',
7379
+ _a$3[exports.FootballGameLogTypes.out] = 'Аут',
7380
+ _a$3[exports.FootballGameLogTypes.timeout] = 'Таймаут',
6726
7381
  _a$3);
6727
7382
 
6728
7383
  var _a$4;
6729
- var TeamUserRoleLocalization = (_a$4 = {},
6730
- _a$4[exports.TeamUserRole.moderator] = 'Модератор',
6731
- _a$4[exports.TeamUserRole.member] = 'Пользователь',
6732
- _a$4[exports.TeamUserRole.admin] = 'Владелец',
7384
+ var OvertimeTypeLocalization = (_a$4 = {},
7385
+ _a$4[exports.OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
7386
+ _a$4[exports.OvertimeTypes.to_score_total] = 'До N очков',
7387
+ _a$4[exports.OvertimeTypes.time] = 'По времени',
7388
+ _a$4[exports.OvertimeTypes.without_overtime] = 'Без овертайма',
7389
+ _a$4[exports.OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
7390
+ _a$4[exports.OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
7391
+ _a$4[exports.OvertimeTypes.bullitts] = 'Буллиты',
7392
+ _a$4[exports.OvertimeTypes.penalties] = 'Пенальти',
7393
+ _a$4[exports.OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
6733
7394
  _a$4);
6734
7395
 
6735
- var _a$5, _b, _c, _d, _e, _f, _g, _h;
6736
- var GameBasketballPositionLocalization = (_a$5 = {},
6737
- _a$5[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
6738
- _a$5[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
6739
- _a$5[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
6740
- _a$5[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
6741
- _a$5[exports.GameBasketballPosition.center] = 'Центровой',
7396
+ var _a$5;
7397
+ var TeamUserRoleLocalization = (_a$5 = {},
7398
+ _a$5[exports.TeamUserRole.moderator] = 'Модератор',
7399
+ _a$5[exports.TeamUserRole.member] = 'Пользователь',
7400
+ _a$5[exports.TeamUserRole.admin] = 'Владелец',
6742
7401
  _a$5);
7402
+
7403
+ var _a$6, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7404
+ var GameBasketballPositionLocalization = (_a$6 = {},
7405
+ _a$6[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
7406
+ _a$6[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
7407
+ _a$6[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
7408
+ _a$6[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
7409
+ _a$6[exports.GameBasketballPosition.center] = 'Центровой',
7410
+ _a$6);
6743
7411
  var GameBasketballPositionShortLocalization = (_b = {},
6744
7412
  _b[exports.GameBasketballPosition.point_guard] = 'PG',
6745
7413
  _b[exports.GameBasketballPosition.shooting_guard] = 'SG',
@@ -6781,32 +7449,43 @@
6781
7449
  _h[exports.GameHockeyPosition.defensemen] = 'Защитник',
6782
7450
  _h[exports.GameHockeyPosition.forward] = 'Нападающий',
6783
7451
  _h);
6784
-
6785
- var _a$6;
6786
- var VolleyballGameLogTypeLocalization = (_a$6 = {},
6787
- _a$6[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
6788
- _a$6[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
6789
- _a$6[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
6790
- _a$6[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
6791
- _a$6[exports.VolleyballGameLogType.serve_hit] = 'Подача',
6792
- _a$6[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
6793
- _a$6[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
6794
- _a$6[exports.VolleyballGameLogType.attack_shot] = 'Успешная атака',
6795
- _a$6[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
6796
- _a$6[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
6797
- _a$6[exports.VolleyballGameLogType.block_rebound] = 'Успешный блок',
6798
- _a$6[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
6799
- _a$6[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
6800
- _a$6[exports.VolleyballGameLogType.receive] = 'Прием',
6801
- _a$6[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
6802
- _a$6[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
6803
- _a$6[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
6804
- _a$6[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
6805
- _a$6[exports.VolleyballGameLogType.point] = 'Очко',
6806
- _a$6[exports.VolleyballGameLogType.fault] = 'Ошибка',
6807
- _a$6[exports.VolleyballGameLogType.timeout] = 'Таймаут',
6808
- _a$6[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
6809
- _a$6);
7452
+ var GameFootballPositionLocalization = (_j = {},
7453
+ _j[exports.GameFootballPosition.goalkeeper] = 'Вратарь',
7454
+ _j[exports.GameFootballPosition.defensemen] = 'Защитник',
7455
+ _j[exports.GameFootballPosition.midfielder] = 'Полузащитник',
7456
+ _j[exports.GameFootballPosition.forward] = 'Нападающий',
7457
+ _j);
7458
+ var FootballWorkFootLocalization = (_k = {},
7459
+ _k[exports.FootballWorkFoot.left] = 'Левая',
7460
+ _k[exports.FootballWorkFoot.right] = 'Правая',
7461
+ _k[exports.FootballWorkFoot.both] = 'Обе',
7462
+ _k);
7463
+
7464
+ var _a$7;
7465
+ var VolleyballGameLogTypeLocalization = (_a$7 = {},
7466
+ _a$7[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
7467
+ _a$7[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
7468
+ _a$7[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
7469
+ _a$7[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
7470
+ _a$7[exports.VolleyballGameLogType.serve_hit] = 'Подача',
7471
+ _a$7[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
7472
+ _a$7[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
7473
+ _a$7[exports.VolleyballGameLogType.attack_shot] = 'Успешная атака',
7474
+ _a$7[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
7475
+ _a$7[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
7476
+ _a$7[exports.VolleyballGameLogType.block_rebound] = 'Успешный блок',
7477
+ _a$7[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
7478
+ _a$7[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
7479
+ _a$7[exports.VolleyballGameLogType.receive] = 'Прием',
7480
+ _a$7[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
7481
+ _a$7[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
7482
+ _a$7[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
7483
+ _a$7[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
7484
+ _a$7[exports.VolleyballGameLogType.point] = 'Очко',
7485
+ _a$7[exports.VolleyballGameLogType.fault] = 'Ошибка',
7486
+ _a$7[exports.VolleyballGameLogType.timeout] = 'Таймаут',
7487
+ _a$7[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
7488
+ _a$7);
6810
7489
 
6811
7490
  var LeaguePlaylist = /** @class */ (function (_super) {
6812
7491
  __extends(LeaguePlaylist, _super);
@@ -7270,9 +7949,19 @@
7270
7949
  exports.FeedbackApi = FeedbackApi;
7271
7950
  exports.File = File;
7272
7951
  exports.FileApi = FileApi;
7952
+ exports.FootballGameApi = FootballGameApi;
7953
+ exports.FootballGameConfig = FootballGameConfig;
7954
+ exports.FootballGameLog = FootballGameLog;
7955
+ exports.FootballGameLogTypeLocalization = FootballGameLogTypeLocalization;
7956
+ exports.FootballGameStatistic = FootballGameStatistic;
7957
+ exports.FootballGameTeamStatistic = FootballGameTeamStatistic;
7958
+ exports.FootballProfile = FootballProfile;
7959
+ exports.FootballStatistic = FootballStatistic;
7960
+ exports.FootballWorkFootLocalization = FootballWorkFootLocalization;
7273
7961
  exports.Game = Game;
7274
7962
  exports.GameBasketballPositionLocalization = GameBasketballPositionLocalization;
7275
7963
  exports.GameBasketballPositionShortLocalization = GameBasketballPositionShortLocalization;
7964
+ exports.GameFootballPositionLocalization = GameFootballPositionLocalization;
7276
7965
  exports.GameHockeyPositionLocalization = GameHockeyPositionLocalization;
7277
7966
  exports.GameInvite = GameInvite;
7278
7967
  exports.GameTimelineStageItem = GameTimelineStageItem;