@mtgame/core 0.0.52 → 0.0.54

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 +724 -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/public-api.js +7 -1
  23. package/esm2015/models/sport.js +13 -1
  24. package/esm2015/models/team.js +4 -1
  25. package/esm2015/models/tournament-team-user.js +2 -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/public-api.js +7 -1
  43. package/esm5/models/sport.js +13 -1
  44. package/esm5/models/team.js +4 -1
  45. package/esm5/models/tournament-team-user.js +2 -1
  46. package/esm5/models/tournament.js +6 -1
  47. package/esm5/models/user.js +4 -1
  48. package/fesm2015/mtgame-core.js +533 -2
  49. package/fesm2015/mtgame-core.js.map +1 -1
  50. package/fesm5/mtgame-core.js +714 -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/public-api.d.ts +6 -0
  64. package/models/sport.d.ts +7 -1
  65. package/models/tournament-team-user.d.ts +1 -0
  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,
@@ -1873,6 +1977,7 @@
1873
1977
  photo: 'photo',
1874
1978
  disqualification: 'disqualification',
1875
1979
  has_changes: 'hasChanges',
1980
+ rating: 'rating'
1876
1981
  },
1877
1982
  relation: {
1878
1983
  tournamentTeam: TournamentTeam,
@@ -3083,6 +3188,498 @@
3083
3188
  }());
3084
3189
 
3085
3190
 
