@mtgame/core 0.1.62 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/league-news-api.d.ts +1 -1
- package/bundles/mtgame-core.umd.js +15 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/league-news-api.js +6 -3
- package/esm2015/models/organization.js +12 -2
- package/esm2015/models/tournament.js +2 -1
- package/fesm2015/mtgame-core.js +17 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/organization.d.ts +8 -0
- package/models/tournament.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/league-news-api.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class LeagueNewsApi {
|
|
|
6
6
|
private httpClient;
|
|
7
7
|
private configService;
|
|
8
8
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
9
|
-
getLeagueNewsList(leagueId: number, page: number, size: number, type?: LeagueNewsType): Promise<PaginatedResponse<LeagueNews[]>>;
|
|
9
|
+
getLeagueNewsList(leagueId: number, page: number, size: number, type?: LeagueNewsType, seasonId?: number): Promise<PaginatedResponse<LeagueNews[]>>;
|
|
10
10
|
getMainLeagueNews(leagueId: number): Promise<LeagueNews>;
|
|
11
11
|
getMainLeagueNewsList(leagueId: number): Promise<LeagueNews[]>;
|
|
12
12
|
getNewsById(newsId: number): Promise<LeagueNews>;
|
|
@@ -1315,6 +1315,11 @@
|
|
|
1315
1315
|
})
|
|
1316
1316
|
], exports.Team);
|
|
1317
1317
|
|
|
1318
|
+
exports.OrganizationStatuses = void 0;
|
|
1319
|
+
(function (OrganizationStatuses) {
|
|
1320
|
+
OrganizationStatuses[OrganizationStatuses["open"] = 1] = "open";
|
|
1321
|
+
OrganizationStatuses[OrganizationStatuses["blocked"] = 2] = "blocked";
|
|
1322
|
+
})(exports.OrganizationStatuses || (exports.OrganizationStatuses = {}));
|
|
1318
1323
|
exports.Organization = /** @class */ (function (_super) {
|
|
1319
1324
|
__extends(Organization, _super);
|
|
1320
1325
|
function Organization() {
|
|
@@ -1336,9 +1341,14 @@
|
|
|
1336
1341
|
id: 'id',
|
|
1337
1342
|
owner_id: 'ownerId',
|
|
1338
1343
|
owner: 'owner',
|
|
1344
|
+
status: 'status',
|
|
1345
|
+
name: 'name',
|
|
1346
|
+
phone: 'phone',
|
|
1347
|
+
email: 'email',
|
|
1339
1348
|
},
|
|
1340
1349
|
relation: {
|
|
1341
1350
|
owner: exports.User,
|
|
1351
|
+
status: enumField(exports.OrganizationStatuses)
|
|
1342
1352
|
}
|
|
1343
1353
|
})
|
|
1344
1354
|
], exports.Organization);
|
|
@@ -1679,6 +1689,7 @@
|
|
|
1679
1689
|
team_third: 'teamThird',
|
|
1680
1690
|
season: 'season',
|
|
1681
1691
|
season_id: 'seasonId',
|
|
1692
|
+
game_price: 'gamePrice',
|
|
1682
1693
|
},
|
|
1683
1694
|
relation: {
|
|
1684
1695
|
logo: exports.File,
|
|
@@ -6428,7 +6439,7 @@
|
|
|
6428
6439
|
this.httpClient = httpClient;
|
|
6429
6440
|
this.configService = configService;
|
|
6430
6441
|
}
|
|
6431
|
-
LeagueNewsApi.prototype.getLeagueNewsList = function (leagueId, page, size, type) {
|
|
6442
|
+
LeagueNewsApi.prototype.getLeagueNewsList = function (leagueId, page, size, type, seasonId) {
|
|
6432
6443
|
if (type === void 0) { type = exports.LeagueNewsType.text; }
|
|
6433
6444
|
return __awaiter(this, void 0, void 0, function () {
|
|
6434
6445
|
var params;
|
|
@@ -6436,6 +6447,9 @@
|
|
|
6436
6447
|
params = new i1.HttpParams().set('page', page.toString())
|
|
6437
6448
|
.set('size', size.toString())
|
|
6438
6449
|
.set('type', exports.LeagueNewsType[type]);
|
|
6450
|
+
if (seasonId) {
|
|
6451
|
+
params = params.set('season_id', seasonId.toString());
|
|
6452
|
+
}
|
|
6439
6453
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/news/", { params: params, observe: 'response' })
|
|
6440
6454
|
.pipe(operators.map(function (response) { return ({
|
|
6441
6455
|
total: +response.headers.get('X-Page-Count'),
|