@mtgame/core 2.0.11 → 2.0.13

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.
Files changed (72) hide show
  1. package/api/league-api.d.ts +1 -0
  2. package/api/tournament-api.d.ts +1 -0
  3. package/api/tournament-season-api.d.ts +2 -0
  4. package/esm2020/api/basketball-game-api.mjs +3 -3
  5. package/esm2020/api/feedback-api.mjs +3 -3
  6. package/esm2020/api/file-api.mjs +3 -3
  7. package/esm2020/api/football-game-api.mjs +3 -3
  8. package/esm2020/api/game-base-api.mjs +3 -3
  9. package/esm2020/api/handball-game-api.mjs +3 -3
  10. package/esm2020/api/hockey-game-api.mjs +3 -3
  11. package/esm2020/api/league-api.mjs +18 -4
  12. package/esm2020/api/league-news-api.mjs +3 -3
  13. package/esm2020/api/league-player-api.mjs +3 -3
  14. package/esm2020/api/media-api.mjs +3 -3
  15. package/esm2020/api/notification-api.mjs +3 -3
  16. package/esm2020/api/notification-base-api.mjs +3 -3
  17. package/esm2020/api/org-notification-api.mjs +3 -3
  18. package/esm2020/api/public-team-api.mjs +3 -3
  19. package/esm2020/api/public-user-api.mjs +3 -3
  20. package/esm2020/api/reference-api.mjs +3 -3
  21. package/esm2020/api/rugby-game-api.mjs +3 -3
  22. package/esm2020/api/team-api.mjs +3 -3
  23. package/esm2020/api/team-event-api.mjs +3 -3
  24. package/esm2020/api/tournament-api.mjs +7 -4
  25. package/esm2020/api/tournament-join-api.mjs +3 -3
  26. package/esm2020/api/tournament-round-api.mjs +3 -3
  27. package/esm2020/api/tournament-season-api.mjs +19 -5
  28. package/esm2020/api/tournament-stage-api.mjs +3 -3
  29. package/esm2020/api/user-api.mjs +3 -3
  30. package/esm2020/api/volleyball-game-api.mjs +3 -3
  31. package/esm2020/api/waterpolo-game-api.mjs +3 -3
  32. package/esm2020/http-cookie.interceptor.mjs +3 -3
  33. package/esm2020/localization/basketball-game-log-types.mjs +8 -1
  34. package/esm2020/localization/rugby-foul-sanction.mjs +2 -2
  35. package/esm2020/localization/rugby-game-log-types.mjs +2 -1
  36. package/esm2020/models/basketball-game-log.mjs +18 -3
  37. package/esm2020/models/basketball-game-statistic.mjs +59 -1
  38. package/esm2020/models/basketball-statistic.mjs +1 -1
  39. package/esm2020/models/football-statistic.mjs +1 -1
  40. package/esm2020/models/game-user.mjs +2 -2
  41. package/esm2020/models/game.mjs +12 -1
  42. package/esm2020/models/hockey-statistic.mjs +1 -1
  43. package/esm2020/models/playoff.mjs +4 -1
  44. package/esm2020/models/rugby-game-log.mjs +19 -18
  45. package/esm2020/models/rugby-game-statistic.mjs +2 -2
  46. package/esm2020/models/rugby-statistic.mjs +1 -1
  47. package/esm2020/models/sport.mjs +5 -1
  48. package/esm2020/models/team.mjs +1 -1
  49. package/esm2020/services/base.service.mjs +3 -3
  50. package/esm2020/services/centrifugo.service.mjs +12 -8
  51. package/esm2020/services/config.service.mjs +3 -3
  52. package/esm2020/services/device-info.service.mjs +3 -3
  53. package/esm2020/websocket/game.websocket.mjs +3 -3
  54. package/fesm2015/mtgame-core.mjs +268 -128
  55. package/fesm2015/mtgame-core.mjs.map +1 -1
  56. package/fesm2020/mtgame-core.mjs +263 -128
  57. package/fesm2020/mtgame-core.mjs.map +1 -1
  58. package/localization/basketball-game-log-types.d.ts +7 -0
  59. package/localization/rugby-game-log-types.d.ts +3 -2
  60. package/models/basketball-game-log.d.ts +9 -1
  61. package/models/basketball-game-statistic.d.ts +32 -0
  62. package/models/basketball-statistic.d.ts +9 -0
  63. package/models/football-statistic.d.ts +2 -0
  64. package/models/game.d.ts +2 -0
  65. package/models/hockey-statistic.d.ts +3 -0
  66. package/models/playoff.d.ts +1 -0
  67. package/models/rugby-game-log.d.ts +18 -17
  68. package/models/rugby-game-statistic.d.ts +1 -0
  69. package/models/rugby-statistic.d.ts +1 -0
  70. package/models/sport.d.ts +3 -1
  71. package/models/team.d.ts +1 -0
  72. package/package.json +1 -1
@@ -209,6 +209,7 @@ var SportTypes;
209
209
  SportTypes[SportTypes["waterpolo"] = 19] = "waterpolo";
210
210
  SportTypes[SportTypes["classic_waterpolo"] = 20] = "classic_waterpolo";
211
211
  SportTypes[SportTypes["mini_waterpolo"] = 21] = "mini_waterpolo";
212
+ SportTypes[SportTypes["media_basket"] = 22] = "media_basket";
212
213
  })(SportTypes || (SportTypes = {}));
