@scoreboardmax/api-types 1.0.34-next.2 → 1.0.34-next.20

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
@@ -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.WebsocketMessageType = exports.VolleyballSet = exports.TemplateUseCase = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.SoccerGamePeriods = exports.ScoreboardType = exports.ScoreboardCode = exports.PlanId = exports.OAuthProvider = exports.OAuthAction = 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
- const isBaseballData = (data) => {
12
- return data.type === ScoreboardType.Baseball;
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.TalkingPointFocus = exports.FileType = exports.ContentType = exports.ExtraTimeLabel = exports.EventAction = exports.AppEntitlementRequirement = exports.TalkingPointEnergy = exports.DownAndDistanceDisplay = exports.DisplayConnectionStatus = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballGamePeriods = exports.BasketballPeriod = exports.PlanId = exports.AuthType = exports.AppType = exports.AppEntitlementType = exports.AppEntitlementGrantedBy = 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"] = "*";
@@ -55,12 +37,15 @@ var ApiResource;
55
37
  ApiResource["AuthList"] = "authList";
56
38
  ApiResource["Clock"] = "clock";
57
39
  ApiResource["ClockList"] = "clockList";
40
+ ApiResource["Insight"] = "insight";
58
41
  ApiResource["Player"] = "player";
59
42
  ApiResource["PlayerList"] = "playerList";
60
43
  ApiResource["Roster"] = "roster";
61
44
  ApiResource["RosterList"] = "rosterList";
62
45
  ApiResource["Scoreboard"] = "scoreboard";
63
46
  ApiResource["ScoreboardList"] = "scoreboardList";
47
+ ApiResource["ScoreboardLog"] = "scoreboardLog";
48
+ ApiResource["ScoreboardLogList"] = "scoreboardLogList";
64
49
  ApiResource["Sponsor"] = "sponsor";
65
50
  ApiResource["SponsorList"] = "sponsorList";
66
51
  ApiResource["Team"] = "team";
@@ -75,11 +60,37 @@ var ApiResource;
75
60
  ApiResource["OverlayList"] = "overlayList";
76
61
  ApiResource["Preset"] = "preset";
77
62
  ApiResource["PresetList"] = "presetList";
63
+ ApiResource["Game"] = "game";
64
+ ApiResource["GameList"] = "gameList";
65
+ ApiResource["Template"] = "template";
66
+ ApiResource["TemplateList"] = "templateList";
78
67
  })(ApiResource || (exports.ApiResource = ApiResource = {}));
68
+ /**
69
+ * App entitlement grant source
70
+ */
71
+ var AppEntitlementGrantedBy;
72
+ (function (AppEntitlementGrantedBy) {
73
+ AppEntitlementGrantedBy["Payment"] = "payment";
74
+ AppEntitlementGrantedBy["Promotion"] = "promotion";
75
+ AppEntitlementGrantedBy["Admin"] = "admin";
76
+ })(AppEntitlementGrantedBy || (exports.AppEntitlementGrantedBy = AppEntitlementGrantedBy = {}));
77
+ /**
78
+ * App entitlement type
79
+ */
80
+ var AppEntitlementType;
81
+ (function (AppEntitlementType) {
82
+ AppEntitlementType["Template"] = "template";
83
+ })(AppEntitlementType || (exports.AppEntitlementType = AppEntitlementType = {}));
84
+ /**
85
+ * App type identifiers
86
+ */
79
87
  var AppType;
80
88
  (function (AppType) {
81
89
  AppType["Template"] = "template";
82
90
  })(AppType || (exports.AppType = AppType = {}));
91
+ /**
92
+ * Authentication method types
93
+ */
83
94
  var AuthType;
84
95
  (function (AuthType) {
85
96
  AuthType["Session"] = "session";
@@ -87,18 +98,18 @@ var AuthType;
87
98
  AuthType["Guest"] = "guest";
88
99
  AuthType["ScoreboardView"] = "scoreboardView";
89
100
  })(AuthType || (exports.AuthType = AuthType = {}));
