@scoreboardmax/api-types 1.0.34-next.13 → 1.0.34-next.15
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 +226 -106
- package/dist/index.d.ts +1288 -589
- package/dist/index.mjs +219 -99
- package/dist/internal.cjs +254 -122
- package/dist/internal.d.ts +1325 -596
- package/dist/internal.mjs +243 -111
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,31 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.isBaseballData = isBaseballData;
|
|
15
|
-
const isBasketballData = (data) => {
|
|
16
|
-
return data.type === ScoreboardType.Basketball;
|
|
17
|
-
};
|
|
18
|
-
exports.isBasketballData = isBasketballData;
|
|
19
|
-
const isFootballData = (data) => {
|
|
20
|
-
return data.type === ScoreboardType.Football;
|
|
21
|
-
};
|
|
22
|
-
exports.isFootballData = isFootballData;
|
|
23
|
-
const isSoccerData = (data) => {
|
|
24
|
-
return data.type === ScoreboardType.Soccer;
|
|
25
|
-
};
|
|
26
|
-
exports.isSoccerData = isSoccerData;
|
|
27
|
-
const isVolleyballData = (data) => {
|
|
28
|
-
return data.type === ScoreboardType.Volleyball;
|
|
29
|
-
};
|
|
30
|
-
exports.isVolleyballData = isVolleyballData;
|
|
31
|
-
const isWrestlingData = (data) => {
|
|
32
|
-
return data.type === ScoreboardType.Wrestling;
|
|
33
|
-
};
|
|
34
|
-
exports.isWrestlingData = isWrestlingData;
|
|
10
|
+
exports.ErrorCode = exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.MetaMessageType = exports.WebsocketMessageType = exports.VolleyballSet = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = exports.BaseballInningSegment = exports.TemplateUseCase = exports.ScoreboardType = exports.SoccerGamePeriods = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.ScoreboardCode = exports.OAuthProvider = exports.OAuthAction = exports.MagicLinkType = exports.FootballPeriod = exports.FileType = exports.ContentType = exports.ExtraTimeLabel = exports.EventAction = exports.DownAndDistanceDisplay = exports.DisplayConnectionStatus = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballGamePeriods = exports.BasketballPeriod = exports.PlanId = exports.AuthType = exports.AppType = exports.ApiResource = exports.ApiAction = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* API action identifiers
|
|
13
|
+
*/
|
|
35
14
|
var ApiAction;
|
|
36
15
|
(function (ApiAction) {
|
|
37
16
|
ApiAction["Create"] = "create";
|
|
@@ -40,6 +19,9 @@ var ApiAction;
|
|
|
40
19
|
ApiAction["Delete"] = "delete";
|
|
41
20
|
ApiAction["All"] = "*";
|
|
42
21
|
})(ApiAction || (exports.ApiAction = ApiAction = {}));
|
|
22
|
+
/**
|
|
23
|
+
* API resource identifiers
|
|
24
|
+
*/
|
|
43
25
|
var ApiResource;
|
|
44
26
|
(function (ApiResource) {
|
|
45
27
|
ApiResource["All"] = "*";
|
|
@@ -81,10 +63,16 @@ var ApiResource;
|
|
|
81
63
|
ApiResource["Game"] = "game";
|
|
82
64
|
ApiResource["GameList"] = "gameList";
|
|
83
65
|
})(ApiResource || (exports.ApiResource = ApiResource = {}));
|
|
66
|
+
/**
|
|
67
|
+
* App type identifiers
|
|
68
|
+
*/
|
|
84
69
|
var AppType;
|
|
85
70
|
(function (AppType) {
|
|
86
71
|
AppType["Template"] = "template";
|
|
87
72
|
})(AppType || (exports.AppType = AppType = {}));
|
|
73
|
+
/**
|
|
74
|
+
* Authentication method types
|
|
75
|
+
*/
|
|
88
76
|
var AuthType;
|
|
89
77
|
(function (AuthType) {
|
|
90
78
|
AuthType["Session"] = "session";
|
|
@@ -92,18 +80,18 @@ var AuthType;
|
|
|
92
80
|
AuthType["Guest"] = "guest";
|
|
93
81
|
AuthType["ScoreboardView"] = "scoreboardView";
|
|
94
82
|
})(AuthType || (exports.AuthType = AuthType = {}));
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Available plan identifiers
|
|
85
|
+
*/
|
|
86
|
+
var PlanId;
|
|
87
|
+
(function (PlanId) {
|
|
88
|
+
PlanId["Basic"] = "basic";
|
|
89
|
+
PlanId["Plus"] = "plus";
|
|
90
|
+
PlanId["Pro"] = "pro";
|
|
91
|
+
})(PlanId || (exports.PlanId = PlanId = {}));
|
|
92
|
+
/**
|
|
93
|
+
* Basketball period identifiers
|
|
94
|
+
*/
|
|
107
95
|
var BasketballPeriod;
|
|
108
96
|
(function (BasketballPeriod) {
|
|
109
97
|
BasketballPeriod["Pre"] = "pregame";
|
|
@@ -114,11 +102,25 @@ var BasketballPeriod;
|
|
|
114
102
|
BasketballPeriod["Fourth"] = "4";
|
|
115
103
|
BasketballPeriod["Overtime"] = "overtime";
|
|
116
104
|
})(BasketballPeriod || (exports.BasketballPeriod = BasketballPeriod = {}));
|
|
105
|
+
/**
|
|
106
|
+
* Basketball period structure options
|
|
107
|
+
*/
|
|
108
|
+
var BasketballGamePeriods;
|
|
109
|
+
(function (BasketballGamePeriods) {
|
|
110
|
+
BasketballGamePeriods["Quarters"] = "quarters";
|
|
111
|
+
BasketballGamePeriods["Halves"] = "halves";
|
|
112
|
+
})(BasketballGamePeriods || (exports.BasketballGamePeriods = BasketballGamePeriods = {}));
|
|
113
|
+
/**
|
|
114
|
+
* Basketball timeout allocation options
|
|
115
|
+
*/
|
|
117
116
|
var BasketballTimeoutAllocation;
|
|
118
117
|
(function (BasketballTimeoutAllocation) {
|
|
119
118
|
BasketballTimeoutAllocation["PerGame"] = "perGame";
|
|
120
119
|
BasketballTimeoutAllocation["PerHalf"] = "perHalf";
|
|
121
120
|
})(BasketballTimeoutAllocation || (exports.BasketballTimeoutAllocation = BasketballTimeoutAllocation = {}));
|
|
121
|
+
/**
|
|
122
|
+
* Clock type identifiers
|
|
123
|
+
*/
|
|
122
124
|
var ClockType;
|
|
123
125
|
(function (ClockType) {
|
|
124
126
|
ClockType["Game"] = "game";
|
|
@@ -127,17 +129,9 @@ var ClockType;
|
|
|
127
129
|
ClockType["Pitch"] = "pitch";
|
|
128
130
|
ClockType["Period"] = "period";
|
|
129
131
|
})(ClockType || (exports.ClockType = ClockType = {}));
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
ContentType["Jpg"] = "image/jpeg";
|
|
134
|
-
ContentType["Gif"] = "image/gif";
|
|
135
|
-
ContentType["Webp"] = "image/webp";
|
|
136
|
-
ContentType["Avif"] = "image/avif";
|
|
137
|
-
ContentType["Csv"] = "text/csv";
|
|
138
|
-
ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
139
|
-
ContentType["Zip"] = "application/zip";
|
|
140
|
-
})(ContentType || (exports.ContentType = ContentType = {}));
|
|
132
|
+
/**
|
|
133
|
+
* Display connection status values
|
|
134
|
+
*/
|
|
141
135
|
var DisplayConnectionStatus;
|
|
142
136
|
(function (DisplayConnectionStatus) {
|
|
143
137
|
DisplayConnectionStatus["New"] = "new";
|
|
@@ -145,45 +139,18 @@ var DisplayConnectionStatus;
|
|
|
145
139
|
DisplayConnectionStatus["Sent"] = "sent";
|
|
146
140
|
DisplayConnectionStatus["Completed"] = "completed";
|
|
147
141
|
})(DisplayConnectionStatus || (exports.DisplayConnectionStatus = DisplayConnectionStatus = {}));
|
|
142
|
+
/**
|
|
143
|
+
* Down and distance display options
|
|
144
|
+
*/
|
|
148
145
|
var DownAndDistanceDisplay;
|
|
149
146
|
(function (DownAndDistanceDisplay) {
|
|
150
147
|
DownAndDistanceDisplay["Both"] = "both";
|
|
151
148
|
DownAndDistanceDisplay["DownOnly"] = "downOnly";
|
|
152
149
|
DownAndDistanceDisplay["None"] = "none";
|
|
153
150
|
})(DownAndDistanceDisplay || (exports.DownAndDistanceDisplay = DownAndDistanceDisplay = {}));
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
|
|
158
|
-
ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
|
|
159
|
-
ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
|
|
160
|
-
ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
|
|
161
|
-
ErrorCode["InvalidAuthType"] = "InvalidAuthType";
|
|
162
|
-
ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
|
|
163
|
-
ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
|
|
164
|
-
ErrorCode["InvalidDate"] = "InvalidDate";
|
|
165
|
-
ErrorCode["InvalidInput"] = "InvalidInput";
|
|
166
|
-
ErrorCode["InvalidRequest"] = "InvalidRequest";
|
|
167
|
-
ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
|
|
168
|
-
ErrorCode["InvalidSignIn"] = "InvalidSignIn";
|
|
169
|
-
ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
|
|
170
|
-
ErrorCode["InvalidToken"] = "InvalidToken";
|
|
171
|
-
ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
|
|
172
|
-
ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
|
|
173
|
-
ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
|
|
174
|
-
ErrorCode["AccountFeatureNotEnabled"] = "AccountFeatureNotEnabled";
|
|
175
|
-
ErrorCode["AppNotEnabled"] = "AppNotEnabled";
|
|
176
|
-
ErrorCode["ImageProcessingError"] = "ImageProcessingError";
|
|
177
|
-
ErrorCode["RemoteServerError"] = "RemoteServerError";
|
|
178
|
-
ErrorCode["RemoteServerTimeout"] = "RemoteServerTimeout";
|
|
179
|
-
ErrorCode["RequestLimitExceeded"] = "RequestLimitExceeded";
|
|
180
|
-
ErrorCode["ResourceNotFound"] = "ResourceNotFound";
|
|
181
|
-
ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
|
|
182
|
-
ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
|
|
183
|
-
ErrorCode["IncompatibleState"] = "IncompatibleState";
|
|
184
|
-
ErrorCode["VersionConflict"] = "VersionConflict";
|
|
185
|
-
ErrorCode["UnspecifiedError"] = "UnspecifiedError";
|
|
186
|
-
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
|
|
151
|
+
/**
|
|
152
|
+
* Event action identifiers
|
|
153
|
+
*/
|
|
187
154
|
var EventAction;
|
|
188
155
|
(function (EventAction) {
|
|
189
156
|
EventAction["Created"] = "created";
|
|
@@ -191,11 +158,31 @@ var EventAction;
|
|
|
191
158
|
EventAction["Deleted"] = "deleted";
|
|
192
159
|
EventAction["Read"] = "read";
|
|
193
160
|
})(EventAction || (exports.EventAction = EventAction = {}));
|
|
161
|
+
/**
|
|
162
|
+
* Extra time display label options
|
|
163
|
+
*/
|
|
194
164
|
var ExtraTimeLabel;
|
|
195
165
|
(function (ExtraTimeLabel) {
|
|
196
166
|
ExtraTimeLabel["ExtraTime"] = "ET";
|
|
197
167
|
ExtraTimeLabel["Overtime"] = "OT";
|
|
198
168
|
})(ExtraTimeLabel || (exports.ExtraTimeLabel = ExtraTimeLabel = {}));
|
|
169
|
+
/**
|
|
170
|
+
* File content type identifiers
|
|
171
|
+
*/
|
|
172
|
+
var ContentType;
|
|
173
|
+
(function (ContentType) {
|
|
174
|
+
ContentType["Png"] = "image/png";
|
|
175
|
+
ContentType["Jpg"] = "image/jpeg";
|
|
176
|
+
ContentType["Gif"] = "image/gif";
|
|
177
|
+
ContentType["Webp"] = "image/webp";
|
|
178
|
+
ContentType["Avif"] = "image/avif";
|
|
179
|
+
ContentType["Csv"] = "text/csv";
|
|
180
|
+
ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
181
|
+
ContentType["Zip"] = "application/zip";
|
|
182
|
+
})(ContentType || (exports.ContentType = ContentType = {}));
|
|
183
|
+
/**
|
|
184
|
+
* File type identifiers
|
|
185
|
+
*/
|
|
199
186
|
var FileType;
|
|
200
187
|
(function (FileType) {
|
|
201
188
|
FileType["TeamLogo"] = "teamLogo";
|
|
@@ -205,6 +192,9 @@ var FileType;
|
|
|
205
192
|
FileType["InsightLogo"] = "insightLogo";
|
|
206
193
|
FileType["Temporary"] = "temporary";
|
|
207
194
|
})(FileType || (exports.FileType = FileType = {}));
|
|
195
|
+
/**
|
|
196
|
+
* Football period identifiers
|
|
197
|
+
*/
|
|
208
198
|
var FootballPeriod;
|
|
209
199
|
(function (FootballPeriod) {
|
|
210
200
|
FootballPeriod["Pre"] = "pregame";
|
|
@@ -215,6 +205,9 @@ var FootballPeriod;
|
|
|
215
205
|
FootballPeriod["Fourth"] = "4";
|
|
216
206
|
FootballPeriod["Overtime"] = "overtime";
|
|
217
207
|
})(FootballPeriod || (exports.FootballPeriod = FootballPeriod = {}));
|
|
208
|
+
/**
|
|
209
|
+
* Magic link type identifiers
|
|
210
|
+
*/
|
|
218
211
|
var MagicLinkType;
|
|
219
212
|
(function (MagicLinkType) {
|
|
220
213
|
MagicLinkType["SignIn"] = "signIn";
|
|
@@ -222,27 +215,25 @@ var MagicLinkType;
|
|
|
222
215
|
MagicLinkType["UserInvite"] = "userInvite";
|
|
223
216
|
MagicLinkType["ScoreboardView"] = "scoreboardView";
|
|
224
217
|
})(MagicLinkType || (exports.MagicLinkType = MagicLinkType = {}));
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
|
|
229
|
-
})(MetaMessageType || (exports.MetaMessageType = MetaMessageType = {}));
|
|
218
|
+
/**
|
|
219
|
+
* OAuth action identifiers
|
|
220
|
+
*/
|
|
230
221
|
var OAuthAction;
|
|
231
222
|
(function (OAuthAction) {
|
|
232
223
|
OAuthAction["NewUserCreated"] = "new_user_created";
|
|
233
224
|
OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
|
|
234
225
|
OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
|
|
235
226
|
})(OAuthAction || (exports.OAuthAction = OAuthAction = {}));
|
|
227
|
+
/**
|
|
228
|
+
* OAuth provider identifiers
|
|
229
|
+
*/
|
|
236
230
|
var OAuthProvider;
|
|
237
231
|
(function (OAuthProvider) {
|
|
238
232
|
OAuthProvider["Google"] = "google";
|
|
239
233
|
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
PlanId["Plus"] = "plus";
|
|
244
|
-
PlanId["Pro"] = "pro";
|
|
245
|
-
})(PlanId || (exports.PlanId = PlanId = {}));
|
|
234
|
+
/**
|
|
235
|
+
* Short codes for sport types
|
|
236
|
+
*/
|
|
246
237
|
var ScoreboardCode;
|
|
247
238
|
(function (ScoreboardCode) {
|
|
248
239
|
ScoreboardCode["Football"] = "fb";
|
|
@@ -252,25 +243,17 @@ var ScoreboardCode;
|
|
|
252
243
|
ScoreboardCode["Baseball"] = "ba";
|
|
253
244
|
ScoreboardCode["Wrestling"] = "wr";
|
|
254
245
|
})(ScoreboardCode || (exports.ScoreboardCode = ScoreboardCode = {}));
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
ScoreboardType["Basketball"] = "basketball";
|
|
259
|
-
ScoreboardType["Football"] = "football";
|
|
260
|
-
ScoreboardType["Soccer"] = "soccer";
|
|
261
|
-
ScoreboardType["Volleyball"] = "volleyball";
|
|
262
|
-
ScoreboardType["Wrestling"] = "wrestling";
|
|
263
|
-
})(ScoreboardType || (exports.ScoreboardType = ScoreboardType = {}));
|
|
264
|
-
var SoccerGamePeriods;
|
|
265
|
-
(function (SoccerGamePeriods) {
|
|
266
|
-
SoccerGamePeriods["Quarters"] = "quarters";
|
|
267
|
-
SoccerGamePeriods["Halves"] = "halves";
|
|
268
|
-
})(SoccerGamePeriods || (exports.SoccerGamePeriods = SoccerGamePeriods = {}));
|
|
246
|
+
/**
|
|
247
|
+
* Soccer penalty card types
|
|
248
|
+
*/
|
|
269
249
|
var SoccerPenaltyCardType;
|
|
270
250
|
(function (SoccerPenaltyCardType) {
|
|
271
251
|
SoccerPenaltyCardType["Yellow"] = "yellow";
|
|
272
252
|
SoccerPenaltyCardType["Red"] = "red";
|
|
273
253
|
})(SoccerPenaltyCardType || (exports.SoccerPenaltyCardType = SoccerPenaltyCardType = {}));
|
|
254
|
+
/**
|
|
255
|
+
* Soccer period identifiers
|
|
256
|
+
*/
|
|
274
257
|
var SoccerPeriod;
|
|
275
258
|
(function (SoccerPeriod) {
|
|
276
259
|
SoccerPeriod["Pre"] = "pregame";
|
|
@@ -283,12 +266,90 @@ var SoccerPeriod;
|
|
|
283
266
|
SoccerPeriod["ExtraTime2"] = "ET 2";
|
|
284
267
|
SoccerPeriod["Shootout"] = "shootout";
|
|
285
268
|
})(SoccerPeriod || (exports.SoccerPeriod = SoccerPeriod = {}));
|
|
269
|
+
/**
|
|
270
|
+
* Soccer period structure options
|
|
271
|
+
*/
|
|
272
|
+
var SoccerGamePeriods;
|
|
273
|
+
(function (SoccerGamePeriods) {
|
|
274
|
+
SoccerGamePeriods["Quarters"] = "quarters";
|
|
275
|
+
SoccerGamePeriods["Halves"] = "halves";
|
|
276
|
+
})(SoccerGamePeriods || (exports.SoccerGamePeriods = SoccerGamePeriods = {}));
|
|
277
|
+
/**
|
|
278
|
+
* Supported sport types
|
|
279
|
+
*/
|
|
280
|
+
var ScoreboardType;
|
|
281
|
+
(function (ScoreboardType) {
|
|
282
|
+
ScoreboardType["Baseball"] = "baseball";
|
|
283
|
+
ScoreboardType["Basketball"] = "basketball";
|
|
284
|
+
ScoreboardType["Football"] = "football";
|
|
285
|
+
ScoreboardType["Soccer"] = "soccer";
|
|
286
|
+
ScoreboardType["Volleyball"] = "volleyball";
|
|
287
|
+
ScoreboardType["Wrestling"] = "wrestling";
|
|
288
|
+
})(ScoreboardType || (exports.ScoreboardType = ScoreboardType = {}));
|
|
289
|
+
/**
|
|
290
|
+
* Template use case categories
|
|
291
|
+
*/
|
|
286
292
|
var TemplateUseCase;
|
|
287
293
|
(function (TemplateUseCase) {
|
|
288
294
|
TemplateUseCase["Embed"] = "embed";
|
|
289
295
|
TemplateUseCase["Display"] = "display";
|
|
290
296
|
TemplateUseCase["Direct"] = "direct";
|
|
291
297
|
})(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
|
|
298
|
+
/**
|
|
299
|
+
* Top or bottom of inning
|
|
300
|
+
*/
|
|
301
|
+
var BaseballInningSegment;
|
|
302
|
+
(function (BaseballInningSegment) {
|
|
303
|
+
BaseballInningSegment["Top"] = "top";
|
|
304
|
+
BaseballInningSegment["Middle"] = "middle";
|
|
305
|
+
BaseballInningSegment["Bottom"] = "bottom";
|
|
306
|
+
BaseballInningSegment["End"] = "end";
|
|
307
|
+
})(BaseballInningSegment || (exports.BaseballInningSegment = BaseballInningSegment = {}));
|
|
308
|
+
/**
|
|
309
|
+
* Type guard for baseball data
|
|
310
|
+
*/
|
|
311
|
+
const isBaseballData = (data) => {
|
|
312
|
+
return data.type === ScoreboardType.Baseball;
|
|
313
|
+
};
|
|
314
|
+
exports.isBaseballData = isBaseballData;
|
|
315
|
+
/**
|
|
316
|
+
* Type guard for basketball data
|
|
317
|
+
*/
|
|
318
|
+
const isBasketballData = (data) => {
|
|
319
|
+
return data.type === ScoreboardType.Basketball;
|
|
320
|
+
};
|
|
321
|
+
exports.isBasketballData = isBasketballData;
|
|
322
|
+
/**
|
|
323
|
+
* Type guard for football data
|
|
324
|
+
*/
|
|
325
|
+
const isFootballData = (data) => {
|
|
326
|
+
return data.type === ScoreboardType.Football;
|
|
327
|
+
};
|
|
328
|
+
exports.isFootballData = isFootballData;
|
|
329
|
+
/**
|
|
330
|
+
* Type guard for soccer data
|
|
331
|
+
*/
|
|
332
|
+
const isSoccerData = (data) => {
|
|
333
|
+
return data.type === ScoreboardType.Soccer;
|
|
334
|
+
};
|
|
335
|
+
exports.isSoccerData = isSoccerData;
|
|
336
|
+
/**
|
|
337
|
+
* Type guard for volleyball data
|
|
338
|
+
*/
|
|
339
|
+
const isVolleyballData = (data) => {
|
|
340
|
+
return data.type === ScoreboardType.Volleyball;
|
|
341
|
+
};
|
|
342
|
+
exports.isVolleyballData = isVolleyballData;
|
|
343
|
+
/**
|
|
344
|
+
* Type guard for wrestling data
|
|
345
|
+
*/
|
|
346
|
+
const isWrestlingData = (data) => {
|
|
347
|
+
return data.type === ScoreboardType.Wrestling;
|
|
348
|
+
};
|
|
349
|
+
exports.isWrestlingData = isWrestlingData;
|
|
350
|
+
/**
|
|
351
|
+
* Volleyball set identifiers
|
|
352
|
+
*/
|
|
292
353
|
var VolleyballSet;
|
|
293
354
|
(function (VolleyballSet) {
|
|
294
355
|
VolleyballSet["Pre"] = "pregame";
|
|
@@ -298,6 +359,9 @@ var VolleyballSet;
|
|
|
298
359
|
VolleyballSet["Fourth"] = "4";
|
|
299
360
|
VolleyballSet["Fifth"] = "5";
|
|
300
361
|
})(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
|
|
362
|
+
/**
|
|
363
|
+
* Websocket message type identifiers
|
|
364
|
+
*/
|
|
301
365
|
var WebsocketMessageType;
|
|
302
366
|
(function (WebsocketMessageType) {
|
|
303
367
|
WebsocketMessageType["Event"] = "event";
|
|
@@ -306,22 +370,42 @@ var WebsocketMessageType;
|
|
|
306
370
|
WebsocketMessageType["Info"] = "info";
|
|
307
371
|
WebsocketMessageType["Meta"] = "meta";
|
|
308
372
|
})(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
|
|
373
|
+
/**
|
|
374
|
+
* Websocket meta message types
|
|
375
|
+
*/
|
|
376
|
+
var MetaMessageType;
|
|
377
|
+
(function (MetaMessageType) {
|
|
378
|
+
MetaMessageType["ScoreboardReset"] = "scoreboardReset";
|
|
379
|
+
MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
|
|
380
|
+
})(MetaMessageType || (exports.MetaMessageType = MetaMessageType = {}));
|
|
381
|
+
/**
|
|
382
|
+
* Websocket operation identifiers
|
|
383
|
+
*/
|
|
309
384
|
var WebsocketOperation;
|
|
310
385
|
(function (WebsocketOperation) {
|
|
311
386
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
312
387
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
313
388
|
})(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
|
|
389
|
+
/**
|
|
390
|
+
* Wrestling meet format options
|
|
391
|
+
*/
|
|
314
392
|
var WrestlingMeetType;
|
|
315
393
|
(function (WrestlingMeetType) {
|
|
316
394
|
WrestlingMeetType["Dual"] = "dual";
|
|
317
395
|
WrestlingMeetType["Tournament"] = "tournament";
|
|
318
396
|
})(WrestlingMeetType || (exports.WrestlingMeetType = WrestlingMeetType = {}));
|
|
397
|
+
/**
|
|
398
|
+
* Wrestling overtime format options
|
|
399
|
+
*/
|
|
319
400
|
var WrestlingOvertimeType;
|
|
320
401
|
(function (WrestlingOvertimeType) {
|
|
321
402
|
WrestlingOvertimeType["SuddenVictory"] = "sv";
|
|
322
403
|
WrestlingOvertimeType["TieBreaker"] = "tb";
|
|
323
404
|
WrestlingOvertimeType["UltimateTieBreaker"] = "utb";
|
|
324
405
|
})(WrestlingOvertimeType || (exports.WrestlingOvertimeType = WrestlingOvertimeType = {}));
|
|
406
|
+
/**
|
|
407
|
+
* Wrestling period identifiers
|
|
408
|
+
*/
|
|
325
409
|
var WrestlingPeriod;
|
|
326
410
|
(function (WrestlingPeriod) {
|
|
327
411
|
WrestlingPeriod["First"] = "1";
|
|
@@ -329,9 +413,45 @@ var WrestlingPeriod;
|
|
|
329
413
|
WrestlingPeriod["Third"] = "3";
|
|
330
414
|
WrestlingPeriod["Overtime"] = "overtime";
|
|
331
415
|
})(WrestlingPeriod || (exports.WrestlingPeriod = WrestlingPeriod = {}));
|
|
416
|
+
/**
|
|
417
|
+
* Wrestling style options
|
|
418
|
+
*/
|
|
332
419
|
var WrestlingStyle;
|
|
333
420
|
(function (WrestlingStyle) {
|
|
334
421
|
WrestlingStyle["Freestyle"] = "freestyle";
|
|
335
422
|
WrestlingStyle["Greco"] = "greco";
|
|
336
423
|
WrestlingStyle["Folkstyle"] = "folkstyle";
|
|
337
424
|
})(WrestlingStyle || (exports.WrestlingStyle = WrestlingStyle = {}));
|
|
425
|
+
var ErrorCode;
|
|
426
|
+
(function (ErrorCode) {
|
|
427
|
+
ErrorCode["ForbiddenSelfPermissionsChange"] = "ForbiddenSelfPermissionsChange";
|
|
428
|
+
ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
|
|
429
|
+
ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
|
|
430
|
+
ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
|
|
431
|
+
ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
|
|
432
|
+
ErrorCode["InvalidAuthType"] = "InvalidAuthType";
|
|
433
|
+
ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
|
|
434
|
+
ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
|
|
435
|
+
ErrorCode["InvalidDate"] = "InvalidDate";
|
|
436
|
+
ErrorCode["InvalidInput"] = "InvalidInput";
|
|
437
|
+
ErrorCode["InvalidRequest"] = "InvalidRequest";
|
|
438
|
+
ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
|
|
439
|
+
ErrorCode["InvalidSignIn"] = "InvalidSignIn";
|
|
440
|
+
ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
|
|
441
|
+
ErrorCode["InvalidToken"] = "InvalidToken";
|
|
442
|
+
ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
|
|
443
|
+
ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
|
|
444
|
+
ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
|
|
445
|
+
ErrorCode["AccountFeatureNotEnabled"] = "AccountFeatureNotEnabled";
|
|
446
|
+
ErrorCode["AppNotEnabled"] = "AppNotEnabled";
|
|
447
|
+
ErrorCode["ImageProcessingError"] = "ImageProcessingError";
|
|
448
|
+
ErrorCode["RemoteServerError"] = "RemoteServerError";
|
|
449
|
+
ErrorCode["RemoteServerTimeout"] = "RemoteServerTimeout";
|
|
450
|
+
ErrorCode["RequestLimitExceeded"] = "RequestLimitExceeded";
|
|
451
|
+
ErrorCode["ResourceNotFound"] = "ResourceNotFound";
|
|
452
|
+
ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
|
|
453
|
+
ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
|
|
454
|
+
ErrorCode["IncompatibleState"] = "IncompatibleState";
|
|
455
|
+
ErrorCode["VersionConflict"] = "VersionConflict";
|
|
456
|
+
ErrorCode["UnspecifiedError"] = "UnspecifiedError";
|
|
457
|
+
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
|