@mtgame/core 1.0.32 → 1.0.34

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.
@@ -6086,6 +6086,8 @@ WaterpoloStatistic = __decorate([
6086
6086
  corner_selfs: 'cornerSelfs',
6087
6087
  tackles: 'tackles',
6088
6088
  player_efficiency: 'playerEfficiency',
6089
+ defense_select_positions: 'defenseSelectPositions',
6090
+ save_possessions: 'savePossessions',
6089
6091
  pp_shots: 'ppShots',
6090
6092
  ev_shots: 'evShots',
6091
6093
  sh_shots: 'shShots',
@@ -6143,6 +6145,78 @@ WaterpoloStatistic = __decorate([
6143
6145
  total_penalties: 'totalPenalties',
6144
6146
  shootout_shots: 'shootoutShots',
6145
6147
  shootout_goals_percent: 'shootoutGoalsPercent',
6148
+ pp_perimetr_shot_goals: 'ppPerimetrShotGoals',
6149
+ pp_perimetr_shot_on_goals: 'ppPerimetrShotOnGoals',
6150
+ pp_perimetr_shot_misses: 'ppPerimetrShotMisses',
6151
+ pp_perimetr_shots_blocked: 'ppPerimetrShotsBlocked',
6152
+ ev_perimetr_shot_goals: 'evPerimetrShotGoals',
6153
+ ev_perimetr_shot_on_goals: 'evPerimetrShotOnGoals',
6154
+ ev_perimetr_shot_misses: 'evPerimetrShotMisses',
6155
+ ev_perimetr_shots_blocked: 'evPerimetrShotsBlocked',
6156
+ sh_perimetr_shot_goals: 'shPerimetrShotGoals',
6157
+ sh_perimetr_shot_on_goals: 'shPerimetrShotOnGoals',
6158
+ sh_perimetr_shot_misses: 'shPerimetrShotMisses',
6159
+ sh_perimetr_shots_blocked: 'shPerimetrShotsBlocked',
6160
+ pp_perimetr_shot_saves: 'ppPerimetrShotSaves',
6161
+ sh_perimetr_shot_saves: 'shPerimetrShotSaves',
6162
+ ev_perimetr_shot_saves: 'evPerimetrShotSaves',
6163
+ pp_perimetr_shot_goals_against: 'ppPerimetrShotGoalsAgainst',
6164
+ sh_perimetr_shot_goals_against: 'shPerimetrShotGoalsAgainst',
6165
+ ev_perimetr_shot_goals_against: 'evPerimetrShotGoalsAgainst',
6166
+ perimetr_shot_goals_against: 'perimetrShotGoalsAgainst',
6167
+ total_perimetr_shot_goals: 'totalPerimetrShotGoals',
6168
+ perimetr_shots_on_goals: 'perimetrShotsOnGoals',
6169
+ perimetr_shots_misses: 'perimetrShotsMisses',
6170
+ perimetr_shots: 'perimetrShots',
6171
+ perimetr_shot_goals_percent: 'perimetrShotGoalsPercent',
6172
+ pp_post_shot_goals: 'ppPostShotGoals',
6173
+ pp_post_shot_on_goals: 'ppPostShotOnGoals',
6174
+ pp_post_shot_misses: 'ppPostShotMisses',
6175
+ pp_post_shots_blocked: 'ppPostShotsBlocked',
6176
+ ev_post_shot_goals: 'evPostShotGoals',
6177
+ ev_post_shot_on_goals: 'evPostShotOnGoals',
6178
+ ev_post_shot_misses: 'evPostShotMisses',
6179
+ ev_post_shots_blocked: 'evPostShotsBlocked',
6180
+ sh_post_shot_goals: 'shPostShotGoals',
6181
+ sh_post_shot_on_goals: 'shPostShotOnGoals',
6182
+ sh_post_shot_misses: 'shPostShotMisses',
6183
+ sh_post_shots_blocked: 'shPostShotsBlocked',
6184
+ pp_post_shot_saves: 'ppPostShotSaves',
6185
+ sh_post_shot_saves: 'shPostShotSaves',
6186
+ ev_post_shot_saves: 'evPostShotSaves',
6187
+ pp_post_shot_goals_against: 'ppPostShotGoalsAgainst',
6188
+ sh_post_shot_goals_against: 'shPostShotGoalsAgainst',
6189
+ ev_post_shot_goals_against: 'evPostShotGoalsAgainst',
6190
+ post_shot_goals_against: 'postShotGoalsAgainst',
6191
+ total_post_shot_goals: 'totalPostShotGoals',
6192
+ post_shots_on_goals: 'postShotsOnGoals',
6193
+ post_shots_misses: 'postShotsMisses',
6194
+ post_shots: 'postShots',
6195
+ post_shot_goals_percent: 'postShotGoalsPercent',
6196
+ pp_fast_shot_goals: 'ppFastShotGoals',
6197
+ pp_fast_shot_on_goals: 'ppFastShotOnGoals',
6198
+ pp_fast_shot_misses: 'ppFastShotMisses',
6199
+ pp_fast_shots_blocked: 'ppFastShotsBlocked',
6200
+ ev_fast_shot_goals: 'evFastShotGoals',
6201
+ ev_fast_shot_on_goals: 'evFastShotOnGoals',
6202
+ ev_fast_shot_misses: 'evFastShotMisses',
6203
+ ev_fast_shots_blocked: 'evFastShotsBlocked',
6204
+ sh_fast_shot_goals: 'shFastShotGoals',
6205
+ sh_fast_shot_on_goals: 'shFastShotOnGoals',
6206
+ sh_fast_shot_misses: 'shFastShotMisses',
6207
+ sh_fast_shots_blocked: 'shFastShotsBlocked',
6208
+ pp_fast_shot_saves: 'ppFastShotSaves',
6209
+ sh_fast_shot_saves: 'shFastShotSaves',
6210
+ ev_fast_shot_saves: 'evFastShotSaves',
6211
+ pp_fast_shot_goals_against: 'ppFastShotGoalsAgainst',
6212
+ sh_fast_shot_goals_against: 'shFastShotGoalsAgainst',
6213
+ ev_fast_shot_goals_against: 'evFastShotGoalsAgainst',
6214
+ fast_shot_goals_against: 'fastShotGoalsAgainst',
6215
+ total_fast_shot_goals: 'totalFastShotGoals',
6216
+ fast_shots_on_goals: 'fastShotsOnGoals',
6217
+ fast_shots_misses: 'fastShotsMisses',
6218
+ fast_shots: 'fastShots',
6219
+ fast_shot_goals_percent: 'fastShotGoalsPercent',
6146
6220
  /*goalie stat*/
6147
6221
  position_attack_saves: 'positionAttackSaves',
6148
6222
  position_attack_shots_against: 'positionAttackShotsAgainst',
@@ -6181,6 +6255,15 @@ WaterpoloStatistic = __decorate([
6181
6255
  total_ev_goals_against: 'totalEvGoalsAgainst',
6182
6256
  total_ev_shots_against: 'totalEvShotsAgainst',
6183
6257
  total_ev_saves_percent: 'totalEvSavesPercent',
6258
+ perimetr_shot_saves: 'perimetrShotSaves',
6259
+ perimetr_shots_against: 'perimetrShotsAgainst',
6260
+ perimetr_shot_saves_percent: 'perimetrShotSavesPercent',
6261
+ post_shot_saves: 'postShotSaves',
6262
+ post_shots_against: 'postShotsAgainst',
6263
+ post_shot_saves_percent: 'postShotSavesPercent',
6264
+ fast_shot_saves: 'fastShotSaves',
6265
+ fast_shots_against: 'fastShotsAgainst',
6266
+ fast_shot_saves_percent: 'fastShotSavesPercent',
6184
6267
  newbie: 'newbie',
6185
6268
  rank: 'rank',
6186
6269
  },
@@ -7031,6 +7114,20 @@ class LeagueApi {
7031
7114
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params }).pipe(map(result => Tournament.toFront(result))).toPromise();
7032
7115
  });
7033
7116
  }
7117
+ getTournamentsPaginated(leagueId, page, size, filters) {
7118
+ return __awaiter(this, void 0, void 0, function* () {
7119
+ let params = new HttpParams().set('page', page).set('size', size);
7120
+ if (filters) {
7121
+ if (filters.statuses) {
7122
+ params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
7123
+ }
7124
+ }
7125
+ return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params, observe: 'response' }).pipe(map(response => ({
7126
+ total: +response.headers.get('X-Page-Count'),
7127
+ data: Tournament.toFront(response.body)
7128
+ }))).toPromise();
7129
+ });
7130
+ }
7034
7131
  getEvents(leagueId, page, size, filters) {
7035
7132
  return __awaiter(this, void 0, void 0, function* () {
7036
7133
  let params = new HttpParams().set('page', page.toString())
@@ -9988,6 +10085,23 @@ var WaterpoloGameLogTypes;
9988
10085
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_shot_blocked"] = 62] = "free_kick_shot_blocked";
9989
10086
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_shot_blocked"] = 63] = "corner_shot_blocked";
9990
10087
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["complete_penalty_time"] = 64] = "complete_penalty_time";
10088
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["defense_select_position"] = 65] = "defense_select_position";
10089
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["save_possession"] = 66] = "save_possession";
10090
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["perimetr_shot_goal"] = 67] = "perimetr_shot_goal";
10091
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["perimetr_shot_on_goal"] = 68] = "perimetr_shot_on_goal";
10092
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["perimetr_shot_miss"] = 69] = "perimetr_shot_miss";
10093
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["perimetr_shot_blocked"] = 70] = "perimetr_shot_blocked";
10094
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["perimetr_shot_save"] = 71] = "perimetr_shot_save";
10095
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["post_shot_goal"] = 72] = "post_shot_goal";
10096
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["post_shot_on_goal"] = 73] = "post_shot_on_goal";
10097
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["post_shot_miss"] = 74] = "post_shot_miss";
10098
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["post_shot_blocked"] = 75] = "post_shot_blocked";
10099
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["post_shot_save"] = 76] = "post_shot_save";
10100
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["fast_shot_goal"] = 77] = "fast_shot_goal";
10101
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["fast_shot_on_goal"] = 78] = "fast_shot_on_goal";
10102
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["fast_shot_miss"] = 79] = "fast_shot_miss";
10103
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["fast_shot_blocked"] = 80] = "fast_shot_blocked";
10104
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["fast_shot_save"] = 81] = "fast_shot_save";
9991
10105
  })(WaterpoloGameLogTypes || (WaterpoloGameLogTypes = {}));