3191
+ (function (FootballGameLogTypes) {
3192
+ FootballGameLogTypes[FootballGameLogTypes["enter_game"] = 1] = "enter_game";
3193
+ FootballGameLogTypes[FootballGameLogTypes["exit_game"] = 2] = "exit_game";
3194
+ FootballGameLogTypes[FootballGameLogTypes["shot_miss"] = 3] = "shot_miss";
3195
+ FootballGameLogTypes[FootballGameLogTypes["shot_on_goal"] = 4] = "shot_on_goal";
3196
+ FootballGameLogTypes[FootballGameLogTypes["shot_blocked"] = 5] = "shot_blocked";
3197
+ FootballGameLogTypes[FootballGameLogTypes["goal"] = 6] = "goal";
3198
+ FootballGameLogTypes[FootballGameLogTypes["penalty_attempt"] = 7] = "penalty_attempt";
3199
+ FootballGameLogTypes[FootballGameLogTypes["penalty_goal"] = 8] = "penalty_goal";
3200
+ FootballGameLogTypes[FootballGameLogTypes["penalty_save"] = 9] = "penalty_save";
3201
+ FootballGameLogTypes[FootballGameLogTypes["small_penalty_attempt"] = 10] = "small_penalty_attempt";
3202
+ FootballGameLogTypes[FootballGameLogTypes["small_penalty_goal"] = 11] = "small_penalty_goal";
3203
+ FootballGameLogTypes[FootballGameLogTypes["small_penalty_save"] = 12] = "small_penalty_save";
3204
+ FootballGameLogTypes[FootballGameLogTypes["assist"] = 13] = "assist";
3205
+ FootballGameLogTypes[FootballGameLogTypes["block_shot"] = 14] = "block_shot";
3206
+ FootballGameLogTypes[FootballGameLogTypes["corner"] = 15] = "corner";
3207
+ FootballGameLogTypes[FootballGameLogTypes["free_kick"] = 16] = "free_kick";
3208
+ FootballGameLogTypes[FootballGameLogTypes["foul"] = 17] = "foul";
3209
+ FootballGameLogTypes[FootballGameLogTypes["save"] = 18] = "save";
3210
+ FootballGameLogTypes[FootballGameLogTypes["yellow_card"] = 19] = "yellow_card";
3211
+ FootballGameLogTypes[FootballGameLogTypes["red_card"] = 20] = "red_card";
3212
+ FootballGameLogTypes[FootballGameLogTypes["perfect_pass"] = 21] = "perfect_pass";
3213
+ FootballGameLogTypes[FootballGameLogTypes["loss"] = 22] = "loss";
3214
+ FootballGameLogTypes[FootballGameLogTypes["steal"] = 23] = "steal";
3215
+ FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
3216
+ FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
3217
+ })(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
3218
+ var FootballGameLog = /** @class */ (function (_super) {
3219
+ __extends(FootballGameLog, _super);
3220
+ function FootballGameLog() {
3221
+ var _this = _super !== null && _super.apply(this, arguments) || this;
3222
+ _this.active = true;
3223
+ return _this;
3224
+ }
3225
+ FootballGameLog.prototype.compare = function (model) {
3226
+ if (this.time === model.time && this.period === model.period) {
3227
+ return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
3228
+ }
3229
+ if (this.period === model.period) {
3230
+ return this.time < model.time ? 1 : -1;
3231
+ }
3232
+ return this.period < model.period ? 1 : -1;
3233
+ };
3234
+ Object.defineProperty(FootballGameLog.prototype, "timeFormatted", {
3235
+ get: function () {
3236
+ var minutes = Math.floor(this.time / 60);
3237
+ var seconds = this.time - minutes * 60;
3238
+ return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
3239
+ },
3240
+ enumerable: true,
3241
+ configurable: true
3242
+ });
3243
+ FootballGameLog.prototype.isScoreType = function () {
3244
+ return [exports.FootballGameLogTypes.goal, exports.FootballGameLogTypes.penalty_goal, exports.FootballGameLogTypes.small_penalty_goal].indexOf(this.logType) > -1;
3245
+ };
3246
+ FootballGameLog.prototype.isAfter = function (log) {
3247
+ if (this.time === log.time && this.period === log.period) {
3248
+ return this.id > log.id;
3249
+ }
3250
+ if (this.period === log.period) {
3251
+ return this.time > log.time;
3252
+ }
3253
+ return this.period > log.period;
3254
+ };
3255
+ FootballGameLog.toFront = function (value) { };
3256
+ FootballGameLog.toBack = function (value) { };
3257
+ __decorate([
3258
+ ToFrontHook
3259
+ ], FootballGameLog, "toFront", null);
3260
+ __decorate([
3261
+ ToBackHook
3262
+ ], FootballGameLog, "toBack", null);
3263
+ FootballGameLog = __decorate([
3264
+ ModelInstance({
3265
+ mappingFields: {
3266
+ id: 'id',
3267
+ unique_id: 'uniqueId',
3268
+ game_id: 'gameId',
3269
+ game_user_id: 'gameUserId',
3270
+ team_id: 'teamId',
3271
+ log_type: 'logType',
3272
+ datetime: 'datetime',
3273
+ time: 'time',
3274
+ period: 'period',
3275
+ active: 'active',
3276
+ is_highlight: 'isHighlight',
3277
+ is_goalie: 'isGoalie',
3278
+ },
3279
+ relation: {
3280
+ datetime: DateTimeField,
3281
+ logType: enumField(exports.FootballGameLogTypes)
3282
+ }
3283
+ })
3284
+ ], FootballGameLog);
3285
+ return FootballGameLog;
3286
+ }(BaseModel));
3287
+
3288
+ var FootballGameStatistic = /** @class */ (function (_super) {
3289
+ __extends(FootballGameStatistic, _super);
3290
+ function FootballGameStatistic() {
3291
+ return _super !== null && _super.apply(this, arguments) || this;
3292
+ }
3293
+ Object.defineProperty(FootballGameStatistic.prototype, "id", {
3294
+ get: function () {
3295
+ return this.gameUserId;
3296
+ },
3297
+ enumerable: true,
3298
+ configurable: true
3299
+ });
3300
+ Object.defineProperty(FootballGameStatistic.prototype, "shots", {
3301
+ get: function () {
3302
+ return (this.shotMisses || 0) + (this.shotsOnGoal || 0) + (this.shotsBlocked || 0);
3303
+ },
3304
+ enumerable: true,
3305
+ configurable: true
3306
+ });
3307
+ Object.defineProperty(FootballGameStatistic.prototype, "totalGoals", {
3308
+ get: function () {
3309
+ return (this.goals || 0) + (this.penaltyGoals || 0) + (this.smallPenaltyGoals || 0);
3310
+ },
3311
+ enumerable: true,
3312
+ configurable: true
3313
+ });
3314
+ Object.defineProperty(FootballGameStatistic.prototype, "goalsPercent", {
3315
+ get: function () {
3316
+ if (!this.shots || !this.totalGoals) {
3317
+ return 0;
3318
+ }
3319
+ return Math.round(1000 * this.totalGoals / this.shots) / 10;
3320
+ },
3321
+ enumerable: true,
3322
+ configurable: true
3323
+ });
3324
+ Object.defineProperty(FootballGameStatistic.prototype, "shotsOnGoalPercent", {
3325
+ get: function () {
3326
+ if (!this.shotsOnGoal || !this.shots) {
3327
+ return 0;
3328
+ }
3329
+ return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
3330
+ },
3331
+ enumerable: true,
3332
+ configurable: true
3333
+ });
3334
+ Object.defineProperty(FootballGameStatistic.prototype, "penalties", {
3335
+ get: function () {
3336
+ return (this.penaltyGoals || 0) + (this.penaltyAttempts || 0);
3337
+ },
3338
+ enumerable: true,
3339
+ configurable: true
3340
+ });
3341
+ Object.defineProperty(FootballGameStatistic.prototype, "penaltyGoalsPercent", {
3342
+ get: function () {
3343
+ if (!this.penaltyAttempts || !this.penaltyGoals) {
3344
+ return 0;
3345
+ }
3346
+ return Math.round(1000 * this.penaltyGoals / this.penaltyAttempts) / 10;
3347
+ },
3348
+ enumerable: true,
3349
+ configurable: true
3350
+ });
3351
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenalties", {
3352
+ get: function () {
3353
+ return (this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0);
3354
+ },
3355
+ enumerable: true,
3356
+ configurable: true
3357
+ });
3358
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyGoalsPercent", {
3359
+ get: function () {
3360
+ if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
3361
+ return 0;
3362
+ }
3363
+ return Math.round(1000 * this.smallPenaltyGoals / this.smallPenaltyAttempts) / 10;
3364
+ },
3365
+ enumerable: true,
3366
+ configurable: true
3367
+ });
3368
+ Object.defineProperty(FootballGameStatistic.prototype, "shotsAgainst", {
3369
+ get: function () {
3370
+ return (this.saves || 0) + (this.goalsAgainst || 0);
3371
+ },
3372
+ enumerable: true,
3373
+ configurable: true
3374
+ });
3375
+ Object.defineProperty(FootballGameStatistic.prototype, "penaltyShotsAgainst", {
3376
+ get: function () {
3377
+ return (this.penaltySaves || 0) + (this.penaltyGoalsAgainst || 0);
3378
+ },
3379
+ enumerable: true,
3380
+ configurable: true
3381
+ });
3382
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyShotsAgainst", {
3383
+ get: function () {
3384
+ return (this.smallPenaltySaves || 0) + (this.smallPenaltyGoalsAgainst || 0);
3385
+ },
3386
+ enumerable: true,
3387
+ configurable: true
3388
+ });
3389
+ Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
3390
+ get: function () {
3391
+ return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0);
3392
+ },
3393
+ enumerable: true,
3394
+ configurable: true
3395
+ });
3396
+ Object.defineProperty(FootballGameStatistic.prototype, "totalSaves", {
3397
+ get: function () {
3398
+ return (this.saves || 0) + (this.penaltySaves || 0) + (this.smallPenaltySaves || 0);
3399
+ },
3400
+ enumerable: true,
3401
+ configurable: true
3402
+ });
3403
+ Object.defineProperty(FootballGameStatistic.prototype, "savesPercent", {
3404
+ get: function () {
3405
+ if (!this.shotsAgainst || !this.saves) {
3406
+ return 0;
3407
+ }
3408
+ return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
3409
+ },
3410
+ enumerable: true,
3411
+ configurable: true
3412
+ });
3413
+ Object.defineProperty(FootballGameStatistic.prototype, "penaltySavesPercent", {
3414
+ get: function () {
3415
+ if (!this.penaltyShotsAgainst || !this.penaltySaves) {
3416
+ return 0;
3417
+ }
3418
+ return Math.round(1000 * this.penaltySaves / this.penaltyShotsAgainst) / 10;
3419
+ },
3420
+ enumerable: true,
3421
+ configurable: true
3422
+ });
3423
+ Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltySavesPercent", {
3424
+ get: function () {
3425
+ if (!this.smallPenaltyShotsAgainst || !this.smallPenaltySaves) {
3426
+ return 0;
3427
+ }
3428
+ return Math.round(1000 * this.smallPenaltySaves / this.smallPenaltyShotsAgainst) / 10;
3429
+ },
3430
+ enumerable: true,
3431
+ configurable: true
3432
+ });
3433
+ Object.defineProperty(FootballGameStatistic.prototype, "gameMinutes", {
3434
+ get: function () {
3435
+ return Math.floor(this.gameTime / 60);
3436
+ },
3437
+ enumerable: true,
3438
+ configurable: true
3439
+ });
3440
+ FootballGameStatistic.toFront = function (data) { };
3441
+ FootballGameStatistic.toBack = function (data) { };
3442
+ __decorate([
3443
+ ToFrontHook
3444
+ ], FootballGameStatistic, "toFront", null);
3445
+ __decorate([
3446
+ ToBackHook
3447
+ ], FootballGameStatistic, "toBack", null);
3448
+ FootballGameStatistic = __decorate([
3449
+ ModelInstance({
3450
+ mappingFields: {
3451
+ game_user_id: 'gameUserId',
3452
+ updated_at: 'updatedAt',
3453
+ points: 'points',
3454
+ shot_misses: 'shotMisses',
3455
+ shots_on_goal: 'shotsOnGoal',
3456
+ shots_blocked: 'shotsBlocked',
3457
+ goals: 'goals',
3458
+ assists: 'assists',
3459
+ corners: 'corners',
3460
+ free_kicks: 'freeKicks',
3461
+ penalty_goals: 'penaltyGoals',
3462
+ penalty_attempts: 'penaltyAttempts',
3463
+ penalty_goals_against: 'penaltyGoalsAgainst',
3464
+ penalty_saves: 'penaltySaves',
3465
+ small_penalty_goals: 'smallPenaltyGoals',
3466
+ small_penalty_attempts: 'smallPenaltyAttempts',
3467
+ small_penalty_goals_against: 'smallPenaltyGoalsAgainst',
3468
+ small_penalty_saves: 'smallPenaltySaves',
3469
+ saves: 'saves',
3470
+ goals_against: 'goalsAgainst',
3471
+ safety_rate: 'safetyRate',
3472
+ game_time: 'gameTime',
3473
+ plus_minus: 'plusMinus',
3474
+ fouls: 'fouls',
3475
+ yellow_cards: 'yellowCards',
3476
+ red_cards: 'redCards',
3477
+ perfect_passes: 'perfectPasses',
3478
+ losses: 'losses',
3479
+ steals: 'steals',
3480
+ outs: 'outs',
3481
+ block_shots: 'blockShots'
3482
+ },
3483
+ relation: {
3484
+ updatedAt: DateTimeField,
3485
+ }
3486
+ })
3487
+ ], FootballGameStatistic);
3488
+ return FootballGameStatistic;
3489
+ }(BaseModel));
3490
+
3491
+ var FootballStatistic = /** @class */ (function (_super) {
3492
+ __extends(FootballStatistic, _super);
3493
+ function FootballStatistic() {
3494
+ return _super !== null && _super.apply(this, arguments) || this;
3495
+ }
3496
+ Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
3497
+ get: function () {
3498
+ var minutes = Math.floor(this.gameTime / 60);
3499
+ var seconds = Math.floor(this.gameTime - minutes * 60);
3500
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
3501
+ },
3502
+ enumerable: true,
3503
+ configurable: true
3504
+ });
3505
+ FootballStatistic.toFront = function (data) { };
3506
+ FootballStatistic.toBack = function (data) { };
3507
+ __decorate([
3508
+ ToFrontHook
3509
+ ], FootballStatistic, "toFront", null);
3510
+ __decorate([
3511
+ ToBackHook
3512
+ ], FootballStatistic, "toBack", null);
3513
+ FootballStatistic = __decorate([
3514
+ ModelInstance({
3515
+ mappingFields: {
3516
+ tournament_team_user: 'tournamentTeamUser',
3517
+ team: 'team',
3518
+ team_user: 'teamUser',
3519
+ user: 'user',
3520
+ tournament_team: 'tournamentTeam',
3521
+ month: 'month',
3522
+ win_lose: 'winLose',
3523
+ games_count: 'gamesCount',
3524
+ won_games_count: 'wonGamesCount',
3525
+ points: 'points',
3526
+ shot_misses: 'shotMisses',
3527
+ shots_on_goal: 'shotsOnGoal',
3528
+ shots_blocked: 'shotsBlocked',
3529
+ shots_on_goal_percent: 'shotsOnGoalPercent',
3530
+ shots: 'shots',
3531
+ goals: 'goals',
3532
+ goals_percent: 'goalsPercent',
3533
+ total_goals: 'totalGoals',
3534
+ assists: 'assists',
3535
+ penalty_goals: 'penaltyGoals',
3536
+ penalty_attempts: 'penaltyAttempts',
3537
+ penalty_goals_percent: 'penaltyGoalsPercent',
3538
+ penalty_saves: 'penaltySaves',
3539
+ penalty_goals_against: 'penaltyGoalsAgainst',
3540
+ penalty_shots_against: 'penaltyShotsAgainst',
3541
+ penalty_saves_percent: 'penaltySavesPercent',
3542
+ small_penalty_goals: 'smallPenaltyGoals',
3543
+ small_penalty_attempts: 'smallPenaltyAttempts',
3544
+ small_penalty_goals_percent: 'smallPenaltyGoalsPercent',
3545
+ small_penalty_saves: 'smallPenaltySaves',
3546
+ small_penalty_goals_against: 'smallPenaltyGoalsAgainst',
3547
+ small_penalty_shots_against: 'smallPenaltyShotsAgainst',
3548
+ small_penalty_saves_percent: 'smallPenaltySavesPercent',
3549
+ saves: 'saves',
3550
+ saves_percent: 'savesPercent',
3551
+ total_saves: 'totalSaves',
3552
+ goals_against: 'goalsAgainst',
3553
+ total_goals_against: 'totalGoalsAgainst',
3554
+ shots_against: 'shotsAgainst',
3555
+ safety_rate: 'safetyRate',
3556
+ fouls: 'fouls',
3557
+ yellow_cards: 'yellowCards',
3558
+ red_cards: 'redCards',
3559
+ perfect_passes: 'perfectPasses',
3560
+ losses: 'losses',
3561
+ steals: 'steals',
3562
+ outs: 'outs',
3563
+ block_shots: 'blockShots',
3564
+ corners: 'corners',
3565
+ free_kicks: 'freeKicks',
3566
+ game_time: 'gameTime',
3567
+ plus_minus: 'plusMinus',
3568
+ newbie: 'newbie'
3569
+ },
3570
+ relation: {
3571
+ tournamentTeamUser: TournamentTeamUser,
3572
+ team: Team,
3573
+ teamUser: TeamUser,
3574
+ user: User,
3575
+ tournamentTeam: TournamentTeam,
3576
+ month: DateField
3577
+ }
3578
+ })
3579
+ ], FootballStatistic);
3580
+ return FootballStatistic;
3581
+ }(BaseStatistic));
3582
+
3583
+ var FootballGameTeamStatistic = /** @class */ (function (_super) {
3584
+ __extends(FootballGameTeamStatistic, _super);
3585
+ function FootballGameTeamStatistic() {
3586
+ return _super !== null && _super.apply(this, arguments) || this;
3587
+ }
3588
+ FootballGameTeamStatistic.toFront = function (data) { };
3589
+ FootballGameTeamStatistic.toBack = function (data) { };
3590
+ __decorate([
3591
+ ToFrontHook
3592
+ ], FootballGameTeamStatistic, "toFront", null);
3593
+ __decorate([
3594
+ ToBackHook
3595
+ ], FootballGameTeamStatistic, "toBack", null);
3596
+ FootballGameTeamStatistic = __decorate([
3597
+ ModelInstance({
3598
+ mappingFields: {
3599
+ team: 'team',
3600
+ competitor_team: 'competitorTeam'
3601
+ },
3602
+ relation: {
3603
+ team: FootballStatistic,
3604
+ competitorTeam: FootballStatistic
3605
+ }
3606
+ })
3607
+ ], FootballGameTeamStatistic);
3608
+ return FootballGameTeamStatistic;
3609
+ }(BaseModel));
3610
+
3611
+ var FootballGameApi = /** @class */ (function () {
3612
+ function FootballGameApi(httpClient, configService) {
3613
+ this.httpClient = httpClient;
3614
+ this.configService = configService;
3615
+ }
3616
+ FootballGameApi.prototype.getById = function (gameId) {
3617
+ return __awaiter(this, void 0, void 0, function () {
3618
+ return __generator(this, function (_a) {
3619
+ 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()];
3620
+ });
3621
+ });
3622
+ };
3623
+ FootballGameApi.prototype.getUsers = function (gameId) {
3624
+ return __awaiter(this, void 0, void 0, function () {
3625
+ return __generator(this, function (_a) {
3626
+ 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()];
3627
+ });
3628
+ });
3629
+ };
3630
+ FootballGameApi.prototype.getTeamStatistic = function (gameId) {
3631
+ return __awaiter(this, void 0, void 0, function () {
3632
+ return __generator(this, function (_a) {
3633
+ 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()];
3634
+ });
3635
+ });
3636
+ };
3637
+ FootballGameApi.prototype.getUserStatistic = function (gameId) {
3638
+ return __awaiter(this, void 0, void 0, function () {
3639
+ return __generator(this, function (_a) {
3640
+ 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()];
3641
+ });
3642
+ });
3643
+ };
3644
+ FootballGameApi.prototype.getLogs = function (gameId) {
3645
+ return __awaiter(this, void 0, void 0, function () {
3646
+ return __generator(this, function (_a) {
3647
+ 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()];
3648
+ });
3649
+ });
3650
+ };
3651
+ FootballGameApi.prototype.downloadProtocol = function (gameId, format) {
3652
+ return __awaiter(this, void 0, void 0, function () {
3653
+ return __generator(this, function (_a) {
3654
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/game_protocol/", {
3655
+ params: new http.HttpParams().set('file_type', format),
3656
+ responseType: 'blob'
3657
+ }).toPromise()];
3658
+ });
3659
+ });
3660
+ };
3661
+ FootballGameApi.prototype.downloadApplication = function (gameId, format, type) {
3662
+ return __awaiter(this, void 0, void 0, function () {
3663
+ return __generator(this, function (_a) {
3664
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/game_application_file/", {
3665
+ params: new http.HttpParams().set('file_type', format).set('application_type', type),
3666
+ responseType: 'blob'
3667
+ }).toPromise()];
3668
+ });
3669
+ });
3670
+ };
3671
+ FootballGameApi.ctorParameters = function () { return [
3672
+ { type: http.HttpClient },
3673
+ { type: ConfigService }
3674
+ ]; };
3675
+ FootballGameApi.ɵprov = core.ɵɵdefineInjectable({ factory: function FootballGameApi_Factory() { return new FootballGameApi(core.ɵɵinject(http.HttpClient), core.ɵɵinject(ConfigService)); }, token: FootballGameApi, providedIn: "root" });
3676
+ FootballGameApi = __decorate([
3677
+ core.Injectable({ providedIn: 'root' })
3678
+ ], FootballGameApi);
3679
+ return FootballGameApi;
3680
+ }());
3681
+
3682
+
3086
3683
  (function (LeagueNewsType) {
3087
3684
  LeagueNewsType[LeagueNewsType["text"] = 1] = "text";
3088
3685
  LeagueNewsType[LeagueNewsType["video"] = 2] = "video";
@@ -5644,6 +6241,36 @@
5644
6241
  });
