@mtgame/core 0.0.2 → 0.0.4
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/feedback-api.d.ts +9 -0
- package/api/file-api.d.ts +13 -0
- package/api/league-news-api.d.ts +13 -0
- package/api/public-api.d.ts +6 -0
- package/api/team-api.d.ts +66 -0
- package/api/team-event-api.d.ts +16 -0
- package/api/user-api.d.ts +51 -0
- package/bundles/mtgame-core.umd.js +1790 -538
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +2 -2
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/feedback-api.js +32 -0
- package/esm2015/api/file-api.js +46 -0
- package/esm2015/api/league-news-api.js +59 -0
- package/esm2015/api/public-api.js +7 -1
- package/esm2015/api/team-api.js +394 -0
- package/esm2015/api/team-event-api.js +81 -0
- package/esm2015/api/user-api.js +284 -0
- package/esm2015/models/basketball-game-config.js +5 -4
- package/esm2015/models/feedback.js +32 -0
- package/esm2015/models/league-news.js +39 -0
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/team-access.js +45 -0
- package/esm2015/models/team-permission.js +38 -0
- package/esm2015/models/tournament-event.js +11 -4
- package/esm2015/models/tournament.js +2 -1
- package/esm2015/models/user-access.js +25 -0
- package/esm2015/models/user-permission.js +38 -0
- package/esm2015/services/centrifugo.service.js +1 -2
- package/esm5/api/feedback-api.js +35 -0
- package/esm5/api/file-api.js +64 -0
- package/esm5/api/league-news-api.js +68 -0
- package/esm5/api/public-api.js +7 -1
- package/esm5/api/team-api.js +486 -0
- package/esm5/api/team-event-api.js +96 -0
- package/esm5/api/user-api.js +350 -0
- package/esm5/models/basketball-game-config.js +5 -4
- package/esm5/models/feedback.js +35 -0
- package/esm5/models/league-news.js +44 -0
- package/esm5/models/public-api.js +7 -1
- package/esm5/models/team-access.js +50 -0
- package/esm5/models/team-permission.js +43 -0
- package/esm5/models/tournament-event.js +11 -4
- package/esm5/models/tournament.js +2 -1
- package/esm5/models/user-access.js +30 -0
- package/esm5/models/user-permission.js +43 -0
- package/esm5/services/centrifugo.service.js +1 -2
- package/fesm2015/mtgame-core.js +1200 -191
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +1780 -540
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/overtime-types.d.ts +2 -2
- package/models/basketball-game-config.d.ts +4 -3
- package/models/feedback.d.ts +9 -0
- package/models/league-news.d.ts +16 -0
- package/models/public-api.d.ts +6 -0
- package/models/team-access.d.ts +27 -0
- package/models/team-permission.d.ts +15 -0
- package/models/tournament-event.d.ts +5 -2
- package/models/tournament.d.ts +1 -0
- package/models/user-access.d.ts +10 -0
- package/models/user-permission.d.ts +16 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -662,6 +662,7 @@ TournamentSettings = __decorate([
|
|
|
662
662
|
recruitment_is_open: 'recruitmentIsOpen',
|
|
663
663
|
transfer_is_open: 'transferIsOpen',
|
|
664
664
|
basketball_statistic_type: 'basketballStatisticType',
|
|
665
|
+
shot_clock_enabled: 'shotClockEnabled',
|
|
665
666
|
},
|
|
666
667
|
relation: {
|
|
667
668
|
type: enumField(TournamentTypes),
|
|
@@ -754,9 +755,9 @@ Tournament = __decorate([
|
|
|
754
755
|
|
|
755
756
|
var OvertimeTypes;
|
|
756
757
|
(function (OvertimeTypes) {
|
|
757
|
-
OvertimeTypes[OvertimeTypes["to_score_total"] =
|
|
758
|
-
OvertimeTypes[OvertimeTypes["to_score_diff"] =
|
|
759
|
-
OvertimeTypes[OvertimeTypes["time"] =
|
|
758
|
+
OvertimeTypes[OvertimeTypes["to_score_total"] = 1] = "to_score_total";
|
|
759
|
+
OvertimeTypes[OvertimeTypes["to_score_diff"] = 2] = "to_score_diff";
|
|
760
|
+
OvertimeTypes[OvertimeTypes["time"] = 3] = "time";
|
|
760
761
|
})(OvertimeTypes || (OvertimeTypes = {}));
|
|
761
762
|
let BasketballGameConfig = class BasketballGameConfig extends BaseModel {
|
|
762
763
|
static toFront(data) { }
|
|
@@ -782,6 +783,7 @@ BasketballGameConfig = __decorate([
|
|
|
782
783
|
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
783
784
|
timeout_time: 'timeoutTime',
|
|
784
785
|
statistic_type: 'statisticType',
|
|
786
|
+
shot_clock_enabled: 'shotClockEnabled'
|
|
785
787
|
},
|
|
786
788
|
relation: {
|
|
787
789
|
overtimeType: enumField(OvertimeTypes),
|
|
@@ -1640,10 +1642,131 @@ BasketballGameApi = __decorate([
|
|
|
1640
1642
|
Injectable({ providedIn: 'root' })
|
|
1641
1643
|
], BasketballGameApi);
|
|
1642
1644
|
|
|
1645
|
+
let Feedback = class Feedback {
|
|
1646
|
+
static toFront(data) {
|
|
1647
|
+
return null;
|
|
1648
|
+
}
|
|
1649
|
+
static toBack(value) {
|
|
1650
|
+
return null;
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
__decorate([
|
|
1654
|
+
ToFrontHook
|
|
1655
|
+
], Feedback, "toFront", null);
|
|
1656
|
+
__decorate([
|
|
1657
|
+
ToBackHook
|
|
1658
|
+
], Feedback, "toBack", null);
|
|
1659
|
+
Feedback = __decorate([
|
|
1660
|
+
ModelInstance({
|
|
1661
|
+
mappingFields: {
|
|
1662
|
+
id: 'id',
|
|
1663
|
+
theme: 'theme',
|
|
1664
|
+
message: 'message',
|
|
1665
|
+
files: 'files',
|
|
1666
|
+
},
|
|
1667
|
+
relation: {
|
|
1668
|
+
files: File
|
|
1669
|
+
}
|
|
1670
|
+
})
|
|
1671
|
+
], Feedback);
|
|
1672
|
+
|
|
1673
|
+
let FeedbackApi = class FeedbackApi {
|
|
1674
|
+
constructor(httpClient, configService) {
|
|
1675
|
+
this.httpClient = httpClient;
|
|
1676
|
+
this.configService = configService;
|
|
1677
|
+
}
|
|
1678
|
+
sendFeedback(data) {
|
|
1679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1680
|
+
return this.httpClient.post(`${this.configService.get('apiUrl')}/api/v1/feedback/`, Feedback.toBack(data))
|
|
1681
|
+
.pipe(map(response => Feedback.toFront(response)))
|
|
1682
|
+
.toPromise();
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
};
|
|
1686
|
+
FeedbackApi.ctorParameters = () => [
|
|
1687
|
+
{ type: HttpClient },
|
|
1688
|
+
{ type: ConfigService }
|
|
1689
|
+
];
|
|
1690
|
+
FeedbackApi.ɵprov = ɵɵdefineInjectable({ factory: function FeedbackApi_Factory() { return new FeedbackApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: FeedbackApi, providedIn: "root" });
|
|
1691
|
+
FeedbackApi = __decorate([
|
|
1692
|
+
Injectable({ providedIn: 'root' })
|
|
1693
|
+
], FeedbackApi);
|
|
1694
|
+
|
|
1695
|
+
let FileApi = class FileApi {
|
|
1696
|
+
constructor(httpClient, configService) {
|
|
1697
|
+
this.httpClient = httpClient;
|
|
1698
|
+
this.configService = configService;
|
|
1699
|
+
}
|
|
1700
|
+
upload(fileData, filename) {
|
|
1701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1702
|
+
const formData = new FormData();
|
|
1703
|
+
formData.append('file', fileData, filename);
|
|
1704
|
+
return this.httpClient
|
|
1705
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/file/`, formData)
|
|
1706
|
+
.pipe(map(data => File.toFront(data)))
|
|
1707
|
+
.toPromise();
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
createZipArchive(files) {
|
|
1711
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1712
|
+
const formData = new FormData();
|
|
1713
|
+
for (const file of files) {
|
|
1714
|
+
formData.append('files', file.file, file.filename);
|
|
1715
|
+
}
|
|
1716
|
+
return this.httpClient
|
|
1717
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/file/zip_archive/`, formData, { responseType: 'blob' })
|
|
1718
|
+
.toPromise();
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
FileApi.ctorParameters = () => [
|
|
1723
|
+
{ type: HttpClient },
|
|
1724
|
+
{ type: ConfigService }
|
|
1725
|
+
];
|
|
1726
|
+
FileApi.ɵprov = ɵɵdefineInjectable({ factory: function FileApi_Factory() { return new FileApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: FileApi, providedIn: "root" });
|
|
1727
|
+
FileApi = __decorate([
|
|
1728
|
+
Injectable({ providedIn: 'root' })
|
|
1729
|
+
], FileApi);
|
|
1730
|
+
|
|
1731
|
+
let LeagueNews = class LeagueNews extends BaseModel {
|
|
1732
|
+
static toFront(data) {
|
|
1733
|
+
return undefined;
|
|
1734
|
+
}
|
|
1735
|
+
static toBack(data) { }
|
|
1736
|
+
};
|
|
1737
|
+
__decorate([
|
|
1738
|
+
ToFrontHook
|
|
1739
|
+
], LeagueNews, "toFront", null);
|
|
1740
|
+
__decorate([
|
|
1741
|
+
ToBackHook
|
|
1742
|
+
], LeagueNews, "toBack", null);
|
|
1743
|
+
LeagueNews = __decorate([
|
|
1744
|
+
ModelInstance({
|
|
1745
|
+
mappingFields: {
|
|
1746
|
+
id: 'id',
|
|
1747
|
+
title: 'title',
|
|
1748
|
+
datetime: 'datetime',
|
|
1749
|
+
preview_text: 'previewText',
|
|
1750
|
+
detail_text: 'detailText',
|
|
1751
|
+
picture: 'picture',
|
|
1752
|
+
cover: 'cover',
|
|
1753
|
+
is_main: 'isMain',
|
|
1754
|
+
tournaments: 'tournaments',
|
|
1755
|
+
},
|
|
1756
|
+
relation: {
|
|
1757
|
+
datetime: DateTimeField,
|
|
1758
|
+
picture: File,
|
|
1759
|
+
cover: File,
|
|
1760
|
+
tournaments: listField(Tournament)
|
|
1761
|
+
}
|
|
1762
|
+
})
|
|
1763
|
+
], LeagueNews);
|
|
1764
|
+
|
|
1643
1765
|
var TournamentEventTypes;
|
|
1644
1766
|
(function (TournamentEventTypes) {
|
|
1645
1767
|
TournamentEventTypes[TournamentEventTypes["game_closed"] = 1] = "game_closed";
|
|
1646
1768
|
TournamentEventTypes[TournamentEventTypes["media_added"] = 2] = "media_added";
|
|
1769
|
+
TournamentEventTypes[TournamentEventTypes["news"] = 3] = "news";
|
|
1647
1770
|
})(TournamentEventTypes || (TournamentEventTypes = {}));
|
|
1648
1771
|
let TournamentEvent = class TournamentEvent extends BaseModel {
|
|
1649
1772
|
static toFront(data) { }
|
|
@@ -1660,13 +1783,17 @@ TournamentEvent = __decorate([
|
|
|
1660
1783
|
mappingFields: {
|
|
1661
1784
|
id: 'id',
|
|
1662
1785
|
game: 'game',
|
|
1663
|
-
|
|
1786
|
+
news: 'news',
|
|
1787
|
+
league: 'league',
|
|
1788
|
+
tournaments: 'tournaments',
|
|
1664
1789
|
event: 'event',
|
|
1665
1790
|
datetime: 'datetime'
|
|
1666
1791
|
},
|
|
1667
1792
|
relation: {
|
|
1668
1793
|
game: Game,
|
|
1669
|
-
|
|
1794
|
+
news: LeagueNews,
|
|
1795
|
+
league: League,
|
|
1796
|
+
tournaments: listField(Tournament),
|
|
1670
1797
|
datetime: DateField,
|
|
1671
1798
|
event: enumField(TournamentEventTypes)
|
|
1672
1799
|
}
|
|
@@ -1721,6 +1848,55 @@ LeagueApi = __decorate([
|
|
|
1721
1848
|
Injectable({ providedIn: 'root' })
|
|
1722
1849
|
], LeagueApi);
|
|
1723
1850
|
|
|
1851
|
+
let LeagueNewsApi = class LeagueNewsApi {
|
|
1852
|
+
constructor(httpClient, configService) {
|
|
1853
|
+
this.httpClient = httpClient;
|
|
1854
|
+
this.configService = configService;
|
|
1855
|
+
}
|
|
1856
|
+
getLeagueNewsList(leagueId) {
|
|
1857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1858
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/news/`, { observe: 'response' })
|
|
1859
|
+
.pipe(map(response => ({
|
|
1860
|
+
total: +response.headers.get('X-Page-Count'),
|
|
1861
|
+
data: LeagueNews.toFront(response.body)
|
|
1862
|
+
})))
|
|
1863
|
+
.toPromise();
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
getMainLeagueNews(leagueId) {
|
|
1867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1868
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league/${leagueId}/news/?is_main=true`)
|
|
1869
|
+
.pipe(map(response => response && response.length > 0 ? LeagueNews.toFront(response[0]) : null))
|
|
1870
|
+
.toPromise();
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
getNewsById(newsId) {
|
|
1874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/league_news/${newsId}`)
|
|
1876
|
+
.pipe(map(response => LeagueNews.toFront(response)))
|
|
1877
|
+
.toPromise();
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
getTournamentNewsList(tournamentId) {
|
|
1881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1882
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament/${tournamentId}/news/`, { observe: 'response' })
|
|
1883
|
+
.pipe(map(response => ({
|
|
1884
|
+
total: +response.headers.get('X-Page-Count'),
|
|
1885
|
+
data: LeagueNews.toFront(response.body)
|
|
1886
|
+
})))
|
|
1887
|
+
.toPromise();
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
};
|
|
1891
|
+
LeagueNewsApi.ctorParameters = () => [
|
|
1892
|
+
{ type: HttpClient },
|
|
1893
|
+
{ type: ConfigService }
|
|
1894
|
+
];
|
|
1895
|
+
LeagueNewsApi.ɵprov = ɵɵdefineInjectable({ factory: function LeagueNewsApi_Factory() { return new LeagueNewsApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: LeagueNewsApi, providedIn: "root" });
|
|
1896
|
+
LeagueNewsApi = __decorate([
|
|
1897
|
+
Injectable({ providedIn: 'root' })
|
|
1898
|
+
], LeagueNewsApi);
|
|
1899
|
+
|
|
1724
1900
|
let MediaApi = class MediaApi {
|
|
1725
1901
|
constructor(httpClient, configService) {
|
|
1726
1902
|
this.httpClient = httpClient;
|
|
@@ -2425,259 +2601,797 @@ ReferenceApi = __decorate([
|
|
|
2425
2601
|
Injectable({ providedIn: 'root' })
|
|
2426
2602
|
], ReferenceApi);
|
|
2427
2603
|
|
|
2428
|
-
let
|
|
2604
|
+
let TeamInviteExternal = class TeamInviteExternal extends BaseModel {
|
|
2429
2605
|
static toFront(data) { }
|
|
2430
2606
|
static toBack(data) { }
|
|
2431
2607
|
};
|
|
2432
2608
|
__decorate([
|
|
2433
2609
|
ToFrontHook
|
|
2434
|
-
],
|
|
2610
|
+
], TeamInviteExternal, "toFront", null);
|
|
2435
2611
|
__decorate([
|
|
2436
2612
|
ToBackHook
|
|
2437
|
-
],
|
|
2438
|
-
|
|
2613
|
+
], TeamInviteExternal, "toBack", null);
|
|
2614
|
+
TeamInviteExternal = __decorate([
|
|
2439
2615
|
ModelInstance({
|
|
2440
2616
|
mappingFields: {
|
|
2441
2617
|
id: 'id',
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
created_at: 'createdAt',
|
|
2618
|
+
team_id: 'teamId',
|
|
2619
|
+
email: 'email',
|
|
2620
|
+
first_name: 'firstName',
|
|
2621
|
+
last_name: 'lastName',
|
|
2447
2622
|
},
|
|
2448
|
-
relation: {
|
|
2449
|
-
picture: File,
|
|
2450
|
-
author: User,
|
|
2451
|
-
createdAt: DateTimeField,
|
|
2452
|
-
}
|
|
2453
2623
|
})
|
|
2454
|
-
],
|
|
2624
|
+
], TeamInviteExternal);
|
|
2455
2625
|
|
|
2456
|
-
let
|
|
2626
|
+
let VolleyballStatistic = class VolleyballStatistic extends BaseModel {
|
|
2457
2627
|
static toFront(data) { }
|
|
2458
2628
|
static toBack(data) { }
|
|
2459
2629
|
};
|
|
2460
2630
|
__decorate([
|
|
2461
2631
|
ToFrontHook
|
|
2462
|
-
],
|
|
2632
|
+
], VolleyballStatistic, "toFront", null);
|
|
2463
2633
|
__decorate([
|
|
2464
2634
|
ToBackHook
|
|
2465
|
-
],
|
|
2466
|
-
|
|
2635
|
+
], VolleyballStatistic, "toBack", null);
|
|
2636
|
+
VolleyballStatistic = __decorate([
|
|
2467
2637
|
ModelInstance({
|
|
2468
2638
|
mappingFields: {
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2639
|
+
team: 'team',
|
|
2640
|
+
team_user: 'teamUser',
|
|
2641
|
+
tournament_team_user: 'tournamentTeamUser',
|
|
2642
|
+
tournament_team: 'tournamentTeam',
|
|
2643
|
+
user: 'user',
|
|
2644
|
+
month: 'month',
|
|
2645
|
+
win_lose: 'winLose',
|
|
2646
|
+
games_count: 'gamesCount',
|
|
2647
|
+
won_games_count: 'wonGamesCount',
|
|
2648
|
+
serve_hits: 'serveHits',
|
|
2649
|
+
serve_faults: 'serveFaults',
|
|
2650
|
+
serve_aces: 'serveAces',
|
|
2651
|
+
serve_percent: 'servePercent',
|
|
2652
|
+
ace_percent: 'acePercent',
|
|
2653
|
+
stuff_blocks: 'stuffBlocks',
|
|
2654
|
+
block_faults: 'blockFaults',
|
|
2655
|
+
block_rebounds: 'blockRebounds',
|
|
2656
|
+
block_percent: 'blockPercent',
|
|
2657
|
+
attack_spikes: 'attackSpikes',
|
|
2658
|
+
attack_faults: 'attackFaults',
|
|
2659
|
+
attack_shots: 'attackShots',
|
|
2660
|
+
attack_percent: 'attackPercent',
|
|
2661
|
+
receives: 'receives',
|
|
2662
|
+
receive_faults: 'receiveFaults',
|
|
2663
|
+
excellent_receives: 'excellentReceives',
|
|
2664
|
+
receive_percent: 'receivePercent',
|
|
2665
|
+
serve_receives: 'serveReceives',
|
|
2666
|
+
serve_receive_faults: 'serveReceiveFaults',
|
|
2667
|
+
excellent_serve_receives: 'excellentServeReceives',
|
|
2668
|
+
serve_receive_percent: 'serveReceivePercent',
|
|
2669
|
+
points: 'points',
|
|
2670
|
+
faults: 'faults',
|
|
2671
|
+
newbie: 'newbie',
|
|
2672
|
+
},
|
|
2673
|
+
relation: {
|
|
2674
|
+
team: Team,
|
|
2675
|
+
teamUser: TeamUser,
|
|
2676
|
+
tournamentTeamUser: TournamentTeamUser,
|
|
2677
|
+
tournamentTeam: TournamentTeam,
|
|
2678
|
+
user: User,
|
|
2679
|
+
month: DateField,
|
|
2472
2680
|
}
|
|
2473
2681
|
})
|
|
2474
|
-
],
|
|
2475
|
-
|
|
2682
|
+
], VolleyballStatistic);
|
|
2683
|
+
|
|
2684
|
+
var TeamPermissionTypes;
|
|
2685
|
+
(function (TeamPermissionTypes) {
|
|
2686
|
+
TeamPermissionTypes[TeamPermissionTypes["for_all"] = 1] = "for_all";
|
|
2687
|
+
TeamPermissionTypes[TeamPermissionTypes["for_users"] = 2] = "for_users";
|
|
2688
|
+
TeamPermissionTypes[TeamPermissionTypes["for_team"] = 3] = "for_team";
|
|
2689
|
+
})(TeamPermissionTypes || (TeamPermissionTypes = {}));
|
|
2690
|
+
let TeamPermission = class TeamPermission extends BaseModel {
|
|
2476
2691
|
static toFront(data) { }
|
|
2477
2692
|
static toBack(data) { }
|
|
2478
2693
|
};
|
|
2479
2694
|
__decorate([
|
|
2480
2695
|
ToFrontHook
|
|
2481
|
-
],
|
|
2696
|
+
], TeamPermission, "toFront", null);
|
|
2482
2697
|
__decorate([
|
|
2483
2698
|
ToBackHook
|
|
2484
|
-
],
|
|
2485
|
-
|
|
2699
|
+
], TeamPermission, "toBack", null);
|
|
2700
|
+
TeamPermission = __decorate([
|
|
2486
2701
|
ModelInstance({
|
|
2487
2702
|
mappingFields: {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
tournament_stage_id: 'tournamentStageId',
|
|
2703
|
+
players: 'players',
|
|
2704
|
+
games: 'games',
|
|
2705
|
+
statistic: 'statistic',
|
|
2706
|
+
polls: 'polls',
|
|
2707
|
+
events: 'events'
|
|
2494
2708
|
},
|
|
2495
2709
|
relation: {
|
|
2496
|
-
|
|
2710
|
+
players: enumField(TeamPermissionTypes),
|
|
2711
|
+
games: enumField(TeamPermissionTypes),
|
|
2712
|
+
statistic: enumField(TeamPermissionTypes),
|
|
2713
|
+
polls: enumField(TeamPermissionTypes),
|
|
2714
|
+
events: enumField(TeamPermissionTypes)
|
|
2497
2715
|
}
|
|
2498
2716
|
})
|
|
2499
|
-
],
|
|
2717
|
+
], TeamPermission);
|
|
2500
2718
|
|
|
2501
|
-
|
|
2502
|
-
(function (TournamentStageStatuses) {
|
|
2503
|
-
TournamentStageStatuses[TournamentStageStatuses["open"] = 0] = "open";
|
|
2504
|
-
TournamentStageStatuses[TournamentStageStatuses["in_progress"] = 1] = "in_progress";
|
|
2505
|
-
TournamentStageStatuses[TournamentStageStatuses["closed"] = 2] = "closed";
|
|
2506
|
-
})(TournamentStageStatuses || (TournamentStageStatuses = {}));
|
|
2507
|
-
let TournamentStage = class TournamentStage extends BaseModel {
|
|
2719
|
+
let TeamAccess = class TeamAccess extends BaseModel {
|
|
2508
2720
|
static toFront(data) { }
|
|
2509
2721
|
static toBack(data) { }
|
|
2510
2722
|
};
|
|
2511
2723
|
__decorate([
|
|
2512
2724
|
ToFrontHook
|
|
2513
|
-
],
|
|
2725
|
+
], TeamAccess, "toFront", null);
|
|
2514
2726
|
__decorate([
|
|
2515
2727
|
ToBackHook
|
|
2516
|
-
],
|
|
2517
|
-
|
|
2728
|
+
], TeamAccess, "toBack", null);
|
|
2729
|
+
TeamAccess = __decorate([
|
|
2518
2730
|
ModelInstance({
|
|
2519
2731
|
mappingFields: {
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2732
|
+
can_edit: 'canEdit',
|
|
2733
|
+
can_view_users: 'canViewUsers',
|
|
2734
|
+
can_manage_permission: 'canManagePermission',
|
|
2735
|
+
can_change_owner: 'canChangeOwner',
|
|
2736
|
+
can_delete: 'canDelete',
|
|
2737
|
+
can_manage_invites: 'canManageInvites',
|
|
2738
|
+
can_view_invites: 'canViewInvites',
|
|
2739
|
+
can_manage_polls: 'canManagePolls',
|
|
2740
|
+
can_view_polls: 'canViewPolls',
|
|
2741
|
+
can_answer_poll: 'canAnswerPoll',
|
|
2742
|
+
can_manage_games: 'canManageGames',
|
|
2743
|
+
can_view_games: 'canViewGames',
|
|
2744
|
+
can_view_statistic: 'canViewStatistic',
|
|
2745
|
+
can_promote_users: 'canPromoteUsers',
|
|
2746
|
+
can_edit_users: 'canEditUsers',
|
|
2747
|
+
can_delete_users: 'canDeleteUsers',
|
|
2748
|
+
can_view_events: 'canViewEvents',
|
|
2749
|
+
can_manage_events: 'canManageEvents',
|
|
2750
|
+
can_view_tournaments: 'canViewTournaments',
|
|
2751
|
+
can_manage_tournaments: 'canManageTournaments',
|
|
2752
|
+
role: 'role'
|
|
2525
2753
|
},
|
|
2526
2754
|
relation: {
|
|
2527
|
-
|
|
2528
|
-
status: enumField(TournamentStageStatuses)
|
|
2755
|
+
role: enumField(TeamUserRole)
|
|
2529
2756
|
}
|
|
2530
2757
|
})
|
|
2531
|
-
],
|
|
2758
|
+
], TeamAccess);
|
|
2532
2759
|
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2760
|
+
let TeamApi = class TeamApi {
|
|
2761
|
+
constructor(httpClient, configService) {
|
|
2762
|
+
this.httpClient = httpClient;
|
|
2763
|
+
this.configService = configService;
|
|
2536
2764
|
}
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2765
|
+
search(query, sportId) {
|
|
2766
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2767
|
+
let params = (new HttpParams()).set('search', query);
|
|
2768
|
+
if (sportId) {
|
|
2769
|
+
params = params.set('sport', sportId.toString());
|
|
2770
|
+
}
|
|
2771
|
+
return this.httpClient
|
|
2772
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/`, { params })
|
|
2773
|
+
.pipe(map(data => Team.toFront(data)))
|
|
2774
|
+
.toPromise();
|
|
2775
|
+
});
|
|
2544
2776
|
}
|
|
2545
|
-
|
|
2546
|
-
|
|
2777
|
+
create(team) {
|
|
2778
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2779
|
+
return this.httpClient
|
|
2780
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/`, Team.toBack(team))
|
|
2781
|
+
.pipe(map(data => Team.toFront(data)))
|
|
2782
|
+
.toPromise();
|
|
2783
|
+
});
|
|
2547
2784
|
}
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2785
|
+
getById(teamId) {
|
|
2786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2787
|
+
return this.httpClient
|
|
2788
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/`)
|
|
2789
|
+
.pipe(map(data => Team.toFront(data)))
|
|
2790
|
+
.toPromise();
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
getTeamAccess(teamId) {
|
|
2794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2795
|
+
return this.httpClient
|
|
2796
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/access/`)
|
|
2797
|
+
.pipe(map(data => TeamAccess.toFront(data)))
|
|
2798
|
+
.toPromise();
|
|
2799
|
+
});
|
|
2800
|
+
}
|
|
2801
|
+
update(teamId, values) {
|
|
2802
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2803
|
+
return this.httpClient
|
|
2804
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/`, Team.toBack(values))
|
|
2805
|
+
.pipe(map(data => Team.toFront(data)))
|
|
2806
|
+
.toPromise();
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
2809
|
+
delete(team) {
|
|
2810
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2811
|
+
return this.httpClient
|
|
2812
|
+
.delete(`${this.configService.get('apiUrl')}/api/v1/team/${team.id}/`)
|
|
2813
|
+
.toPromise();
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
2816
|
+
getPermission(teamId) {
|
|
2817
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2818
|
+
return this.httpClient
|
|
2819
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/permission/`)
|
|
2820
|
+
.pipe(map(data => TeamPermission.toFront(data)))
|
|
2821
|
+
.toPromise();
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
updatePermission(teamId, permission) {
|
|
2825
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2826
|
+
return this.httpClient
|
|
2827
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/permission/`, TeamPermission.toBack(permission))
|
|
2828
|
+
.pipe(map(data => TeamPermission.toFront(data)))
|
|
2829
|
+
.toPromise();
|
|
2830
|
+
});
|
|
2831
|
+
}
|
|
2832
|
+
getUsers(teamId, tournamentId) {
|
|
2833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2834
|
+
let params = new HttpParams();
|
|
2835
|
+
if (tournamentId) {
|
|
2836
|
+
params = params.set('tournament_id', tournamentId.toString());
|
|
2837
|
+
}
|
|
2838
|
+
return this.httpClient
|
|
2839
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/users/`, { params })
|
|
2840
|
+
.pipe(map(data => TeamUser.toFront(data)))
|
|
2841
|
+
.toPromise();
|
|
2842
|
+
});
|
|
2843
|
+
}
|
|
2844
|
+
updateUserRole(teamId, teamUserId, role) {
|
|
2845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2846
|
+
return this.httpClient
|
|
2847
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/users/${teamUserId}/role/`, { role: TeamUserRole[role] })
|
|
2848
|
+
.pipe(map(data => TeamUser.toFront(data)))
|
|
2849
|
+
.toPromise();
|
|
2850
|
+
});
|
|
2851
|
+
}
|
|
2852
|
+
updateUserNumber(teamId, teamUserId, gameNumber) {
|
|
2853
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2854
|
+
return this.httpClient
|
|
2855
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/users/${teamUserId}/number/`, { number: gameNumber.toString() })
|
|
2856
|
+
.pipe(map(data => TeamUser.toFront(data)))
|
|
2857
|
+
.toPromise();
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
deleteUser(teamUser) {
|
|
2861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2862
|
+
return this.httpClient
|
|
2863
|
+
.delete(`${this.configService.get('apiUrl')}/api/v1/team/${teamUser.teamId}/users/${teamUser.id}/`)
|
|
2864
|
+
.toPromise();
|
|
2865
|
+
});
|
|
2866
|
+
}
|
|
2867
|
+
changeOwner(teamId, user) {
|
|
2868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2869
|
+
return this.httpClient
|
|
2870
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/owner/`, { id: user.id })
|
|
2871
|
+
.pipe(map(data => Team.toFront(data)))
|
|
2872
|
+
.toPromise();
|
|
2873
|
+
});
|
|
2874
|
+
}
|
|
2875
|
+
getInvites(teamId) {
|
|
2876
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2877
|
+
return this.httpClient
|
|
2878
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/invites/`)
|
|
2879
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
2880
|
+
.toPromise();
|
|
2881
|
+
});
|
|
2882
|
+
}
|
|
2883
|
+
sendInvite(teamId, user) {
|
|
2884
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2885
|
+
return this.httpClient
|
|
2886
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/invites/`, { user })
|
|
2887
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
2888
|
+
.toPromise();
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
acceptInvite(invite) {
|
|
2892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2893
|
+
return this.httpClient
|
|
2894
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team_invite/${invite.id}/accept/`, {})
|
|
2895
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
2896
|
+
.toPromise();
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
declineInvite(invite) {
|
|
2900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2901
|
+
return this.httpClient
|
|
2902
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team_invite/${invite.id}/decline/`, {})
|
|
2903
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
2904
|
+
.toPromise();
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
resendInvite(invite) {
|
|
2908
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2909
|
+
return this.httpClient
|
|
2910
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team_invite/${invite.id}/resend/`, {})
|
|
2911
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
2912
|
+
.toPromise();
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
getInvitesExternal(teamId) {
|
|
2916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2917
|
+
return this.httpClient
|
|
2918
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/invites_external/`)
|
|
2919
|
+
.pipe(map(data => TeamInviteExternal.toFront(data)))
|
|
2920
|
+
.toPromise();
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
sendInviteExternal(teamId, invite) {
|
|
2924
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2925
|
+
return this.httpClient
|
|
2926
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/invites_external/`, TeamInviteExternal.toBack(invite))
|
|
2927
|
+
.pipe(map(data => TeamInviteExternal.toFront(data)))
|
|
2928
|
+
.toPromise();
|
|
2929
|
+
});
|
|
2930
|
+
}
|
|
2931
|
+
deleteInviteExternal(invite) {
|
|
2932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2933
|
+
return this.httpClient
|
|
2934
|
+
.delete(`${this.configService.get('apiUrl')}/api/v1/invites_external/${invite.id}/`)
|
|
2935
|
+
.toPromise();
|
|
2936
|
+
});
|
|
2937
|
+
}
|
|
2938
|
+
resendInviteExternal(invite) {
|
|
2939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2940
|
+
return this.httpClient
|
|
2941
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/invites_external/${invite.id}/resend/`, {})
|
|
2942
|
+
.pipe(map(data => TeamInviteExternal.toFront(data)))
|
|
2943
|
+
.toPromise();
|
|
2944
|
+
});
|
|
2945
|
+
}
|
|
2946
|
+
getPolls(teamId, archive = false) {
|
|
2947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2948
|
+
return this.httpClient
|
|
2949
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/polls/${archive ? '?archive=1' : ''}`)
|
|
2950
|
+
.pipe(map(data => Poll.toFront(data)))
|
|
2951
|
+
.toPromise();
|
|
2952
|
+
});
|
|
2953
|
+
}
|
|
2954
|
+
createPoll(teamId, poll) {
|
|
2955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2956
|
+
return this.httpClient
|
|
2957
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/polls/`, Poll.toBack(poll))
|
|
2958
|
+
.pipe(map(data => Poll.toFront(data)))
|
|
2959
|
+
.toPromise();
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
getUsersStatistic(teamId) {
|
|
2963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2964
|
+
return this.httpClient
|
|
2965
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/statistics/`)
|
|
2966
|
+
.pipe(map(data => BasketballStatistic.toFront(data)))
|
|
2967
|
+
.toPromise();
|
|
2968
|
+
});
|
|
2969
|
+
}
|
|
2970
|
+
getVolleyballStatistic(teamId) {
|
|
2971
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2972
|
+
return this.httpClient
|
|
2973
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/volleyball_statistics/`)
|
|
2974
|
+
.pipe(map(data => VolleyballStatistic.toFront(data)))
|
|
2975
|
+
.toPromise();
|
|
2976
|
+
});
|
|
2977
|
+
}
|
|
2978
|
+
joinTeam(teamId) {
|
|
2979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2980
|
+
return this.httpClient
|
|
2981
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/join/`, {})
|
|
2982
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
2983
|
+
.toPromise();
|
|
2984
|
+
});
|
|
2985
|
+
}
|
|
2986
|
+
leaveTeam(teamId) {
|
|
2987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2988
|
+
return this.httpClient
|
|
2989
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/leave/`, {})
|
|
2990
|
+
.toPromise();
|
|
2991
|
+
});
|
|
2992
|
+
}
|
|
2993
|
+
getGames(teamId, archive = false) {
|
|
2994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2995
|
+
return this.httpClient
|
|
2996
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/games/${archive ? '?archive=1' : ''}`)
|
|
2997
|
+
.pipe(map(data => Game.toFront(data)))
|
|
2998
|
+
.toPromise();
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
createGame(teamId, game) {
|
|
3002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3003
|
+
return this.httpClient
|
|
3004
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/games/`, Game.toBack(game))
|
|
3005
|
+
.pipe(map(data => Game.toFront(data)))
|
|
3006
|
+
.toPromise();
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
getTeamEvents(teamId) {
|
|
3010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3011
|
+
return this.httpClient
|
|
3012
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/events/`)
|
|
3013
|
+
.pipe(map(data => TeamEvent.toFront(data)))
|
|
3014
|
+
.toPromise();
|
|
3015
|
+
});
|
|
3016
|
+
}
|
|
3017
|
+
createTeamEvent(teamId, teamEvent) {
|
|
3018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3019
|
+
return this.httpClient
|
|
3020
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/events/`, TeamEvent.toBack(teamEvent))
|
|
3021
|
+
.pipe(map(data => TeamEvent.toFront(data)))
|
|
3022
|
+
.toPromise();
|
|
3023
|
+
});
|
|
3024
|
+
}
|
|
3025
|
+
getTournaments(teamId) {
|
|
3026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3027
|
+
return this.httpClient
|
|
3028
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/tournaments/`)
|
|
3029
|
+
.pipe(map(data => Tournament.toFront(data)))
|
|
3030
|
+
.toPromise();
|
|
3031
|
+
});
|
|
3032
|
+
}
|
|
3033
|
+
getTournamentTeams(teamId) {
|
|
3034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3035
|
+
return this.httpClient
|
|
3036
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/tournament_teams/`)
|
|
3037
|
+
.pipe(map(data => TournamentTeam.toFront(data)))
|
|
3038
|
+
.toPromise();
|
|
3039
|
+
});
|
|
3040
|
+
}
|
|
3041
|
+
getTournamentInvites(teamId) {
|
|
3042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3043
|
+
return this.httpClient
|
|
3044
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/tournament_invites/`)
|
|
3045
|
+
.pipe(map(data => TournamentInvite.toFront(data)))
|
|
3046
|
+
.toPromise();
|
|
3047
|
+
});
|
|
3048
|
+
}
|
|
3049
|
+
getTournamentGames(teamId, tournamentId, page, size) {
|
|
3050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3051
|
+
let params = new HttpParams().set('page', page.toString());
|
|
3052
|
+
if (size) {
|
|
3053
|
+
params = params.set('size', size.toString());
|
|
3054
|
+
}
|
|
3055
|
+
return this.httpClient
|
|
3056
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/tournaments/${tournamentId}/games/`, { params, observe: 'response' })
|
|
3057
|
+
.pipe(map((response) => {
|
|
3058
|
+
return {
|
|
3059
|
+
total: +response.headers.get('X-Page-Count'),
|
|
3060
|
+
data: Game.toFront(response.body)
|
|
3061
|
+
};
|
|
3062
|
+
}))
|
|
3063
|
+
.toPromise();
|
|
3064
|
+
});
|
|
3065
|
+
}
|
|
3066
|
+
acceptTournamentInvite(inviteId) {
|
|
3067
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3068
|
+
return this.httpClient
|
|
3069
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/tournament_invite/${inviteId}/accept/`, {})
|
|
3070
|
+
.pipe(map(data => TournamentInvite.toFront(data)))
|
|
3071
|
+
.toPromise();
|
|
3072
|
+
});
|
|
3073
|
+
}
|
|
3074
|
+
declineTournamentInvite(inviteId) {
|
|
3075
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3076
|
+
return this.httpClient
|
|
3077
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/tournament_invite/${inviteId}/decline/`, {})
|
|
3078
|
+
.pipe(map(data => TournamentInvite.toFront(data)))
|
|
3079
|
+
.toPromise();
|
|
3080
|
+
});
|
|
3081
|
+
}
|
|
3082
|
+
registerLazyUser(teamId, userData) {
|
|
3083
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3084
|
+
return this.httpClient
|
|
3085
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team/${teamId}/lazy_user/`, { user: User.toBack(userData) })
|
|
3086
|
+
.pipe(map(data => TeamUser.toFront(data)))
|
|
3087
|
+
.toPromise();
|
|
3088
|
+
});
|
|
3089
|
+
}
|
|
3090
|
+
getLazyUser(teamUserId) {
|
|
3091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3092
|
+
return this.httpClient
|
|
3093
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/lazy_user/${teamUserId}/`)
|
|
3094
|
+
.pipe(map(data => TeamUser.toFront(data)))
|
|
3095
|
+
.toPromise();
|
|
3096
|
+
});
|
|
3097
|
+
}
|
|
3098
|
+
updateLazyUser(teamUserId, userData) {
|
|
3099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3100
|
+
return this.httpClient
|
|
3101
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/lazy_user/${teamUserId}/`, { user: User.toBack(userData) })
|
|
3102
|
+
.pipe(map(data => TeamUser.toFront(data)))
|
|
3103
|
+
.toPromise();
|
|
3104
|
+
});
|
|
3105
|
+
}
|
|
3106
|
+
deleteLazyUser(teamUserId) {
|
|
3107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3108
|
+
return this.httpClient
|
|
3109
|
+
.delete(`${this.configService.get('apiUrl')}/api/v1/lazy_user/${teamUserId}/`)
|
|
3110
|
+
.toPromise();
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
resendLazyUserEmail(teamUserId) {
|
|
3114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3115
|
+
return this.httpClient
|
|
3116
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/lazy_user/${teamUserId}/resend_email/`, {})
|
|
3117
|
+
.toPromise();
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3120
|
+
};
|
|
3121
|
+
TeamApi.ctorParameters = () => [
|
|
3122
|
+
{ type: HttpClient },
|
|
3123
|
+
{ type: ConfigService }
|
|
3124
|
+
];
|
|
3125
|
+
TeamApi.ɵprov = ɵɵdefineInjectable({ factory: function TeamApi_Factory() { return new TeamApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: TeamApi, providedIn: "root" });
|
|
3126
|
+
TeamApi = __decorate([
|
|
3127
|
+
Injectable({ providedIn: 'root' })
|
|
3128
|
+
], TeamApi);
|
|
3129
|
+
|
|
3130
|
+
let TeamEventApi = class TeamEventApi {
|
|
3131
|
+
constructor(httpClient, configService) {
|
|
3132
|
+
this.httpClient = httpClient;
|
|
3133
|
+
this.configService = configService;
|
|
3134
|
+
}
|
|
3135
|
+
getTeamEvent(teamEventId) {
|
|
3136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3137
|
+
return this.httpClient
|
|
3138
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team_event/${teamEventId}/`)
|
|
3139
|
+
.pipe(map(data => TeamEvent.toFront(data)))
|
|
3140
|
+
.toPromise();
|
|
3141
|
+
});
|
|
3142
|
+
}
|
|
3143
|
+
updateTeamEvent(teamEvent) {
|
|
3144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3145
|
+
return this.httpClient
|
|
3146
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/team_event/${teamEvent.id}/`, TeamEvent.toBack(teamEvent))
|
|
3147
|
+
.pipe(map(data => TeamEvent.toFront(data)))
|
|
3148
|
+
.toPromise();
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
deleteTeamEvent(teamEventId) {
|
|
3152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3153
|
+
return this.httpClient
|
|
3154
|
+
.delete(`${this.configService.get('apiUrl')}/api/v1/team_event/${teamEventId}/`)
|
|
3155
|
+
.toPromise();
|
|
3156
|
+
});
|
|
3157
|
+
}
|
|
3158
|
+
getTeamEventInvites(teamEventId) {
|
|
3159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3160
|
+
return this.httpClient
|
|
3161
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/team_event/${teamEventId}/invites/`)
|
|
3162
|
+
.pipe(map(data => TeamEventInvite.toFront(data)))
|
|
3163
|
+
.toPromise();
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3166
|
+
createTeamEventInvite(teamEventId, teamUserId) {
|
|
3167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3168
|
+
return this.httpClient
|
|
3169
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team_event/${teamEventId}/invites/`, { team_user_id: teamUserId })
|
|
3170
|
+
.pipe(map(data => TeamEventInvite.toFront(data)))
|
|
3171
|
+
.toPromise();
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
acceptTeamEventInvite(teamEventInvite) {
|
|
3175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3176
|
+
return this.httpClient
|
|
3177
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team_event_invite/${teamEventInvite.id}/accept/`, {})
|
|
3178
|
+
.pipe(map(data => TeamEventInvite.toFront(data)))
|
|
3179
|
+
.toPromise();
|
|
3180
|
+
});
|
|
3181
|
+
}
|
|
3182
|
+
declineTeamEventInvite(teamEventInvite) {
|
|
3183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3184
|
+
return this.httpClient
|
|
3185
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/team_event_invite/${teamEventInvite.id}/decline/`, {})
|
|
3186
|
+
.pipe(map(data => TeamEventInvite.toFront(data)))
|
|
3187
|
+
.toPromise();
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3190
|
+
};
|
|
3191
|
+
TeamEventApi.ctorParameters = () => [
|
|
3192
|
+
{ type: HttpClient },
|
|
3193
|
+
{ type: ConfigService }
|
|
3194
|
+
];
|
|
3195
|
+
TeamEventApi.ɵprov = ɵɵdefineInjectable({ factory: function TeamEventApi_Factory() { return new TeamEventApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: TeamEventApi, providedIn: "root" });
|
|
3196
|
+
TeamEventApi = __decorate([
|
|
3197
|
+
Injectable({ providedIn: 'root' })
|
|
3198
|
+
], TeamEventApi);
|
|
3199
|
+
|
|
3200
|
+
let TournamentNews = class TournamentNews extends BaseModel {
|
|
3201
|
+
static toFront(data) { }
|
|
3202
|
+
static toBack(data) { }
|
|
3203
|
+
};
|
|
3204
|
+
__decorate([
|
|
3205
|
+
ToFrontHook
|
|
3206
|
+
], TournamentNews, "toFront", null);
|
|
3207
|
+
__decorate([
|
|
2559
3208
|
ToBackHook
|
|
2560
|
-
],
|
|
2561
|
-
|
|
3209
|
+
], TournamentNews, "toBack", null);
|
|
3210
|
+
TournamentNews = __decorate([
|
|
2562
3211
|
ModelInstance({
|
|
2563
3212
|
mappingFields: {
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
3213
|
+
id: 'id',
|
|
3214
|
+
title: 'title',
|
|
3215
|
+
picture: 'picture',
|
|
3216
|
+
text: 'text',
|
|
3217
|
+
author: 'author',
|
|
3218
|
+
created_at: 'createdAt',
|
|
3219
|
+
},
|
|
3220
|
+
relation: {
|
|
3221
|
+
picture: File,
|
|
3222
|
+
author: User,
|
|
3223
|
+
createdAt: DateTimeField,
|
|
2568
3224
|
}
|
|
2569
3225
|
})
|
|
2570
|
-
],
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
super(...arguments);
|
|
2574
|
-
this.stages = [];
|
|
2575
|
-
}
|
|
3226
|
+
], TournamentNews);
|
|
3227
|
+
|
|
3228
|
+
let GameTimelineStageItem = class GameTimelineStageItem {
|
|
2576
3229
|
static toFront(data) { }
|
|
2577
3230
|
static toBack(data) { }
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
title = `1 / ${playoffStage}`;
|
|
2592
|
-
}
|
|
2593
|
-
return {
|
|
2594
|
-
value: stage,
|
|
2595
|
-
title
|
|
2596
|
-
};
|
|
2597
|
-
});
|
|
3231
|
+
};
|
|
3232
|
+
__decorate([
|
|
3233
|
+
ToFrontHook
|
|
3234
|
+
], GameTimelineStageItem, "toFront", null);
|
|
3235
|
+
__decorate([
|
|
3236
|
+
ToBackHook
|
|
3237
|
+
], GameTimelineStageItem, "toBack", null);
|
|
3238
|
+
GameTimelineStageItem = __decorate([
|
|
3239
|
+
ModelInstance({
|
|
3240
|
+
mappingFields: {
|
|
3241
|
+
stage_id: 'stageId',
|
|
3242
|
+
tours_count: 'toursCount',
|
|
3243
|
+
playoff_stages_count: 'playoffStagesCount',
|
|
2598
3244
|
}
|
|
2599
|
-
|
|
2600
|
-
|
|
3245
|
+
})
|
|
3246
|
+
], GameTimelineStageItem);
|
|
3247
|
+
let GameTimelineStages = class GameTimelineStages extends BaseModel {
|
|
3248
|
+
static toFront(data) { }
|
|
3249
|
+
static toBack(data) { }
|
|
2601
3250
|
};
|
|
2602
3251
|
__decorate([
|
|
2603
3252
|
ToFrontHook
|
|
2604
|
-
],
|
|
3253
|
+
], GameTimelineStages, "toFront", null);
|
|
2605
3254
|
__decorate([
|
|
2606
3255
|
ToBackHook
|
|
2607
|
-
],
|
|
2608
|
-
|
|
3256
|
+
], GameTimelineStages, "toBack", null);
|
|
3257
|
+
GameTimelineStages = __decorate([
|
|
3258
|
+
ModelInstance({
|
|
3259
|
+
mappingFields: {
|
|
3260
|
+
tours_count: 'toursCount',
|
|
3261
|
+
playoff_stages_count: 'playoffStagesCount',
|
|
3262
|
+
current_tour: 'currentTour',
|
|
3263
|
+
current_playoff_stage: 'currentPlayoffStage',
|
|
3264
|
+
stages: 'stages',
|
|
3265
|
+
tournament_stage_id: 'tournamentStageId',
|
|
3266
|
+
},
|
|
3267
|
+
relation: {
|
|
3268
|
+
stages: listField(GameTimelineStageItem)
|
|
3269
|
+
}
|
|
3270
|
+
})
|
|
3271
|
+
], GameTimelineStages);
|
|
3272
|
+
|
|
3273
|
+
var TournamentStageStatuses;
|
|
3274
|
+
(function (TournamentStageStatuses) {
|
|
3275
|
+
TournamentStageStatuses[TournamentStageStatuses["open"] = 0] = "open";
|
|
3276
|
+
TournamentStageStatuses[TournamentStageStatuses["in_progress"] = 1] = "in_progress";
|
|
3277
|
+
TournamentStageStatuses[TournamentStageStatuses["closed"] = 2] = "closed";
|
|
3278
|
+
})(TournamentStageStatuses || (TournamentStageStatuses = {}));
|
|
3279
|
+
let TournamentStage = class TournamentStage extends BaseModel {
|
|
3280
|
+
static toFront(data) { }
|
|
3281
|
+
static toBack(data) { }
|
|
3282
|
+
};
|
|
3283
|
+
__decorate([
|
|
3284
|
+
ToFrontHook
|
|
3285
|
+
], TournamentStage, "toFront", null);
|
|
3286
|
+
__decorate([
|
|
3287
|
+
ToBackHook
|
|
3288
|
+
], TournamentStage, "toBack", null);
|
|
3289
|
+
TournamentStage = __decorate([
|
|
2609
3290
|
ModelInstance({
|
|
2610
3291
|
mappingFields: {
|
|
2611
3292
|
id: 'id',
|
|
2612
3293
|
name: 'name',
|
|
2613
|
-
|
|
3294
|
+
date: 'date',
|
|
2614
3295
|
tournament_id: 'tournamentId',
|
|
2615
|
-
|
|
2616
|
-
is_official: 'isOfficial'
|
|
3296
|
+
status: 'status',
|
|
2617
3297
|
},
|
|
2618
3298
|
relation: {
|
|
2619
|
-
|
|
3299
|
+
date: DateField,
|
|
3300
|
+
status: enumField(TournamentStageStatuses)
|
|
2620
3301
|
}
|
|
2621
3302
|
})
|
|
2622
|
-
],
|
|
3303
|
+
], TournamentStage);
|
|
2623
3304
|
|
|
2624
|
-
|
|
3305
|
+
function generateArray(length) {
|
|
3306
|
+
if (length <= 0) {
|
|
3307
|
+
return [];
|
|
3308
|
+
}
|
|
3309
|
+
return Array.apply(null, Array(length)).map((_, i) => i + 1);
|
|
3310
|
+
}
|
|
3311
|
+
function getArrayChunks(array, length) {
|
|
3312
|
+
const chunks = [];
|
|
3313
|
+
const chunkLength = Math.ceil(array.length / length);
|
|
3314
|
+
if (chunkLength === 0) {
|
|
3315
|
+
return [array];
|
|
3316
|
+
}
|
|
3317
|
+
for (let i = 0; i < chunkLength; i++) {
|
|
3318
|
+
chunks.push(array.slice(i * length, (i + 1) * length));
|
|
3319
|
+
}
|
|
3320
|
+
return chunks;
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
let PlayoffSettings = class PlayoffSettings extends BaseModel {
|
|
2625
3324
|
static toFront(data) { }
|
|
2626
3325
|
static toBack(data) { }
|
|
2627
3326
|
};
|
|
2628
3327
|
__decorate([
|
|
2629
3328
|
ToFrontHook
|
|
2630
|
-
],
|
|
3329
|
+
], PlayoffSettings, "toFront", null);
|
|
2631
3330
|
__decorate([
|
|
2632
3331
|
ToBackHook
|
|
2633
|
-
],
|
|
2634
|
-
|
|
3332
|
+
], PlayoffSettings, "toBack", null);
|
|
3333
|
+
PlayoffSettings = __decorate([
|
|
2635
3334
|
ModelInstance({
|
|
2636
3335
|
mappingFields: {
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
3336
|
+
rounds: 'rounds',
|
|
3337
|
+
final_rounds: 'finalRounds',
|
|
3338
|
+
third_place_rounds: 'thirdPlaceRounds',
|
|
3339
|
+
teams_count: 'teamsCount'
|
|
3340
|
+
}
|
|
3341
|
+
})
|
|
3342
|
+
], PlayoffSettings);
|
|
3343
|
+
let Playoff = class Playoff extends BaseModel {
|
|
3344
|
+
constructor() {
|
|
3345
|
+
super(...arguments);
|
|
3346
|
+
this.stages = [];
|
|
3347
|
+
}
|
|
3348
|
+
static toFront(data) { }
|
|
3349
|
+
static toBack(data) { }
|
|
3350
|
+
get stagesCount() {
|
|
3351
|
+
return Math.log(this.settings.teamsCount) / Math.log(2);
|
|
3352
|
+
}
|
|
3353
|
+
getPlayoffStages() {
|
|
3354
|
+
if (this.stages.length === 0 && this.settings.teamsCount) {
|
|
3355
|
+
const stagesCount = Math.log(this.settings.teamsCount) / Math.log(2);
|
|
3356
|
+
this.stages = generateArray(stagesCount).map(stage => {
|
|
3357
|
+
const playoffStage = this.settings.teamsCount / Math.pow(2, stage);
|
|
3358
|
+
let title = '';
|
|
3359
|
+
if (playoffStage === 1) {
|
|
3360
|
+
title = 'Финал';
|
|
3361
|
+
}
|
|
3362
|
+
else {
|
|
3363
|
+
title = `1 / ${playoffStage}`;
|
|
3364
|
+
}
|
|
3365
|
+
return {
|
|
3366
|
+
value: stage,
|
|
3367
|
+
title
|
|
3368
|
+
};
|
|
3369
|
+
});
|
|
3370
|
+
}
|
|
3371
|
+
return this.stages;
|
|
3372
|
+
}
|
|
3373
|
+
};
|
|
3374
|
+
__decorate([
|
|
3375
|
+
ToFrontHook
|
|
3376
|
+
], Playoff, "toFront", null);
|
|
3377
|
+
__decorate([
|
|
3378
|
+
ToBackHook
|
|
3379
|
+
], Playoff, "toBack", null);
|
|
3380
|
+
Playoff = __decorate([
|
|
3381
|
+
ModelInstance({
|
|
3382
|
+
mappingFields: {
|
|
3383
|
+
id: 'id',
|
|
3384
|
+
name: 'name',
|
|
3385
|
+
settings: 'settings',
|
|
3386
|
+
tournament_id: 'tournamentId',
|
|
3387
|
+
tournament_stage_id: 'tournamentStageId',
|
|
3388
|
+
is_official: 'isOfficial'
|
|
2670
3389
|
},
|
|
2671
3390
|
relation: {
|
|
2672
|
-
|
|
2673
|
-
teamUser: TeamUser,
|
|
2674
|
-
tournamentTeamUser: TournamentTeamUser,
|
|
2675
|
-
tournamentTeam: TournamentTeam,
|
|
2676
|
-
user: User,
|
|
2677
|
-
month: DateField,
|
|
3391
|
+
settings: PlayoffSettings
|
|
2678
3392
|
}
|
|
2679
3393
|
})
|
|
2680
|
-
],
|
|
3394
|
+
], Playoff);
|
|
2681
3395
|
|
|
2682
3396
|
let TournamentStageTeam = class TournamentStageTeam extends BaseModel {
|
|
2683
3397
|
get gamesWonPercent() {
|
|
@@ -3016,6 +3730,324 @@ TournamentStageApi = __decorate([
|
|
|
3016
3730
|
Injectable({ providedIn: 'root' })
|
|
3017
3731
|
], TournamentStageApi);
|
|
3018
3732
|
|
|
3733
|
+
let UserAccess = class UserAccess extends BaseModel {
|
|
3734
|
+
static toFront(data) { }
|
|
3735
|
+
static toBack(data) { }
|
|
3736
|
+
};
|
|
3737
|
+
__decorate([
|
|
3738
|
+
ToFrontHook
|
|
3739
|
+
], UserAccess, "toFront", null);
|
|
3740
|
+
__decorate([
|
|
3741
|
+
ToBackHook
|
|
3742
|
+
], UserAccess, "toBack", null);
|
|
3743
|
+
UserAccess = __decorate([
|
|
3744
|
+
ModelInstance({
|
|
3745
|
+
mappingFields: {
|
|
3746
|
+
edit: 'edit',
|
|
3747
|
+
personal_data: 'personalData',
|
|
3748
|
+
teams: 'teams',
|
|
3749
|
+
statistic: 'statistic',
|
|
3750
|
+
games: 'games'
|
|
3751
|
+
}
|
|
3752
|
+
})
|
|
3753
|
+
], UserAccess);
|
|
3754
|
+
|
|
3755
|
+
var UserPermissionTypes;
|
|
3756
|
+
(function (UserPermissionTypes) {
|
|
3757
|
+
UserPermissionTypes[UserPermissionTypes["denied"] = 1] = "denied";
|
|
3758
|
+
UserPermissionTypes[UserPermissionTypes["for_all"] = 2] = "for_all";
|
|
3759
|
+
UserPermissionTypes[UserPermissionTypes["for_users"] = 3] = "for_users";
|
|
3760
|
+
UserPermissionTypes[UserPermissionTypes["for_team"] = 4] = "for_team";
|
|
3761
|
+
})(UserPermissionTypes || (UserPermissionTypes = {}));
|
|
3762
|
+
let UserPermission = class UserPermission extends BaseModel {
|
|
3763
|
+
static toFront(data) { }
|
|
3764
|
+
static toBack(data) { }
|
|
3765
|
+
};
|
|
3766
|
+
__decorate([
|
|
3767
|
+
ToFrontHook
|
|
3768
|
+
], UserPermission, "toFront", null);
|
|
3769
|
+
__decorate([
|
|
3770
|
+
ToBackHook
|
|
3771
|
+
], UserPermission, "toBack", null);
|
|
3772
|
+
UserPermission = __decorate([
|
|
3773
|
+
ModelInstance({
|
|
3774
|
+
mappingFields: {
|
|
3775
|
+
id: 'id',
|
|
3776
|
+
personal_data: 'personalData',
|
|
3777
|
+
games: 'games',
|
|
3778
|
+
teams: 'teams',
|
|
3779
|
+
statistic: 'statistic'
|
|
3780
|
+
},
|
|
3781
|
+
relation: {
|
|
3782
|
+
personalData: enumField(UserPermissionTypes),
|
|
3783
|
+
games: enumField(UserPermissionTypes),
|
|
3784
|
+
teams: enumField(UserPermissionTypes),
|
|
3785
|
+
statistic: enumField(UserPermissionTypes)
|
|
3786
|
+
}
|
|
3787
|
+
})
|
|
3788
|
+
], UserPermission);
|
|
3789
|
+
|
|
3790
|
+
let UserApi = class UserApi {
|
|
3791
|
+
constructor(httpClient, configService) {
|
|
3792
|
+
this.httpClient = httpClient;
|
|
3793
|
+
this.configService = configService;
|
|
3794
|
+
}
|
|
3795
|
+
getCurrentUser() {
|
|
3796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3797
|
+
return this.httpClient
|
|
3798
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/current/`)
|
|
3799
|
+
.pipe(map(data => User.toFront(data)))
|
|
3800
|
+
.toPromise();
|
|
3801
|
+
});
|
|
3802
|
+
}
|
|
3803
|
+
getUserById(userId) {
|
|
3804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3805
|
+
return this.httpClient
|
|
3806
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/`)
|
|
3807
|
+
.pipe(map(data => User.toFront(data)))
|
|
3808
|
+
.toPromise();
|
|
3809
|
+
});
|
|
3810
|
+
}
|
|
3811
|
+
getAccess(userId) {
|
|
3812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3813
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId || 'current'}/access/`)
|
|
3814
|
+
.pipe(map(data => UserAccess.toFront(data)))
|
|
3815
|
+
.toPromise();
|
|
3816
|
+
});
|
|
3817
|
+
}
|
|
3818
|
+
updateUser(userId, data) {
|
|
3819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3820
|
+
return this.httpClient
|
|
3821
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/`, User.toBack(data))
|
|
3822
|
+
.pipe(map(result => User.toFront(result)))
|
|
3823
|
+
.toPromise();
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
updateUserPhoto(file, filename) {
|
|
3827
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3828
|
+
const formData = new FormData();
|
|
3829
|
+
formData.append('file', file, filename);
|
|
3830
|
+
return this.httpClient
|
|
3831
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/current/photo/`, formData)
|
|
3832
|
+
.pipe(map(data => File.toFront(data)))
|
|
3833
|
+
.toPromise();
|
|
3834
|
+
});
|
|
3835
|
+
}
|
|
3836
|
+
changePassword(userId, oldPassword, password, passwordConfirm) {
|
|
3837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3838
|
+
const payload = {
|
|
3839
|
+
old_password: oldPassword,
|
|
3840
|
+
password,
|
|
3841
|
+
password_confirm: passwordConfirm
|
|
3842
|
+
};
|
|
3843
|
+
return this.httpClient
|
|
3844
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/change_password/`, payload)
|
|
3845
|
+
.toPromise();
|
|
3846
|
+
});
|
|
3847
|
+
}
|
|
3848
|
+
changeEmail(userId, email, password) {
|
|
3849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3850
|
+
const payload = { email, password };
|
|
3851
|
+
return this.httpClient
|
|
3852
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/change_email/`, payload)
|
|
3853
|
+
.toPromise();
|
|
3854
|
+
});
|
|
3855
|
+
}
|
|
3856
|
+
changeEmailConfirm(userId, email, password, token) {
|
|
3857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3858
|
+
const payload = { email, password, token };
|
|
3859
|
+
return this.httpClient
|
|
3860
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/change_email_confirm/`, payload)
|
|
3861
|
+
.toPromise();
|
|
3862
|
+
});
|
|
3863
|
+
}
|
|
3864
|
+
getUserProfile(userId) {
|
|
3865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3866
|
+
return this.httpClient
|
|
3867
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/profile/`)
|
|
3868
|
+
.pipe(map(data => UserProfile.toFront(data)))
|
|
3869
|
+
.toPromise();
|
|
3870
|
+
});
|
|
3871
|
+
}
|
|
3872
|
+
getBasketballProfile(userId) {
|
|
3873
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3874
|
+
return this.httpClient
|
|
3875
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/basketball_profile/`)
|
|
3876
|
+
.pipe(map(data => BasketballProfile.toFront(data)))
|
|
3877
|
+
.toPromise();
|
|
3878
|
+
});
|
|
3879
|
+
}
|
|
3880
|
+
getVolleyballProfile(userId) {
|
|
3881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3882
|
+
return this.httpClient
|
|
3883
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/volleyball_profile/`)
|
|
3884
|
+
.pipe(map(data => VolleyballProfile.toFront(data)))
|
|
3885
|
+
.toPromise();
|
|
3886
|
+
});
|
|
3887
|
+
}
|
|
3888
|
+
updateUserProfile(userProfile) {
|
|
3889
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3890
|
+
return this.httpClient
|
|
3891
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/user/${userProfile.userId}/profile/`, UserProfile.toBack(userProfile))
|
|
3892
|
+
.pipe(map(data => UserProfile.toFront(data)))
|
|
3893
|
+
.toPromise();
|
|
3894
|
+
});
|
|
3895
|
+
}
|
|
3896
|
+
updateUserBasketballProfile(basketballProfile) {
|
|
3897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3898
|
+
return this.httpClient
|
|
3899
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/user/${basketballProfile.userId}/basketball_profile/`, BasketballProfile.toBack(basketballProfile))
|
|
3900
|
+
.pipe(map(data => BasketballProfile.toFront(data)))
|
|
3901
|
+
.toPromise();
|
|
3902
|
+
});
|
|
3903
|
+
}
|
|
3904
|
+
updateUserVolleyballProfile(volleyballProfile) {
|
|
3905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3906
|
+
return this.httpClient
|
|
3907
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/user/${volleyballProfile.userId}/volleyball_profile/`, VolleyballProfile.toBack(volleyballProfile))
|
|
3908
|
+
.pipe(map(data => VolleyballProfile.toFront(data)))
|
|
3909
|
+
.toPromise();
|
|
3910
|
+
});
|
|
3911
|
+
}
|
|
3912
|
+
getUserPermissions(userId) {
|
|
3913
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3914
|
+
return this.httpClient
|
|
3915
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId || 'current'}/permission/`)
|
|
3916
|
+
.pipe(map(data => UserPermission.toFront(data)))
|
|
3917
|
+
.toPromise();
|
|
3918
|
+
});
|
|
3919
|
+
}
|
|
3920
|
+
updateUserPermission(data) {
|
|
3921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3922
|
+
return this.httpClient
|
|
3923
|
+
.patch(`${this.configService.get('apiUrl')}/api/v1/user/current/permission/`, UserPermission.toBack(data))
|
|
3924
|
+
.pipe(map(result => UserPermission.toFront(result)))
|
|
3925
|
+
.toPromise();
|
|
3926
|
+
});
|
|
3927
|
+
}
|
|
3928
|
+
getTeams(userId) {
|
|
3929
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3930
|
+
return this.httpClient
|
|
3931
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/teams/`)
|
|
3932
|
+
.pipe(map(data => Team.toFront(data)))
|
|
3933
|
+
.toPromise();
|
|
3934
|
+
});
|
|
3935
|
+
}
|
|
3936
|
+
getInvites() {
|
|
3937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3938
|
+
return this.httpClient
|
|
3939
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/current/invites/`)
|
|
3940
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
3941
|
+
.toPromise();
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3944
|
+
acceptInvite(inviteId) {
|
|
3945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3946
|
+
return this.httpClient
|
|
3947
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/current/invites/${inviteId}/accept/`, {})
|
|
3948
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
3949
|
+
.toPromise();
|
|
3950
|
+
});
|
|
3951
|
+
}
|
|
3952
|
+
declineInvite(inviteId) {
|
|
3953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3954
|
+
return this.httpClient
|
|
3955
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/current/invites/${inviteId}/decline/`, {})
|
|
3956
|
+
.pipe(map(data => TeamInvite.toFront(data)))
|
|
3957
|
+
.toPromise();
|
|
3958
|
+
});
|
|
3959
|
+
}
|
|
3960
|
+
getStatistics(userId) {
|
|
3961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3962
|
+
return this.httpClient
|
|
3963
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/statistics/`)
|
|
3964
|
+
.pipe(map(data => BasketballStatistic.toFront(data)))
|
|
3965
|
+
.toPromise();
|
|
3966
|
+
});
|
|
3967
|
+
}
|
|
3968
|
+
getStreetballStatistics(userId) {
|
|
3969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3970
|
+
return this.httpClient
|
|
3971
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/streetball_statistics/`)
|
|
3972
|
+
.pipe(map(data => BasketballStatistic.toFront(data)))
|
|
3973
|
+
.toPromise();
|
|
3974
|
+
});
|
|
3975
|
+
}
|
|
3976
|
+
getVolleyballStatistic(userId) {
|
|
3977
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3978
|
+
return this.httpClient
|
|
3979
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/volleyball_statistics/`)
|
|
3980
|
+
.pipe(map(data => VolleyballStatistic.toFront(data)))
|
|
3981
|
+
.toPromise();
|
|
3982
|
+
});
|
|
3983
|
+
}
|
|
3984
|
+
getGames(userId) {
|
|
3985
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3986
|
+
return this.httpClient
|
|
3987
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/${userId}/games/`)
|
|
3988
|
+
.pipe(map(data => Game.toFront(data)))
|
|
3989
|
+
.toPromise();
|
|
3990
|
+
});
|
|
3991
|
+
}
|
|
3992
|
+
getGameInvites() {
|
|
3993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3994
|
+
return this.httpClient
|
|
3995
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/current/game_invites/`)
|
|
3996
|
+
.pipe(map(data => GameInvite.toFront(data)))
|
|
3997
|
+
.toPromise();
|
|
3998
|
+
});
|
|
3999
|
+
}
|
|
4000
|
+
acceptGameInvite(inviteId) {
|
|
4001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4002
|
+
return this.httpClient
|
|
4003
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/current/game_invites/${inviteId}/accept/`, {})
|
|
4004
|
+
.pipe(map(data => GameInvite.toFront(data)))
|
|
4005
|
+
.toPromise();
|
|
4006
|
+
});
|
|
4007
|
+
}
|
|
4008
|
+
declineGameInvite(inviteId) {
|
|
4009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4010
|
+
return this.httpClient
|
|
4011
|
+
.post(`${this.configService.get('apiUrl')}/api/v1/user/current/game_invites/${inviteId}/decline/`, {})
|
|
4012
|
+
.pipe(map(data => GameInvite.toFront(data)))
|
|
4013
|
+
.toPromise();
|
|
4014
|
+
});
|
|
4015
|
+
}
|
|
4016
|
+
searchUsers(query) {
|
|
4017
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4018
|
+
const params = (new HttpParams()).set('search', query);
|
|
4019
|
+
return this.httpClient
|
|
4020
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/`, { params })
|
|
4021
|
+
.pipe(map(data => User.toFront(data)))
|
|
4022
|
+
.toPromise();
|
|
4023
|
+
});
|
|
4024
|
+
}
|
|
4025
|
+
setWizardShowed(wizard) {
|
|
4026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4027
|
+
return this.httpClient
|
|
4028
|
+
.put(`${this.configService.get('apiUrl')}/api/v1/user/current/wizards/`, { wizard })
|
|
4029
|
+
.pipe(map(data => User.toFront(data)))
|
|
4030
|
+
.toPromise();
|
|
4031
|
+
});
|
|
4032
|
+
}
|
|
4033
|
+
getTeamEvents(userId) {
|
|
4034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4035
|
+
return this.httpClient
|
|
4036
|
+
.get(`${this.configService.get('apiUrl')}/api/v1/user/current/team_events/`)
|
|
4037
|
+
.pipe(map(data => TeamEvent.toFront(data)))
|
|
4038
|
+
.toPromise();
|
|
4039
|
+
});
|
|
4040
|
+
}
|
|
4041
|
+
};
|
|
4042
|
+
UserApi.ctorParameters = () => [
|
|
4043
|
+
{ type: HttpClient },
|
|
4044
|
+
{ type: ConfigService }
|
|
4045
|
+
];
|
|
4046
|
+
UserApi.ɵprov = ɵɵdefineInjectable({ factory: function UserApi_Factory() { return new UserApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: UserApi, providedIn: "root" });
|
|
4047
|
+
UserApi = __decorate([
|
|
4048
|
+
Injectable({ providedIn: 'root' })
|
|
4049
|
+
], UserApi);
|
|
4050
|
+
|
|
3019
4051
|
let VolleyballGameTeamStatistic = class VolleyballGameTeamStatistic extends BaseModel {
|
|
3020
4052
|
static toFront(data) { }
|
|
3021
4053
|
static toBack(data) { }
|
|
@@ -3367,28 +4399,6 @@ const VolleyballGameLogTypeLocalization = {
|
|
|
3367
4399
|
[VolleyballGameLogType.timeout]: 'Таймаут',
|
|
3368
4400
|
};
|
|
3369
4401
|
|
|
3370
|
-
let TeamInviteExternal = class TeamInviteExternal extends BaseModel {
|
|
3371
|
-
static toFront(data) { }
|
|
3372
|
-
static toBack(data) { }
|
|
3373
|
-
};
|
|
3374
|
-
__decorate([
|
|
3375
|
-
ToFrontHook
|
|
3376
|
-
], TeamInviteExternal, "toFront", null);
|
|
3377
|
-
__decorate([
|
|
3378
|
-
ToBackHook
|
|
3379
|
-
], TeamInviteExternal, "toBack", null);
|
|
3380
|
-
TeamInviteExternal = __decorate([
|
|
3381
|
-
ModelInstance({
|
|
3382
|
-
mappingFields: {
|
|
3383
|
-
id: 'id',
|
|
3384
|
-
team_id: 'teamId',
|
|
3385
|
-
email: 'email',
|
|
3386
|
-
first_name: 'firstName',
|
|
3387
|
-
last_name: 'lastName',
|
|
3388
|
-
},
|
|
3389
|
-
})
|
|
3390
|
-
], TeamInviteExternal);
|
|
3391
|
-
|
|
3392
4402
|
let CentrifugoService = class CentrifugoService {
|
|
3393
4403
|
constructor(httpClient, configService) {
|
|
3394
4404
|
this.httpClient = httpClient;
|
|
@@ -3461,7 +4471,6 @@ let CentrifugoService = class CentrifugoService {
|
|
|
3461
4471
|
this.subscriptions = {};
|
|
3462
4472
|
}
|
|
3463
4473
|
initializeEngine(config) {
|
|
3464
|
-
console.log(config);
|
|
3465
4474
|
this.centrifuge = new Centrifuge(config);
|
|
3466
4475
|
}
|
|
3467
4476
|
addEngineSubscription(channel) {
|
|
@@ -3745,5 +4754,5 @@ HttpCookieInterceptor = __decorate([
|
|
|
3745
4754
|
* Generated bundle index. Do not edit.
|
|
3746
4755
|
*/
|
|
3747
4756
|
|
|
3748
|
-
export { BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, File, FileEngine, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamEvent, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserGender, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, 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 };
|
|
4757
|
+
export { BaseModel, BaseService, 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, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, 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, 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, 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 };
|
|
3749
4758
|
//# sourceMappingURL=mtgame-core.js.map
|