@mtgame/core 0.1.114 → 0.1.117
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 +1 -0
- package/api/tournament-api.d.ts +5 -0
- package/api/waterpolo-game-api.d.ts +18 -0
- package/bundles/mtgame-core.umd.js +1116 -155
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +24 -1
- package/esm2015/api/waterpolo-game-api.js +65 -0
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/user-profile.js +18 -1
- package/esm2015/localization/waterpolo-game-log-types.js +33 -0
- package/esm2015/models/game.js +18 -2
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/team.js +7 -1
- package/esm2015/models/tournament.js +10 -1
- package/esm2015/models/user.js +4 -1
- package/esm2015/models/waterpolo-game-config.js +45 -0
- package/esm2015/models/waterpolo-game-log.js +135 -0
- package/esm2015/models/waterpolo-game-statistic.js +198 -0
- package/esm2015/models/waterpolo-game-team-statistic.js +27 -0
- package/esm2015/models/waterpolo-profile.js +42 -0
- package/esm2015/models/waterpolo-statistic.js +156 -0
- package/fesm2015/mtgame-core.js +744 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/user-profile.d.ts +16 -0
- package/localization/waterpolo-game-log-types.d.ts +31 -0
- package/models/game.d.ts +5 -1
- package/models/public-api.d.ts +6 -0
- package/models/sport.d.ts +7 -1
- package/models/user.d.ts +2 -0
- package/models/waterpolo-game-config.d.ts +20 -0
- package/models/waterpolo-game-log.d.ts +81 -0
- package/models/waterpolo-game-statistic.d.ts +96 -0
- package/models/waterpolo-game-team-statistic.d.ts +9 -0
- package/models/waterpolo-profile.d.ts +19 -0
- package/models/waterpolo-statistic.d.ts +115 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -777,6 +777,9 @@
|
|
|
777
777
|
SportTypes[SportTypes["rugby7"] = 16] = "rugby7";
|
|
778
778
|
SportTypes[SportTypes["rugby15"] = 17] = "rugby15";
|
|
779
779
|
SportTypes[SportTypes["basketball_1x1"] = 18] = "basketball_1x1";
|
|
780
|
+
SportTypes[SportTypes["waterpolo"] = 19] = "waterpolo";
|
|
781
|
+
SportTypes[SportTypes["classic_waterpolo"] = 20] = "classic_waterpolo";
|
|
782
|
+
SportTypes[SportTypes["mini_waterpolo"] = 21] = "mini_waterpolo";
|
|
780
783
|
})(exports.SportTypes || (exports.SportTypes = {}));
|
|
781
784
|
exports.Sport = /** @class */ (function (_super) {
|
|
782
785
|
__extends(Sport, _super);
|
|
@@ -837,6 +840,15 @@
|
|
|
837
840
|
Sport.prototype.isRugby7 = function () {
|
|
838
841
|
return this.id === exports.SportTypes.rugby7;
|
|
839
842
|
};
|
|
843
|
+
Sport.prototype.isWaterpolo = function () {
|
|
844
|
+
return this.id === exports.SportTypes.waterpolo || this.parentId === exports.SportTypes.waterpolo;
|
|
845
|
+
};
|
|
846
|
+
Sport.prototype.isClassicWaterpolo = function () {
|
|
847
|
+
return this.id === exports.SportTypes.classic_waterpolo;
|
|
848
|
+
};
|
|
849
|
+
Sport.prototype.isMiniWaterpolo = function () {
|
|
850
|
+
return this.id === exports.SportTypes.mini_waterpolo;
|
|
851
|
+
};
|
|
840
852
|
Sport.toFront = function (data) {
|
|
841
853
|
return null;
|
|
842
854
|
};
|
|
@@ -1167,6 +1179,50 @@
|
|
|
1167
1179
|
})
|
|
1168
1180
|
], exports.RugbyProfile);
|
|
1169
1181
|
|
|
1182
|
+
exports.GameWaterpoloPosition = void 0;
|
|
1183
|
+
(function (GameWaterpoloPosition) {
|
|
1184
|
+
GameWaterpoloPosition[GameWaterpoloPosition["goalkeeper"] = 1] = "goalkeeper";
|
|
1185
|
+
GameWaterpoloPosition[GameWaterpoloPosition["defensemen"] = 2] = "defensemen";
|
|
1186
|
+
GameWaterpoloPosition[GameWaterpoloPosition["center_forward"] = 3] = "center_forward";
|
|
1187
|
+
GameWaterpoloPosition[GameWaterpoloPosition["mobile_forward"] = 4] = "mobile_forward";
|
|
1188
|
+
})(exports.GameWaterpoloPosition || (exports.GameWaterpoloPosition = {}));
|
|
1189
|
+
exports.WaterpoloWorkHand = void 0;
|
|
1190
|
+
(function (WaterpoloWorkHand) {
|
|
1191
|
+
WaterpoloWorkHand[WaterpoloWorkHand["left"] = 1] = "left";
|
|
1192
|
+
WaterpoloWorkHand[WaterpoloWorkHand["right"] = 2] = "right";
|
|
1193
|
+
})(exports.WaterpoloWorkHand || (exports.WaterpoloWorkHand = {}));
|
|
1194
|
+
exports.WaterpoloProfile = /** @class */ (function (_super) {
|
|
1195
|
+
__extends(WaterpoloProfile, _super);
|
|
1196
|
+
function WaterpoloProfile() {
|
|
1197
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1198
|
+
}
|
|
1199
|
+
WaterpoloProfile.toFront = function (value) {
|
|
1200
|
+
};
|
|
1201
|
+
WaterpoloProfile.toBack = function (value) {
|
|
1202
|
+
};
|
|
1203
|
+
return WaterpoloProfile;
|
|
1204
|
+
}(BaseModel));
|
|
1205
|
+
__decorate([
|
|
1206
|
+
ToFrontHook
|
|
1207
|
+
], exports.WaterpoloProfile, "toFront", null);
|
|
1208
|
+
__decorate([
|
|
1209
|
+
ToBackHook
|
|
1210
|
+
], exports.WaterpoloProfile, "toBack", null);
|
|
1211
|
+
exports.WaterpoloProfile = __decorate([
|
|
1212
|
+
ModelInstance({
|
|
1213
|
+
mappingFields: {
|
|
1214
|
+
id: 'id',
|
|
1215
|
+
user_id: 'userId',
|
|
1216
|
+
position: 'position',
|
|
1217
|
+
work_hand: 'workHand'
|
|
1218
|
+
},
|
|
1219
|
+
relation: {
|
|
1220
|
+
position: enumField(exports.GameWaterpoloPosition),
|
|
1221
|
+
workHand: enumField(exports.WaterpoloWorkHand)
|
|
1222
|
+
}
|
|
1223
|
+
})
|
|
1224
|
+
], exports.WaterpoloProfile);
|
|
1225
|
+
|
|
1170
1226
|
exports.UserGender = void 0;
|
|
1171
1227
|
(function (UserGender) {
|
|
1172
1228
|
UserGender[UserGender["male"] = 1] = "male";
|
|
@@ -1241,6 +1297,7 @@
|
|
|
1241
1297
|
football_profile: 'footballProfile',
|
|
1242
1298
|
handball_profile: 'handballProfile',
|
|
1243
1299
|
rugby_profile: 'rugbyProfile',
|
|
1300
|
+
wateprolo_profile: 'waterpoloProfile',
|
|
1244
1301
|
wizards: 'wizards',
|
|
1245
1302
|
city: 'city',
|
|
1246
1303
|
gender: 'gender',
|
|
@@ -1256,6 +1313,7 @@
|
|
|
1256
1313
|
footballProfile: exports.FootballProfile,
|
|
1257
1314
|
handballProfile: exports.HandballProfile,
|
|
1258
1315
|
rugbyProfile: exports.RugbyProfile,
|
|
1316
|
+
waterpoloProfile: exports.WaterpoloProfile,
|
|
1259
1317
|
city: exports.City,
|
|
1260
1318
|
gender: enumField(exports.UserGender)
|
|
1261
1319
|
}
|
|
@@ -1284,6 +1342,12 @@
|
|
|
1284
1342
|
if (this.sport.isHandball()) {
|
|
1285
1343
|
classList.push('empty-logo-handball');
|
|
1286
1344
|
}
|
|
1345
|
+
if (this.sport.isRugby()) {
|
|
1346
|
+
classList.push('empty-logo-rugby');
|
|
1347
|
+
}
|
|
1348
|
+
if (this.sport.isWaterpolo()) {
|
|
1349
|
+
classList.push('empty-logo-waterpolo');
|
|
1350
|
+
}
|
|
1287
1351
|
return classList.join(' ');
|
|
1288
1352
|
};
|
|
1289
1353
|
Team.toFront = function (data) {
|
|
@@ -1690,6 +1754,15 @@
|
|
|
1690
1754
|
if (this.sport.isFootball()) {
|
|
1691
1755
|
classList.push('empty-logo-football');
|
|
1692
1756
|
}
|
|
1757
|
+
if (this.sport.isHandball()) {
|
|
1758
|
+
classList.push('empty-logo-handball');
|
|
1759
|
+
}
|
|
1760
|
+
if (this.sport.isRugby()) {
|
|
1761
|
+
classList.push('empty-logo-rugby');
|
|
1762
|
+
}
|
|
1763
|
+
if (this.sport.isWaterpolo()) {
|
|
1764
|
+
classList.push('empty-logo-waterpolo');
|
|
1765
|
+
}
|
|
1693
1766
|
return classList.join(' ');
|
|
1694
1767
|
};
|
|
1695
1768
|
Tournament.toFront = function (data) { };
|
|
@@ -2239,6 +2312,64 @@
|
|
|
2239
2312
|
})
|
|
2240
2313
|
], exports.RugbyGameConfig);
|
|
2241
2314
|
|
|
2315
|
+
exports.WaterpoloGameConfig = /** @class */ (function (_super) {
|
|
2316
|
+
__extends(WaterpoloGameConfig, _super);
|
|
2317
|
+
function WaterpoloGameConfig() {
|
|
2318
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2319
|
+
}
|
|
2320
|
+
WaterpoloGameConfig.toFront = function (data) { };
|
|
2321
|
+
WaterpoloGameConfig.toBack = function (data) { };
|
|
2322
|
+
Object.defineProperty(WaterpoloGameConfig.prototype, "overtimePeriod", {
|
|
2323
|
+
get: function () {
|
|
2324
|
+
return this.periodsCount + 1;
|
|
2325
|
+
},
|
|
2326
|
+
enumerable: false,
|
|
2327
|
+
configurable: true
|
|
2328
|
+
});
|
|
2329
|
+
Object.defineProperty(WaterpoloGameConfig.prototype, "bullitsPeriod", {
|
|
2330
|
+
get: function () {
|
|
2331
|
+
return this.periodsCount + 2;
|
|
2332
|
+
},
|
|
2333
|
+
enumerable: false,
|
|
2334
|
+
configurable: true
|
|
2335
|
+
});
|
|
2336
|
+
Object.defineProperty(WaterpoloGameConfig.prototype, "playoffBullitsPeriod", {
|
|
2337
|
+
get: function () {
|
|
2338
|
+
return this.periodsCount + 3;
|
|
2339
|
+
},
|
|
2340
|
+
enumerable: false,
|
|
2341
|
+
configurable: true
|
|
2342
|
+
});
|
|
2343
|
+
return WaterpoloGameConfig;
|
|
2344
|
+
}(BaseModel));
|
|
2345
|
+
__decorate([
|
|
2346
|
+
ToFrontHook
|
|
2347
|
+
], exports.WaterpoloGameConfig, "toFront", null);
|
|
2348
|
+
__decorate([
|
|
2349
|
+
ToBackHook
|
|
2350
|
+
], exports.WaterpoloGameConfig, "toBack", null);
|
|
2351
|
+
exports.WaterpoloGameConfig = __decorate([
|
|
2352
|
+
ModelInstance({
|
|
2353
|
+
mappingFields: {
|
|
2354
|
+
periods_count: 'periodsCount',
|
|
2355
|
+
period_time: 'periodTime',
|
|
2356
|
+
overtime_type: 'overtimeType',
|
|
2357
|
+
overtime_time: 'overtimeTime',
|
|
2358
|
+
max_game_players: 'maxGamePlayers',
|
|
2359
|
+
timeout_count: 'timeoutCount',
|
|
2360
|
+
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
2361
|
+
timeout_time: 'timeoutTime',
|
|
2362
|
+
game_time_type: 'gameTimeType',
|
|
2363
|
+
substitute_manage_enabled: 'substituteManageEnabled',
|
|
2364
|
+
shot_clock_enabled: 'shotClockEnabled',
|
|
2365
|
+
},
|
|
2366
|
+
relation: {
|
|
2367
|
+
overtimeType: enumField(exports.OvertimeTypes),
|
|
2368
|
+
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2369
|
+
}
|
|
2370
|
+
})
|
|
2371
|
+
], exports.WaterpoloGameConfig);
|
|
2372
|
+
|
|
2242
2373
|
exports.GameStatuses = void 0;
|
|
2243
2374
|
(function (GameStatuses) {
|
|
2244
2375
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -2382,6 +2513,22 @@
|
|
|
2382
2513
|
enumerable: false,
|
|
2383
2514
|
configurable: true
|
|
2384
2515
|
});
|
|
2516
|
+
Object.defineProperty(Game.prototype, "waterpoloGameConfig", {
|
|
2517
|
+
get: function () {
|
|
2518
|
+
if (this._waterpoloGameConfig && this._waterpoloGameConfig.periodsCount) {
|
|
2519
|
+
return this._waterpoloGameConfig;
|
|
2520
|
+
}
|
|
2521
|
+
if (this.gameConfig) {
|
|
2522
|
+
this._waterpoloGameConfig = exports.WaterpoloGameConfig.toFront(this.gameConfig);
|
|
2523
|
+
}
|
|
2524
|
+
return this._waterpoloGameConfig;
|
|
2525
|
+
},
|
|
2526
|
+
set: function (value) {
|
|
2527
|
+
this._waterpoloGameConfig = value;
|
|
2528
|
+
},
|
|
2529
|
+
enumerable: false,
|
|
2530
|
+
configurable: true
|
|
2531
|
+
});
|
|
2385
2532
|
Object.defineProperty(Game.prototype, "scoreByPeriodList", {
|
|
2386
2533
|
get: function () {
|
|
2387
2534
|
var _this = this;
|
|
@@ -2473,6 +2620,7 @@
|
|
|
2473
2620
|
football_game_config: 'footballGameConfig',
|
|
2474
2621
|
handball_game_config: 'handballGameConfig',
|
|
2475
2622
|
rugby_game_config: 'rugbyGameConfig',
|
|
2623
|
+
waterpolo_game_config: 'waterpoloGameConfig',
|
|
2476
2624
|
score_by_period: 'scoreByPeriod',
|
|
2477
2625
|
playoff_stage: 'playoffStage',
|
|
2478
2626
|
playoff_round: 'playoffRound',
|
|
@@ -2499,6 +2647,8 @@
|
|
|
2499
2647
|
hockeyGameConfig: exports.HockeyGameConfig,
|
|
2500
2648
|
footballGameConfig: exports.FootballGameConfig,
|
|
2501
2649
|
handballGameConfig: exports.HandballGameConfig,
|
|
2650
|
+
rugbyGameConfig: exports.RugbyGameConfig,
|
|
2651
|
+
waterpoloGameConfig: exports.WaterpoloGameConfig,
|
|
2502
2652
|
tournamentPlayoff: exports.Playoff,
|
|
2503
2653
|
tournamentCourt: exports.LeagueCourt,
|
|
2504
2654
|
media: listField(exports.MediaItem),
|
|
@@ -2871,16 +3021,16 @@
|
|
|
2871
3021
|
})
|
|
2872
3022
|
], exports.TournamentDisqualification);
|
|
2873
3023
|
|
|
2874
|
-
var _a$
|
|
3024
|
+
var _a$h;
|
|
2875
3025
|
exports.Qualification = void 0;
|
|
2876
3026
|
(function (Qualification) {
|
|
2877
3027
|
Qualification[Qualification["practician"] = 1] = "practician";
|
|
2878
3028
|
Qualification[Qualification["amateur"] = 2] = "amateur";
|
|
2879
3029
|
})(exports.Qualification || (exports.Qualification = {}));
|
|
2880
|
-
var QualificationLocalization = (_a$
|
|
2881
|
-
_a$
|
|
2882
|
-
_a$
|
|
2883
|
-
_a$
|
|
3030
|
+
var QualificationLocalization = (_a$h = {},
|
|
3031
|
+
_a$h[exports.Qualification.practician] = 'Практик',
|
|
3032
|
+
_a$h[exports.Qualification.amateur] = 'Любитель',
|
|
3033
|
+
_a$h);
|
|
2884
3034
|
exports.LeaguePlayer = /** @class */ (function (_super) {
|
|
2885
3035
|
__extends(LeaguePlayer, _super);
|
|
2886
3036
|
function LeaguePlayer() {
|
|
@@ -6102,6 +6252,178 @@
|
|
|
6102
6252
|
})
|
|
6103
6253
|
], exports.TeamAchievement);
|
|
6104
6254
|
|
|
6255
|
+
exports.WaterpoloStatistic = /** @class */ (function (_super) {
|
|
6256
|
+
__extends(WaterpoloStatistic, _super);
|
|
6257
|
+
function WaterpoloStatistic() {
|
|
6258
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6259
|
+
}
|
|
6260
|
+
Object.defineProperty(WaterpoloStatistic.prototype, "assists", {
|
|
6261
|
+
get: function () {
|
|
6262
|
+
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
6263
|
+
},
|
|
6264
|
+
enumerable: false,
|
|
6265
|
+
configurable: true
|
|
6266
|
+
});
|
|
6267
|
+
Object.defineProperty(WaterpoloStatistic.prototype, "goalpass", {
|
|
6268
|
+
get: function () {
|
|
6269
|
+
return (this.totalGoals || 0) + (this.assists || 0);
|
|
6270
|
+
},
|
|
6271
|
+
enumerable: false,
|
|
6272
|
+
configurable: true
|
|
6273
|
+
});
|
|
6274
|
+
Object.defineProperty(WaterpoloStatistic.prototype, "userMinutes", {
|
|
6275
|
+
get: function () {
|
|
6276
|
+
if (!this.gameTime) {
|
|
6277
|
+
return '00:00';
|
|
6278
|
+
}
|
|
6279
|
+
var minutes = Math.floor(this.gameTime / 60);
|
|
6280
|
+
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
6281
|
+
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
6282
|
+
},
|
|
6283
|
+
enumerable: false,
|
|
6284
|
+
configurable: true
|
|
6285
|
+
});
|
|
6286
|
+
Object.defineProperty(WaterpoloStatistic.prototype, "gamesWonPercent", {
|
|
6287
|
+
get: function () {
|
|
6288
|
+
if (!this.gamesCount) {
|
|
6289
|
+
return 0;
|
|
6290
|
+
}
|
|
6291
|
+
return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
|
|
6292
|
+
},
|
|
6293
|
+
enumerable: false,
|
|
6294
|
+
configurable: true
|
|
6295
|
+
});
|
|
6296
|
+
Object.defineProperty(WaterpoloStatistic.prototype, "tournamentTeamPoints", {
|
|
6297
|
+
get: function () {
|
|
6298
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
6299
|
+
},
|
|
6300
|
+
enumerable: false,
|
|
6301
|
+
configurable: true
|
|
6302
|
+
});
|
|
6303
|
+
WaterpoloStatistic.toFront = function (data) { };
|
|
6304
|
+
WaterpoloStatistic.toBack = function (data) { };
|
|
6305
|
+
return WaterpoloStatistic;
|
|
6306
|
+
}(BaseModel));
|
|
6307
|
+
__decorate([
|
|
6308
|
+
ToFrontHook
|
|
6309
|
+
], exports.WaterpoloStatistic, "toFront", null);
|
|
6310
|
+
__decorate([
|
|
6311
|
+
ToBackHook
|
|
6312
|
+
], exports.WaterpoloStatistic, "toBack", null);
|
|
6313
|
+
exports.WaterpoloStatistic = __decorate([
|
|
6314
|
+
ModelInstance({
|
|
6315
|
+
mappingFields: {
|
|
6316
|
+
league_player: 'leaguePlayer',
|
|
6317
|
+
tournament_team_user: 'tournamentTeamUser',
|
|
6318
|
+
team: 'team',
|
|
6319
|
+
team_user: 'teamUser',
|
|
6320
|
+
user: 'user',
|
|
6321
|
+
tournament_team: 'tournamentTeam',
|
|
6322
|
+
month: 'month',
|
|
6323
|
+
win_lose: 'winLose',
|
|
6324
|
+
games_count: 'gamesCount',
|
|
6325
|
+
won_games_count: 'wonGamesCount',
|
|
6326
|
+
lose_games_count: 'loseGamesCount',
|
|
6327
|
+
points: 'points',
|
|
6328
|
+
pp_shots: 'ppShots',
|
|
6329
|
+
pp_shot_misses: 'ppShotMisses',
|
|
6330
|
+
pp_shots_on_goal: 'ppShotsOnGoal',
|
|
6331
|
+
pp_shots_blocked: 'ppShotsBlocked',
|
|
6332
|
+
ev_shots: 'evShots',
|
|
6333
|
+
ev_shot_misses: 'evShotMisses',
|
|
6334
|
+
ev_shots_on_goal: 'evShotsOnGoal',
|
|
6335
|
+
ev_shots_blocked: 'evShotsBlocked',
|
|
6336
|
+
sh_shots: 'shShots',
|
|
6337
|
+
sh_shot_misses: 'shShotMisses',
|
|
6338
|
+
sh_shots_on_goal: 'shShotsOnGoal',
|
|
6339
|
+
sh_shots_blocked: 'shShotsBlocked',
|
|
6340
|
+
pp_goals_percent: 'ppGoalsPercent',
|
|
6341
|
+
pp_goals: 'ppGoals',
|
|
6342
|
+
ev_goals_percent: 'evGoalsPercent',
|
|
6343
|
+
ev_goals: 'evGoals',
|
|
6344
|
+
sh_goals_percent: 'shGoalsPercent',
|
|
6345
|
+
goals: 'goals',
|
|
6346
|
+
total_goals: 'totalGoals',
|
|
6347
|
+
sh_goals: 'shGoals',
|
|
6348
|
+
shot_misses: 'shotMisses',
|
|
6349
|
+
shots_on_goal: 'shotsOnGoal',
|
|
6350
|
+
shots_blocked: 'shotsBlocked',
|
|
6351
|
+
shots: 'shots',
|
|
6352
|
+
total_shots: 'totalShots',
|
|
6353
|
+
goals_percent: 'goalsPercent',
|
|
6354
|
+
total_goals_percent: 'totalGoalsPercent',
|
|
6355
|
+
pp_assists: 'ppAssists',
|
|
6356
|
+
ev_assists: 'evAssists',
|
|
6357
|
+
sh_assists: 'shAssists',
|
|
6358
|
+
shootout_attempts: 'shootoutAttempts',
|
|
6359
|
+
shootout_goals: 'shootoutGoals',
|
|
6360
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
6361
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
6362
|
+
block_shots: 'blockShots',
|
|
6363
|
+
face_off_losses: 'faceOffLosses',
|
|
6364
|
+
face_off_wins: 'faceOffWins',
|
|
6365
|
+
face_offs: 'faceOffs',
|
|
6366
|
+
face_off_percent: 'faceOffPercent',
|
|
6367
|
+
saves: 'saves',
|
|
6368
|
+
total_saves: 'totalSaves',
|
|
6369
|
+
shootout_saves: 'shootoutSaves',
|
|
6370
|
+
shots_against: 'shotsAgainst',
|
|
6371
|
+
shootout_shots_against: 'shootoutShotsAgainst',
|
|
6372
|
+
total_shots_against: 'totalShotsAgainst',
|
|
6373
|
+
saves_percent: 'savesPercent',
|
|
6374
|
+
total_saves_percent: 'totalSavesPercent',
|
|
6375
|
+
goals_against: 'goalsAgainst',
|
|
6376
|
+
shootout_goals_against: 'shootoutGoalsAgainst',
|
|
6377
|
+
total_goals_against: 'totalGoalsAgainst',
|
|
6378
|
+
safety_rate: 'safetyRate',
|
|
6379
|
+
penalty_minutes: 'penaltyMinutes',
|
|
6380
|
+
game_time: 'gameTime',
|
|
6381
|
+
plus_minus: 'plusMinus',
|
|
6382
|
+
yellow_cards: 'yellowCards',
|
|
6383
|
+
red_cards: 'redCards',
|
|
6384
|
+
fouls: 'fouls',
|
|
6385
|
+
losses: 'losses',
|
|
6386
|
+
steals: 'steals',
|
|
6387
|
+
drawn_fouls: 'drawnFouls',
|
|
6388
|
+
pp_free_kick_goals: 'ppFreeKickGoals',
|
|
6389
|
+
pp_free_kick_on_goals: 'ppFreeKickOnGoals',
|
|
6390
|
+
pp_free_kick_misses: 'ppFreeKickMisses',
|
|
6391
|
+
sh_free_kick_goals: 'shFreeKickGoals',
|
|
6392
|
+
sh_free_kick_on_goals: 'shFreeKickOnGoals',
|
|
6393
|
+
sh_free_kick_misses: 'shFreeKickMisses',
|
|
6394
|
+
ev_free_kick_goals: 'evFreeKickGoals',
|
|
6395
|
+
ev_free_kick_on_goals: 'evFreeKickOnGoals',
|
|
6396
|
+
ev_free_kick_misses: 'evFreeKickMisses',
|
|
6397
|
+
free_kick_passes: 'freeKickPasses',
|
|
6398
|
+
free_kick_selfs: 'freeKickSelfs',
|
|
6399
|
+
pp_corner_goals: 'ppCornerGoals',
|
|
6400
|
+
pp_corner_on_goals: 'ppCornerOnGoals',
|
|
6401
|
+
pp_corner_misses: 'ppCornerMisses',
|
|
6402
|
+
sh_corner_goals: 'shCornerGoals',
|
|
6403
|
+
sh_corner_on_goals: 'shCornerOnGoals',
|
|
6404
|
+
sh_corner_misses: 'shCornerMisses',
|
|
6405
|
+
ev_corner_goals: 'evCornerGoals',
|
|
6406
|
+
ev_corner_on_goals: 'evCornerOnGoals',
|
|
6407
|
+
ev_corner_misses: 'evCornerMisses',
|
|
6408
|
+
corner_passes: 'cornerPasses',
|
|
6409
|
+
corner_selfs: 'cornerSelfs',
|
|
6410
|
+
total_corners: 'totalCorners',
|
|
6411
|
+
total_free_kicks: 'totalFreeKicks',
|
|
6412
|
+
newbie: 'newbie',
|
|
6413
|
+
rank: 'rank',
|
|
6414
|
+
},
|
|
6415
|
+
relation: {
|
|
6416
|
+
leaguePlayer: exports.LeaguePlayer,
|
|
6417
|
+
tournamentTeamUser: exports.TournamentTeamUser,
|
|
6418
|
+
team: exports.Team,
|
|
6419
|
+
teamUser: exports.TeamUser,
|
|
6420
|
+
user: exports.User,
|
|
6421
|
+
tournamentTeam: exports.TournamentTeam,
|
|
6422
|
+
month: DateField
|
|
6423
|
+
}
|
|
6424
|
+
})
|
|
6425
|
+
], exports.WaterpoloStatistic);
|
|
6426
|
+
|
|
6105
6427
|
var TournamentApi = /** @class */ (function () {
|
|
6106
6428
|
function TournamentApi(httpClient, configService) {
|
|
6107
6429
|
this.httpClient = httpClient;
|
|
@@ -6436,6 +6758,32 @@
|
|
|
6436
6758
|
});
|
|
6437
6759
|
});
|
|
6438
6760
|
};
|
|
6761
|
+
TournamentApi.prototype.getWaterpoloStatisticLeaders = function (filters) {
|
|
6762
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6763
|
+
var params;
|
|
6764
|
+
return __generator(this, function (_a) {
|
|
6765
|
+
params = new i1.HttpParams();
|
|
6766
|
+
params = applyStatisticLeadersFilters(filters, params);
|
|
6767
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/waterpolo_statistic_leaders/", { params: params }).pipe(operators.map(function (result) {
|
|
6768
|
+
var e_6, _a;
|
|
6769
|
+
try {
|
|
6770
|
+
for (var _b = __values(Object.keys(result)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6771
|
+
var key = _c.value;
|
|
6772
|
+
result[key] = exports.WaterpoloStatistic.toFront(result[key]);
|
|
6773
|
+
}
|
|
6774
|
+
}
|
|
6775
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
6776
|
+
finally {
|
|
6777
|
+
try {
|
|
6778
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6779
|
+
}
|
|
6780
|
+
finally { if (e_6) throw e_6.error; }
|
|
6781
|
+
}
|
|
6782
|
+
return result;
|
|
6783
|
+
})).toPromise()];
|
|
6784
|
+
});
|
|
6785
|
+
});
|
|
6786
|
+
};
|
|
6439
6787
|
TournamentApi.prototype.getBasketballStatistic = function (filters) {
|
|
6440
6788
|
return __awaiter(this, void 0, void 0, function () {
|
|
6441
6789
|
var params;
|
|
@@ -6514,6 +6862,19 @@
|
|
|
6514
6862
|
});
|
|
6515
6863
|
});
|
|
6516
6864
|
};
|
|
6865
|
+
TournamentApi.prototype.getWaterpoloStatistic = function (filters) {
|
|
6866
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6867
|
+
var params;
|
|
6868
|
+
return __generator(this, function (_a) {
|
|
6869
|
+
params = new i1.HttpParams();
|
|
6870
|
+
params = applyStatisticFilters(filters, params);
|
|
6871
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/waterpolo_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
6872
|
+
total: +result.headers.get('X-Page-Count'),
|
|
6873
|
+
data: exports.WaterpoloStatistic.toFront(result.body)
|
|
6874
|
+
}); })).toPromise()];
|
|
6875
|
+
});
|
|
6876
|
+
});
|
|
6877
|
+
};
|
|
6517
6878
|
TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
|
|
6518
6879
|
return __awaiter(this, void 0, void 0, function () {
|
|
6519
6880
|
return __generator(this, function (_a) {
|
|
@@ -6596,7 +6957,7 @@
|
|
|
6596
6957
|
return params;
|
|
6597
6958
|
}
|
|
6598
6959
|
function applyStatisticFilters(filters, params) {
|
|
6599
|
-
var
|
|
6960
|
+
var e_7, _a;
|
|
6600
6961
|
try {
|
|
6601
6962
|
for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6602
6963
|
var key = _c.value;
|
|
@@ -6605,12 +6966,12 @@
|
|
|
6605
6966
|
}
|
|
6606
6967
|
}
|
|
6607
6968
|
}
|
|
6608
|
-
catch (
|
|
6969
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
6609
6970
|
finally {
|
|
6610
6971
|
try {
|
|
6611
6972
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6612
6973
|
}
|
|
6613
|
-
finally { if (
|
|
6974
|
+
finally { if (e_7) throw e_7.error; }
|
|
6614
6975
|
}
|
|
6615
6976
|
if (filters.per_game !== undefined) {
|
|
6616
6977
|
params = params.set('per_game', filters.per_game ? '1' : '0');
|
|
@@ -6624,7 +6985,7 @@
|
|
|
6624
6985
|
return params;
|
|
6625
6986
|
}
|
|
6626
6987
|
function applyStatisticLeadersFilters(filters, params) {
|
|
6627
|
-
var
|
|
6988
|
+
var e_8, _a;
|
|
6628
6989
|
try {
|
|
6629
6990
|
for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
6630
6991
|
var key = _c.value;
|
|
@@ -6633,12 +6994,12 @@
|
|
|
6633
6994
|
}
|
|
6634
6995
|
}
|
|
6635
6996
|
}
|
|
6636
|
-
catch (
|
|
6997
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
6637
6998
|
finally {
|
|
6638
6999
|
try {
|
|
6639
7000
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
6640
7001
|
}
|
|
6641
|
-
finally { if (
|
|
7002
|
+
finally { if (e_8) throw e_8.error; }
|
|
6642
7003
|
}
|
|
6643
7004
|
if (filters.per_game !== undefined) {
|
|
6644
7005
|
params = params.set('per_game', filters.per_game ? '1' : '0');
|
|
@@ -7416,11 +7777,11 @@
|
|
|
7416
7777
|
TeamEventTypes[TeamEventTypes["other"] = 2] = "other";
|
|
7417
7778
|
})(exports.TeamEventTypes || (exports.TeamEventTypes = {}));
|
|
7418
7779
|
|
|
7419
|
-
var _a$
|
|
7420
|
-
var TeamEventTypeLocalization = (_a$
|
|
7421
|
-
_a$
|
|
7422
|
-
_a$
|
|
7423
|
-
_a$
|
|
7780
|
+
var _a$g;
|
|
7781
|
+
var TeamEventTypeLocalization = (_a$g = {},
|
|
7782
|
+
_a$g[exports.TeamEventTypes.training] = 'Тренировка',
|
|
7783
|
+
_a$g[exports.TeamEventTypes.other] = 'Другое',
|
|
7784
|
+
_a$g);
|
|
7424
7785
|
|
|
7425
7786
|
exports.TeamEvent = /** @class */ (function (_super) {
|
|
7426
7787
|
__extends(TeamEvent, _super);
|
|
@@ -8033,7 +8394,7 @@
|
|
|
8033
8394
|
})
|
|
8034
8395
|
], exports.RugbyFoulType);
|
|
8035
8396
|
|
|
8036
|
-
var _a$
|
|
8397
|
+
var _a$f;
|
|
8037
8398
|
exports.RugbyGameLogTypes = void 0;
|
|
8038
8399
|
(function (RugbyGameLogTypes) {
|
|
8039
8400
|
RugbyGameLogTypes[RugbyGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
@@ -8074,14 +8435,14 @@
|
|
|
8074
8435
|
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 35] = "maul_lost";
|
|
8075
8436
|
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 36] = "team_foul";
|
|
8076
8437
|
})(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
|
|
8077
|
-
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$
|
|
8078
|
-
_a$
|
|
8079
|
-
_a$
|
|
8080
|
-
_a$
|
|
8081
|
-
_a$
|
|
8082
|
-
_a$
|
|
8083
|
-
_a$
|
|
8084
|
-
_a$
|
|
8438
|
+
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$f = {},
|
|
8439
|
+
_a$f[exports.RugbyGameLogTypes.penalty_try] = 7,
|
|
8440
|
+
_a$f[exports.RugbyGameLogTypes.try] = 5,
|
|
8441
|
+
_a$f[exports.RugbyGameLogTypes.conversion_goal] = 2,
|
|
8442
|
+
_a$f[exports.RugbyGameLogTypes.penalty_goal] = 3,
|
|
8443
|
+
_a$f[exports.RugbyGameLogTypes.drop_goal] = 3,
|
|
8444
|
+
_a$f[exports.RugbyGameLogTypes.end_game_penalty_goal] = 1,
|
|
8445
|
+
_a$f);
|
|
8085
8446
|
var RUGBY_TEAM_LOG_TYPES = [
|
|
8086
8447
|
exports.RugbyGameLogTypes.timeout, exports.RugbyGameLogTypes.scrum_won, exports.RugbyGameLogTypes.scrum_lost, exports.RugbyGameLogTypes.scrum_won_free,
|
|
8087
8448
|
exports.RugbyGameLogTypes.lineout_won, exports.RugbyGameLogTypes.lineout_lost,
|
|
@@ -9977,6 +10338,552 @@
|
|
|
9977
10338
|
{ type: ConfigService }
|
|
9978
10339
|
]; };
|
|
9979
10340
|
|
|
10341
|
+
exports.WaterpoloGameLogTypes = void 0;
|
|
10342
|
+
(function (WaterpoloGameLogTypes) {
|
|
10343
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
10344
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["exit_game"] = 2] = "exit_game";
|
|
10345
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_miss"] = 3] = "shot_miss";
|
|
10346
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_on_goal"] = 4] = "shot_on_goal";
|
|
10347
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_blocked"] = 5] = "shot_blocked";
|
|
10348
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["goal"] = 6] = "goal";
|
|
10349
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_attempt"] = 7] = "shootout_attempt";
|
|
10350
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_goal"] = 8] = "shootout_goal";
|
|
10351
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["assist"] = 9] = "assist";
|
|
10352
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["block_shot"] = 10] = "block_shot";
|
|
10353
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_on_goal"] = 11] = "free_kick_on_goal";
|
|
10354
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["minor_penalty"] = 12] = "minor_penalty";
|
|
10355
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["major_penalty"] = 13] = "major_penalty";
|
|
10356
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["match_penalty"] = 14] = "match_penalty";
|
|
10357
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["foul"] = 15] = "foul";
|
|
10358
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["yellow_card"] = 16] = "yellow_card";
|
|
10359
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["red_card"] = 17] = "red_card";
|
|
10360
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_shot"] = 18] = "penalty_shot";
|
|
10361
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["face_off_lose"] = 19] = "face_off_lose";
|
|
10362
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["face_off_win"] = 20] = "face_off_win";
|
|
10363
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["save"] = 21] = "save";
|
|
10364
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["timeout"] = 22] = "timeout";
|
|
10365
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_start"] = 23] = "penalty_start";
|
|
10366
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_end"] = 24] = "penalty_end";
|
|
10367
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_attempt"] = 25] = "after_game_shootout_attempt";
|
|
10368
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_goal"] = 26] = "after_game_shootout_goal";
|
|
10369
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_save"] = 27] = "after_game_shootout_save";
|
|
10370
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_save"] = 28] = "shootout_save";
|
|
10371
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["loss"] = 29] = "loss";
|
|
10372
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["steal"] = 30] = "steal";
|
|
10373
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_miss"] = 31] = "free_kick_miss";
|
|
10374
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_goal"] = 32] = "free_kick_goal";
|
|
10375
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_pass"] = 33] = "free_kick_pass";
|
|
10376
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_self"] = 34] = "free_kick_self";
|
|
10377
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_on_goal"] = 35] = "corner_on_goal";
|
|
10378
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_miss"] = 36] = "corner_miss";
|
|
10379
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_goal"] = 37] = "corner_goal";
|
|
10380
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_pass"] = 38] = "corner_pass";
|
|
10381
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_self"] = 39] = "corner_self";
|
|
10382
|
+
})(exports.WaterpoloGameLogTypes || (exports.WaterpoloGameLogTypes = {}));
|
|
10383
|
+
exports.WaterpoloAdvantageTypes = void 0;
|
|
10384
|
+
(function (WaterpoloAdvantageTypes) {
|
|
10385
|
+
WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["power_play"] = 1] = "power_play";
|
|
10386
|
+
WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["shorthanded"] = 2] = "shorthanded";
|
|
10387
|
+
WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["even_strength"] = 3] = "even_strength";
|
|
10388
|
+
})(exports.WaterpoloAdvantageTypes || (exports.WaterpoloAdvantageTypes = {}));
|
|
10389
|
+
exports.WaterpoloGameLog = /** @class */ (function (_super) {
|
|
10390
|
+
__extends(WaterpoloGameLog, _super);
|
|
10391
|
+
function WaterpoloGameLog() {
|
|
10392
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
10393
|
+
_this.active = true;
|
|
10394
|
+
return _this;
|
|
10395
|
+
}
|
|
10396
|
+
Object.defineProperty(WaterpoloGameLog.prototype, "penalizedGameUserId", {
|
|
10397
|
+
get: function () {
|
|
10398
|
+
if (this._penalizedGameUserId) {
|
|
10399
|
+
return this._penalizedGameUserId;
|
|
10400
|
+
}
|
|
10401
|
+
return this.gameUserId;
|
|
10402
|
+
},
|
|
10403
|
+
set: function (value) {
|
|
10404
|
+
this._penalizedGameUserId = value;
|
|
10405
|
+
},
|
|
10406
|
+
enumerable: false,
|
|
10407
|
+
configurable: true
|
|
10408
|
+
});
|
|
10409
|
+
WaterpoloGameLog.prototype.compare = function (model) {
|
|
10410
|
+
if (this.time === model.time && this.period === model.period) {
|
|
10411
|
+
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
10412
|
+
}
|
|
10413
|
+
if (this.period === model.period) {
|
|
10414
|
+
return this.time < model.time ? 1 : -1;
|
|
10415
|
+
}
|
|
10416
|
+
return this.period < model.period ? 1 : -1;
|
|
10417
|
+
};
|
|
10418
|
+
Object.defineProperty(WaterpoloGameLog.prototype, "timeFormatted", {
|
|
10419
|
+
get: function () {
|
|
10420
|
+
var minutes = Math.floor(this.time / 60);
|
|
10421
|
+
var seconds = this.time - minutes * 60;
|
|
10422
|
+
return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
|
|
10423
|
+
},
|
|
10424
|
+
enumerable: false,
|
|
10425
|
+
configurable: true
|
|
10426
|
+
});
|
|
10427
|
+
WaterpoloGameLog.prototype.isScoreType = function () {
|
|
10428
|
+
return [exports.WaterpoloGameLogTypes.goal, exports.WaterpoloGameLogTypes.shootout_goal, exports.WaterpoloGameLogTypes.after_game_shootout_goal,
|
|
10429
|
+
exports.WaterpoloGameLogTypes.free_kick_goal, exports.WaterpoloGameLogTypes.corner_goal].indexOf(this.logType) > -1;
|
|
10430
|
+
};
|
|
10431
|
+
WaterpoloGameLog.prototype.isPenaltyType = function () {
|
|
10432
|
+
return [
|
|
10433
|
+
exports.WaterpoloGameLogTypes.minor_penalty, exports.WaterpoloGameLogTypes.major_penalty, exports.WaterpoloGameLogTypes.match_penalty
|
|
10434
|
+
].indexOf(this.logType) > -1;
|
|
10435
|
+
};
|
|
10436
|
+
WaterpoloGameLog.prototype.isAfter = function (log) {
|
|
10437
|
+
if (this.time === log.time && this.period === log.period) {
|
|
10438
|
+
return this.id > log.id;
|
|
10439
|
+
}
|
|
10440
|
+
if (this.period === log.period) {
|
|
10441
|
+
return this.time > log.time;
|
|
10442
|
+
}
|
|
10443
|
+
return this.period > log.period;
|
|
10444
|
+
};
|
|
10445
|
+
WaterpoloGameLog.toFront = function (value) { };
|
|
10446
|
+
WaterpoloGameLog.toBack = function (value) { };
|
|
10447
|
+
return WaterpoloGameLog;
|
|
10448
|
+
}(BaseModel));
|
|
10449
|
+
__decorate([
|
|
10450
|
+
ToFrontHook
|
|
10451
|
+
], exports.WaterpoloGameLog, "toFront", null);
|
|
10452
|
+
__decorate([
|
|
10453
|
+
ToBackHook
|
|
10454
|
+
], exports.WaterpoloGameLog, "toBack", null);
|
|
10455
|
+
exports.WaterpoloGameLog = __decorate([
|
|
10456
|
+
ModelInstance({
|
|
10457
|
+
mappingFields: {
|
|
10458
|
+
id: 'id',
|
|
10459
|
+
unique_id: 'uniqueId',
|
|
10460
|
+
game_id: 'gameId',
|
|
10461
|
+
game_user_id: 'gameUserId',
|
|
10462
|
+
team_id: 'teamId',
|
|
10463
|
+
log_type: 'logType',
|
|
10464
|
+
datetime: 'datetime',
|
|
10465
|
+
time: 'time',
|
|
10466
|
+
period: 'period',
|
|
10467
|
+
active: 'active',
|
|
10468
|
+
is_highlight: 'isHighlight',
|
|
10469
|
+
advantage: 'advantage',
|
|
10470
|
+
advantage_num: 'advantageNum',
|
|
10471
|
+
is_goalie: 'isGoalie',
|
|
10472
|
+
penalized_game_user_id: 'penalizedGameUserId',
|
|
10473
|
+
foul_on_game_user_id: 'foulOnGameUserId',
|
|
10474
|
+
mutual_penalty: 'mutualPenalty',
|
|
10475
|
+
},
|
|
10476
|
+
relation: {
|
|
10477
|
+
datetime: DateTimeField,
|
|
10478
|
+
logType: enumField(exports.WaterpoloGameLogTypes),
|
|
10479
|
+
advantage: enumField(exports.WaterpoloAdvantageTypes),
|
|
10480
|
+
}
|
|
10481
|
+
})
|
|
10482
|
+
], exports.WaterpoloGameLog);
|
|
10483
|
+
|
|
10484
|
+
exports.WaterpoloGameStatistic = /** @class */ (function (_super) {
|
|
10485
|
+
__extends(WaterpoloGameStatistic, _super);
|
|
10486
|
+
function WaterpoloGameStatistic() {
|
|
10487
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10488
|
+
}
|
|
10489
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "id", {
|
|
10490
|
+
get: function () {
|
|
10491
|
+
return this.gameUserId;
|
|
10492
|
+
},
|
|
10493
|
+
enumerable: false,
|
|
10494
|
+
configurable: true
|
|
10495
|
+
});
|
|
10496
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoal", {
|
|
10497
|
+
get: function () {
|
|
10498
|
+
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
|
|
10499
|
+
(this.evCornerOnGoals || 0) + (this.ppCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
|
|
10500
|
+
(this.evFreeKickOnGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0);
|
|
10501
|
+
},
|
|
10502
|
+
enumerable: false,
|
|
10503
|
+
configurable: true
|
|
10504
|
+
});
|
|
10505
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsBlocked", {
|
|
10506
|
+
get: function () {
|
|
10507
|
+
return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
|
|
10508
|
+
},
|
|
10509
|
+
enumerable: false,
|
|
10510
|
+
configurable: true
|
|
10511
|
+
});
|
|
10512
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotMisses", {
|
|
10513
|
+
get: function () {
|
|
10514
|
+
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0) +
|
|
10515
|
+
(this.evCornerMisses || 0) + (this.ppCornerMisses || 0) + (this.shCornerMisses || 0) +
|
|
10516
|
+
(this.evFreeKickMisses || 0) + (this.ppFreeKickMisses || 0) + (this.shFreeKickMisses || 0);
|
|
10517
|
+
},
|
|
10518
|
+
enumerable: false,
|
|
10519
|
+
configurable: true
|
|
10520
|
+
});
|
|
10521
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "ppShots", {
|
|
10522
|
+
get: function () {
|
|
10523
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
|
|
10524
|
+
(this.ppCornerMisses || 0) + (this.ppCornerOnGoals || 0) +
|
|
10525
|
+
(this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0);
|
|
10526
|
+
},
|
|
10527
|
+
enumerable: false,
|
|
10528
|
+
configurable: true
|
|
10529
|
+
});
|
|
10530
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "evShots", {
|
|
10531
|
+
get: function () {
|
|
10532
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0) +
|
|
10533
|
+
(this.evCornerMisses || 0) + (this.evCornerOnGoals || 0) +
|
|
10534
|
+
(this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0);
|
|
10535
|
+
},
|
|
10536
|
+
enumerable: false,
|
|
10537
|
+
configurable: true
|
|
10538
|
+
});
|
|
10539
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shShots", {
|
|
10540
|
+
get: function () {
|
|
10541
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
|
|
10542
|
+
(this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
|
|
10543
|
+
(this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
|
|
10544
|
+
;
|
|
10545
|
+
},
|
|
10546
|
+
enumerable: false,
|
|
10547
|
+
configurable: true
|
|
10548
|
+
});
|
|
10549
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shots", {
|
|
10550
|
+
get: function () {
|
|
10551
|
+
return this.ppShots + this.evShots + this.shShots + (this.shootoutAttempts || 0);
|
|
10552
|
+
},
|
|
10553
|
+
enumerable: false,
|
|
10554
|
+
configurable: true
|
|
10555
|
+
});
|
|
10556
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
|
|
10557
|
+
get: function () {
|
|
10558
|
+
return this.shots + (this.shootoutAttempts || 0);
|
|
10559
|
+
},
|
|
10560
|
+
enumerable: false,
|
|
10561
|
+
configurable: true
|
|
10562
|
+
});
|
|
10563
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "goals", {
|
|
10564
|
+
get: function () {
|
|
10565
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0) +
|
|
10566
|
+
(this.ppFreeKickGoals || 0) + (this.shFreeKickGoals || 0) + (this.evFreeKickGoals || 0) +
|
|
10567
|
+
(this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
|
|
10568
|
+
},
|
|
10569
|
+
enumerable: false,
|
|
10570
|
+
configurable: true
|
|
10571
|
+
});
|
|
10572
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoals", {
|
|
10573
|
+
get: function () {
|
|
10574
|
+
return this.goals + (this.shootoutGoals || 0);
|
|
10575
|
+
},
|
|
10576
|
+
enumerable: false,
|
|
10577
|
+
configurable: true
|
|
10578
|
+
});
|
|
10579
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "assists", {
|
|
10580
|
+
get: function () {
|
|
10581
|
+
return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
|
|
10582
|
+
},
|
|
10583
|
+
enumerable: false,
|
|
10584
|
+
configurable: true
|
|
10585
|
+
});
|
|
10586
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "faceOffs", {
|
|
10587
|
+
get: function () {
|
|
10588
|
+
return (this.faceOffWins || 0) + (this.faceOffLosses || 0);
|
|
10589
|
+
},
|
|
10590
|
+
enumerable: false,
|
|
10591
|
+
configurable: true
|
|
10592
|
+
});
|
|
10593
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shootOuts", {
|
|
10594
|
+
get: function () {
|
|
10595
|
+
return (this.shootoutAttempts || 0) + (this.shootoutGoals || 0);
|
|
10596
|
+
},
|
|
10597
|
+
enumerable: false,
|
|
10598
|
+
configurable: true
|
|
10599
|
+
});
|
|
10600
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsAgainst", {
|
|
10601
|
+
get: function () {
|
|
10602
|
+
return (this.saves || 0) + (this.goalsAgainst || 0);
|
|
10603
|
+
},
|
|
10604
|
+
enumerable: false,
|
|
10605
|
+
configurable: true
|
|
10606
|
+
});
|
|
10607
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shootoutShotsAgainst", {
|
|
10608
|
+
get: function () {
|
|
10609
|
+
return (this.shootoutSaves || 0) + (this.shootoutGoalsAgainst || 0);
|
|
10610
|
+
},
|
|
10611
|
+
enumerable: false,
|
|
10612
|
+
configurable: true
|
|
10613
|
+
});
|
|
10614
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShotsAgainst", {
|
|
10615
|
+
get: function () {
|
|
10616
|
+
return this.shotsAgainst + this.shootoutShotsAgainst;
|
|
10617
|
+
},
|
|
10618
|
+
enumerable: false,
|
|
10619
|
+
configurable: true
|
|
10620
|
+
});
|
|
10621
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "savesPercent", {
|
|
10622
|
+
get: function () {
|
|
10623
|
+
if (!this.shotsAgainst || !this.saves) {
|
|
10624
|
+
return 0;
|
|
10625
|
+
}
|
|
10626
|
+
return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
|
|
10627
|
+
},
|
|
10628
|
+
enumerable: false,
|
|
10629
|
+
configurable: true
|
|
10630
|
+
});
|
|
10631
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSaves", {
|
|
10632
|
+
get: function () {
|
|
10633
|
+
return (this.saves || 0) + (this.shootoutSaves || 0);
|
|
10634
|
+
},
|
|
10635
|
+
enumerable: false,
|
|
10636
|
+
configurable: true
|
|
10637
|
+
});
|
|
10638
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalSavesPercent", {
|
|
10639
|
+
get: function () {
|
|
10640
|
+
if (!this.totalShotsAgainst || !this.totalSaves) {
|
|
10641
|
+
return 0;
|
|
10642
|
+
}
|
|
10643
|
+
return Math.round(1000 * this.totalSaves / this.totalShotsAgainst) / 10;
|
|
10644
|
+
},
|
|
10645
|
+
enumerable: false,
|
|
10646
|
+
configurable: true
|
|
10647
|
+
});
|
|
10648
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalGoalsAgainst", {
|
|
10649
|
+
get: function () {
|
|
10650
|
+
return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
|
|
10651
|
+
},
|
|
10652
|
+
enumerable: false,
|
|
10653
|
+
configurable: true
|
|
10654
|
+
});
|
|
10655
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "gameMinutes", {
|
|
10656
|
+
get: function () {
|
|
10657
|
+
return Math.floor(this.gameTime / 60);
|
|
10658
|
+
},
|
|
10659
|
+
enumerable: false,
|
|
10660
|
+
configurable: true
|
|
10661
|
+
});
|
|
10662
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "goalsPercent", {
|
|
10663
|
+
get: function () {
|
|
10664
|
+
if (!this.totalGoals || !this.totalShots) {
|
|
10665
|
+
return 0;
|
|
10666
|
+
}
|
|
10667
|
+
return Math.round(1000 * this.totalGoals / this.totalShots) / 10;
|
|
10668
|
+
},
|
|
10669
|
+
enumerable: false,
|
|
10670
|
+
configurable: true
|
|
10671
|
+
});
|
|
10672
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "faceOffPercent", {
|
|
10673
|
+
get: function () {
|
|
10674
|
+
if (!this.faceOffWins || !this.faceOffs) {
|
|
10675
|
+
return 0;
|
|
10676
|
+
}
|
|
10677
|
+
return Math.round(1000 * this.faceOffWins / this.faceOffs) / 10;
|
|
10678
|
+
},
|
|
10679
|
+
enumerable: false,
|
|
10680
|
+
configurable: true
|
|
10681
|
+
});
|
|
10682
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "goalpass", {
|
|
10683
|
+
get: function () {
|
|
10684
|
+
return (this.totalGoals || 0) + (this.assists || 0);
|
|
10685
|
+
},
|
|
10686
|
+
enumerable: false,
|
|
10687
|
+
configurable: true
|
|
10688
|
+
});
|
|
10689
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFreeKicks", {
|
|
10690
|
+
get: function () {
|
|
10691
|
+
return (this.freeKickPasses || 0) + (this.freeKickSelfs || 0) +
|
|
10692
|
+
(this.ppFreeKickGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppFreeKickMisses || 0) +
|
|
10693
|
+
(this.evFreeKickGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.evFreeKickMisses || 0) +
|
|
10694
|
+
(this.shFreeKickGoals || 0) + (this.shFreeKickOnGoals || 0) + (this.shFreeKickMisses || 0);
|
|
10695
|
+
},
|
|
10696
|
+
enumerable: false,
|
|
10697
|
+
configurable: true
|
|
10698
|
+
});
|
|
10699
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCorners", {
|
|
10700
|
+
get: function () {
|
|
10701
|
+
return (this.cornerPasses || 0) + (this.cornerSelfs || 0) +
|
|
10702
|
+
(this.ppCornerGoals || 0) + (this.ppCornerOnGoals || 0) + (this.ppCornerMisses || 0) +
|
|
10703
|
+
(this.evCornerGoals || 0) + (this.evCornerOnGoals || 0) + (this.evCornerMisses || 0) +
|
|
10704
|
+
(this.shCornerGoals || 0) + (this.shCornerOnGoals || 0) + (this.shCornerMisses || 0);
|
|
10705
|
+
},
|
|
10706
|
+
enumerable: false,
|
|
10707
|
+
configurable: true
|
|
10708
|
+
});
|
|
10709
|
+
WaterpoloGameStatistic.toFront = function (data) { };
|
|
10710
|
+
WaterpoloGameStatistic.toBack = function (data) { };
|
|
10711
|
+
return WaterpoloGameStatistic;
|
|
10712
|
+
}(BaseModel));
|
|
10713
|
+
__decorate([
|
|
10714
|
+
ToFrontHook
|
|
10715
|
+
], exports.WaterpoloGameStatistic, "toFront", null);
|
|
10716
|
+
__decorate([
|
|
10717
|
+
ToBackHook
|
|
10718
|
+
], exports.WaterpoloGameStatistic, "toBack", null);
|
|
10719
|
+
exports.WaterpoloGameStatistic = __decorate([
|
|
10720
|
+
ModelInstance({
|
|
10721
|
+
mappingFields: {
|
|
10722
|
+
game_user_id: 'gameUserId',
|
|
10723
|
+
updated_at: 'updatedAt',
|
|
10724
|
+
points: 'points',
|
|
10725
|
+
pp_shot_misses: 'ppShotMisses',
|
|
10726
|
+
pp_shots_on_goal: 'ppShotsOnGoal',
|
|
10727
|
+
pp_shots_blocked: 'ppShotsBlocked',
|
|
10728
|
+
ev_shot_misses: 'evShotMisses',
|
|
10729
|
+
ev_shots_on_goal: 'evShotsOnGoal',
|
|
10730
|
+
ev_shots_blocked: 'evShotsBlocked',
|
|
10731
|
+
sh_shot_misses: 'shShotMisses',
|
|
10732
|
+
sh_shots_on_goal: 'shShotsOnGoal',
|
|
10733
|
+
sh_shots_blocked: 'shShotsBlocked',
|
|
10734
|
+
pp_goals: 'ppGoals',
|
|
10735
|
+
ev_goals: 'evGoals',
|
|
10736
|
+
sh_goals: 'shGoals',
|
|
10737
|
+
pp_assists: 'ppAssists',
|
|
10738
|
+
ev_assists: 'evAssists',
|
|
10739
|
+
sh_assists: 'shAssists',
|
|
10740
|
+
shootout_attempts: 'shootoutAttempts',
|
|
10741
|
+
shootout_goals: 'shootoutGoals',
|
|
10742
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
10743
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
10744
|
+
block_shots: 'blockShots',
|
|
10745
|
+
face_off_losses: 'faceOffLosses',
|
|
10746
|
+
face_off_wins: 'faceOffWins',
|
|
10747
|
+
saves: 'saves',
|
|
10748
|
+
shootout_save: 'shootoutSaves',
|
|
10749
|
+
after_game_shootout_saves: 'afterGameShootoutSaves',
|
|
10750
|
+
goals_against: 'goalsAgainst',
|
|
10751
|
+
shootout_goals_against: 'shootoutGoalsAgainst',
|
|
10752
|
+
after_game_shootout_goals_against: 'afterGameShootoutGoalsAgainst',
|
|
10753
|
+
safety_rate: 'safetyRate',
|
|
10754
|
+
penalty_minutes: 'penaltyMinutes',
|
|
10755
|
+
game_time: 'gameTime',
|
|
10756
|
+
plus_minus: 'plusMinus',
|
|
10757
|
+
yellow_cards: 'yellowCards',
|
|
10758
|
+
red_cards: 'redCards',
|
|
10759
|
+
fouls: 'fouls',
|
|
10760
|
+
losses: 'losses',
|
|
10761
|
+
steals: 'steals',
|
|
10762
|
+
drawn_fouls: 'drawnFouls',
|
|
10763
|
+
pp_free_kick_goals: 'ppFreeKickGoals',
|
|
10764
|
+
pp_free_kick_on_goals: 'ppFreeKickOnGoals',
|
|
10765
|
+
pp_free_kick_misses: 'ppFreeKickMisses',
|
|
10766
|
+
sh_free_kick_goals: 'shFreeKickGoals',
|
|
10767
|
+
sh_free_kick_on_goals: 'shFreeKickOnGoals',
|
|
10768
|
+
sh_free_kick_misses: 'shFreeKickMisses',
|
|
10769
|
+
ev_free_kick_goals: 'evFreeKickGoals',
|
|
10770
|
+
ev_free_kick_on_goals: 'evFreeKickOnGoals',
|
|
10771
|
+
ev_free_kick_misses: 'evFreeKickMisses',
|
|
10772
|
+
free_kick_passes: 'freeKickPasses',
|
|
10773
|
+
free_kick_selfs: 'freeKickSelfs',
|
|
10774
|
+
pp_corner_goals: 'ppCornerGoals',
|
|
10775
|
+
pp_corner_on_goals: 'ppCornerOnGoals',
|
|
10776
|
+
pp_corner_misses: 'ppCornerMisses',
|
|
10777
|
+
sh_corner_goals: 'shCornerGoals',
|
|
10778
|
+
sh_corner_on_goals: 'shCornerOnGoals',
|
|
10779
|
+
sh_corner_misses: 'shCornerMisses',
|
|
10780
|
+
ev_corner_goals: 'evCornerGoals',
|
|
10781
|
+
ev_corner_on_goals: 'evCornerOnGoals',
|
|
10782
|
+
ev_corner_misses: 'evCornerMisses',
|
|
10783
|
+
corner_passes: 'cornerPasses',
|
|
10784
|
+
corner_selfs: 'cornerSelfs'
|
|
10785
|
+
},
|
|
10786
|
+
relation: {
|
|
10787
|
+
updatedAt: DateTimeField,
|
|
10788
|
+
}
|
|
10789
|
+
})
|
|
10790
|
+
], exports.WaterpoloGameStatistic);
|
|
10791
|
+
|
|
10792
|
+
exports.WaterpoloGameTeamStatistic = /** @class */ (function (_super) {
|
|
10793
|
+
__extends(WaterpoloGameTeamStatistic, _super);
|
|
10794
|
+
function WaterpoloGameTeamStatistic() {
|
|
10795
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10796
|
+
}
|
|
10797
|
+
WaterpoloGameTeamStatistic.toFront = function (data) { };
|
|
10798
|
+
WaterpoloGameTeamStatistic.toBack = function (data) { };
|
|
10799
|
+
return WaterpoloGameTeamStatistic;
|
|
10800
|
+
}(BaseModel));
|
|
10801
|
+
__decorate([
|
|
10802
|
+
ToFrontHook
|
|
10803
|
+
], exports.WaterpoloGameTeamStatistic, "toFront", null);
|
|
10804
|
+
__decorate([
|
|
10805
|
+
ToBackHook
|
|
10806
|
+
], exports.WaterpoloGameTeamStatistic, "toBack", null);
|
|
10807
|
+
exports.WaterpoloGameTeamStatistic = __decorate([
|
|
10808
|
+
ModelInstance({
|
|
10809
|
+
mappingFields: {
|
|
10810
|
+
team: 'team',
|
|
10811
|
+
competitor_team: 'competitorTeam'
|
|
10812
|
+
},
|
|
10813
|
+
relation: {
|
|
10814
|
+
team: exports.WaterpoloStatistic,
|
|
10815
|
+
competitorTeam: exports.WaterpoloStatistic
|
|
10816
|
+
}
|
|
10817
|
+
})
|
|
10818
|
+
], exports.WaterpoloGameTeamStatistic);
|
|
10819
|
+
|
|
10820
|
+
var WaterpoloGameApi = /** @class */ (function (_super) {
|
|
10821
|
+
__extends(WaterpoloGameApi, _super);
|
|
10822
|
+
function WaterpoloGameApi(httpClient, configService) {
|
|
10823
|
+
var _this = _super.call(this, httpClient, configService) || this;
|
|
10824
|
+
_this.httpClient = httpClient;
|
|
10825
|
+
_this.configService = configService;
|
|
10826
|
+
return _this;
|
|
10827
|
+
}
|
|
10828
|
+
WaterpoloGameApi.prototype.getById = function (gameId) {
|
|
10829
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10830
|
+
return __generator(this, function (_a) {
|
|
10831
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/").pipe(operators.map(function (result) { return exports.Game.toFront(result); })).toPromise()];
|
|
10832
|
+
});
|
|
10833
|
+
});
|
|
10834
|
+
};
|
|
10835
|
+
WaterpoloGameApi.prototype.getTeamStatistic = function (gameId) {
|
|
10836
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10837
|
+
return __generator(this, function (_a) {
|
|
10838
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/team_statistic/").pipe(operators.map(function (result) { return exports.WaterpoloGameTeamStatistic.toFront(result); })).toPromise()];
|
|
10839
|
+
});
|
|
10840
|
+
});
|
|
10841
|
+
};
|
|
10842
|
+
WaterpoloGameApi.prototype.getUserStatistic = function (gameId) {
|
|
10843
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10844
|
+
return __generator(this, function (_a) {
|
|
10845
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/user_statistic/").pipe(operators.map(function (result) { return exports.WaterpoloGameStatistic.toFront(result); })).toPromise()];
|
|
10846
|
+
});
|
|
10847
|
+
});
|
|
10848
|
+
};
|
|
10849
|
+
WaterpoloGameApi.prototype.getLogs = function (gameId) {
|
|
10850
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10851
|
+
return __generator(this, function (_a) {
|
|
10852
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/logs/").pipe(operators.map(function (result) { return exports.WaterpoloGameLog.toFront(result); })).toPromise()];
|
|
10853
|
+
});
|
|
10854
|
+
});
|
|
10855
|
+
};
|
|
10856
|
+
WaterpoloGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
10857
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10858
|
+
return __generator(this, function (_a) {
|
|
10859
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/game_protocol/", {
|
|
10860
|
+
params: new i1.HttpParams().set('file_type', format),
|
|
10861
|
+
responseType: 'blob'
|
|
10862
|
+
}).toPromise()];
|
|
10863
|
+
});
|
|
10864
|
+
});
|
|
10865
|
+
};
|
|
10866
|
+
WaterpoloGameApi.prototype.downloadApplication = function (gameId, format, type) {
|
|
10867
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10868
|
+
return __generator(this, function (_a) {
|
|
10869
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_waterpolo_game/" + gameId + "/game_application_file/", {
|
|
10870
|
+
params: new i1.HttpParams().set('file_type', format).set('application_type', type),
|
|
10871
|
+
responseType: 'blob'
|
|
10872
|
+
}).toPromise()];
|
|
10873
|
+
});
|
|
10874
|
+
});
|
|
10875
|
+
};
|
|
10876
|
+
return WaterpoloGameApi;
|
|
10877
|
+
}(GameBaseApi));
|
|
10878
|
+
WaterpoloGameApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function WaterpoloGameApi_Factory() { return new WaterpoloGameApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: WaterpoloGameApi, providedIn: "root" });
|
|
10879
|
+
WaterpoloGameApi.decorators = [
|
|
10880
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10881
|
+
];
|
|
10882
|
+
WaterpoloGameApi.ctorParameters = function () { return [
|
|
10883
|
+
{ type: i1.HttpClient },
|
|
10884
|
+
{ type: ConfigService }
|
|
10885
|
+
]; };
|
|
10886
|
+
|
|
9980
10887
|
var PublicTeamApi = /** @class */ (function () {
|
|
9981
10888
|
function PublicTeamApi(httpClient, configService) {
|
|
9982
10889
|
this.httpClient = httpClient;
|
|
@@ -10031,148 +10938,181 @@
|
|
|
10031
10938
|
{ type: ConfigService }
|
|
10032
10939
|
]; };
|
|
10033
10940
|
|
|
10034
|
-
var _a$
|
|
10035
|
-
var BasketballGameLogTypeLocalization = (_a$
|
|
10036
|
-
_a$
|
|
10037
|
-
_a$
|
|
10038
|
-
_a$
|
|
10039
|
-
_a$
|
|
10040
|
-
_a$
|
|
10041
|
-
_a$
|
|
10042
|
-
_a$
|
|
10043
|
-
_a$
|
|
10044
|
-
_a$
|
|
10045
|
-
_a$
|
|
10046
|
-
_a$
|
|
10047
|
-
_a$
|
|
10048
|
-
_a$
|
|
10049
|
-
_a$
|
|
10050
|
-
_a$
|
|
10051
|
-
_a$
|
|
10052
|
-
_a$
|
|
10053
|
-
_a$
|
|
10054
|
-
_a$
|
|
10055
|
-
_a$
|
|
10056
|
-
_a$
|
|
10057
|
-
_a$
|
|
10058
|
-
_a$
|
|
10059
|
-
_a$
|
|
10941
|
+
var _a$e;
|
|
10942
|
+
var BasketballGameLogTypeLocalization = (_a$e = {},
|
|
10943
|
+
_a$e[exports.BasketballGameLogTypes.enter_game] = 'Выход на площадку',
|
|
10944
|
+
_a$e[exports.BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
|
|
10945
|
+
_a$e[exports.BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
|
|
10946
|
+
_a$e[exports.BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
|
|
10947
|
+
_a$e[exports.BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
|
|
10948
|
+
_a$e[exports.BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
|
|
10949
|
+
_a$e[exports.BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
|
|
10950
|
+
_a$e[exports.BasketballGameLogTypes.two_point_made] = '2 очка',
|
|
10951
|
+
_a$e[exports.BasketballGameLogTypes.three_point_made] = '3 очка',
|
|
10952
|
+
_a$e[exports.BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
|
|
10953
|
+
_a$e[exports.BasketballGameLogTypes.one_point_made] = '1 очко',
|
|
10954
|
+
_a$e[exports.BasketballGameLogTypes.assist] = 'Передача',
|
|
10955
|
+
_a$e[exports.BasketballGameLogTypes.block] = 'Блокшот',
|
|
10956
|
+
_a$e[exports.BasketballGameLogTypes.rebound] = 'Подбор',
|
|
10957
|
+
_a$e[exports.BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
|
|
10958
|
+
_a$e[exports.BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
|
|
10959
|
+
_a$e[exports.BasketballGameLogTypes.steal] = 'Перехват',
|
|
10960
|
+
_a$e[exports.BasketballGameLogTypes.turnover] = 'Потеря',
|
|
10961
|
+
_a$e[exports.BasketballGameLogTypes.personal_foul] = 'Фол',
|
|
10962
|
+
_a$e[exports.BasketballGameLogTypes.technical_foul] = 'Технический фол',
|
|
10963
|
+
_a$e[exports.BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
|
|
10964
|
+
_a$e[exports.BasketballGameLogTypes.timeout] = 'Таймаут',
|
|
10965
|
+
_a$e[exports.BasketballGameLogTypes.team_rebound] = 'Командный подбор',
|
|
10966
|
+
_a$e);
|
|
10060
10967
|
|
|
10061
|
-
var _a$
|
|
10062
|
-
var BasketballGameSubLogTypesLocalization = (_a$
|
|
10968
|
+
var _a$d;
|
|
10969
|
+
var BasketballGameSubLogTypesLocalization = (_a$d = {},
|
|
10063
10970
|
// Shots
|
|
10064
|
-
_a$
|
|
10065
|
-
_a$
|
|
10066
|
-
_a$
|
|
10067
|
-
_a$
|
|
10068
|
-
_a$
|
|
10069
|
-
_a$
|
|
10070
|
-
_a$
|
|
10071
|
-
_a$
|
|
10072
|
-
_a$
|
|
10073
|
-
_a$
|
|
10074
|
-
_a$
|
|
10971
|
+
_a$d[exports.BasketballSubLogTypes.jump_shot] = 'Джампшот',
|
|
10972
|
+
_a$d[exports.BasketballSubLogTypes.step_back_jump_shot] = 'Степ-бэк',
|
|
10973
|
+
_a$d[exports.BasketballSubLogTypes.floating_jump_shot] = 'Флоатинг',
|
|
10974
|
+
_a$d[exports.BasketballSubLogTypes.fade_away_jump_shot] = 'Фэйдавэй',
|
|
10975
|
+
_a$d[exports.BasketballSubLogTypes.pull_up_jump_shot] = 'Пуллап',
|
|
10976
|
+
_a$d[exports.BasketballSubLogTypes.turnaround_jump_shot] = 'Турнэраунд',
|
|
10977
|
+
_a$d[exports.BasketballSubLogTypes.dunk] = 'Данк',
|
|
10978
|
+
_a$d[exports.BasketballSubLogTypes.layup] = 'Лэйап',
|
|
10979
|
+
_a$d[exports.BasketballSubLogTypes.driving_layup] = 'Драйвинг лэйап',
|
|
10980
|
+
_a$d[exports.BasketballSubLogTypes.alley_oop] = 'Алейуп',
|
|
10981
|
+
_a$d[exports.BasketballSubLogTypes.hook_shot] = 'Хукшот',
|
|
10075
10982
|
// foul
|
|
10076
|
-
_a$
|
|
10077
|
-
_a$
|
|
10078
|
-
_a$
|
|
10983
|
+
_a$d[exports.BasketballSubLogTypes.offensive_foul] = 'В нападении',
|
|
10984
|
+
_a$d[exports.BasketballSubLogTypes.shot_foul] = 'При броксе',
|
|
10985
|
+
_a$d[exports.BasketballSubLogTypes.mutual_foul] = 'Обоюдный фол',
|
|
10079
10986
|
// Turnover
|
|
10080
|
-
_a$
|
|
10081
|
-
_a$
|
|
10082
|
-
_a$
|
|
10083
|
-
_a$
|
|
10084
|
-
_a$
|
|
10085
|
-
_a$
|
|
10086
|
-
_a$
|
|
10087
|
-
_a$
|
|
10088
|
-
_a$
|
|
10987
|
+
_a$d[exports.BasketballSubLogTypes.bad_pass] = 'Плохой пас',
|
|
10988
|
+
_a$d[exports.BasketballSubLogTypes.ball_handling] = 'На ведении',
|
|
10989
|
+
_a$d[exports.BasketballSubLogTypes.travel] = 'Пробежка',
|
|
10990
|
+
_a$d[exports.BasketballSubLogTypes.double_dribble] = 'Двойная пробежка',
|
|
10991
|
+
_a$d[exports.BasketballSubLogTypes.out_of_bounds] = 'Заступ в аут',
|
|
10992
|
+
_a$d[exports.BasketballSubLogTypes.three_seconds] = '3 секунды',
|
|
10993
|
+
_a$d[exports.BasketballSubLogTypes.five_seconds] = '5 секунд',
|
|
10994
|
+
_a$d[exports.BasketballSubLogTypes.eight_seconds] = '8 секунд',
|
|
10995
|
+
_a$d[exports.BasketballSubLogTypes.twenty_four_seconds] = '24 секунды',
|
|
10996
|
+
_a$d);
|
|
10997
|
+
|
|
10998
|
+
var _a$c;
|
|
10999
|
+
var HockeyGameLogTypeLocalization = (_a$c = {},
|
|
11000
|
+
_a$c[exports.HockeyGameLogTypes.enter_game] = 'Выход на площадку',
|
|
11001
|
+
_a$c[exports.HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
|
|
11002
|
+
_a$c[exports.HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
|
|
11003
|
+
_a$c[exports.HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
|
|
11004
|
+
_a$c[exports.HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
|
|
11005
|
+
_a$c[exports.HockeyGameLogTypes.goal] = 'Гол',
|
|
11006
|
+
_a$c[exports.HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
|
|
11007
|
+
_a$c[exports.HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
|
|
11008
|
+
_a$c[exports.HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
|
|
11009
|
+
_a$c[exports.HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
|
|
11010
|
+
_a$c[exports.HockeyGameLogTypes.assist] = 'Передача',
|
|
11011
|
+
_a$c[exports.HockeyGameLogTypes.block_shot] = 'Блокировка броска',
|
|
11012
|
+
_a$c[exports.HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
|
|
11013
|
+
_a$c[exports.HockeyGameLogTypes.major_penalty] = 'Большой штраф',
|
|
11014
|
+
_a$c[exports.HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
|
|
11015
|
+
_a$c[exports.HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
|
|
11016
|
+
_a$c[exports.HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
|
|
11017
|
+
_a$c[exports.HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
|
|
11018
|
+
_a$c[exports.HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
|
|
11019
|
+
_a$c[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
|
|
11020
|
+
_a$c[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
|
|
11021
|
+
_a$c[exports.HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
|
|
11022
|
+
_a$c[exports.HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
|
|
11023
|
+
_a$c[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
|
|
11024
|
+
_a$c[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
|
|
11025
|
+
_a$c[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
|
|
10089
11026
|
_a$c);
|
|
10090
11027
|
|
|
10091
11028
|
var _a$b;
|
|
10092
|
-
var
|
|
10093
|
-
_a$b[exports.
|
|
10094
|
-
_a$b[exports.
|
|
10095
|
-
_a$b[exports.
|
|
10096
|
-
_a$b[exports.
|
|
10097
|
-
_a$b[exports.
|
|
10098
|
-
_a$b[exports.
|
|
10099
|
-
_a$b[exports.
|
|
10100
|
-
_a$b[exports.
|
|
10101
|
-
_a$b[exports.
|
|
10102
|
-
_a$b[exports.
|
|
10103
|
-
_a$b[exports.
|
|
10104
|
-
_a$b[exports.
|
|
10105
|
-
_a$b[exports.
|
|
10106
|
-
_a$b[exports.
|
|
10107
|
-
_a$b[exports.
|
|
10108
|
-
_a$b[exports.
|
|
10109
|
-
_a$b[exports.
|
|
10110
|
-
_a$b[exports.
|
|
10111
|
-
_a$b[exports.
|
|
10112
|
-
_a$b[exports.
|
|
10113
|
-
_a$b[exports.
|
|
10114
|
-
_a$b[exports.
|
|
10115
|
-
_a$b[exports.
|
|
10116
|
-
_a$b[exports.
|
|
10117
|
-
_a$b[exports.
|
|
10118
|
-
_a$b[exports.
|
|
11029
|
+
var FootballGameLogTypeLocalization = (_a$b = {},
|
|
11030
|
+
_a$b[exports.FootballGameLogTypes.enter_game] = 'Выход на поле',
|
|
11031
|
+
_a$b[exports.FootballGameLogTypes.exit_game] = 'Ушел с поля',
|
|
11032
|
+
_a$b[exports.FootballGameLogTypes.shot_miss] = 'Удар мимо',
|
|
11033
|
+
_a$b[exports.FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
|
|
11034
|
+
_a$b[exports.FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
|
|
11035
|
+
_a$b[exports.FootballGameLogTypes.goal] = 'Гол',
|
|
11036
|
+
_a$b[exports.FootballGameLogTypes.assist] = 'Передача',
|
|
11037
|
+
_a$b[exports.FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
|
|
11038
|
+
_a$b[exports.FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
|
|
11039
|
+
_a$b[exports.FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
|
|
11040
|
+
_a$b[exports.FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
|
|
11041
|
+
_a$b[exports.FootballGameLogTypes.block_shot] = 'Блокировка удара',
|
|
11042
|
+
_a$b[exports.FootballGameLogTypes.corner] = 'Угловой',
|
|
11043
|
+
_a$b[exports.FootballGameLogTypes.free_kick] = 'Штрафной удар',
|
|
11044
|
+
_a$b[exports.FootballGameLogTypes.save] = 'Отражен удар',
|
|
11045
|
+
_a$b[exports.FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
|
|
11046
|
+
_a$b[exports.FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
|
|
11047
|
+
_a$b[exports.FootballGameLogTypes.foul] = 'Фол',
|
|
11048
|
+
_a$b[exports.FootballGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
11049
|
+
_a$b[exports.FootballGameLogTypes.red_card] = 'Красная карточка',
|
|
11050
|
+
_a$b[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
|
|
11051
|
+
_a$b[exports.FootballGameLogTypes.loss] = 'Потеря',
|
|
11052
|
+
_a$b[exports.FootballGameLogTypes.steal] = 'Перехват',
|
|
11053
|
+
_a$b[exports.FootballGameLogTypes.out] = 'Аут',
|
|
11054
|
+
_a$b[exports.FootballGameLogTypes.timeout] = 'Таймаут',
|
|
11055
|
+
_a$b[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
|
|
11056
|
+
_a$b[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
|
|
11057
|
+
_a$b[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
|
|
11058
|
+
_a$b[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
|
|
10119
11059
|
_a$b);
|
|
10120
11060
|
|
|
10121
11061
|
var _a$a;
|
|
10122
|
-
var
|
|
10123
|
-
_a$a[exports.
|
|
10124
|
-
_a$a[exports.
|
|
10125
|
-
_a$a[exports.
|
|
10126
|
-
_a$a[exports.
|
|
10127
|
-
_a$a[exports.
|
|
10128
|
-
_a$a[exports.
|
|
10129
|
-
_a$a[exports.
|
|
10130
|
-
_a$a[exports.
|
|
10131
|
-
_a$a[exports.
|
|
10132
|
-
_a$a[exports.
|
|
10133
|
-
_a$a[exports.
|
|
10134
|
-
_a$a[exports.
|
|
10135
|
-
_a$a[exports.
|
|
10136
|
-
_a$a[exports.
|
|
10137
|
-
_a$a[exports.
|
|
10138
|
-
_a$a[exports.
|
|
10139
|
-
_a$a[exports.
|
|
10140
|
-
_a$a[exports.
|
|
10141
|
-
_a$a[exports.
|
|
10142
|
-
_a$a[exports.
|
|
10143
|
-
_a$a[exports.FootballGameLogTypes.perfect_pass] = 'Пас',
|
|
10144
|
-
_a$a[exports.FootballGameLogTypes.loss] = 'Потеря',
|
|
10145
|
-
_a$a[exports.FootballGameLogTypes.steal] = 'Перехват',
|
|
10146
|
-
_a$a[exports.FootballGameLogTypes.out] = 'Аут',
|
|
10147
|
-
_a$a[exports.FootballGameLogTypes.timeout] = 'Таймаут',
|
|
10148
|
-
_a$a[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
|
|
10149
|
-
_a$a[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
|
|
10150
|
-
_a$a[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
|
|
10151
|
-
_a$a[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
|
|
11062
|
+
var HandballGameLogTypeLocalization = (_a$a = {},
|
|
11063
|
+
_a$a[exports.HandballGameLogTypes.enter_game] = 'Выход на поле',
|
|
11064
|
+
_a$a[exports.HandballGameLogTypes.exit_game] = 'Ушел с поля',
|
|
11065
|
+
_a$a[exports.HandballGameLogTypes.shot_miss] = 'Бросок мимо',
|
|
11066
|
+
_a$a[exports.HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
|
|
11067
|
+
_a$a[exports.HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
|
|
11068
|
+
_a$a[exports.HandballGameLogTypes.goal] = 'Гол',
|
|
11069
|
+
_a$a[exports.HandballGameLogTypes.assist] = 'Передача',
|
|
11070
|
+
_a$a[exports.HandballGameLogTypes.penalty_miss] = '7м промах',
|
|
11071
|
+
_a$a[exports.HandballGameLogTypes.penalty_shot_on_goal] = '7м в створ',
|
|
11072
|
+
_a$a[exports.HandballGameLogTypes.penalty_goal] = '7м гол',
|
|
11073
|
+
_a$a[exports.HandballGameLogTypes.save] = 'Сэйв',
|
|
11074
|
+
_a$a[exports.HandballGameLogTypes.penalty_save] = 'Сэйв 7м',
|
|
11075
|
+
_a$a[exports.HandballGameLogTypes.foul] = 'Фол',
|
|
11076
|
+
_a$a[exports.HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
|
|
11077
|
+
_a$a[exports.HandballGameLogTypes.red_card] = 'Красная карточка',
|
|
11078
|
+
_a$a[exports.HandballGameLogTypes.two_minute_foul] = '2х минутный штраф',
|
|
11079
|
+
_a$a[exports.HandballGameLogTypes.turnover] = 'Потеря',
|
|
11080
|
+
_a$a[exports.HandballGameLogTypes.steal] = 'Перехват',
|
|
11081
|
+
_a$a[exports.HandballGameLogTypes.block_shot] = 'Блок броска',
|
|
11082
|
+
_a$a[exports.HandballGameLogTypes.timeout] = 'Таймаут',
|
|
10152
11083
|
_a$a);
|
|
10153
11084
|
|
|
10154
11085
|
var _a$9;
|
|
10155
|
-
var
|
|
10156
|
-
_a$9[exports.
|
|
10157
|
-
_a$9[exports.
|
|
10158
|
-
_a$9[exports.
|
|
10159
|
-
_a$9[exports.
|
|
10160
|
-
_a$9[exports.
|
|
10161
|
-
_a$9[exports.
|
|
10162
|
-
_a$9[exports.
|
|
10163
|
-
_a$9[exports.
|
|
10164
|
-
_a$9[exports.
|
|
10165
|
-
_a$9[exports.
|
|
10166
|
-
_a$9[exports.
|
|
10167
|
-
_a$9[exports.
|
|
10168
|
-
_a$9[exports.
|
|
10169
|
-
_a$9[exports.
|
|
10170
|
-
_a$9[exports.
|
|
10171
|
-
_a$9[exports.
|
|
10172
|
-
_a$9[exports.
|
|
10173
|
-
_a$9[exports.
|
|
10174
|
-
_a$9[exports.
|
|
10175
|
-
_a$9[exports.
|
|
11086
|
+
var WaterpoloGameLogTypeLocalization = (_a$9 = {},
|
|
11087
|
+
_a$9[exports.WaterpoloGameLogTypes.enter_game] = 'Выход на площадку',
|
|
11088
|
+
_a$9[exports.WaterpoloGameLogTypes.exit_game] = 'Ушел с площадки',
|
|
11089
|
+
_a$9[exports.WaterpoloGameLogTypes.shot_miss] = 'Бросок мимо',
|
|
11090
|
+
_a$9[exports.WaterpoloGameLogTypes.shot_on_goal] = 'Бросок по воротам',
|
|
11091
|
+
_a$9[exports.WaterpoloGameLogTypes.shot_blocked] = 'Заблокированный бросок',
|
|
11092
|
+
_a$9[exports.WaterpoloGameLogTypes.goal] = 'Гол',
|
|
11093
|
+
_a$9[exports.WaterpoloGameLogTypes.shootout_attempt] = 'Пенальти промах',
|
|
11094
|
+
_a$9[exports.WaterpoloGameLogTypes.shootout_goal] = 'Пенальти гол',
|
|
11095
|
+
_a$9[exports.WaterpoloGameLogTypes.after_game_shootout_attempt] = 'Пенальти промах',
|
|
11096
|
+
_a$9[exports.WaterpoloGameLogTypes.after_game_shootout_goal] = 'Пенальти гол',
|
|
11097
|
+
_a$9[exports.WaterpoloGameLogTypes.assist] = 'Передача',
|
|
11098
|
+
_a$9[exports.WaterpoloGameLogTypes.block_shot] = 'Блокировка броска',
|
|
11099
|
+
_a$9[exports.WaterpoloGameLogTypes.minor_penalty] = 'Штраф 20 сек.',
|
|
11100
|
+
_a$9[exports.WaterpoloGameLogTypes.major_penalty] = 'Штраф 4 мин.',
|
|
11101
|
+
_a$9[exports.WaterpoloGameLogTypes.match_penalty] = 'Матч-штраф',
|
|
11102
|
+
_a$9[exports.WaterpoloGameLogTypes.foul] = 'Фол',
|
|
11103
|
+
_a$9[exports.WaterpoloGameLogTypes.penalty_shot] = 'Штрафной бросок',
|
|
11104
|
+
_a$9[exports.WaterpoloGameLogTypes.face_off_lose] = 'Проигрыш в спринте',
|
|
11105
|
+
_a$9[exports.WaterpoloGameLogTypes.face_off_win] = 'Победа в спринте',
|
|
11106
|
+
_a$9[exports.WaterpoloGameLogTypes.save] = 'Отражен бросок',
|
|
11107
|
+
_a$9[exports.WaterpoloGameLogTypes.shootout_save] = 'Отражен бросок',
|
|
11108
|
+
_a$9[exports.WaterpoloGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
|
|
11109
|
+
_a$9[exports.WaterpoloGameLogTypes.timeout] = 'Таймаут',
|
|
11110
|
+
_a$9[exports.WaterpoloGameLogTypes.penalty_start] = 'Начало штрафного времени',
|
|
11111
|
+
_a$9[exports.WaterpoloGameLogTypes.penalty_end] = 'Конец штрафного времени',
|
|
11112
|
+
_a$9[exports.WaterpoloGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
11113
|
+
_a$9[exports.WaterpoloGameLogTypes.red_card] = 'Красная карточка',
|
|
11114
|
+
_a$9[exports.WaterpoloGameLogTypes.loss] = 'Потеря',
|
|
11115
|
+
_a$9[exports.WaterpoloGameLogTypes.steal] = 'Перехват',
|
|
10176
11116
|
_a$9);
|
|
10177
11117
|
|
|
10178
11118
|
var _a$8;
|
|
@@ -10252,7 +11192,7 @@
|
|
|
10252
11192
|
_a$5[exports.TeamUserRole.assistant] = 'Ассистент',
|
|
10253
11193
|
_a$5);
|
|
10254
11194
|
|
|
10255
|
-
var _a$4, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
11195
|
+
var _a$4, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
10256
11196
|
var GameBasketballPositionLocalization = (_a$4 = {},
|
|
10257
11197
|
_a$4[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
|
|
10258
11198
|
_a$4[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
|
|
@@ -10331,6 +11271,22 @@
|
|
|
10331
11271
|
_o[exports.GameRugbyPosition.three_quarter] = 'Трехчетвертный',
|
|
10332
11272
|
_o[exports.GameRugbyPosition.fullback] = 'Замыкающий',
|
|
10333
11273
|
_o);
|
|
11274
|
+
var GameWaterpoloPositionLocalization = (_p = {},
|
|
11275
|
+
_p[exports.GameWaterpoloPosition.defensemen] = 'Защитник',
|
|
11276
|
+
_p[exports.GameWaterpoloPosition.goalkeeper] = 'Вратарь',
|
|
11277
|
+
_p[exports.GameWaterpoloPosition.center_forward] = 'Центральный нападающий',
|
|
11278
|
+
_p[exports.GameWaterpoloPosition.mobile_forward] = 'Подвижный нападающий',
|
|
11279
|
+
_p);
|
|
11280
|
+
var GameWaterpoloPositionShortRuLocalization = (_q = {},
|
|
11281
|
+
_q[exports.GameWaterpoloPosition.defensemen] = 'З',
|
|
11282
|
+
_q[exports.GameWaterpoloPosition.goalkeeper] = 'Вр',
|
|
11283
|
+
_q[exports.GameWaterpoloPosition.center_forward] = 'ЦН',
|
|
11284
|
+
_q[exports.GameWaterpoloPosition.mobile_forward] = 'ПН',
|
|
11285
|
+
_q);
|
|
11286
|
+
var WaterpoloWorkHandLocalization = (_r = {},
|
|
11287
|
+
_r[exports.WaterpoloWorkHand.left] = 'Левая',
|
|
11288
|
+
_r[exports.WaterpoloWorkHand.right] = 'Правая',
|
|
11289
|
+
_r);
|
|
10334
11290
|
|
|
10335
11291
|
var _a$3;
|
|
10336
11292
|
var VolleyballGameLogTypeLocalization = (_a$3 = {},
|
|
@@ -11018,6 +11974,8 @@
|
|
|
11018
11974
|
exports.GameVolleyballPositionLocalization = GameVolleyballPositionLocalization;
|
|
11019
11975
|
exports.GameVolleyballPositionShortLocalization = GameVolleyballPositionShortLocalization;
|
|
11020
11976
|
exports.GameVolleyballPositionShortRuLocalization = GameVolleyballPositionShortRuLocalization;
|
|
11977
|
+
exports.GameWaterpoloPositionLocalization = GameWaterpoloPositionLocalization;
|
|
11978
|
+
exports.GameWaterpoloPositionShortRuLocalization = GameWaterpoloPositionShortRuLocalization;
|
|
11021
11979
|
exports.HandballGameApi = HandballGameApi;
|
|
11022
11980
|
exports.HandballGameLogTypeLocalization = HandballGameLogTypeLocalization;
|
|
11023
11981
|
exports.HockeyGameApi = HockeyGameApi;
|
|
@@ -11069,6 +12027,9 @@
|
|
|
11069
12027
|
exports.VolleyballGameApi = VolleyballGameApi;
|
|
11070
12028
|
exports.VolleyballGameLogTypeLocalization = VolleyballGameLogTypeLocalization;
|
|
11071
12029
|
exports.VolleyballWorkHandLocalization = VolleyballWorkHandLocalization;
|
|
12030
|
+
exports.WaterpoloGameApi = WaterpoloGameApi;
|
|
12031
|
+
exports.WaterpoloGameLogTypeLocalization = WaterpoloGameLogTypeLocalization;
|
|
12032
|
+
exports.WaterpoloWorkHandLocalization = WaterpoloWorkHandLocalization;
|
|
11072
12033
|
exports.WorkHandLocalization = WorkHandLocalization;
|
|
11073
12034
|
exports.addItemInArray = addItemInArray;
|
|
11074
12035
|
exports.addItemsInArray = addItemsInArray;
|