90
- var BaseballInningSegment;
91
- (function (BaseballInningSegment) {
92
- BaseballInningSegment["Top"] = "top";
93
- BaseballInningSegment["Middle"] = "middle";
94
- BaseballInningSegment["Bottom"] = "bottom";
95
- BaseballInningSegment["End"] = "end";
96
- })(BaseballInningSegment || (exports.BaseballInningSegment = BaseballInningSegment = {}));
97
- var BasketballGamePeriods;
98
- (function (BasketballGamePeriods) {
99
- BasketballGamePeriods["Quarters"] = "quarters";
100
- BasketballGamePeriods["Halves"] = "halves";
101
- })(BasketballGamePeriods || (exports.BasketballGamePeriods = BasketballGamePeriods = {}));
101
+ /**
102
+ * Available plan identifiers
103
+ */
104
+ var PlanId;
105
+ (function (PlanId) {
106
+ PlanId["Basic"] = "basic";
107
+ PlanId["Plus"] = "plus";
108
+ PlanId["Pro"] = "pro";
109
+ })(PlanId || (exports.PlanId = PlanId = {}));
110
+ /**
111
+ * Basketball period identifiers
112
+ */
102
113
  var BasketballPeriod;
103
114
  (function (BasketballPeriod) {
104
115
  BasketballPeriod["Pre"] = "pregame";
@@ -108,12 +119,27 @@ var BasketballPeriod;
108
119
  BasketballPeriod["Third"] = "3";
109
120
  BasketballPeriod["Fourth"] = "4";
110
121
  BasketballPeriod["Overtime"] = "overtime";
122
+ BasketballPeriod["Final"] = "final";
111
123
  })(BasketballPeriod || (exports.BasketballPeriod = BasketballPeriod = {}));
124
+ /**
125
+ * Basketball period structure options
126
+ */
127
+ var BasketballGamePeriods;
128
+ (function (BasketballGamePeriods) {
129
+ BasketballGamePeriods["Quarters"] = "quarters";
130
+ BasketballGamePeriods["Halves"] = "halves";
131
+ })(BasketballGamePeriods || (exports.BasketballGamePeriods = BasketballGamePeriods = {}));
132
+ /**
133
+ * Basketball timeout allocation options
134
+ */
112
135
  var BasketballTimeoutAllocation;
113
136
  (function (BasketballTimeoutAllocation) {
114
137
  BasketballTimeoutAllocation["PerGame"] = "perGame";
115
138
  BasketballTimeoutAllocation["PerHalf"] = "perHalf";
116
139
  })(BasketballTimeoutAllocation || (exports.BasketballTimeoutAllocation = BasketballTimeoutAllocation = {}));
140
+ /**
141
+ * Clock type identifiers
142
+ */
117
143
  var ClockType;
118
144
  (function (ClockType) {
119
145
  ClockType["Game"] = "game";
@@ -122,17 +148,9 @@ var ClockType;
122
148
  ClockType["Pitch"] = "pitch";
123
149
  ClockType["Period"] = "period";
124
150
  })(ClockType || (exports.ClockType = ClockType = {}));
125
- var ContentType;
126
- (function (ContentType) {
127
- ContentType["Png"] = "image/png";
128
- ContentType["Jpg"] = "image/jpeg";
129
- ContentType["Gif"] = "image/gif";
130
- ContentType["Webp"] = "image/webp";
131
- ContentType["Avif"] = "image/avif";
132
- ContentType["Csv"] = "text/csv";
133
- ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
134
- ContentType["Zip"] = "application/zip";
135
- })(ContentType || (exports.ContentType = ContentType = {}));
151
+ /**
152
+ * Display connection status values
153
+ */
136
154
  var DisplayConnectionStatus;