213
214
  let Sport = class Sport extends BaseModel {
214
215
  isBasketball() {
@@ -223,6 +224,9 @@ let Sport = class Sport extends BaseModel {
223
224
  isBasketball1x1() {
224
225
  return this.id === SportTypes.basketball_1x1;
225
226
  }
227
+ isMediaBasket() {
228
+ return this.id === SportTypes.media_basket;
229
+ }
226
230
  isVolleyball() {
227
231
  return this.id === SportTypes.volleyball || this.parentId === SportTypes.volleyball;
228
232
  }
@@ -993,6 +997,9 @@ let Playoff = class Playoff extends BaseModel {
993
997
  const playoffStage = this.settings.teamsCount / Math.pow(2, stage);
994
998
  let title = '';
995
999
  if (playoffStage === 1) {
1000
+ if (this.winnerPlace > 1) {
1001
+ title = `${this.winnerPlace} место`;
1002
+ }
996
1003
  title = 'Финал';
997
1004
  }
998
1005
  else {
@@ -1202,6 +1209,18 @@ let Game = class Game extends BaseModel {
1202
1209
  }
1203
1210
  return null;
1204
1211
  }
1212
+ get sport() {
1213
+ var _a, _b, _c, _d, _e, _f;
1214
+ if ((_b = (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.sport) === null || _b === void 0 ? void 0 : _b.id) {
1215
+ return this.tournament.sport;
1216
+ }
1217
+ if ((_d = (_c = this.team) === null || _c === void 0 ? void 0 : _c.sport) === null || _d === void 0 ? void 0 : _d.id) {
1218
+ return this.team.sport;
1219
+ }
1220
+ if ((_f = (_e = this.competitorTeam) === null || _e === void 0 ? void 0 : _e.sport) === null || _f === void 0 ? void 0 : _f.id) {
1221
+ return this.competitorTeam.sport;
1222
+ }
1223
+ }
1205
1224
  };
1206
1225
  Game = __decorate([
1207
1226
  Model({
@@ -1463,24 +1482,64 @@ let BasketballGameStatistic = class BasketballGameStatistic extends GameStatisti
1463
1482
  get totalFouls() {
1464
1483
  return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
1465
1484
  }
1485
+ set onePointPercent(v) { }
1486
+ get onePointPercent() {
1487
+ if (!this.onePointsMade || !this.onePointAttempts) {
1488
+ return 0;
1489
+ }
1490
+ return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
1491
+ }
1492
+ /**
1493
+ * @deprecated Use onePointPercent instead
1494
+ */
1466
1495
  get onePointsPercent() {
1467
1496
  if (!this.onePointsMade || !this.onePointAttempts) {
1468
1497
  return 0;
1469
1498
  }
1470
1499
  return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
1471
1500
  }
1501
+ set twoPointPercent(v) { }
1502
+ get twoPointPercent() {
1503
+ if (!this.twoPointsMade || !this.twoPointAttempts) {
1504
+ return 0;
1505
+ }
1506
+ return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
1507
+ }
1508
+ /**
1509
+ * @deprecated Use twoPointPercent instead
1510
+ */
1472
1511
  get twoPointsPercent() {
1473
1512
  if (!this.twoPointsMade || !this.twoPointAttempts) {
1474
1513
  return 0;
1475
1514
  }
1476
1515
  return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
1477
1516
  }
1517
+ set threePointPercent(v) { }
1518
+ get threePointPercent() {
1519
+ if (!this.threePointsMade || !this.threePointAttempts) {
1520
+ return 0;
1521
+ }
1522
+ return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
1523
+ }
1524
+ /**
1525
+ * @deprecated Use threePointPercent instead
1526
+ */
1478
1527
  get threePointsPercent() {
1479
1528
  if (!this.threePointsMade || !this.threePointAttempts) {
1480
1529
  return 0;
1481
1530
  }
1482
1531
  return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
1483
1532
  }
1533
+ set freeThrowPercent(v) { }
1534
+ get freeThrowPercent() {
1535
+ if (!this.freeThrowsMade || !this.freeThrowAttempts) {
1536
+ return 0;
1537
+ }
1538
+ return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
1539
+ }
1540
+ /**
1541
+ * @deprecated Use freeThrowPercent instead
1542
+ */
1484
1543
  get freeThrowsPercent() {
1485
1544
  if (!this.freeThrowsMade || !this.freeThrowAttempts) {
1486
1545
  return 0;
@@ -1490,6 +1549,24 @@ let BasketballGameStatistic = class BasketballGameStatistic extends GameStatisti
1490
1549
  get totalRebounds() {
1491
1550
  return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
1492
1551
  }
1552
+ set fourPointPercent(v) { }
1553
+ get fourPointPercent() {
1554
+ if (!this.fourPointAttempts || !this.fourPointsMade) {
1555
+ return 0;
1556
+ }
1557
+ return Math.round(1000 * this.fourPointsMade / this.fourPointAttempts) / 10;
1558
+ }
1559
+ set shootoutsTotal(v) { }
1560
+ get shootoutsTotal() {
1561
+ return (this.shootoutsLost || 0) + (this.shootoutsWon || 0);
1562
+ }
1563
+ set shootoutWonPercent(v) { }
1564
+ get shootoutWonPercent() {
1565
+ if (!this.shootoutsTotal || !this.shootoutsWon) {
1566
+ return 0;
1567
+ }
1568
+ return Math.round(1000 * this.shootoutsWon / this.shootoutsTotal) / 10;
1569
+ }
1493
1570
  };
1494
1571
  BasketballGameStatistic = __decorate([
1495
1572
  Model({
@@ -1528,6 +1605,13 @@ var BasketballGameLogTypes;
1528
1605
  BasketballGameLogTypes[BasketballGameLogTypes["one_point_made"] = 22] = "one_point_made";
1529
1606
  BasketballGameLogTypes[BasketballGameLogTypes["timeout"] = 23] = "timeout";
1530
1607
  BasketballGameLogTypes[BasketballGameLogTypes["team_rebound"] = 24] = "team_rebound";
1608
+ BasketballGameLogTypes[BasketballGameLogTypes["four_point_attempt"] = 25] = "four_point_attempt";
1609
+ BasketballGameLogTypes[BasketballGameLogTypes["four_point_made"] = 26] = "four_point_made";
1610
+ BasketballGameLogTypes[BasketballGameLogTypes["dunk_attempt"] = 27] = "dunk_attempt";
1611
+ BasketballGameLogTypes[BasketballGameLogTypes["dunk_made"] = 28] = "dunk_made";
1612
+ BasketballGameLogTypes[BasketballGameLogTypes["shootout"] = 29] = "shootout";
1613
+ BasketballGameLogTypes[BasketballGameLogTypes["shootout_won"] = 30] = "shootout_won";
1614
+ BasketballGameLogTypes[BasketballGameLogTypes["shootout_lost"] = 31] = "shootout_lost";
1531
1615
  })(BasketballGameLogTypes || (BasketballGameLogTypes = {}));
1532
1616
  var BasketballSubLogTypes;
1533
1617
  (function (BasketballSubLogTypes) {
@@ -1601,6 +1685,9 @@ let BasketballGameLog = class BasketballGameLog extends GameLogBase {
1601
1685
  BasketballGameLogTypes.three_point_made,
1602
1686
  BasketballGameLogTypes.free_throw_made,
1603
1687
  BasketballGameLogTypes.one_point_made,
1688
+ BasketballGameLogTypes.four_point_made,
1689
+ BasketballGameLogTypes.dunk_made,
1690
+ BasketballGameLogTypes.shootout_won,
1604
1691
  ].indexOf(this.logType) > -1;
1605
1692
  }
1606
1693
  isReboundType() {
@@ -1624,9 +1711,14 @@ let BasketballGameLog = class BasketballGameLog extends GameLogBase {
1624
1711
  [BasketballGameLogTypes.one_point_made]: 1,
1625
1712
  [BasketballGameLogTypes.free_throw_made]: 1,
1626
1713
  [BasketballGameLogTypes.two_point_made]: 2,
1627
- [BasketballGameLogTypes.three_point_made]: 3
1714
+ [BasketballGameLogTypes.three_point_made]: 3,
1715
+ [BasketballGameLogTypes.four_point_made]: 4,
1716
+ [BasketballGameLogTypes.dunk_made]: 3,
1628
1717
  };
1629
- return scoreMapping[this.logType];
1718
+ if (this.logType === BasketballGameLogTypes.shootout_won) {
1719
+ return this.shootoutPoints;
1720
+ }
1721
+ return scoreMapping[this.logType] || 0;
1630
1722
  }
1631
1723
  compare(model) {
1632
1724
  if (this.time === model.time && this.period === model.period) {
@@ -1661,7 +1753,7 @@ BasketballGameLog = __decorate([
1661
1753
 
1662
1754
  let GameUser = class GameUser extends BaseModel {
1663
1755
  get gameUserNumber() {
1664
- return this.number ? this.number : this.teamUser.number;
1756
+ return (this.number || this.number === 0) ? this.number : this.teamUser.number;
1665
1757
  }
1666
1758
  };
1667
1759
  GameUser = __decorate([
@@ -1930,9 +2022,9 @@ class BaseService {
1930
2022
  this.store.dispose();
1931
2023
  }
1932
2024
  }
1933
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1934
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaseService, decorators: [{
2025
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2026
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, providedIn: 'root' });
2027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, decorators: [{
1936
2028
  type: Injectable,
1937
2029
  args: [{ providedIn: 'root' }]
1938
2030
  }] });
@@ -1963,9 +2055,9 @@ class ConfigService extends BaseService {
1963
2055
  return this.store.value(CONFIG_STORE_KEY) && this.store.value(CONFIG_STORE_KEY)[key];
1964
2056
  }
1965
2057
  }
1966
- ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ConfigService, deps: [{ token: CONFIG_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1967
- ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ConfigService, providedIn: 'root' });
1968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ConfigService, decorators: [{
2058
+ ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, deps: [{ token: CONFIG_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2059
+ ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, providedIn: 'root' });
2060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, decorators: [{
1969
2061
  type: Injectable,
1970
2062
  args: [{ providedIn: 'root' }]
1971
2063
  }], ctorParameters: function () {
@@ -2011,9 +2103,9 @@ class GameBaseApi {
2011
2103
  });
2012
2104
  }
2013
2105
  }
2014
- GameBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2015
- GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameBaseApi, providedIn: 'root' });
2016
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameBaseApi, decorators: [{
2106
+ GameBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2107
+ GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, providedIn: 'root' });
2108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, decorators: [{
2017
2109
  type: Injectable,
2018
2110
  args: [{ providedIn: 'root' }]
2019
2111
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2057,9 +2149,9 @@ class BasketballGameApi extends GameBaseApi {
2057
2149
  });
2058
2150
  }
2059
2151
  }
2060
- BasketballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BasketballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2061
- BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BasketballGameApi, providedIn: 'root' });
2062
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BasketballGameApi, decorators: [{
2152
+ BasketballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2153
+ BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, providedIn: 'root' });
2154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, decorators: [{
2063
2155
  type: Injectable,
2064
2156
  args: [{ providedIn: 'root' }]
2065
2157
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2094,9 +2186,9 @@ class FeedbackApi {
2094
2186
  });
2095
2187
  }
2096
2188
  }
2097
- FeedbackApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FeedbackApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2098
- FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FeedbackApi, providedIn: 'root' });
2099
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FeedbackApi, decorators: [{
2189
+ FeedbackApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2190
+ FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, providedIn: 'root' });
2191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, decorators: [{
2100
2192
  type: Injectable,
2101
2193
  args: [{ providedIn: 'root' }]
2102
2194
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2132,9 +2224,9 @@ class FileApi {
2132
2224
  });
2133
2225
  }
2134
2226
  }
2135
- FileApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FileApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2136
- FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FileApi, providedIn: 'root' });
2137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FileApi, decorators: [{
2227
+ FileApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2228
+ FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, providedIn: 'root' });
2229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, decorators: [{
2138
2230
  type: Injectable,
2139
2231
  args: [{ providedIn: 'root' }]
2140
2232
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2484,9 +2576,9 @@ class HockeyGameApi extends GameBaseApi {
2484
2576
  });
2485
2577
  }
2486
2578
  }
2487
- HockeyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HockeyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2488
- HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HockeyGameApi, providedIn: 'root' });
2489
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HockeyGameApi, decorators: [{
2579
+ HockeyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2580
+ HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, providedIn: 'root' });
2581
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, decorators: [{
2490
2582
  type: Injectable,
2491
2583
  args: [{ providedIn: 'root' }]
2492
2584
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2779,9 +2871,9 @@ class FootballGameApi extends GameBaseApi {
2779
2871
  });
2780
2872
  }
