@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.
- package/api/league-api.d.ts +1 -0
- package/api/tournament-api.d.ts +1 -0
- package/api/tournament-season-api.d.ts +2 -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 +18 -4
- 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 +19 -5
- 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 +1 -1
- package/esm2020/models/football-statistic.mjs +1 -1
- package/esm2020/models/game-user.mjs +2 -2
- package/esm2020/models/game.mjs +12 -1
- package/esm2020/models/hockey-statistic.mjs +1 -1
- 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 +1 -1
- package/esm2020/models/sport.mjs +5 -1
- package/esm2020/models/team.mjs +1 -1
- 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 +268 -128
- package/fesm2015/mtgame-core.mjs.map +1 -1
- package/fesm2020/mtgame-core.mjs +263 -128
- 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({
|
|
@@ -1466,24 +1484,64 @@ let BasketballGameStatistic = class BasketballGameStatistic extends GameStatisti
|
|
|
1466
1484
|
get totalFouls() {
|
|
1467
1485
|
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
1468
1486
|
}
|
|
1487
|
+
set onePointPercent(v) { }
|
|
1488
|
+
get onePointPercent() {
|
|
1489
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
1490
|
+
return 0;
|
|
1491
|
+
}
|
|
1492
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* @deprecated Use onePointPercent instead
|
|
1496
|
+
*/
|
|
1469
1497
|
get onePointsPercent() {
|
|
1470
1498
|
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
1471
1499
|
return 0;
|
|
1472
1500
|
}
|
|
1473
1501
|
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
1474
1502
|
}
|
|
1503
|
+
set twoPointPercent(v) { }
|
|
1504
|
+
get twoPointPercent() {
|
|
1505
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
1506
|
+
return 0;
|
|
1507
|
+
}
|
|
1508
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* @deprecated Use twoPointPercent instead
|
|
1512
|
+
*/
|
|
1475
1513
|
get twoPointsPercent() {
|
|
1476
1514
|
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
1477
1515
|
return 0;
|
|
1478
1516
|
}
|
|
1479
1517
|
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
1480
1518
|
}
|
|
1519
|
+
set threePointPercent(v) { }
|
|
1520
|
+
get threePointPercent() {
|
|
1521
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
1522
|
+
return 0;
|
|
1523
|
+
}
|
|
1524
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* @deprecated Use threePointPercent instead
|
|
1528
|
+
*/
|
|
1481
1529
|
get threePointsPercent() {
|
|
1482
1530
|
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
1483
1531
|
return 0;
|
|
1484
1532
|
}
|
|
1485
1533
|
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
1486
1534
|
}
|
|
1535
|
+
set freeThrowPercent(v) { }
|
|
1536
|
+
get freeThrowPercent() {
|
|
1537
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
1538
|
+
return 0;
|
|
1539
|
+
}
|
|
1540
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* @deprecated Use freeThrowPercent instead
|
|
1544
|
+
*/
|
|
1487
1545
|
get freeThrowsPercent() {
|
|
1488
1546
|
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
1489
1547
|
return 0;
|
|
@@ -1493,6 +1551,24 @@ let BasketballGameStatistic = class BasketballGameStatistic extends GameStatisti
|
|
|
1493
1551
|
get totalRebounds() {
|
|
1494
1552
|
return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
|
|
1495
1553
|
}
|
|
1554
|
+
set fourPointPercent(v) { }
|
|
1555
|
+
get fourPointPercent() {
|
|
1556
|
+
if (!this.fourPointAttempts || !this.fourPointsMade) {
|
|
1557
|
+
return 0;
|
|
1558
|
+
}
|
|
1559
|
+
return Math.round(1000 * this.fourPointsMade / this.fourPointAttempts) / 10;
|
|
1560
|
+
}
|
|
1561
|
+
set shootoutsTotal(v) { }
|
|
1562
|
+
get shootoutsTotal() {
|
|
1563
|
+
return (this.shootoutsLost || 0) + (this.shootoutsWon || 0);
|
|
1564
|
+
}
|
|
1565
|
+
set shootoutWonPercent(v) { }
|
|
1566
|
+
get shootoutWonPercent() {
|
|
1567
|
+
if (!this.shootoutsTotal || !this.shootoutsWon) {
|
|
1568
|
+
return 0;
|
|
1569
|
+
}
|
|
1570
|
+
return Math.round(1000 * this.shootoutsWon / this.shootoutsTotal) / 10;
|
|
1571
|
+
}
|
|
1496
1572
|
};
|
|
1497
1573
|
BasketballGameStatistic = __decorate([
|
|
1498
1574
|
Model({
|
|
@@ -1531,6 +1607,13 @@ var BasketballGameLogTypes;
|
|
|
1531
1607
|
BasketballGameLogTypes[BasketballGameLogTypes["one_point_made"] = 22] = "one_point_made";
|
|
1532
1608
|
BasketballGameLogTypes[BasketballGameLogTypes["timeout"] = 23] = "timeout";
|
|
1533
1609
|
BasketballGameLogTypes[BasketballGameLogTypes["team_rebound"] = 24] = "team_rebound";
|
|
1610
|
+
BasketballGameLogTypes[BasketballGameLogTypes["four_point_attempt"] = 25] = "four_point_attempt";
|
|
1611
|
+
BasketballGameLogTypes[BasketballGameLogTypes["four_point_made"] = 26] = "four_point_made";
|
|
1612
|
+
BasketballGameLogTypes[BasketballGameLogTypes["dunk_attempt"] = 27] = "dunk_attempt";
|
|
1613
|
+
BasketballGameLogTypes[BasketballGameLogTypes["dunk_made"] = 28] = "dunk_made";
|
|
1614
|
+
BasketballGameLogTypes[BasketballGameLogTypes["shootout"] = 29] = "shootout";
|
|
1615
|
+
BasketballGameLogTypes[BasketballGameLogTypes["shootout_won"] = 30] = "shootout_won";
|
|
1616
|
+
BasketballGameLogTypes[BasketballGameLogTypes["shootout_lost"] = 31] = "shootout_lost";
|
|
1534
1617
|
})(BasketballGameLogTypes || (BasketballGameLogTypes = {}));
|
|
1535
1618
|
var BasketballSubLogTypes;
|
|
1536
1619
|
(function (BasketballSubLogTypes) {
|
|
@@ -1604,6 +1687,9 @@ let BasketballGameLog = class BasketballGameLog extends GameLogBase {
|
|
|
1604
1687
|
BasketballGameLogTypes.three_point_made,
|
|
1605
1688
|
BasketballGameLogTypes.free_throw_made,
|
|
1606
1689
|
BasketballGameLogTypes.one_point_made,
|
|
1690
|
+
BasketballGameLogTypes.four_point_made,
|
|
1691
|
+
BasketballGameLogTypes.dunk_made,
|
|
1692
|
+
BasketballGameLogTypes.shootout_won,
|
|
1607
1693
|
].indexOf(this.logType) > -1;
|
|
1608
1694
|
}
|
|
1609
1695
|
isReboundType() {
|
|
@@ -1627,9 +1713,14 @@ let BasketballGameLog = class BasketballGameLog extends GameLogBase {
|
|
|
1627
1713
|
[BasketballGameLogTypes.one_point_made]: 1,
|
|
1628
1714
|
[BasketballGameLogTypes.free_throw_made]: 1,
|
|
1629
1715
|
[BasketballGameLogTypes.two_point_made]: 2,
|
|
1630
|
-
[BasketballGameLogTypes.three_point_made]: 3
|
|
1716
|
+
[BasketballGameLogTypes.three_point_made]: 3,
|
|
1717
|
+
[BasketballGameLogTypes.four_point_made]: 4,
|
|
1718
|
+
[BasketballGameLogTypes.dunk_made]: 3,
|
|
1631
1719
|
};
|
|
1632
|
-
|
|
1720
|
+
if (this.logType === BasketballGameLogTypes.shootout_won) {
|
|
1721
|
+
return this.shootoutPoints;
|
|
1722
|
+
}
|
|
1723
|
+
return scoreMapping[this.logType] || 0;
|
|
1633
1724
|
}
|
|
1634
1725
|
compare(model) {
|
|
1635
1726
|
if (this.time === model.time && this.period === model.period) {
|
|
@@ -1664,7 +1755,7 @@ BasketballGameLog = __decorate([
|
|
|
1664
1755
|
|
|
1665
1756
|
let GameUser = class GameUser extends BaseModel {
|
|
1666
1757
|
get gameUserNumber() {
|
|
1667
|
-
return this.number ? this.number : this.teamUser.number;
|
|
1758
|
+
return (this.number || this.number === 0) ? this.number : this.teamUser.number;
|
|
1668
1759
|
}
|
|
1669
1760
|
};
|
|
1670
1761
|
GameUser = __decorate([
|
|
@@ -1936,9 +2027,9 @@ class BaseService {
|
|
|
1936
2027
|
this.store.dispose();
|
|
1937
2028
|
}
|
|
1938
2029
|
}
|
|
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.
|
|
2030
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2031
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
2032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BaseService, decorators: [{
|
|
1942
2033
|
type: Injectable,
|
|
1943
2034
|
args: [{ providedIn: 'root' }]
|
|
1944
2035
|
}] });
|
|
@@ -1972,9 +2063,9 @@ class ConfigService extends BaseService {
|
|
|
1972
2063
|
return this.store.value(CONFIG_STORE_KEY) && this.store.value(CONFIG_STORE_KEY)[key];
|
|
1973
2064
|
}
|
|
1974
2065
|
}
|
|
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.
|
|
2066
|
+
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 });
|
|
2067
|
+
ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, providedIn: 'root' });
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ConfigService, decorators: [{
|
|
1978
2069
|
type: Injectable,
|
|
1979
2070
|
args: [{ providedIn: 'root' }]
|
|
1980
2071
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2008,9 +2099,9 @@ class GameBaseApi {
|
|
|
2008
2099
|
}).toPromise();
|
|
2009
2100
|
}
|
|
2010
2101
|
}
|
|
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.
|
|
2102
|
+
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 });
|
|
2103
|
+
GameBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, providedIn: 'root' });
|
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameBaseApi, decorators: [{
|
|
2014
2105
|
type: Injectable,
|
|
2015
2106
|
args: [{ providedIn: 'root' }]
|
|
2016
2107
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2042,9 +2133,9 @@ class BasketballGameApi extends GameBaseApi {
|
|
|
2042
2133
|
.toPromise();
|
|
2043
2134
|
}
|
|
2044
2135
|
}
|
|
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.
|
|
2136
|
+
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 });
|
|
2137
|
+
BasketballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, providedIn: 'root' });
|
|
2138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: BasketballGameApi, decorators: [{
|
|
2048
2139
|
type: Injectable,
|
|
2049
2140
|
args: [{ providedIn: 'root' }]
|
|
2050
2141
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2075,9 +2166,9 @@ class FeedbackApi {
|
|
|
2075
2166
|
.toPromise();
|
|
2076
2167
|
}
|
|
2077
2168
|
}
|
|
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.
|
|
2169
|
+
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 });
|
|
2170
|
+
FeedbackApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, providedIn: 'root' });
|
|
2171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FeedbackApi, decorators: [{
|
|
2081
2172
|
type: Injectable,
|
|
2082
2173
|
args: [{ providedIn: 'root' }]
|
|
2083
2174
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2109,9 +2200,9 @@ class FileApi {
|
|
|
2109
2200
|
.toPromise();
|
|
2110
2201
|
}
|
|
2111
2202
|
}
|
|
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.
|
|
2203
|
+
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 });
|
|
2204
|
+
FileApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, providedIn: 'root' });
|
|
2205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FileApi, decorators: [{
|
|
2115
2206
|
type: Injectable,
|
|
2116
2207
|
args: [{ providedIn: 'root' }]
|
|
2117
2208
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2449,9 +2540,9 @@ class HockeyGameApi extends GameBaseApi {
|
|
|
2449
2540
|
}).toPromise();
|
|
2450
2541
|
}
|
|
2451
2542
|
}
|
|
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.
|
|
2543
|
+
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 });
|
|
2544
|
+
HockeyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, providedIn: 'root' });
|
|
2545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HockeyGameApi, decorators: [{
|
|
2455
2546
|
type: Injectable,
|
|
2456
2547
|
args: [{ providedIn: 'root' }]
|
|
2457
2548
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2732,9 +2823,9 @@ class FootballGameApi extends GameBaseApi {
|
|
|
2732
2823
|
}).toPromise();
|
|
2733
2824
|
}
|
|
2734
2825
|
}
|
|
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.
|
|
2826
|
+
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 });
|
|
2827
|
+
FootballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, providedIn: 'root' });
|
|
2828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: FootballGameApi, decorators: [{
|
|
2738
2829
|
type: Injectable,
|
|
2739
2830
|
args: [{ providedIn: 'root' }]
|
|
2740
2831
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -2938,9 +3029,9 @@ class HandballGameApi extends GameBaseApi {
|
|
|
2938
3029
|
}).toPromise();
|
|
2939
3030
|
}
|
|
2940
3031
|
}
|
|
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.
|
|
3032
|
+
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 });
|
|
3033
|
+
HandballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, providedIn: 'root' });
|
|
3034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HandballGameApi, decorators: [{
|
|
2944
3035
|
type: Injectable,
|
|
2945
3036
|
args: [{ providedIn: 'root' }]
|
|
2946
3037
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3507,9 +3598,9 @@ class TournamentApi {
|
|
|
3507
3598
|
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
3599
|
}
|
|
3509
3600
|
}
|
|
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.
|
|
3601
|
+
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 });
|
|
3602
|
+
TournamentApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, providedIn: 'root' });
|
|
3603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentApi, decorators: [{
|
|
3513
3604
|
type: Injectable,
|
|
3514
3605
|
args: [{ providedIn: 'root' }]
|
|
3515
3606
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3523,6 +3614,9 @@ function applyGamesFilters(filters, params) {
|
|
|
3523
3614
|
if (filters.tournamentRoundId) {
|
|
3524
3615
|
params = params.set('tournament_round_id', filters.tournamentRoundId.toString());
|
|
3525
3616
|
}
|
|
3617
|
+
if (filters.tournamentGroupId) {
|
|
3618
|
+
params = params.set('tournament_group_id', filters.tournamentGroupId.toString());
|
|
3619
|
+
}
|
|
3526
3620
|
if (filters.divisionId) {
|
|
3527
3621
|
params = params.set('division_id', filters.divisionId.toString());
|
|
3528
3622
|
}
|
|
@@ -3678,6 +3772,20 @@ class LeagueApi {
|
|
|
3678
3772
|
}
|
|
3679
3773
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params }).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
|
|
3680
3774
|
}
|
|
3775
|
+
async getTournamentsPaginated(leagueId, filters, page = 1, size = 100) {
|
|
3776
|
+
let params = new HttpParams()
|
|
3777
|
+
.set('page', page.toString())
|
|
3778
|
+
.set('size', size.toString());
|
|
3779
|
+
if (filters) {
|
|
3780
|
+
if (filters.statuses) {
|
|
3781
|
+
params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/tournaments/`, { params, observe: 'response' }).pipe(map(result => ({
|
|
3785
|
+
total: +result.headers.get('X-Page-Count'),
|
|
3786
|
+
data: result.body.map(item => new Tournament(item))
|
|
3787
|
+
}))).toPromise();
|
|
3788
|
+
}
|
|
3681
3789
|
async getEvents(leagueId, page, size, filters) {
|
|
3682
3790
|
let params = new HttpParams().set('page', page.toString())
|
|
3683
3791
|
.set('size', size.toString());
|
|
@@ -3749,9 +3857,9 @@ class LeagueApi {
|
|
|
3749
3857
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/team_and_user_search/`, { params }).pipe(map(result => new TeamsAndUsers(result))).toPromise();
|
|
3750
3858
|
}
|
|
3751
3859
|
}
|
|
3752
|
-
LeagueApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3753
|
-
LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3860
|
+
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 });
|
|
3861
|
+
LeagueApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, providedIn: 'root' });
|
|
3862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueApi, decorators: [{
|
|
3755
3863
|
type: Injectable,
|
|
3756
3864
|
args: [{ providedIn: 'root' }]
|
|
3757
3865
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3799,9 +3907,9 @@ class LeagueNewsApi {
|
|
|
3799
3907
|
.toPromise();
|
|
3800
3908
|
}
|
|
3801
3909
|
}
|
|
3802
|
-
LeagueNewsApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3803
|
-
LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3910
|
+
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 });
|
|
3911
|
+
LeagueNewsApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, providedIn: 'root' });
|
|
3912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeagueNewsApi, decorators: [{
|
|
3805
3913
|
type: Injectable,
|
|
3806
3914
|
args: [{ providedIn: 'root' }]
|
|
3807
3915
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3822,9 +3930,9 @@ class LeaguePlayerApi {
|
|
|
3822
3930
|
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();
|
|
3823
3931
|
}
|
|
3824
3932
|
}
|
|
3825
|
-
LeaguePlayerApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3826
|
-
LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
3933
|
+
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 });
|
|
3934
|
+
LeaguePlayerApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, providedIn: 'root' });
|
|
3935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: LeaguePlayerApi, decorators: [{
|
|
3828
3936
|
type: Injectable,
|
|
3829
3937
|
args: [{ providedIn: 'root' }]
|
|
3830
3938
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -3911,9 +4019,9 @@ class MediaApi {
|
|
|
3911
4019
|
.toPromise();
|
|
3912
4020
|
}
|
|
3913
4021
|
}
|
|
3914
|
-
MediaApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
3915
|
-
MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
3916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4022
|
+
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 });
|
|
4023
|
+
MediaApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, providedIn: 'root' });
|
|
4024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: MediaApi, decorators: [{
|
|
3917
4025
|
type: Injectable,
|
|
3918
4026
|
args: [{ providedIn: 'root' }]
|
|
3919
4027
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4281,9 +4389,9 @@ class NotificationBaseApi {
|
|
|
4281
4389
|
.toPromise();
|
|
4282
4390
|
}
|
|
4283
4391
|
}
|
|
4284
|
-
NotificationBaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4285
|
-
NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4392
|
+
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 });
|
|
4393
|
+
NotificationBaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, providedIn: 'root' });
|
|
4394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationBaseApi, decorators: [{
|
|
4287
4395
|
type: Injectable,
|
|
4288
4396
|
args: [{ providedIn: 'root' }]
|
|
4289
4397
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4294,9 +4402,9 @@ class NotificationApi extends NotificationBaseApi {
|
|
|
4294
4402
|
this.apiUrl = '/api/v1';
|
|
4295
4403
|
}
|
|
4296
4404
|
}
|
|
4297
|
-
NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4298
|
-
NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4405
|
+
NotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4406
|
+
NotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, providedIn: 'root' });
|
|
4407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: NotificationApi, decorators: [{
|
|
4300
4408
|
type: Injectable,
|
|
4301
4409
|
args: [{ providedIn: 'root' }]
|
|
4302
4410
|
}] });
|
|
@@ -4307,9 +4415,9 @@ class OrgNotificationApi extends NotificationBaseApi {
|
|
|
4307
4415
|
this.apiUrl = '/org/api/v1';
|
|
4308
4416
|
}
|
|
4309
4417
|
}
|
|
4310
|
-
OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4311
|
-
OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4418
|
+
OrgNotificationApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4419
|
+
OrgNotificationApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, providedIn: 'root' });
|
|
4420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: OrgNotificationApi, decorators: [{
|
|
4313
4421
|
type: Injectable,
|
|
4314
4422
|
args: [{ providedIn: 'root' }]
|
|
4315
4423
|
}] });
|
|
@@ -4330,9 +4438,9 @@ class ReferenceApi {
|
|
|
4330
4438
|
.pipe(map(data => data.map(item => new Sport(item)))).toPromise();
|
|
4331
4439
|
}
|
|
4332
4440
|
}
|
|
4333
|
-
ReferenceApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4334
|
-
ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4441
|
+
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 });
|
|
4442
|
+
ReferenceApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, providedIn: 'root' });
|
|
4443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ReferenceApi, decorators: [{
|
|
4336
4444
|
type: Injectable,
|
|
4337
4445
|
args: [{ providedIn: 'root' }]
|
|
4338
4446
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4386,7 +4494,7 @@ let RugbyGameStatistic = class RugbyGameStatistic extends GameStatisticBase {
|
|
|
4386
4494
|
return (this.conversionGoals || 0) + (this.dropGoals || 0) + (this.penaltyGoals || 0);
|
|
4387
4495
|
}
|
|
4388
4496
|
get footShots() {
|
|
4389
|
-
return (this.footFieldShots || 0) + (this.footOutShots || 0);
|
|
4497
|
+
return (this.footFieldShots || 0) + (this.footOutShots || 0) + (this.footKicks5022 || 0);
|
|
4390
4498
|
}
|
|
4391
4499
|
get totalFouls() {
|
|
4392
4500
|
return (this.fouls || 0) + (this.teamFouls || 0);
|
|
@@ -4462,24 +4570,25 @@ var RugbyGameLogTypes;
|
|
|
4462
4570
|
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 22] = "end_game_penalty_goal";
|
|
4463
4571
|
RugbyGameLogTypes[RugbyGameLogTypes["foot_field_shot"] = 23] = "foot_field_shot";
|
|
4464
4572
|
RugbyGameLogTypes[RugbyGameLogTypes["foot_out_shot"] = 24] = "foot_out_shot";
|
|
4573
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foot_kick_50_22"] = 25] = "foot_kick_50_22";
|
|
4465
4574
|
// team actions
|
|
4466
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
4467
|
-
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] =
|
|
4468
|
-
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] =
|
|
4469
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] =
|
|
4470
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] =
|
|
4471
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] =
|
|
4472
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] =
|
|
4473
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] =
|
|
4474
|
-
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] =
|
|
4475
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] =
|
|
4476
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] =
|
|
4477
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] =
|
|
4478
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] =
|
|
4479
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] =
|
|
4480
|
-
RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] =
|
|
4481
|
-
RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] =
|
|
4482
|
-
RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] =
|
|
4575
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 26] = "timeout";
|
|
4576
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] = 27] = "tap_penalty";
|
|
4577
|
+
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] = 28] = "penalty_kick_to_touch";
|
|
4578
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 29] = "scrum_won";
|
|
4579
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] = 30] = "scrum_lost";
|
|
4580
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 31] = "scrum_won_free";
|
|
4581
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] = 32] = "lineout_won";
|
|
4582
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] = 33] = "lineout_lost";
|
|
4583
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 34] = "quick_throw";
|
|
4584
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 35] = "ruck_won";
|
|
4585
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] = 36] = "ruck_lost";
|
|
4586
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 37] = "maul_won";
|
|
4587
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 38] = "maul_lost";
|
|
4588
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 39] = "team_foul";
|
|
4589
|
+
RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] = 40] = "start_kick";
|
|
4590
|
+
RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] = 41] = "twenty_two_meters_kick";
|
|
4591
|
+
RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] = 42] = "goal_kick";
|
|
4483
4592
|
})(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
|
|
4484
4593
|
const RUGBY_GAME_LOG_TYPE_POINTS = {
|
|
4485
4594
|
[RugbyGameLogTypes.penalty_try]: 7,
|
|
@@ -4579,9 +4688,9 @@ class RugbyGameApi extends GameBaseApi {
|
|
|
4579
4688
|
}).toPromise();
|
|
4580
4689
|
}
|
|
4581
4690
|
}
|
|
4582
|
-
RugbyGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4583
|
-
RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
4691
|
+
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 });
|
|
4692
|
+
RugbyGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, providedIn: 'root' });
|
|
4693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: RugbyGameApi, decorators: [{
|
|
4585
4694
|
type: Injectable,
|
|
4586
4695
|
args: [{ providedIn: 'root' }]
|
|
4587
4696
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4897,9 +5006,9 @@ class TeamApi {
|
|
|
4897
5006
|
.toPromise();
|
|
4898
5007
|
}
|
|
4899
5008
|
}
|
|
4900
|
-
TeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4901
|
-
TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5009
|
+
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 });
|
|
5010
|
+
TeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, providedIn: 'root' });
|
|
5011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamApi, decorators: [{
|
|
4903
5012
|
type: Injectable,
|
|
4904
5013
|
args: [{ providedIn: 'root' }]
|
|
4905
5014
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -4951,9 +5060,9 @@ class TeamEventApi {
|
|
|
4951
5060
|
.toPromise();
|
|
4952
5061
|
}
|
|
4953
5062
|
}
|
|
4954
|
-
TeamEventApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
4955
|
-
TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
4956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5063
|
+
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 });
|
|
5064
|
+
TeamEventApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, providedIn: 'root' });
|
|
5065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TeamEventApi, decorators: [{
|
|
4957
5066
|
type: Injectable,
|
|
4958
5067
|
args: [{ providedIn: 'root' }]
|
|
4959
5068
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5020,9 +5129,9 @@ class TournamentJoinApi {
|
|
|
5020
5129
|
.toPromise();
|
|
5021
5130
|
}
|
|
5022
5131
|
}
|
|
5023
|
-
TournamentJoinApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5024
|
-
TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5132
|
+
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 });
|
|
5133
|
+
TournamentJoinApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, providedIn: 'root' });
|
|
5134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentJoinApi, decorators: [{
|
|
5026
5135
|
type: Injectable,
|
|
5027
5136
|
args: [{ providedIn: 'root' }]
|
|
5028
5137
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5098,9 +5207,9 @@ class TournamentRoundApi {
|
|
|
5098
5207
|
}))).toPromise();
|
|
5099
5208
|
}
|
|
5100
5209
|
}
|
|
5101
|
-
TournamentRoundApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5102
|
-
TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5210
|
+
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 });
|
|
5211
|
+
TournamentRoundApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, providedIn: 'root' });
|
|
5212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentRoundApi, decorators: [{
|
|
5104
5213
|
type: Injectable,
|
|
5105
5214
|
args: [{ providedIn: 'root' }]
|
|
5106
5215
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5116,6 +5225,20 @@ class TournamentSeasonApi {
|
|
|
5116
5225
|
async getTournaments(seasonId) {
|
|
5117
5226
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_season/${seasonId}/tournaments/`).pipe(map(result => result.map(item => new Tournament(item)))).toPromise();
|
|
5118
5227
|
}
|
|
5228
|
+
async getTournamentsPaginated(seasonId, filters, page = 1, size = 100) {
|
|
5229
|
+
let params = new HttpParams()
|
|
5230
|
+
.set('page', page.toString())
|
|
5231
|
+
.set('size', size.toString());
|
|
5232
|
+
if (filters) {
|
|
5233
|
+
if (filters.statuses) {
|
|
5234
|
+
params = params.set('statuses', filters.statuses.map(s => TournamentStatuses[s]).join(','));
|
|
5235
|
+
}
|
|
5236
|
+
}
|
|
5237
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_season/${seasonId}/tournaments/`, { params, observe: 'response' }).pipe(map(result => ({
|
|
5238
|
+
total: +result.headers.get('X-Page-Count'),
|
|
5239
|
+
data: result.body.map(item => new Tournament(item))
|
|
5240
|
+
}))).toPromise();
|
|
5241
|
+
}
|
|
5119
5242
|
async getGames(seasonId, page, size, filters) {
|
|
5120
5243
|
let params = new HttpParams().set('page', page.toString());
|
|
5121
5244
|
if (size) {
|
|
@@ -5175,9 +5298,9 @@ class TournamentSeasonApi {
|
|
|
5175
5298
|
.toPromise();
|
|
5176
5299
|
}
|
|
5177
5300
|
}
|
|
5178
|
-
TournamentSeasonApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5179
|
-
TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5301
|
+
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 });
|
|
5302
|
+
TournamentSeasonApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, providedIn: 'root' });
|
|
5303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentSeasonApi, decorators: [{
|
|
5181
5304
|
type: Injectable,
|
|
5182
5305
|
args: [{ providedIn: 'root' }]
|
|
5183
5306
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5220,9 +5343,9 @@ class TournamentStageApi {
|
|
|
5220
5343
|
.toPromise();
|
|
5221
5344
|
}
|
|
5222
5345
|
}
|
|
5223
|
-
TournamentStageApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5224
|
-
TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5346
|
+
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 });
|
|
5347
|
+
TournamentStageApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, providedIn: 'root' });
|
|
5348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: TournamentStageApi, decorators: [{
|
|
5226
5349
|
type: Injectable,
|
|
5227
5350
|
args: [{ providedIn: 'root' }]
|
|
5228
5351
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5445,9 +5568,9 @@ class UserApi {
|
|
|
5445
5568
|
.toPromise();
|
|
5446
5569
|
}
|
|
5447
5570
|
}
|
|
5448
|
-
UserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5449
|
-
UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5571
|
+
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 });
|
|
5572
|
+
UserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, providedIn: 'root' });
|
|
5573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: UserApi, decorators: [{
|
|
5451
5574
|
type: Injectable,
|
|
5452
5575
|
args: [{ providedIn: 'root' }]
|
|
5453
5576
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -5650,9 +5773,9 @@ class VolleyballGameApi extends GameBaseApi {
|
|
|
5650
5773
|
}).toPromise();
|
|
5651
5774
|
}
|
|
5652
5775
|
}
|
|
5653
|
-
VolleyballGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
5654
|
-
VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
5655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
5776
|
+
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 });
|
|
5777
|
+
VolleyballGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, providedIn: 'root' });
|
|
5778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: VolleyballGameApi, decorators: [{
|
|
5656
5779
|
type: Injectable,
|
|
5657
5780
|
args: [{ providedIn: 'root' }]
|
|
5658
5781
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6304,9 +6427,9 @@ class WaterpoloGameApi extends GameBaseApi {
|
|
|
6304
6427
|
}).toPromise();
|
|
6305
6428
|
}
|
|
6306
6429
|
}
|
|
6307
|
-
WaterpoloGameApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
6308
|
-
WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
6309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
6430
|
+
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 });
|
|
6431
|
+
WaterpoloGameApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, providedIn: 'root' });
|
|
6432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: WaterpoloGameApi, decorators: [{
|
|
6310
6433
|
type: Injectable,
|
|
6311
6434
|
args: [{ providedIn: 'root' }]
|
|
6312
6435
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6330,9 +6453,9 @@ class PublicTeamApi {
|
|
|
6330
6453
|
.toPromise();
|
|
6331
6454
|
}
|
|
6332
6455
|
}
|
|
6333
|
-
PublicTeamApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
6334
|
-
PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
6335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
6456
|
+
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 });
|
|
6457
|
+
PublicTeamApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, providedIn: 'root' });
|
|
6458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicTeamApi, decorators: [{
|
|
6336
6459
|
type: Injectable,
|
|
6337
6460
|
args: [{ providedIn: 'root' }]
|
|
6338
6461
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6358,9 +6481,9 @@ class PublicUserApi {
|
|
|
6358
6481
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/public_user/${userId}/league_player/`, { params }).pipe(map(result => new LeaguePlayer(result))).toPromise();
|
|
6359
6482
|
}
|
|
6360
6483
|
}
|
|
6361
|
-
PublicUserApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
6362
|
-
PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
6363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
6484
|
+
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 });
|
|
6485
|
+
PublicUserApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, providedIn: 'root' });
|
|
6486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: PublicUserApi, decorators: [{
|
|
6364
6487
|
type: Injectable,
|
|
6365
6488
|
args: [{ providedIn: 'root' }]
|
|
6366
6489
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }]; } });
|
|
@@ -6389,6 +6512,13 @@ const BasketballGameLogTypeLocalization = {
|
|
|
6389
6512
|
[BasketballGameLogTypes.unsportsmanlike_foul]: 'Неспортиный фол',
|
|
6390
6513
|
[BasketballGameLogTypes.timeout]: 'Таймаут',
|
|
6391
6514
|
[BasketballGameLogTypes.team_rebound]: 'Командный подбор',
|
|
6515
|
+
[BasketballGameLogTypes.dunk_attempt]: 'Данк мимо',
|
|
6516
|
+
[BasketballGameLogTypes.dunk_made]: 'Данк',
|
|
6517
|
+
[BasketballGameLogTypes.four_point_attempt]: 'Бросок 4 очка',
|
|
6518
|
+
[BasketballGameLogTypes.four_point_made]: '4 очка',
|
|
6519
|
+
[BasketballGameLogTypes.shootout]: 'Булит',
|
|
6520
|
+
[BasketballGameLogTypes.shootout_won]: 'Булит выигран',
|
|
6521
|
+
[BasketballGameLogTypes.shootout_lost]: 'Булит проигран',
|
|
6392
6522
|
};
|
|
6393
6523
|
|
|
6394
6524
|
const BasketballGameSubLogTypesLocalization = {
|
|
@@ -6591,7 +6721,7 @@ const OvertimeTypeLocalization = {
|
|
|
6591
6721
|
|
|
6592
6722
|
const RugbyFoulSanctionLocalization = {
|
|
6593
6723
|
[RugbyFoulSanctions.scrum]: 'Схватка',
|
|
6594
|
-
[RugbyFoulSanctions.lineout]: '
|
|
6724
|
+
[RugbyFoulSanctions.lineout]: 'Коридор',
|
|
6595
6725
|
[RugbyFoulSanctions.start_kick]: 'Начальный удар',
|
|
6596
6726
|
[RugbyFoulSanctions.free_kick]: 'Свободный удар',
|
|
6597
6727
|
[RugbyFoulSanctions.penalty_shot]: 'Штрафной удар',
|
|
@@ -6641,6 +6771,7 @@ const RugbyGameLogTypeLocalization = {
|
|
|
6641
6771
|
[RugbyGameLogTypes.end_game_penalty_goal]: 'Штрафной гол',
|
|
6642
6772
|
[RugbyGameLogTypes.foot_field_shot]: 'Удар ногой в поле',
|
|
6643
6773
|
[RugbyGameLogTypes.foot_out_shot]: 'Удар ногой в аут',
|
|
6774
|
+
[RugbyGameLogTypes.foot_kick_50_22]: 'Удар ногой 50/22',
|
|
6644
6775
|
[RugbyGameLogTypes.timeout]: 'Таймаут',
|
|
6645
6776
|
[RugbyGameLogTypes.scrum_won]: 'Схватка выиграна',
|
|
6646
6777
|
[RugbyGameLogTypes.scrum_lost]: 'Схватка проиграна',
|
|
@@ -6934,6 +7065,7 @@ class CentrifugoService {
|
|
|
6934
7065
|
unsubscribe(channel) {
|
|
6935
7066
|
if (this.subscriptions[channel]) {
|
|
6936
7067
|
this.subscriptions[channel].unsubscribe();
|
|
7068
|
+
this.centrifuge.removeSubscription(this.subscriptions[channel]);
|
|
6937
7069
|
delete this.subscriptions[channel];
|
|
6938
7070
|
}
|
|
6939
7071
|
if (this.channels$[channel]) {
|
|
@@ -6997,10 +7129,13 @@ class CentrifugoService {
|
|
|
6997
7129
|
this.centrifuge._debugEnabled = false;
|
|
6998
7130
|
}
|
|
6999
7131
|
addEngineSubscription(channel) {
|
|
7000
|
-
|
|
7001
|
-
sub
|
|
7002
|
-
this.
|
|
7003
|
-
|
|
7132
|
+
let sub = this.centrifuge.getSubscription(channel);
|
|
7133
|
+
if (!sub) {
|
|
7134
|
+
sub = this.centrifuge.newSubscription(channel);
|
|
7135
|
+
sub.on('publication', ctx => {
|
|
7136
|
+
this.resolveMessage(channel, ctx.data);
|
|
7137
|
+
});
|
|
7138
|
+
}
|
|
7004
7139
|
sub.subscribe();
|
|
7005
7140
|
return sub;
|
|
7006
7141
|
}
|
|
@@ -7011,9 +7146,9 @@ class CentrifugoService {
|
|
|
7011
7146
|
this.channels$[channel].next(message);
|
|
7012
7147
|
}
|
|
7013
7148
|
}
|
|
7014
|
-
CentrifugoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7015
|
-
CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7149
|
+
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 });
|
|
7150
|
+
CentrifugoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, providedIn: 'root' });
|
|
7151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CentrifugoService, decorators: [{
|
|
7017
7152
|
type: Injectable,
|
|
7018
7153
|
args: [{ providedIn: 'root' }]
|
|
7019
7154
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: ConfigService }, { type: undefined, decorators: [{
|
|
@@ -7066,9 +7201,9 @@ class DeviceInfoService {
|
|
|
7066
7201
|
});
|
|
7067
7202
|
}
|
|
7068
7203
|
}
|
|
7069
|
-
DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7070
|
-
DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7204
|
+
DeviceInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7205
|
+
DeviceInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, providedIn: 'root' });
|
|
7206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DeviceInfoService, decorators: [{
|
|
7072
7207
|
type: Injectable,
|
|
7073
7208
|
args: [{ providedIn: 'root' }]
|
|
7074
7209
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -7440,9 +7575,9 @@ class HttpCookieInterceptor {
|
|
|
7440
7575
|
return next.handle(req);
|
|
7441
7576
|
}
|
|
7442
7577
|
}
|
|
7443
|
-
HttpCookieInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7444
|
-
HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7578
|
+
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 });
|
|
7579
|
+
HttpCookieInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor });
|
|
7580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: HttpCookieInterceptor, decorators: [{
|
|
7446
7581
|
type: Injectable
|
|
7447
7582
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: ConfigService }, { type: undefined, decorators: [{
|
|
7448
7583
|
type: Inject,
|
|
@@ -7496,9 +7631,9 @@ class GameWebsocket {
|
|
|
7496
7631
|
return this.centrifugoService.listen(`game_${gameId}`).pipe(filter(item => item.action === GameWebsocketEvents.GAME_USER_DELETED), map(item => new GameUser(item.data)));
|
|
7497
7632
|
}
|
|
7498
7633
|
}
|
|
7499
|
-
GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
7500
|
-
GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
7501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
7634
|
+
GameWebsocket.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, deps: [{ token: CentrifugoService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7635
|
+
GameWebsocket.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, providedIn: 'root' });
|
|
7636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GameWebsocket, decorators: [{
|
|
7502
7637
|
type: Injectable,
|
|
7503
7638
|
args: [{ providedIn: 'root' }]
|
|
7504
7639
|
}], ctorParameters: function () { return [{ type: CentrifugoService }]; } });
|