@mtgame/core 2.0.12 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/tournament-api.d.ts +1 -0
- package/esm2020/api/basketball-game-api.mjs +3 -3
- package/esm2020/api/feedback-api.mjs +3 -3
- package/esm2020/api/file-api.mjs +3 -3
- package/esm2020/api/football-game-api.mjs +3 -3
- package/esm2020/api/game-base-api.mjs +3 -3
- package/esm2020/api/handball-game-api.mjs +3 -3
- package/esm2020/api/hockey-game-api.mjs +3 -3
- package/esm2020/api/league-api.mjs +3 -3
- package/esm2020/api/league-news-api.mjs +3 -3
- package/esm2020/api/league-player-api.mjs +3 -3
- package/esm2020/api/media-api.mjs +3 -3
- package/esm2020/api/notification-api.mjs +3 -3
- package/esm2020/api/notification-base-api.mjs +3 -3
- package/esm2020/api/org-notification-api.mjs +3 -3
- package/esm2020/api/public-team-api.mjs +3 -3
- package/esm2020/api/public-user-api.mjs +3 -3
- package/esm2020/api/reference-api.mjs +3 -3
- package/esm2020/api/rugby-game-api.mjs +3 -3
- package/esm2020/api/team-api.mjs +3 -3
- package/esm2020/api/team-event-api.mjs +3 -3
- package/esm2020/api/tournament-api.mjs +7 -4
- package/esm2020/api/tournament-join-api.mjs +3 -3
- package/esm2020/api/tournament-round-api.mjs +3 -3
- package/esm2020/api/tournament-season-api.mjs +3 -3
- package/esm2020/api/tournament-stage-api.mjs +3 -3
- package/esm2020/api/user-api.mjs +3 -3
- package/esm2020/api/volleyball-game-api.mjs +3 -3
- package/esm2020/api/waterpolo-game-api.mjs +3 -3
- package/esm2020/http-cookie.interceptor.mjs +3 -3
- package/esm2020/localization/basketball-game-log-types.mjs +8 -1
- package/esm2020/localization/rugby-foul-sanction.mjs +2 -2
- package/esm2020/localization/rugby-game-log-types.mjs +2 -1
- package/esm2020/models/basketball-game-log.mjs +18 -3
- package/esm2020/models/basketball-game-statistic.mjs +59 -1
- package/esm2020/models/basketball-statistic.mjs +5 -2
- package/esm2020/models/football-statistic.mjs +2 -2
- package/esm2020/models/game-user.mjs +2 -2
- package/esm2020/models/game.mjs +12 -1
- package/esm2020/models/hockey-statistic.mjs +3 -3
- package/esm2020/models/playoff.mjs +4 -1
- package/esm2020/models/rugby-game-log.mjs +19 -18
- package/esm2020/models/rugby-game-statistic.mjs +2 -2
- package/esm2020/models/rugby-statistic.mjs +2 -2
- package/esm2020/models/sport.mjs +5 -1
- package/esm2020/models/team.mjs +1 -1
- package/esm2020/models/waterpolo-statistic.mjs +3 -3
- package/esm2020/services/base.service.mjs +3 -3
- package/esm2020/services/centrifugo.service.mjs +12 -8
- package/esm2020/services/config.service.mjs +3 -3
- package/esm2020/services/device-info.service.mjs +3 -3
- package/esm2020/websocket/game.websocket.mjs +3 -3
- package/fesm2015/mtgame-core.mjs +246 -135
- package/fesm2015/mtgame-core.mjs.map +1 -1
- package/fesm2020/mtgame-core.mjs +245 -135
- package/fesm2020/mtgame-core.mjs.map +1 -1
- package/localization/basketball-game-log-types.d.ts +7 -0
- package/localization/rugby-game-log-types.d.ts +3 -2
- package/models/basketball-game-log.d.ts +9 -1
- package/models/basketball-game-statistic.d.ts +32 -0
- package/models/basketball-statistic.d.ts +9 -0
- package/models/football-statistic.d.ts +2 -0
- package/models/game.d.ts +2 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/models/playoff.d.ts +1 -0
- package/models/rugby-game-log.d.ts +18 -17
- package/models/rugby-game-statistic.d.ts +1 -0
- package/models/rugby-statistic.d.ts +1 -0
- package/models/sport.d.ts +3 -1
- package/models/team.d.ts +1 -0
- package/package.json +1 -1
package/fesm2020/mtgame-core.mjs
CHANGED
|
@@ -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
|
}
|
|
@@ -996,6 +1000,9 @@ let Playoff = class Playoff extends BaseModel {
|
|
|
996
1000
|
const playoffStage = this.settings.teamsCount / 2 ** stage;
|
|
997
1001
|
let title = '';
|
|
998
1002
|
if (playoffStage === 1) {
|
|
1003
|
+
if (this.winnerPlace > 1) {
|
|
1004
|
+
title = `${this.winnerPlace} место`;
|
|
1005
|
+
}
|
|
999
1006
|
title = 'Финал';
|
|
1000
1007
|
}
|
|
1001
1008
|
else {
|
|
@@ -1205,6 +1212,17 @@ let Game = class Game extends BaseModel {
|
|
|
1205
1212
|
}
|
|
1206
1213
|
return null;
|
|
1207
1214
|
}
|
|
1215
|
+
get sport() {
|
|
1216
|
+
if (this.tournament?.sport?.id) {
|
|
1217
|
+
return this.tournament.sport;
|
|
1218
|
+
}
|
|
1219
|
+
if (this.team?.sport?.id) {
|
|
1220
|
+
return this.team.sport;
|
|
1221
|
+
}
|
|
1222
|
+
if (this.competitorTeam?.sport?.id) {
|
|
1223
|
+
return this.competitorTeam.sport;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1208
1226
|
};
|
|
1209
1227
|
Game = __decorate([
|
|
1210
1228
|
Model({
|
|
@@ -1392,7 +1410,10 @@ class BaseStatistic extends BaseModel {
|
|
|
1392
1410
|
|
|
1393
1411
|
let BasketballStatistic = class BasketballStatistic extends BaseStatistic {
|
|
1394
1412
|
get totalFouls() {
|
|
1395
|
-
return
|
|
1413
|
+
return Math.floor(10 * ((this.personalFouls || 0) +
|
|
1414
|
+
(this.technicalFouls || 0) +
|
|
1415
|
+
(this.unsportsmanlikeFouls || 0) +
|
|
1416
|
+
(this.disqualificationFouls || 0))) / 10;
|
|
1396
1417
|
}
|
|
1397
1418
|
get gameMinutes() {
|
|
1398
1419
|
return Math.floor(this.gameTime / 60);
|
|
@@ -1466,24 +1487,64 @@ let BasketballGameStatistic = class BasketballGameStatistic extends GameStatisti
|
|
|
1466
1487
|
get totalFouls() {
|
|
1467
1488
|
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
1468
1489
|
}
|
|
1490
|
+
set onePointPercent(v) { }
|
|
1491
|
+
get onePointPercent() {
|
|
1492
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
1493
|
+
return 0;
|
|
1494
|
+
}
|
|
1495
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* @deprecated Use onePointPercent instead
|
|
1499
|
+
*/
|
|
1469
1500
|
get onePointsPercent() {
|
|
1470
1501
|
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
1471
1502
|
return 0;
|
|
1472
1503
|
}
|
|
1473
1504
|
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
1474
1505
|
}
|
|
1506
|
+
set twoPointPercent(v) { }
|
|
1507
|
+
get twoPointPercent() {
|
|
1508
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
1509
|
+
return 0;
|
|
1510
|
+
}
|
|
1511
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* @deprecated Use twoPointPercent instead
|
|
1515
|
+
*/
|
|
1475
1516
|
get twoPointsPercent() {
|
|
1476
1517
|
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
1477
1518
|
return 0;
|
|
1478
1519
|
}
|
|
1479
1520
|
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
1480
1521
|
}
|
|
1522
|
+
set threePointPercent(v) { }
|
|
1523
|
+
get threePointPercent() {
|
|
1524
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
1525
|
+
return 0;
|
|
1526
|
+
}
|
|
1527
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* @deprecated Use threePointPercent instead
|
|
1531
|
+
*/
|
|
1481
1532
|
get threePointsPercent() {
|
|
1482
1533
|
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
1483
1534
|
return 0;
|
|
1484
1535
|
}
|
|
1485
1536
|
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
1486
1537
|
}
|
|
1538
|
+
set freeThrowPercent(v) { }
|
|
1539
|
+
get freeThrowPercent() {
|
|
1540
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
1541
|
+
return 0;
|
|
1542
|
+
}
|
|
1543
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @deprecated Use freeThrowPercent instead
|
|
1547
|
+
*/
|
|
1487
1548
|
get freeThrowsPercent() {
|
|
1488
1549
|
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
1489
1550
|
return 0;
|
|
@@ -1493,6 +1554,24 @@ let BasketballGameStatistic = class BasketballGameStatistic extends GameStatisti
|
|
|
1493
1554
|
get totalRebounds() {
|
|
1494
1555
|
return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
|
|
1495
1556
|
}
|
|
1557
|
+
set fourPointPercent(v) { }
|
|
1558
|
+
get fourPointPercent() {
|
|
1559
|
+
if (!this.fourPointAttempts || !this.fourPointsMade) {
|
|
1560
|
+
return 0;
|
|
1561
|
+
}
|
|
1562
|
+
return Math.round(1000 * this.fourPointsMade / this.fourPointAttempts) / 10;
|
|
1563
|
+
}
|
|
1564
|
+
set shootoutsTotal(v) { }
|
|
1565
|
+
get shootoutsTotal() {
|
|
1566
|
+
return (this.shootoutsLost || 0) + (this.shootoutsWon || 0);
|
|
1567
|
+
}
|
|
1568
|
+
set shootoutWonPercent(v) { }
|
|
1569
|
+
get shootoutWonPercent() {
|
|
1570
|
+
if (!this.shootoutsTotal || !this.shootoutsWon) {
|
|
1571
|
+
return 0;
|
|
1572
|
+
}
|
|
1573
|
+
return Math.round(1000 * this.shootoutsWon / this.shootoutsTotal) / 10;
|
|
1574
|
+
}
|
|
1496
1575
|
};
|
|
1497
1576
|
BasketballGameStatistic = __decorate([
|
|
1498
1577
|
Model({
|
|
@@ -1531,6 +1610,13 @@ var BasketballGameLogTypes;
|
|
|
1531
1610
|
BasketballGameLogTypes[BasketballGameLogTypes["one_point_made"] = 22] = "one_point_made";
|
|
1532
1611
|
BasketballGameLogTypes[BasketballGameLogTypes["timeout"] = 23] = "timeout";
|
|
1533
1612
|
BasketballGameLogTypes[BasketballGameLogTypes["team_rebound"] = 24] = "team_rebound";
|
|
1613
|
+
BasketballGameLogTypes[BasketballGameLogTypes["four_point_attempt"] = 25] = "four_point_attempt";
|
|
1614
|
+
BasketballGameLogTypes[BasketballGameLogTypes["four_point_made"] = 26] = "four_point_made";
|
|
1615
|
+
BasketballGameLogTypes[BasketballGameLogTypes["dunk_attempt"] = 27] = "dunk_attempt";
|
|
1616
|
+
BasketballGameLogTypes[BasketballGameLogTypes["dunk_made"] = 28] = "dunk_made";
|
|
1617
|
+
BasketballGameLogTypes[BasketballGameLogTypes["shootout"] = 29] = "shootout";
|
|
1618
|
+
BasketballGameLogTypes[BasketballGameLogTypes["shootout_won"] = 30] = "shootout_won";
|
|
1619
|
+
BasketballGameLogTypes[BasketballGameLogTypes["shootout_lost"] = 31] = "shootout_lost";
|
|
1534
1620
|
})(BasketballGameLogTypes || (BasketballGameLogTypes = {}));
|
|
1535
1621
|
var BasketballSubLogTypes;
|
|
1536
1622
|
(function (BasketballSubLogTypes) {
|
|
@@ -1604,6 +1690,9 @@ let BasketballGameLog = class BasketballGameLog extends GameLogBase {
|
|
|
1604
1690
|
BasketballGameLogTypes.three_point_made,
|
|
1605
1691
|
BasketballGameLogTypes.free_throw_made,
|
|
1606
1692
|
BasketballGameLogTypes.one_point_made,
|
|
1693
|
+
BasketballGameLogTypes.four_point_made,
|
|
1694
|
+
BasketballGameLogTypes.dunk_made,
|
|
1695
|
+
BasketballGameLogTypes.shootout_won,
|
|
1607
1696
|
].indexOf(this.logType) > -1;
|
|
1608
1697
|
}
|
|
1609
1698
|
isReboundType() {
|
|
@@ -1627,9 +1716,14 @@ let BasketballGameLog = class BasketballGameLog extends GameLogBase {
|
|
|
1627
1716
|
[BasketballGameLogTypes.one_point_made]: 1,
|
|
1628
1717
|
[BasketballGameLogTypes.free_throw_made]: 1,
|
|
1629
1718
|
[BasketballGameLogTypes.two_point_made]: 2,
|
|
1630
|
-
[BasketballGameLogTypes.three_point_made]: 3
|
|
1719
|
+
[BasketballGameLogTypes.three_point_made]: 3,
|
|
1720
|
+
[BasketballGameLogTypes.four_point_made]: 4,
|
|
1721
|
+
[BasketballGameLogTypes.dunk_made]: 3,
|
|
1631
1722
|
};
|
|
1632
|
-
|
|
1723
|
+
if (this.logType === BasketballGameLogTypes.shootout_won) {
|
|
1724
|
+
return this.shootoutPoints;
|
|
1725
|
+
}
|
|
1726
|
+
return scoreMapping[this.logType] || 0;
|
|
1633
1727
|
}
|
|
1634
1728
|
compare(model) {
|
|
1635
1729
|
if (this.time === model.time && this.period === model.period) {
|
|
@@ -1664,7 +1758,7 @@ BasketballGameLog = __decorate([
|
|
|
1664
1758
|
|
|
1665
1759
|
let GameUser = class GameUser extends BaseModel {
|
|
1666
1760
|
get gameUserNumber() {
|
|
1667
|
-
return this.number ? this.number : this.teamUser.number;
|
|
1761
|
+
return (this.number || this.number === 0) ? this.number : this.teamUser.number;
|
|
1668
1762
|
}
|
|
1669
1763
|
};
|
|
1670
1764
|
GameUser = __decorate([
|
|
@@ -1936,9 +2030,9 @@ class BaseService {
|
|
|
1936
2030
|
this.store.dispose();
|
|
1937
2031
|
}
|
|
1938
2032
|
}
|
|
1939
|
-
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
1940
|
-
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
1941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2033
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2034
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, decorators: [{
|
|
1942
2036
|
type: Injectable,
|
|
1943
2037
|
args: [{ providedIn: 'root' }]
|
|
1944
2038
|
}] });
|
|
@@ -1972,9 +2066,9 @@ class ConfigService extends BaseService {
|
|
|
1972
2066
|
return this.store.value(CONFIG_STORE_KEY) && this.store.value(CONFIG_STORE_KEY)[key];
|
|
1973
2067
|
}
|
|
1974
2068
|
}
|
|
1975
|
-
ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
1976
|
-
ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
1977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2069
|
+
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 });
|
|
2070
|
+
ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, providedIn: 'root' });
|
|
2071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, decorators: [{
|
|
1978
2072
|
type: Injectable,
|
|
1979
2073
|
args: [{ providedIn: 'root' }]
|
|
1980
2074
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2008,9 +2102,9 @@ class GameBaseApi {
|
|
|
2008
2102
|
}).toPromise();
|
|
2009
2103
|
}
|
|
2010
2104
|
}
|
|
2011
|
-
GameBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2012
|
-
GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2105
|
+
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 });
|
|
2106
|
+
GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, providedIn: 'root' });
|
|
2107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, decorators: [{
|
|
2014
2108
|
type: Injectable,
|
|
2015
2109
|
args: [{ providedIn: 'root' }]
|
|
2016
2110
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2042,9 +2136,9 @@ class BasketballGameApi extends GameBaseApi {
|
|
|
2042
2136
|
.toPromise();
|
|
2043
2137
|
}
|
|
2044
2138
|
}
|
|
2045
|
-
BasketballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2046
|
-
BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2139
|
+
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 });
|
|
2140
|
+
BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, providedIn: 'root' });
|
|
2141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, decorators: [{
|
|
2048
2142
|
type: Injectable,
|
|
2049
2143
|
args: [{ providedIn: 'root' }]
|
|
2050
2144
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2075,9 +2169,9 @@ class FeedbackApi {
|
|
|
2075
2169
|
.toPromise();
|
|
2076
2170
|
}
|
|
2077
2171
|
}
|
|
2078
|
-
FeedbackApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2079
|
-
FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2172
|
+
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 });
|
|
2173
|
+
FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, providedIn: 'root' });
|
|
2174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, decorators: [{
|
|
2081
2175
|
type: Injectable,
|
|
2082
2176
|
args: [{ providedIn: 'root' }]
|
|
2083
2177
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2109,9 +2203,9 @@ class FileApi {
|
|
|
2109
2203
|
.toPromise();
|
|
2110
2204
|
}
|
|
2111
2205
|
}
|
|
2112
|
-
FileApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2113
|
-
FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2206
|
+
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 });
|
|
2207
|
+
FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, providedIn: 'root' });
|
|
2208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, decorators: [{
|
|
2115
2209
|
type: Injectable,
|
|
2116
2210
|
args: [{ providedIn: 'root' }]
|
|
2117
2211
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2370,10 +2464,10 @@ HockeyGameStatistic = __decorate([
|
|
|
2370
2464
|
|
|
2371
2465
|
let HockeyStatistic = class HockeyStatistic extends BaseStatistic {
|
|
2372
2466
|
get assists() {
|
|
2373
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
2467
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
2374
2468
|
}
|
|
2375
2469
|
get goalpass() {
|
|
2376
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
2470
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
2377
2471
|
}
|
|
2378
2472
|
get userMinutes() {
|
|
2379
2473
|
if (!this.gameTime) {
|
|
@@ -2449,9 +2543,9 @@ class HockeyGameApi extends GameBaseApi {
|
|
|
2449
2543
|
}).toPromise();
|
|
2450
2544
|
}
|
|
2451
2545
|
}
|
|
2452
|
-
HockeyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2453
|
-
HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2546
|
+
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 });
|
|
2547
|
+
HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, providedIn: 'root' });
|
|
2548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, decorators: [{
|
|
2455
2549
|
type: Injectable,
|
|
2456
2550
|
args: [{ providedIn: 'root' }]
|
|
2457
2551
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2643,7 +2737,7 @@ let FootballStatistic = class FootballStatistic extends BaseStatistic {
|
|
|
2643
2737
|
return Math.floor(10 * ((this.smallPenaltyGoals || 0) + (this.smallPenaltyAttempts || 0))) / 10;
|
|
2644
2738
|
}
|
|
2645
2739
|
get goalpass() {
|
|
2646
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
2740
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
2647
2741
|
}
|
|
2648
2742
|
get tournamentTeamPoints() {
|
|
2649
2743
|
return this.tournamentTeam && this.tournamentTeam.points;
|
|
@@ -2732,9 +2826,9 @@ class FootballGameApi extends GameBaseApi {
|
|
|
2732
2826
|
}).toPromise();
|
|
2733
2827
|
}
|
|
2734
2828
|
}
|
|
2735
|
-
FootballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2736
|
-
FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
2829
|
+
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 });
|
|
2830
|
+
FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, providedIn: 'root' });
|
|
2831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, decorators: [{
|
|
2738
2832
|
type: Injectable,
|
|
2739
2833
|
args: [{ providedIn: 'root' }]
|
|
2740
2834
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2938,9 +3032,9 @@ class HandballGameApi extends GameBaseApi {
|
|
|
2938
3032
|
}).toPromise();
|
|
2939
3033
|
}
|
|
2940
3034
|
}
|
|
2941
|
-
HandballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
2942
|
-
HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
2943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3035
|
+
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 });
|
|
3036
|
+
HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, providedIn: 'root' });
|
|
3037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, decorators: [{
|
|
2944
3038
|
type: Injectable,
|
|
2945
3039
|
args: [{ providedIn: 'root' }]
|
|
2946
3040
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3125,7 +3219,7 @@ let RugbyStatistic = class RugbyStatistic extends BaseStatistic {
|
|
|
3125
3219
|
return `${minutes < 10 ? 0 : ''}${minutes}:${seconds < 10 ? 0 : ''}${seconds}`;
|
|
3126
3220
|
}
|
|
3127
3221
|
get totalFouls() {
|
|
3128
|
-
return (this.fouls || 0) + (this.teamFouls || 0);
|
|
3222
|
+
return Math.floor(10 * ((this.fouls || 0) + (this.teamFouls || 0))) / 10;
|
|
3129
3223
|
}
|
|
3130
3224
|
};
|
|
3131
3225
|
RugbyStatistic = __decorate([
|
|
@@ -3171,10 +3265,10 @@ TeamAchievement = __decorate([
|
|
|
3171
3265
|
|
|
3172
3266
|
let WaterpoloStatistic = class WaterpoloStatistic extends BaseStatistic {
|
|
3173
3267
|
get assists() {
|
|
3174
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
3268
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
3175
3269
|
}
|
|
3176
3270
|
get goalpass() {
|
|
3177
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
3271
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
3178
3272
|
}
|
|
3179
3273
|
get userMinutes() {
|
|
3180
3274
|
if (!this.gameTime) {
|
|
@@ -3507,9 +3601,9 @@ class TournamentApi {
|
|
|
3507
3601
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_team_user/${tournamentTeamUserId}/tournaments/`).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
|
|
3508
3602
|
}
|
|
3509
3603
|
}
|
|
3510
|
-
TournamentApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3511
|
-
TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3604
|
+
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 });
|
|
3605
|
+
TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, providedIn: 'root' });
|
|
3606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, decorators: [{
|
|
3513
3607
|
type: Injectable,
|
|
3514
3608
|
args: [{ providedIn: 'root' }]
|
|
3515
3609
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3523,6 +3617,9 @@ function applyGamesFilters(filters, params) {
|
|
|
3523
3617
|
if (filters.tournamentRoundId) {
|
|
3524
3618
|
params = params.set('tournament_round_id', filters.tournamentRoundId.toString());
|
|
3525
3619
|
}
|
|
3620
|
+
if (filters.tournamentGroupId) {
|
|
3621
|
+
params = params.set('tournament_group_id', filters.tournamentGroupId.toString());
|
|
3622
|
+
}
|
|
3526
3623
|
if (filters.divisionId) {
|
|
3527
3624
|
params = params.set('division_id', filters.divisionId.toString());
|
|
3528
3625
|
}
|
|
@@ -3763,9 +3860,9 @@ class LeagueApi {
|
|
|
3763
3860
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/team_and_user_search/`, { params }).pipe(map(result => new TeamsAndUsers(result))).toPromise();
|
|
3764
3861
|
}
|
|
3765
3862
|
}
|
|
3766
|
-
LeagueApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3767
|
-
LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3863
|
+
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 });
|
|
3864
|
+
LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, providedIn: 'root' });
|
|
3865
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, decorators: [{
|
|
3769
3866
|
type: Injectable,
|
|
3770
3867
|
args: [{ providedIn: 'root' }]
|
|
3771
3868
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3813,9 +3910,9 @@ class LeagueNewsApi {
|
|
|
3813
3910
|
.toPromise();
|
|
3814
3911
|
}
|
|
3815
3912
|
}
|
|
3816
|
-
LeagueNewsApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3817
|
-
LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3913
|
+
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 });
|
|
3914
|
+
LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, providedIn: 'root' });
|
|
3915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, decorators: [{
|
|
3819
3916
|
type: Injectable,
|
|
3820
3917
|
args: [{ providedIn: 'root' }]
|
|
3821
3918
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3836,9 +3933,9 @@ class LeaguePlayerApi {
|
|
|
3836
3933
|
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();
|
|
3837
3934
|
}
|
|
3838
3935
|
}
|
|
3839
|
-
LeaguePlayerApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3840
|
-
LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3936
|
+
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 });
|
|
3937
|
+
LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, providedIn: 'root' });
|
|
3938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, decorators: [{
|
|
3842
3939
|
type: Injectable,
|
|
3843
3940
|
args: [{ providedIn: 'root' }]
|
|
3844
3941
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3925,9 +4022,9 @@ class MediaApi {
|
|
|
3925
4022
|
.toPromise();
|
|
3926
4023
|
}
|
|
3927
4024
|
}
|
|
3928
|
-
MediaApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3929
|
-
MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4025
|
+
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 });
|
|
4026
|
+
MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, providedIn: 'root' });
|
|
4027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, decorators: [{
|
|
3931
4028
|
type: Injectable,
|
|
3932
4029
|
args: [{ providedIn: 'root' }]
|
|
3933
4030
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4295,9 +4392,9 @@ class NotificationBaseApi {
|
|
|
4295
4392
|
.toPromise();
|
|
4296
4393
|
}
|
|
4297
4394
|
}
|
|
4298
|
-
NotificationBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4299
|
-
NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4395
|
+
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 });
|
|
4396
|
+
NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, providedIn: 'root' });
|
|
4397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, decorators: [{
|
|
4301
4398
|
type: Injectable,
|
|
4302
4399
|
args: [{ providedIn: 'root' }]
|
|
4303
4400
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4308,9 +4405,9 @@ class NotificationApi extends NotificationBaseApi {
|
|
|
4308
4405
|
this.apiUrl = '/api/v1';
|
|
4309
4406
|
}
|
|
4310
4407
|
}
|
|
4311
|
-
NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4312
|
-
NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4408
|
+
NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4409
|
+
NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, providedIn: 'root' });
|
|
4410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, decorators: [{
|
|
4314
4411
|
type: Injectable,
|
|
4315
4412
|
args: [{ providedIn: 'root' }]
|
|
4316
4413
|
}] });
|
|
@@ -4321,9 +4418,9 @@ class OrgNotificationApi extends NotificationBaseApi {
|
|
|
4321
4418
|
this.apiUrl = '/org/api/v1';
|
|
4322
4419
|
}
|
|
4323
4420
|
}
|
|
4324
|
-
OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4325
|
-
OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4421
|
+
OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4422
|
+
OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, providedIn: 'root' });
|
|
4423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, decorators: [{
|
|
4327
4424
|
type: Injectable,
|
|
4328
4425
|
args: [{ providedIn: 'root' }]
|
|
4329
4426
|
}] });
|
|
@@ -4344,9 +4441,9 @@ class ReferenceApi {
|
|
|
4344
4441
|
.pipe(map(data => data.map(item => new Sport(item)))).toPromise();
|
|
4345
4442
|
}
|
|
4346
4443
|
}
|
|
4347
|
-
ReferenceApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4348
|
-
ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4444
|
+
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 });
|
|
4445
|
+
ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, providedIn: 'root' });
|
|
4446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, decorators: [{
|
|
4350
4447
|
type: Injectable,
|
|
4351
4448
|
args: [{ providedIn: 'root' }]
|
|
4352
4449
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4400,7 +4497,7 @@ let RugbyGameStatistic = class RugbyGameStatistic extends GameStatisticBase {
|
|
|
4400
4497
|
return (this.conversionGoals || 0) + (this.dropGoals || 0) + (this.penaltyGoals || 0);
|
|
4401
4498
|
}
|
|
4402
4499
|
get footShots() {
|
|
4403
|
-
return (this.footFieldShots || 0) + (this.footOutShots || 0);
|
|
4500
|
+
return (this.footFieldShots || 0) + (this.footOutShots || 0) + (this.footKicks5022 || 0);
|
|
4404
4501
|
}
|
|
4405
4502
|
get totalFouls() {
|
|
4406
4503
|
return (this.fouls || 0) + (this.teamFouls || 0);
|
|
@@ -4476,24 +4573,25 @@ var RugbyGameLogTypes;
|
|
|
4476
4573
|
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 22] = "end_game_penalty_goal";
|
|
4477
4574
|
RugbyGameLogTypes[RugbyGameLogTypes["foot_field_shot"] = 23] = "foot_field_shot";
|
|
4478
4575
|
RugbyGameLogTypes[RugbyGameLogTypes["foot_out_shot"] = 24] = "foot_out_shot";
|
|
4576
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foot_kick_50_22"] = 25] = "foot_kick_50_22";
|
|
4479
4577
|
// team actions
|
|
4480
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
4481
|
-
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] =
|
|
4482
|
-
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] =
|
|
4483
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] =
|
|
4484
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] =
|
|
4485
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] =
|
|
4486
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] =
|
|
4487
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] =
|
|
4488
|
-
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] =
|
|
4489
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] =
|
|
4490
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] =
|
|
4491
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] =
|
|
4492
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] =
|
|
4493
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] =
|
|
4494
|
-
RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] =
|
|
4495
|
-
RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] =
|
|
4496
|
-
RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] =
|
|
4578
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 26] = "timeout";
|
|
4579
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] = 27] = "tap_penalty";
|
|
4580
|
+
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] = 28] = "penalty_kick_to_touch";
|
|
4581
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 29] = "scrum_won";
|
|
4582
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] = 30] = "scrum_lost";
|
|
4583
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 31] = "scrum_won_free";
|
|
4584
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] = 32] = "lineout_won";
|
|
4585
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] = 33] = "lineout_lost";
|
|
4586
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 34] = "quick_throw";
|
|
4587
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 35] = "ruck_won";
|
|
4588
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] = 36] = "ruck_lost";
|
|
4589
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 37] = "maul_won";
|
|
4590
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 38] = "maul_lost";
|
|
4591
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 39] = "team_foul";
|
|
4592
|
+
RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] = 40] = "start_kick";
|
|
4593
|
+
RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] = 41] = "twenty_two_meters_kick";
|
|
4594
|
+
RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] = 42] = "goal_kick";
|
|
4497
4595
|
})(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
|
|
4498
4596
|
const RUGBY_GAME_LOG_TYPE_POINTS = {
|
|
4499
4597
|
[RugbyGameLogTypes.penalty_try]: 7,
|
|
@@ -4593,9 +4691,9 @@ class RugbyGameApi extends GameBaseApi {
|
|
|
4593
4691
|
}).toPromise();
|
|
4594
4692
|
}
|
|
4595
4693
|
}
|
|
4596
|
-
RugbyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4597
|
-
RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4694
|
+
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 });
|
|
4695
|
+
RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, providedIn: 'root' });
|
|
4696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, decorators: [{
|
|
4599
4697
|
type: Injectable,
|
|
4600
4698
|
args: [{ providedIn: 'root' }]
|
|
4601
4699
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4911,9 +5009,9 @@ class TeamApi {
|
|
|
4911
5009
|
.toPromise();
|
|
4912
5010
|
}
|
|
4913
5011
|
}
|
|
4914
|
-
TeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4915
|
-
TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5012
|
+
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 });
|
|
5013
|
+
TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, providedIn: 'root' });
|
|
5014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, decorators: [{
|
|
4917
5015
|
type: Injectable,
|
|
4918
5016
|
args: [{ providedIn: 'root' }]
|
|
4919
5017
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4965,9 +5063,9 @@ class TeamEventApi {
|
|
|
4965
5063
|
.toPromise();
|
|
4966
5064
|
}
|
|
4967
5065
|
}
|
|
4968
|
-
TeamEventApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4969
|
-
TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5066
|
+
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 });
|
|
5067
|
+
TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, providedIn: 'root' });
|
|
5068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, decorators: [{
|
|
4971
5069
|
type: Injectable,
|
|
4972
5070
|
args: [{ providedIn: 'root' }]
|
|
4973
5071
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5034,9 +5132,9 @@ class TournamentJoinApi {
|
|
|
5034
5132
|
.toPromise();
|
|
5035
5133
|
}
|
|
5036
5134
|
}
|
|
5037
|
-
TournamentJoinApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5038
|
-
TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5135
|
+
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 });
|
|
5136
|
+
TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, providedIn: 'root' });
|
|
5137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, decorators: [{
|
|
5040
5138
|
type: Injectable,
|
|
5041
5139
|
args: [{ providedIn: 'root' }]
|
|
5042
5140
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5112,9 +5210,9 @@ class TournamentRoundApi {
|
|
|
5112
5210
|
}))).toPromise();
|
|
5113
5211
|
}
|
|
5114
5212
|
}
|
|
5115
|
-
TournamentRoundApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5116
|
-
TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5213
|
+
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 });
|
|
5214
|
+
TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, providedIn: 'root' });
|
|
5215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, decorators: [{
|
|
5118
5216
|
type: Injectable,
|
|
5119
5217
|
args: [{ providedIn: 'root' }]
|
|
5120
5218
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5203,9 +5301,9 @@ class TournamentSeasonApi {
|
|
|
5203
5301
|
.toPromise();
|
|
5204
5302
|
}
|
|
5205
5303
|
}
|
|
5206
|
-
TournamentSeasonApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5207
|
-
TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5304
|
+
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 });
|
|
5305
|
+
TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, providedIn: 'root' });
|
|
5306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, decorators: [{
|
|
5209
5307
|
type: Injectable,
|
|
5210
5308
|
args: [{ providedIn: 'root' }]
|
|
5211
5309
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5248,9 +5346,9 @@ class TournamentStageApi {
|
|
|
5248
5346
|
.toPromise();
|
|
5249
5347
|
}
|
|
5250
5348
|
}
|
|
5251
|
-
TournamentStageApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5252
|
-
TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5349
|
+
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 });
|
|
5350
|
+
TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, providedIn: 'root' });
|
|
5351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, decorators: [{
|
|
5254
5352
|
type: Injectable,
|
|
5255
5353
|
args: [{ providedIn: 'root' }]
|
|
5256
5354
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5473,9 +5571,9 @@ class UserApi {
|
|
|
5473
5571
|
.toPromise();
|
|
5474
5572
|
}
|
|
5475
5573
|
}
|
|
5476
|
-
UserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5477
|
-
UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5574
|
+
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 });
|
|
5575
|
+
UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, providedIn: 'root' });
|
|
5576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, decorators: [{
|
|
5479
5577
|
type: Injectable,
|
|
5480
5578
|
args: [{ providedIn: 'root' }]
|
|
5481
5579
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5678,9 +5776,9 @@ class VolleyballGameApi extends GameBaseApi {
|
|
|
5678
5776
|
}).toPromise();
|
|
5679
5777
|
}
|
|
5680
5778
|
}
|
|
5681
|
-
VolleyballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5682
|
-
VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5779
|
+
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 });
|
|
5780
|
+
VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, providedIn: 'root' });
|
|
5781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, decorators: [{
|
|
5684
5782
|
type: Injectable,
|
|
5685
5783
|
args: [{ providedIn: 'root' }]
|
|
5686
5784
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6332,9 +6430,9 @@ class WaterpoloGameApi extends GameBaseApi {
|
|
|
6332
6430
|
}).toPromise();
|
|
6333
6431
|
}
|
|
6334
6432
|
}
|
|
6335
|
-
WaterpoloGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
6336
|
-
WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
6337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
6433
|
+
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 });
|
|
6434
|
+
WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, providedIn: 'root' });
|
|
6435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, decorators: [{
|
|
6338
6436
|
type: Injectable,
|
|
6339
6437
|
args: [{ providedIn: 'root' }]
|
|
6340
6438
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6358,9 +6456,9 @@ class PublicTeamApi {
|
|
|
6358
6456
|
.toPromise();
|
|
6359
6457
|
}
|
|
6360
6458
|
}
|
|
6361
|
-
PublicTeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
6362
|
-
PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
6363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
6459
|
+
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 });
|
|
6460
|
+
PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, providedIn: 'root' });
|
|
6461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, decorators: [{
|
|
6364
6462
|
type: Injectable,
|
|
6365
6463
|
args: [{ providedIn: 'root' }]
|
|
6366
6464
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6386,9 +6484,9 @@ class PublicUserApi {
|
|
|
6386
6484
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/public_user/${userId}/league_player/`, { params }).pipe(map(result => new LeaguePlayer(result))).toPromise();
|
|
6387
6485
|
}
|
|
6388
6486
|
}
|
|
6389
|
-
PublicUserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
6390
|
-
PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
6391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
6487
|
+
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 });
|
|
6488
|
+
PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, providedIn: 'root' });
|
|
6489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, decorators: [{
|
|
6392
6490
|
type: Injectable,
|
|
6393
6491
|
args: [{ providedIn: 'root' }]
|
|
6394
6492
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6417,6 +6515,13 @@ const BasketballGameLogTypeLocalization = {
|
|
|
6417
6515
|
[BasketballGameLogTypes.unsportsmanlike_foul]: 'Неспортиный фол',
|
|
6418
6516
|
[BasketballGameLogTypes.timeout]: 'Таймаут',
|
|
6419
6517
|
[BasketballGameLogTypes.team_rebound]: 'Командный подбор',
|
|
6518
|
+
[BasketballGameLogTypes.dunk_attempt]: 'Данк мимо',
|
|
6519
|
+
[BasketballGameLogTypes.dunk_made]: 'Данк',
|
|
6520
|
+
[BasketballGameLogTypes.four_point_attempt]: 'Бросок 4 очка',
|
|
6521
|
+
[BasketballGameLogTypes.four_point_made]: '4 очка',
|
|
6522
|
+
[BasketballGameLogTypes.shootout]: 'Булит',
|
|
6523
|
+
[BasketballGameLogTypes.shootout_won]: 'Булит выигран',
|
|
6524
|
+
[BasketballGameLogTypes.shootout_lost]: 'Булит проигран',
|
|
6420
6525
|
};
|
|
6421
6526
|
|
|
6422
6527
|
const BasketballGameSubLogTypesLocalization = {
|
|
@@ -6619,7 +6724,7 @@ const OvertimeTypeLocalization = {
|
|
|
6619
6724
|
|
|
6620
6725
|
const RugbyFoulSanctionLocalization = {
|
|
6621
6726
|
[RugbyFoulSanctions.scrum]: 'Схватка',
|
|
6622
|
-
[RugbyFoulSanctions.lineout]: '
|
|
6727
|
+
[RugbyFoulSanctions.lineout]: 'Коридор',
|
|
6623
6728
|
[RugbyFoulSanctions.start_kick]: 'Начальный удар',
|
|
6624
6729
|
[RugbyFoulSanctions.free_kick]: 'Свободный удар',
|
|
6625
6730
|
[RugbyFoulSanctions.penalty_shot]: 'Штрафной удар',
|
|
@@ -6669,6 +6774,7 @@ const RugbyGameLogTypeLocalization = {
|
|
|
6669
6774
|
[RugbyGameLogTypes.end_game_penalty_goal]: 'Штрафной гол',
|
|
6670
6775
|
[RugbyGameLogTypes.foot_field_shot]: 'Удар ногой в поле',
|
|
6671
6776
|
[RugbyGameLogTypes.foot_out_shot]: 'Удар ногой в аут',
|
|
6777
|
+
[RugbyGameLogTypes.foot_kick_50_22]: 'Удар ногой 50/22',
|
|
6672
6778
|
[RugbyGameLogTypes.timeout]: 'Таймаут',
|
|
6673
6779
|
[RugbyGameLogTypes.scrum_won]: 'Схватка выиграна',
|
|
6674
6780
|
[RugbyGameLogTypes.scrum_lost]: 'Схватка проиграна',
|
|
@@ -6962,6 +7068,7 @@ class CentrifugoService {
|
|
|
6962
7068
|
unsubscribe(channel) {
|
|
6963
7069
|
if (this.subscriptions[channel]) {
|
|
6964
7070
|
this.subscriptions[channel].unsubscribe();
|
|
7071
|
+
this.centrifuge.removeSubscription(this.subscriptions[channel]);
|
|
6965
7072
|
delete this.subscriptions[channel];
|
|
6966
7073
|
}
|
|
6967
7074
|
if (this.channels$[channel]) {
|
|
@@ -7025,10 +7132,13 @@ class CentrifugoService {
|
|
|
7025
7132
|
this.centrifuge._debugEnabled = false;
|
|
7026
7133
|
}
|
|
7027
7134
|
addEngineSubscription(channel) {
|
|
7028
|
-
|
|
7029
|
-
sub
|
|
7030
|
-
this.
|
|
7031
|
-
|
|
7135
|
+
let sub = this.centrifuge.getSubscription(channel);
|
|
7136
|
+
if (!sub) {
|
|
7137
|
+
sub = this.centrifuge.newSubscription(channel);
|
|
7138
|
+
sub.on('publication', ctx => {
|
|
7139
|
+
this.resolveMessage(channel, ctx.data);
|
|
7140
|
+
});
|
|
7141
|
+
}
|
|
7032
7142
|
sub.subscribe();
|
|
7033
7143
|
return sub;
|
|
7034
7144
|
}
|
|
@@ -7039,9 +7149,9 @@ class CentrifugoService {
|
|
|
7039
7149
|
this.channels$[channel].next(message);
|
|
7040
7150
|
}
|
|
7041
7151
|
}
|
|
7042
|
-
CentrifugoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7043
|
-
CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7152
|
+
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 });
|
|
7153
|
+
CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, providedIn: 'root' });
|
|
7154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, decorators: [{
|
|
7045
7155
|
type: Injectable,
|
|
7046
7156
|
args: [{ providedIn: 'root' }]
|
|
7047
7157
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }, { type: undefined, decorators: [{
|
|
@@ -7094,9 +7204,9 @@ class DeviceInfoService {
|
|
|
7094
7204
|
});
|
|
7095
7205
|
}
|
|
7096
7206
|
}
|
|
7097
|
-
DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7098
|
-
DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7207
|
+
DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7208
|
+
DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, providedIn: 'root' });
|
|
7209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, decorators: [{
|
|
7100
7210
|
type: Injectable,
|
|
7101
7211
|
args: [{ providedIn: 'root' }]
|
|
7102
7212
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -7468,9 +7578,9 @@ class HttpCookieInterceptor {
|
|
|
7468
7578
|
return next.handle(req);
|
|
7469
7579
|
}
|
|
7470
7580
|
}
|
|
7471
|
-
HttpCookieInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7472
|
-
HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7581
|
+
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 });
|
|
7582
|
+
HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor });
|
|
7583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor, decorators: [{
|
|
7474
7584
|
type: Injectable
|
|
7475
7585
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: ConfigService }, { type: undefined, decorators: [{
|
|
7476
7586
|
type: Inject,
|
|
@@ -7524,9 +7634,9 @@ class GameWebsocket {
|
|
|
7524
7634
|
return this.centrifugoService.listen(`game_${gameId}`).pipe(filter(item => item.action === GameWebsocketEvents.GAME_USER_DELETED), map(item => new GameUser(item.data)));
|
|
7525
7635
|
}
|
|
7526
7636
|
}
|
|
7527
|
-
GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7528
|
-
GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7637
|
+
GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, deps: [{ token: CentrifugoService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7638
|
+
GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, providedIn: 'root' });
|
|
7639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, decorators: [{
|
|
7530
7640
|
type: Injectable,
|
|
7531
7641
|
args: [{ providedIn: 'root' }]
|
|
7532
7642
|
}], ctorParameters: function () { return [{ type: CentrifugoService }]; } });
|