5645
6242
  });
5646
6243
  };
6244
+ TournamentApi.prototype.getFootballStatistic = function (filters) {
6245
+ return __awaiter(this, void 0, void 0, function () {
6246
+ var params, _a, _b, key;
6247
+ var e_4, _c;
6248
+ return __generator(this, function (_d) {
6249
+ params = new http.HttpParams();
6250
+ if (filters) {
6251
+ try {
6252
+ for (_a = __values(Object.keys(filters)), _b = _a.next(); !_b.done; _b = _a.next()) {
6253
+ key = _b.value;
6254
+ if (filters[key]) {
6255
+ params = params.set(key, filters[key]);
6256
+ }
6257
+ }
6258
+ }
6259
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
6260
+ finally {
6261
+ try {
6262
+ if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
6263
+ }
6264
+ finally { if (e_4) throw e_4.error; }
6265
+ }
6266
+ if (filters.per_game !== undefined) {
6267
+ params = params.set('per_game', filters.per_game ? '1' : '0');
6268
+ }
6269
+ }
6270
+ 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()];
6271
+ });
6272
+ });
6273
+ };
5647
6274
  TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
5648
6275
  return __awaiter(this, void 0, void 0, function () {
5649
6276
  return __generator(this, function (_a) {
@@ -6714,31 +7341,62 @@
6714
7341
  _a$2);
6715
7342
 
6716
7343
  var _a$3;
6717
- var OvertimeTypeLocalization = (_a$3 = {},
6718
- _a$3[exports.OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
6719
- _a$3[exports.OvertimeTypes.to_score_total] = 'До N очков',
6720
- _a$3[exports.OvertimeTypes.time] = 'По времени',
6721
- _a$3[exports.OvertimeTypes.without_overtime] = 'Без овертайма',
6722
- _a$3[exports.OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
6723
- _a$3[exports.OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
6724
- _a$3[exports.OvertimeTypes.bullitts] = 'Буллиты',
7344
+ var FootballGameLogTypeLocalization = (_a$3 = {},
7345
+ _a$3[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
7346
+ _a$3[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
7347
+ _a$3[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
7348
+ _a$3[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
7349
+ _a$3[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
7350
+ _a$3[exports.FootballGameLogTypes.goal] = 'Гол',
7351
+ _a$3[exports.FootballGameLogTypes.assist] = 'Передача',
7352
+ _a$3[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
7353
+ _a$3[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
7354
+ _a$3[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
7355
+ _a$3[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
7356
+ _a$3[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
7357
+ _a$3[exports.FootballGameLogTypes.corner] = 'Угловой',
7358
+ _a$3[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
7359
+ _a$3[exports.FootballGameLogTypes.save] = 'Отражен удар',
7360
+ _a$3[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
7361
+ _a$3[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
7362
+ _a$3[exports.FootballGameLogTypes.foul] = 'Фол',
7363
+ _a$3[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
7364
+ _a$3[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
7365
+ _a$3[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
7366
+ _a$3[exports.FootballGameLogTypes.loss] = 'Потеря',
7367
+ _a$3[exports.FootballGameLogTypes.steal] = 'Перехват',
7368
+ _a$3[exports.FootballGameLogTypes.out] = 'Аут',
7369
+ _a$3[exports.FootballGameLogTypes.timeout] = 'Таймаут',
6725
7370
  _a$3);
6726
7371
 
6727
7372
  var _a$4;
6728
- var TeamUserRoleLocalization = (_a$4 = {},
6729
- _a$4[exports.TeamUserRole.moderator] = 'Модератор',
6730
- _a$4[exports.TeamUserRole.member] = 'Пользователь',
6731
- _a$4[exports.TeamUserRole.admin] = 'Владелец',
7373
+ var OvertimeTypeLocalization = (_a$4 = {},
7374
+ _a$4[exports.OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
7375
+ _a$4[exports.OvertimeTypes.to_score_total] = 'До N очков',
7376
+ _a$4[exports.OvertimeTypes.time] = 'По времени',
7377
+ _a$4[exports.OvertimeTypes.without_overtime] = 'Без овертайма',
7378
+ _a$4[exports.OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
7379
+ _a$4[exports.OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
7380
+ _a$4[exports.OvertimeTypes.bullitts] = 'Буллиты',
7381
+ _a$4[exports.OvertimeTypes.penalties] = 'Пенальти',
7382
+ _a$4[exports.OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
6732
7383
  _a$4);
6733
7384
 
6734
- var _a$5, _b, _c, _d, _e, _f, _g, _h;
6735
- var GameBasketballPositionLocalization = (_a$5 = {},
6736
- _a$5[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
6737
- _a$5[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
6738
- _a$5[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
6739
- _a$5[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
6740
- _a$5[exports.GameBasketballPosition.center] = 'Центровой',
7385
+ var _a$5;
7386
+ var TeamUserRoleLocalization = (_a$5 = {},
7387
+ _a$5[exports.TeamUserRole.moderator] = 'Модератор',
7388
+ _a$5[exports.TeamUserRole.member] = 'Пользователь',
7389
+ _a$5[exports.TeamUserRole.admin] = 'Владелец',
6741
7390
  _a$5);
7391
+
7392
+ var _a$6, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7393
+ var GameBasketballPositionLocalization = (_a$6 = {},
7394
+ _a$6[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
7395
+ _a$6[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
7396
+ _a$6[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
7397
+ _a$6[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
7398
+ _a$6[exports.GameBasketballPosition.center] = 'Центровой',
7399
+ _a$6);
6742
7400
  var GameBasketballPositionShortLocalization = (_b = {},
6743
7401
  _b[exports.GameBasketballPosition.point_guard] = 'PG',
6744
7402
  _b[exports.GameBasketballPosition.shooting_guard] = 'SG',
@@ -6780,32 +7438,43 @@
6780
7438
  _h[exports.GameHockeyPosition.defensemen] = 'Защитник',
6781
7439
  _h[exports.GameHockeyPosition.forward] = 'Нападающий',
6782
7440
  _h);
6783
-
6784
- var _a$6;
6785
- var VolleyballGameLogTypeLocalization = (_a$6 = {},
6786
- _a$6[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
6787
- _a$6[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
6788
- _a$6[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
6789
- _a$6[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
6790
- _a$6[exports.VolleyballGameLogType.serve_hit] = 'Подача',
6791
- _a$6[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
6792
- _a$6[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
6793
- _a$6[exports.VolleyballGameLogType.attack_shot] = 'Успешная атака',
6794
- _a$6[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
6795
- _a$6[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
6796
- _a$6[exports.VolleyballGameLogType.block_rebound] = 'Успешный блок',
6797
- _a$6[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
6798
- _a$6[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
6799
- _a$6[exports.VolleyballGameLogType.receive] = 'Прием',
6800
- _a$6[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
6801
- _a$6[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
6802
- _a$6[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
6803
- _a$6[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
6804
- _a$6[exports.VolleyballGameLogType.point] = 'Очко',
6805
- _a$6[exports.VolleyballGameLogType.fault] = 'Ошибка',
6806
- _a$6[exports.VolleyballGameLogType.timeout] = 'Таймаут',
6807
- _a$6[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
6808
- _a$6);
7441
+ var GameFootballPositionLocalization = (_j = {},
7442
+ _j[exports.GameFootballPosition.goalkeeper] = 'Вратарь',
7443
+ _j[exports.GameFootballPosition.defensemen] = 'Защитник',
7444
+ _j[exports.GameFootballPosition.midfielder] = 'Полузащитник',
7445
+ _j[exports.GameFootballPosition.forward] = 'Нападающий',
7446
+ _j);
7447
+ var FootballWorkFootLocalization = (_k = {},
7448
+ _k[exports.FootballWorkFoot.left] = 'Левая',
7449
+ _k[exports.FootballWorkFoot.right] = 'Правая',
7450
+ _k[exports.FootballWorkFoot.both] = 'Обе',
7451
+ _k);
7452
+
7453
+ var _a$7;
7454
+ var VolleyballGameLogTypeLocalization = (_a$7 = {},
7455
+ _a$7[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
7456
+ _a$7[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
7457
+ _a$7[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
7458
+ _a$7[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
7459
+ _a$7[exports.VolleyballGameLogType.serve_hit] = 'Подача',
7460
+ _a$7[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
7461
+ _a$7[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
7462
+ _a$7[exports.VolleyballGameLogType.attack_shot] = 'Успешная атака',
7463
+ _a$7[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
7464
+ _a$7[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
7465
+ _a$7[exports.VolleyballGameLogType.block_rebound] = 'Успешный блок',
7466
+ _a$7[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
7467
+ _a$7[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
7468
+ _a$7[exports.VolleyballGameLogType.receive] = 'Прием',
7469
+ _a$7[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
7470
+ _a$7[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
7471
+ _a$7[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
7472
+ _a$7[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
7473
+ _a$7[exports.VolleyballGameLogType.point] = 'Очко',
7474
+ _a$7[exports.VolleyballGameLogType.fault] = 'Ошибка',
7475
+ _a$7[exports.VolleyballGameLogType.timeout] = 'Таймаут',
7476
+ _a$7[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
7477
+ _a$7);
6809
7478
 
6810
7479
  var LeaguePlaylist = /** @class */ (function (_super) {
6811
7480
  __extends(LeaguePlaylist, _super);
@@ -7269,9 +7938,19 @@
7269
7938
  exports.FeedbackApi = FeedbackApi;
7270
7939
  exports.File = File;
7271
7940
  exports.FileApi = FileApi;
7941
+ exports.FootballGameApi = FootballGameApi;
7942
+ exports.FootballGameConfig = FootballGameConfig;
7943
+ exports.FootballGameLog = FootballGameLog;
7944
+ exports.FootballGameLogTypeLocalization = FootballGameLogTypeLocalization;
7945
+ exports.FootballGameStatistic = FootballGameStatistic;
7946
+ exports.FootballGameTeamStatistic = FootballGameTeamStatistic;
7947
+ exports.FootballProfile = FootballProfile;
7948
+ exports.FootballStatistic = FootballStatistic;
7949
+ exports.FootballWorkFootLocalization = FootballWorkFootLocalization;
7272
7950
  exports.Game = Game;
7273
7951
  exports.GameBasketballPositionLocalization = GameBasketballPositionLocalization;
7274
7952
  exports.GameBasketballPositionShortLocalization = GameBasketballPositionShortLocalization;
7953
+ exports.GameFootballPositionLocalization = GameFootballPositionLocalization;
7275
7954
  exports.GameHockeyPositionLocalization = GameHockeyPositionLocalization;
7276
7955
  exports.GameInvite = GameInvite;
7277
7956
  exports.GameTimelineStageItem = GameTimelineStageItem;