@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.
- package/api/football-game-api.d.ts +19 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +724 -45
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +2 -2
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/football-game-api.js +70 -0
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +18 -1
- package/esm2015/localization/football-game-log-types.js +29 -0
- package/esm2015/localization/overtime-types.js +4 -2
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/user-profile.js +13 -1
- package/esm2015/models/football-game-config.js +34 -0
- package/esm2015/models/football-game-log.js +94 -0
- package/esm2015/models/football-game-statistic.js +129 -0
- package/esm2015/models/football-game-team-statistic.js +27 -0
- package/esm2015/models/football-profile.js +43 -0
- package/esm2015/models/football-statistic.js +92 -0
- package/esm2015/models/game.js +4 -1
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/team.js +4 -1
- package/esm2015/models/tournament-team-user.js +2 -1
- package/esm2015/models/tournament.js +6 -1
- package/esm2015/models/user.js +4 -1
- package/esm5/api/football-game-api.js +85 -0
- package/esm5/api/public-api.js +2 -1
- package/esm5/api/tournament-api.js +32 -1
- package/esm5/localization/football-game-log-types.js +30 -0
- package/esm5/localization/overtime-types.js +3 -1
- package/esm5/localization/public-api.js +2 -1
- package/esm5/localization/user-profile.js +14 -2
- package/esm5/models/football-game-config.js +39 -0
- package/esm5/models/football-game-log.js +101 -0
- package/esm5/models/football-game-statistic.js +206 -0
- package/esm5/models/football-game-team-statistic.js +32 -0
- package/esm5/models/football-profile.js +48 -0
- package/esm5/models/football-statistic.js +101 -0
- package/esm5/models/game.js +4 -1
- package/esm5/models/public-api.js +7 -1
- package/esm5/models/sport.js +13 -1
- package/esm5/models/team.js +4 -1
- package/esm5/models/tournament-team-user.js +2 -1
- package/esm5/models/tournament.js +6 -1
- package/esm5/models/user.js +4 -1
- package/fesm2015/mtgame-core.js +533 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +714 -45
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/football-game-log-types.d.ts +28 -0
- package/localization/overtime-types.d.ts +2 -0
- package/localization/public-api.d.ts +1 -0
- package/localization/user-profile.d.ts +12 -0
- package/models/football-game-config.d.ts +15 -0
- package/models/football-game-log.d.ts +53 -0
- package/models/football-game-statistic.d.ts +55 -0
- package/models/football-game-team-statistic.d.ts +8 -0
- package/models/football-profile.d.ts +20 -0
- package/models/football-statistic.d.ts +64 -0
- package/models/game.d.ts +2 -0
- package/models/public-api.d.ts +6 -0
- package/models/sport.d.ts +7 -1
- package/models/tournament-team-user.d.ts +1 -0
- package/models/tournament.d.ts +3 -1
- package/models/user.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -402,6 +402,9 @@ var SportTypes;
|
|
|
402
402
|
SportTypes[SportTypes["hockey"] = 7] = "hockey";
|
|
403
403
|
SportTypes[SportTypes["ice_hockey"] = 8] = "ice_hockey";
|
|
404
404
|
SportTypes[SportTypes["ball_hockey"] = 9] = "ball_hockey";
|
|
405
|
+
SportTypes[SportTypes["football"] = 10] = "football";
|
|
406
|
+
SportTypes[SportTypes["classic_football"] = 11] = "classic_football";
|
|
407
|
+
SportTypes[SportTypes["mini_football"] = 12] = "mini_football";
|
|
405
408
|
})(SportTypes || (SportTypes = {}));
|
|
406
409
|
var Sport = /** @class */ (function (_super) {
|
|
407
410
|
__extends(Sport, _super);
|
|
@@ -435,6 +438,15 @@ var Sport = /** @class */ (function (_super) {
|
|
|
435
438
|
Sport.prototype.isBallHockey = function () {
|
|
436
439
|
return this.id === SportTypes.ball_hockey;
|
|
437
440
|
};
|
|
441
|
+
Sport.prototype.isFootball = function () {
|
|
442
|
+
return this.id === SportTypes.football || this.parentId === SportTypes.football;
|
|
443
|
+
};
|
|
444
|
+
Sport.prototype.isClassicFootball = function () {
|
|
445
|
+
return this.id === SportTypes.classic_football;
|
|
446
|
+
};
|
|
447
|
+
Sport.prototype.isMiniFootball = function () {
|
|
448
|
+
return this.id === SportTypes.mini_football;
|
|
449
|
+
};
|
|
438
450
|
Sport.toFront = function (data) {
|
|
439
451
|
return null;
|
|
440
452
|
};
|
|
@@ -641,6 +653,51 @@ var HockeyProfile = /** @class */ (function (_super) {
|
|
|
641
653
|
return HockeyProfile;
|
|
642
654
|
}(BaseModel));
|
|
643
655
|
|
|
656
|
+
var GameFootballPosition;
|
|
657
|
+
(function (GameFootballPosition) {
|
|
658
|
+
GameFootballPosition[GameFootballPosition["defensemen"] = 1] = "defensemen";
|
|
659
|
+
GameFootballPosition[GameFootballPosition["midfielder"] = 2] = "midfielder";
|
|
660
|
+
GameFootballPosition[GameFootballPosition["forward"] = 3] = "forward";
|
|
661
|
+
GameFootballPosition[GameFootballPosition["goalkeeper"] = 4] = "goalkeeper";
|
|
662
|
+
})(GameFootballPosition || (GameFootballPosition = {}));
|
|
663
|
+
var FootballWorkFoot;
|
|
664
|
+
(function (FootballWorkFoot) {
|
|
665
|
+
FootballWorkFoot[FootballWorkFoot["left"] = 1] = "left";
|
|
666
|
+
FootballWorkFoot[FootballWorkFoot["right"] = 2] = "right";
|
|
667
|
+
FootballWorkFoot[FootballWorkFoot["both"] = 3] = "both";
|
|
668
|
+
})(FootballWorkFoot || (FootballWorkFoot = {}));
|
|
669
|
+
var FootballProfile = /** @class */ (function (_super) {
|
|
670
|
+
__extends(FootballProfile, _super);
|
|
671
|
+
function FootballProfile() {
|
|
672
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
673
|
+
}
|
|
674
|
+
FootballProfile.toFront = function (value) {
|
|
675
|
+
};
|
|
676
|
+
FootballProfile.toBack = function (value) {
|
|
677
|
+
};
|
|
678
|
+
__decorate([
|
|
679
|
+
ToFrontHook
|
|
680
|
+
], FootballProfile, "toFront", null);
|
|
681
|
+
__decorate([
|
|
682
|
+
ToBackHook
|
|
683
|
+
], FootballProfile, "toBack", null);
|
|
684
|
+
FootballProfile = __decorate([
|
|
685
|
+
ModelInstance({
|
|
686
|
+
mappingFields: {
|
|
687
|
+
id: 'id',
|
|
688
|
+
user_id: 'userId',
|
|
689
|
+
position: 'position',
|
|
690
|
+
work_foot: 'workFoot'
|
|
691
|
+
},
|
|
692
|
+
relation: {
|
|
693
|
+
position: enumField(GameFootballPosition),
|
|
694
|
+
workFoot: enumField(FootballWorkFoot)
|
|
695
|
+
}
|
|
696
|
+
})
|
|
697
|
+
], FootballProfile);
|
|
698
|
+
return FootballProfile;
|
|
699
|
+
}(BaseModel));
|
|
700
|
+
|
|
644
701
|
var UserGender;
|
|
645
702
|
(function (UserGender) {
|
|
646
703
|
UserGender[UserGender["male"] = 1] = "male";
|
|
@@ -710,6 +767,7 @@ var User = /** @class */ (function (_super) {
|
|
|
710
767
|
basketball_profile: 'basketballProfile',
|
|
711
768
|
volleyball_profile: 'volleyballProfile',
|
|
712
769
|
hockey_profile: 'hockeyProfile',
|
|
770
|
+
football_profile: 'footballProfile',
|
|
713
771
|
wizards: 'wizards',
|
|
714
772
|
city: 'city',
|
|
715
773
|
gender: 'gender',
|
|
@@ -722,6 +780,7 @@ var User = /** @class */ (function (_super) {
|
|
|
722
780
|
basketballProfile: BasketballProfile,
|
|
723
781
|
volleyballProfile: VolleyballProfile,
|
|
724
782
|
hockeyProfile: HockeyProfile,
|
|
783
|
+
footballProfile: FootballProfile,
|
|
725
784
|
city: City,
|
|
726
785
|
gender: enumField(UserGender)
|
|
727
786
|
}
|
|
@@ -746,6 +805,9 @@ var Team = /** @class */ (function (_super) {
|
|
|
746
805
|
if (this.sport.isHockey()) {
|
|
747
806
|
classList.push('empty-logo-hockey');
|
|
748
807
|
}
|
|
808
|
+
if (this.sport.isFootball()) {
|
|
809
|
+
classList.push('empty-logo-football');
|
|
810
|
+
}
|
|
749
811
|
return classList.join(' ');
|
|
750
812
|
};
|
|
751
813
|
Team.toFront = function (data) {
|
|
@@ -968,6 +1030,8 @@ var OvertimeTypes;
|
|
|
968
1030
|
OvertimeTypes[OvertimeTypes["to_first_goal"] = 5] = "to_first_goal";
|
|
969
1031
|
OvertimeTypes[OvertimeTypes["to_first_goal_and_bullitts"] = 6] = "to_first_goal_and_bullitts";
|
|
970
1032
|
OvertimeTypes[OvertimeTypes["bullitts"] = 7] = "bullitts";
|
|
1033
|
+
OvertimeTypes[OvertimeTypes["penalties"] = 8] = "penalties";
|
|
1034
|
+
OvertimeTypes[OvertimeTypes["time_and_penalties"] = 9] = "time_and_penalties";
|
|
971
1035
|
})(OvertimeTypes || (OvertimeTypes = {}));
|
|
972
1036
|
var TournamentSettings = /** @class */ (function (_super) {
|
|
973
1037
|
__extends(TournamentSettings, _super);
|
|
@@ -1071,6 +1135,9 @@ var Tournament = /** @class */ (function (_super) {
|
|
|
1071
1135
|
if (this.sport.isHockey()) {
|
|
1072
1136
|
classList.push('empty-logo-hockey');
|
|
1073
1137
|
}
|
|
1138
|
+
if (this.sport.isFootball()) {
|
|
1139
|
+
classList.push('empty-logo-football');
|
|
1140
|
+
}
|
|
1074
1141
|
return classList.join(' ');
|
|
1075
1142
|
};
|
|
1076
1143
|
Tournament.toFront = function (data) { };
|
|
@@ -1323,6 +1390,41 @@ var HockeyGameConfig = /** @class */ (function (_super) {
|
|
|
1323
1390
|
return HockeyGameConfig;
|
|
1324
1391
|
}(BaseModel));
|
|
1325
1392
|
|
|
1393
|
+
var FootballGameConfig = /** @class */ (function (_super) {
|
|
1394
|
+
__extends(FootballGameConfig, _super);
|
|
1395
|
+
function FootballGameConfig() {
|
|
1396
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1397
|
+
}
|
|
1398
|
+
FootballGameConfig.toFront = function (data) { };
|
|
1399
|
+
FootballGameConfig.toBack = function (data) { };
|
|
1400
|
+
__decorate([
|
|
1401
|
+
ToFrontHook
|
|
1402
|
+
], FootballGameConfig, "toFront", null);
|
|
1403
|
+
__decorate([
|
|
1404
|
+
ToBackHook
|
|
1405
|
+
], FootballGameConfig, "toBack", null);
|
|
1406
|
+
FootballGameConfig = __decorate([
|
|
1407
|
+
ModelInstance({
|
|
1408
|
+
mappingFields: {
|
|
1409
|
+
periods_count: 'periodsCount',
|
|
1410
|
+
period_time: 'periodTime',
|
|
1411
|
+
overtime_type: 'overtimeType',
|
|
1412
|
+
overtime_time: 'overtimeTime',
|
|
1413
|
+
max_game_players: 'maxGamePlayers',
|
|
1414
|
+
timeout_count: 'timeoutCount',
|
|
1415
|
+
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
1416
|
+
timeout_time: 'timeoutTime',
|
|
1417
|
+
game_time_type: 'gameTimeType',
|
|
1418
|
+
},
|
|
1419
|
+
relation: {
|
|
1420
|
+
overtimeType: enumField(OvertimeTypes),
|
|
1421
|
+
gameTimeType: enumField(GameTimeTypes),
|
|
1422
|
+
}
|
|
1423
|
+
})
|
|
1424
|
+
], FootballGameConfig);
|
|
1425
|
+
return FootballGameConfig;
|
|
1426
|
+
}(BaseModel));
|
|
1427
|
+
|
|
1326
1428
|
var GameStatuses;
|
|
1327
1429
|
(function (GameStatuses) {
|
|
1328
1430
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -1428,6 +1530,7 @@ var Game = /** @class */ (function (_super) {
|
|
|
1428
1530
|
basketball_game_config: 'basketballGameConfig',
|
|
1429
1531
|
volleyball_game_config: 'volleyballGameConfig',
|
|
1430
1532
|
hockey_game_config: 'hockeyGameConfig',
|
|
1533
|
+
football_game_config: 'footballGameConfig',
|
|
1431
1534
|
score_by_period: 'scoreByPeriod',
|
|
1432
1535
|
playoff_stage: 'playoffStage',
|
|
1433
1536
|
tournament_stage_id: 'tournamentStageId',
|
|
@@ -1447,6 +1550,7 @@ var Game = /** @class */ (function (_super) {
|
|
|
1447
1550
|
basketballGameConfig: BasketballGameConfig,
|
|
1448
1551
|
volleyballGameConfig: VolleyballGameConfig,
|
|
1449
1552
|
hockeyGameConfig: HockeyGameConfig,
|
|
1553
|
+
footballGameConfig: FootballGameConfig,
|
|
1450
1554
|
tournamentCourt: LeagueCourt,
|
|
1451
1555
|
media: listField(MediaItem),
|
|
1452
1556
|
tournament: Tournament,
|
|
@@ -1660,6 +1764,7 @@ var TournamentTeamUser = /** @class */ (function (_super) {
|
|
|
1660
1764
|
photo: 'photo',
|
|
1661
1765
|
disqualification: 'disqualification',
|
|
1662
1766
|
has_changes: 'hasChanges',
|
|
1767
|
+
rating: 'rating'
|
|
1663
1768
|
},
|
|
1664
1769
|
relation: {
|
|
1665
1770
|
tournamentTeam: TournamentTeam,
|
|
@@ -2869,6 +2974,498 @@ var HockeyGameApi = /** @class */ (function () {
|
|
|
2869
2974
|
return HockeyGameApi;
|
|
2870
2975
|
}());
|
|
2871
2976
|
|
|
2977
|
+
var FootballGameLogTypes;
|
|
2978
|
+
(function (FootballGameLogTypes) {
|
|
2979
|
+
FootballGameLogTypes[FootballGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
2980
|
+
FootballGameLogTypes[FootballGameLogTypes["exit_game"] = 2] = "exit_game";
|
|
2981
|
+
FootballGameLogTypes[FootballGameLogTypes["shot_miss"] = 3] = "shot_miss";
|
|
2982
|
+
FootballGameLogTypes[FootballGameLogTypes["shot_on_goal"] = 4] = "shot_on_goal";
|
|
2983
|
+
FootballGameLogTypes[FootballGameLogTypes["shot_blocked"] = 5] = "shot_blocked";
|
|
2984
|
+
FootballGameLogTypes[FootballGameLogTypes["goal"] = 6] = "goal";
|
|
2985
|
+
FootballGameLogTypes[FootballGameLogTypes["penalty_attempt"] = 7] = "penalty_attempt";
|
|
2986
|
+
FootballGameLogTypes[FootballGameLogTypes["penalty_goal"] = 8] = "penalty_goal";
|
|
2987
|
+
FootballGameLogTypes[FootballGameLogTypes["penalty_save"] = 9] = "penalty_save";
|
|
2988
|
+
FootballGameLogTypes[FootballGameLogTypes["small_penalty_attempt"] = 10] = "small_penalty_attempt";
|
|
2989
|
+
FootballGameLogTypes[FootballGameLogTypes["small_penalty_goal"] = 11] = "small_penalty_goal";
|
|
2990
|
+
FootballGameLogTypes[FootballGameLogTypes["small_penalty_save"] = 12] = "small_penalty_save";
|
|
2991
|
+
FootballGameLogTypes[FootballGameLogTypes["assist"] = 13] = "assist";
|
|
2992
|
+
FootballGameLogTypes[FootballGameLogTypes["block_shot"] = 14] = "block_shot";
|
|
2993
|
+
FootballGameLogTypes[FootballGameLogTypes["corner"] = 15] = "corner";
|
|
2994
|
+
FootballGameLogTypes[FootballGameLogTypes["free_kick"] = 16] = "free_kick";
|
|
2995
|
+
FootballGameLogTypes[FootballGameLogTypes["foul"] = 17] = "foul";
|
|
2996
|
+
FootballGameLogTypes[FootballGameLogTypes["save"] = 18] = "save";
|
|
2997
|
+
FootballGameLogTypes[FootballGameLogTypes["yellow_card"] = 19] = "yellow_card";
|
|
2998
|
+
FootballGameLogTypes[FootballGameLogTypes["red_card"] = 20] = "red_card";
|
|
2999
|
+
FootballGameLogTypes[FootballGameLogTypes["perfect_pass"] = 21] = "perfect_pass";
|
|
3000
|
+
FootballGameLogTypes[FootballGameLogTypes["loss"] = 22] = "loss";
|
|
3001
|
+
FootballGameLogTypes[FootballGameLogTypes["steal"] = 23] = "steal";
|
|
3002
|
+
FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
|
|
3003
|
+
FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
|
|
3004
|
+
})(FootballGameLogTypes || (FootballGameLogTypes = {}));
|
|
3005
|
+
var FootballGameLog = /** @class */ (function (_super) {
|
|
3006
|
+
__extends(FootballGameLog, _super);
|
|
3007
|
+
function FootballGameLog() {
|
|
3008
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3009
|
+
_this.active = true;
|
|
3010
|
+
return _this;
|
|
3011
|
+
}
|
|
3012
|
+
FootballGameLog.prototype.compare = function (model) {
|
|
3013
|
+
if (this.time === model.time && this.period === model.period) {
|
|
3014
|
+
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
3015
|
+
}
|
|
3016
|
+
if (this.period === model.period) {
|
|
3017
|
+
return this.time < model.time ? 1 : -1;
|
|
3018
|
+
}
|
|
3019
|
+
return this.period < model.period ? 1 : -1;
|
|
3020
|
+
};
|
|
3021
|
+
Object.defineProperty(FootballGameLog.prototype, "timeFormatted", {
|
|
3022
|
+
get: function () {
|
|
3023
|
+
var minutes = Math.floor(this.time / 60);
|
|
3024
|
+
var seconds = this.time - minutes * 60;
|
|
3025
|
+
return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
|
|
3026
|
+
},
|
|
3027
|
+
enumerable: true,
|
|
3028
|
+
configurable: true
|
|
3029
|
+
});
|
|
3030
|
+
FootballGameLog.prototype.isScoreType = function () {
|
|
3031
|
+
return [FootballGameLogTypes.goal, FootballGameLogTypes.penalty_goal, FootballGameLogTypes.small_penalty_goal].indexOf(this.logType) > -1;
|
|
3032
|
+
};
|
|
3033
|
+
FootballGameLog.prototype.isAfter = function (log) {
|
|
3034
|
+
if (this.time === log.time && this.period === log.period) {
|
|
3035
|
+
return this.id > log.id;
|
|
3036
|
+
}
|
|
3037
|
+
if (this.period === log.period) {
|
|
3038
|
+
return this.time > log.time;
|
|
3039
|
+
}
|
|
3040
|
+
return this.period > log.period;
|
|
3041
|
+
};
|
|
3042
|
+
FootballGameLog.toFront = function (value) { };
|
|
3043
|
+
FootballGameLog.toBack = function (value) { };
|
|
3044
|
+
__decorate([
|
|
3045
|
+
ToFrontHook
|
|
3046
|
+
], FootballGameLog, "toFront", null);
|
|
3047
|
+
__decorate([
|
|
3048
|
+
ToBackHook
|
|
3049
|
+
], FootballGameLog, "toBack", null);
|
|
3050
|
+
FootballGameLog = __decorate([
|
|
3051
|
+
ModelInstance({
|
|
3052
|
+
mappingFields: {
|
|
3053
|
+
id: 'id',
|
|
3054
|
+
unique_id: 'uniqueId',
|
|
3055
|
+
game_id: 'gameId',
|
|
3056
|
+
game_user_id: 'gameUserId',
|
|
3057
|
+
team_id: 'teamId',
|
|
3058
|
+
log_type: 'logType',
|
|
3059
|
+
datetime: 'datetime',
|
|
3060
|
+
time: 'time',
|
|
3061
|
+
period: 'period',
|
|
3062
|
+
active: 'active',
|
|
3063
|
+
is_highlight: 'isHighlight',
|
|
3064
|
+
is_goalie: 'isGoalie',
|
|
3065
|
+
},
|
|
3066
|
+
relation: {
|
|
3067
|
+
datetime: DateTimeField,
|
|
3068
|
+
logType: enumField(FootballGameLogTypes)
|
|
3069
|
+
}
|
|
3070
|
+
})
|
|
3071
|
+
], FootballGameLog);
|
|
3072
|
+
return FootballGameLog;
|
|
3073
|
+
}(BaseModel));
|
|
3074
|
+
|
|
3075
|
+
var FootballGameStatistic = /** @class */ (function (_super) {
|
|
3076
|
+
__extends(FootballGameStatistic, _super);
|
|
3077
|
+
function FootballGameStatistic() {
|
|
3078
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3079
|
+
}
|
|
3080
|
+
Object.defineProperty(FootballGameStatistic.prototype, "id", {
|
|
3081
|
+
get: function () {
|
|
3082
|
+
return this.gameUserId;
|
|
3083
|
+
},
|
|
3084
|
+
enumerable: true,
|
|
3085
|
+
configurable: true
|
|
3086
|
+
});
|
|
3087
|
+
Object.defineProperty(FootballGameStatistic.prototype, "shots", {
|
|
3088
|
+
get: function () {
|
|
3089
|
+
return (this.shotMisses || 0) + (this.shotsOnGoal || 0) + (this.shotsBlocked || 0);
|
|
3090
|
+
},
|
|
3091
|
+
enumerable: true,
|
|
3092
|
+
configurable: true
|
|
3093
|
+
});
|
|
3094
|
+
Object.defineProperty(FootballGameStatistic.prototype, "totalGoals", {
|
|
3095
|
+
get: function () {
|
|
3096
|
+
return (this.goals || 0) + (this.penaltyGoals || 0) + (this.smallPenaltyGoals || 0);
|
|
3097
|
+
},
|
|
3098
|
+
enumerable: true,
|
|
3099
|
+
configurable: true
|
|
3100
|
+
});
|
|
3101
|
+
Object.defineProperty(FootballGameStatistic.prototype, "goalsPercent", {
|
|
3102
|
+
get: function () {
|
|
3103
|
+
if (!this.shots || !this.totalGoals) {
|
|
3104
|
+
return 0;
|
|
3105
|
+
}
|
|
3106
|
+
return Math.round(1000 * this.totalGoals / this.shots) / 10;
|
|
3107
|
+
},
|
|
3108
|
+
enumerable: true,
|
|
3109
|
+
configurable: true
|
|
3110
|
+
});
|
|
3111
|
+
Object.defineProperty(FootballGameStatistic.prototype, "shotsOnGoalPercent", {
|
|
3112
|
+
get: function () {
|
|
3113
|
+
if (!this.shotsOnGoal || !this.shots) {
|
|
3114
|
+
return 0;
|
|
3115
|
+
}
|
|
3116
|
+
return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
|
|
3117
|
+
},
|
|
3118
|
+
enumerable: true,
|
|
3119
|
+
configurable: true
|
|
3120
|
+
});
|
|
3121
|
+
Object.defineProperty(FootballGameStatistic.prototype, "penalties", {
|
|
3122
|
+
get: function () {
|
|
3123
|
+
return (this.penaltyGoals || 0) + (this.penaltyAttempts || 0);
|
|
3124
|
+
},
|
|
3125
|
+
enumerable: true,
|
|
3126
|
+
configurable: true
|
|
3127
|
+
});
|
|
3128
|
+
Object.defineProperty(FootballGameStatistic.prototype, "penaltyGoalsPercent", {
|
|
3129
|
+
get: function () {
|
|
3130
|
+
if (!this.penaltyAttempts || !this.penaltyGoals) {
|
|
3131
|
+
return 0;
|
|
3132
|
+
}
|
|
3133
|
+
return Math.round(1000 * this.penaltyGoals / this.penaltyAttempts) / 10;
|
|
3134
|
+
},
|
|
3135
|
+
enumerable: true,
|
|
3136
|
+
configurable: true
|
|
3137
|
+
});
|
|
3138
|
+
Object.defineProperty(FootballGameStatistic.prototype, "smallPenalties", {
|
|
3139
|
+
get: function () {
|
|
3140
|
+
return (this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0);
|
|
3141
|
+
},
|
|
3142
|
+
enumerable: true,
|
|
3143
|
+
configurable: true
|
|
3144
|
+
});
|
|
3145
|
+
Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyGoalsPercent", {
|
|
3146
|
+
get: function () {
|
|
3147
|
+
if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
|
|
3148
|
+
return 0;
|
|
3149
|
+
}
|
|
3150
|
+
return Math.round(1000 * this.smallPenaltyGoals / this.smallPenaltyAttempts) / 10;
|
|
3151
|
+
},
|
|
3152
|
+
enumerable: true,
|
|
3153
|
+
configurable: true
|
|
3154
|
+
});
|
|
3155
|
+
Object.defineProperty(FootballGameStatistic.prototype, "shotsAgainst", {
|
|
3156
|
+
get: function () {
|
|
3157
|
+
return (this.saves || 0) + (this.goalsAgainst || 0);
|
|
3158
|
+
},
|
|
3159
|
+
enumerable: true,
|
|
3160
|
+
configurable: true
|
|
3161
|
+
});
|
|
3162
|
+
Object.defineProperty(FootballGameStatistic.prototype, "penaltyShotsAgainst", {
|
|
3163
|
+
get: function () {
|
|
3164
|
+
return (this.penaltySaves || 0) + (this.penaltyGoalsAgainst || 0);
|
|
3165
|
+
},
|
|
3166
|
+
enumerable: true,
|
|
3167
|
+
configurable: true
|
|
3168
|
+
});
|
|
3169
|
+
Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltyShotsAgainst", {
|
|
3170
|
+
get: function () {
|
|
3171
|
+
return (this.smallPenaltySaves || 0) + (this.smallPenaltyGoalsAgainst || 0);
|
|
3172
|
+
},
|
|
3173
|
+
enumerable: true,
|
|
3174
|
+
configurable: true
|
|
3175
|
+
});
|
|
3176
|
+
Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
|
|
3177
|
+
get: function () {
|
|
3178
|
+
return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0);
|
|
3179
|
+
},
|
|
3180
|
+
enumerable: true,
|
|
3181
|
+
configurable: true
|
|
3182
|
+
});
|
|
3183
|
+
Object.defineProperty(FootballGameStatistic.prototype, "totalSaves", {
|
|
3184
|
+
get: function () {
|
|
3185
|
+
return (this.saves || 0) + (this.penaltySaves || 0) + (this.smallPenaltySaves || 0);
|
|
3186
|
+
},
|
|
3187
|
+
enumerable: true,
|
|
3188
|
+
configurable: true
|
|
3189
|
+
});
|
|
3190
|
+
Object.defineProperty(FootballGameStatistic.prototype, "savesPercent", {
|
|
3191
|
+
get: function () {
|
|
3192
|
+
if (!this.shotsAgainst || !this.saves) {
|
|
3193
|
+
return 0;
|
|
3194
|
+
}
|
|
3195
|
+
return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
|
|
3196
|
+
},
|
|
3197
|
+
enumerable: true,
|
|
3198
|
+
configurable: true
|
|
3199
|
+
});
|
|
3200
|
+
Object.defineProperty(FootballGameStatistic.prototype, "penaltySavesPercent", {
|
|
3201
|
+
get: function () {
|
|
3202
|
+
if (!this.penaltyShotsAgainst || !this.penaltySaves) {
|
|
3203
|
+
return 0;
|
|
3204
|
+
}
|
|
3205
|
+
return Math.round(1000 * this.penaltySaves / this.penaltyShotsAgainst) / 10;
|
|
3206
|
+
},
|
|
3207
|
+
enumerable: true,
|
|
3208
|
+
configurable: true
|
|
3209
|
+
});
|
|
3210
|
+
Object.defineProperty(FootballGameStatistic.prototype, "smallPenaltySavesPercent", {
|
|
3211
|
+
get: function () {
|
|
3212
|
+
if (!this.smallPenaltyShotsAgainst || !this.smallPenaltySaves) {
|
|
3213
|
+
return 0;
|
|
3214
|
+
}
|
|
3215
|
+
return Math.round(1000 * this.smallPenaltySaves / this.smallPenaltyShotsAgainst) / 10;
|
|
3216
|
+
},
|
|
3217
|
+
enumerable: true,
|
|
3218
|
+
configurable: true
|
|
3219
|
+
});
|
|
3220
|
+
Object.defineProperty(FootballGameStatistic.prototype, "gameMinutes", {
|
|
3221
|
+
get: function () {
|
|
3222
|
+
return Math.floor(this.gameTime / 60);
|
|
3223
|
+
},
|
|
3224
|
+
enumerable: true,
|
|
3225
|
+
configurable: true
|
|
3226
|
+
});
|
|
3227
|
+
FootballGameStatistic.toFront = function (data) { };
|
|
3228
|
+
FootballGameStatistic.toBack = function (data) { };
|
|
3229
|
+
__decorate([
|
|
3230
|
+
ToFrontHook
|
|
3231
|
+
], FootballGameStatistic, "toFront", null);
|
|
3232
|
+
__decorate([
|
|
3233
|
+
ToBackHook
|
|
3234
|
+
], FootballGameStatistic, "toBack", null);
|
|
3235
|
+
FootballGameStatistic = __decorate([
|
|
3236
|
+
ModelInstance({
|
|
3237
|
+
mappingFields: {
|
|
3238
|
+
game_user_id: 'gameUserId',
|
|
3239
|
+
updated_at: 'updatedAt',
|
|
3240
|
+
points: 'points',
|
|
3241
|
+
shot_misses: 'shotMisses',
|
|
3242
|
+
shots_on_goal: 'shotsOnGoal',
|
|
3243
|
+
shots_blocked: 'shotsBlocked',
|
|
3244
|
+
goals: 'goals',
|
|
3245
|
+
assists: 'assists',
|
|
3246
|
+
corners: 'corners',
|
|
3247
|
+
free_kicks: 'freeKicks',
|
|
3248
|
+
penalty_goals: 'penaltyGoals',
|
|
3249
|
+
penalty_attempts: 'penaltyAttempts',
|
|
3250
|
+
penalty_goals_against: 'penaltyGoalsAgainst',
|
|
3251
|
+
penalty_saves: 'penaltySaves',
|
|
3252
|
+
small_penalty_goals: 'smallPenaltyGoals',
|
|
3253
|
+
small_penalty_attempts: 'smallPenaltyAttempts',
|
|
3254
|
+
small_penalty_goals_against: 'smallPenaltyGoalsAgainst',
|
|
3255
|
+
small_penalty_saves: 'smallPenaltySaves',
|
|
3256
|
+
saves: 'saves',
|
|
3257
|
+
goals_against: 'goalsAgainst',
|
|
3258
|
+
safety_rate: 'safetyRate',
|
|
3259
|
+
game_time: 'gameTime',
|
|
3260
|
+
plus_minus: 'plusMinus',
|
|
3261
|
+
fouls: 'fouls',
|
|
3262
|
+
yellow_cards: 'yellowCards',
|
|
3263
|
+
red_cards: 'redCards',
|
|
3264
|
+
perfect_passes: 'perfectPasses',
|
|
3265
|
+
losses: 'losses',
|
|
3266
|
+
steals: 'steals',
|
|
3267
|
+
outs: 'outs',
|
|
3268
|
+
block_shots: 'blockShots'
|
|
3269
|
+
},
|
|
3270
|
+
relation: {
|
|
3271
|
+
updatedAt: DateTimeField,
|
|
3272
|
+
}
|
|
3273
|
+
})
|
|
3274
|
+
], FootballGameStatistic);
|
|
3275
|
+
return FootballGameStatistic;
|
|
3276
|
+
}(BaseModel));
|
|
3277
|
+
|
|
3278
|
+
var FootballStatistic = /** @class */ (function (_super) {
|
|
3279
|
+
__extends(FootballStatistic, _super);
|
|
3280
|
+
function FootballStatistic() {
|
|
3281
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3282
|
+
}
|
|
3283
|
+
Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
|
|
3284
|
+
get: function () {
|
|
3285
|
+
var minutes = Math.floor(this.gameTime / 60);
|
|
3286
|
+
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
3287
|
+
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
3288
|
+
},
|
|
3289
|
+
enumerable: true,
|
|
3290
|
+
configurable: true
|
|
3291
|
+
});
|
|
3292
|
+
FootballStatistic.toFront = function (data) { };
|
|
3293
|
+
FootballStatistic.toBack = function (data) { };
|
|
3294
|
+
__decorate([
|
|
3295
|
+
ToFrontHook
|
|
3296
|
+
], FootballStatistic, "toFront", null);
|
|
3297
|
+
__decorate([
|
|
3298
|
+
ToBackHook
|
|
3299
|
+
], FootballStatistic, "toBack", null);
|
|
3300
|
+
FootballStatistic = __decorate([
|
|
3301
|
+
ModelInstance({
|
|
3302
|
+
mappingFields: {
|
|
3303
|
+
tournament_team_user: 'tournamentTeamUser',
|
|
3304
|
+
team: 'team',
|
|
3305
|
+
team_user: 'teamUser',
|
|
3306
|
+
user: 'user',
|
|
3307
|
+
tournament_team: 'tournamentTeam',
|
|
3308
|
+
month: 'month',
|
|
3309
|
+
win_lose: 'winLose',
|
|
3310
|
+
games_count: 'gamesCount',
|
|
3311
|
+
won_games_count: 'wonGamesCount',
|
|
3312
|
+
points: 'points',
|
|
3313
|
+
shot_misses: 'shotMisses',
|
|
3314
|
+
shots_on_goal: 'shotsOnGoal',
|
|
3315
|
+
shots_blocked: 'shotsBlocked',
|
|
3316
|
+
shots_on_goal_percent: 'shotsOnGoalPercent',
|
|
3317
|
+
shots: 'shots',
|
|
3318
|
+
goals: 'goals',
|
|
3319
|
+
goals_percent: 'goalsPercent',
|
|
3320
|
+
total_goals: 'totalGoals',
|
|
3321
|
+
assists: 'assists',
|
|
3322
|
+
penalty_goals: 'penaltyGoals',
|
|
3323
|
+
penalty_attempts: 'penaltyAttempts',
|
|
3324
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
3325
|
+
penalty_saves: 'penaltySaves',
|
|
3326
|
+
penalty_goals_against: 'penaltyGoalsAgainst',
|
|
3327
|
+
penalty_shots_against: 'penaltyShotsAgainst',
|
|
3328
|
+
penalty_saves_percent: 'penaltySavesPercent',
|
|
3329
|
+
small_penalty_goals: 'smallPenaltyGoals',
|
|
3330
|
+
small_penalty_attempts: 'smallPenaltyAttempts',
|
|
3331
|
+
small_penalty_goals_percent: 'smallPenaltyGoalsPercent',
|
|
3332
|
+
small_penalty_saves: 'smallPenaltySaves',
|
|
3333
|
+
small_penalty_goals_against: 'smallPenaltyGoalsAgainst',
|
|
3334
|
+
small_penalty_shots_against: 'smallPenaltyShotsAgainst',
|
|
3335
|
+
small_penalty_saves_percent: 'smallPenaltySavesPercent',
|
|
3336
|
+
saves: 'saves',
|
|
3337
|
+
saves_percent: 'savesPercent',
|
|
3338
|
+
total_saves: 'totalSaves',
|
|
3339
|
+
goals_against: 'goalsAgainst',
|
|
3340
|
+
total_goals_against: 'totalGoalsAgainst',
|
|
3341
|
+
shots_against: 'shotsAgainst',
|
|
3342
|
+
safety_rate: 'safetyRate',
|
|
3343
|
+
fouls: 'fouls',
|
|
3344
|
+
yellow_cards: 'yellowCards',
|
|
3345
|
+
red_cards: 'redCards',
|
|
3346
|
+
perfect_passes: 'perfectPasses',
|
|
3347
|
+
losses: 'losses',
|
|
3348
|
+
steals: 'steals',
|
|
3349
|
+
outs: 'outs',
|
|
3350
|
+
block_shots: 'blockShots',
|
|
3351
|
+
corners: 'corners',
|
|
3352
|
+
free_kicks: 'freeKicks',
|
|
3353
|
+
game_time: 'gameTime',
|
|
3354
|
+
plus_minus: 'plusMinus',
|
|
3355
|
+
newbie: 'newbie'
|
|
3356
|
+
},
|
|
3357
|
+
relation: {
|
|
3358
|
+
tournamentTeamUser: TournamentTeamUser,
|
|
3359
|
+
team: Team,
|
|
3360
|
+
teamUser: TeamUser,
|
|
3361
|
+
user: User,
|
|
3362
|
+
tournamentTeam: TournamentTeam,
|
|
3363
|
+
month: DateField
|
|
3364
|
+
}
|
|
3365
|
+
})
|
|
3366
|
+
], FootballStatistic);
|
|
3367
|
+
return FootballStatistic;
|
|
3368
|
+
}(BaseStatistic));
|
|
3369
|
+
|
|
3370
|
+
var FootballGameTeamStatistic = /** @class */ (function (_super) {
|
|
3371
|
+
__extends(FootballGameTeamStatistic, _super);
|
|
3372
|
+
function FootballGameTeamStatistic() {
|
|
3373
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3374
|
+
}
|
|
3375
|
+
FootballGameTeamStatistic.toFront = function (data) { };
|
|
3376
|
+
FootballGameTeamStatistic.toBack = function (data) { };
|
|
3377
|
+
__decorate([
|
|
3378
|
+
ToFrontHook
|
|
3379
|
+
], FootballGameTeamStatistic, "toFront", null);
|
|
3380
|
+
__decorate([
|
|
3381
|
+
ToBackHook
|
|
3382
|
+
], FootballGameTeamStatistic, "toBack", null);
|
|
3383
|
+
FootballGameTeamStatistic = __decorate([
|
|
3384
|
+
ModelInstance({
|
|
3385
|
+
mappingFields: {
|
|
3386
|
+
team: 'team',
|
|
3387
|
+
competitor_team: 'competitorTeam'
|
|
3388
|
+
},
|
|
3389
|
+
relation: {
|
|
3390
|
+
team: FootballStatistic,
|
|
3391
|
+
competitorTeam: FootballStatistic
|
|
3392
|
+
}
|
|
3393
|
+
})
|
|
3394
|
+
], FootballGameTeamStatistic);
|
|
3395
|
+
return FootballGameTeamStatistic;
|
|
3396
|
+
}(BaseModel));
|
|
3397
|
+
|
|
3398
|
+
var FootballGameApi = /** @class */ (function () {
|
|
3399
|
+
function FootballGameApi(httpClient, configService) {
|
|
3400
|
+
this.httpClient = httpClient;
|
|
3401
|
+
this.configService = configService;
|
|
3402
|
+
}
|
|
3403
|
+
FootballGameApi.prototype.getById = function (gameId) {
|
|
3404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3405
|
+
return __generator(this, function (_a) {
|
|
3406
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/").pipe(map(function (result) { return Game.toFront(result); })).toPromise()];
|
|
3407
|
+
});
|
|
3408
|
+
});
|
|
3409
|
+
};
|
|
3410
|
+
FootballGameApi.prototype.getUsers = function (gameId) {
|
|
3411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3412
|
+
return __generator(this, function (_a) {
|
|
3413
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/users/").pipe(map(function (result) { return GameUser.toFront(result); })).toPromise()];
|
|
3414
|
+
});
|
|
3415
|
+
});
|
|
3416
|
+
};
|
|
3417
|
+
FootballGameApi.prototype.getTeamStatistic = function (gameId) {
|
|
3418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3419
|
+
return __generator(this, function (_a) {
|
|
3420
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/team_statistic/").pipe(map(function (result) { return FootballGameTeamStatistic.toFront(result); })).toPromise()];
|
|
3421
|
+
});
|
|
3422
|
+
});
|
|
3423
|
+
};
|
|
3424
|
+
FootballGameApi.prototype.getUserStatistic = function (gameId) {
|
|
3425
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3426
|
+
return __generator(this, function (_a) {
|
|
3427
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/user_statistic/").pipe(map(function (result) { return FootballGameStatistic.toFront(result); })).toPromise()];
|
|
3428
|
+
});
|
|
3429
|
+
});
|
|
3430
|
+
};
|
|
3431
|
+
FootballGameApi.prototype.getLogs = function (gameId) {
|
|
3432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3433
|
+
return __generator(this, function (_a) {
|
|
3434
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/logs/").pipe(map(function (result) { return FootballGameLog.toFront(result); })).toPromise()];
|
|
3435
|
+
});
|
|
3436
|
+
});
|
|
3437
|
+
};
|
|
3438
|
+
FootballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
3439
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3440
|
+
return __generator(this, function (_a) {
|
|
3441
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/game_protocol/", {
|
|
3442
|
+
params: new HttpParams().set('file_type', format),
|
|
3443
|
+
responseType: 'blob'
|
|
3444
|
+
}).toPromise()];
|
|
3445
|
+
});
|
|
3446
|
+
});
|
|
3447
|
+
};
|
|
3448
|
+
FootballGameApi.prototype.downloadApplication = function (gameId, format, type) {
|
|
3449
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3450
|
+
return __generator(this, function (_a) {
|
|
3451
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_football_game/" + gameId + "/game_application_file/", {
|
|
3452
|
+
params: new HttpParams().set('file_type', format).set('application_type', type),
|
|
3453
|
+
responseType: 'blob'
|
|
3454
|
+
}).toPromise()];
|
|
3455
|
+
});
|
|
3456
|
+
});
|
|
3457
|
+
};
|
|
3458
|
+
FootballGameApi.ctorParameters = function () { return [
|
|
3459
|
+
{ type: HttpClient },
|
|
3460
|
+
{ type: ConfigService }
|
|
3461
|
+
]; };
|
|
3462
|
+
FootballGameApi.ɵprov = ɵɵdefineInjectable({ factory: function FootballGameApi_Factory() { return new FootballGameApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: FootballGameApi, providedIn: "root" });
|
|
3463
|
+
FootballGameApi = __decorate([
|
|
3464
|
+
Injectable({ providedIn: 'root' })
|
|
3465
|
+
], FootballGameApi);
|
|
3466
|
+
return FootballGameApi;
|
|
3467
|
+
}());
|
|
3468
|
+
|
|
2872
3469
|
var LeagueNewsType;
|
|
2873
3470
|
(function (LeagueNewsType) {
|
|
2874
3471
|
LeagueNewsType[LeagueNewsType["text"] = 1] = "text";
|
|
@@ -5431,6 +6028,36 @@ var TournamentApi = /** @class */ (function () {
|
|
|
5431
6028
|
});
|
|
5432
6029
|
});
|
|
5433
6030
|
};
|
|
6031
|
+
TournamentApi.prototype.getFootballStatistic = function (filters) {
|
|
6032
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6033
|
+
var params, _a, _b, key;
|
|
6034
|
+
var e_4, _c;
|
|
6035
|
+
return __generator(this, function (_d) {
|
|
6036
|
+
params = new HttpParams();
|
|
6037
|
+
if (filters) {
|
|
6038
|
+
try {
|
|
6039
|
+
for (_a = __values(Object.keys(filters)), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
6040
|
+
key = _b.value;
|
|
6041
|
+
if (filters[key]) {
|
|
6042
|
+
params = params.set(key, filters[key]);
|
|
6043
|
+
}
|
|
6044
|
+
}
|
|
6045
|
+
}
|
|
6046
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
6047
|
+
finally {
|
|
6048
|
+
try {
|
|
6049
|
+
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
6050
|
+
}
|
|
6051
|
+
finally { if (e_4) throw e_4.error; }
|
|
6052
|
+
}
|
|
6053
|
+
if (filters.per_game !== undefined) {
|
|
6054
|
+
params = params.set('per_game', filters.per_game ? '1' : '0');
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/football_statistic/", { params: params }).pipe(map(function (result) { return FootballStatistic.toFront(result); })).toPromise()];
|
|
6058
|
+
});
|
|
6059
|
+
});
|
|
6060
|
+
};
|
|
5434
6061
|
TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
|
|
5435
6062
|
return __awaiter(this, void 0, void 0, function () {
|
|
5436
6063
|
return __generator(this, function (_a) {
|
|
@@ -6501,31 +7128,62 @@ var HockeyGameLogTypeLocalization = (_a$2 = {},
|
|
|
6501
7128
|
_a$2);
|
|
6502
7129
|
|
|
6503
7130
|
var _a$3;
|
|
6504
|
-
var
|
|
6505
|
-
_a$3[
|
|
6506
|
-
_a$3[
|
|
6507
|
-
_a$3[
|
|
6508
|
-
_a$3[
|
|
6509
|
-
_a$3[
|
|
6510
|
-
_a$3[
|
|
6511
|
-
_a$3[
|
|
7131
|
+
var FootballGameLogTypeLocalization = (_a$3 = {},
|
|
7132
|
+
_a$3[FootballGameLogTypes.enter_game] = 'Выход на поле',
|
|
7133
|
+
_a$3[FootballGameLogTypes.exit_game] = 'Ушел с поля',
|
|
7134
|
+
_a$3[FootballGameLogTypes.shot_miss] = 'Удар мимо',
|
|
7135
|
+
_a$3[FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
|
|
7136
|
+
_a$3[FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
|
|
7137
|
+
_a$3[FootballGameLogTypes.goal] = 'Гол',
|
|
7138
|
+
_a$3[FootballGameLogTypes.assist] = 'Передача',
|
|
7139
|
+
_a$3[FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
|
|
7140
|
+
_a$3[FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
|
|
7141
|
+
_a$3[FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
|
|
7142
|
+
_a$3[FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
|
|
7143
|
+
_a$3[FootballGameLogTypes.block_shot] = 'Блокировка удара',
|
|
7144
|
+
_a$3[FootballGameLogTypes.corner] = 'Угловой',
|
|
7145
|
+
_a$3[FootballGameLogTypes.free_kick] = 'Штрафной удар',
|
|
7146
|
+
_a$3[FootballGameLogTypes.save] = 'Отражен удар',
|
|
7147
|
+
_a$3[FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
|
|
7148
|
+
_a$3[FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
|
|
7149
|
+
_a$3[FootballGameLogTypes.foul] = 'Фол',
|
|
7150
|
+
_a$3[FootballGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
7151
|
+
_a$3[FootballGameLogTypes.red_card] = 'Красная карточка',
|
|
7152
|
+
_a$3[FootballGameLogTypes.perfect_pass] = 'Пас',
|
|
7153
|
+
_a$3[FootballGameLogTypes.loss] = 'Потеря',
|
|
7154
|
+
_a$3[FootballGameLogTypes.steal] = 'Перехват',
|
|
7155
|
+
_a$3[FootballGameLogTypes.out] = 'Аут',
|
|
7156
|
+
_a$3[FootballGameLogTypes.timeout] = 'Таймаут',
|
|
6512
7157
|
_a$3);
|
|
6513
7158
|
|
|
6514
7159
|
var _a$4;
|
|
6515
|
-
var
|
|
6516
|
-
_a$4[
|
|
6517
|
-
_a$4[
|
|
6518
|
-
_a$4[
|
|
7160
|
+
var OvertimeTypeLocalization = (_a$4 = {},
|
|
7161
|
+
_a$4[OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
|
|
7162
|
+
_a$4[OvertimeTypes.to_score_total] = 'До N очков',
|
|
7163
|
+
_a$4[OvertimeTypes.time] = 'По времени',
|
|
7164
|
+
_a$4[OvertimeTypes.without_overtime] = 'Без овертайма',
|
|
7165
|
+
_a$4[OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
|
|
7166
|
+
_a$4[OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
|
|
7167
|
+
_a$4[OvertimeTypes.bullitts] = 'Буллиты',
|
|
7168
|
+
_a$4[OvertimeTypes.penalties] = 'Пенальти',
|
|
7169
|
+
_a$4[OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
|
|
6519
7170
|
_a$4);
|
|
6520
7171
|
|
|
6521
|
-
var _a$5
|
|
6522
|
-
var
|
|
6523
|
-
_a$5[
|
|
6524
|
-
_a$5[
|
|
6525
|
-
_a$5[
|
|
6526
|
-
_a$5[GameBasketballPosition.power_forward] = 'Мощный форвард',
|
|
6527
|
-
_a$5[GameBasketballPosition.center] = 'Центровой',
|
|
7172
|
+
var _a$5;
|
|
7173
|
+
var TeamUserRoleLocalization = (_a$5 = {},
|
|
7174
|
+
_a$5[TeamUserRole.moderator] = 'Модератор',
|
|
7175
|
+
_a$5[TeamUserRole.member] = 'Пользователь',
|
|
7176
|
+
_a$5[TeamUserRole.admin] = 'Владелец',
|
|
6528
7177
|
_a$5);
|
|
7178
|
+
|
|
7179
|
+
var _a$6, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7180
|
+
var GameBasketballPositionLocalization = (_a$6 = {},
|
|
7181
|
+
_a$6[GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
|
|
7182
|
+
_a$6[GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
|
|
7183
|
+
_a$6[GameBasketballPosition.small_forward] = 'Легкий форвард',
|
|
7184
|
+
_a$6[GameBasketballPosition.power_forward] = 'Мощный форвард',
|
|
7185
|
+
_a$6[GameBasketballPosition.center] = 'Центровой',
|
|
7186
|
+
_a$6);
|
|
6529
7187
|
var GameBasketballPositionShortLocalization = (_b = {},
|
|
6530
7188
|
_b[GameBasketballPosition.point_guard] = 'PG',
|
|
6531
7189
|
_b[GameBasketballPosition.shooting_guard] = 'SG',
|
|
@@ -6567,32 +7225,43 @@ var GameHockeyPositionLocalization = (_h = {},
|
|
|
6567
7225
|
_h[GameHockeyPosition.defensemen] = 'Защитник',
|
|
6568
7226
|
_h[GameHockeyPosition.forward] = 'Нападающий',
|
|
6569
7227
|
_h);
|
|
7228
|
+
var GameFootballPositionLocalization = (_j = {},
|
|
7229
|
+
_j[GameFootballPosition.goalkeeper] = 'Вратарь',
|
|
7230
|
+
_j[GameFootballPosition.defensemen] = 'Защитник',
|
|
7231
|
+
_j[GameFootballPosition.midfielder] = 'Полузащитник',
|
|
7232
|
+
_j[GameFootballPosition.forward] = 'Нападающий',
|
|
7233
|
+
_j);
|
|
7234
|
+
var FootballWorkFootLocalization = (_k = {},
|
|
7235
|
+
_k[FootballWorkFoot.left] = 'Левая',
|
|
7236
|
+
_k[FootballWorkFoot.right] = 'Правая',
|
|
7237
|
+
_k[FootballWorkFoot.both] = 'Обе',
|
|
7238
|
+
_k);
|
|
6570
7239
|
|
|
6571
|
-
var _a$
|
|
6572
|
-
var VolleyballGameLogTypeLocalization = (_a$
|
|
6573
|
-
_a$
|
|
6574
|
-
_a$
|
|
6575
|
-
_a$
|
|
6576
|
-
_a$
|
|
6577
|
-
_a$
|
|
6578
|
-
_a$
|
|
6579
|
-
_a$
|
|
6580
|
-
_a$
|
|
6581
|
-
_a$
|
|
6582
|
-
_a$
|
|
6583
|
-
_a$
|
|
6584
|
-
_a$
|
|
6585
|
-
_a$
|
|
6586
|
-
_a$
|
|
6587
|
-
_a$
|
|
6588
|
-
_a$
|
|
6589
|
-
_a$
|
|
6590
|
-
_a$
|
|
6591
|
-
_a$
|
|
6592
|
-
_a$
|
|
6593
|
-
_a$
|
|
6594
|
-
_a$
|
|
6595
|
-
_a$
|
|
7240
|
+
var _a$7;
|
|
7241
|
+
var VolleyballGameLogTypeLocalization = (_a$7 = {},
|
|
7242
|
+
_a$7[VolleyballGameLogType.enter_game] = 'Выход на площадку',
|
|
7243
|
+
_a$7[VolleyballGameLogType.exit_game] = 'Уход с площадки',
|
|
7244
|
+
_a$7[VolleyballGameLogType.remove_game] = 'Удаление с площадки',
|
|
7245
|
+
_a$7[VolleyballGameLogType.serve_ace] = 'Эйс',
|
|
7246
|
+
_a$7[VolleyballGameLogType.serve_hit] = 'Подача',
|
|
7247
|
+
_a$7[VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
|
|
7248
|
+
_a$7[VolleyballGameLogType.attack_spike] = 'Результативная атака',
|
|
7249
|
+
_a$7[VolleyballGameLogType.attack_shot] = 'Успешная атака',
|
|
7250
|
+
_a$7[VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
|
|
7251
|
+
_a$7[VolleyballGameLogType.stuff_block] = 'Результативный блок',
|
|
7252
|
+
_a$7[VolleyballGameLogType.block_rebound] = 'Успешный блок',
|
|
7253
|
+
_a$7[VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
|
|
7254
|
+
_a$7[VolleyballGameLogType.excellent_receive] = 'Отличный прием',
|
|
7255
|
+
_a$7[VolleyballGameLogType.receive] = 'Прием',
|
|
7256
|
+
_a$7[VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
|
|
7257
|
+
_a$7[VolleyballGameLogType.serve_receive] = 'Прием подачи',
|
|
7258
|
+
_a$7[VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
|
|
7259
|
+
_a$7[VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
|
|
7260
|
+
_a$7[VolleyballGameLogType.point] = 'Очко',
|
|
7261
|
+
_a$7[VolleyballGameLogType.fault] = 'Ошибка',
|
|
7262
|
+
_a$7[VolleyballGameLogType.timeout] = 'Таймаут',
|
|
7263
|
+
_a$7[VolleyballGameLogType.yellow_card] = 'Предупреждение',
|
|
7264
|
+
_a$7);
|
|
6596
7265
|
|
|
6597
7266
|
var LeaguePlaylist = /** @class */ (function (_super) {
|
|
6598
7267
|
__extends(LeaguePlaylist, _super);
|
|
@@ -7038,5 +7707,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
|
|
|
7038
7707
|
* Generated bundle index. Do not edit.
|
|
7039
7708
|
*/
|
|
7040
7709
|
|
|
7041
|
-
export { BannerLocation, BaseModel, BaseService, BaseStatistic, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlaylist, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl, penaltyTypeField as ɵa };
|
|
7710
|
+
export { BannerLocation, BaseModel, BaseService, BaseStatistic, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlaylist, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl, penaltyTypeField as ɵa };
|
|
7042
7711
|
//# sourceMappingURL=mtgame-core.js.map
|