@scoreboardmax/api-types 1.0.42 → 1.0.44
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/index.cjs +4 -0
- package/dist/index.d.ts +93 -1
- package/dist/index.mjs +4 -0
- package/dist/internal.cjs +4 -0
- package/dist/internal.d.ts +93 -1
- package/dist/internal.mjs +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -55,6 +55,7 @@ var ApiResource;
|
|
|
55
55
|
ApiResource["AuthList"] = "authList";
|
|
56
56
|
ApiResource["Clock"] = "clock";
|
|
57
57
|
ApiResource["ClockList"] = "clockList";
|
|
58
|
+
ApiResource["Insight"] = "insight";
|
|
58
59
|
ApiResource["Player"] = "player";
|
|
59
60
|
ApiResource["PlayerList"] = "playerList";
|
|
60
61
|
ApiResource["Roster"] = "roster";
|
|
@@ -77,6 +78,8 @@ var ApiResource;
|
|
|
77
78
|
ApiResource["OverlayList"] = "overlayList";
|
|
78
79
|
ApiResource["Preset"] = "preset";
|
|
79
80
|
ApiResource["PresetList"] = "presetList";
|
|
81
|
+
ApiResource["Game"] = "game";
|
|
82
|
+
ApiResource["GameList"] = "gameList";
|
|
80
83
|
})(ApiResource || (exports.ApiResource = ApiResource = {}));
|
|
81
84
|
var AppType;
|
|
82
85
|
(function (AppType) {
|
|
@@ -199,6 +202,7 @@ var FileType;
|
|
|
199
202
|
FileType["AccountLogo"] = "accountLogo";
|
|
200
203
|
FileType["PlayerPhoto"] = "playerPhoto";
|
|
201
204
|
FileType["SponsorLogo"] = "sponsorLogo";
|
|
205
|
+
FileType["InsightLogo"] = "insightLogo";
|
|
202
206
|
FileType["Temporary"] = "temporary";
|
|
203
207
|
})(FileType || (exports.FileType = FileType = {}));
|
|
204
208
|
var FootballPeriod;
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare enum ApiResource {
|
|
|
32
32
|
AuthList = "authList",
|
|
33
33
|
Clock = "clock",
|
|
34
34
|
ClockList = "clockList",
|
|
35
|
+
Insight = "insight",
|
|
35
36
|
Player = "player",
|
|
36
37
|
PlayerList = "playerList",
|
|
37
38
|
Roster = "roster",
|
|
@@ -53,7 +54,9 @@ export declare enum ApiResource {
|
|
|
53
54
|
Overlay = "overlay",
|
|
54
55
|
OverlayList = "overlayList",
|
|
55
56
|
Preset = "preset",
|
|
56
|
-
PresetList = "presetList"
|
|
57
|
+
PresetList = "presetList",
|
|
58
|
+
Game = "game",
|
|
59
|
+
GameList = "gameList"
|
|
57
60
|
}
|
|
58
61
|
export declare enum AppType {
|
|
59
62
|
Template = "template"
|
|
@@ -162,6 +165,7 @@ export declare enum FileType {
|
|
|
162
165
|
AccountLogo = "accountLogo",
|
|
163
166
|
PlayerPhoto = "playerPhoto",
|
|
164
167
|
SponsorLogo = "sponsorLogo",
|
|
168
|
+
InsightLogo = "insightLogo",
|
|
165
169
|
Temporary = "temporary"
|
|
166
170
|
}
|
|
167
171
|
export declare enum FootballPeriod {
|
|
@@ -472,6 +476,41 @@ export interface BasketballDataResponse {
|
|
|
472
476
|
team2: BasketballScoreboardTeamResponse;
|
|
473
477
|
settings: BasketballSettingsResponse;
|
|
474
478
|
}
|
|
479
|
+
export interface BasketballInsightResponse {
|
|
480
|
+
team1: BasketballInsightTeamResponse;
|
|
481
|
+
team2: BasketballInsightTeamResponse;
|
|
482
|
+
timelinePoints: TimelinePointResponse[];
|
|
483
|
+
periodEndPoints: TimelinePointResponse[];
|
|
484
|
+
runs: BasketballRunSummaryResponse[];
|
|
485
|
+
periodLength: number;
|
|
486
|
+
overtimeLength: number;
|
|
487
|
+
gamePeriods: BasketballGamePeriods;
|
|
488
|
+
overtimeCount: number;
|
|
489
|
+
regulationLength: number;
|
|
490
|
+
gameLength: number;
|
|
491
|
+
leadChanges: number;
|
|
492
|
+
largestLeadPointTeam1: TimelinePointResponse | null;
|
|
493
|
+
largestLeadPointTeam2: TimelinePointResponse | null;
|
|
494
|
+
}
|
|
495
|
+
export interface BasketballInsightTeamResponse {
|
|
496
|
+
name: string;
|
|
497
|
+
abbreviation: string;
|
|
498
|
+
color: string;
|
|
499
|
+
logoUrl: string | null;
|
|
500
|
+
score: number;
|
|
501
|
+
}
|
|
502
|
+
export interface BasketballRunSummary {
|
|
503
|
+
team: "team1" | "team2";
|
|
504
|
+
points: number;
|
|
505
|
+
opponentPoints: number;
|
|
506
|
+
startSeq: number;
|
|
507
|
+
endSeq: number;
|
|
508
|
+
startLeader: "team1" | "team2" | null;
|
|
509
|
+
endLeader: "team1" | "team2" | null;
|
|
510
|
+
causedLeadChange: boolean;
|
|
511
|
+
}
|
|
512
|
+
export interface BasketballRunSummaryResponse extends BasketballRunSummary {
|
|
513
|
+
}
|
|
475
514
|
export interface BasketballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
476
515
|
score: number;
|
|
477
516
|
timeoutsLeft: number;
|
|
@@ -688,6 +727,44 @@ export interface FootballSettingsRequest extends FootballSettings {
|
|
|
688
727
|
}
|
|
689
728
|
export interface FootballSettingsResponse extends FootballSettings {
|
|
690
729
|
}
|
|
730
|
+
export interface GameListResponse {
|
|
731
|
+
url: string;
|
|
732
|
+
uri: string;
|
|
733
|
+
pageNext: string | null;
|
|
734
|
+
data: GameResponse[];
|
|
735
|
+
}
|
|
736
|
+
export interface GameRequest {
|
|
737
|
+
description: string;
|
|
738
|
+
}
|
|
739
|
+
export interface GameResponse {
|
|
740
|
+
object: string;
|
|
741
|
+
url: string;
|
|
742
|
+
uri: string;
|
|
743
|
+
scoreboardId: string;
|
|
744
|
+
gameId: string;
|
|
745
|
+
type: ScoreboardType;
|
|
746
|
+
startLogId: string;
|
|
747
|
+
endLogId?: string;
|
|
748
|
+
description: string;
|
|
749
|
+
dateGameStart: string;
|
|
750
|
+
dateGameEnd?: string;
|
|
751
|
+
dateCreated: string;
|
|
752
|
+
dateModified: string;
|
|
753
|
+
}
|
|
754
|
+
export interface InsightResponse {
|
|
755
|
+
object: string;
|
|
756
|
+
url: string;
|
|
757
|
+
uri: string;
|
|
758
|
+
accountId: string;
|
|
759
|
+
scoreboardId: string;
|
|
760
|
+
gameId: string;
|
|
761
|
+
scoreboardType: ScoreboardType;
|
|
762
|
+
dateCreated: string;
|
|
763
|
+
dateGameStart: string;
|
|
764
|
+
dateGameEnd?: string;
|
|
765
|
+
qualityScore: number;
|
|
766
|
+
data: BasketballInsightResponse;
|
|
767
|
+
}
|
|
691
768
|
export interface MagicLinkResponse {
|
|
692
769
|
object: string;
|
|
693
770
|
magicLinkId: string;
|
|
@@ -1143,6 +1220,21 @@ export interface TextInput extends BaseInput {
|
|
|
1143
1220
|
default: string;
|
|
1144
1221
|
maxLength?: number;
|
|
1145
1222
|
}
|
|
1223
|
+
export interface TimelinePoint {
|
|
1224
|
+
seq: number;
|
|
1225
|
+
period: string | null;
|
|
1226
|
+
overtimeNumber?: number;
|
|
1227
|
+
team1Score: number;
|
|
1228
|
+
team2Score: number;
|
|
1229
|
+
leader: "team1" | "team2" | null;
|
|
1230
|
+
leadAmount: number;
|
|
1231
|
+
periodSecondsRemaining?: number;
|
|
1232
|
+
gameSecond?: number;
|
|
1233
|
+
timeInferred?: boolean;
|
|
1234
|
+
clockJumpAfter?: boolean;
|
|
1235
|
+
}
|
|
1236
|
+
export interface TimelinePointResponse extends TimelinePoint {
|
|
1237
|
+
}
|
|
1146
1238
|
export interface UploadSessionRequest {
|
|
1147
1239
|
filename: string;
|
|
1148
1240
|
reference?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -46,6 +46,7 @@ export var ApiResource;
|
|
|
46
46
|
ApiResource["AuthList"] = "authList";
|
|
47
47
|
ApiResource["Clock"] = "clock";
|
|
48
48
|
ApiResource["ClockList"] = "clockList";
|
|
49
|
+
ApiResource["Insight"] = "insight";
|
|
49
50
|
ApiResource["Player"] = "player";
|
|
50
51
|
ApiResource["PlayerList"] = "playerList";
|
|
51
52
|
ApiResource["Roster"] = "roster";
|
|
@@ -68,6 +69,8 @@ export var ApiResource;
|
|
|
68
69
|
ApiResource["OverlayList"] = "overlayList";
|
|
69
70
|
ApiResource["Preset"] = "preset";
|
|
70
71
|
ApiResource["PresetList"] = "presetList";
|
|
72
|
+
ApiResource["Game"] = "game";
|
|
73
|
+
ApiResource["GameList"] = "gameList";
|
|
71
74
|
})(ApiResource || (ApiResource = {}));
|
|
72
75
|
export var AppType;
|
|
73
76
|
(function (AppType) {
|
|
@@ -190,6 +193,7 @@ export var FileType;
|
|
|
190
193
|
FileType["AccountLogo"] = "accountLogo";
|
|
191
194
|
FileType["PlayerPhoto"] = "playerPhoto";
|
|
192
195
|
FileType["SponsorLogo"] = "sponsorLogo";
|
|
196
|
+
FileType["InsightLogo"] = "insightLogo";
|
|
193
197
|
FileType["Temporary"] = "temporary";
|
|
194
198
|
})(FileType || (FileType = {}));
|
|
195
199
|
export var FootballPeriod;
|
package/dist/internal.cjs
CHANGED
|
@@ -74,6 +74,7 @@ var ApiResource;
|
|
|
74
74
|
ApiResource["AuthList"] = "authList";
|
|
75
75
|
ApiResource["Clock"] = "clock";
|
|
76
76
|
ApiResource["ClockList"] = "clockList";
|
|
77
|
+
ApiResource["Insight"] = "insight";
|
|
77
78
|
ApiResource["Player"] = "player";
|
|
78
79
|
ApiResource["PlayerList"] = "playerList";
|
|
79
80
|
ApiResource["Roster"] = "roster";
|
|
@@ -96,6 +97,8 @@ var ApiResource;
|
|
|
96
97
|
ApiResource["OverlayList"] = "overlayList";
|
|
97
98
|
ApiResource["Preset"] = "preset";
|
|
98
99
|
ApiResource["PresetList"] = "presetList";
|
|
100
|
+
ApiResource["Game"] = "game";
|
|
101
|
+
ApiResource["GameList"] = "gameList";
|
|
99
102
|
})(ApiResource || (exports.ApiResource = ApiResource = {}));
|
|
100
103
|
var AppType;
|
|
101
104
|
(function (AppType) {
|
|
@@ -218,6 +221,7 @@ var FileType;
|
|
|
218
221
|
FileType["AccountLogo"] = "accountLogo";
|
|
219
222
|
FileType["PlayerPhoto"] = "playerPhoto";
|
|
220
223
|
FileType["SponsorLogo"] = "sponsorLogo";
|
|
224
|
+
FileType["InsightLogo"] = "insightLogo";
|
|
221
225
|
FileType["Temporary"] = "temporary";
|
|
222
226
|
})(FileType || (exports.FileType = FileType = {}));
|
|
223
227
|
var FootballPeriod;
|
package/dist/internal.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export declare enum ApiResource {
|
|
|
39
39
|
AuthList = "authList",
|
|
40
40
|
Clock = "clock",
|
|
41
41
|
ClockList = "clockList",
|
|
42
|
+
Insight = "insight",
|
|
42
43
|
Player = "player",
|
|
43
44
|
PlayerList = "playerList",
|
|
44
45
|
Roster = "roster",
|
|
@@ -60,7 +61,9 @@ export declare enum ApiResource {
|
|
|
60
61
|
Overlay = "overlay",
|
|
61
62
|
OverlayList = "overlayList",
|
|
62
63
|
Preset = "preset",
|
|
63
|
-
PresetList = "presetList"
|
|
64
|
+
PresetList = "presetList",
|
|
65
|
+
Game = "game",
|
|
66
|
+
GameList = "gameList"
|
|
64
67
|
}
|
|
65
68
|
export declare enum AppType {
|
|
66
69
|
Template = "template"
|
|
@@ -169,6 +172,7 @@ export declare enum FileType {
|
|
|
169
172
|
AccountLogo = "accountLogo",
|
|
170
173
|
PlayerPhoto = "playerPhoto",
|
|
171
174
|
SponsorLogo = "sponsorLogo",
|
|
175
|
+
InsightLogo = "insightLogo",
|
|
172
176
|
Temporary = "temporary"
|
|
173
177
|
}
|
|
174
178
|
export declare enum FootballPeriod {
|
|
@@ -490,6 +494,41 @@ export interface BasketballDataResponse {
|
|
|
490
494
|
team2: BasketballScoreboardTeamResponse;
|
|
491
495
|
settings: BasketballSettingsResponse;
|
|
492
496
|
}
|
|
497
|
+
export interface BasketballInsightResponse {
|
|
498
|
+
team1: BasketballInsightTeamResponse;
|
|
499
|
+
team2: BasketballInsightTeamResponse;
|
|
500
|
+
timelinePoints: TimelinePointResponse[];
|
|
501
|
+
periodEndPoints: TimelinePointResponse[];
|
|
502
|
+
runs: BasketballRunSummaryResponse[];
|
|
503
|
+
periodLength: number;
|
|
504
|
+
overtimeLength: number;
|
|
505
|
+
gamePeriods: BasketballGamePeriods;
|
|
506
|
+
overtimeCount: number;
|
|
507
|
+
regulationLength: number;
|
|
508
|
+
gameLength: number;
|
|
509
|
+
leadChanges: number;
|
|
510
|
+
largestLeadPointTeam1: TimelinePointResponse | null;
|
|
511
|
+
largestLeadPointTeam2: TimelinePointResponse | null;
|
|
512
|
+
}
|
|
513
|
+
export interface BasketballInsightTeamResponse {
|
|
514
|
+
name: string;
|
|
515
|
+
abbreviation: string;
|
|
516
|
+
color: string;
|
|
517
|
+
logoUrl: string | null;
|
|
518
|
+
score: number;
|
|
519
|
+
}
|
|
520
|
+
export interface BasketballRunSummary {
|
|
521
|
+
team: "team1" | "team2";
|
|
522
|
+
points: number;
|
|
523
|
+
opponentPoints: number;
|
|
524
|
+
startSeq: number;
|
|
525
|
+
endSeq: number;
|
|
526
|
+
startLeader: "team1" | "team2" | null;
|
|
527
|
+
endLeader: "team1" | "team2" | null;
|
|
528
|
+
causedLeadChange: boolean;
|
|
529
|
+
}
|
|
530
|
+
export interface BasketballRunSummaryResponse extends BasketballRunSummary {
|
|
531
|
+
}
|
|
493
532
|
export interface BasketballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
494
533
|
score: number;
|
|
495
534
|
timeoutsLeft: number;
|
|
@@ -706,6 +745,44 @@ export interface FootballSettingsRequest extends FootballSettings {
|
|
|
706
745
|
}
|
|
707
746
|
export interface FootballSettingsResponse extends FootballSettings {
|
|
708
747
|
}
|
|
748
|
+
export interface GameListResponse {
|
|
749
|
+
url: string;
|
|
750
|
+
uri: string;
|
|
751
|
+
pageNext: string | null;
|
|
752
|
+
data: GameResponse[];
|
|
753
|
+
}
|
|
754
|
+
export interface GameRequest {
|
|
755
|
+
description: string;
|
|
756
|
+
}
|
|
757
|
+
export interface GameResponse {
|
|
758
|
+
object: string;
|
|
759
|
+
url: string;
|
|
760
|
+
uri: string;
|
|
761
|
+
scoreboardId: string;
|
|
762
|
+
gameId: string;
|
|
763
|
+
type: ScoreboardType;
|
|
764
|
+
startLogId: string;
|
|
765
|
+
endLogId?: string;
|
|
766
|
+
description: string;
|
|
767
|
+
dateGameStart: string;
|
|
768
|
+
dateGameEnd?: string;
|
|
769
|
+
dateCreated: string;
|
|
770
|
+
dateModified: string;
|
|
771
|
+
}
|
|
772
|
+
export interface InsightResponse {
|
|
773
|
+
object: string;
|
|
774
|
+
url: string;
|
|
775
|
+
uri: string;
|
|
776
|
+
accountId: string;
|
|
777
|
+
scoreboardId: string;
|
|
778
|
+
gameId: string;
|
|
779
|
+
scoreboardType: ScoreboardType;
|
|
780
|
+
dateCreated: string;
|
|
781
|
+
dateGameStart: string;
|
|
782
|
+
dateGameEnd?: string;
|
|
783
|
+
qualityScore: number;
|
|
784
|
+
data: BasketballInsightResponse;
|
|
785
|
+
}
|
|
709
786
|
export interface MagicLinkResponse {
|
|
710
787
|
object: string;
|
|
711
788
|
magicLinkId: string;
|
|
@@ -1161,6 +1238,21 @@ export interface TextInput extends BaseInput {
|
|
|
1161
1238
|
default: string;
|
|
1162
1239
|
maxLength?: number;
|
|
1163
1240
|
}
|
|
1241
|
+
export interface TimelinePoint {
|
|
1242
|
+
seq: number;
|
|
1243
|
+
period: string | null;
|
|
1244
|
+
overtimeNumber?: number;
|
|
1245
|
+
team1Score: number;
|
|
1246
|
+
team2Score: number;
|
|
1247
|
+
leader: "team1" | "team2" | null;
|
|
1248
|
+
leadAmount: number;
|
|
1249
|
+
periodSecondsRemaining?: number;
|
|
1250
|
+
gameSecond?: number;
|
|
1251
|
+
timeInferred?: boolean;
|
|
1252
|
+
clockJumpAfter?: boolean;
|
|
1253
|
+
}
|
|
1254
|
+
export interface TimelinePointResponse extends TimelinePoint {
|
|
1255
|
+
}
|
|
1164
1256
|
export interface UploadSessionRequest {
|
|
1165
1257
|
filename: string;
|
|
1166
1258
|
reference?: string;
|
package/dist/internal.mjs
CHANGED
|
@@ -61,6 +61,7 @@ export var ApiResource;
|
|
|
61
61
|
ApiResource["AuthList"] = "authList";
|
|
62
62
|
ApiResource["Clock"] = "clock";
|
|
63
63
|
ApiResource["ClockList"] = "clockList";
|
|
64
|
+
ApiResource["Insight"] = "insight";
|
|
64
65
|
ApiResource["Player"] = "player";
|
|
65
66
|
ApiResource["PlayerList"] = "playerList";
|
|
66
67
|
ApiResource["Roster"] = "roster";
|
|
@@ -83,6 +84,8 @@ export var ApiResource;
|
|
|
83
84
|
ApiResource["OverlayList"] = "overlayList";
|
|
84
85
|
ApiResource["Preset"] = "preset";
|
|
85
86
|
ApiResource["PresetList"] = "presetList";
|
|
87
|
+
ApiResource["Game"] = "game";
|
|
88
|
+
ApiResource["GameList"] = "gameList";
|
|
86
89
|
})(ApiResource || (ApiResource = {}));
|
|
87
90
|
export var AppType;
|
|
88
91
|
(function (AppType) {
|
|
@@ -205,6 +208,7 @@ export var FileType;
|
|
|
205
208
|
FileType["AccountLogo"] = "accountLogo";
|
|
206
209
|
FileType["PlayerPhoto"] = "playerPhoto";
|
|
207
210
|
FileType["SponsorLogo"] = "sponsorLogo";
|
|
211
|
+
FileType["InsightLogo"] = "insightLogo";
|
|
208
212
|
FileType["Temporary"] = "temporary";
|
|
209
213
|
})(FileType || (FileType = {}));
|
|
210
214
|
export var FootballPeriod;
|