@mtgame/core 0.1.115 → 0.1.118

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.
@@ -1718,6 +1718,7 @@ WaterpoloGameConfig = __decorate([
1718
1718
  timeout_time: 'timeoutTime',
1719
1719
  game_time_type: 'gameTimeType',
1720
1720
  substitute_manage_enabled: 'substituteManageEnabled',
1721
+ shot_clock_enabled: 'shotClockEnabled',
1721
1722
  },
1722
1723
  relation: {
1723
1724
  overtimeType: enumField(OvertimeTypes),
@@ -4905,13 +4906,38 @@ WaterpoloStatistic = __decorate([
4905
4906
  penalty_minutes: 'penaltyMinutes',
4906
4907
  game_time: 'gameTime',
4907
4908
  plus_minus: 'plusMinus',
4908
- free_kicks: 'freeKicks',
4909
4909
  yellow_cards: 'yellowCards',
4910
4910
  red_cards: 'redCards',
4911
4911
  fouls: 'fouls',
4912
+ personal_fouls: 'personalFouls',
4913
+ total_fouls: 'totalFouls',
4912
4914
  losses: 'losses',
4913
4915
  steals: 'steals',
4914
4916
  drawn_fouls: 'drawnFouls',
4917
+ pp_free_kick_goals: 'ppFreeKickGoals',
4918
+ pp_free_kick_on_goals: 'ppFreeKickOnGoals',
4919
+ pp_free_kick_misses: 'ppFreeKickMisses',
4920
+ sh_free_kick_goals: 'shFreeKickGoals',
4921
+ sh_free_kick_on_goals: 'shFreeKickOnGoals',
4922
+ sh_free_kick_misses: 'shFreeKickMisses',
4923
+ ev_free_kick_goals: 'evFreeKickGoals',
4924
+ ev_free_kick_on_goals: 'evFreeKickOnGoals',
4925
+ ev_free_kick_misses: 'evFreeKickMisses',
4926
+ free_kick_passes: 'freeKickPasses',
4927
+ free_kick_selfs: 'freeKickSelfs',
4928
+ pp_corner_goals: 'ppCornerGoals',
4929
+ pp_corner_on_goals: 'ppCornerOnGoals',
4930
+ pp_corner_misses: 'ppCornerMisses',
4931
+ sh_corner_goals: 'shCornerGoals',
4932
+ sh_corner_on_goals: 'shCornerOnGoals',
4933
+ sh_corner_misses: 'shCornerMisses',
4934
+ ev_corner_goals: 'evCornerGoals',
4935
+ ev_corner_on_goals: 'evCornerOnGoals',
4936
+ ev_corner_misses: 'evCornerMisses',
4937
+ corner_passes: 'cornerPasses',
4938
+ corner_selfs: 'cornerSelfs',
4939
+ total_corners: 'totalCorners',
4940
+ total_free_kicks: 'totalFreeKicks',
4915
4941
  newbie: 'newbie',
4916
4942
  rank: 'rank',
4917
4943
  },
@@ -8096,7 +8122,7 @@ var WaterpoloGameLogTypes;
8096
8122
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_goal"] = 8] = "shootout_goal";
8097
8123
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["assist"] = 9] = "assist";
8098
8124
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["block_shot"] = 10] = "block_shot";
8099
- WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick"] = 11] = "free_kick";
8125
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_on_goal"] = 11] = "free_kick_on_goal";
8100
8126
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["minor_penalty"] = 12] = "minor_penalty";
8101
8127
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["major_penalty"] = 13] = "major_penalty";
8102
8128
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["match_penalty"] = 14] = "match_penalty";
@@ -8116,6 +8142,16 @@ var WaterpoloGameLogTypes;
8116
8142
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_save"] = 28] = "shootout_save";
8117
8143
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["loss"] = 29] = "loss";
8118
8144
  WaterpoloGameLogTypes[WaterpoloGameLogTypes["steal"] = 30] = "steal";
8145
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_miss"] = 31] = "free_kick_miss";
8146
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_goal"] = 32] = "free_kick_goal";
8147
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_pass"] = 33] = "free_kick_pass";
8148
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_self"] = 34] = "free_kick_self";
8149
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_on_goal"] = 35] = "corner_on_goal";
8150
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_miss"] = 36] = "corner_miss";
8151
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_goal"] = 37] = "corner_goal";
8152
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_pass"] = 38] = "corner_pass";
8153
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_self"] = 39] = "corner_self";
8154
+ WaterpoloGameLogTypes[WaterpoloGameLogTypes["personal_foul"] = 40] = "personal_foul";
8119
8155
  })(WaterpoloGameLogTypes || (WaterpoloGameLogTypes = {}));
8120
8156
  var WaterpoloAdvantageTypes;
