@scoreboardmax/api-types 1.0.34-next.0 → 1.0.34-next.10

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 CHANGED
@@ -55,12 +55,15 @@ 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";
61
62
  ApiResource["RosterList"] = "rosterList";
62
63
  ApiResource["Scoreboard"] = "scoreboard";
63
64
  ApiResource["ScoreboardList"] = "scoreboardList";
65
+ ApiResource["ScoreboardLog"] = "scoreboardLog";
66
+ ApiResource["ScoreboardLogList"] = "scoreboardLogList";
64
67
  ApiResource["Sponsor"] = "sponsor";
65
68
  ApiResource["SponsorList"] = "sponsorList";
66
69
  ApiResource["Team"] = "team";
@@ -75,6 +78,8 @@ var ApiResource;
75
78
  ApiResource["OverlayList"] = "overlayList";
76
79
  ApiResource["Preset"] = "preset";
77
80
  ApiResource["PresetList"] = "presetList";
81
+ ApiResource["Game"] = "game";
82
+ ApiResource["GameList"] = "gameList";
78
83
  })(ApiResource || (exports.ApiResource = ApiResource = {}));
79
84
  var AppType;
80
85
  (function (AppType) {
@@ -154,6 +159,7 @@ var ErrorCode;
154
159
  ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
155
160
  ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
156
161
  ErrorCode["InvalidAuthType"] = "InvalidAuthType";
162
+ ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
157
163
  ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
158
164
  ErrorCode["InvalidDate"] = "InvalidDate";
159
165
  ErrorCode["InvalidInput"] = "InvalidInput";
@@ -196,6 +202,7 @@ var FileType;
196
202
  FileType["AccountLogo"] = "accountLogo";
197
203
  FileType["PlayerPhoto"] = "playerPhoto";
198
204
  FileType["SponsorLogo"] = "sponsorLogo";
205
+ FileType["InsightLogo"] = "insightLogo";
199
206
  FileType["Temporary"] = "temporary";
200
207
  })(FileType || (exports.FileType = FileType = {}));
201
208
  var FootballPeriod;
@@ -225,8 +232,6 @@ var OAuthAction;
225
232
  OAuthAction["NewUserCreated"] = "new_user_created";
226
233
  OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
227
234
  OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
228
- OAuthAction["RequiresUserDecision"] = "requires_user_decision";
229
- OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
230
235
  })(OAuthAction || (exports.OAuthAction = OAuthAction = {}));
231
236
  var OAuthProvider;