137
155
  (function (DisplayConnectionStatus) {
138
156
  DisplayConnectionStatus["New"] = "new";
@@ -140,45 +158,35 @@ var DisplayConnectionStatus;
140
158
  DisplayConnectionStatus["Sent"] = "sent";
141
159
  DisplayConnectionStatus["Completed"] = "completed";
142
160
  })(DisplayConnectionStatus || (exports.DisplayConnectionStatus = DisplayConnectionStatus = {}));
161
+ /**
162
+ * Down and distance display options
163
+ */
143
164
  var DownAndDistanceDisplay;
144
165
  (function (DownAndDistanceDisplay) {
145
166
  DownAndDistanceDisplay["Both"] = "both";
146
167
  DownAndDistanceDisplay["DownOnly"] = "downOnly";
147
168
  DownAndDistanceDisplay["None"] = "none";
148
169
  })(DownAndDistanceDisplay || (exports.DownAndDistanceDisplay = DownAndDistanceDisplay = {}));
149
- var ErrorCode;
150
- (function (ErrorCode) {
151
- ErrorCode["ForbiddenSelfPermissionsChange"] = "ForbiddenSelfPermissionsChange";
152
- ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
153
- ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
154
- ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
155
- ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
156
- ErrorCode["InvalidAuthType"] = "InvalidAuthType";
157
- ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
158
- ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
159
- ErrorCode["InvalidDate"] = "InvalidDate";
160
- ErrorCode["InvalidInput"] = "InvalidInput";
161
- ErrorCode["InvalidRequest"] = "InvalidRequest";
162
- ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
163
- ErrorCode["InvalidSignIn"] = "InvalidSignIn";
164
- ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
165
- ErrorCode["InvalidToken"] = "InvalidToken";
166
- ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
167
- ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
168
- ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
169
- ErrorCode["AccountFeatureNotEnabled"] = "AccountFeatureNotEnabled";
170
- ErrorCode["AppNotEnabled"] = "AppNotEnabled";
171
- ErrorCode["ImageProcessingError"] = "ImageProcessingError";
172
- ErrorCode["RemoteServerError"] = "RemoteServerError";
173
- ErrorCode["RemoteServerTimeout"] = "RemoteServerTimeout";
174
- ErrorCode["RequestLimitExceeded"] = "RequestLimitExceeded";
175
- ErrorCode["ResourceNotFound"] = "ResourceNotFound";
176
- ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
177
- ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
178
- ErrorCode["IncompatibleState"] = "IncompatibleState";
179
- ErrorCode["VersionConflict"] = "VersionConflict";
180
- ErrorCode["UnspecifiedError"] = "UnspecifiedError";
181
- })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
170
+ /**
171
+ * Energy level for talking points generation
172
+ */
173
+ var TalkingPointEnergy;
174
+ (function (TalkingPointEnergy) {
175
+ TalkingPointEnergy["Standard"] = "standard";
176
+ TalkingPointEnergy["Hype"] = "hype";
177
+ })(TalkingPointEnergy || (exports.TalkingPointEnergy = TalkingPointEnergy = {}));
178
+ /**
179
+ * Entitlement requirement for access control
180
+ */
181
+ var AppEntitlementRequirement;
182
+ (function (AppEntitlementRequirement) {
183
+ AppEntitlementRequirement["None"] = "none";
184
+ AppEntitlementRequirement["AccountSubscription"] = "accountSubscription";
185
+ AppEntitlementRequirement["Payment"] = "payment";
186
+ })(AppEntitlementRequirement || (exports.AppEntitlementRequirement = AppEntitlementRequirement = {}));
187
+ /**
188
+ * Event action identifiers
189
+ */
182
190
  var EventAction;
183
191
  (function (EventAction) {
184
192
  EventAction["Created"] = "created";
@@ -186,19 +194,52 @@ var EventAction;
186
194
  EventAction["Deleted"] = "deleted";
187
195
  EventAction["Read"] = "read";
188
196
  })(EventAction || (exports.EventAction = EventAction = {}));
