@mtgame/core 0.2.59 → 0.2.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/league-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +15 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/league-api.js +7 -1
- package/esm2015/localization/team-user-role.js +5 -1
- package/esm2015/models/team-user.js +5 -1
- package/fesm2015/mtgame-core.js +13 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/team-user-role.d.ts +4 -0
- package/models/team-user.d.ts +5 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/league-api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { BannerLocation, LeagueBanner } from '../models/league-banner';
|
|
|
13
13
|
import { LeagueDocument } from '../models/league-document';
|
|
14
14
|
import { TeamsAndUsers } from '../models/teams-and-users';
|
|
15
15
|
import { SeasonTournament } from '../models/season-tournament';
|
|
16
|
+
import { LeaguePlayerField } from '../models/league-player-field';
|
|
16
17
|
export interface TournamentListFilters {
|
|
17
18
|
statuses: TournamentStatuses[];
|
|
18
19
|
}
|
|
@@ -34,4 +35,5 @@ export declare class LeagueApi {
|
|
|
34
35
|
getGraphicSettings(leagueId: number): Promise<any>;
|
|
35
36
|
getDocuments(leagueId: number): Promise<LeagueDocument[]>;
|
|
36
37
|
searchTeamsAndUsers(leagueId: number, query: string): Promise<TeamsAndUsers>;
|
|
38
|
+
getLeaguePlayerFields(leagueId: number): Promise<LeaguePlayerField[]>;
|
|
37
39
|
}
|
|
@@ -3227,6 +3227,10 @@
|
|
|
3227
3227
|
TeamUserRole[TeamUserRole["head_manager"] = 8] = "head_manager";
|
|
3228
3228
|
TeamUserRole[TeamUserRole["captain"] = 9] = "captain";
|
|
3229
3229
|
TeamUserRole[TeamUserRole["assistant"] = 10] = "assistant";
|
|
3230
|
+
TeamUserRole[TeamUserRole["president"] = 11] = "president";
|
|
3231
|
+
TeamUserRole[TeamUserRole["vice_president"] = 12] = "vice_president";
|
|
3232
|
+
TeamUserRole[TeamUserRole["press_attache"] = 13] = "press_attache";
|
|
3233
|
+
TeamUserRole[TeamUserRole["executive"] = 14] = "executive";
|
|
3230
3234
|
})(exports.TeamUserRole || (exports.TeamUserRole = {}));
|
|
3231
3235
|
exports.TeamUser = /** @class */ (function (_super) {
|
|
3232
3236
|
__extends(TeamUser, _super);
|
|
@@ -8287,6 +8291,13 @@
|
|
|
8287
8291
|
});
|
|
8288
8292
|
});
|
|
8289
8293
|
};
|
|
8294
|
+
LeagueApi.prototype.getLeaguePlayerFields = function (leagueId) {
|
|
8295
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8296
|
+
return __generator(this, function (_a) {
|
|
8297
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/player_fields/").pipe(operators.map(function (result) { return exports.LeaguePlayerField.toFront(result); })).toPromise()];
|
|
8298
|
+
});
|
|
8299
|
+
});
|
|
8300
|
+
};
|
|
8290
8301
|
return LeagueApi;
|
|
8291
8302
|
}());
|
|
8292
8303
|
LeagueApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LeagueApi_Factory() { return new LeagueApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: LeagueApi, providedIn: "root" });
|
|
@@ -13385,6 +13396,10 @@
|
|
|
13385
13396
|
_a$5[exports.TeamUserRole.head_manager] = 'Генеральный менеджер',
|
|
13386
13397
|
_a$5[exports.TeamUserRole.captain] = 'Капитан',
|
|
13387
13398
|
_a$5[exports.TeamUserRole.assistant] = 'Ассистент',
|
|
13399
|
+
_a$5[exports.TeamUserRole.president] = 'Президент',
|
|
13400
|
+
_a$5[exports.TeamUserRole.vice_president] = 'Вице-президент',
|
|
13401
|
+
_a$5[exports.TeamUserRole.press_attache] = 'Пресс-атташе',
|
|
13402
|
+
_a$5[exports.TeamUserRole.executive] = 'Администратор',
|
|
13388
13403
|
_a$5);
|
|
13389
13404
|
|
|
13390
13405
|
var _a$4, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|