@scoreboardmax/api-types 1.0.25 → 1.0.27
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 +17 -4
- package/dist/index.d.ts +41 -22
- package/dist/index.mjs +16 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.WebsocketMessageType = exports.TemplateUseCase = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.SoccerGamePeriods = exports.ScoreboardType = exports.ScoreboardCode = exports.PlanId = exports.OAuthProvider = exports.MetaMessageType = exports.MagicLinkType = exports.FootballPeriod = exports.FileType = exports.ExtraTimeLabel = exports.EventAction = exports.ErrorCode = exports.DownAndDistanceDisplay = exports.ContentType = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballPeriod = exports.BasketballGamePeriods = exports.BaseballInningSegment = exports.AuthType = exports.AppType = exports.ApiResource = exports.ApiAction = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = void 0;
|
|
10
|
+
exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.WebsocketMessageType = exports.VolleyballSet = exports.TemplateUseCase = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.SoccerGamePeriods = exports.ScoreboardType = exports.ScoreboardCode = exports.PlanId = exports.OAuthProvider = exports.MetaMessageType = exports.MagicLinkType = exports.FootballPeriod = exports.FileType = exports.ExtraTimeLabel = exports.EventAction = exports.ErrorCode = exports.DownAndDistanceDisplay = exports.DisplayConnectionStatus = exports.ContentType = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballPeriod = exports.BasketballGamePeriods = exports.BaseballInningSegment = exports.AuthType = exports.AppType = exports.ApiResource = exports.ApiAction = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = void 0;
|
|
11
11
|
const isBaseballData = (data) => {
|
|
12
12
|
return data.type === ScoreboardType.Baseball;
|
|
13
13
|
};
|
|
@@ -131,6 +131,13 @@ var ContentType;
|
|
|
131
131
|
ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
132
132
|
ContentType["Zip"] = "application/zip";
|
|
133
133
|
})(ContentType || (exports.ContentType = ContentType = {}));
|
|
134
|
+
var DisplayConnectionStatus;
|
|
135
|
+
(function (DisplayConnectionStatus) {
|
|
136
|
+
DisplayConnectionStatus["New"] = "new";
|
|
137
|
+
DisplayConnectionStatus["Connected"] = "connected";
|
|
138
|
+
DisplayConnectionStatus["Sent"] = "sent";
|
|
139
|
+
DisplayConnectionStatus["Completed"] = "completed";
|
|
140
|
+
})(DisplayConnectionStatus || (exports.DisplayConnectionStatus = DisplayConnectionStatus = {}));
|
|
134
141
|
var DownAndDistanceDisplay;
|
|
135
142
|
(function (DownAndDistanceDisplay) {
|
|
136
143
|
DownAndDistanceDisplay["Both"] = "both";
|
|
@@ -267,12 +274,20 @@ var TemplateUseCase;
|
|
|
267
274
|
TemplateUseCase["Display"] = "display";
|
|
268
275
|
TemplateUseCase["Direct"] = "direct";
|
|
269
276
|
})(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
|
|
277
|
+
var VolleyballSet;
|
|
278
|
+
(function (VolleyballSet) {
|
|
279
|
+
VolleyballSet["Pre"] = "pregame";
|
|
280
|
+
VolleyballSet["First"] = "1";
|
|
281
|
+
VolleyballSet["Second"] = "2";
|
|
282
|
+
VolleyballSet["Third"] = "3";
|
|
283
|
+
VolleyballSet["Fourth"] = "4";
|
|
284
|
+
VolleyballSet["Fifth"] = "5";
|
|
285
|
+
})(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
|
|
270
286
|
var WebsocketMessageType;
|
|
271
287
|
(function (WebsocketMessageType) {
|
|
272
288
|
WebsocketMessageType["Event"] = "event";
|
|
273
289
|
WebsocketMessageType["Heartbeat"] = "heartbeat";
|
|
274
290
|
WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
|
|
275
|
-
WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
|
|
276
291
|
WebsocketMessageType["Info"] = "info";
|
|
277
292
|
WebsocketMessageType["Meta"] = "meta";
|
|
278
293
|
})(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
|
|
@@ -280,8 +295,6 @@ var WebsocketOperation;
|
|
|
280
295
|
(function (WebsocketOperation) {
|
|
281
296
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
282
297
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
283
|
-
WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
|
|
284
|
-
WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
|
|
285
298
|
})(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
|
|
286
299
|
var WrestlingMeetType;
|
|
287
300
|
(function (WrestlingMeetType) {
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,12 @@ export declare enum ContentType {
|
|
|
100
100
|
Xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
101
101
|
Zip = "application/zip"
|
|
102
102
|
}
|
|
103
|
+
export declare enum DisplayConnectionStatus {
|
|
104
|
+
New = "new",
|
|
105
|
+
Connected = "connected",
|
|
106
|
+
Sent = "sent",
|
|
107
|
+
Completed = "completed"
|
|
108
|
+
}
|
|
103
109
|
export declare enum DownAndDistanceDisplay {
|
|
104
110
|
Both = "both",
|
|
105
111
|
DownOnly = "downOnly",
|
|
@@ -220,19 +226,24 @@ export declare enum TemplateUseCase {
|
|
|
220
226
|
Display = "display",
|
|
221
227
|
Direct = "direct"
|
|
222
228
|
}
|
|
229
|
+
export declare enum VolleyballSet {
|
|
230
|
+
Pre = "pregame",
|
|
231
|
+
First = "1",
|
|
232
|
+
Second = "2",
|
|
233
|
+
Third = "3",
|
|
234
|
+
Fourth = "4",
|
|
235
|
+
Fifth = "5"
|
|
236
|
+
}
|
|
223
237
|
export declare enum WebsocketMessageType {
|
|
224
238
|
Event = "event",
|
|
225
239
|
Heartbeat = "heartbeat",
|
|
226
240
|
ConnectionConfirmation = "connectionConfirmation",
|
|
227
|
-
SubscriptionConfirmation = "subscriptionConfirmation",
|
|
228
241
|
Info = "info",
|
|
229
242
|
Meta = "meta"
|
|
230
243
|
}
|
|
231
244
|
export declare enum WebsocketOperation {
|
|
232
245
|
SendHeartbeat = "sendHeartbeat",
|
|
233
|
-
GetConnectionId = "getConnectionId"
|
|
234
|
-
SubscribeScoreboard = "subscribeScoreboard",
|
|
235
|
-
UnsubscribeScoreboard = "unsubscribeScoreboard"
|
|
246
|
+
GetConnectionId = "getConnectionId"
|
|
236
247
|
}
|
|
237
248
|
export declare enum WrestlingMeetType {
|
|
238
249
|
Dual = "dual",
|
|
@@ -417,6 +428,7 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
|
417
428
|
showPitchClock: boolean;
|
|
418
429
|
showPitchClockWhenLow: boolean;
|
|
419
430
|
enableClockAutomations: boolean;
|
|
431
|
+
innings: number;
|
|
420
432
|
}
|
|
421
433
|
export interface BaseballSettingsRequest extends BaseballSettings {
|
|
422
434
|
}
|
|
@@ -493,6 +505,11 @@ export interface CheckoutSessionResponse {
|
|
|
493
505
|
sessionId: string;
|
|
494
506
|
redirectUrl: string;
|
|
495
507
|
}
|
|
508
|
+
export interface ClientConfigResponse {
|
|
509
|
+
websocketUrl: string;
|
|
510
|
+
signInUrl: string;
|
|
511
|
+
dashboardUrl: string;
|
|
512
|
+
}
|
|
496
513
|
export interface Clock {
|
|
497
514
|
clockId: string;
|
|
498
515
|
scoreboardId: string;
|
|
@@ -535,6 +552,18 @@ export interface DataExtractResponse {
|
|
|
535
552
|
}
|
|
536
553
|
export interface DataRow extends Array<string> {
|
|
537
554
|
}
|
|
555
|
+
export interface DisplayConnectionCodeRequest {
|
|
556
|
+
code: string;
|
|
557
|
+
}
|
|
558
|
+
export interface DisplayConnectionResponse {
|
|
559
|
+
displayConnectionId: string;
|
|
560
|
+
code: string;
|
|
561
|
+
status: DisplayConnectionStatus;
|
|
562
|
+
dateCreated: string;
|
|
563
|
+
dateModified: string;
|
|
564
|
+
dateExpires: string;
|
|
565
|
+
scoreboardUrl?: string;
|
|
566
|
+
}
|
|
538
567
|
export interface ErrorResponse {
|
|
539
568
|
error: boolean;
|
|
540
569
|
code: ErrorCode;
|
|
@@ -674,6 +703,10 @@ export interface NumberInput extends BaseInput {
|
|
|
674
703
|
export interface OAuthBindingRequest {
|
|
675
704
|
messageCipher: string;
|
|
676
705
|
}
|
|
706
|
+
export interface OAuthRequest {
|
|
707
|
+
code: string;
|
|
708
|
+
redirectUri: string;
|
|
709
|
+
}
|
|
677
710
|
export interface OAuthResponse {
|
|
678
711
|
auth?: AuthResponse;
|
|
679
712
|
userCredentials?: UserCredentialsResponse;
|
|
@@ -868,6 +901,8 @@ export interface ScoreboardResponse {
|
|
|
868
901
|
description: string;
|
|
869
902
|
controlUrl: string;
|
|
870
903
|
embedUrl: string;
|
|
904
|
+
displayUrl: string;
|
|
905
|
+
directUrl: string;
|
|
871
906
|
type: ScoreboardType;
|
|
872
907
|
data: BasketballDataResponse | FootballDataResponse | VolleyballDataResponse | SoccerDataResponse | BaseballDataResponse | WrestlingDataResponse;
|
|
873
908
|
accountId: string;
|
|
@@ -1145,14 +1180,14 @@ export interface UserUpdateRequest {
|
|
|
1145
1180
|
permissions?: Permissions;
|
|
1146
1181
|
}
|
|
1147
1182
|
export interface VolleyballDataRequest {
|
|
1148
|
-
set:
|
|
1183
|
+
set: VolleyballSet;
|
|
1149
1184
|
team1: VolleyballScoreboardTeamRequest;
|
|
1150
1185
|
team2: VolleyballScoreboardTeamRequest;
|
|
1151
1186
|
settings?: VolleyballSettingsRequest;
|
|
1152
1187
|
}
|
|
1153
1188
|
export interface VolleyballDataResponse {
|
|
1154
1189
|
type: ScoreboardType;
|
|
1155
|
-
set:
|
|
1190
|
+
set: VolleyballSet;
|
|
1156
1191
|
team1: VolleyballScoreboardTeamResponse;
|
|
1157
1192
|
team2: VolleyballScoreboardTeamResponse;
|
|
1158
1193
|
settings: VolleyballSettingsResponse;
|
|
@@ -1201,23 +1236,8 @@ export interface WebsocketMessage {
|
|
|
1201
1236
|
message: string;
|
|
1202
1237
|
data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
|
|
1203
1238
|
}
|
|
1204
|
-
export interface WebsocketScoreboardSubscriptionRequest {
|
|
1205
|
-
action: "sendmessage";
|
|
1206
|
-
operation: WebsocketOperation.SubscribeScoreboard | WebsocketOperation.UnsubscribeScoreboard;
|
|
1207
|
-
scoreboardId: string;
|
|
1208
|
-
appId?: string;
|
|
1209
|
-
sendInitialData?: boolean;
|
|
1210
|
-
token: string;
|
|
1211
|
-
}
|
|
1212
|
-
export interface WebsocketScoreboardSubscriptionResponse {
|
|
1213
|
-
operation: WebsocketOperation.SubscribeScoreboard | WebsocketOperation.UnsubscribeScoreboard;
|
|
1214
|
-
scoreboardId: string;
|
|
1215
|
-
appId?: string;
|
|
1216
|
-
error?: ErrorResponse;
|
|
1217
|
-
}
|
|
1218
1239
|
export interface WebsocketSubscriptionRequest {
|
|
1219
1240
|
connectionId: string;
|
|
1220
|
-
appId?: string;
|
|
1221
1241
|
sendInitialData?: boolean;
|
|
1222
1242
|
}
|
|
1223
1243
|
export interface WebsocketSubscriptionResponse {
|
|
@@ -1225,7 +1245,6 @@ export interface WebsocketSubscriptionResponse {
|
|
|
1225
1245
|
subscriptionResource: string;
|
|
1226
1246
|
subscriptionResourceUri: string;
|
|
1227
1247
|
accountId: string;
|
|
1228
|
-
appId?: string;
|
|
1229
1248
|
}
|
|
1230
1249
|
export interface WrestlingDataRequest {
|
|
1231
1250
|
period: WrestlingPeriod;
|
package/dist/index.mjs
CHANGED
|
@@ -122,6 +122,13 @@ export var ContentType;
|
|
|
122
122
|
ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
123
123
|
ContentType["Zip"] = "application/zip";
|
|
124
124
|
})(ContentType || (ContentType = {}));
|
|
125
|
+
export var DisplayConnectionStatus;
|
|
126
|
+
(function (DisplayConnectionStatus) {
|
|
127
|
+
DisplayConnectionStatus["New"] = "new";
|
|
128
|
+
DisplayConnectionStatus["Connected"] = "connected";
|
|
129
|
+
DisplayConnectionStatus["Sent"] = "sent";
|
|
130
|
+
DisplayConnectionStatus["Completed"] = "completed";
|
|
131
|
+
})(DisplayConnectionStatus || (DisplayConnectionStatus = {}));
|
|
125
132
|
export var DownAndDistanceDisplay;
|
|
126
133
|
(function (DownAndDistanceDisplay) {
|
|
127
134
|
DownAndDistanceDisplay["Both"] = "both";
|
|
@@ -258,12 +265,20 @@ export var TemplateUseCase;
|
|
|
258
265
|
TemplateUseCase["Display"] = "display";
|
|
259
266
|
TemplateUseCase["Direct"] = "direct";
|
|
260
267
|
})(TemplateUseCase || (TemplateUseCase = {}));
|
|
268
|
+
export var VolleyballSet;
|
|
269
|
+
(function (VolleyballSet) {
|
|
270
|
+
VolleyballSet["Pre"] = "pregame";
|
|
271
|
+
VolleyballSet["First"] = "1";
|
|
272
|
+
VolleyballSet["Second"] = "2";
|
|
273
|
+
VolleyballSet["Third"] = "3";
|
|
274
|
+
VolleyballSet["Fourth"] = "4";
|
|
275
|
+
VolleyballSet["Fifth"] = "5";
|
|
276
|
+
})(VolleyballSet || (VolleyballSet = {}));
|
|
261
277
|
export var WebsocketMessageType;
|
|
262
278
|
(function (WebsocketMessageType) {
|
|
263
279
|
WebsocketMessageType["Event"] = "event";
|
|
264
280
|
WebsocketMessageType["Heartbeat"] = "heartbeat";
|
|
265
281
|
WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
|
|
266
|
-
WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
|
|
267
282
|
WebsocketMessageType["Info"] = "info";
|
|
268
283
|
WebsocketMessageType["Meta"] = "meta";
|
|
269
284
|
})(WebsocketMessageType || (WebsocketMessageType = {}));
|
|
@@ -271,8 +286,6 @@ export var WebsocketOperation;
|
|
|
271
286
|
(function (WebsocketOperation) {
|
|
272
287
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
273
288
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
274
|
-
WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
|
|
275
|
-
WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
|
|
276
289
|
})(WebsocketOperation || (WebsocketOperation = {}));
|
|
277
290
|
export var WrestlingMeetType;
|
|
278
291
|
(function (WrestlingMeetType) {
|