197
+ /**
198
+ * Extra time display label options
199
+ */
189
200
  var ExtraTimeLabel;
190
201
  (function (ExtraTimeLabel) {
191
202
  ExtraTimeLabel["ExtraTime"] = "ET";
192
203
  ExtraTimeLabel["Overtime"] = "OT";
193
204
  })(ExtraTimeLabel || (exports.ExtraTimeLabel = ExtraTimeLabel = {}));
205
+ /**
206
+ * File content type identifiers
207
+ */
208
+ var ContentType;
209
+ (function (ContentType) {
210
+ ContentType["Png"] = "image/png";
211
+ ContentType["Jpg"] = "image/jpeg";
212
+ ContentType["Gif"] = "image/gif";
213
+ ContentType["Webp"] = "image/webp";
214
+ ContentType["Avif"] = "image/avif";
215
+ ContentType["Csv"] = "text/csv";
216
+ ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
217
+ ContentType["Zip"] = "application/zip";
218
+ })(ContentType || (exports.ContentType = ContentType = {}));
219
+ /**
220
+ * File type identifiers
221
+ */
194
222
  var FileType;
195
223
  (function (FileType) {
196
224
  FileType["TeamLogo"] = "teamLogo";
197
225
  FileType["AccountLogo"] = "accountLogo";
198
226
  FileType["PlayerPhoto"] = "playerPhoto";
199
227
  FileType["SponsorLogo"] = "sponsorLogo";
228
+ FileType["InsightLogo"] = "insightLogo";
200
229
  FileType["Temporary"] = "temporary";
201
230
  })(FileType || (exports.FileType = FileType = {}));
231
+ /**
232
+ * Focus area for talking points generation
233
+ */
234
+ var TalkingPointFocus;
235
+ (function (TalkingPointFocus) {
236
+ TalkingPointFocus["Story"] = "story";
237
+ TalkingPointFocus["Balanced"] = "balanced";
238
+ TalkingPointFocus["Stats"] = "stats";
239
+ })(TalkingPointFocus || (exports.TalkingPointFocus = TalkingPointFocus = {}));
240
+ /**
241
+ * Football period identifiers
242
+ */
202
243
  var FootballPeriod;
203
244
  (function (FootballPeriod) {
204
245
  FootballPeriod["Pre"] = "pregame";
@@ -208,7 +249,11 @@ var FootballPeriod;
208
249
  FootballPeriod["Third"] = "3";
209
250
  FootballPeriod["Fourth"] = "4";
210
251
  FootballPeriod["Overtime"] = "overtime";
252
+ FootballPeriod["Final"] = "final";
211
253
  })(FootballPeriod || (exports.FootballPeriod = FootballPeriod = {}));
254
+ /**
255
+ * Magic link type identifiers
256
+ */
212
257
  var MagicLinkType;
213
258
  (function (MagicLinkType) {
214
259
  MagicLinkType["SignIn"] = "signIn";
@@ -216,27 +261,25 @@ var MagicLinkType;
216
261
  MagicLinkType["UserInvite"] = "userInvite";
217
262
  MagicLinkType["ScoreboardView"] = "scoreboardView";
218
263
  })(MagicLinkType || (exports.MagicLinkType = MagicLinkType = {}));
219
- var MetaMessageType;
220
- (function (MetaMessageType) {
221
- MetaMessageType["ScoreboardReset"] = "scoreboardReset";
222
- MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
223
- })(MetaMessageType || (exports.MetaMessageType = MetaMessageType = {}));
264
+ /**
265
+ * OAuth action identifiers
266
+ */
224
267
  var OAuthAction;
225
268
  (function (OAuthAction) {
226
269
  OAuthAction["NewUserCreated"] = "new_user_created";
227
270
  OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
228
271
  OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
229
272
  })(OAuthAction || (exports.OAuthAction = OAuthAction = {}));
273
+ /**
274
+ * OAuth provider identifiers
275
+ */
230
276
  var OAuthProvider;
