@scoreboardmax/api-types 1.0.1 → 1.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/index.d.ts +208 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This file contains type definitions for API consumers.
|
|
5
5
|
* These types are automatically generated from the ScoreboardMax API source code.
|
|
6
6
|
*
|
|
7
|
-
* @version Generated on 2025-08-
|
|
7
|
+
* @version Generated on 2025-08-08T15:49:48.968Z
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
export enum ApiAction {
|
|
@@ -158,6 +158,13 @@ export enum FootballPeriod {
|
|
|
158
158
|
Overtime = "overtime",
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
export enum MagicLinkType {
|
|
162
|
+
SignIn = "signIn",
|
|
163
|
+
ScoreboardGuest = "scoreboardGuest",
|
|
164
|
+
UserInvite = "userInvite",
|
|
165
|
+
ScoreboardView = "scoreboardView",
|
|
166
|
+
}
|
|
167
|
+
|
|
161
168
|
export enum MetaMessageType {
|
|
162
169
|
ScoreboardReset = "scoreboardReset",
|
|
163
170
|
ScoreboardRefresh = "scoreboardRefresh",
|
|
@@ -262,6 +269,23 @@ export interface AccountResponse {
|
|
|
262
269
|
token?: string;
|
|
263
270
|
}
|
|
264
271
|
|
|
272
|
+
export interface Auth {
|
|
273
|
+
authId: string;
|
|
274
|
+
mask: string;
|
|
275
|
+
accountId: string;
|
|
276
|
+
userId?: string;
|
|
277
|
+
type: AuthType;
|
|
278
|
+
isAdmin: boolean;
|
|
279
|
+
description?: string | null;
|
|
280
|
+
permissions: Permissions;
|
|
281
|
+
dateCreated: string;
|
|
282
|
+
dateModified: string;
|
|
283
|
+
dateExpires?: string;
|
|
284
|
+
dateLastUsed?: string;
|
|
285
|
+
dateLastUserActivityUpdate?: string;
|
|
286
|
+
ttl?: number;
|
|
287
|
+
}
|
|
288
|
+
|
|
265
289
|
export interface AuthListResponse {
|
|
266
290
|
url: string;
|
|
267
291
|
uri: string;
|
|
@@ -296,6 +320,12 @@ export interface AuthResponse {
|
|
|
296
320
|
token?: string;
|
|
297
321
|
}
|
|
298
322
|
|
|
323
|
+
export interface AuthSignInRequest {
|
|
324
|
+
email: string;
|
|
325
|
+
password: string;
|
|
326
|
+
accountId?: string;
|
|
327
|
+
}
|
|
328
|
+
|
|
299
329
|
export interface BaseballDataRequest {
|
|
300
330
|
inning: number;
|
|
301
331
|
inningSegment: BaseballInningSegment;
|
|
@@ -351,6 +381,18 @@ export interface BaseballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
351
381
|
isHomeTeam: boolean;
|
|
352
382
|
}
|
|
353
383
|
|
|
384
|
+
export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
385
|
+
showCount: boolean;
|
|
386
|
+
showBaseRunners: boolean;
|
|
387
|
+
showLineScore: boolean;
|
|
388
|
+
showPitchCount: boolean;
|
|
389
|
+
showBattingAverage: boolean;
|
|
390
|
+
pitchClockLength?: number;
|
|
391
|
+
showPitchClock: boolean;
|
|
392
|
+
showPitchClockWhenLow: boolean;
|
|
393
|
+
enableClockAutomations: boolean;
|
|
394
|
+
}
|
|
395
|
+
|
|
354
396
|
export interface BaseballSettingsRequest extends BaseballSettings {
|
|
355
397
|
}
|
|
356
398
|
|
|
@@ -390,12 +432,54 @@ export interface BasketballScoreboardTeamResponse extends ScoreboardTeamBaseResp
|
|
|
390
432
|
doubleBonus: boolean;
|
|
391
433
|
}
|
|
392
434
|
|
|
435
|
+
export interface BasketballSettings extends ScoreboardSettingsBase {
|
|
436
|
+
periodLength: number;
|
|
437
|
+
shotClockLength?: number;
|
|
438
|
+
shotClockSecondaryLength?: number;
|
|
439
|
+
halfLength: number;
|
|
440
|
+
showGameClock: boolean;
|
|
441
|
+
showShotClock: boolean;
|
|
442
|
+
showTimeouts: boolean;
|
|
443
|
+
gamePeriods: BasketballGamePeriods;
|
|
444
|
+
timeoutAllocation?: BasketballTimeoutAllocation;
|
|
445
|
+
timeoutsFirstHalf?: number;
|
|
446
|
+
timeoutsSecondHalf?: number;
|
|
447
|
+
timeoutsTotal?: number;
|
|
448
|
+
showTeamFouls: boolean;
|
|
449
|
+
hasDoubleBonus: boolean;
|
|
450
|
+
bonusThreshold?: number;
|
|
451
|
+
doubleBonusThreshold?: number;
|
|
452
|
+
enableClockAutomations: boolean;
|
|
453
|
+
showShotClockWhenLow: boolean;
|
|
454
|
+
}
|
|
455
|
+
|
|
393
456
|
export interface BasketballSettingsRequest extends BasketballSettings {
|
|
394
457
|
}
|
|
395
458
|
|
|
396
459
|
export interface BasketballSettingsResponse extends BasketballSettings {
|
|
397
460
|
}
|
|
398
461
|
|
|
462
|
+
export interface CheckoutSessionRequest {
|
|
463
|
+
priceId: string;
|
|
464
|
+
currency: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface CheckoutSessionResponse {
|
|
468
|
+
sessionId: string;
|
|
469
|
+
redirectUrl: string;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export interface Clock {
|
|
473
|
+
clockId: string;
|
|
474
|
+
scoreboardId: string;
|
|
475
|
+
accountId: string;
|
|
476
|
+
seconds: number | null;
|
|
477
|
+
running: boolean;
|
|
478
|
+
ascending: boolean;
|
|
479
|
+
asOfTimestamp: number;
|
|
480
|
+
stopAt?: number;
|
|
481
|
+
}
|
|
482
|
+
|
|
399
483
|
export interface ClockListResponse {
|
|
400
484
|
url: string;
|
|
401
485
|
uri: string;
|
|
@@ -429,6 +513,16 @@ export interface DataExtractResponse {
|
|
|
429
513
|
|
|
430
514
|
export interface DataRow extends Array<string> { }
|
|
431
515
|
|
|
516
|
+
export interface Event {
|
|
517
|
+
eventId: string;
|
|
518
|
+
accountId: string;
|
|
519
|
+
dateCreated: string;
|
|
520
|
+
resource: string;
|
|
521
|
+
resourceUri: string;
|
|
522
|
+
subscriptionResourceUri: string;
|
|
523
|
+
data: object | null;
|
|
524
|
+
}
|
|
525
|
+
|
|
432
526
|
export interface EventResponse {
|
|
433
527
|
object: string;
|
|
434
528
|
eventId: string;
|
|
@@ -497,12 +591,65 @@ export interface FootballScoreboardTeamResponse extends ScoreboardTeamBaseRespon
|
|
|
497
591
|
possession: boolean;
|
|
498
592
|
}
|
|
499
593
|
|
|
594
|
+
export interface FootballSettings extends ScoreboardSettingsBase {
|
|
595
|
+
periodLength: number;
|
|
596
|
+
halfLength: number;
|
|
597
|
+
playClockLength?: number;
|
|
598
|
+
playClockSecondaryLength?: number;
|
|
599
|
+
timeoutsPerHalf?: number;
|
|
600
|
+
showGameClock: boolean;
|
|
601
|
+
showPlayClock: boolean;
|
|
602
|
+
showTimeouts: boolean;
|
|
603
|
+
showPossession: boolean;
|
|
604
|
+
downAndDistanceDisplay: DownAndDistanceDisplay;
|
|
605
|
+
hideFlagAfter: number;
|
|
606
|
+
clockStopsOnFirstDown: boolean;
|
|
607
|
+
enableMercyRule: boolean;
|
|
608
|
+
enableClockAutomations: boolean;
|
|
609
|
+
showPlayClockWhenLow: boolean;
|
|
610
|
+
}
|
|
611
|
+
|
|
500
612
|
export interface FootballSettingsRequest extends FootballSettings {
|
|
501
613
|
}
|
|
502
614
|
|
|
503
615
|
export interface FootballSettingsResponse extends FootballSettings {
|
|
504
616
|
}
|
|
505
617
|
|
|
618
|
+
export interface MagicLinkScoreboardGuestRequest {
|
|
619
|
+
scoreboardId: string;
|
|
620
|
+
expiresInHours: number;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export interface MetaMessage {
|
|
624
|
+
type: MetaMessageType;
|
|
625
|
+
accountId: string;
|
|
626
|
+
subscriptionResource: string;
|
|
627
|
+
subscriptionResourceUri: string;
|
|
628
|
+
dateCreated: string;
|
|
629
|
+
message: string | null;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export interface NewAccountRequest {
|
|
633
|
+
email: string;
|
|
634
|
+
password: string;
|
|
635
|
+
name?: string;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export interface OAuthBindingRequest {
|
|
639
|
+
messageCipher: string;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export interface OAuthResponse {
|
|
643
|
+
auth?: AuthResponse;
|
|
644
|
+
userCredentials?: UserCredentialsResponse;
|
|
645
|
+
oAuthProvider: OAuthProvider;
|
|
646
|
+
oAuthProviderId: string;
|
|
647
|
+
oAuthProviderEmail: string;
|
|
648
|
+
oAuthProviderName: string;
|
|
649
|
+
messageCipher?: string;
|
|
650
|
+
dateNow: string;
|
|
651
|
+
}
|
|
652
|
+
|
|
506
653
|
export interface OverlayRequest {
|
|
507
654
|
type: "players" | "sponsors";
|
|
508
655
|
data: PlayerSummaryRequest[] | SponsorSummaryRequest[];
|
|
@@ -579,6 +726,10 @@ export interface PlayerSummaryResponse {
|
|
|
579
726
|
imageMediumUrl: string | null;
|
|
580
727
|
}
|
|
581
728
|
|
|
729
|
+
export interface PortalSessionResponse {
|
|
730
|
+
redirectUrl: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
582
733
|
export interface PresetListResponse {
|
|
583
734
|
url: string;
|
|
584
735
|
uri: string;
|
|
@@ -635,7 +786,7 @@ export interface RosterResponse {
|
|
|
635
786
|
accountId: string;
|
|
636
787
|
dateCreated: string;
|
|
637
788
|
dateModified: string;
|
|
638
|
-
|
|
789
|
+
testProperty?: string;
|
|
639
790
|
}
|
|
640
791
|
|
|
641
792
|
export interface ScoreboardActivationListResponse {
|
|
@@ -751,6 +902,17 @@ export interface SoccerScoreboardTeamResponse extends ScoreboardTeamBaseResponse
|
|
|
751
902
|
penaltyCard?: SoccerPenaltyCardResponse;
|
|
752
903
|
}
|
|
753
904
|
|
|
905
|
+
export interface SoccerSettings extends ScoreboardSettingsBase {
|
|
906
|
+
periodLength: number;
|
|
907
|
+
halfLength: number;
|
|
908
|
+
extraTimeLength: number;
|
|
909
|
+
showGameClock: boolean;
|
|
910
|
+
gamePeriods: SoccerGamePeriods;
|
|
911
|
+
extraTimeLabel: ExtraTimeLabel;
|
|
912
|
+
hasStoppageTime: boolean;
|
|
913
|
+
hidePenaltyCardAfter: number;
|
|
914
|
+
}
|
|
915
|
+
|
|
754
916
|
export interface SoccerSettingsRequest extends SoccerSettings {
|
|
755
917
|
}
|
|
756
918
|
|
|
@@ -807,6 +969,17 @@ export interface SponsorSummaryResponse {
|
|
|
807
969
|
imageMediumUrl: string | null;
|
|
808
970
|
}
|
|
809
971
|
|
|
972
|
+
export interface SupportEmailRequest {
|
|
973
|
+
from: string;
|
|
974
|
+
subject: string;
|
|
975
|
+
name: string;
|
|
976
|
+
body: string;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export interface SupportEmailResponse {
|
|
980
|
+
dateCreated: string;
|
|
981
|
+
}
|
|
982
|
+
|
|
810
983
|
export interface TeamListResponse {
|
|
811
984
|
url: string;
|
|
812
985
|
uri: string;
|
|
@@ -908,6 +1081,11 @@ export interface UserResponse {
|
|
|
908
1081
|
dateLastActivity: string | null;
|
|
909
1082
|
}
|
|
910
1083
|
|
|
1084
|
+
export interface UserUpdateRequest {
|
|
1085
|
+
name?: string;
|
|
1086
|
+
permissions?: Permissions;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
911
1089
|
export interface VolleyballDataRequest {
|
|
912
1090
|
set: number | null;
|
|
913
1091
|
team1: VolleyballScoreboardTeamRequest;
|
|
@@ -941,6 +1119,13 @@ export interface VolleyballScoreboardTeamResponse extends ScoreboardTeamBaseResp
|
|
|
941
1119
|
finalSetScores: (number | null)[];
|
|
942
1120
|
}
|
|
943
1121
|
|
|
1122
|
+
export interface VolleyballSettings extends ScoreboardSettingsBase {
|
|
1123
|
+
sets: number;
|
|
1124
|
+
timeoutsPerSet?: number;
|
|
1125
|
+
showTimeouts: boolean;
|
|
1126
|
+
showServing: boolean;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
944
1129
|
export interface VolleyballSettingsRequest extends VolleyballSettings {
|
|
945
1130
|
}
|
|
946
1131
|
|
|
@@ -957,6 +1142,11 @@ export interface WebsocketConnectionIdResponse {
|
|
|
957
1142
|
dateCreated: string;
|
|
958
1143
|
}
|
|
959
1144
|
|
|
1145
|
+
export interface WebsocketHeartbeatCommand {
|
|
1146
|
+
action: "sendmessage";
|
|
1147
|
+
operation: WebsocketOperation.SendHeartbeat;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
960
1150
|
export interface WebsocketMessage {
|
|
961
1151
|
type: WebsocketMessageType;
|
|
962
1152
|
error: boolean
|
|
@@ -1019,6 +1209,22 @@ export interface WrestlingScoreboardTeamResponse extends ScoreboardTeamBaseRespo
|
|
|
1019
1209
|
bandColor: "red" | "blue" | "green" | null;
|
|
1020
1210
|
}
|
|
1021
1211
|
|
|
1212
|
+
export interface WrestlingSettings extends ScoreboardSettingsBase {
|
|
1213
|
+
style: WrestlingStyle;
|
|
1214
|
+
weightType: "kg" | "lb";
|
|
1215
|
+
meetType: WrestlingMeetType;
|
|
1216
|
+
showPeriodClock: boolean;
|
|
1217
|
+
periodLength: number;
|
|
1218
|
+
periodCount: number;
|
|
1219
|
+
initialPeriodLength?: number;
|
|
1220
|
+
suddenVictoryLength?: number;
|
|
1221
|
+
tieBreakerLength?: number;
|
|
1222
|
+
ultimateTieBreakerLength?: number;
|
|
1223
|
+
hasUltimateTieBreaker: boolean;
|
|
1224
|
+
bandColors: Array<"red" | "green" | "blue"> | [];
|
|
1225
|
+
trackTeamScores: boolean;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1022
1228
|
export interface WrestlingSettingsRequest extends WrestlingSettings {
|
|
1023
1229
|
}
|
|
1024
1230
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scoreboardmax/api-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "TypeScript definitions for ScoreboardMax API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bugs": {
|
|
29
29
|
"url": "https://github.com/ScoreboardMax/scoreboardmax-api-types/issues"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://scoreboardmax.com/api/docs",
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
}
|