@mtgame/core 0.0.55 → 0.0.56
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/basketball-game-api.d.ts +4 -5
- package/api/football-game-api.d.ts +4 -5
- package/api/game-base-api.d.ts +10 -0
- package/api/hockey-game-api.d.ts +4 -5
- package/api/volleyball-game-api.d.ts +4 -5
- package/bundles/mtgame-core.umd.js +371 -355
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/basketball-game-api.js +4 -8
- package/esm2015/api/football-game-api.js +4 -8
- package/esm2015/api/game-base-api.js +35 -0
- package/esm2015/api/hockey-game-api.js +4 -8
- package/esm2015/api/volleyball-game-api.js +4 -8
- package/esm2015/models/game-user.js +2 -1
- package/esm2015/mtgame-core.js +2 -1
- package/esm5/api/basketball-game-api.js +10 -14
- package/esm5/api/football-game-api.js +10 -14
- package/esm5/api/game-base-api.js +40 -0
- package/esm5/api/hockey-game-api.js +10 -14
- package/esm5/api/volleyball-game-api.js +10 -14
- package/esm5/models/game-user.js +2 -1
- package/esm5/mtgame-core.js +2 -1
- package/fesm2015/mtgame-core.js +237 -227
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +371 -356
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game-user.d.ts +1 -0
- package/mtgame-core.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -1329,209 +1329,6 @@ Game = __decorate([
|
|
|
1329
1329
|
})
|
|
1330
1330
|
], Game);
|
|
1331
1331
|
|
|
1332
|
-
var TeamUserRole;
|
|
1333
|
-
(function (TeamUserRole) {
|
|
1334
|
-
TeamUserRole[TeamUserRole["member"] = 1] = "member";
|
|
1335
|
-
TeamUserRole[TeamUserRole["moderator"] = 2] = "moderator";
|
|
1336
|
-
TeamUserRole[TeamUserRole["admin"] = 3] = "admin";
|
|
1337
|
-
})(TeamUserRole || (TeamUserRole = {}));
|
|
1338
|
-
let TeamUser = class TeamUser extends BaseModel {
|
|
1339
|
-
static toFront(data) { }
|
|
1340
|
-
static toBack(teamPlayer) { }
|
|
1341
|
-
};
|
|
1342
|
-
__decorate([
|
|
1343
|
-
ToFrontHook
|
|
1344
|
-
], TeamUser, "toFront", null);
|
|
1345
|
-
__decorate([
|
|
1346
|
-
ToBackHook
|
|
1347
|
-
], TeamUser, "toBack", null);
|
|
1348
|
-
TeamUser = __decorate([
|
|
1349
|
-
ModelInstance({
|
|
1350
|
-
mappingFields: {
|
|
1351
|
-
id: 'id',
|
|
1352
|
-
team_id: 'teamId',
|
|
1353
|
-
user: 'user',
|
|
1354
|
-
role: 'role',
|
|
1355
|
-
number: 'number',
|
|
1356
|
-
team: 'team',
|
|
1357
|
-
},
|
|
1358
|
-
relation: {
|
|
1359
|
-
user: User,
|
|
1360
|
-
team: Team,
|
|
1361
|
-
role: enumField(TeamUserRole)
|
|
1362
|
-
}
|
|
1363
|
-
})
|
|
1364
|
-
], TeamUser);
|
|
1365
|
-
|
|
1366
|
-
let TournamentGroup = class TournamentGroup extends BaseModel {
|
|
1367
|
-
static toFront(data) { }
|
|
1368
|
-
static toBack(data) { }
|
|
1369
|
-
};
|
|
1370
|
-
__decorate([
|
|
1371
|
-
ToFrontHook
|
|
1372
|
-
], TournamentGroup, "toFront", null);
|
|
1373
|
-
__decorate([
|
|
1374
|
-
ToBackHook
|
|
1375
|
-
], TournamentGroup, "toBack", null);
|
|
1376
|
-
TournamentGroup = __decorate([
|
|
1377
|
-
ModelInstance({
|
|
1378
|
-
mappingFields: {
|
|
1379
|
-
id: 'id',
|
|
1380
|
-
name: 'name',
|
|
1381
|
-
tournament_stage_id: 'tournamentStageId'
|
|
1382
|
-
}
|
|
1383
|
-
})
|
|
1384
|
-
], TournamentGroup);
|
|
1385
|
-
|
|
1386
|
-
let TournamentTeam = class TournamentTeam extends BaseModel {
|
|
1387
|
-
get gamesWonPercent() {
|
|
1388
|
-
if (!this.gamesCount) {
|
|
1389
|
-
return 0;
|
|
1390
|
-
}
|
|
1391
|
-
return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
|
|
1392
|
-
}
|
|
1393
|
-
static toFront(data) { }
|
|
1394
|
-
static toBack(data) { }
|
|
1395
|
-
};
|
|
1396
|
-
__decorate([
|
|
1397
|
-
ToFrontHook
|
|
1398
|
-
], TournamentTeam, "toFront", null);
|
|
1399
|
-
__decorate([
|
|
1400
|
-
ToBackHook
|
|
1401
|
-
], TournamentTeam, "toBack", null);
|
|
1402
|
-
TournamentTeam = __decorate([
|
|
1403
|
-
ModelInstance({
|
|
1404
|
-
mappingFields: {
|
|
1405
|
-
id: 'id',
|
|
1406
|
-
team_id: 'teamId',
|
|
1407
|
-
tournament_id: 'tournamentId',
|
|
1408
|
-
tournament: 'tournament',
|
|
1409
|
-
team: 'team',
|
|
1410
|
-
group: 'group',
|
|
1411
|
-
final_standing: 'finalStanding',
|
|
1412
|
-
games_count: 'gamesCount',
|
|
1413
|
-
won_games_count: 'wonGamesCount',
|
|
1414
|
-
draw_games_count: 'drawGamesCount',
|
|
1415
|
-
last_games_count: 'lastGamesCount',
|
|
1416
|
-
last_games_won: 'lastGamesWon',
|
|
1417
|
-
score_sum: 'scoreSum',
|
|
1418
|
-
missed_sum: 'missedSum',
|
|
1419
|
-
score_points_sum: 'scorePointsSum',
|
|
1420
|
-
missed_points_sum: 'missedPointsSum',
|
|
1421
|
-
points: 'points',
|
|
1422
|
-
users_count: 'usersCount',
|
|
1423
|
-
games: 'games',
|
|
1424
|
-
notifications_count: 'notificationsCount',
|
|
1425
|
-
win_normal_time_games_count: 'winNormalTimeGamesCount',
|
|
1426
|
-
lose_normal_time_games_count: 'loseNormalTimeGamesCount',
|
|
1427
|
-
win_overtime_games_count: 'winOvertimeGamesCount',
|
|
1428
|
-
lose_overtime_games_count: 'loseOvertimeGamesCount',
|
|
1429
|
-
},
|
|
1430
|
-
relation: {
|
|
1431
|
-
tournament: Tournament,
|
|
1432
|
-
team: Team,
|
|
1433
|
-
group: TournamentGroup,
|
|
1434
|
-
games: Game,
|
|
1435
|
-
}
|
|
1436
|
-
})
|
|
1437
|
-
], TournamentTeam);
|
|
1438
|
-
|
|
1439
|
-
let TournamentDisqualification = class TournamentDisqualification extends BaseModel {
|
|
1440
|
-
static toFront(data) { }
|
|
1441
|
-
static toBack(data) { }
|
|
1442
|
-
};
|
|
1443
|
-
__decorate([
|
|
1444
|
-
ToFrontHook
|
|
1445
|
-
], TournamentDisqualification, "toFront", null);
|
|
1446
|
-
__decorate([
|
|
1447
|
-
ToBackHook
|
|
1448
|
-
], TournamentDisqualification, "toBack", null);
|
|
1449
|
-
TournamentDisqualification = __decorate([
|
|
1450
|
-
ModelInstance({
|
|
1451
|
-
mappingFields: {
|
|
1452
|
-
id: 'id',
|
|
1453
|
-
tournament_team_user_id: 'tournamentTeamUserId',
|
|
1454
|
-
date_from: 'dateFrom',
|
|
1455
|
-
date_to: 'dateTo',
|
|
1456
|
-
matches_count: 'matchesCount',
|
|
1457
|
-
},
|
|
1458
|
-
relation: {
|
|
1459
|
-
dateFrom: DateField,
|
|
1460
|
-
dateTo: DateField,
|
|
1461
|
-
}
|
|
1462
|
-
})
|
|
1463
|
-
], TournamentDisqualification);
|
|
1464
|
-
|
|
1465
|
-
let TournamentTeamUser = class TournamentTeamUser extends BaseModel {
|
|
1466
|
-
get fullName() {
|
|
1467
|
-
return [this.lastName, this.firstName, this.middleName].filter(s => s).join(' ');
|
|
1468
|
-
}
|
|
1469
|
-
get shortName() {
|
|
1470
|
-
return [this.lastName, this.firstName].filter(s => s).join(' ');
|
|
1471
|
-
}
|
|
1472
|
-
get initials() {
|
|
1473
|
-
return [this.lastName, this.firstName].filter(s => s).map(s => s.substr(0, 1)).join('');
|
|
1474
|
-
}
|
|
1475
|
-
static toFront(data) { }
|
|
1476
|
-
static toBack(data) { }
|
|
1477
|
-
};
|
|
1478
|
-
__decorate([
|
|
1479
|
-
ToFrontHook
|
|
1480
|
-
], TournamentTeamUser, "toFront", null);
|
|
1481
|
-
__decorate([
|
|
1482
|
-
ToBackHook
|
|
1483
|
-
], TournamentTeamUser, "toBack", null);
|
|
1484
|
-
TournamentTeamUser = __decorate([
|
|
1485
|
-
ModelInstance({
|
|
1486
|
-
mappingFields: {
|
|
1487
|
-
id: 'id',
|
|
1488
|
-
tournament_team: 'tournamentTeam',
|
|
1489
|
-
team_user: 'teamUser',
|
|
1490
|
-
disqualified: 'disqualified',
|
|
1491
|
-
first_name: 'firstName',
|
|
1492
|
-
last_name: 'lastName',
|
|
1493
|
-
middle_name: 'middleName',
|
|
1494
|
-
photo: 'photo',
|
|
1495
|
-
disqualification: 'disqualification',
|
|
1496
|
-
has_changes: 'hasChanges',
|
|
1497
|
-
rating: 'rating'
|
|
1498
|
-
},
|
|
1499
|
-
relation: {
|
|
1500
|
-
tournamentTeam: TournamentTeam,
|
|
1501
|
-
teamUser: TeamUser,
|
|
1502
|
-
photo: File,
|
|
1503
|
-
disqualification: TournamentDisqualification,
|
|
1504
|
-
}
|
|
1505
|
-
})
|
|
1506
|
-
], TournamentTeamUser);
|
|
1507
|
-
|
|
1508
|
-
let GameUser = class GameUser extends BaseModel {
|
|
1509
|
-
static toFront(data) { }
|
|
1510
|
-
static toBack(data) { }
|
|
1511
|
-
};
|
|
1512
|
-
__decorate([
|
|
1513
|
-
ToFrontHook
|
|
1514
|
-
], GameUser, "toFront", null);
|
|
1515
|
-
__decorate([
|
|
1516
|
-
ToBackHook
|
|
1517
|
-
], GameUser, "toBack", null);
|
|
1518
|
-
GameUser = __decorate([
|
|
1519
|
-
ModelInstance({
|
|
1520
|
-
mappingFields: {
|
|
1521
|
-
id: 'id',
|
|
1522
|
-
game_id: 'gameId',
|
|
1523
|
-
team_user: 'teamUser',
|
|
1524
|
-
tournament_team_user: 'tournamentTeamUser',
|
|
1525
|
-
updated_at: 'updatedAt'
|
|
1526
|
-
},
|
|
1527
|
-
relation: {
|
|
1528
|
-
teamUser: TeamUser,
|
|
1529
|
-
tournamentTeamUser: TournamentTeamUser,
|
|
1530
|
-
updatedAt: DateTimeField,
|
|
1531
|
-
}
|
|
1532
|
-
})
|
|
1533
|
-
], GameUser);
|
|
1534
|
-
|
|
1535
1332
|
function updateItemInArray(data, item, force = false, checkFunction) {
|
|
1536
1333
|
if (!Array.isArray(data)) {
|
|
1537
1334
|
return data;
|
|
@@ -1715,6 +1512,182 @@ ConfigService = __decorate([
|
|
|
1715
1512
|
__param(0, Optional()), __param(0, Inject(CONFIG_DATA))
|
|
1716
1513
|
], ConfigService);
|
|
1717
1514
|
|
|
1515
|
+
let TournamentGroup = class TournamentGroup extends BaseModel {
|
|
1516
|
+
static toFront(data) { }
|
|
1517
|
+
static toBack(data) { }
|
|
1518
|
+
};
|
|
1519
|
+
__decorate([
|
|
1520
|
+
ToFrontHook
|
|
1521
|
+
], TournamentGroup, "toFront", null);
|
|
1522
|
+
__decorate([
|
|
1523
|
+
ToBackHook
|
|
1524
|
+
], TournamentGroup, "toBack", null);
|
|
1525
|
+
TournamentGroup = __decorate([
|
|
1526
|
+
ModelInstance({
|
|
1527
|
+
mappingFields: {
|
|
1528
|
+
id: 'id',
|
|
1529
|
+
name: 'name',
|
|
1530
|
+
tournament_stage_id: 'tournamentStageId'
|
|
1531
|
+
}
|
|
1532
|
+
})
|
|
1533
|
+
], TournamentGroup);
|
|
1534
|
+
|
|
1535
|
+
let TournamentTeam = class TournamentTeam extends BaseModel {
|
|
1536
|
+
get gamesWonPercent() {
|
|
1537
|
+
if (!this.gamesCount) {
|
|
1538
|
+
return 0;
|
|
1539
|
+
}
|
|
1540
|
+
return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
|
|
1541
|
+
}
|
|
1542
|
+
static toFront(data) { }
|
|
1543
|
+
static toBack(data) { }
|
|
1544
|
+
};
|
|
1545
|
+
__decorate([
|
|
1546
|
+
ToFrontHook
|
|
1547
|
+
], TournamentTeam, "toFront", null);
|
|
1548
|
+
__decorate([
|
|
1549
|
+
ToBackHook
|
|
1550
|
+
], TournamentTeam, "toBack", null);
|
|
1551
|
+
TournamentTeam = __decorate([
|
|
1552
|
+
ModelInstance({
|
|
1553
|
+
mappingFields: {
|
|
1554
|
+
id: 'id',
|
|
1555
|
+
team_id: 'teamId',
|
|
1556
|
+
tournament_id: 'tournamentId',
|
|
1557
|
+
tournament: 'tournament',
|
|
1558
|
+
team: 'team',
|
|
1559
|
+
group: 'group',
|
|
1560
|
+
final_standing: 'finalStanding',
|
|
1561
|
+
games_count: 'gamesCount',
|
|
1562
|
+
won_games_count: 'wonGamesCount',
|
|
1563
|
+
draw_games_count: 'drawGamesCount',
|
|
1564
|
+
last_games_count: 'lastGamesCount',
|
|
1565
|
+
last_games_won: 'lastGamesWon',
|
|
1566
|
+
score_sum: 'scoreSum',
|
|
1567
|
+
missed_sum: 'missedSum',
|
|
1568
|
+
score_points_sum: 'scorePointsSum',
|
|
1569
|
+
missed_points_sum: 'missedPointsSum',
|
|
1570
|
+
points: 'points',
|
|
1571
|
+
users_count: 'usersCount',
|
|
1572
|
+
games: 'games',
|
|
1573
|
+
notifications_count: 'notificationsCount',
|
|
1574
|
+
win_normal_time_games_count: 'winNormalTimeGamesCount',
|
|
1575
|
+
lose_normal_time_games_count: 'loseNormalTimeGamesCount',
|
|
1576
|
+
win_overtime_games_count: 'winOvertimeGamesCount',
|
|
1577
|
+
lose_overtime_games_count: 'loseOvertimeGamesCount',
|
|
1578
|
+
},
|
|
1579
|
+
relation: {
|
|
1580
|
+
tournament: Tournament,
|
|
1581
|
+
team: Team,
|
|
1582
|
+
group: TournamentGroup,
|
|
1583
|
+
games: Game,
|
|
1584
|
+
}
|
|
1585
|
+
})
|
|
1586
|
+
], TournamentTeam);
|
|
1587
|
+
|
|
1588
|
+
var TeamUserRole;
|
|
1589
|
+
(function (TeamUserRole) {
|
|
1590
|
+
TeamUserRole[TeamUserRole["member"] = 1] = "member";
|
|
1591
|
+
TeamUserRole[TeamUserRole["moderator"] = 2] = "moderator";
|
|
1592
|
+
TeamUserRole[TeamUserRole["admin"] = 3] = "admin";
|
|
1593
|
+
})(TeamUserRole || (TeamUserRole = {}));
|
|
1594
|
+
let TeamUser = class TeamUser extends BaseModel {
|
|
1595
|
+
static toFront(data) { }
|
|
1596
|
+
static toBack(teamPlayer) { }
|
|
1597
|
+
};
|
|
1598
|
+
__decorate([
|
|
1599
|
+
ToFrontHook
|
|
1600
|
+
], TeamUser, "toFront", null);
|
|
1601
|
+
__decorate([
|
|
1602
|
+
ToBackHook
|
|
1603
|
+
], TeamUser, "toBack", null);
|
|
1604
|
+
TeamUser = __decorate([
|
|
1605
|
+
ModelInstance({
|
|
1606
|
+
mappingFields: {
|
|
1607
|
+
id: 'id',
|
|
1608
|
+
team_id: 'teamId',
|
|
1609
|
+
user: 'user',
|
|
1610
|
+
role: 'role',
|
|
1611
|
+
number: 'number',
|
|
1612
|
+
team: 'team',
|
|
1613
|
+
},
|
|
1614
|
+
relation: {
|
|
1615
|
+
user: User,
|
|
1616
|
+
team: Team,
|
|
1617
|
+
role: enumField(TeamUserRole)
|
|
1618
|
+
}
|
|
1619
|
+
})
|
|
1620
|
+
], TeamUser);
|
|
1621
|
+
|
|
1622
|
+
let TournamentDisqualification = class TournamentDisqualification extends BaseModel {
|
|
1623
|
+
static toFront(data) { }
|
|
1624
|
+
static toBack(data) { }
|
|
1625
|
+
};
|
|
1626
|
+
__decorate([
|
|
1627
|
+
ToFrontHook
|
|
1628
|
+
], TournamentDisqualification, "toFront", null);
|
|
1629
|
+
__decorate([
|
|
1630
|
+
ToBackHook
|
|
1631
|
+
], TournamentDisqualification, "toBack", null);
|
|
1632
|
+
TournamentDisqualification = __decorate([
|
|
1633
|
+
ModelInstance({
|
|
1634
|
+
mappingFields: {
|
|
1635
|
+
id: 'id',
|
|
1636
|
+
tournament_team_user_id: 'tournamentTeamUserId',
|
|
1637
|
+
date_from: 'dateFrom',
|
|
1638
|
+
date_to: 'dateTo',
|
|
1639
|
+
matches_count: 'matchesCount',
|
|
1640
|
+
},
|
|
1641
|
+
relation: {
|
|
1642
|
+
dateFrom: DateField,
|
|
1643
|
+
dateTo: DateField,
|
|
1644
|
+
}
|
|
1645
|
+
})
|
|
1646
|
+
], TournamentDisqualification);
|
|
1647
|
+
|
|
1648
|
+
let TournamentTeamUser = class TournamentTeamUser extends BaseModel {
|
|
1649
|
+
get fullName() {
|
|
1650
|
+
return [this.lastName, this.firstName, this.middleName].filter(s => s).join(' ');
|
|
1651
|
+
}
|
|
1652
|
+
get shortName() {
|
|
1653
|
+
return [this.lastName, this.firstName].filter(s => s).join(' ');
|
|
1654
|
+
}
|
|
1655
|
+
get initials() {
|
|
1656
|
+
return [this.lastName, this.firstName].filter(s => s).map(s => s.substr(0, 1)).join('');
|
|
1657
|
+
}
|
|
1658
|
+
static toFront(data) { }
|
|
1659
|
+
static toBack(data) { }
|
|
1660
|
+
};
|
|
1661
|
+
__decorate([
|
|
1662
|
+
ToFrontHook
|
|
1663
|
+
], TournamentTeamUser, "toFront", null);
|
|
1664
|
+
__decorate([
|
|
1665
|
+
ToBackHook
|
|
1666
|
+
], TournamentTeamUser, "toBack", null);
|
|
1667
|
+
TournamentTeamUser = __decorate([
|
|
1668
|
+
ModelInstance({
|
|
1669
|
+
mappingFields: {
|
|
1670
|
+
id: 'id',
|
|
1671
|
+
tournament_team: 'tournamentTeam',
|
|
1672
|
+
team_user: 'teamUser',
|
|
1673
|
+
disqualified: 'disqualified',
|
|
1674
|
+
first_name: 'firstName',
|
|
1675
|
+
last_name: 'lastName',
|
|
1676
|
+
middle_name: 'middleName',
|
|
1677
|
+
photo: 'photo',
|
|
1678
|
+
disqualification: 'disqualification',
|
|
1679
|
+
has_changes: 'hasChanges',
|
|
1680
|
+
rating: 'rating'
|
|
1681
|
+
},
|
|
1682
|
+
relation: {
|
|
1683
|
+
tournamentTeam: TournamentTeam,
|
|
1684
|
+
teamUser: TeamUser,
|
|
1685
|
+
photo: File,
|
|
1686
|
+
disqualification: TournamentDisqualification,
|
|
1687
|
+
}
|
|
1688
|
+
})
|
|
1689
|
+
], TournamentTeamUser);
|
|
1690
|
+
|
|
1718
1691
|
class BaseStatistic {
|
|
1719
1692
|
}
|
|
1720
1693
|
|
|
@@ -1955,19 +1928,68 @@ BasketballGameLog = __decorate([
|
|
|
1955
1928
|
})
|
|
1956
1929
|
], BasketballGameLog);
|
|
1957
1930
|
|
|
1958
|
-
let
|
|
1931
|
+
let GameUser = class GameUser extends BaseModel {
|
|
1932
|
+
static toFront(data) { }
|
|
1933
|
+
static toBack(data) { }
|
|
1934
|
+
};
|
|
1935
|
+
__decorate([
|
|
1936
|
+
ToFrontHook
|
|
1937
|
+
], GameUser, "toFront", null);
|
|
1938
|
+
__decorate([
|
|
1939
|
+
ToBackHook
|
|
1940
|
+
], GameUser, "toBack", null);
|
|
1941
|
+
GameUser = __decorate([
|
|
1942
|
+
ModelInstance({
|
|
1943
|
+
mappingFields: {
|
|
1944
|
+
id: 'id',
|
|
1945
|
+
game_id: 'gameId',
|
|
1946
|
+
team_user: 'teamUser',
|
|
1947
|
+
tournament_team_user: 'tournamentTeamUser',
|
|
1948
|
+
is_mvp: 'isMvp',
|
|
1949
|
+
updated_at: 'updatedAt'
|
|
1950
|
+
},
|
|
1951
|
+
relation: {
|
|
1952
|
+
teamUser: TeamUser,
|
|
1953
|
+
tournamentTeamUser: TournamentTeamUser,
|
|
1954
|
+
updatedAt: DateTimeField,
|
|
1955
|
+
}
|
|
1956
|
+
})
|
|
1957
|
+
], GameUser);
|
|
1958
|
+
|
|
1959
|
+
let GameBaseApi = class GameBaseApi {
|
|
1959
1960
|
constructor(httpClient, configService) {
|
|
1960
1961
|
this.httpClient = httpClient;
|
|
1961
1962
|
this.configService = configService;
|
|
1962
1963
|
}
|
|
1963
|
-
|
|
1964
|
+
getUsers(gameId) {
|
|
1964
1965
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1965
|
-
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/
|
|
1966
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/users/`).pipe(map(result => GameUser.toFront(result))).toPromise();
|
|
1966
1967
|
});
|
|
1967
1968
|
}
|
|
1968
|
-
|
|
1969
|
+
getMvp(gameId) {
|
|
1969
1970
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1970
|
-
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/
|
|
1971
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/mvp/`).pipe(map(result => GameUser.toFront(result))).toPromise();
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
};
|
|
1975
|
+
GameBaseApi.ctorParameters = () => [
|
|
1976
|
+
{ type: HttpClient },
|
|
1977
|
+
{ type: ConfigService }
|
|
1978
|
+
];
|
|
1979
|
+
GameBaseApi.ɵprov = ɵɵdefineInjectable({ factory: function GameBaseApi_Factory() { return new GameBaseApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: GameBaseApi, providedIn: "root" });
|
|
1980
|
+
GameBaseApi = __decorate([
|
|
1981
|
+
Injectable({ providedIn: 'root' })
|
|
1982
|
+
], GameBaseApi);
|
|
1983
|
+
|
|
1984
|
+
let BasketballGameApi = class BasketballGameApi extends GameBaseApi {
|
|
1985
|
+
constructor(httpClient, configService) {
|
|
1986
|
+
super(httpClient, configService);
|
|
1987
|
+
this.httpClient = httpClient;
|
|
1988
|
+
this.configService = configService;
|
|
1989
|
+
}
|
|
1990
|
+
getById(gameId) {
|
|
1991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1992
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_basketball_game/${gameId}/`).pipe(map(result => Game.toFront(result))).toPromise();
|
|
1971
1993
|
});
|
|
1972
1994
|
}
|
|
1973
1995
|
getTeamStatistic(gameId) {
|
|
@@ -2432,8 +2454,9 @@ HockeyGameTeamStatistic = __decorate([
|
|
|
2432
2454
|
})
|
|
2433
2455
|
], HockeyGameTeamStatistic);
|
|
2434
2456
|
|
|
2435
|
-
let HockeyGameApi = class HockeyGameApi {
|
|
2457
|
+
let HockeyGameApi = class HockeyGameApi extends GameBaseApi {
|
|
2436
2458
|
constructor(httpClient, configService) {
|
|
2459
|
+
super(httpClient, configService);
|
|
2437
2460
|
this.httpClient = httpClient;
|
|
2438
2461
|
this.configService = configService;
|
|
2439
2462
|
}
|
|
@@ -2442,11 +2465,6 @@ let HockeyGameApi = class HockeyGameApi {
|
|
|
2442
2465
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_hockey_game/${gameId}/`).pipe(map(result => Game.toFront(result))).toPromise();
|
|
2443
2466
|
});
|
|
2444
2467
|
}
|
|
2445
|
-
getUsers(gameId) {
|
|
2446
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2447
|
-
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/users/`).pipe(map(result => GameUser.toFront(result))).toPromise();
|
|
2448
|
-
});
|
|
2449
|
-
}
|
|
2450
2468
|
getTeamStatistic(gameId) {
|
|
2451
2469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2452
2470
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_hockey_game/${gameId}/team_statistic/`).pipe(map(result => HockeyGameTeamStatistic.toFront(result))).toPromise();
|
|
@@ -2811,8 +2829,9 @@ FootballGameTeamStatistic = __decorate([
|
|
|
2811
2829
|
})
|
|
2812
2830
|
], FootballGameTeamStatistic);
|
|
2813
2831
|
|
|
2814
|
-
let FootballGameApi = class FootballGameApi {
|
|
2832
|
+
let FootballGameApi = class FootballGameApi extends GameBaseApi {
|
|
2815
2833
|
constructor(httpClient, configService) {
|
|
2834
|
+
super(httpClient, configService);
|
|
2816
2835
|
this.httpClient = httpClient;
|
|
2817
2836
|
this.configService = configService;
|
|
2818
2837
|
}
|
|
@@ -2821,11 +2840,6 @@ let FootballGameApi = class FootballGameApi {
|
|
|
2821
2840
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_football_game/${gameId}/`).pipe(map(result => Game.toFront(result))).toPromise();
|
|
2822
2841
|
});
|
|
2823
2842
|
}
|
|
2824
|
-
getUsers(gameId) {
|
|
2825
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2826
|
-
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/users/`).pipe(map(result => GameUser.toFront(result))).toPromise();
|
|
2827
|
-
});
|
|
2828
|
-
}
|
|
2829
2843
|
getTeamStatistic(gameId) {
|
|
2830
2844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2831
2845
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_football_game/${gameId}/team_statistic/`).pipe(map(result => FootballGameTeamStatistic.toFront(result))).toPromise();
|
|
@@ -5806,8 +5820,9 @@ VolleyballGameLog = __decorate([
|
|
|
5806
5820
|
})
|
|
5807
5821
|
], VolleyballGameLog);
|
|
5808
5822
|
|
|
5809
|
-
let VolleyballGameApi = class VolleyballGameApi {
|
|
5823
|
+
let VolleyballGameApi = class VolleyballGameApi extends GameBaseApi {
|
|
5810
5824
|
constructor(httpClient, configService) {
|
|
5825
|
+
super(httpClient, configService);
|
|
5811
5826
|
this.httpClient = httpClient;
|
|
5812
5827
|
this.configService = configService;
|
|
5813
5828
|
}
|
|
@@ -5816,11 +5831,6 @@ let VolleyballGameApi = class VolleyballGameApi {
|
|
|
5816
5831
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_volleyball_game/${gameId}/`).pipe(map(result => Game.toFront(result))).toPromise();
|
|
5817
5832
|
});
|
|
5818
5833
|
}
|
|
5819
|
-
getUsers(gameId) {
|
|
5820
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5821
|
-
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/users/`).pipe(map(result => GameUser.toFront(result))).toPromise();
|
|
5822
|
-
});
|
|
5823
|
-
}
|
|
5824
5834
|
getTeamStatistic(gameId) {
|
|
5825
5835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5826
5836
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_volleyball_game/${gameId}/team_statistic/`).pipe(map(result => VolleyballGameTeamStatistic.toFront(result))).toPromise();
|
|
@@ -6414,5 +6424,5 @@ HttpCookieInterceptor = __decorate([
|
|
|
6414
6424
|
* Generated bundle index. Do not edit.
|
|
6415
6425
|
*/
|
|
6416
6426
|
|
|
6417
|
-
export { BannerLocation, BaseModel, BaseService, BaseStatistic, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlaylist, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl, penaltyTypeField as ɵa };
|
|
6427
|
+
export { BannerLocation, BaseModel, BaseService, BaseStatistic, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlaylist, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl, penaltyTypeField as ɵa, GameBaseApi as ɵb };
|
|
6418
6428
|
//# sourceMappingURL=mtgame-core.js.map
|