2781
2873
  }
2782
- FootballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FootballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2783
- FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FootballGameApi, providedIn: 'root' });
2784
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: FootballGameApi, decorators: [{
2874
+ FootballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2875
+ FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, providedIn: 'root' });
2876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, decorators: [{
2785
2877
  type: Injectable,
2786
2878
  args: [{ providedIn: 'root' }]
2787
2879
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -2997,9 +3089,9 @@ class HandballGameApi extends GameBaseApi {
2997
3089
  });
2998
3090
  }
2999
3091
  }
3000
- HandballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HandballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3001
- HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HandballGameApi, providedIn: 'root' });
3002
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HandballGameApi, decorators: [{
3092
+ HandballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3093
+ HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, providedIn: 'root' });
3094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, decorators: [{
3003
3095
  type: Injectable,
3004
3096
  args: [{ providedIn: 'root' }]
3005
3097
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3642,9 +3734,9 @@ class TournamentApi {
3642
3734
  });
3643
3735
  }
3644
3736
  }
3645
- TournamentApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3646
- TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentApi, providedIn: 'root' });
3647
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentApi, decorators: [{
3737
+ TournamentApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3738
+ TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, providedIn: 'root' });
3739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, decorators: [{
3648
3740
  type: Injectable,
3649
3741
  args: [{ providedIn: 'root' }]
3650
3742
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3658,6 +3750,9 @@ function applyGamesFilters(filters, params) {
3658
3750
  if (filters.tournamentRoundId) {
3659
3751
  params = params.set('tournament_round_id', filters.tournamentRoundId.toString());
3660
3752
  }
3753
+ if (filters.tournamentGroupId) {
3754
+ params = params.set('tournament_group_id', filters.tournamentGroupId.toString());
3755
+ }
3661
3756
  if (filters.divisionId) {
3662
3757
  params = params.set('division_id', filters.divisionId.toString());
3663
3758
  }
@@ -3821,6 +3916,22 @@ class LeagueApi {
3821
3916
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params }).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
3822
3917
  });
