@mtgame/core 0.2.58 → 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.
- package/api/league-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +9 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/league-api.js +7 -1
- package/esm2015/models/hockey-game-config.js +2 -1
- package/esm2015/models/tournament.js +2 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/hockey-game-config.d.ts +1 -0
- package/models/tournament.d.ts +1 -0
- 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
|
}
|
|
@@ -1723,6 +1723,7 @@
|
|
|
1723
1723
|
major_penalty_time: 'majorPenaltyTime',
|
|
1724
1724
|
misconduct_penalty_time: 'misconductPenaltyTime',
|
|
1725
1725
|
game_misconduct_penalty_time: 'gameMisconductPenaltyTime',
|
|
1726
|
+
match_penalty_time: 'matchPenaltyTime',
|
|
1726
1727
|
timer_type: 'timerType',
|
|
1727
1728
|
hide_on_league_main_page: 'hideOnLeagueMainPage',
|
|
1728
1729
|
},
|
|
@@ -2078,6 +2079,7 @@
|
|
|
2078
2079
|
major_penalty_time: 'majorPenaltyTime',
|
|
2079
2080
|
misconduct_penalty_time: 'misconductPenaltyTime',
|
|
2080
2081
|
game_misconduct_penalty_time: 'gameMisconductPenaltyTime',
|
|
2082
|
+
match_penalty_time: 'matchPenaltyTime',
|
|
2081
2083
|
},
|
|
2082
2084
|
relation: {
|
|
2083
2085
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -8285,6 +8287,13 @@
|
|
|
8285
8287
|
});
|
|
8286
8288
|
});
|
|
8287
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
|
+
};
|
|
8288
8297
|
return LeagueApi;
|
|
8289
8298
|
}());
|
|
8290
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" });
|