@scoreboardmax/api-types 1.0.22-next.5 → 1.0.22-next.7
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 +13 -56
- 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.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.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
|
};
|
|
@@ -235,6 +235,15 @@ var TemplateUseCase;
|
|
|
235
235
|
TemplateUseCase["Display"] = "display";
|
|
236
236
|
TemplateUseCase["Direct"] = "direct";
|
|
237
237
|
})(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
|
|
238
|
+
var VolleyballSet;
|
|
239
|
+
(function (VolleyballSet) {
|
|
240
|
+
VolleyballSet["Pre"] = "pregame";
|
|
241
|
+
VolleyballSet["First"] = "1";
|
|
242
|
+
VolleyballSet["Second"] = "2";
|
|
243
|
+
VolleyballSet["Third"] = "3";
|
|
244
|
+
VolleyballSet["Fourth"] = "4";
|
|
245
|
+
VolleyballSet["Fifth"] = "5";
|
|
246
|
+
})(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
|
|
238
247
|
var WebsocketMessageType;
|
|
239
248
|
(function (WebsocketMessageType) {
|
|
240
249
|
WebsocketMessageType["Event"] = "event";
|
package/dist/index.d.ts
CHANGED
|
@@ -11,37 +11,6 @@ export declare const isFootballData: (data: any) => data is FootballDataResponse
|
|
|
11
11
|
export declare const isSoccerData: (data: any) => data is SoccerDataResponse;
|
|
12
12
|
export declare const isVolleyballData: (data: any) => data is VolleyballDataResponse;
|
|
13
13
|
export declare const isWrestlingData: (data: any) => data is WrestlingDataResponse;
|
|
14
|
-
export declare enum ErrorCode {
|
|
15
|
-
ForbiddenSelfPermissionsChange = "ForbiddenSelfPermissionsChange",
|
|
16
|
-
InsufficientAdminPermissions = "InsufficientAdminPermissions",
|
|
17
|
-
InsufficientItemPermissions = "InsufficientItemPermissions",
|
|
18
|
-
InsufficientResourcePermissions = "InsufficientResourcePermissions",
|
|
19
|
-
InsufficientResourceItemPermissions = "InsufficientResourceItemPermissions",
|
|
20
|
-
InvalidAuthType = "InvalidAuthType",
|
|
21
|
-
InvalidColorFormat = "InvalidColorFormat",
|
|
22
|
-
InvalidDate = "InvalidDate",
|
|
23
|
-
InvalidInput = "InvalidInput",
|
|
24
|
-
InvalidRequest = "InvalidRequest",
|
|
25
|
-
InvalidPermissionGrant = "InvalidPermissionGrant",
|
|
26
|
-
InvalidSignIn = "InvalidSignIn",
|
|
27
|
-
InvalidAccountSignIn = "InvalidAccountSignIn",
|
|
28
|
-
InvalidToken = "InvalidToken",
|
|
29
|
-
AccountLimitExceeded = "AccountLimitExceeded",
|
|
30
|
-
AccountStorageExceeded = "AccountStorageExceeded",
|
|
31
|
-
ActiveScoreboardsExceeded = "ActiveScoreboardsExceeded",
|
|
32
|
-
AccountFeatureNotEnabled = "AccountFeatureNotEnabled",
|
|
33
|
-
AppNotEnabled = "AppNotEnabled",
|
|
34
|
-
ImageProcessingError = "ImageProcessingError",
|
|
35
|
-
RemoteServerError = "RemoteServerError",
|
|
36
|
-
RemoteServerTimeout = "RemoteServerTimeout",
|
|
37
|
-
RequestLimitExceeded = "RequestLimitExceeded",
|
|
38
|
-
ResourceNotFound = "ResourceNotFound",
|
|
39
|
-
UserCredentialsInUse = "UserCredentialsInUse",
|
|
40
|
-
AccountEmailInUse = "AccountEmailInUse",
|
|
41
|
-
IncompatibleState = "IncompatibleState",
|
|
42
|
-
VersionConflict = "VersionConflict",
|
|
43
|
-
UnspecifiedError = "UnspecifiedError"
|
|
44
|
-
}
|
|
45
14
|
export declare enum ApiAction {
|
|
46
15
|
Create = "create",
|
|
47
16
|
Read = "read",
|
|
@@ -220,6 +189,14 @@ export declare enum TemplateUseCase {
|
|
|
220
189
|
Display = "display",
|
|
221
190
|
Direct = "direct"
|
|
222
191
|
}
|
|
192
|
+
export declare enum VolleyballSet {
|
|
193
|
+
Pre = "pregame",
|
|
194
|
+
First = "1",
|
|
195
|
+
Second = "2",
|
|
196
|
+
Third = "3",
|
|
197
|
+
Fourth = "4",
|
|
198
|
+
Fifth = "5"
|
|
199
|
+
}
|
|
223
200
|
export declare enum WebsocketMessageType {
|
|
224
201
|
Event = "event",
|
|
225
202
|
Heartbeat = "heartbeat",
|
|
@@ -493,6 +470,9 @@ export interface CheckoutSessionResponse {
|
|
|
493
470
|
sessionId: string;
|
|
494
471
|
redirectUrl: string;
|
|
495
472
|
}
|
|
473
|
+
export interface ClientConfigResponse {
|
|
474
|
+
websocketUrl: string;
|
|
475
|
+
}
|
|
496
476
|
export interface Clock {
|
|
497
477
|
clockId: string;
|
|
498
478
|
scoreboardId: string;
|
|
@@ -535,13 +515,6 @@ export interface DataExtractResponse {
|
|
|
535
515
|
}
|
|
536
516
|
export interface DataRow extends Array<string> {
|
|
537
517
|
}
|
|
538
|
-
export interface ErrorResponse {
|
|
539
|
-
error: boolean;
|
|
540
|
-
code: ErrorCode;
|
|
541
|
-
statusCode: number;
|
|
542
|
-
reference: string;
|
|
543
|
-
message: string;
|
|
544
|
-
}
|
|
545
518
|
export interface Event {
|
|
546
519
|
eventId: string;
|
|
547
520
|
accountId: string;
|
|
@@ -1145,14 +1118,14 @@ export interface UserUpdateRequest {
|
|
|
1145
1118
|
permissions?: Permissions;
|
|
1146
1119
|
}
|
|
1147
1120
|
export interface VolleyballDataRequest {
|
|
1148
|
-
set:
|
|
1121
|
+
set: VolleyballSet;
|
|
1149
1122
|
team1: VolleyballScoreboardTeamRequest;
|
|
1150
1123
|
team2: VolleyballScoreboardTeamRequest;
|
|
1151
1124
|
settings?: VolleyballSettingsRequest;
|
|
1152
1125
|
}
|
|
1153
1126
|
export interface VolleyballDataResponse {
|
|
1154
1127
|
type: ScoreboardType;
|
|
1155
|
-
set:
|
|
1128
|
+
set: VolleyballSet;
|
|
1156
1129
|
team1: VolleyballScoreboardTeamResponse;
|
|
1157
1130
|
team2: VolleyballScoreboardTeamResponse;
|
|
1158
1131
|
settings: VolleyballSettingsResponse;
|
|
@@ -1201,23 +1174,8 @@ export interface WebsocketMessage {
|
|
|
1201
1174
|
message: string;
|
|
1202
1175
|
data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
|
|
1203
1176
|
}
|
|
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
1177
|
export interface WebsocketSubscriptionRequest {
|
|
1219
1178
|
connectionId: string;
|
|
1220
|
-
appId?: string;
|
|
1221
1179
|
sendInitialData?: boolean;
|
|
1222
1180
|
}
|
|
1223
1181
|
export interface WebsocketSubscriptionResponse {
|
|
@@ -1225,7 +1183,6 @@ export interface WebsocketSubscriptionResponse {
|
|
|
1225
1183
|
subscriptionResource: string;
|
|
1226
1184
|
subscriptionResourceUri: string;
|
|
1227
1185
|
accountId: string;
|
|
1228
|
-
appId?: string;
|
|
1229
1186
|
}
|
|
1230
1187
|
export interface WrestlingDataRequest {
|
|
1231
1188
|
period: WrestlingPeriod;
|
package/dist/index.mjs
CHANGED
|
@@ -226,6 +226,15 @@ export var TemplateUseCase;
|
|
|
226
226
|
TemplateUseCase["Display"] = "display";
|
|
227
227
|
TemplateUseCase["Direct"] = "direct";
|
|
228
228
|
})(TemplateUseCase || (TemplateUseCase = {}));
|
|
229
|
+
export var VolleyballSet;
|
|
230
|
+
(function (VolleyballSet) {
|
|
231
|
+
VolleyballSet["Pre"] = "pregame";
|
|
232
|
+
VolleyballSet["First"] = "1";
|
|
233
|
+
VolleyballSet["Second"] = "2";
|
|
234
|
+
VolleyballSet["Third"] = "3";
|
|
235
|
+
VolleyballSet["Fourth"] = "4";
|
|
236
|
+
VolleyballSet["Fifth"] = "5";
|
|
237
|
+
})(VolleyballSet || (VolleyballSet = {}));
|
|
229
238
|
export var WebsocketMessageType;
|
|
230
239
|
(function (WebsocketMessageType) {
|
|
231
240
|
WebsocketMessageType["Event"] = "event";
|