@scoreboardmax/api-types 1.0.1
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/LICENSE +21 -0
- package/README.md +6 -0
- package/index.d.ts +1041 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ScoreboardMax
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# ScoreboardMax API Type Definitions
|
|
2
|
+
|
|
3
|
+
This file provides TypeScript type definitions for developers integrating with the ScoreboardMax API.
|
|
4
|
+
All types are automatically generated from the official ScoreboardMax API source code to ensure accuracy and consistency.
|
|
5
|
+
|
|
6
|
+
**API Documentation:** [https://scoreboardmax.com/api/docs](https://scoreboardmax.com/api/docs)
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,1041 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ScoreboardMax API Types
|
|
3
|
+
*
|
|
4
|
+
* This file contains type definitions for API consumers.
|
|
5
|
+
* These types are automatically generated from the ScoreboardMax API source code.
|
|
6
|
+
*
|
|
7
|
+
* @version Generated on 2025-08-08T05:05:08.775Z
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export enum ApiAction {
|
|
11
|
+
Create = "create",
|
|
12
|
+
Read = "read",
|
|
13
|
+
Update = "update",
|
|
14
|
+
Delete = "delete",
|
|
15
|
+
All = "*",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ApiResource {
|
|
19
|
+
All = "*",
|
|
20
|
+
Account = "account",
|
|
21
|
+
AccountList = "accountList",
|
|
22
|
+
File = "file",
|
|
23
|
+
FileList = "fileList",
|
|
24
|
+
Auth = "auth",
|
|
25
|
+
AuthList = "authList",
|
|
26
|
+
Clock = "clock",
|
|
27
|
+
ClockList = "clockList",
|
|
28
|
+
Player = "player",
|
|
29
|
+
PlayerList = "playerList",
|
|
30
|
+
Roster = "roster",
|
|
31
|
+
RosterList = "rosterList",
|
|
32
|
+
Scoreboard = "scoreboard",
|
|
33
|
+
ScoreboardList = "scoreboardList",
|
|
34
|
+
Sponsor = "sponsor",
|
|
35
|
+
SponsorList = "sponsorList",
|
|
36
|
+
Team = "team",
|
|
37
|
+
TeamList = "teamList",
|
|
38
|
+
Upload = "upload",
|
|
39
|
+
UploadList = "uploadList",
|
|
40
|
+
User = "user",
|
|
41
|
+
UserList = "userList",
|
|
42
|
+
UserCredentials = "userCredentials",
|
|
43
|
+
UserCredentialsList = "userCredentialsList",
|
|
44
|
+
Overlay = "overlay",
|
|
45
|
+
OverlayList = "overlayList",
|
|
46
|
+
Preset = "preset",
|
|
47
|
+
PresetList = "presetList",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum AuthType {
|
|
51
|
+
Session = "session",
|
|
52
|
+
Api = "api",
|
|
53
|
+
Guest = "guest",
|
|
54
|
+
ScoreboardView = "scoreboardView",
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export enum BaseballInningSegment {
|
|
58
|
+
Top = "top",
|
|
59
|
+
Middle = "middle",
|
|
60
|
+
Bottom = "bottom",
|
|
61
|
+
End = "end",
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export enum BasketballGamePeriods {
|
|
65
|
+
Quarters = "quarters",
|
|
66
|
+
Halves = "halves",
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export enum BasketballPeriod {
|
|
70
|
+
Pre = "pregame",
|
|
71
|
+
First = "1",
|
|
72
|
+
Second = "2",
|
|
73
|
+
Half = "half",
|
|
74
|
+
Third = "3",
|
|
75
|
+
Fourth = "4",
|
|
76
|
+
Overtime = "overtime",
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export enum BasketballTimeoutAllocation {
|
|
80
|
+
PerGame = "perGame",
|
|
81
|
+
PerHalf = "perHalf",
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export enum ClockType {
|
|
85
|
+
Game = "game",
|
|
86
|
+
Play = "play",
|
|
87
|
+
Shot = "shot",
|
|
88
|
+
Pitch = "pitch",
|
|
89
|
+
Period = "period",
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export enum ContentType {
|
|
93
|
+
Png = "image/png",
|
|
94
|
+
Jpg = "image/jpeg",
|
|
95
|
+
Gif = "image/gif",
|
|
96
|
+
Webp = "image/webp",
|
|
97
|
+
Avif = "image/avif",
|
|
98
|
+
Csv = "text/csv",
|
|
99
|
+
Xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export enum DownAndDistanceDisplay {
|
|
103
|
+
Both = "both",
|
|
104
|
+
DownOnly = "downOnly",
|
|
105
|
+
None = "none",
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export enum ErrorCode {
|
|
109
|
+
ForbiddenSelfPermissionsChange = "ForbiddenSelfPermissionsChange",
|
|
110
|
+
InsufficientAdminPermissions = "InsufficientAdminPermissions",
|
|
111
|
+
InsufficientItemPermissions = "InsufficientItemPermissions",
|
|
112
|
+
InsufficientResourcePermissions = "InsufficientResourcePermissions",
|
|
113
|
+
InsufficientResourceItemPermissions = "InsufficientResourceItemPermissions",
|
|
114
|
+
InvalidAuthType = "InvalidAuthType",
|
|
115
|
+
InvalidColorFormat = "InvalidColorFormat",
|
|
116
|
+
InvalidDate = "InvalidDate",
|
|
117
|
+
InvalidInput = "InvalidInput",
|
|
118
|
+
InvalidRequest = "InvalidRequest",
|
|
119
|
+
InvalidPermissionGrant = "InvalidPermissionGrant",
|
|
120
|
+
InvalidSignIn = "InvalidSignIn",
|
|
121
|
+
InvalidAccountSignIn = "InvalidAccountSignIn",
|
|
122
|
+
InvalidToken = "InvalidToken",
|
|
123
|
+
AccountLimitExceeded = "AccountLimitExceeded",
|
|
124
|
+
AccountStorageExceeded = "AccountStorageExceeded",
|
|
125
|
+
ActiveScoreboardsExceeded = "ActiveScoreboardsExceeded",
|
|
126
|
+
AccountFeatureNotEnabled = "AccountFeatureNotEnabled",
|
|
127
|
+
ImageProcessingError = "ImageProcessingError",
|
|
128
|
+
RemoteServerError = "RemoteServerError",
|
|
129
|
+
RemoteServerTimeout = "RemoteServerTimeout",
|
|
130
|
+
RequestLimitExceeded = "RequestLimitExceeded",
|
|
131
|
+
ResourceNotFound = "ResourceNotFound",
|
|
132
|
+
UserCredentialsInUse = "UserCredentialsInUse",
|
|
133
|
+
AccountEmailInUse = "AccountEmailInUse",
|
|
134
|
+
IncompatibleState = "IncompatibleState",
|
|
135
|
+
UnspecifiedError = "UnspecifiedError",
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export enum ExtraTimeLabel {
|
|
139
|
+
ExtraTime = "ET",
|
|
140
|
+
Overtime = "OT",
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export enum FileType {
|
|
144
|
+
TeamLogo = "teamLogo",
|
|
145
|
+
AccountLogo = "accountLogo",
|
|
146
|
+
PlayerPhoto = "playerPhoto",
|
|
147
|
+
SponsorLogo = "sponsorLogo",
|
|
148
|
+
Temporary = "temporary",
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export enum FootballPeriod {
|
|
152
|
+
Pre = "pregame",
|
|
153
|
+
First = "1",
|
|
154
|
+
Second = "2",
|
|
155
|
+
Half = "half",
|
|
156
|
+
Third = "3",
|
|
157
|
+
Fourth = "4",
|
|
158
|
+
Overtime = "overtime",
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export enum MetaMessageType {
|
|
162
|
+
ScoreboardReset = "scoreboardReset",
|
|
163
|
+
ScoreboardRefresh = "scoreboardRefresh",
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export enum ScoreboardCode {
|
|
167
|
+
Football = "fb",
|
|
168
|
+
Basketball = "bb",
|
|
169
|
+
Volleyball = "vb",
|
|
170
|
+
Soccer = "sc",
|
|
171
|
+
Baseball = "ba",
|
|
172
|
+
Wrestling = "wr",
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export enum ScoreboardType {
|
|
176
|
+
Baseball = "baseball",
|
|
177
|
+
Basketball = "basketball",
|
|
178
|
+
Football = "football",
|
|
179
|
+
Soccer = "soccer",
|
|
180
|
+
Volleyball = "volleyball",
|
|
181
|
+
Wrestling = "wrestling",
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export enum SoccerGamePeriods {
|
|
185
|
+
Quarters = "quarters",
|
|
186
|
+
Halves = "halves",
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export enum SoccerPenaltyCardType {
|
|
190
|
+
Yellow = "yellow",
|
|
191
|
+
Red = "red",
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export enum SoccerPeriod {
|
|
195
|
+
Pre = "pregame",
|
|
196
|
+
First = "1",
|
|
197
|
+
Second = "2",
|
|
198
|
+
Half = "half",
|
|
199
|
+
Third = "3",
|
|
200
|
+
Fourth = "4",
|
|
201
|
+
ExtraTime1 = "ET 1",
|
|
202
|
+
ExtraTime2 = "ET 2",
|
|
203
|
+
Shootout = "shootout",
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export enum WebsocketMessageType {
|
|
207
|
+
Event = "event",
|
|
208
|
+
Heartbeat = "heartbeat",
|
|
209
|
+
ConnectionConfirmation = "connectionConfirmation",
|
|
210
|
+
Info = "info",
|
|
211
|
+
Meta = "meta",
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export enum WebsocketOperation {
|
|
215
|
+
SendHeartbeat = "sendHeartbeat",
|
|
216
|
+
GetConnectionId = "getConnectionId",
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export enum WrestlingMeetType {
|
|
220
|
+
Dual = "dual",
|
|
221
|
+
Tournament = "tournament",
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export enum WrestlingOvertimeType {
|
|
225
|
+
SuddenVictory = "sv",
|
|
226
|
+
TieBreaker = "tb",
|
|
227
|
+
UltimateTieBreaker = "utb",
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export enum WrestlingPeriod {
|
|
231
|
+
First = "1",
|
|
232
|
+
Second = "2",
|
|
233
|
+
Third = "3",
|
|
234
|
+
Overtime = "overtime"
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export enum WrestlingStyle {
|
|
238
|
+
Freestyle = "freestyle",
|
|
239
|
+
Greco = "greco",
|
|
240
|
+
Folkstyle = "folkstyle",
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface AccountRequest {
|
|
244
|
+
name: string | null;
|
|
245
|
+
logoFilename: string | null;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface AccountResponse {
|
|
249
|
+
object: string;
|
|
250
|
+
accountId: string;
|
|
251
|
+
url: string;
|
|
252
|
+
uri: string;
|
|
253
|
+
name: string | null;
|
|
254
|
+
logoFilename: string | null;
|
|
255
|
+
logoUrl: string | null;
|
|
256
|
+
logoPreviewUrl: string | null;
|
|
257
|
+
plan: PlanResponse;
|
|
258
|
+
storageUsed: number;
|
|
259
|
+
dateCreated: string;
|
|
260
|
+
dateModified: string;
|
|
261
|
+
subscriptionId: string | null;
|
|
262
|
+
token?: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface AuthListResponse {
|
|
266
|
+
url: string;
|
|
267
|
+
uri: string;
|
|
268
|
+
pageNext: string | null;
|
|
269
|
+
data: AuthResponse[];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface AuthRequest {
|
|
273
|
+
type: AuthType;
|
|
274
|
+
description?: string | null;
|
|
275
|
+
permissions: Permissions;
|
|
276
|
+
dateExpires?: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface AuthResponse {
|
|
280
|
+
object: string;
|
|
281
|
+
authId: string;
|
|
282
|
+
url: string;
|
|
283
|
+
uri: string;
|
|
284
|
+
mask: string;
|
|
285
|
+
accountId: string;
|
|
286
|
+
account: AccountResponse | string;
|
|
287
|
+
userId?: string;
|
|
288
|
+
description?: string | null;
|
|
289
|
+
permissions: Permissions;
|
|
290
|
+
dateCreated: string;
|
|
291
|
+
dateModified: string;
|
|
292
|
+
dateExpires?: string;
|
|
293
|
+
dateLastUsed?: string;
|
|
294
|
+
dateNow: string;
|
|
295
|
+
type: AuthType;
|
|
296
|
+
token?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface BaseballDataRequest {
|
|
300
|
+
inning: number;
|
|
301
|
+
inningSegment: BaseballInningSegment;
|
|
302
|
+
balls: number | null
|
|
303
|
+
strikes: number | null;
|
|
304
|
+
outs: number | null;
|
|
305
|
+
runnerOnFirst: boolean;
|
|
306
|
+
runnerOnSecond: boolean;
|
|
307
|
+
runnerOnThird: boolean;
|
|
308
|
+
team1: BaseballScoreboardTeamRequest;
|
|
309
|
+
team2: BaseballScoreboardTeamRequest;
|
|
310
|
+
settings?: BaseballSettingsRequest;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface BaseballDataResponse {
|
|
314
|
+
type: ScoreboardType;
|
|
315
|
+
inning: number;
|
|
316
|
+
inningSegment: BaseballInningSegment;
|
|
317
|
+
balls: number | null
|
|
318
|
+
strikes: number | null;
|
|
319
|
+
outs: number | null;
|
|
320
|
+
runnerOnFirst: boolean;
|
|
321
|
+
runnerOnSecond: boolean;
|
|
322
|
+
runnerOnThird: boolean;
|
|
323
|
+
team1: BaseballScoreboardTeamResponse;
|
|
324
|
+
team2: BaseballScoreboardTeamResponse;
|
|
325
|
+
settings: BaseballSettingsResponse;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface BaseballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
329
|
+
runs: number;
|
|
330
|
+
inningRuns: number[];
|
|
331
|
+
hits: number;
|
|
332
|
+
errors: number;
|
|
333
|
+
pitcher: PlayerSummaryRequest | null;
|
|
334
|
+
pitchCount: Record<string, number>;
|
|
335
|
+
batter: PlayerSummaryRequest | null;
|
|
336
|
+
battingRecord: Record<string, (boolean | null)[]>;
|
|
337
|
+
battingList: PlayerSummaryRequest[];
|
|
338
|
+
isHomeTeam: boolean;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseResponse {
|
|
342
|
+
runs: number;
|
|
343
|
+
inningRuns: number[];
|
|
344
|
+
hits: number;
|
|
345
|
+
errors: number;
|
|
346
|
+
pitcher: PlayerSummaryResponse | null;
|
|
347
|
+
pitchCount: Record<string, number>;
|
|
348
|
+
batter: PlayerSummaryResponse | null;
|
|
349
|
+
battingRecord: Record<string, (boolean | null)[]>;
|
|
350
|
+
battingList: PlayerSummaryResponse[];
|
|
351
|
+
isHomeTeam: boolean;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface BaseballSettingsRequest extends BaseballSettings {
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface BaseballSettingsResponse extends BaseballSettings {
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export interface BasketballDataRequest {
|
|
361
|
+
period: BasketballPeriod;
|
|
362
|
+
team1: BasketballScoreboardTeamRequest;
|
|
363
|
+
team2: BasketballScoreboardTeamRequest;
|
|
364
|
+
settings?: BasketballSettingsRequest;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export interface BasketballDataResponse {
|
|
368
|
+
type: ScoreboardType;
|
|
369
|
+
period: BasketballPeriod;
|
|
370
|
+
team1: BasketballScoreboardTeamResponse;
|
|
371
|
+
team2: BasketballScoreboardTeamResponse;
|
|
372
|
+
settings: BasketballSettingsResponse;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export interface BasketballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
376
|
+
score: number;
|
|
377
|
+
timeoutsLeft: number;
|
|
378
|
+
possession: boolean;
|
|
379
|
+
fouls: number;
|
|
380
|
+
bonus: boolean;
|
|
381
|
+
doubleBonus: boolean;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export interface BasketballScoreboardTeamResponse extends ScoreboardTeamBaseResponse {
|
|
385
|
+
score: number;
|
|
386
|
+
timeoutsLeft: number;
|
|
387
|
+
possession: boolean;
|
|
388
|
+
fouls: number;
|
|
389
|
+
bonus: boolean;
|
|
390
|
+
doubleBonus: boolean;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export interface BasketballSettingsRequest extends BasketballSettings {
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export interface BasketballSettingsResponse extends BasketballSettings {
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export interface ClockListResponse {
|
|
400
|
+
url: string;
|
|
401
|
+
uri: string;
|
|
402
|
+
data: ClockResponse[];
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export interface ClockRequest {
|
|
406
|
+
seconds: number | null;
|
|
407
|
+
running: boolean;
|
|
408
|
+
ascending: boolean;
|
|
409
|
+
stopAt?: number;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export interface ClockResponse extends Clock {
|
|
413
|
+
object: string;
|
|
414
|
+
url: string;
|
|
415
|
+
uri: string;
|
|
416
|
+
display: string | null;
|
|
417
|
+
nowTimestamp: number;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export interface DataExtractRequest {
|
|
421
|
+
removeDuplicates?: boolean;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface DataExtractResponse {
|
|
425
|
+
removeDuplicates: boolean;
|
|
426
|
+
fileId: string;
|
|
427
|
+
data: DataRow[];
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface DataRow extends Array<string> { }
|
|
431
|
+
|
|
432
|
+
export interface EventResponse {
|
|
433
|
+
object: string;
|
|
434
|
+
eventId: string;
|
|
435
|
+
accountId: string;
|
|
436
|
+
dateCreated: string;
|
|
437
|
+
resource: string;
|
|
438
|
+
resourceUri: string;
|
|
439
|
+
subscriptionResourceUri: string;
|
|
440
|
+
data: object | null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export interface FileListResponse {
|
|
444
|
+
url: string;
|
|
445
|
+
uri: string;
|
|
446
|
+
pageNext: string | null;
|
|
447
|
+
data: FileResponse[];
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export interface FileRequest {
|
|
451
|
+
uploadId: string;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface FileResponse {
|
|
455
|
+
object: string;
|
|
456
|
+
url: string;
|
|
457
|
+
uri: string;
|
|
458
|
+
fileId: string;
|
|
459
|
+
filename: string;
|
|
460
|
+
fileUrl: string;
|
|
461
|
+
accountId: string;
|
|
462
|
+
type: FileType;
|
|
463
|
+
size: number;
|
|
464
|
+
dateCreated: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface FootballDataRequest {
|
|
468
|
+
down: number | null;
|
|
469
|
+
distanceToGo: string | null;
|
|
470
|
+
flag: boolean;
|
|
471
|
+
period: FootballPeriod;
|
|
472
|
+
team1: FootballScoreboardTeamRequest;
|
|
473
|
+
team2: FootballScoreboardTeamRequest;
|
|
474
|
+
settings?: FootballSettingsRequest;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export interface FootballDataResponse {
|
|
478
|
+
type: ScoreboardType;
|
|
479
|
+
down: number | null;
|
|
480
|
+
distanceToGo: string | null;
|
|
481
|
+
flag: boolean;
|
|
482
|
+
period: FootballPeriod;
|
|
483
|
+
team1: FootballScoreboardTeamResponse;
|
|
484
|
+
team2: FootballScoreboardTeamResponse;
|
|
485
|
+
settings: FootballSettingsResponse;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export interface FootballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
489
|
+
score: number;
|
|
490
|
+
timeoutsLeft: number;
|
|
491
|
+
possession: boolean;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export interface FootballScoreboardTeamResponse extends ScoreboardTeamBaseResponse {
|
|
495
|
+
score: number;
|
|
496
|
+
timeoutsLeft: number;
|
|
497
|
+
possession: boolean;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export interface FootballSettingsRequest extends FootballSettings {
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export interface FootballSettingsResponse extends FootballSettings {
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export interface OverlayRequest {
|
|
507
|
+
type: "players" | "sponsors";
|
|
508
|
+
data: PlayerSummaryRequest[] | SponsorSummaryRequest[];
|
|
509
|
+
title?: string | null;
|
|
510
|
+
color?: string;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface OverlayResponse {
|
|
514
|
+
type: "players" | "sponsors";
|
|
515
|
+
data: PlayerSummaryResponse[] | SponsorSummaryResponse[];
|
|
516
|
+
title?: string | null;
|
|
517
|
+
color?: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export interface PlanResponse extends Plan {
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export interface PlayerListResponse {
|
|
524
|
+
url: string;
|
|
525
|
+
uri: string;
|
|
526
|
+
data: PlayerResponse[];
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export interface PlayerRequest {
|
|
530
|
+
playerId?: string;
|
|
531
|
+
firstName: string;
|
|
532
|
+
lastName: string;
|
|
533
|
+
number: string | null;
|
|
534
|
+
position: string | null;
|
|
535
|
+
imageFilename: string | null;
|
|
536
|
+
attributes: Record<string, string>;
|
|
537
|
+
groups: string[];
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export interface PlayerResponse {
|
|
541
|
+
object: string;
|
|
542
|
+
url: string;
|
|
543
|
+
uri: string;
|
|
544
|
+
playerId: string;
|
|
545
|
+
rosterId: string;
|
|
546
|
+
firstName: string;
|
|
547
|
+
lastName: string;
|
|
548
|
+
number: string | null;
|
|
549
|
+
position: string | null;
|
|
550
|
+
imageFilename: string | null;
|
|
551
|
+
imageUrl: string | null;
|
|
552
|
+
imagePreviewUrl: string | null;
|
|
553
|
+
imageMediumUrl: string | null;
|
|
554
|
+
attributes: Record<string, string>;
|
|
555
|
+
groups: string[];
|
|
556
|
+
accountId: string;
|
|
557
|
+
dateCreated: string;
|
|
558
|
+
dateModified: string;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export interface PlayerSummaryRequest {
|
|
562
|
+
playerId: string | null;
|
|
563
|
+
firstName: string | null;
|
|
564
|
+
lastName: string | null;
|
|
565
|
+
number: string | null;
|
|
566
|
+
position: string | null;
|
|
567
|
+
imageFilename: string | null;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export interface PlayerSummaryResponse {
|
|
571
|
+
playerId: string | null;
|
|
572
|
+
firstName: string | null;
|
|
573
|
+
lastName: string | null;
|
|
574
|
+
number: string | null;
|
|
575
|
+
position: string | null;
|
|
576
|
+
imageFilename: string | null;
|
|
577
|
+
imageUrl: string | null;
|
|
578
|
+
imagePreviewUrl: string | null;
|
|
579
|
+
imageMediumUrl: string | null;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface PresetListResponse {
|
|
583
|
+
url: string;
|
|
584
|
+
uri: string;
|
|
585
|
+
pageNext: string | null;
|
|
586
|
+
data: PresetResponse[];
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export interface PresetRequest {
|
|
590
|
+
type: ScoreboardType;
|
|
591
|
+
name: string;
|
|
592
|
+
description: string | null;
|
|
593
|
+
data: BaseballSettingsRequest | BasketballSettingsRequest | FootballSettingsRequest | SoccerSettingsRequest | VolleyballSettingsRequest | WrestlingSettingsRequest;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export interface PresetResponse {
|
|
597
|
+
object: string;
|
|
598
|
+
url: string;
|
|
599
|
+
uri: string;
|
|
600
|
+
presetId: string;
|
|
601
|
+
name: string;
|
|
602
|
+
description: string | null;
|
|
603
|
+
type: ScoreboardType;
|
|
604
|
+
data: BaseballSettingsResponse | BasketballSettingsResponse | FootballSettingsResponse | SoccerSettingsResponse | VolleyballSettingsResponse | WrestlingSettingsResponse;
|
|
605
|
+
dateCreated: string;
|
|
606
|
+
dateModified: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface RosterListResponse {
|
|
610
|
+
url: string;
|
|
611
|
+
uri: string;
|
|
612
|
+
pageNext: string | null;
|
|
613
|
+
data: RosterResponse[];
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export interface RosterRequest {
|
|
617
|
+
name: string;
|
|
618
|
+
type: ScoreboardType;
|
|
619
|
+
players?: PlayerRequest[];
|
|
620
|
+
attributes: string[];
|
|
621
|
+
groups: string[];
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export interface RosterResponse {
|
|
625
|
+
object: string;
|
|
626
|
+
url: string;
|
|
627
|
+
uri: string;
|
|
628
|
+
rosterId: string;
|
|
629
|
+
name: string;
|
|
630
|
+
type: ScoreboardType;
|
|
631
|
+
attributes: string[];
|
|
632
|
+
groups: string[];
|
|
633
|
+
players: PlayerListResponse | string;
|
|
634
|
+
playerCount: number;
|
|
635
|
+
accountId: string;
|
|
636
|
+
dateCreated: string;
|
|
637
|
+
dateModified: string;
|
|
638
|
+
testDeploy?: string;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export interface ScoreboardActivationListResponse {
|
|
642
|
+
url: string;
|
|
643
|
+
uri: string;
|
|
644
|
+
pageNext: string | null;
|
|
645
|
+
data: ScoreboardActivationResponse[];
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface ScoreboardActivationResponse extends ScoreboardActivation {
|
|
649
|
+
object: string;
|
|
650
|
+
url: string;
|
|
651
|
+
uri: string;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export interface ScoreboardListResponse {
|
|
655
|
+
url: string;
|
|
656
|
+
uri: string;
|
|
657
|
+
pageNext: string | null;
|
|
658
|
+
data: ScoreboardResponse[];
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export interface ScoreboardRequest {
|
|
662
|
+
name: string | null;
|
|
663
|
+
type: ScoreboardType;
|
|
664
|
+
data: BasketballDataRequest | FootballDataRequest | VolleyballDataRequest | SoccerDataRequest | BaseballDataRequest | WrestlingDataRequest;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export interface ScoreboardResponse {
|
|
668
|
+
object: string;
|
|
669
|
+
url: string;
|
|
670
|
+
uri: string;
|
|
671
|
+
scoreboardId: string;
|
|
672
|
+
name: string | null;
|
|
673
|
+
description: string;
|
|
674
|
+
controlUrl: string;
|
|
675
|
+
embedUrl: string;
|
|
676
|
+
type: ScoreboardType;
|
|
677
|
+
data: BasketballDataResponse | FootballDataResponse | VolleyballDataResponse | SoccerDataResponse | BaseballDataResponse | WrestlingDataResponse;
|
|
678
|
+
accountId: string;
|
|
679
|
+
accountLogoUrl: string | null;
|
|
680
|
+
accountLogoPreviewUrl: string | null;
|
|
681
|
+
dateCreated: string;
|
|
682
|
+
dateModified: string;
|
|
683
|
+
currentServerTimestamp: number;
|
|
684
|
+
clocks: ClockListResponse | string;
|
|
685
|
+
overlay: OverlayResponse | string;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export interface ScoreboardTeamBaseRequest {
|
|
689
|
+
teamId: string | null;
|
|
690
|
+
name: string | undefined;
|
|
691
|
+
description: string | null;
|
|
692
|
+
color: string | undefined;
|
|
693
|
+
logoFilename: string | null | undefined;
|
|
694
|
+
rosterId: string | null;
|
|
695
|
+
reference?: string;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export interface ScoreboardTeamBaseResponse {
|
|
699
|
+
teamId: string | null;
|
|
700
|
+
team: TeamResponse | string | null;
|
|
701
|
+
name: string;
|
|
702
|
+
abbreviation: string;
|
|
703
|
+
description: string | null;
|
|
704
|
+
color: string;
|
|
705
|
+
logoFilename: string | null;
|
|
706
|
+
logoUrl: string | null;
|
|
707
|
+
logoPreviewUrl: string | null;
|
|
708
|
+
rosterId: string | null;
|
|
709
|
+
roster: string | RosterResponse | null;
|
|
710
|
+
reference: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export interface ServerTimeResponse extends ServerTime {
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export interface SoccerDataRequest {
|
|
717
|
+
period: SoccerPeriod;
|
|
718
|
+
team1: SoccerScoreboardTeamRequest;
|
|
719
|
+
team2: SoccerScoreboardTeamRequest;
|
|
720
|
+
settings?: SoccerSettingsRequest;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export interface SoccerDataResponse {
|
|
724
|
+
type: ScoreboardType;
|
|
725
|
+
period: SoccerPeriod;
|
|
726
|
+
team1: SoccerScoreboardTeamResponse;
|
|
727
|
+
team2: SoccerScoreboardTeamResponse;
|
|
728
|
+
settings: SoccerSettingsResponse;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export interface SoccerPenaltyCardRequest {
|
|
732
|
+
cardType: SoccerPenaltyCardType;
|
|
733
|
+
playerSummary: PlayerSummaryRequest | null;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export interface SoccerPenaltyCardResponse {
|
|
737
|
+
cardType: SoccerPenaltyCardType;
|
|
738
|
+
playerSummary: PlayerSummaryResponse | null;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
export interface SoccerScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
742
|
+
score: number;
|
|
743
|
+
shootoutResults: (boolean | null)[];
|
|
744
|
+
penaltyCard?: SoccerPenaltyCardRequest;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export interface SoccerScoreboardTeamResponse extends ScoreboardTeamBaseResponse {
|
|
748
|
+
score: number;
|
|
749
|
+
shootoutScore: number;
|
|
750
|
+
shootoutResults: (boolean | null)[];
|
|
751
|
+
penaltyCard?: SoccerPenaltyCardResponse;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export interface SoccerSettingsRequest extends SoccerSettings {
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export interface SoccerSettingsResponse extends SoccerSettings {
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export interface SponsorListResponse {
|
|
761
|
+
url: string;
|
|
762
|
+
uri: string;
|
|
763
|
+
groups: string[];
|
|
764
|
+
data: SponsorResponse[];
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export interface SponsorRequest {
|
|
768
|
+
name: string;
|
|
769
|
+
website?: string;
|
|
770
|
+
logoFilename: string;
|
|
771
|
+
active: boolean;
|
|
772
|
+
groups: string[];
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export interface SponsorResponse {
|
|
776
|
+
object: string;
|
|
777
|
+
url: string;
|
|
778
|
+
uri: string;
|
|
779
|
+
sponsorId: string;
|
|
780
|
+
name: string;
|
|
781
|
+
website?: string;
|
|
782
|
+
active: boolean;
|
|
783
|
+
groups: string[];
|
|
784
|
+
logoFilename: string;
|
|
785
|
+
logoUrl: string;
|
|
786
|
+
logoPreviewUrl: string;
|
|
787
|
+
logoMediumUrl: string;
|
|
788
|
+
accountId: string;
|
|
789
|
+
dateCreated: string;
|
|
790
|
+
dateModified: string;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export interface SponsorSummaryRequest {
|
|
794
|
+
sponsorId: string | null;
|
|
795
|
+
name: string | null;
|
|
796
|
+
website: string | null;
|
|
797
|
+
imageFilename: string | null;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export interface SponsorSummaryResponse {
|
|
801
|
+
sponsorId: string | null;
|
|
802
|
+
name: string | null;
|
|
803
|
+
website: string | null;
|
|
804
|
+
imageFilename: string | null;
|
|
805
|
+
imageUrl: string | null;
|
|
806
|
+
imagePreviewUrl: string | null;
|
|
807
|
+
imageMediumUrl: string | null;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export interface TeamListResponse {
|
|
811
|
+
url: string;
|
|
812
|
+
uri: string;
|
|
813
|
+
pageNext: string | null;
|
|
814
|
+
data: TeamResponse[];
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export interface TeamRequest {
|
|
818
|
+
name: string;
|
|
819
|
+
description: string | null;
|
|
820
|
+
color: string;
|
|
821
|
+
logoFilename: string | null;
|
|
822
|
+
rosterId: string | null;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export interface TeamResponse {
|
|
826
|
+
object: string;
|
|
827
|
+
url: string;
|
|
828
|
+
uri: string;
|
|
829
|
+
teamId: string;
|
|
830
|
+
name: string;
|
|
831
|
+
description: string | null;
|
|
832
|
+
color: string;
|
|
833
|
+
logoFilename: string | null;
|
|
834
|
+
logoUrl: string | null;
|
|
835
|
+
logoPreviewUrl: string | null;
|
|
836
|
+
rosterId: string | null;
|
|
837
|
+
roster: string | RosterResponse | null;
|
|
838
|
+
accountId: string;
|
|
839
|
+
dateCreated: string;
|
|
840
|
+
dateModified: string;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
export interface UploadSessionRequest {
|
|
844
|
+
filename: string;
|
|
845
|
+
type: FileType;
|
|
846
|
+
reference?: string;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export interface UploadSessionResponse {
|
|
850
|
+
object: string;
|
|
851
|
+
uploadId: string;
|
|
852
|
+
type: FileType;
|
|
853
|
+
filename: string;
|
|
854
|
+
reference?: string;
|
|
855
|
+
contentType: ContentType;
|
|
856
|
+
uploadUrl: string;
|
|
857
|
+
dateCreated: string;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export interface UserCredentialsRequest {
|
|
861
|
+
name?: string;
|
|
862
|
+
email: string;
|
|
863
|
+
password?: string;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export interface UserCredentialsResponse {
|
|
867
|
+
object: string;
|
|
868
|
+
userId: string;
|
|
869
|
+
url: string;
|
|
870
|
+
uri: string;
|
|
871
|
+
name?: string;
|
|
872
|
+
email: string;
|
|
873
|
+
googleEmail?: string;
|
|
874
|
+
hasGoogleSignIn: boolean;
|
|
875
|
+
accountIds: string[];
|
|
876
|
+
dateCreated: string;
|
|
877
|
+
dateModified: string;
|
|
878
|
+
dateLastSignIn: string;
|
|
879
|
+
dateNow: string;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export interface UserListResponse {
|
|
883
|
+
url: string;
|
|
884
|
+
uri: string;
|
|
885
|
+
pageNext: string | null;
|
|
886
|
+
data: UserResponse[] | UserResponseAdmin[];
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export interface UserRequest {
|
|
890
|
+
email: string;
|
|
891
|
+
name: string;
|
|
892
|
+
permissions: Permissions;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export interface UserResponse {
|
|
896
|
+
object: string;
|
|
897
|
+
userId: string;
|
|
898
|
+
url: string;
|
|
899
|
+
uri: string;
|
|
900
|
+
name?: string;
|
|
901
|
+
email: string;
|
|
902
|
+
pending: boolean;
|
|
903
|
+
accountId: string;
|
|
904
|
+
account: AccountResponse | string;
|
|
905
|
+
permissions: Permissions;
|
|
906
|
+
dateCreated: string;
|
|
907
|
+
dateModified: string;
|
|
908
|
+
dateLastActivity: string | null;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export interface VolleyballDataRequest {
|
|
912
|
+
set: number | null;
|
|
913
|
+
team1: VolleyballScoreboardTeamRequest;
|
|
914
|
+
team2: VolleyballScoreboardTeamRequest;
|
|
915
|
+
settings?: VolleyballSettingsRequest;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export interface VolleyballDataResponse {
|
|
919
|
+
type: ScoreboardType;
|
|
920
|
+
set: number | null;
|
|
921
|
+
team1: VolleyballScoreboardTeamResponse;
|
|
922
|
+
team2: VolleyballScoreboardTeamResponse;
|
|
923
|
+
settings: VolleyballSettingsResponse;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
export interface VolleyballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
927
|
+
setScore: number;
|
|
928
|
+
matchScore: number;
|
|
929
|
+
timeoutsLeft: number;
|
|
930
|
+
serving: boolean;
|
|
931
|
+
server: PlayerSummaryRequest | null;
|
|
932
|
+
finalSetScores: (number | null)[];
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export interface VolleyballScoreboardTeamResponse extends ScoreboardTeamBaseResponse {
|
|
936
|
+
setScore: number;
|
|
937
|
+
matchScore: number;
|
|
938
|
+
timeoutsLeft: number;
|
|
939
|
+
serving: boolean;
|
|
940
|
+
server: PlayerSummaryResponse | null;
|
|
941
|
+
finalSetScores: (number | null)[];
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export interface VolleyballSettingsRequest extends VolleyballSettings {
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
export interface VolleyballSettingsResponse extends VolleyballSettings {
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export interface WebsocketConnectionIdRequest {
|
|
951
|
+
action: "sendmessage";
|
|
952
|
+
operation: WebsocketOperation.GetConnectionId;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export interface WebsocketConnectionIdResponse {
|
|
956
|
+
connectionId: string;
|
|
957
|
+
dateCreated: string;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
export interface WebsocketMessage {
|
|
961
|
+
type: WebsocketMessageType;
|
|
962
|
+
error: boolean
|
|
963
|
+
message: string;
|
|
964
|
+
data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export interface WebsocketSubscriptionRequest {
|
|
968
|
+
connectionId: string;
|
|
969
|
+
triggerEvent?: boolean
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export interface WebsocketSubscriptionResponse {
|
|
973
|
+
connectionId: string;
|
|
974
|
+
subscriptionResource: string;
|
|
975
|
+
subscriptionResourceUri: string;
|
|
976
|
+
accountId: string;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export interface WrestlingDataRequest {
|
|
980
|
+
period: WrestlingPeriod;
|
|
981
|
+
overtimePhase: WrestlingOvertimePhase | null;
|
|
982
|
+
team1: WrestlingScoreboardTeamRequest;
|
|
983
|
+
team2: WrestlingScoreboardTeamRequest;
|
|
984
|
+
teamIds: string[];
|
|
985
|
+
weightClass: string | null;
|
|
986
|
+
tournamentTeams: WrestlingScoreboardTeamRequest[];
|
|
987
|
+
settings?: WrestlingSettingsRequest;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export interface WrestlingDataResponse {
|
|
991
|
+
type: ScoreboardType;
|
|
992
|
+
period: WrestlingPeriod;
|
|
993
|
+
overtimePhase: WrestlingOvertimePhase | null;
|
|
994
|
+
team1: WrestlingScoreboardTeamResponse;
|
|
995
|
+
team2: WrestlingScoreboardTeamResponse;
|
|
996
|
+
teamIds: string[];
|
|
997
|
+
weightClass: string | null;
|
|
998
|
+
tournamentTeams: WrestlingScoreboardTeamResponse[];
|
|
999
|
+
settings: WrestlingSettingsResponse;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
export interface WrestlingOvertimePhase {
|
|
1003
|
+
number: number;
|
|
1004
|
+
type: WrestlingOvertimeType;
|
|
1005
|
+
half: 1 | 2 | null;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export interface WrestlingScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
|
|
1009
|
+
score: number;
|
|
1010
|
+
matchScore: number;
|
|
1011
|
+
wrestler: PlayerSummaryRequest | null;
|
|
1012
|
+
bandColor: "red" | "blue" | "green" | null;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export interface WrestlingScoreboardTeamResponse extends ScoreboardTeamBaseResponse {
|
|
1016
|
+
score: number;
|
|
1017
|
+
matchScore: number;
|
|
1018
|
+
wrestler: PlayerSummaryResponse | null;
|
|
1019
|
+
bandColor: "red" | "blue" | "green" | null;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
export interface WrestlingSettingsRequest extends WrestlingSettings {
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export interface WrestlingSettingsResponse extends WrestlingSettings {
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export type PermissionItem = {
|
|
1029
|
+
[uri: string]: ApiAction[];
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export type Permissions = {
|
|
1033
|
+
allow: ResourcePermissions;
|
|
1034
|
+
deny: ResourcePermissions;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export type ResourcePermissions = {
|
|
1038
|
+
[key in ApiResource]?: PermissionItem[];
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scoreboardmax/api-types",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "TypeScript definitions for ScoreboardMax API",
|
|
5
|
+
"main": "index.d.ts",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.d.ts"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"No tests for type definitions\" && exit 0"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/ScoreboardMax/scoreboardmax-api-types.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"typescript",
|
|
19
|
+
"api",
|
|
20
|
+
"scoreboardmax",
|
|
21
|
+
"types",
|
|
22
|
+
"definitions",
|
|
23
|
+
"scoreboard",
|
|
24
|
+
"sports"
|
|
25
|
+
],
|
|
26
|
+
"author": "ScoreboardMax",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/ScoreboardMax/scoreboardmax-api-types/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/ScoreboardMax/scoreboardmax-api-types#readme",
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|