8121
8157
  (function (WaterpoloAdvantageTypes) {
@@ -8152,11 +8188,12 @@ let WaterpoloGameLog = class WaterpoloGameLog extends BaseModel {
8152
8188
  return `${minutes < 10 ? '0' : ''}${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;
8153
8189
  }
8154
8190
  isScoreType() {
8155
- return [WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal].indexOf(this.logType) > -1;
8191
+ return [WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal,
8192
+ WaterpoloGameLogTypes.free_kick_goal, WaterpoloGameLogTypes.corner_goal].indexOf(this.logType) > -1;
8156
8193
  }
8157
8194
  isPenaltyType() {
8158
8195
  return [
8159
- WaterpoloGameLogTypes.minor_penalty, WaterpoloGameLogTypes.major_penalty, WaterpoloGameLogTypes.match_penalty
8196
+ WaterpoloGameLogTypes.minor_penalty, WaterpoloGameLogTypes.major_penalty, WaterpoloGameLogTypes.match_penalty, WaterpoloGameLogTypes.personal_foul
8160
8197
  ].indexOf(this.logType) > -1;
8161
8198
  }
8162
8199
  isAfter(log) {
@@ -8211,22 +8248,33 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8211
8248
  return this.gameUserId;
8212
8249
  }
8213
8250
  get shotsOnGoal() {
8214
- return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
8251
+ return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
8252
+ (this.evCornerOnGoals || 0) + (this.ppCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
8253
+ (this.evFreeKickOnGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0);
8215
8254
  }
8216
8255
  get shotsBlocked() {
8217
8256
  return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
8218
8257
  }
8219
8258
  get shotMisses() {
8220
- return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0);
8259
+ return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0) +
8260
+ (this.evCornerMisses || 0) + (this.ppCornerMisses || 0) + (this.shCornerMisses || 0) +
8261
+ (this.evFreeKickMisses || 0) + (this.ppFreeKickMisses || 0) + (this.shFreeKickMisses || 0);
8221
8262
  }
8222
8263
  get ppShots() {
8223
- return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
8264
+ return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
8265
+ (this.ppCornerMisses || 0) + (this.ppCornerOnGoals || 0) +
8266
+ (this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0);
8224
8267
  }
8225
8268
  get evShots() {
8226
- return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
8269
+ return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0) +
8270
+ (this.evCornerMisses || 0) + (this.evCornerOnGoals || 0) +
8271
+ (this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0);
8227
8272
  }
8228
8273
  get shShots() {
8229
- return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
8274
+ return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
8275
+ (this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
8276
+ (this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
8277
+ ;
8230
8278
  }
8231
8279
  get shots() {
8232
8280
  return this.ppShots + this.evShots + this.shShots + (this.shootoutAttempts || 0);
@@ -8235,7 +8283,9 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8235
8283
  return this.shots + (this.shootoutAttempts || 0);
8236
8284
  }
8237
8285
  get goals() {
8238
- return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
8286
+ return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0) +
8287
+ (this.ppFreeKickGoals || 0) + (this.shFreeKickGoals || 0) + (this.evFreeKickGoals || 0) +
8288
+ (this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
8239
8289
  }
8240
8290
  get totalGoals() {
8241
8291
  return this.goals + (this.shootoutGoals || 0);
@@ -8276,6 +8326,9 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8276
8326
  get totalGoalsAgainst() {
8277
8327
  return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
8278
8328
  }
8329
+ get totalFouls() {
8330
+ return (this.fouls || 0) + (this.personalFouls || 0);
8331
+ }
8279
8332
  get gameMinutes() {
8280
8333
  return Math.floor(this.gameTime / 60);
8281
8334
  }
@@ -8294,6 +8347,18 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
8294
8347
  get goalpass() {
8295
8348
  return (this.totalGoals || 0) + (this.assists || 0);
8296
8349
  }
8350
+ get totalFreeKicks() {
8351
+ return (this.freeKickPasses || 0) + (this.freeKickSelfs || 0) +
8352
+ (this.ppFreeKickGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppFreeKickMisses || 0) +
8353
+ (this.evFreeKickGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.evFreeKickMisses || 0) +
8354
+ (this.shFreeKickGoals || 0) + (this.shFreeKickOnGoals || 0) + (this.shFreeKickMisses || 0);
8355
+ }
8356
+ get totalCorners() {
8357
+ return (this.cornerPasses || 0) + (this.cornerSelfs || 0) +
8358
+ (this.ppCornerGoals || 0) + (this.ppCornerOnGoals || 0) + (this.ppCornerMisses || 0) +
8359
+ (this.evCornerGoals || 0) + (this.evCornerOnGoals || 0) + (this.evCornerMisses || 0) +
8360
+ (this.shCornerGoals || 0) + (this.shCornerOnGoals || 0) + (this.shCornerMisses || 0);
8361
+ }
8297
8362
  static toFront(data) { }
8298
8363
  static toBack(data) { }
8299
8364
  };
@@ -8341,13 +8406,35 @@ WaterpoloGameStatistic = __decorate([
8341
8406
  penalty_minutes: 'penaltyMinutes',
8342
8407
  game_time: 'gameTime',
8343
8408
  plus_minus: 'plusMinus',
8344
- free_kicks: 'freeKicks',
8345
8409
  yellow_cards: 'yellowCards',
8346
8410
  red_cards: 'redCards',
8347
8411
  fouls: 'fouls',
8412
+ personal_fouls: 'personalFouls',
8348
8413
  losses: 'losses',
8349
8414
  steals: 'steals',
8350
8415
  drawn_fouls: 'drawnFouls',
8416
+ pp_free_kick_goals: 'ppFreeKickGoals',
8417
+ pp_free_kick_on_goals: 'ppFreeKickOnGoals',
8418
+ pp_free_kick_misses: 'ppFreeKickMisses',
8419
+ sh_free_kick_goals: 'shFreeKickGoals',
8420
+ sh_free_kick_on_goals: 'shFreeKickOnGoals',
8421
+ sh_free_kick_misses: 'shFreeKickMisses',
8422
+ ev_free_kick_goals: 'evFreeKickGoals',
8423
+ ev_free_kick_on_goals: 'evFreeKickOnGoals',
8424
+ ev_free_kick_misses: 'evFreeKickMisses',
8425
+ free_kick_passes: 'freeKickPasses',
8426
+ free_kick_selfs: 'freeKickSelfs',
8427
+ pp_corner_goals: 'ppCornerGoals',
8428
+ pp_corner_on_goals: 'ppCornerOnGoals',
8429
+ pp_corner_misses: 'ppCornerMisses',
8430
+ sh_corner_goals: 'shCornerGoals',
8431
+ sh_corner_on_goals: 'shCornerOnGoals',
8432
+ sh_corner_misses: 'shCornerMisses',
8433
+ ev_corner_goals: 'evCornerGoals',
8434
+ ev_corner_on_goals: 'evCornerOnGoals',
8435
+ ev_corner_misses: 'evCornerMisses',
8436
+ corner_passes: 'cornerPasses',
8437
+ corner_selfs: 'cornerSelfs'
8351
8438
  },
8352
8439
  relation: {
8353
8440
  updatedAt: DateTimeField,
@@ -8634,10 +8721,11 @@ const WaterpoloGameLogTypeLocalization = {
8634
8721
  [WaterpoloGameLogTypes.after_game_shootout_goal]: 'Пенальти гол',
8635
8722
  [WaterpoloGameLogTypes.assist]: 'Передача',
8636
8723
  [WaterpoloGameLogTypes.block_shot]: 'Блокировка броска',
8637
- [WaterpoloGameLogTypes.minor_penalty]: 'Штраф 20 сек.',
8638
- [WaterpoloGameLogTypes.major_penalty]: 'Штраф 4 мин.',
8639
- [WaterpoloGameLogTypes.match_penalty]: 'Матч-штраф',
8724
+ [WaterpoloGameLogTypes.minor_penalty]: 'Удаление на 20 сек.',
8725
+ [WaterpoloGameLogTypes.major_penalty]: 'Удаление + 4 мин. штраф',
8726
+ [WaterpoloGameLogTypes.match_penalty]: 'Удаление до конца матча',
8640
8727
  [WaterpoloGameLogTypes.foul]: 'Фол',
8728
+ [WaterpoloGameLogTypes.personal_foul]: 'Персональный фол',
8641
8729
  [WaterpoloGameLogTypes.penalty_shot]: 'Штрафной бросок',
8642
8730
  [WaterpoloGameLogTypes.face_off_lose]: 'Проигрыш в спринте',
8643
8731
  [WaterpoloGameLogTypes.face_off_win]: 'Победа в спринте',
@@ -8649,9 +8737,18 @@ const WaterpoloGameLogTypeLocalization = {
8649
8737
  [WaterpoloGameLogTypes.penalty_end]: 'Конец штрафного времени',
8650
8738
  [WaterpoloGameLogTypes.yellow_card]: 'Желтая карточка',
8651
8739
  [WaterpoloGameLogTypes.red_card]: 'Красная карточка',
8652
- [WaterpoloGameLogTypes.free_kick]: 'Свободный удар',
8653
8740
  [WaterpoloGameLogTypes.loss]: 'Потеря',
8654
- [WaterpoloGameLogTypes.steal]: 'Перехват'
8741
+ [WaterpoloGameLogTypes.steal]: 'Перехват',
8742
+ [WaterpoloGameLogTypes.free_kick_goal]: 'Свободный удар - гол',
8743
+ [WaterpoloGameLogTypes.free_kick_on_goal]: 'Свободный удар в створ',
8744
+ [WaterpoloGameLogTypes.free_kick_miss]: 'Свободный удар мимо',
8745
+ [WaterpoloGameLogTypes.free_kick_pass]: 'Свободный удар пас',
8746
+ [WaterpoloGameLogTypes.free_kick_self]: 'Свободный удар розыгрыш',
8747
+ [WaterpoloGameLogTypes.corner_goal]: 'Угловой - гол',
8748
+ [WaterpoloGameLogTypes.corner_on_goal]: 'Угловой в створ',
8749
+ [WaterpoloGameLogTypes.corner_miss]: 'Угловой мимо',
8750
+ [WaterpoloGameLogTypes.corner_pass]: 'Угловой пас',
8751
+ [WaterpoloGameLogTypes.corner_self]: 'Угловой розыгрыш'
8655
8752
  };
8656
8753
 
8657
8754
  const OvertimeTypeLocalization = {