231
277
  (function (OAuthProvider) {
232
278
  OAuthProvider["Google"] = "google";
233
279
  })(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
234
- var PlanId;
235
- (function (PlanId) {
236
- PlanId["Basic"] = "basic";
237
- PlanId["Plus"] = "plus";
238
- PlanId["Pro"] = "pro";
239
- })(PlanId || (exports.PlanId = PlanId = {}));
280
+ /**
281
+ * Short codes for sport types
282
+ */
240
283
  var ScoreboardCode;
241
284
  (function (ScoreboardCode) {
242
285
  ScoreboardCode["Football"] = "fb";
@@ -246,25 +289,17 @@ var ScoreboardCode;
246
289
  ScoreboardCode["Baseball"] = "ba";
247
290
  ScoreboardCode["Wrestling"] = "wr";
248
291
  })(ScoreboardCode || (exports.ScoreboardCode = ScoreboardCode = {}));
249
- var ScoreboardType;
250
- (function (ScoreboardType) {
251
- ScoreboardType["Baseball"] = "baseball";
252
- ScoreboardType["Basketball"] = "basketball";
253
- ScoreboardType["Football"] = "football";
254
- ScoreboardType["Soccer"] = "soccer";
255
- ScoreboardType["Volleyball"] = "volleyball";
256
- ScoreboardType["Wrestling"] = "wrestling";
257
- })(ScoreboardType || (exports.ScoreboardType = ScoreboardType = {}));
258
- var SoccerGamePeriods;
259
- (function (SoccerGamePeriods) {
260
- SoccerGamePeriods["Quarters"] = "quarters";
261
- SoccerGamePeriods["Halves"] = "halves";
262
- })(SoccerGamePeriods || (exports.SoccerGamePeriods = SoccerGamePeriods = {}));
292
+ /**
293
+ * Soccer penalty card types
294
+ */
263
295
  var SoccerPenaltyCardType;
264
296
  (function (SoccerPenaltyCardType) {
265
297
  SoccerPenaltyCardType["Yellow"] = "yellow";
266
298
  SoccerPenaltyCardType["Red"] = "red";
267
299
  })(SoccerPenaltyCardType || (exports.SoccerPenaltyCardType = SoccerPenaltyCardType = {}));
300
+ /**
301
+ * Soccer period identifiers
302
+ */
268
303
  var SoccerPeriod;
269
304
  (function (SoccerPeriod) {
270
305
  SoccerPeriod["Pre"] = "pregame";
@@ -276,13 +311,92 @@ var SoccerPeriod;
276
311
  SoccerPeriod["ExtraTime1"] = "ET 1";
277
312
  SoccerPeriod["ExtraTime2"] = "ET 2";
278
313
  SoccerPeriod["Shootout"] = "shootout";
314
+ SoccerPeriod["Final"] = "final";
279
315
  })(SoccerPeriod || (exports.SoccerPeriod = SoccerPeriod = {}));
316
+ /**
317
+ * Soccer period structure options
318
+ */
319
+ var SoccerGamePeriods;
320
+ (function (SoccerGamePeriods) {
321
+ SoccerGamePeriods["Quarters"] = "quarters";
322
+ SoccerGamePeriods["Halves"] = "halves";
323
+ })(SoccerGamePeriods || (exports.SoccerGamePeriods = SoccerGamePeriods = {}));
324
+ /**
325
+ * Supported sport types
326
+ */
327
+ var ScoreboardType;
328
+ (function (ScoreboardType) {
329
+ ScoreboardType["Baseball"] = "baseball";
330
+ ScoreboardType["Basketball"] = "basketball";
331
+ ScoreboardType["Football"] = "football";
332
+ ScoreboardType["Soccer"] = "soccer";
333
+ ScoreboardType["Volleyball"] = "volleyball";
334
+ ScoreboardType["Wrestling"] = "wrestling";
335
+ })(ScoreboardType || (exports.ScoreboardType = ScoreboardType = {}));
336
+ /**
337
+ * Template use case categories
338
+ */
280
339
  var TemplateUseCase;
281
340
  (function (TemplateUseCase) {
282
341
  TemplateUseCase["Embed"] = "embed";
283
342
  TemplateUseCase["Display"] = "display";
284
343
  TemplateUseCase["Direct"] = "direct";
285
344
  })(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
345
+ /**
346
+ * Top or bottom of inning
347
+ */
348
+ var BaseballInningSegment;
349
+ (function (BaseballInningSegment) {
350
+ BaseballInningSegment["Top"] = "top";
351
+ BaseballInningSegment["Middle"] = "middle";
352
+ BaseballInningSegment["Bottom"] = "bottom";
353
+ BaseballInningSegment["End"] = "end";
354
+ })(BaseballInningSegment || (exports.BaseballInningSegment = BaseballInningSegment = {}));
355
+ /**
356
+ * Type guard for baseball data
357
+ */
358
+ const isBaseballData = (data) => {
359
+ return data.type === ScoreboardType.Baseball;
360
+ };
361
+ exports.isBaseballData = isBaseballData;
362
+ /**
363
+ * Type guard for basketball data
364
+ */
365
+ const isBasketballData = (data) => {
366
+ return data.type === ScoreboardType.Basketball;
367
+ };
368
+ exports.isBasketballData = isBasketballData;
369
+ /**
370
+ * Type guard for football data
371
+ */
372
+ const isFootballData = (data) => {
373
+ return data.type === ScoreboardType.Football;
374
+ };
375
+ exports.isFootballData = isFootballData;
376
+ /**
377
+ * Type guard for soccer data
378
+ */
379
+ const isSoccerData = (data) => {
380
+ return data.type === ScoreboardType.Soccer;
381
+ };
382
+ exports.isSoccerData = isSoccerData;
383
+ /**
384
+ * Type guard for volleyball data
385
+ */
386
+ const isVolleyballData = (data) => {
387
+ return data.type === ScoreboardType.Volleyball;
388
+ };
389
+ exports.isVolleyballData = isVolleyballData;
390
+ /**
391
+ * Type guard for wrestling data
392
+ */
393
+ const isWrestlingData = (data) => {
394
+ return data.type === ScoreboardType.Wrestling;
395
+ };
396
+ exports.isWrestlingData = isWrestlingData;
397
+ /**
398
+ * Volleyball set identifiers
399
+ */
286
400
  var VolleyballSet;
287
401
  (function (VolleyballSet) {
288
402
  VolleyballSet["Pre"] = "pregame";
@@ -291,7 +405,11 @@ var VolleyballSet;
291
405
  VolleyballSet["Third"] = "3";
292
406
  VolleyballSet["Fourth"] = "4";
293
407
  VolleyballSet["Fifth"] = "5";
408
+ VolleyballSet["Final"] = "final";
294
409
  })(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
410
+ /**
411
+ * Websocket message type identifiers
412
+ */
295
413
  var WebsocketMessageType;
296
414
  (function (WebsocketMessageType) {
297
415
  WebsocketMessageType["Event"] = "event";
@@ -300,32 +418,89 @@ var WebsocketMessageType;
300
418
  WebsocketMessageType["Info"] = "info";
301
419
  WebsocketMessageType["Meta"] = "meta";
302
420
  })(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
421
+ /**
422
+ * Websocket meta message types
423
+ */
424
+ var MetaMessageType;
425
+ (function (MetaMessageType) {
426
+ MetaMessageType["ScoreboardReset"] = "scoreboardReset";
427
+ MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
428
+ })(MetaMessageType || (exports.MetaMessageType = MetaMessageType = {}));
429
+ /**
430
+ * Websocket operation identifiers
431
+ */
303
432
  var WebsocketOperation;
304
433
  (function (WebsocketOperation) {
305
434
  WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
306
435
  WebsocketOperation["GetConnectionId"] = "getConnectionId";
307
436
  })(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
437
+ /**
438
+ * Wrestling meet format options
439
+ */
308
440
  var WrestlingMeetType;
309
441
  (function (WrestlingMeetType) {
310
442
  WrestlingMeetType["Dual"] = "dual";
311
443
  WrestlingMeetType["Tournament"] = "tournament";
312
444
  })(WrestlingMeetType || (exports.WrestlingMeetType = WrestlingMeetType = {}));
445
+ /**
446
+ * Wrestling overtime format options
447
+ */
313
448
  var WrestlingOvertimeType;
314
449
  (function (WrestlingOvertimeType) {
315
450
  WrestlingOvertimeType["SuddenVictory"] = "sv";
316
451
  WrestlingOvertimeType["TieBreaker"] = "tb";
317
452
  WrestlingOvertimeType["UltimateTieBreaker"] = "utb";
318
453
  })(WrestlingOvertimeType || (exports.WrestlingOvertimeType = WrestlingOvertimeType = {}));
454
+ /**
455
+ * Wrestling period identifiers
456
+ */
319
457
  var WrestlingPeriod;
320
458
  (function (WrestlingPeriod) {
321
459
  WrestlingPeriod["First"] = "1";
322
460
  WrestlingPeriod["Second"] = "2";
323
461
  WrestlingPeriod["Third"] = "3";
324
462
  WrestlingPeriod["Overtime"] = "overtime";
463
+ WrestlingPeriod["Final"] = "final";
325
464
  })(WrestlingPeriod || (exports.WrestlingPeriod = WrestlingPeriod = {}));
465
+ /**
466
+ * Wrestling style options
467
+ */
326
468
  var WrestlingStyle;
327
469
  (function (WrestlingStyle) {
328
470
  WrestlingStyle["Freestyle"] = "freestyle";
329
471
  WrestlingStyle["Greco"] = "greco";
330
472
  WrestlingStyle["Folkstyle"] = "folkstyle";
331
473
  })(WrestlingStyle || (exports.WrestlingStyle = WrestlingStyle = {}));
474
+ var ErrorCode;
475
+ (function (ErrorCode) {
476
+ ErrorCode["ForbiddenSelfPermissionsChange"] = "ForbiddenSelfPermissionsChange";
477
+ ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
478
+ ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
479
+ ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
480
+ ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
481
+ ErrorCode["InvalidAuthType"] = "InvalidAuthType";
482
+ ErrorCode["InvalidCaptchaToken"] = "InvalidCaptchaToken";
483
+ ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
484
+ ErrorCode["InvalidDate"] = "InvalidDate";
485
+ ErrorCode["InvalidInput"] = "InvalidInput";
486
+ ErrorCode["InvalidRequest"] = "InvalidRequest";
487
+ ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
488
+ ErrorCode["InvalidSignIn"] = "InvalidSignIn";
489
+ ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
490
+ ErrorCode["InvalidToken"] = "InvalidToken";
491
+ ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
492
+ ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
493
+ ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
494
+ ErrorCode["AccountFeatureNotEnabled"] = "AccountFeatureNotEnabled";
495
+ ErrorCode["AppNotEnabled"] = "AppNotEnabled";
496
+ ErrorCode["ImageProcessingError"] = "ImageProcessingError";
497
+ ErrorCode["RemoteServerError"] = "RemoteServerError";
498
+ ErrorCode["RemoteServerTimeout"] = "RemoteServerTimeout";
499
+ ErrorCode["RequestLimitExceeded"] = "RequestLimitExceeded";
500
+ ErrorCode["ResourceNotFound"] = "ResourceNotFound";
501
+ ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
502
+ ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
503
+ ErrorCode["IncompatibleState"] = "IncompatibleState";
504
+ ErrorCode["VersionConflict"] = "VersionConflict";
505
+ ErrorCode["UnspecifiedError"] = "UnspecifiedError";
506
+ })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));