3823
3918
  }
3919
+ getTournamentsPaginated(leagueId, filters, page = 1, size = 100) {
3920
+ return __awaiter(this, void 0, void 0, function* () {
3921
+ let params = new HttpParams()
3922
+ .set('page', page.toString())
3923
+ .set('size', size.toString());
3924
+ if (filters) {
3925
+ if (filters.statuses) {
3926
+ params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
3927
+ }
3928
+ }
3929
+ return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params, observe: 'response' }).pipe(map(result => ({
3930
+ total: +result.headers.get('X-Page-Count'),
3931
+ data: result.body.map(item => new Tournament(item))
3932
+ }))).toPromise();
3933
+ });
3934
+ }
3824
3935
  getEvents(leagueId, page, size, filters) {
3825
3936
  return __awaiter(this, void 0, void 0, function* () {
3826
3937
  let params = new HttpParams().set('page', page.toString())
@@ -3912,9 +4023,9 @@ class LeagueApi {
3912
4023
  });
3913
4024
  }
3914
4025
  }
3915
- LeagueApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3916
- LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueApi, providedIn: 'root' });
3917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueApi, decorators: [{
4026
+ LeagueApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4027
+ LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, providedIn: 'root' });
4028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, decorators: [{
3918
4029
  type: Injectable,
3919
4030
  args: [{ providedIn: 'root' }]
3920
4031
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3972,9 +4083,9 @@ class LeagueNewsApi {
3972
4083
  });
3973
4084
  }
