@srating-io/types 1.1.2 → 1.1.4

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.
@@ -1,4 +1,15 @@
1
1
  import { Game, Odds, Team, Prediction } from '../general.ts';
2
+ export type GameWithOddsAndTeams = Game & {
3
+ odds: {
4
+ pre: null | Odds;
5
+ live: null | Odds;
6
+ };
7
+ teams: {
8
+ [team_id: string]: Team & {
9
+ conference_id?: string;
10
+ };
11
+ };
12
+ };
2
13
  export type getGamesArguments = {
3
14
  organization_id?: string;
4
15
  division_id?: string;
@@ -9,17 +20,7 @@ export type getGamesArguments = {
9
20
  game_id?: string;
10
21
  };
11
22
  export type getGamesResults = {
12
- [game_id: string]: Game & {
13
- odds: {
14
- pre: null | Odds;
15
- live: null | Odds;
16
- };
17
- teams: {
18
- [team_id: string]: Team & {
19
- conference_id?: string;
20
- };
21
- };
22
- };
23
+ [game_id: string]: GameWithOddsAndTeams;
23
24
  };
24
25
  export type getScoresArguments = {
25
26
  organization_id?: string;
@@ -1,4 +1,26 @@
1
1
  import { getGamesResults } from "./game.ts";
2
+ import { Team } from '../general.ts';
3
+ export type loadTeamArguments = {
4
+ organization_id: string;
5
+ division_id: string;
6
+ team_id: string;
7
+ season: number;
8
+ };
9
+ export type loadTeamResults = Team & {
10
+ conference_id?: string;
11
+ stats?: {
12
+ statistic_ranking_id: string;
13
+ rank: number;
14
+ elo_rank: number;
15
+ wins: number;
16
+ losses: number;
17
+ kenpom_rank?: number;
18
+ srs_rank?: number;
19
+ ap_rank?: number;
20
+ coaches_rank?: number;
21
+ net_rank?: number;
22
+ };
23
+ };
2
24
  export type getScheduleArguments = {
3
25
  organization_id: string;
4
26
  division_id: string;
package/dist/general.d.ts CHANGED
@@ -820,10 +820,10 @@ export type LeagueStatisticRankings = {
820
820
  [league_statistic_ranking_id: string]: LeagueStatisticRanking;
821
821
  };
822
822
  export interface LeaguePlayerStatisticRanking {
823
- league_player_statistic_id: string;
823
+ league_player_statistic_ranking_id: string;
824
824
  organization_id: string;
825
825
  division_id: string;
826
- sport_league_player_statistic_id: string;
826
+ sport_league_player_statistic_ranking_id: string;
827
827
  season: number;
828
828
  date_of_rank: string;
829
829
  updated_at: string;
@@ -832,5 +832,5 @@ export interface LeaguePlayerStatisticRanking {
832
832
  deleted: number;
833
833
  }
834
834
  export type LeaguePlayerStatisticRankings = {
835
- [league_player_statistic_id: string]: LeaguePlayerStatisticRanking;
835
+ [league_player_statistic_ranking_id: string]: LeaguePlayerStatisticRanking;
836
836
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@srating-io/types",
3
3
  "private": false,
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "description": "srating.io shared TypeScript types for GUI and API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",