232
237
  (function (OAuthProvider) {
package/dist/index.d.ts CHANGED
@@ -32,12 +32,15 @@ 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",
38
39
  RosterList = "rosterList",
39
40
  Scoreboard = "scoreboard",
40
41
  ScoreboardList = "scoreboardList",
42
+ ScoreboardLog = "scoreboardLog",
43
+ ScoreboardLogList = "scoreboardLogList",
41
44
  Sponsor = "sponsor",
42
45
  SponsorList = "sponsorList",
43
46
  Team = "team",
@@ -51,7 +54,9 @@ export declare enum ApiResource {
51
54
  Overlay = "overlay",
52
55
  OverlayList = "overlayList",
53
56
  Preset = "preset",
54
- PresetList = "presetList"
57
+ PresetList = "presetList",
58
+ Game = "game",
59
+ GameList = "gameList"
55
60
  }
56
61
  export declare enum AppType {
57
62
  Template = "template"
@@ -120,6 +125,7 @@ export declare enum ErrorCode {
120
125
  InsufficientResourcePermissions = "InsufficientResourcePermissions",
121
126
  InsufficientResourceItemPermissions = "InsufficientResourceItemPermissions",
122
127
  InvalidAuthType = "InvalidAuthType",
128
+ InvalidCaptchaToken = "InvalidCaptchaToken",
123
129
  InvalidColorFormat = "InvalidColorFormat",
124
130
  InvalidDate = "InvalidDate",
125
131
  InvalidInput = "InvalidInput",
@@ -159,6 +165,7 @@ export declare enum FileType {
159
165
  AccountLogo = "accountLogo",
160
166
  PlayerPhoto = "playerPhoto",
161
167
  SponsorLogo = "sponsorLogo",
168
+ InsightLogo = "insightLogo",
162
169
  Temporary = "temporary"
163
170
  }
164
171
  export declare enum FootballPeriod {
@@ -183,9 +190,7 @@ export declare enum MetaMessageType {
183
190
  export declare enum OAuthAction {
184
191
  NewUserCreated = "new_user_created",
185
192
  ExistingUserSignedIn = "existing_user_signed_in",
186
- ProviderLinkedAndSignedIn = "provider_linked_and_signed_in",
187
- RequiresUserDecision = "requires_user_decision",
188
- NewAccountForExistingUser = "new_account_for_existing_user"
193
+ ProviderLinkedAndSignedIn = "provider_linked_and_signed_in"
189
194
  }
190
195
  export declare enum OAuthProvider {
191
196
  Google = "google"
@@ -458,6 +463,7 @@ export interface BaseInput {
458
463
  }
459
464
  export interface BasketballDataRequest {
460
465
  period: BasketballPeriod;
466
+ overtimeNumber?: number;
461
467
  team1: BasketballScoreboardTeamRequest;
462
468
  team2: BasketballScoreboardTeamRequest;
463
469
  settings?: BasketballSettingsRequest;
@@ -465,10 +471,45 @@ export interface BasketballDataRequest {
465
471
  export interface BasketballDataResponse {
466
472
  type: ScoreboardType;
467
473
  period: BasketballPeriod;
474
+ overtimeNumber?: number;
468
475
  team1: BasketballScoreboardTeamResponse;
469
476
  team2: BasketballScoreboardTeamResponse;
470
477
  settings: BasketballSettingsResponse;
471
478
  }
479
+ export interface BasketballInsightResponse {
480
+ team1: BasketballInsightTeamResponse;
481
+ team2: BasketballInsightTeamResponse;
482
+ timelinePoints: BasketballTimelinePointResponse[];
483
+ periodEndPoints: BasketballTimelinePointResponse[];
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: BasketballTimelinePointResponse | null;
493
+ largestLeadPointTeam2: BasketballTimelinePointResponse | null;
494
+ }
495
+ export interface BasketballInsightTeamResponse {
496
+ name: string;
497
+ color: string;
498
+ logoUrl: string | null;
499
+ score: number;
500
+ }
501
+ export interface BasketballRunSummary {
502
+ team: "team1" | "team2";
503
+ points: number;
504
+ opponentPoints: number;
505
+ startSeq: number;
506
+ endSeq: number;
507
+ startLeader: "team1" | "team2" | null;
508
+ endLeader: "team1" | "team2" | null;
509
+ causedLeadChange: boolean;
510
+ }
511
+ export interface BasketballRunSummaryResponse extends BasketballRunSummary {
512
+ }
472
513
  export interface BasketballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
473
514
  score: number;
474
515
  timeoutsLeft: number;
@@ -490,6 +531,7 @@ export interface BasketballSettings extends ScoreboardSettingsBase {
490
531
  shotClockLength?: number;
491
532
  shotClockSecondaryLength?: number;
492
533
  halfLength: number;
534
+ overtimeLength: number;
493
535
  showGameClock: boolean;
494
536
  showShotClock: boolean;
495
537
  showTimeouts: boolean;
@@ -509,6 +551,21 @@ export interface BasketballSettingsRequest extends BasketballSettings {
509
551
  }
510
552
  export interface BasketballSettingsResponse extends BasketballSettings {
511
553
  }
554
+ export interface BasketballTimelinePoint {
555
+ seq: number;
556
+ period: BasketballPeriod;
557
+ overtimeNumber?: number;
558
+ team1Score: number;
559
+ team2Score: number;
560
+ leader: "team1" | "team2" | null;
561
+ leadAmount: number;
562
+ periodSecondsRemaining?: number;
563
+ gameSecond?: number;
564
+ timeInferred?: boolean;
565
+ clockJumpAfter?: boolean;
566
+ }
567
+ export interface BasketballTimelinePointResponse extends BasketballTimelinePoint {
568
+ }
512
569
  export interface BooleanInput extends BaseInput {
513
570
  type: "boolean";
514
571
  default: boolean;
@@ -635,6 +692,7 @@ export interface FootballDataRequest {
635
692
  distanceToGo: string | null;
636
693
  flag: boolean;
637
694
  period: FootballPeriod;
695
+ overtimeNumber?: number;
638
696
  team1: FootballScoreboardTeamRequest;
639
697
  team2: FootballScoreboardTeamRequest;
640
698
  settings?: FootballSettingsRequest;
@@ -645,6 +703,7 @@ export interface FootballDataResponse {
645
703
  distanceToGo: string | null;
646
704
  flag: boolean;
647
705
  period: FootballPeriod;
706
+ overtimeNumber?: number;
648
707
  team1: FootballScoreboardTeamResponse;
649
708
  team2: FootballScoreboardTeamResponse;
650
709
  settings: FootballSettingsResponse;
@@ -665,6 +724,8 @@ export interface FootballSettings extends ScoreboardSettingsBase {
665
724
  playClockLength?: number;
666
725
  playClockSecondaryLength?: number;
667
726
  timeoutsPerHalf?: number;
727
+ overtimeLength?: number;
728
+ overtimeHasClock: boolean;
668
729
  showGameClock: boolean;
669
730
  showPlayClock: boolean;
670
731
  showTimeouts: boolean;
@@ -680,6 +741,42 @@ export interface FootballSettingsRequest extends FootballSettings {
680
741
  }
681
742
  export interface FootballSettingsResponse extends FootballSettings {
682
743
  }
744
+ export interface GameListResponse {
745
+ url: string;
746
+ uri: string;
747
+ pageNext: string | null;
748
+ data: GameResponse[];
749
+ }
750
+ export interface GameRequest {
751
+ description: string;
752
+ }
753
+ export interface GameResponse {
754
+ object: string;
755
+ url: string;
756
+ uri: string;
757
+ scoreboardId: string;
758
+ gameId: string;
759
+ type: ScoreboardType;
760
+ startLogId: string;
761
+ endLogId?: string;
762
+ description: string;
763
+ dateGameStart: string;
764
+ dateGameEnd?: string;
765
+ dateCreated: string;
766
+ dateModified: string;
767
+ }
768
+ export interface InsightResponse {
769
+ object: string;
770
+ url: string;
771
+ uri: string;
772
+ accountId: string;
773
+ scoreboardId: string;
774
+ scoreboardType: ScoreboardType;
775
+ dateStart: string;
776
+ dateEnd: string;
777
+ qualityScore: number;
778
+ data: BasketballInsightResponse;
779
+ }
683
780
  export interface MagicLinkResponse {
684
781
  object: string;
685
782
  magicLinkId: string;
@@ -708,6 +805,7 @@ export interface NewAccountRequest {
708
805
  email: string;
709
806
  password: string;
710
807
  name?: string;
808
+ captchaToken?: string;
711
809
  }
712
810
  export interface NumberInput extends BaseInput {
713
811
  type: "number";
@@ -716,9 +814,6 @@ export interface NumberInput extends BaseInput {
716
814
  max?: number;
717
815
  step?: number;
718
816
  }
719
- export interface OAuthBindingRequest {
720
- messageCipher: string;
721
- }
722
817
  export interface OAuthRequest {
723
818
  code: string;
724
819
  redirectUri: string;
@@ -730,7 +825,6 @@ export interface OAuthResponse {
730
825
  oAuthProviderId: string;
731
826
  oAuthProviderEmail: string;
732
827
  oAuthProviderName: string;
733
- messageCipher?: string;
734
828
  dateNow: string;
735
829
  action: OAuthAction;
736
830
  }
@@ -1215,6 +1309,7 @@ export interface VolleyballDataResponse {
1215
1309
  team1: VolleyballScoreboardTeamResponse;
1216
1310
  team2: VolleyballScoreboardTeamResponse;
1217
1311
  settings: VolleyballSettingsResponse;
1312
+ setFirstServingTeam: "team1" | "team2" | null;
1218
1313
  }
1219
1314
  export interface VolleyballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
1220
1315
  setScore: number;
package/dist/index.mjs CHANGED
@@ -46,12 +46,15 @@ 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";
52
53
  ApiResource["RosterList"] = "rosterList";
53
54
  ApiResource["Scoreboard"] = "scoreboard";
54
55
  ApiResource["ScoreboardList"] = "scoreboardList";
56
+ ApiResource["ScoreboardLog"] = "scoreboardLog";
57
+ ApiResource["ScoreboardLogList"] = "scoreboardLogList";
55
58
  ApiResource["Sponsor"] = "sponsor";
56
59
  ApiResource["SponsorList"] = "sponsorList";
57
60
  ApiResource["Team"] = "team";
@@ -66,6 +69,8 @@ export var ApiResource;
66
69
  ApiResource["OverlayList"] = "overlayList";
67
70
  ApiResource["Preset"] = "preset";
68
71
  ApiResource["PresetList"] = "presetList";
72
+ ApiResource["Game"] = "game";
73
+ ApiResource["GameList"] = "gameList";
69
74
  })(ApiResource || (ApiResource = {}));
70
75
  export var AppType;
71
76
  (function (AppType) {
@@ -145,6 +150,7 @@ export var ErrorCode;
145
150
  ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
146
151
  ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
147
152
  ErrorCode["InvalidAuthType"] = "InvalidAuthType";
153
+ ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
148
154
  ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
149
155
  ErrorCode["InvalidDate"] = "InvalidDate";
150
156
  ErrorCode["InvalidInput"] = "InvalidInput";
@@ -187,6 +193,7 @@ export var FileType;
187
193
  FileType["AccountLogo"] = "accountLogo";
188
194
  FileType["PlayerPhoto"] = "playerPhoto";
189
195
  FileType["SponsorLogo"] = "sponsorLogo";
196
+ FileType["InsightLogo"] = "insightLogo";
190
197
  FileType["Temporary"] = "temporary";
191
198
  })(FileType || (FileType = {}));
192
199
  export var FootballPeriod;
@@ -216,8 +223,6 @@ export var OAuthAction;
216
223
  OAuthAction["NewUserCreated"] = "new_user_created";
217
224
  OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
218
225
  OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
219
- OAuthAction["RequiresUserDecision"] = "requires_user_decision";
220
- OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
221
226
  })(OAuthAction || (OAuthAction = {}));
222
227
  export var OAuthProvider;
223
228
  (function (OAuthProvider) {
package/dist/internal.cjs CHANGED
@@ -74,12 +74,15 @@ 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";
80
81
  ApiResource["RosterList"] = "rosterList";
81
82
  ApiResource["Scoreboard"] = "scoreboard";
82
83
  ApiResource["ScoreboardList"] = "scoreboardList";
84
+ ApiResource["ScoreboardLog"] = "scoreboardLog";
85
+ ApiResource["ScoreboardLogList"] = "scoreboardLogList";
83
86
  ApiResource["Sponsor"] = "sponsor";
84
87
  ApiResource["SponsorList"] = "sponsorList";
85
88
  ApiResource["Team"] = "team";
@@ -94,6 +97,8 @@ var ApiResource;
94
97
  ApiResource["OverlayList"] = "overlayList";
95
98
  ApiResource["Preset"] = "preset";
96
99
  ApiResource["PresetList"] = "presetList";
100
+ ApiResource["Game"] = "game";
101
+ ApiResource["GameList"] = "gameList";
97
102
  })(ApiResource || (exports.ApiResource = ApiResource = {}));
98
103
  var AppType;
99
104
  (function (AppType) {
@@ -173,6 +178,7 @@ var ErrorCode;
173
178
  ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
174
179
  ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
175
180
  ErrorCode["InvalidAuthType"] = "InvalidAuthType";
181
+ ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
176
182
  ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
177
183
  ErrorCode["InvalidDate"] = "InvalidDate";
178
184
  ErrorCode["InvalidInput"] = "InvalidInput";
@@ -215,6 +221,7 @@ var FileType;
215
221
  FileType["AccountLogo"] = "accountLogo";
216
222
  FileType["PlayerPhoto"] = "playerPhoto";
217
223
  FileType["SponsorLogo"] = "sponsorLogo";
224
+ FileType["InsightLogo"] = "insightLogo";
218
225
  FileType["Temporary"] = "temporary";
219
226
  })(FileType || (exports.FileType = FileType = {}));
220
227
  var FootballPeriod;
@@ -244,8 +251,6 @@ var OAuthAction;
244
251
  OAuthAction["NewUserCreated"] = "new_user_created";
245
252
  OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
246
253
  OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
247
- OAuthAction["RequiresUserDecision"] = "requires_user_decision";
248
- OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
249
254
  })(OAuthAction || (exports.OAuthAction = OAuthAction = {}));
250
255
  var OAuthProvider;
251
256
  (function (OAuthProvider) {
@@ -39,12 +39,15 @@ 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",
45
46
  RosterList = "rosterList",
46
47
  Scoreboard = "scoreboard",
47
48
  ScoreboardList = "scoreboardList",
49
+ ScoreboardLog = "scoreboardLog",
50
+ ScoreboardLogList = "scoreboardLogList",
48
51
  Sponsor = "sponsor",
49
52
  SponsorList = "sponsorList",
50
53
  Team = "team",
@@ -58,7 +61,9 @@ export declare enum ApiResource {
58
61
  Overlay = "overlay",
59
62
  OverlayList = "overlayList",
60
63
  Preset = "preset",
61
- PresetList = "presetList"
64
+ PresetList = "presetList",
65
+ Game = "game",
66
+ GameList = "gameList"
62
67
  }
63
68
  export declare enum AppType {
64
69
  Template = "template"
@@ -127,6 +132,7 @@ export declare enum ErrorCode {
127
132
  InsufficientResourcePermissions = "InsufficientResourcePermissions",
128
133
  InsufficientResourceItemPermissions = "InsufficientResourceItemPermissions",
129
134
  InvalidAuthType = "InvalidAuthType",
135
+ InvalidCaptchaToken = "InvalidCaptchaToken",
130
136
  InvalidColorFormat = "InvalidColorFormat",
131
137
  InvalidDate = "InvalidDate",
132
138
  InvalidInput = "InvalidInput",
@@ -166,6 +172,7 @@ export declare enum FileType {
166
172
  AccountLogo = "accountLogo",
167
173
  PlayerPhoto = "playerPhoto",
168
174
  SponsorLogo = "sponsorLogo",
175
+ InsightLogo = "insightLogo",
169
176
  Temporary = "temporary"
170
177
  }
171
178
  export declare enum FootballPeriod {
@@ -190,9 +197,7 @@ export declare enum MetaMessageType {
190
197
  export declare enum OAuthAction {
191
198
  NewUserCreated = "new_user_created",
192
199
  ExistingUserSignedIn = "existing_user_signed_in",
193
- ProviderLinkedAndSignedIn = "provider_linked_and_signed_in",
194
- RequiresUserDecision = "requires_user_decision",
195
- NewAccountForExistingUser = "new_account_for_existing_user"
200
+ ProviderLinkedAndSignedIn = "provider_linked_and_signed_in"
196
201
  }
197
202
  export declare enum OAuthProvider {
198
203
  Google = "google"
@@ -476,6 +481,7 @@ export interface BaseInput {
476
481
  }
477
482
  export interface BasketballDataRequest {
478
483
  period: BasketballPeriod;
484
+ overtimeNumber?: number;
479
485
  team1: BasketballScoreboardTeamRequest;
480
486
  team2: BasketballScoreboardTeamRequest;
481
487
  settings?: BasketballSettingsRequest;
@@ -483,10 +489,45 @@ export interface BasketballDataRequest {
483
489
  export interface BasketballDataResponse {
484
490
  type: ScoreboardType;
485
491
  period: BasketballPeriod;
492
+ overtimeNumber?: number;
486
493
  team1: BasketballScoreboardTeamResponse;
487
494
  team2: BasketballScoreboardTeamResponse;
488
495
  settings: BasketballSettingsResponse;
489
496
  }
497
+ export interface BasketballInsightResponse {
498
+ team1: BasketballInsightTeamResponse;
499
+ team2: BasketballInsightTeamResponse;
500
+ timelinePoints: BasketballTimelinePointResponse[];
501
+ periodEndPoints: BasketballTimelinePointResponse[];
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: BasketballTimelinePointResponse | null;
511
+ largestLeadPointTeam2: BasketballTimelinePointResponse | null;
512
+ }
513
+ export interface BasketballInsightTeamResponse {
514
+ name: string;
515
+ color: string;
516
+ logoUrl: string | null;
517
+ score: number;
518
+ }
519
+ export interface BasketballRunSummary {
520
+ team: "team1" | "team2";
521
+ points: number;
522
+ opponentPoints: number;
523
+ startSeq: number;
524
+ endSeq: number;
525
+ startLeader: "team1" | "team2" | null;
526
+ endLeader: "team1" | "team2" | null;
527
+ causedLeadChange: boolean;
528
+ }
529
+ export interface BasketballRunSummaryResponse extends BasketballRunSummary {
530
+ }
490
531
  export interface BasketballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
491
532
  score: number;
492
533
  timeoutsLeft: number;
@@ -508,6 +549,7 @@ export interface BasketballSettings extends ScoreboardSettingsBase {
508
549
  shotClockLength?: number;
509
550
  shotClockSecondaryLength?: number;
510
551
  halfLength: number;
552
+ overtimeLength: number;
511
553
  showGameClock: boolean;
512
554
  showShotClock: boolean;
513
555
  showTimeouts: boolean;
@@ -527,6 +569,21 @@ export interface BasketballSettingsRequest extends BasketballSettings {
527
569
  }
528
570
  export interface BasketballSettingsResponse extends BasketballSettings {
529
571
  }
572
+ export interface BasketballTimelinePoint {
573
+ seq: number;
574
+ period: BasketballPeriod;
575
+ overtimeNumber?: number;
576
+ team1Score: number;
577
+ team2Score: number;
578
+ leader: "team1" | "team2" | null;
579
+ leadAmount: number;
580
+ periodSecondsRemaining?: number;
581
+ gameSecond?: number;
582
+ timeInferred?: boolean;
583
+ clockJumpAfter?: boolean;
584
+ }
585
+ export interface BasketballTimelinePointResponse extends BasketballTimelinePoint {
586
+ }
530
587
  export interface BooleanInput extends BaseInput {
531
588
  type: "boolean";
532
589
  default: boolean;
@@ -653,6 +710,7 @@ export interface FootballDataRequest {
653
710
  distanceToGo: string | null;
654
711
  flag: boolean;
655
712
  period: FootballPeriod;
713
+ overtimeNumber?: number;
656
714
  team1: FootballScoreboardTeamRequest;
657
715
  team2: FootballScoreboardTeamRequest;
658
716
  settings?: FootballSettingsRequest;
@@ -663,6 +721,7 @@ export interface FootballDataResponse {
663
721
  distanceToGo: string | null;
664
722
  flag: boolean;
665
723
  period: FootballPeriod;
724
+ overtimeNumber?: number;
666
725
  team1: FootballScoreboardTeamResponse;
667
726
  team2: FootballScoreboardTeamResponse;
668
727
  settings: FootballSettingsResponse;
@@ -683,6 +742,8 @@ export interface FootballSettings extends ScoreboardSettingsBase {
683
742
  playClockLength?: number;
684
743
  playClockSecondaryLength?: number;
685
744
  timeoutsPerHalf?: number;
745
+ overtimeLength?: number;
746
+ overtimeHasClock: boolean;
686
747
  showGameClock: boolean;
687
748
  showPlayClock: boolean;
688
749
  showTimeouts: boolean;
@@ -698,6 +759,42 @@ export interface FootballSettingsRequest extends FootballSettings {
698
759
  }
699
760
  export interface FootballSettingsResponse extends FootballSettings {
700
761
  }
762
+ export interface GameListResponse {
763
+ url: string;
764
+ uri: string;
765
+ pageNext: string | null;
766
+ data: GameResponse[];
767
+ }
768
+ export interface GameRequest {
769
+ description: string;
770
+ }
771
+ export interface GameResponse {
772
+ object: string;
773
+ url: string;
774
+ uri: string;
775
+ scoreboardId: string;
776
+ gameId: string;
777
+ type: ScoreboardType;
778
+ startLogId: string;
779
+ endLogId?: string;
780
+ description: string;
781
+ dateGameStart: string;
782
+ dateGameEnd?: string;
783
+ dateCreated: string;
784
+ dateModified: string;
785
+ }
786
+ export interface InsightResponse {
787
+ object: string;
788
+ url: string;
789
+ uri: string;
790
+ accountId: string;
791
+ scoreboardId: string;
792
+ scoreboardType: ScoreboardType;
793
+ dateStart: string;
794
+ dateEnd: string;
795
+ qualityScore: number;
796
+ data: BasketballInsightResponse;
797
+ }
701
798
  export interface MagicLinkResponse {
702
799
  object: string;
703
800
  magicLinkId: string;
@@ -726,6 +823,7 @@ export interface NewAccountRequest {
726
823
  email: string;
727
824
  password: string;
728
825
  name?: string;
826
+ captchaToken?: string;
729
827
  }
730
828
  export interface NumberInput extends BaseInput {
731
829
  type: "number";
@@ -734,9 +832,6 @@ export interface NumberInput extends BaseInput {
734
832
  max?: number;
735
833
  step?: number;
736
834
  }
737
- export interface OAuthBindingRequest {
738
- messageCipher: string;
739
- }
740
835
  export interface OAuthRequest {
741
836
  code: string;
742
837
  redirectUri: string;
@@ -748,7 +843,6 @@ export interface OAuthResponse {
748
843
  oAuthProviderId: string;
749
844
  oAuthProviderEmail: string;
750
845
  oAuthProviderName: string;
751
- messageCipher?: string;
752
846
  dateNow: string;
753
847
  action: OAuthAction;
754
848
  }
@@ -1246,6 +1340,7 @@ export interface VolleyballDataResponse {
1246
1340
  team1: VolleyballScoreboardTeamResponse;
1247
1341
  team2: VolleyballScoreboardTeamResponse;
1248
1342
  settings: VolleyballSettingsResponse;
1343
+ setFirstServingTeam: "team1" | "team2" | null;
1249
1344
  }
1250
1345
  export interface VolleyballScoreboardTeamRequest extends ScoreboardTeamBaseRequest {
1251
1346
  setScore: number;
package/dist/internal.mjs CHANGED
@@ -61,12 +61,15 @@ 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";
67
68
  ApiResource["RosterList"] = "rosterList";
68
69
  ApiResource["Scoreboard"] = "scoreboard";
69
70
  ApiResource["ScoreboardList"] = "scoreboardList";
71
+ ApiResource["ScoreboardLog"] = "scoreboardLog";
72
+ ApiResource["ScoreboardLogList"] = "scoreboardLogList";
70
73
  ApiResource["Sponsor"] = "sponsor";
71
74
  ApiResource["SponsorList"] = "sponsorList";
72
75
  ApiResource["Team"] = "team";
@@ -81,6 +84,8 @@ export var ApiResource;
81
84
  ApiResource["OverlayList"] = "overlayList";
82
85
  ApiResource["Preset"] = "preset";
83
86
  ApiResource["PresetList"] = "presetList";
87
+ ApiResource["Game"] = "game";
88
+ ApiResource["GameList"] = "gameList";
84
89
  })(ApiResource || (ApiResource = {}));
85
90
  export var AppType;
86
91
  (function (AppType) {
@@ -160,6 +165,7 @@ export var ErrorCode;
160
165
  ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
161
166
  ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
162
167
  ErrorCode["InvalidAuthType"] = "InvalidAuthType";
168
+ ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
163
169
  ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
164
170
  ErrorCode["InvalidDate"] = "InvalidDate";
165
171
  ErrorCode["InvalidInput"] = "InvalidInput";
@@ -202,6 +208,7 @@ export var FileType;
202
208
  FileType["AccountLogo"] = "accountLogo";
203
209
  FileType["PlayerPhoto"] = "playerPhoto";
204
210
  FileType["SponsorLogo"] = "sponsorLogo";
211
+ FileType["InsightLogo"] = "insightLogo";
205
212
  FileType["Temporary"] = "temporary";
206
213
  })(FileType || (FileType = {}));
207
214
  export var FootballPeriod;
@@ -231,8 +238,6 @@ export var OAuthAction;
231
238
  OAuthAction["NewUserCreated"] = "new_user_created";
232
239
  OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
233
240
  OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
234
- OAuthAction["RequiresUserDecision"] = "requires_user_decision";
235
- OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
236
241
  })(OAuthAction || (OAuthAction = {}));
237
242
  export var OAuthProvider;
238
243
  (function (OAuthProvider) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scoreboardmax/api-types",
3
- "version": "1.0.34-next.0",
3
+ "version": "1.0.34-next.10",
4
4
  "description": "TypeScript definitions for ScoreboardMax API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",