3974
4085
  }
3975
- LeagueNewsApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueNewsApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3976
- LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueNewsApi, providedIn: 'root' });
3977
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeagueNewsApi, decorators: [{
4086
+ LeagueNewsApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4087
+ LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, providedIn: 'root' });
4088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, decorators: [{
3978
4089
  type: Injectable,
3979
4090
  args: [{ providedIn: 'root' }]
3980
4091
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -3995,9 +4106,9 @@ class LeaguePlayerApi {
3995
4106
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league_player/${leaguePlayerId}/tournament_users/`, { params }).pipe(map(response => response.map(item => new TournamentTeamUser(item)))).toPromise();
3996
4107
  }
3997
4108
  }
3998
- LeaguePlayerApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeaguePlayerApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3999
- LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeaguePlayerApi, providedIn: 'root' });
4000
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: LeaguePlayerApi, decorators: [{
4109
+ LeaguePlayerApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4110
+ LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, providedIn: 'root' });
4111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, decorators: [{
4001
4112
  type: Injectable,
4002
4113
  args: [{ providedIn: 'root' }]
4003
4114
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4102,9 +4213,9 @@ class MediaApi {
4102
4213
  });
4103
4214
  }
4104
4215
  }
4105
- MediaApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: MediaApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4106
- MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: MediaApi, providedIn: 'root' });
4107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: MediaApi, decorators: [{
4216
+ MediaApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4217
+ MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, providedIn: 'root' });
4218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, decorators: [{
4108
4219
  type: Injectable,
4109
4220
  args: [{ providedIn: 'root' }]
4110
4221
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4484,9 +4595,9 @@ class NotificationBaseApi {
4484
4595
  });
4485
4596
  }
4486
4597
  }
4487
- NotificationBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4488
- NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationBaseApi, providedIn: 'root' });
4489
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationBaseApi, decorators: [{
4598
+ NotificationBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4599
+ NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, providedIn: 'root' });
4600
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, decorators: [{
4490
4601
  type: Injectable,
4491
4602
  args: [{ providedIn: 'root' }]
4492
4603
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4497,9 +4608,9 @@ class NotificationApi extends NotificationBaseApi {
4497
4608
  this.apiUrl = '/api/v1';
4498
4609
  }
4499
4610
  }
4500
- NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4501
- NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationApi, providedIn: 'root' });
4502
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NotificationApi, decorators: [{
4611
+ NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4612
+ NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, providedIn: 'root' });
4613
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, decorators: [{
4503
4614
  type: Injectable,
4504
4615
  args: [{ providedIn: 'root' }]
4505
4616
  }] });
@@ -4510,9 +4621,9 @@ class OrgNotificationApi extends NotificationBaseApi {
4510
4621
  this.apiUrl = '/org/api/v1';
4511
4622
  }
4512
4623
  }
4513
- OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: OrgNotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4514
- OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: OrgNotificationApi, providedIn: 'root' });
4515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: OrgNotificationApi, decorators: [{
4624
+ OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
4625
+ OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, providedIn: 'root' });
4626
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, decorators: [{
4516
4627
  type: Injectable,
4517
4628
  args: [{ providedIn: 'root' }]
4518
4629
  }] });
@@ -4537,9 +4648,9 @@ class ReferenceApi {
4537
4648
  });
4538
4649
  }
4539
4650
  }
4540
- ReferenceApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ReferenceApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4541
- ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ReferenceApi, providedIn: 'root' });
4542
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: ReferenceApi, decorators: [{
4651
+ ReferenceApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4652
+ ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, providedIn: 'root' });
4653
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, decorators: [{
4543
4654
  type: Injectable,
4544
4655
  args: [{ providedIn: 'root' }]
4545
4656
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -4593,7 +4704,7 @@ let RugbyGameStatistic = class RugbyGameStatistic extends GameStatisticBase {
4593
4704
  return (this.conversionGoals || 0) + (this.dropGoals || 0) + (this.penaltyGoals || 0);
4594
4705
  }
4595
4706
  get footShots() {
4596
- return (this.footFieldShots || 0) + (this.footOutShots || 0);
4707
+ return (this.footFieldShots || 0) + (this.footOutShots || 0) + (this.footKicks5022 || 0);
4597
4708
  }
4598
4709
  get totalFouls() {
4599
4710
  return (this.fouls || 0) + (this.teamFouls || 0);
@@ -4669,24 +4780,25 @@ var RugbyGameLogTypes;
4669
4780
  RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 22] = "end_game_penalty_goal";
4670
4781
  RugbyGameLogTypes[RugbyGameLogTypes["foot_field_shot"] = 23] = "foot_field_shot";
4671
4782
  RugbyGameLogTypes[RugbyGameLogTypes["foot_out_shot"] = 24] = "foot_out_shot";
4783
+ RugbyGameLogTypes[RugbyGameLogTypes["foot_kick_50_22"] = 25] = "foot_kick_50_22";
4672
4784
  // team actions
4673
- RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 25] = "timeout";
4674
- RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] = 26] = "tap_penalty";
4675
- RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] = 27] = "penalty_kick_to_touch";
4676
- RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 28] = "scrum_won";
4677
- RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] = 29] = "scrum_lost";
4678
- RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 30] = "scrum_won_free";
4679
- RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] = 31] = "lineout_won";
4680
- RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] = 32] = "lineout_lost";
4681
- RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 33] = "quick_throw";
4682
- RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 34] = "ruck_won";
4683
- RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] = 35] = "ruck_lost";
4684
- RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 36] = "maul_won";
4685
- RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 37] = "maul_lost";
4686
- RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 38] = "team_foul";
4687
- RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] = 39] = "start_kick";
4688
- RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] = 40] = "twenty_two_meters_kick";
4689
- RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] = 41] = "goal_kick";
4785
+ RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 26] = "timeout";
4786
+ RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] = 27] = "tap_penalty";
4787
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] = 28] = "penalty_kick_to_touch";
4788
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 29] = "scrum_won";
4789
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] = 30] = "scrum_lost";
4790
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 31] = "scrum_won_free";
4791
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] = 32] = "lineout_won";
4792
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] = 33] = "lineout_lost";
4793
+ RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 34] = "quick_throw";
4794
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 35] = "ruck_won";
4795
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] = 36] = "ruck_lost";
4796
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 37] = "maul_won";
4797
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 38] = "maul_lost";
4798
+ RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 39] = "team_foul";
4799
+ RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] = 40] = "start_kick";
4800
+ RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] = 41] = "twenty_two_meters_kick";
4801
+ RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] = 42] = "goal_kick";
4690
4802
  })(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
4691
4803
  const RUGBY_GAME_LOG_TYPE_POINTS = {
4692
4804
  [RugbyGameLogTypes.penalty_try]: 7,
@@ -4798,9 +4910,9 @@ class RugbyGameApi extends GameBaseApi {
4798
4910
  });
4799
4911
  }
4800
4912
  }
4801
- RugbyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: RugbyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4802
- RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: RugbyGameApi, providedIn: 'root' });
4803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: RugbyGameApi, decorators: [{
4913
+ RugbyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4914
+ RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, providedIn: 'root' });
4915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, decorators: [{
4804
4916
  type: Injectable,
4805
4917
  args: [{ providedIn: 'root' }]
4806
4918
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5202,9 +5314,9 @@ class TeamApi {
5202
5314
  });
5203
5315
  }
5204
5316
  }
5205
- TeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5206
- TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamApi, providedIn: 'root' });
5207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamApi, decorators: [{
5317
+ TeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5318
+ TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, providedIn: 'root' });
5319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, decorators: [{
5208
5320
  type: Injectable,
5209
5321
  args: [{ providedIn: 'root' }]
5210
5322
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5270,9 +5382,9 @@ class TeamEventApi {
5270
5382
  });
5271
5383
  }
5272
5384
  }
5273
- TeamEventApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamEventApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5274
- TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamEventApi, providedIn: 'root' });
5275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TeamEventApi, decorators: [{
5385
+ TeamEventApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5386
+ TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, providedIn: 'root' });
5387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, decorators: [{
5276
5388
  type: Injectable,
5277
5389
  args: [{ providedIn: 'root' }]
5278
5390
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5349,9 +5461,9 @@ class TournamentJoinApi {
5349
5461
  });
5350
5462
  }
5351
5463
  }
5352
- TournamentJoinApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentJoinApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5353
- TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentJoinApi, providedIn: 'root' });
5354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentJoinApi, decorators: [{
5464
+ TournamentJoinApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5465
+ TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, providedIn: 'root' });
5466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, decorators: [{
5355
5467
  type: Injectable,
5356
5468
  args: [{ providedIn: 'root' }]
5357
5469
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5434,9 +5546,9 @@ class TournamentRoundApi {
5434
5546
  });
5435
5547
  }
5436
5548
  }
5437
- TournamentRoundApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentRoundApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5438
- TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentRoundApi, providedIn: 'root' });
5439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentRoundApi, decorators: [{
5549
+ TournamentRoundApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5550
+ TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, providedIn: 'root' });
5551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, decorators: [{
5440
5552
  type: Injectable,
5441
5553
  args: [{ providedIn: 'root' }]
5442
5554
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5456,6 +5568,22 @@ class TournamentSeasonApi {
5456
5568
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_season/${seasonId}/tournaments/`).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
5457
5569
  });
