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