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