5458
5570
  }
5571
+ getTournamentsPaginated(seasonId, filters, page = 1, size = 100) {
5572
+ return __awaiter(this, void 0, void 0, function* () {
5573
+ let params = new HttpParams()
5574
+ .set('page', page.toString())
5575
+ .set('size', size.toString());
5576
+ if (filters) {
5577
+ if (filters.statuses) {
5578
+ params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
5579
+ }
5580
+ }
5581
+ return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_season/${seasonId}/tournaments/`, { params, observe: 'response' }).pipe(map(result => ({
5582
+ total: +result.headers.get('X-Page-Count'),
5583
+ data: result.body.map(item => new Tournament(item))
5584
+ }))).toPromise();
5585
+ });
5586
+ }
5459
5587
  getGames(seasonId, page, size, filters) {
5460
5588
  return __awaiter(this, void 0, void 0, function* () {
5461
5589
  let params = new HttpParams().set('page', page.toString());
@@ -5527,9 +5655,9 @@ class TournamentSeasonApi {
5527
5655
  });
5528
5656
  }
5529
5657
  }
5530
- TournamentSeasonApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentSeasonApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5531
- TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentSeasonApi, providedIn: 'root' });
5532
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentSeasonApi, decorators: [{
5658
+ TournamentSeasonApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5659
+ TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, providedIn: 'root' });
5660
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, decorators: [{
5533
5661
  type: Injectable,
5534
5662
  args: [{ providedIn: 'root' }]
5535
5663
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5582,9 +5710,9 @@ class TournamentStageApi {
5582
5710
  });
5583
5711
  }
5584
5712
  }
5585
- TournamentStageApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentStageApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5586
- TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentStageApi, providedIn: 'root' });
5587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: TournamentStageApi, decorators: [{
5713
+ TournamentStageApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5714
+ TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, providedIn: 'root' });
5715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, decorators: [{
5588
5716
  type: Injectable,
5589
5717
  args: [{ providedIn: 'root' }]
5590
5718
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -5867,9 +5995,9 @@ class UserApi {
5867
5995
  });
5868
5996
  }
5869
5997
  }
5870
- UserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: UserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5871
- UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: UserApi, providedIn: 'root' });
5872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: UserApi, decorators: [{
5998
+ UserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
5999
+ UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, providedIn: 'root' });
6000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, decorators: [{
5873
6001
  type: Injectable,
5874
6002
  args: [{ providedIn: 'root' }]
5875
6003
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6086,9 +6214,9 @@ class VolleyballGameApi extends GameBaseApi {
6086
6214
  });
6087
6215
  }
6088
6216
  }
6089
- VolleyballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: VolleyballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6090
- VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: VolleyballGameApi, providedIn: 'root' });
6091
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: VolleyballGameApi, decorators: [{
6217
+ VolleyballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6218
+ VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, providedIn: 'root' });
6219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, decorators: [{
6092
6220
  type: Injectable,
6093
6221
  args: [{ providedIn: 'root' }]
6094
6222
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6752,9 +6880,9 @@ class WaterpoloGameApi extends GameBaseApi {
6752
6880
  });
6753
6881
  }
6754
6882
  }
6755
- WaterpoloGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: WaterpoloGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6756
- WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: WaterpoloGameApi, providedIn: 'root' });
6757
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: WaterpoloGameApi, decorators: [{
6883
+ WaterpoloGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6884
+ WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, providedIn: 'root' });
6885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, decorators: [{
6758
6886
  type: Injectable,
6759
6887
  args: [{ providedIn: 'root' }]
6760
6888
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6780,9 +6908,9 @@ class PublicTeamApi {
6780
6908
  });
6781
6909
  }
6782
6910
  }
6783
- PublicTeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicTeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6784
- PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicTeamApi, providedIn: 'root' });
6785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicTeamApi, decorators: [{
6911
+ PublicTeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6912
+ PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, providedIn: 'root' });
6913
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, decorators: [{
6786
6914
  type: Injectable,
6787
6915
  args: [{ providedIn: 'root' }]
6788
6916
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6808,9 +6936,9 @@ class PublicUserApi {
6808
6936
  return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/public_user/${userId}/league_player/`, { params }).pipe(map(result => new LeaguePlayer(result))).toPromise();
6809
6937
  }
6810
6938
  }
