@srating-io/types 1.1.0 → 1.1.2

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.
@@ -0,0 +1,47 @@
1
+ import { Game, Odds, Team, Prediction } from '../general.ts';
2
+ export type getGamesArguments = {
3
+ organization_id?: string;
4
+ division_id?: string;
5
+ start_date?: string;
6
+ season?: number;
7
+ home_team_id?: string;
8
+ away_team_id?: string;
9
+ game_id?: string;
10
+ };
11
+ 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
+ };
24
+ export type getScoresArguments = {
25
+ organization_id?: string;
26
+ division_id?: string;
27
+ start_date?: string;
28
+ season?: number;
29
+ home_team_id?: string;
30
+ away_team_id?: string;
31
+ game_id?: string;
32
+ };
33
+ export type getScoresResults = {
34
+ [game_id: string]: {
35
+ game_id: string;
36
+ away_score: number | null;
37
+ home_score: number | null;
38
+ clock: string;
39
+ current_period: string;
40
+ status: string;
41
+ prediction?: Prediction;
42
+ odds: {
43
+ pre: null | Odds;
44
+ live: null | Odds;
45
+ };
46
+ };
47
+ };
@@ -0,0 +1,8 @@
1
+ import { getGamesResults } from "./game.ts";
2
+ export type getScheduleArguments = {
3
+ organization_id: string;
4
+ division_id: string;
5
+ team_id: string;
6
+ season: number;
7
+ };
8
+ export type getScheduleResults = getGamesResults;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * as Game from './api/game.ts';
2
+ export * as Team from './api/team.ts';
1
3
  export * as Basketball from './basketball.ts';
2
4
  export * as Football from './football.ts';
3
5
  export * as General from './general.ts';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@srating-io/types",
3
3
  "private": false,
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
5
5
  "description": "srating.io shared TypeScript types for GUI and API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",