@mtgame/core 0.2.7 → 0.2.9
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/public-team-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +28 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/public-team-api.js +11 -1
- package/esm2015/models/hockey-game-statistic.js +10 -1
- package/esm2015/models/hockey-statistic.js +10 -1
- package/fesm2015/mtgame-core.js +26 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/hockey-game-statistic.d.ts +9 -0
- package/models/hockey-statistic.d.ts +9 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/public-team-api.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { ConfigService } from '../services/config.service';
|
|
3
3
|
import { Team } from '../models/team';
|
|
4
4
|
import { TournamentTeam } from '../models/tournament-team';
|
|
5
|
+
import { TeamUser } from '../models/team-user';
|
|
5
6
|
export declare class PublicTeamApi {
|
|
6
7
|
private httpClient;
|
|
7
8
|
private configService;
|
|
8
9
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
9
10
|
getById(teamId: number): Promise<Team>;
|
|
10
11
|
getTournamentTeams(teamId: number, leagueId: number): Promise<TournamentTeam[]>;
|
|
12
|
+
getUsers(teamId: number): Promise<TeamUser[]>;
|
|
11
13
|
}
|
|
@@ -4700,8 +4700,17 @@
|
|
|
4700
4700
|
game_time: 'gameTime',
|
|
4701
4701
|
plus_minus: 'plusMinus',
|
|
4702
4702
|
steals: 'steals',
|
|
4703
|
+
pp_steals: 'ppSteals',
|
|
4704
|
+
ev_steals: 'evSteals',
|
|
4705
|
+
sh_steals: 'shSteals',
|
|
4703
4706
|
losses: 'losses',
|
|
4707
|
+
pp_losses: 'ppLosses',
|
|
4708
|
+
ev_losses: 'evLosses',
|
|
4709
|
+
sh_losses: 'shLosses',
|
|
4704
4710
|
sharp_passes: 'sharpPasses',
|
|
4711
|
+
pp_sharp_passes: 'ppSharpPasses',
|
|
4712
|
+
ev_sharp_passes: 'evSharpPasses',
|
|
4713
|
+
sh_sharp_passes: 'shSharpPasses',
|
|
4705
4714
|
drawn_fouls: 'drawnFouls',
|
|
4706
4715
|
efficiency: 'efficiency',
|
|
4707
4716
|
},
|
|
@@ -4842,8 +4851,17 @@
|
|
|
4842
4851
|
game_time: 'gameTime',
|
|
4843
4852
|
plus_minus: 'plusMinus',
|
|
4844
4853
|
steals: 'steals',
|
|
4854
|
+
pp_steals: 'ppSteals',
|
|
4855
|
+
ev_steals: 'evSteals',
|
|
4856
|
+
sh_steals: 'shSteals',
|
|
4845
4857
|
losses: 'losses',
|
|
4858
|
+
pp_losses: 'ppLosses',
|
|
4859
|
+
ev_losses: 'evLosses',
|
|
4860
|
+
sh_losses: 'shLosses',
|
|
4846
4861
|
sharp_passes: 'sharpPasses',
|
|
4862
|
+
pp_sharp_passes: 'ppSharpPasses',
|
|
4863
|
+
ev_sharp_passes: 'evSharpPasses',
|
|
4864
|
+
sh_sharp_passes: 'shSharpPasses',
|
|
4847
4865
|
drawn_fouls: 'drawnFouls',
|
|
4848
4866
|
efficiency: 'efficiency',
|
|
4849
4867
|
newbie: 'newbie',
|
|
@@ -12649,6 +12667,16 @@
|
|
|
12649
12667
|
var params = new i1.HttpParams().set('league_id', leagueId.toString());
|
|
12650
12668
|
return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_team/" + teamId + "/tournament_teams/", { params: params }).pipe(operators.map(function (result) { return exports.TournamentTeam.toFront(result); })).toPromise();
|
|
12651
12669
|
};
|
|
12670
|
+
PublicTeamApi.prototype.getUsers = function (teamId) {
|
|
12671
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12672
|
+
return __generator(this, function (_a) {
|
|
12673
|
+
return [2 /*return*/, this.httpClient
|
|
12674
|
+
.get(this.configService.get('apiUrl') + "/api/v1/team/" + teamId + "/users/")
|
|
12675
|
+
.pipe(operators.map(function (data) { return exports.TeamUser.toFront(data); }))
|
|
12676
|
+
.toPromise()];
|
|
12677
|
+
});
|
|
12678
|
+
});
|
|
12679
|
+
};
|
|
12652
12680
|
return PublicTeamApi;
|
|
12653
12681
|
}());
|
|
12654
12682
|
PublicTeamApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PublicTeamApi_Factory() { return new PublicTeamApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: PublicTeamApi, providedIn: "root" });
|