6811
- PublicUserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicUserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6812
- PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicUserApi, providedIn: 'root' });
6813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: PublicUserApi, decorators: [{
6939
+ PublicUserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, deps: [{ token: i1.HttpClient }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
6940
+ PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, providedIn: 'root' });
6941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, decorators: [{
6814
6942
  type: Injectable,
6815
6943
  args: [{ providedIn: 'root' }]
6816
6944
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
@@ -6839,6 +6967,13 @@ const BasketballGameLogTypeLocalization = {
6839
6967
  [BasketballGameLogTypes.unsportsmanlike_foul]: 'Неспортиный фол',
6840
6968
  [BasketballGameLogTypes.timeout]: 'Таймаут',
6841
6969
  [BasketballGameLogTypes.team_rebound]: 'Командный подбор',
6970
+ [BasketballGameLogTypes.dunk_attempt]: 'Данк мимо',
6971
+ [BasketballGameLogTypes.dunk_made]: 'Данк',
6972
+ [BasketballGameLogTypes.four_point_attempt]: 'Бросок 4 очка',
6973
+ [BasketballGameLogTypes.four_point_made]: '4 очка',
6974
+ [BasketballGameLogTypes.shootout]: 'Булит',
6975
+ [BasketballGameLogTypes.shootout_won]: 'Булит выигран',
6976
+ [BasketballGameLogTypes.shootout_lost]: 'Булит проигран',
6842
6977
  };
6843
6978
 
6844
6979
  const BasketballGameSubLogTypesLocalization = {
@@ -7041,7 +7176,7 @@ const OvertimeTypeLocalization = {
7041
7176
 
7042
7177
  const RugbyFoulSanctionLocalization = {
7043
7178
  [RugbyFoulSanctions.scrum]: 'Схватка',
7044
- [RugbyFoulSanctions.lineout]: 'Корридор',
7179
+ [RugbyFoulSanctions.lineout]: 'Коридор',
7045
7180
  [RugbyFoulSanctions.start_kick]: 'Начальный удар',
7046
7181
  [RugbyFoulSanctions.free_kick]: 'Свободный удар',
7047
7182
  [RugbyFoulSanctions.penalty_shot]: 'Штрафной удар',
@@ -7091,6 +7226,7 @@ const RugbyGameLogTypeLocalization = {
7091
7226
  [RugbyGameLogTypes.end_game_penalty_goal]: 'Штрафной гол',
7092
7227
  [RugbyGameLogTypes.foot_field_shot]: 'Удар ногой в поле',
7093
7228
  [RugbyGameLogTypes.foot_out_shot]: 'Удар ногой в аут',
7229
+ [RugbyGameLogTypes.foot_kick_50_22]: 'Удар ногой 50/22',
7094
7230
  [RugbyGameLogTypes.timeout]: 'Таймаут',
7095
7231
  [RugbyGameLogTypes.scrum_won]: 'Схватка выиграна',
7096
7232
  [RugbyGameLogTypes.scrum_lost]: 'Схватка проиграна',
@@ -7384,6 +7520,7 @@ class CentrifugoService {
7384
7520
  unsubscribe(channel) {
7385
7521
  if (this.subscriptions[channel]) {
7386
7522
  this.subscriptions[channel].unsubscribe();
7523
+ this.centrifuge.removeSubscription(this.subscriptions[channel]);
7387
7524
  delete this.subscriptions[channel];
7388
7525
  }
7389
7526
  if (this.channels$[channel]) {
@@ -7449,10 +7586,13 @@ class CentrifugoService {
7449
7586
  this.centrifuge._debugEnabled = false;
7450
7587
  }
7451
7588
  addEngineSubscription(channel) {
7452
- const sub = this.centrifuge.newSubscription(channel);
7453
- sub.on('publication', ctx => {
7454
- this.resolveMessage(channel, ctx.data);
7455
- });
7589
+ let sub = this.centrifuge.getSubscription(channel);
7590
+ if (!sub) {
7591
+ sub = this.centrifuge.newSubscription(channel);
7592
+ sub.on('publication', ctx => {
7593
+ this.resolveMessage(channel, ctx.data);
7594
+ });
7595
+ }
7456
7596
  sub.subscribe();
7457
7597
  return sub;
7458
7598
  }
@@ -7463,9 +7603,9 @@ class CentrifugoService {
7463
7603
  this.channels$[channel].next(message);
7464
7604
  }
7465
7605
  }
7466
- CentrifugoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: CentrifugoService, deps: [{ token: i1.HttpClient }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7467
- CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: CentrifugoService, providedIn: 'root' });
7468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: CentrifugoService, decorators: [{
7606
+ CentrifugoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, deps: [{ token: i1.HttpClient }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7607
+ CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, providedIn: 'root' });
7608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, decorators: [{
7469
7609
  type: Injectable,
7470
7610
  args: [{ providedIn: 'root' }]
7471
7611
  }], ctorParameters: function () {
@@ -7514,9 +7654,9 @@ class DeviceInfoService {
7514
7654
  });
7515
7655
  }
7516
7656
  }
7517
- DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: DeviceInfoService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7518
- DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: DeviceInfoService, providedIn: 'root' });
7519
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: DeviceInfoService, decorators: [{
7657
+ DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7658
+ DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, providedIn: 'root' });
7659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, decorators: [{
7520
7660
  type: Injectable,
7521
7661
  args: [{ providedIn: 'root' }]
7522
7662
  }], ctorParameters: function () {
@@ -7878,9 +8018,9 @@ class HttpCookieInterceptor {
7878
8018
  return next.handle(req);
7879
8019
  }
7880
8020
  }
7881
- HttpCookieInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HttpCookieInterceptor, deps: [{ token: i0.Injector }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
7882
- HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HttpCookieInterceptor });
7883
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: HttpCookieInterceptor, decorators: [{
8021
+ HttpCookieInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor, deps: [{ token: i0.Injector }, { token: ConfigService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
8022
+ HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor });
8023
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor, decorators: [{
7884
8024
  type: Injectable
7885
8025
  }], ctorParameters: function () {
7886
8026
  return [{ type: i0.Injector }, { type: ConfigService }, { type: undefined, decorators: [{
@@ -7936,9 +8076,9 @@ class GameWebsocket {
7936
8076
  return this.centrifugoService.listen(`game_${gameId}`).pipe(filter(item => item.action === GameWebsocketEvents.GAME_USER_DELETED), map(item => new GameUser(item.data)));
7937
8077
  }
7938
8078
  }
7939
- GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameWebsocket, deps: [{ token: CentrifugoService }], target: i0.ɵɵFactoryTarget.Injectable });
7940
- GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameWebsocket, providedIn: 'root' });
7941
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: GameWebsocket, decorators: [{
8079
+ GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, deps: [{ token: CentrifugoService }], target: i0.ɵɵFactoryTarget.Injectable });
8080
+ GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, providedIn: 'root' });
8081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, decorators: [{
7942
8082
  type: Injectable,
7943
8083
  args: [{ providedIn: 'root' }]
7944
8084
  }], ctorParameters: function () { return [{ type: CentrifugoService }]; } });