@srating-io/types 0.0.2 → 0.0.3
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/dist/basketball.d.ts +2 -10
- package/dist/football.d.ts +2 -10
- package/dist/general.d.ts +13 -0
- package/package.json +6 -2
package/dist/basketball.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { CoachStatisticRanking, Player, PlayerTeamSeason } from './general.ts';
|
|
2
|
-
export interface Boxscore {
|
|
3
|
-
boxscore_id: string;
|
|
4
|
-
organization_id: string;
|
|
5
|
-
division_id: string;
|
|
6
|
-
game_id: string;
|
|
7
|
-
team_id: string;
|
|
8
|
-
sport_boxscore_id: string;
|
|
9
|
-
season: number;
|
|
1
|
+
import { CoachStatisticRanking, Player, PlayerTeamSeason, Boxscore as BaseBoxscore } from './general.ts';
|
|
2
|
+
export interface Boxscore extends BaseBoxscore {
|
|
10
3
|
minutes_played: number;
|
|
11
4
|
field_goal: number;
|
|
12
5
|
field_goal_attempts: number;
|
|
@@ -29,7 +22,6 @@ export interface Boxscore {
|
|
|
29
22
|
turnovers: number;
|
|
30
23
|
fouls: number;
|
|
31
24
|
points: number;
|
|
32
|
-
final: number;
|
|
33
25
|
}
|
|
34
26
|
export type Boxscores = {
|
|
35
27
|
[boxscore_id: string]: Boxscore;
|
package/dist/football.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { CoachStatisticRanking, Player, PlayerTeamSeason } from './general.ts';
|
|
2
|
-
export interface Boxscore {
|
|
3
|
-
boxscore_id: string;
|
|
4
|
-
organization_id: string;
|
|
5
|
-
division_id: string;
|
|
6
|
-
game_id: string;
|
|
7
|
-
team_id: string;
|
|
8
|
-
sport_boxscore_id: string;
|
|
9
|
-
season: number;
|
|
1
|
+
import { CoachStatisticRanking, Player, PlayerTeamSeason, Boxscore as BaseBoxscore } from './general.ts';
|
|
2
|
+
export interface Boxscore extends BaseBoxscore {
|
|
10
3
|
minutes_played: number;
|
|
11
4
|
points: number;
|
|
12
5
|
successful_pass_plays: number;
|
|
@@ -75,7 +68,6 @@ export interface Boxscore {
|
|
|
75
68
|
quarterback_hurries: number;
|
|
76
69
|
fumbles: number;
|
|
77
70
|
fumbles_lost: number;
|
|
78
|
-
final: number;
|
|
79
71
|
}
|
|
80
72
|
export type Boxscores = {
|
|
81
73
|
[boxscore_id: string]: Boxscore;
|
package/dist/general.d.ts
CHANGED
|
@@ -675,3 +675,16 @@ export interface BracketTeam {
|
|
|
675
675
|
export type BracketTeams = {
|
|
676
676
|
[bracket_team_id: string]: BracketTeam;
|
|
677
677
|
};
|
|
678
|
+
export interface Boxscore {
|
|
679
|
+
boxscore_id: string;
|
|
680
|
+
organization_id: string;
|
|
681
|
+
division_id: string;
|
|
682
|
+
game_id: string;
|
|
683
|
+
team_id: string;
|
|
684
|
+
sport_boxscore_id: string;
|
|
685
|
+
season: number;
|
|
686
|
+
final: number;
|
|
687
|
+
}
|
|
688
|
+
export type Boxscores = {
|
|
689
|
+
[boxscore_id: string]: Boxscore;
|
|
690
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srating-io/types",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"description": "srating.io shared TypeScript types for GUI and API",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "",
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf dist",
|
|
14
14
|
"prebuild": "node scripts/generate-exports.js",
|
|
15
|
-
"build": "npm run clean && tsc"
|
|
15
|
+
"build": "npm run clean && tsc",
|
|
16
|
+
"prepublishOnly": "npm run build"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
16
20
|
},
|
|
17
21
|
"devDependencies": {
|
|
18
22
|
"typescript": "^6.0.3"
|