@mtgame/core 0.2.59 → 0.2.60

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.
@@ -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
  }
@@ -8287,6 +8287,13 @@
8287
8287
  });
8288
8288
  });
8289
8289
  };
8290
+ LeagueApi.prototype.getLeaguePlayerFields = function (leagueId) {
8291
+ return __awaiter(this, void 0, void 0, function () {
8292
+ return __generator(this, function (_a) {
8293
+ 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()];
8294
+ });
8295
+ });
8296
+ };
8290
8297
  return LeagueApi;
8291
8298
  }());
8292
8299
  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" });