@scoreboardmax/api-types 1.0.25 → 1.0.26
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 +10 -1
- package/dist/index.d.ts +22 -18
- package/dist/index.mjs +9 -0
- 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.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
|
};
|
|
@@ -267,6 +267,15 @@ var TemplateUseCase;
|
|
|
267
267
|
TemplateUseCase["Display"] = "display";
|
|
268
268
|
TemplateUseCase["Direct"] = "direct";
|
|
269
269
|
})(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
|
|
270
|
+
var VolleyballSet;
|
|
271
|
+
(function (VolleyballSet) {
|
|
272
|
+
VolleyballSet["Pre"] = "pregame";
|
|
273
|
+
VolleyballSet["First"] = "1";
|
|
274
|
+
VolleyballSet["Second"] = "2";
|
|
275
|
+
VolleyballSet["Third"] = "3";
|
|
276
|
+
VolleyballSet["Fourth"] = "4";
|
|
277
|
+
VolleyballSet["Fifth"] = "5";
|
|
278
|
+
})(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
|
|
270
279
|
var WebsocketMessageType;
|
|
271
280
|
(function (WebsocketMessageType) {
|
|
272
281
|
WebsocketMessageType["Event"] = "event";
|
package/dist/index.d.ts
CHANGED
|
@@ -220,6 +220,14 @@ export declare enum TemplateUseCase {
|
|
|
220
220
|
Display = "display",
|
|
221
221
|
Direct = "direct"
|
|
222
222
|
}
|
|
223
|
+
export declare enum VolleyballSet {
|
|
224
|
+
Pre = "pregame",
|
|
225
|
+
First = "1",
|
|
226
|
+
Second = "2",
|
|
227
|
+
Third = "3",
|
|
228
|
+
Fourth = "4",
|
|
229
|
+
Fifth = "5"
|
|
230
|
+
}
|
|
223
231
|
export declare enum WebsocketMessageType {
|
|
224
232
|
Event = "event",
|
|
225
233
|
Heartbeat = "heartbeat",
|
|
@@ -417,6 +425,7 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
|
|
|
417
425
|
showPitchClock: boolean;
|
|
418
426
|
showPitchClockWhenLow: boolean;
|
|
419
427
|
enableClockAutomations: boolean;
|
|
428
|
+
innings: number;
|
|
420
429
|
}
|
|
421
430
|
export interface BaseballSettingsRequest extends BaseballSettings {
|
|
422
431
|
}
|
|
@@ -493,6 +502,11 @@ export interface CheckoutSessionResponse {
|
|
|
493
502
|
sessionId: string;
|
|
494
503
|
redirectUrl: string;
|
|
495
504
|
}
|
|
505
|
+
export interface ClientConfigResponse {
|
|
506
|
+
websocketUrl: string;
|
|
507
|
+
signInUrl: string;
|
|
508
|
+
dashboardUrl: string;
|
|
509
|
+
}
|
|
496
510
|
export interface Clock {
|
|
497
511
|
clockId: string;
|
|
498
512
|
scoreboardId: string;
|
|
@@ -674,6 +688,10 @@ export interface NumberInput extends BaseInput {
|
|
|
674
688
|
export interface OAuthBindingRequest {
|
|
675
689
|
messageCipher: string;
|
|
676
690
|
}
|
|
691
|
+
export interface OAuthRequest {
|
|
692
|
+
code: string;
|
|
693
|
+
redirectUri: string;
|
|
694
|
+
}
|
|
677
695
|
export interface OAuthResponse {
|
|
678
696
|
auth?: AuthResponse;
|
|
679
697
|
userCredentials?: UserCredentialsResponse;
|
|
@@ -868,6 +886,8 @@ export interface ScoreboardResponse {
|
|
|
868
886
|
description: string;
|
|
869
887
|
controlUrl: string;
|
|
870
888
|
embedUrl: string;
|
|
889
|
+
displayUrl: string;
|
|
890
|
+
directUrl: string;
|
|
871
891
|
type: ScoreboardType;
|
|
872
892
|
data: BasketballDataResponse | FootballDataResponse | VolleyballDataResponse | SoccerDataResponse | BaseballDataResponse | WrestlingDataResponse;
|
|
873
893
|
accountId: string;
|
|
@@ -1145,14 +1165,14 @@ export interface UserUpdateRequest {
|
|
|
1145
1165
|
permissions?: Permissions;
|
|
1146
1166
|
}
|
|
1147
1167
|
export interface VolleyballDataRequest {
|
|
1148
|
-
set:
|
|
1168
|
+
set: VolleyballSet;
|
|
1149
1169
|
team1: VolleyballScoreboardTeamRequest;
|
|
1150
1170
|
team2: VolleyballScoreboardTeamRequest;
|
|
1151
1171
|
settings?: VolleyballSettingsRequest;
|
|
1152
1172
|
}
|
|
1153
1173
|
export interface VolleyballDataResponse {
|
|
1154
1174
|
type: ScoreboardType;
|
|
1155
|
-
set:
|
|
1175
|
+
set: VolleyballSet;
|
|
1156
1176
|
team1: VolleyballScoreboardTeamResponse;
|
|
1157
1177
|
team2: VolleyballScoreboardTeamResponse;
|
|
1158
1178
|
settings: VolleyballSettingsResponse;
|
|
@@ -1201,23 +1221,8 @@ export interface WebsocketMessage {
|
|
|
1201
1221
|
message: string;
|
|
1202
1222
|
data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
|
|
1203
1223
|
}
|
|
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
1224
|
export interface WebsocketSubscriptionRequest {
|
|
1219
1225
|
connectionId: string;
|
|
1220
|
-
appId?: string;
|
|
1221
1226
|
sendInitialData?: boolean;
|
|
1222
1227
|
}
|
|
1223
1228
|
export interface WebsocketSubscriptionResponse {
|
|
@@ -1225,7 +1230,6 @@ export interface WebsocketSubscriptionResponse {
|
|
|
1225
1230
|
subscriptionResource: string;
|
|
1226
1231
|
subscriptionResourceUri: string;
|
|
1227
1232
|
accountId: string;
|
|
1228
|
-
appId?: string;
|
|
1229
1233
|
}
|
|
1230
1234
|
export interface WrestlingDataRequest {
|
|
1231
1235
|
period: WrestlingPeriod;
|
package/dist/index.mjs
CHANGED
|
@@ -258,6 +258,15 @@ export var TemplateUseCase;
|
|
|
258
258
|
TemplateUseCase["Display"] = "display";
|
|
259
259
|
TemplateUseCase["Direct"] = "direct";
|
|
260
260
|
})(TemplateUseCase || (TemplateUseCase = {}));
|
|
261
|
+
export var VolleyballSet;
|
|
262
|
+
(function (VolleyballSet) {
|
|
263
|
+
VolleyballSet["Pre"] = "pregame";
|
|
264
|
+
VolleyballSet["First"] = "1";
|
|
265
|
+
VolleyballSet["Second"] = "2";
|
|
266
|
+
VolleyballSet["Third"] = "3";
|
|
267
|
+
VolleyballSet["Fourth"] = "4";
|
|
268
|
+
VolleyballSet["Fifth"] = "5";
|
|
269
|
+
})(VolleyballSet || (VolleyballSet = {}));
|
|
261
270
|
export var WebsocketMessageType;
|
|
262
271
|
(function (WebsocketMessageType) {
|
|
263
272
|
WebsocketMessageType["Event"] = "event";
|