9992
10106
  var WaterpoloAdvantageTypes;
9993
10107
  (function (WaterpoloAdvantageTypes) {
@@ -10024,9 +10138,12 @@ let WaterpoloGameLog = class WaterpoloGameLog extends BaseModel {
10024
10138
  return `${minutes < 10 ? '0' : ''}${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;
10025
10139
  }
10026
10140
  isScoreType() {
10027
- return [WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal,
10141
+ return [
10142
+ WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal,
10028
10143
  WaterpoloGameLogTypes.free_kick_goal, WaterpoloGameLogTypes.corner_goal,
10029
- WaterpoloGameLogTypes.counterattack_goal, WaterpoloGameLogTypes.maneuver_goal, WaterpoloGameLogTypes.center_forward_goal].indexOf(this.logType) > -1;
10144
+ WaterpoloGameLogTypes.counterattack_goal, WaterpoloGameLogTypes.maneuver_goal, WaterpoloGameLogTypes.center_forward_goal,
10145
+ WaterpoloGameLogTypes.perimetr_shot_goal, WaterpoloGameLogTypes.post_shot_goal, WaterpoloGameLogTypes.fast_shot_goal
10146
+ ].indexOf(this.logType) > -1;
10030
10147
  }
10031
10148
  isPenaltyType() {
10032
10149
  return [
@@ -10194,35 +10311,131 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10194
10311
  }
10195
10312
  return Math.round(1000 * this.totalCenterForwardGoals / this.centerForwardShots) / 10;
10196
10313
  }
10314
+ get totalPerimetrShotGoals() {
10315
+ return (this.ppPerimetrShotGoals || 0) + (this.evPerimetrShotGoals || 0) + (this.shPerimetrShotGoals || 0);
10316
+ }
10317
+ get ppPerimetrShots() {
10318
+ return (this.ppPerimetrShotOnGoals || 0) + (this.ppPerimetrShotMisses || 0) + (this.ppPerimetrShotsBlocked || 0);
10319
+ }
10320
+ get shPerimetrShots() {
10321
+ return (this.shPerimetrShotOnGoals || 0) + (this.shPerimetrShotMisses || 0) + (this.shPerimetrShotsBlocked || 0);
10322
+ }
10323
+ get evPerimetrShots() {
10324
+ return (this.evPerimetrShotOnGoals || 0) + (this.evPerimetrShotMisses || 0) + (this.evPerimetrShotsBlocked || 0);
10325
+ }
10326
+ get perimetrShotMisses() {
10327
+ return (this.ppPerimetrShotMisses || 0) + (this.shPerimetrShotMisses || 0) + (this.evPerimetrShotMisses || 0);
10328
+ }
10329
+ get perimetrShotOnGoals() {
10330
+ return (this.ppPerimetrShotOnGoals || 0) + (this.shPerimetrShotOnGoals || 0) + (this.evPerimetrShotOnGoals || 0);
10331
+ }
10332
+ get perimetrShotsBlocked() {
10333
+ return (this.ppPerimetrShotsBlocked || 0) + (this.shPerimetrShotsBlocked || 0) + (this.evPerimetrShotsBlocked || 0);
10334
+ }
10335
+ get perimetrShots() {
10336
+ return this.perimetrShotMisses + this.perimetrShotOnGoals + this.perimetrShotsBlocked;
10337
+ }
10338
+ get perimetrShotGoalsPercent() {
10339
+ if (!this.totalPerimetrShotGoals || !this.perimetrShots) {
10340
+ return 0;
10341
+ }
10342
+ return Math.round(1000 * this.totalPerimetrShotGoals / this.perimetrShots) / 10;
10343
+ }
10344
+ get totalPostShotGoals() {
10345
+ return (this.ppPostShotGoals || 0) + (this.evPostShotGoals || 0) + (this.shPostShotGoals || 0);
10346
+ }
10347
+ get ppPostShots() {
10348
+ return (this.ppPostShotOnGoals || 0) + (this.ppPostShotMisses || 0) + (this.ppPostShotsBlocked || 0);
10349
+ }
10350
+ get shPostShots() {
10351
+ return (this.shPostShotOnGoals || 0) + (this.shPostShotMisses || 0) + (this.shPostShotsBlocked || 0);
10352
+ }
10353
+ get evPostShots() {
10354
+ return (this.evPostShotOnGoals || 0) + (this.evPostShotMisses || 0) + (this.evPostShotsBlocked || 0);
10355
+ }
10356
+ get postShotMisses() {
10357
+ return (this.ppPostShotMisses || 0) + (this.shPostShotMisses || 0) + (this.evPostShotMisses || 0);
10358
+ }
10359
+ get postShotOnGoals() {
10360
+ return (this.ppPostShotOnGoals || 0) + (this.shPostShotOnGoals || 0) + (this.evPostShotOnGoals || 0);
10361
+ }
10362
+ get postShotsBlocked() {
10363
+ return (this.ppPostShotsBlocked || 0) + (this.shPostShotsBlocked || 0) + (this.evPostShotsBlocked || 0);
10364
+ }
10365
+ get postShots() {
10366
+ return this.postShotMisses + this.postShotOnGoals + this.postShotsBlocked;
10367
+ }
10368
+ get postShotGoalsPercent() {
10369
+ if (!this.totalPostShotGoals || !this.postShots) {
10370
+ return 0;
10371
+ }
10372
+ return Math.round(1000 * this.totalPostShotGoals / this.postShots) / 10;
10373
+ }
10374
+ get totalFastShotGoals() {
10375
+ return (this.ppFastShotGoals || 0) + (this.evFastShotGoals || 0) + (this.shFastShotGoals || 0);
10376
+ }
10377
+ get ppFastShots() {
10378
+ return (this.ppFastShotOnGoals || 0) + (this.ppFastShotMisses || 0) + (this.ppFastShotsBlocked || 0);
10379
+ }
10380
+ get shFastShots() {
10381
+ return (this.shFastShotOnGoals || 0) + (this.shFastShotMisses || 0) + (this.shFastShotsBlocked || 0);
10382
+ }
10383
+ get evFastShots() {
10384
+ return (this.evFastShotOnGoals || 0) + (this.evFastShotMisses || 0) + (this.evFastShotsBlocked || 0);
10385
+ }
10386
+ get fastShotMisses() {
10387
+ return (this.ppFastShotMisses || 0) + (this.shFastShotMisses || 0) + (this.evFastShotMisses || 0);
10388
+ }
10389
+ get fastShotOnGoals() {
10390
+ return (this.ppFastShotOnGoals || 0) + (this.shFastShotOnGoals || 0) + (this.evFastShotOnGoals || 0);
10391
+ }
10392
+ get fastShotsBlocked() {
10393
+ return (this.ppFastShotsBlocked || 0) + (this.shFastShotsBlocked || 0) + (this.evFastShotsBlocked || 0);
10394
+ }
10395
+ get fastShots() {
10396
+ return this.fastShotMisses + this.fastShotOnGoals + this.fastShotsBlocked;
10397
+ }
10398
+ get fastShotGoalsPercent() {
10399
+ if (!this.totalFastShotGoals || !this.fastShots) {
10400
+ return 0;
10401
+ }
10402
+ return Math.round(1000 * this.totalFastShotGoals / this.fastShots) / 10;
10403
+ }
10197
10404
  get ppShots() {
10198
10405
  return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
10199
10406
  (this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppFreeKickShotsBlocked || 0) +
10200
10407
  (this.ppCornerMisses || 0) + (this.ppCornerOnGoals || 0) + (this.ppCornerShotsBlocked || 0) +
10201
- this.ppCounterAttackShots + this.ppManeuverShots + this.ppCenterForwardShots;
10408
+ this.ppCounterAttackShots + this.ppManeuverShots + this.ppCenterForwardShots +
10409
+ this.ppPerimetrShots + this.ppPostShots + this.ppFastShots;
10202
10410
  }
10203
10411
  get evShots() {
10204
10412
  return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0) +
10205
10413
  (this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0) + (this.evFreeKickShotsBlocked || 0) +
10206
10414
  (this.evCornerMisses || 0) + (this.evCornerOnGoals || 0) + (this.evCornerShotsBlocked || 0) +
10207
- this.evCounterAttackShots + this.evManeuverShots + this.evCenterForwardShots;
10415
+ this.evCounterAttackShots + this.evManeuverShots + this.evCenterForwardShots +
10416
+ this.evPerimetrShots + this.evPostShots + this.evFastShots;
10208
10417
  }
10209
10418
  get shShots() {
10210
10419
  return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
10211
10420
  (this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0) + (this.shFreeKickShotsBlocked || 0) +
10212
10421
  (this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) + (this.shCornerShotsBlocked || 0) +
10213
- this.shCounterAttackShots + this.shManeuverShots + this.shCenterForwardShots;
10422
+ this.shCounterAttackShots + this.shManeuverShots + this.shCenterForwardShots +
10423
+ this.shPerimetrShots + this.shPostShots + this.shFastShots;
10214
10424
  }
10215
10425
  get totalShGoals() {
10216
10426
  return (this.shGoals || 0) + (this.shFreeKickGoals || 0) + (this.shCornerGoals || 0) +
10217
- (this.shCounterAttackGoals || 0) + (this.shManeuverGoals || 0) + (this.shCenterForwardGoals || 0);
10427
+ (this.shCounterAttackGoals || 0) + (this.shManeuverGoals || 0) + (this.shCenterForwardGoals || 0) +
10428
+ (this.shPerimetrShotGoals || 0) + (this.shPostShotGoals || 0) + (this.shFastShotGoals || 0);
10218
10429
  }
10219
10430
  get totalEvGoals() {
10220
10431
  return (this.evGoals || 0) + (this.evFreeKickGoals || 0) + (this.evCornerGoals || 0) +
10221
- (this.evCounterAttackGoals || 0) + (this.evManeuverGoals || 0) + (this.evCenterForwardGoals || 0);
10432
+ (this.evCounterAttackGoals || 0) + (this.evManeuverGoals || 0) + (this.evCenterForwardGoals || 0) +
10433
+ (this.evPerimetrShotGoals || 0) + (this.evPostShotGoals || 0) + (this.evFastShotGoals || 0);
10222
10434
  }
10223
10435
  get totalPpGoals() {
10224
10436
  return (this.ppGoals || 0) + (this.ppFreeKickGoals || 0) + (this.ppCornerGoals || 0) +
10225
- (this.ppCounterAttackGoals || 0) + (this.ppManeuverGoals || 0) + (this.ppCenterForwardGoals || 0);
10437
+ (this.ppCounterAttackGoals || 0) + (this.ppManeuverGoals || 0) + (this.ppCenterForwardGoals || 0) +
10438
+ (this.ppPerimetrShotGoals || 0) + (this.ppPostShotGoals || 0) + (this.ppFastShotGoals || 0);
10226
10439
  }
10227
10440
  get goals() {
10228
10441
  return this.totalShGoals + this.totalEvGoals + this.totalPpGoals;
@@ -10235,7 +10448,8 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10235
10448
  }
10236
10449
  get inGameShotMisses() {
10237
10450
  return (this.ppShotMisses || 0) + (this.evShotMisses || 0) + (this.shShotMisses || 0) +
10238
- this.counterAttackShotMisses + this.maneuverShotMisses + this.centerForwardShotMisses;
10451
+ this.counterAttackShotMisses + this.maneuverShotMisses + this.centerForwardShotMisses +
10452
+ this.perimetrShotMisses + this.postShotMisses + this.fastShotMisses;
10239
10453
  }
10240
10454
  get shotMisses() {
10241
10455
  return (this.ppFreeKickMisses || 0) + (this.evFreeKickMisses || 0) + (this.shFreeKickMisses || 0) +
@@ -10244,21 +10458,25 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10244
10458
  }
10245
10459
  get totalPpShotMisses() {
10246
10460
  return (this.ppShotMisses || 0) + (this.ppFreeKickMisses || 0) + (this.ppCornerMisses || 0) +
10247
- (this.ppCounterAttackMisses || 0) + (this.ppManeuverMisses || 0) + (this.ppCenterForwardMisses || 0);
10461
+ (this.ppCounterAttackMisses || 0) + (this.ppManeuverMisses || 0) + (this.ppCenterForwardMisses || 0) +
10462
+ (this.ppPerimetrShotMisses || 0) + (this.ppPostShotMisses || 0) + (this.ppFastShotMisses || 0);
10248
10463
  }
10249
10464
  get shotsOnGoal() {
10250
10465
  return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
10251
10466
  (this.ppFreeKickOnGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0) +
10252
10467
  (this.ppCornerOnGoals || 0) + (this.evCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
10253
- this.counterAttackShotOnGoals + this.maneuverShotOnGoals + this.centerForwardShotOnGoals;
10468
+ this.counterAttackShotOnGoals + this.maneuverShotOnGoals + this.centerForwardShotOnGoals +
10469
+ this.perimetrShotOnGoals + this.postShotOnGoals + this.fastShotOnGoals;
10254
10470
  }
10255
10471
  get totalPpShotsOnGoal() {
10256
10472
  return (this.ppShotsOnGoal || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppCornerOnGoals || 0) +
10257
- (this.ppCounterAttackOnGoals || 0) + (this.ppManeuverOnGoals || 0) + (this.ppCenterForwardOnGoals || 0);
10473
+ (this.ppCounterAttackOnGoals || 0) + (this.ppManeuverOnGoals || 0) + (this.ppCenterForwardOnGoals || 0) +
10474
+ (this.ppPerimetrShotOnGoals || 0) + (this.ppPostShotOnGoals || 0) + (this.ppFastShotOnGoals || 0);
10258
10475
  }
10259
10476
  get inGameShotsOnGoals() {
10260
10477
  return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
10261
- this.counterAttackShotOnGoals + this.maneuverShotOnGoals + this.centerForwardShotOnGoals;
10478
+ this.counterAttackShotOnGoals + this.maneuverShotOnGoals + this.centerForwardShotOnGoals +
10479
+ this.perimetrShotOnGoals + this.postShotOnGoals + this.fastShotOnGoals;
10262
10480
  }
10263
10481
  get shots() {
10264
10482
  return this.ppShots + this.evShots + this.shShots;
@@ -10310,7 +10528,8 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10310
10528
  get shotsBlocked() {
10311
10529
  return (this.ppShotsBlocked || 0) + (this.evShotsBlocked || 0) + (this.shShotsBlocked || 0) +
10312
10530
  this.counterAttackShotsBlocked + this.maneuverShotsBlocked + this.centerForwardShotsBlocked +
10313
- this.freeKickShotsBlocked + this.cornerShotsBlocked;
10531
+ this.freeKickShotsBlocked + this.cornerShotsBlocked +
10532
+ this.perimetrShotsBlocked + this.postShotsBlocked + this.fastShotsBlocked;
10314
10533
  }
10315
10534
  get totalFouls() {
10316
10535
  return (this.fouls || 0) + (this.personalFouls || 0);
@@ -10337,7 +10556,8 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10337
10556
  return Math.round(1000 * this.positionAttackGoals / this.positionAttackShots) / 10;
10338
10557
  }
10339
10558
  get totalInGameGoals() {
10340
- return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.positionAttackGoals;
10559
+ return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.positionAttackGoals +
10560
+ this.totalPerimetrShotGoals + this.totalPostShotGoals + this.totalFastShotGoals;
10341
10561
  }
10342
10562
  get ppGoalsPercent() {
10343
10563
  if (!this.totalPpGoals || !this.ppShots) {
@@ -10463,9 +10683,46 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10463
10683
  }
10464
10684
  return Math.round(1000 * this.cornerSaves / this.cornerShotsAgainst) / 10;
10465
10685
  }
10686
+ get perimetrShotSaves() {
10687
+ return (this.ppPerimetrShotSaves || 0) + (this.shPerimetrShotSaves || 0) + (this.evPerimetrShotSaves || 0);
10688
+ }
10689
+ get perimetrShotsAgainst() {
10690
+ return this.perimetrShotSaves + (this.perimetrShotGoalsAgainst || 0);
10691
+ }
10692
+ get perimetrShotSavesPercent() {
10693
+ if (!this.perimetrShotSaves || !this.perimetrShotsAgainst) {
10694
+ return 0;
10695
+ }
10696
+ return Math.round(1000 * this.perimetrShotSaves / this.perimetrShotsAgainst) / 10;
10697
+ }
10698
+ get postShotSaves() {
10699
+ return (this.ppPostShotSaves || 0) + (this.shPostShotSaves || 0) + (this.evPostShotSaves || 0);
10700
+ }
10701
+ get postShotsAgainst() {
10702
+ return this.postShotSaves + (this.postShotGoalsAgainst || 0);
10703
+ }
10704
+ get postShotSavesPercent() {
10705
+ if (!this.postShotSaves || !this.postShotsAgainst) {
10706
+ return 0;
10707
+ }
10708
+ return Math.round(1000 * this.postShotSaves / this.postShotsAgainst) / 10;
10709
+ }
10710
+ get fastShotSaves() {
10711
+ return (this.ppFastShotSaves || 0) + (this.shFastShotSaves || 0) + (this.evFastShotSaves || 0);
10712
+ }
10713
+ get fastShotsAgainst() {
10714
+ return this.fastShotSaves + (this.fastShotGoalsAgainst || 0);
10715
+ }
10716
+ get fastShotSavesPercent() {
10717
+ if (!this.fastShotSaves || !this.fastShotsAgainst) {
10718
+ return 0;
10719
+ }
10720
+ return Math.round(1000 * this.fastShotSaves / this.fastShotsAgainst) / 10;
10721
+ }
10466
10722
  get inGameSaves() {
10467
10723
  return (this.shSaves || 0) + (this.evSaves || 0) + (this.ppSaves || 0) +
10468
- this.counterAttackSaves + this.maneuverSaves + this.centerForwardSaves;
10724
+ this.counterAttackSaves + this.maneuverSaves + this.centerForwardSaves +
10725
+ this.perimetrShotSaves + this.postShotSaves + this.fastShotSaves;
10469
10726
  }
10470
10727
  get saves() {
10471
10728
  return this.inGameSaves + this.freeKickSaves + this.cornerSaves;
@@ -10474,8 +10731,8 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10474
10731
  return this.saves + (this.shootoutSaves || 0);
10475
10732
  }
10476
10733
  get inGameGoalsAgainst() {
10477
- return (this.goalsAgainst || 0) + (this.counterAttackGoalsAgainst || 0) + (this.maneuverGoalsAgainst || 0) +
10478
- (this.centerForwardGoalsAgainst || 0);
10734
+ return (this.goalsAgainst || 0) + (this.counterAttackGoalsAgainst || 0) + (this.maneuverGoalsAgainst || 0) + (this.centerForwardGoalsAgainst || 0) +
10735
+ (this.perimetrShotGoalsAgainst || 0) + (this.postShotGoalsAgainst || 0) + (this.fastShotGoalsAgainst || 0);
10479
10736
  }
10480
10737
  get shootoutShotsAgainst() {
10481
10738
  return (this.shootoutSaves || 0) + (this.shootoutGoalsAgainst || 0);
@@ -10512,11 +10769,13 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10512
10769
  }
10513
10770
  get totalShSaves() {
10514
10771
  return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
10515
- (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
10772
+ (this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0) +
10773
+ (this.shPerimetrShotSaves) + (this.shPostShotSaves) + (this.shFastShotSaves);
10516
10774
  }
10517
10775
  get totalShGoalsAgainst() {
10518
10776
  return (this.shGoalsAgainst || 0) + (this.shFreeKickGoalsAgainst || 0) + (this.shCornerGoalsAgainst || 0) +
10519
- (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0);
10777
+ (this.shCounterAttackGoalsAgainst || 0) + (this.shManeuverGoalsAgainst || 0) + (this.shCenterForwardGoalsAgainst || 0) +
10778
+ (this.shPerimetrShotGoalsAgainst || 0) + (this.shPostShotGoalsAgainst || 0) + (this.shFastShotGoalsAgainst || 0);
10520
10779
  }
10521
10780
  get totalShShotsAgainst() {
10522
10781
  return this.totalShSaves + this.totalShGoalsAgainst;
@@ -10529,11 +10788,13 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
10529
10788
  }
10530
10789
  get totalEvSaves() {
10531
10790
  return (this.evCounterAttackSaves || 0) + (this.evManeuverSaves || 0) + (this.evCenterForwardSaves || 0) +
10532
- (this.evSaves || 0) + (this.evFreeKickSaves || 0) + (this.evCornerSaves || 0);
10791
+ (this.evSaves || 0) + (this.evFreeKickSaves || 0) + (this.evCornerSaves || 0) +
10792
+ (this.evPerimetrShotSaves) + (this.evPostShotSaves) + (this.evFastShotSaves);
10533
10793
  }
10534
10794
  get totalEvGoalsAgainst() {
10535
10795
  return (this.evGoalsAgainst || 0) + (this.evFreeKickGoalsAgainst || 0) + (this.evCornerGoalsAgainst || 0) +
10536
- (this.evCounterAttackGoalsAgainst || 0) + (this.evManeuverGoalsAgainst || 0) + (this.evCenterForwardGoalsAgainst || 0);
10796
+ (this.evCounterAttackGoalsAgainst || 0) + (this.evManeuverGoalsAgainst || 0) + (this.evCenterForwardGoalsAgainst || 0) +
10797
+ (this.evPerimetrShotGoalsAgainst || 0) + (this.evPostShotGoalsAgainst || 0) + (this.evFastShotGoalsAgainst || 0);
10537
10798
  }
10538
10799
  get totalEvShotsAgainst() {
10539
10800
  return this.totalEvSaves + this.totalEvGoalsAgainst;
@@ -10716,7 +10977,66 @@ WaterpoloGameStatistic = __decorate([
10716
10977
  corner_passes: 'cornerPasses',
10717
10978
  corner_selfs: 'cornerSelfs',
10718
10979
  tackles: 'tackles',
10719
- player_efficiency: 'playerEfficiency'
10980
+ player_efficiency: 'playerEfficiency',
10981
+ defense_select_positions: 'defenseSelectPositions',
10982
+ save_possessions: 'savePossessions',
10983
+ pp_perimetr_shot_goals: 'ppPerimetrShotGoals',
10984
+ pp_perimetr_shot_on_goals: 'ppPerimetrShotOnGoals',
10985
+ pp_perimetr_shot_misses: 'ppPerimetrShotMisses',
10986
+ pp_perimetr_shots_blocked: 'ppPerimetrShotsBlocked',
10987
+ ev_perimetr_shot_goals: 'evPerimetrShotGoals',
10988
+ ev_perimetr_shot_on_goals: 'evPerimetrShotOnGoals',
10989
+ ev_perimetr_shot_misses: 'evPerimetrShotMisses',
10990
+ ev_perimetr_shots_blocked: 'evPerimetrShotsBlocked',
10991
+ sh_perimetr_shot_goals: 'shPerimetrShotGoals',
10992
+ sh_perimetr_shot_on_goals: 'shPerimetrShotOnGoals',
10993
+ sh_perimetr_shot_misses: 'shPerimetrShotMisses',
10994
+ sh_perimetr_shots_blocked: 'shPerimetrShotsBlocked',
10995
+ pp_perimetr_shot_saves: 'ppPerimetrShotSaves',
10996
+ sh_perimetr_shot_saves: 'shPerimetrShotSaves',
10997
+ ev_perimetr_shot_saves: 'evPerimetrShotSaves',
10998
+ pp_perimetr_shot_goals_against: 'ppPerimetrShotGoalsAgainst',
10999
+ sh_perimetr_shot_goals_against: 'shPerimetrShotGoalsAgainst',
11000
+ ev_perimetr_shot_goals_against: 'evPerimetrShotGoalsAgainst',
11001
+ perimetr_shot_goals_against: 'perimetrShotGoalsAgainst',
11002
+ pp_post_shot_goals: 'ppPostShotGoals',
11003
+ pp_post_shot_on_goals: 'ppPostShotOnGoals',
11004
+ pp_post_shot_misses: 'ppPostShotMisses',
11005
+ pp_post_shots_blocked: 'ppPostShotsBlocked',
11006
+ ev_post_shot_goals: 'evPostShotGoals',
11007
+ ev_post_shot_on_goals: 'evPostShotOnGoals',
11008
+ ev_post_shot_misses: 'evPostShotMisses',
11009
+ ev_post_shots_blocked: 'evPostShotsBlocked',
11010
+ sh_post_shot_goals: 'shPostShotGoals',
11011
+ sh_post_shot_on_goals: 'shPostShotOnGoals',
11012
+ sh_post_shot_misses: 'shPostShotMisses',
11013
+ sh_post_shots_blocked: 'shPostShotsBlocked',
11014
+ pp_post_shot_saves: 'ppPostShotSaves',
11015
+ sh_post_shot_saves: 'shPostShotSaves',
11016
+ ev_post_shot_saves: 'evPostShotSaves',
11017
+ pp_post_shot_goals_against: 'ppPostShotGoalsAgainst',
11018
+ sh_post_shot_goals_against: 'shPostShotGoalsAgainst',
11019
+ ev_post_shot_goals_against: 'evPostShotGoalsAgainst',
11020
+ post_shot_goals_against: 'postShotGoalsAgainst',
11021
+ pp_fast_shot_goals: 'ppFastShotGoals',
11022
+ pp_fast_shot_on_goals: 'ppFastShotOnGoals',
11023
+ pp_fast_shot_misses: 'ppFastShotMisses',
11024
+ pp_fast_shots_blocked: 'ppFastShotsBlocked',
11025
+ ev_fast_shot_goals: 'evFastShotGoals',
11026
+ ev_fast_shot_on_goals: 'evFastShotOnGoals',
11027
+ ev_fast_shot_misses: 'evFastShotMisses',
11028
+ ev_fast_shots_blocked: 'evFastShotsBlocked',
11029
+ sh_fast_shot_goals: 'shFastShotGoals',
11030
+ sh_fast_shot_on_goals: 'shFastShotOnGoals',
11031
+ sh_fast_shot_misses: 'shFastShotMisses',
11032
+ sh_fast_shots_blocked: 'shFastShotsBlocked',
11033
+ pp_fast_shot_saves: 'ppFastShotSaves',
11034
+ sh_fast_shot_saves: 'shFastShotSaves',
11035
+ ev_fast_shot_saves: 'evFastShotSaves',
11036
+ pp_fast_shot_goals_against: 'ppFastShotGoalsAgainst',
11037
+ sh_fast_shot_goals_against: 'shFastShotGoalsAgainst',
11038
+ ev_fast_shot_goals_against: 'evFastShotGoalsAgainst',
11039
+ fast_shot_goals_against: 'fastShotGoalsAgainst',
10720
11040
  },
10721
11041
  relation: {
10722
11042
  updatedAt: DateTimeField,
@@ -11666,6 +11986,23 @@ const WaterpoloGameLogTypeLocalization = {
11666
11986
  [WaterpoloGameLogTypes.corner_pass]: 'Пас с углового',
11667
11987
  [WaterpoloGameLogTypes.corner_self]: 'Розыгрыш углового',
11668
11988
  [WaterpoloGameLogTypes.complete_penalty_time]: 'Досрочное завершение штрафа',
11989
+ [WaterpoloGameLogTypes.defense_select_position]: 'Защита: выбор позиции',
11990
+ [WaterpoloGameLogTypes.save_possession]: 'Сохранение владения',
11991
+ [WaterpoloGameLogTypes.perimetr_shot_goal]: 'Гол с периметра',
11992
+ [WaterpoloGameLogTypes.perimetr_shot_on_goal]: 'Бросок с периметра в створ',
11993
+ [WaterpoloGameLogTypes.perimetr_shot_miss]: 'Бросок мимо с периметра',
11994
+ [WaterpoloGameLogTypes.perimetr_shot_blocked]: 'Заблокирован бросок с периметра',
11995
+ [WaterpoloGameLogTypes.perimetr_shot_save]: 'Отражен бросок с периметра',
11996
+ [WaterpoloGameLogTypes.post_shot_goal]: 'Гол со штанги',
11997
+ [WaterpoloGameLogTypes.post_shot_on_goal]: 'Бросок со штанги в створ',
11998
+ [WaterpoloGameLogTypes.post_shot_miss]: 'Бросок мимо со штанги',
11999
+ [WaterpoloGameLogTypes.post_shot_blocked]: 'Заблокирован бросок со штанги',
12000
+ [WaterpoloGameLogTypes.post_shot_save]: 'Отражен бросок со штанги',
12001
+ [WaterpoloGameLogTypes.fast_shot_goal]: 'Быстрый гол',
12002
+ [WaterpoloGameLogTypes.fast_shot_on_goal]: 'Быстрый бросок в створ',
12003
+ [WaterpoloGameLogTypes.fast_shot_miss]: 'Быстрый бросок мимо',
12004
+ [WaterpoloGameLogTypes.fast_shot_blocked]: 'Заблокирован быстрый бросок',
12005
+ [WaterpoloGameLogTypes.fast_shot_save]: 'Отражен быстрый бросок',
11669
12006
  },
11670
12007
  [Locales.en]: {
11671
12008
  [WaterpoloGameLogTypes.enter_game]: 'Entering the court',
@@ -11732,6 +12069,23 @@ const WaterpoloGameLogTypeLocalization = {
11732
12069
  [WaterpoloGameLogTypes.corner_pass]: 'Pass from the corner',
11733
12070
  [WaterpoloGameLogTypes.corner_self]: 'Drawing a corner',
11734
12071
  [WaterpoloGameLogTypes.complete_penalty_time]: 'Early completion of the fine',
12072
+ [WaterpoloGameLogTypes.defense_select_position]: 'Defense: position selection',
12073
+ [WaterpoloGameLogTypes.save_possession]: 'Maintaining possession',
12074
+ [WaterpoloGameLogTypes.perimetr_shot_goal]: 'Goal from the perimeter',
12075
+ [WaterpoloGameLogTypes.perimetr_shot_on_goal]: 'Throw from perimeter on target',
12076
+ [WaterpoloGameLogTypes.perimetr_shot_miss]: 'Throw past from the perimeter',
12077
+ [WaterpoloGameLogTypes.perimetr_shot_blocked]: 'A throw from perimeter is blocked',
12078
+ [WaterpoloGameLogTypes.perimetr_shot_save]: 'A throw from perimeter is saved',
12079
+ [WaterpoloGameLogTypes.post_shot_goal]: 'Goal from the post',
12080
+ [WaterpoloGameLogTypes.post_shot_on_goal]: 'Throw from post on target',
12081
+ [WaterpoloGameLogTypes.post_shot_miss]: 'Throw past from the post',
12082
+ [WaterpoloGameLogTypes.post_shot_blocked]: 'A throw from post is blocked',
12083
+ [WaterpoloGameLogTypes.post_shot_save]: 'A throw from post is saved',
12084
+ [WaterpoloGameLogTypes.fast_shot_goal]: 'Fast goal',
12085
+ [WaterpoloGameLogTypes.fast_shot_on_goal]: 'Fast throw on target',
12086
+ [WaterpoloGameLogTypes.fast_shot_miss]: 'Fast throw is missed',
12087
+ [WaterpoloGameLogTypes.fast_shot_blocked]: 'Fast throw is blocked',
12088
+ [WaterpoloGameLogTypes.fast_shot_save]: 'Fast throw is saved',
11735
12089
  }
11736
12090
  };
11737
12091