@scoreboardmax/api-types 1.0.31 → 1.0.34

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
@@ -47,6 +47,8 @@ var ApiResource;
47
47
  ApiResource["AccountList"] = "accountList";
48
48
  ApiResource["App"] = "app";
49
49
  ApiResource["AppList"] = "appList";
50
+ ApiResource["Archive"] = "archive";
51
+ ApiResource["ArchiveList"] = "archiveList";
50
52
  ApiResource["File"] = "file";
51
53
  ApiResource["FileList"] = "fileList";
52
54
  ApiResource["Auth"] = "auth";
package/dist/index.d.ts CHANGED
@@ -24,6 +24,8 @@ export declare enum ApiResource {
24
24
  AccountList = "accountList",
25
25
  App = "app",
26
26
  AppList = "appList",
27
+ Archive = "archive",
28
+ ArchiveList = "archiveList",
27
29
  File = "file",
28
30
  FileList = "fileList",
29
31
  Auth = "auth",
@@ -272,6 +274,12 @@ export declare enum WrestlingStyle {
272
274
  Greco = "greco",
273
275
  Folkstyle = "folkstyle"
274
276
  }
277
+ export interface AccountListResponse {
278
+ url: string;
279
+ uri: string;
280
+ pageNext: string | null;
281
+ data: AccountResponse[];
282
+ }
275
283
  export interface AccountRequest {
276
284
  name: string | null;
277
285
  logoFilename: string | null;
@@ -329,6 +337,7 @@ export interface Auth {
329
337
  userId?: string;
330
338
  type: AuthType;
331
339
  isAdmin: boolean;
340
+ isAssumed?: boolean;
332
341
  description?: string | null;
333
342
  permissions: Permissions;
334
343
  dateCreated: string;
@@ -1168,7 +1177,7 @@ export interface UserListResponse {
1168
1177
  url: string;
1169
1178
  uri: string;
1170
1179
  pageNext: string | null;
1171
- data: UserResponse[] | UserResponseAdmin[];
1180
+ data: UserResponse[];
1172
1181
  }
1173
1182
  export interface UserRequest {
1174
1183
  email: string;
@@ -1190,10 +1199,6 @@ export interface UserResponse {
1190
1199
  dateModified: string;
1191
1200
  dateLastActivity: string | null;
1192
1201
  }
1193
- export interface UserResponseAdmin extends UserResponse {
1194
- isOwner: boolean;
1195
- isAdmin: boolean;
1196
- }
1197
1202
  export interface UserUpdateRequest {
1198
1203
  name?: string;
1199
1204
  permissions?: Permissions;
package/dist/index.mjs CHANGED
@@ -38,6 +38,8 @@ export var ApiResource;
38
38
  ApiResource["AccountList"] = "accountList";
39
39
  ApiResource["App"] = "app";
40
40
  ApiResource["AppList"] = "appList";
41
+ ApiResource["Archive"] = "archive";
42
+ ApiResource["ArchiveList"] = "archiveList";
41
43
  ApiResource["File"] = "file";
42
44
  ApiResource["FileList"] = "fileList";
43
45
  ApiResource["Auth"] = "auth";
@@ -0,0 +1,335 @@
1
+ "use strict";
2
+ /**
3
+ * ScoreboardMax API Types - Internal
4
+ *
5
+ * This file contains ALL type definitions including admin-only types.
6
+ * These types are automatically generated from the ScoreboardMax API source code.
7
+ *
8
+ * Note: Admin types are only used in administrative applications and models with
9
+ * these interfaces will not be returned by the API to non-admin users.
10
+ *
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ 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;
14
+ const isBaseballData = (data) => {
15
+ return data.type === ScoreboardType.Baseball;
16
+ };
17
+ exports.isBaseballData = isBaseballData;
18
+ const isBasketballData = (data) => {
19
+ return data.type === ScoreboardType.Basketball;
20
+ };
21
+ exports.isBasketballData = isBasketballData;
22
+ const isFootballData = (data) => {
23
+ return data.type === ScoreboardType.Football;
24
+ };
25
+ exports.isFootballData = isFootballData;
26
+ const isSoccerData = (data) => {
27
+ return data.type === ScoreboardType.Soccer;
28
+ };
29
+ exports.isSoccerData = isSoccerData;
30
+ const isVolleyballData = (data) => {
31
+ return data.type === ScoreboardType.Volleyball;
32
+ };
33
+ exports.isVolleyballData = isVolleyballData;
34
+ const isWrestlingData = (data) => {
35
+ return data.type === ScoreboardType.Wrestling;
36
+ };
37
+ exports.isWrestlingData = isWrestlingData;
38
+ var ApiAction;
39
+ (function (ApiAction) {
40
+ ApiAction["Create"] = "create";
41
+ ApiAction["Read"] = "read";
42
+ ApiAction["Update"] = "update";
43
+ ApiAction["Delete"] = "delete";
44
+ ApiAction["All"] = "*";
45
+ })(ApiAction || (exports.ApiAction = ApiAction = {}));
46
+ var ApiResource;
47
+ (function (ApiResource) {
48
+ ApiResource["All"] = "*";
49
+ ApiResource["Account"] = "account";
50
+ ApiResource["AccountList"] = "accountList";
51
+ ApiResource["App"] = "app";
52
+ ApiResource["AppList"] = "appList";
53
+ ApiResource["Archive"] = "archive";
54
+ ApiResource["ArchiveList"] = "archiveList";
55
+ ApiResource["File"] = "file";
56
+ ApiResource["FileList"] = "fileList";
57
+ ApiResource["Auth"] = "auth";
58
+ ApiResource["AuthList"] = "authList";
59
+ ApiResource["Clock"] = "clock";
60
+ ApiResource["ClockList"] = "clockList";
61
+ ApiResource["Player"] = "player";
62
+ ApiResource["PlayerList"] = "playerList";
63
+ ApiResource["Roster"] = "roster";
64
+ ApiResource["RosterList"] = "rosterList";
65
+ ApiResource["Scoreboard"] = "scoreboard";
66
+ ApiResource["ScoreboardList"] = "scoreboardList";
67
+ ApiResource["Sponsor"] = "sponsor";
68
+ ApiResource["SponsorList"] = "sponsorList";
69
+ ApiResource["Team"] = "team";
70
+ ApiResource["TeamList"] = "teamList";
71
+ ApiResource["Upload"] = "upload";
72
+ ApiResource["UploadList"] = "uploadList";
73
+ ApiResource["User"] = "user";
74
+ ApiResource["UserList"] = "userList";
75
+ ApiResource["UserCredentials"] = "userCredentials";
76
+ ApiResource["UserCredentialsList"] = "userCredentialsList";
77
+ ApiResource["Overlay"] = "overlay";
78
+ ApiResource["OverlayList"] = "overlayList";
79
+ ApiResource["Preset"] = "preset";
80
+ ApiResource["PresetList"] = "presetList";
81
+ })(ApiResource || (exports.ApiResource = ApiResource = {}));
82
+ var AppType;
83
+ (function (AppType) {
84
+ AppType["Template"] = "template";
85
+ })(AppType || (exports.AppType = AppType = {}));
86
+ var AuthType;
87
+ (function (AuthType) {
88
+ AuthType["Session"] = "session";
89
+ AuthType["Api"] = "api";
90
+ AuthType["Guest"] = "guest";
91
+ AuthType["ScoreboardView"] = "scoreboardView";
92
+ })(AuthType || (exports.AuthType = AuthType = {}));
93
+ var BaseballInningSegment;
94
+ (function (BaseballInningSegment) {
95
+ BaseballInningSegment["Top"] = "top";
96
+ BaseballInningSegment["Middle"] = "middle";
97
+ BaseballInningSegment["Bottom"] = "bottom";
98
+ BaseballInningSegment["End"] = "end";
99
+ })(BaseballInningSegment || (exports.BaseballInningSegment = BaseballInningSegment = {}));
100
+ var BasketballGamePeriods;
101
+ (function (BasketballGamePeriods) {
102
+ BasketballGamePeriods["Quarters"] = "quarters";
103
+ BasketballGamePeriods["Halves"] = "halves";
104
+ })(BasketballGamePeriods || (exports.BasketballGamePeriods = BasketballGamePeriods = {}));
105
+ var BasketballPeriod;
106
+ (function (BasketballPeriod) {
107
+ BasketballPeriod["Pre"] = "pregame";
108
+ BasketballPeriod["First"] = "1";
109
+ BasketballPeriod["Second"] = "2";
110
+ BasketballPeriod["Half"] = "half";
111
+ BasketballPeriod["Third"] = "3";
112
+ BasketballPeriod["Fourth"] = "4";
113
+ BasketballPeriod["Overtime"] = "overtime";
114
+ })(BasketballPeriod || (exports.BasketballPeriod = BasketballPeriod = {}));
115
+ var BasketballTimeoutAllocation;
116
+ (function (BasketballTimeoutAllocation) {
117
+ BasketballTimeoutAllocation["PerGame"] = "perGame";
118
+ BasketballTimeoutAllocation["PerHalf"] = "perHalf";
119
+ })(BasketballTimeoutAllocation || (exports.BasketballTimeoutAllocation = BasketballTimeoutAllocation = {}));
120
+ var ClockType;
121
+ (function (ClockType) {
122
+ ClockType["Game"] = "game";
123
+ ClockType["Play"] = "play";
124
+ ClockType["Shot"] = "shot";
125
+ ClockType["Pitch"] = "pitch";
126
+ ClockType["Period"] = "period";
127
+ })(ClockType || (exports.ClockType = ClockType = {}));
128
+ var ContentType;
129
+ (function (ContentType) {
130
+ ContentType["Png"] = "image/png";
131
+ ContentType["Jpg"] = "image/jpeg";
132
+ ContentType["Gif"] = "image/gif";
133
+ ContentType["Webp"] = "image/webp";
134
+ ContentType["Avif"] = "image/avif";
135
+ ContentType["Csv"] = "text/csv";
136
+ ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
137
+ ContentType["Zip"] = "application/zip";
138
+ })(ContentType || (exports.ContentType = ContentType = {}));
139
+ var DisplayConnectionStatus;
140
+ (function (DisplayConnectionStatus) {
141
+ DisplayConnectionStatus["New"] = "new";
142
+ DisplayConnectionStatus["Connected"] = "connected";
143
+ DisplayConnectionStatus["Sent"] = "sent";
144
+ DisplayConnectionStatus["Completed"] = "completed";
145
+ })(DisplayConnectionStatus || (exports.DisplayConnectionStatus = DisplayConnectionStatus = {}));
146
+ var DownAndDistanceDisplay;
147
+ (function (DownAndDistanceDisplay) {
148
+ DownAndDistanceDisplay["Both"] = "both";
149
+ DownAndDistanceDisplay["DownOnly"] = "downOnly";
150
+ DownAndDistanceDisplay["None"] = "none";
151
+ })(DownAndDistanceDisplay || (exports.DownAndDistanceDisplay = DownAndDistanceDisplay = {}));
152
+ var ErrorCode;
153
+ (function (ErrorCode) {
154
+ ErrorCode["ForbiddenSelfPermissionsChange"] = "ForbiddenSelfPermissionsChange";
155
+ ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
156
+ ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
157
+ ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
158
+ ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
159
+ ErrorCode["InvalidAuthType"] = "InvalidAuthType";
160
+ ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
161
+ ErrorCode["InvalidDate"] = "InvalidDate";
162
+ ErrorCode["InvalidInput"] = "InvalidInput";
163
+ ErrorCode["InvalidRequest"] = "InvalidRequest";
164
+ ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
165
+ ErrorCode["InvalidSignIn"] = "InvalidSignIn";
166
+ ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
167
+ ErrorCode["InvalidToken"] = "InvalidToken";
168
+ ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
169
+ ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
170
+ ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
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 = {}));
184
+ var EventAction;
185
+ (function (EventAction) {
186
+ EventAction["Created"] = "created";
187
+ EventAction["Updated"] = "updated";
188
+ EventAction["Deleted"] = "deleted";
189
+ EventAction["Read"] = "read";
190
+ })(EventAction || (exports.EventAction = EventAction = {}));
191
+ var ExtraTimeLabel;
192
+ (function (ExtraTimeLabel) {
193
+ ExtraTimeLabel["ExtraTime"] = "ET";
194
+ ExtraTimeLabel["Overtime"] = "OT";
195
+ })(ExtraTimeLabel || (exports.ExtraTimeLabel = ExtraTimeLabel = {}));
196
+ var FileType;
197
+ (function (FileType) {
198
+ FileType["TeamLogo"] = "teamLogo";
199
+ FileType["AccountLogo"] = "accountLogo";
200
+ FileType["PlayerPhoto"] = "playerPhoto";
201
+ FileType["SponsorLogo"] = "sponsorLogo";
202
+ FileType["Temporary"] = "temporary";
203
+ })(FileType || (exports.FileType = FileType = {}));
204
+ var FootballPeriod;
205
+ (function (FootballPeriod) {
206
+ FootballPeriod["Pre"] = "pregame";
207
+ FootballPeriod["First"] = "1";
208
+ FootballPeriod["Second"] = "2";
209
+ FootballPeriod["Half"] = "half";
210
+ FootballPeriod["Third"] = "3";
211
+ FootballPeriod["Fourth"] = "4";
212
+ FootballPeriod["Overtime"] = "overtime";
213
+ })(FootballPeriod || (exports.FootballPeriod = FootballPeriod = {}));
214
+ var MagicLinkType;
215
+ (function (MagicLinkType) {
216
+ MagicLinkType["SignIn"] = "signIn";
217
+ MagicLinkType["ScoreboardGuest"] = "scoreboardGuest";
218
+ MagicLinkType["UserInvite"] = "userInvite";
219
+ MagicLinkType["ScoreboardView"] = "scoreboardView";
220
+ })(MagicLinkType || (exports.MagicLinkType = MagicLinkType = {}));
221
+ var MetaMessageType;
222
+ (function (MetaMessageType) {
223
+ MetaMessageType["ScoreboardReset"] = "scoreboardReset";
224
+ MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
225
+ })(MetaMessageType || (exports.MetaMessageType = MetaMessageType = {}));
226
+ var OAuthAction;
227
+ (function (OAuthAction) {
228
+ OAuthAction["NewUserCreated"] = "new_user_created";
229
+ OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
230
+ OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
231
+ OAuthAction["RequiresUserDecision"] = "requires_user_decision";
232
+ OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
233
+ })(OAuthAction || (exports.OAuthAction = OAuthAction = {}));
234
+ var OAuthProvider;
235
+ (function (OAuthProvider) {
236
+ OAuthProvider["Google"] = "google";
237
+ })(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
238
+ var PlanId;
239
+ (function (PlanId) {
240
+ PlanId["Basic"] = "basic";
241
+ PlanId["Plus"] = "plus";
242
+ PlanId["Pro"] = "pro";
243
+ })(PlanId || (exports.PlanId = PlanId = {}));
244
+ var ScoreboardCode;
245
+ (function (ScoreboardCode) {
246
+ ScoreboardCode["Football"] = "fb";
247
+ ScoreboardCode["Basketball"] = "bb";
248
+ ScoreboardCode["Volleyball"] = "vb";
249
+ ScoreboardCode["Soccer"] = "sc";
250
+ ScoreboardCode["Baseball"] = "ba";
251
+ ScoreboardCode["Wrestling"] = "wr";
252
+ })(ScoreboardCode || (exports.ScoreboardCode = ScoreboardCode = {}));
253
+ var ScoreboardType;
254
+ (function (ScoreboardType) {
255
+ ScoreboardType["Baseball"] = "baseball";
256
+ ScoreboardType["Basketball"] = "basketball";
257
+ ScoreboardType["Football"] = "football";
258
+ ScoreboardType["Soccer"] = "soccer";
259
+ ScoreboardType["Volleyball"] = "volleyball";
260
+ ScoreboardType["Wrestling"] = "wrestling";
261
+ })(ScoreboardType || (exports.ScoreboardType = ScoreboardType = {}));
262
+ var SoccerGamePeriods;
263
+ (function (SoccerGamePeriods) {
264
+ SoccerGamePeriods["Quarters"] = "quarters";
265
+ SoccerGamePeriods["Halves"] = "halves";
266
+ })(SoccerGamePeriods || (exports.SoccerGamePeriods = SoccerGamePeriods = {}));
267
+ var SoccerPenaltyCardType;
268
+ (function (SoccerPenaltyCardType) {
269
+ SoccerPenaltyCardType["Yellow"] = "yellow";
270
+ SoccerPenaltyCardType["Red"] = "red";
271
+ })(SoccerPenaltyCardType || (exports.SoccerPenaltyCardType = SoccerPenaltyCardType = {}));
272
+ var SoccerPeriod;
273
+ (function (SoccerPeriod) {
274
+ SoccerPeriod["Pre"] = "pregame";
275
+ SoccerPeriod["First"] = "1";
276
+ SoccerPeriod["Second"] = "2";
277
+ SoccerPeriod["Half"] = "half";
278
+ SoccerPeriod["Third"] = "3";
279
+ SoccerPeriod["Fourth"] = "4";
280
+ SoccerPeriod["ExtraTime1"] = "ET 1";
281
+ SoccerPeriod["ExtraTime2"] = "ET 2";
282
+ SoccerPeriod["Shootout"] = "shootout";
283
+ })(SoccerPeriod || (exports.SoccerPeriod = SoccerPeriod = {}));
284
+ var TemplateUseCase;
285
+ (function (TemplateUseCase) {
286
+ TemplateUseCase["Embed"] = "embed";
287
+ TemplateUseCase["Display"] = "display";
288
+ TemplateUseCase["Direct"] = "direct";
289
+ })(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
290
+ var VolleyballSet;
291
+ (function (VolleyballSet) {
292
+ VolleyballSet["Pre"] = "pregame";
293
+ VolleyballSet["First"] = "1";
294
+ VolleyballSet["Second"] = "2";
295
+ VolleyballSet["Third"] = "3";
296
+ VolleyballSet["Fourth"] = "4";
297
+ VolleyballSet["Fifth"] = "5";
298
+ })(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
299
+ var WebsocketMessageType;
300
+ (function (WebsocketMessageType) {
301
+ WebsocketMessageType["Event"] = "event";
302
+ WebsocketMessageType["Heartbeat"] = "heartbeat";
303
+ WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
304
+ WebsocketMessageType["Info"] = "info";
305
+ WebsocketMessageType["Meta"] = "meta";
306
+ })(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
307
+ var WebsocketOperation;
308
+ (function (WebsocketOperation) {
309
+ WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
310
+ WebsocketOperation["GetConnectionId"] = "getConnectionId";
311
+ })(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
312
+ var WrestlingMeetType;
313
+ (function (WrestlingMeetType) {
314
+ WrestlingMeetType["Dual"] = "dual";
315
+ WrestlingMeetType["Tournament"] = "tournament";
316
+ })(WrestlingMeetType || (exports.WrestlingMeetType = WrestlingMeetType = {}));
317
+ var WrestlingOvertimeType;
318
+ (function (WrestlingOvertimeType) {
319
+ WrestlingOvertimeType["SuddenVictory"] = "sv";
320
+ WrestlingOvertimeType["TieBreaker"] = "tb";
321
+ WrestlingOvertimeType["UltimateTieBreaker"] = "utb";
322
+ })(WrestlingOvertimeType || (exports.WrestlingOvertimeType = WrestlingOvertimeType = {}));
323
+ var WrestlingPeriod;
324
+ (function (WrestlingPeriod) {
325
+ WrestlingPeriod["First"] = "1";
326
+ WrestlingPeriod["Second"] = "2";
327
+ WrestlingPeriod["Third"] = "3";
328
+ WrestlingPeriod["Overtime"] = "overtime";
329
+ })(WrestlingPeriod || (exports.WrestlingPeriod = WrestlingPeriod = {}));
330
+ var WrestlingStyle;
331
+ (function (WrestlingStyle) {
332
+ WrestlingStyle["Freestyle"] = "freestyle";
333
+ WrestlingStyle["Greco"] = "greco";
334
+ WrestlingStyle["Folkstyle"] = "folkstyle";
335
+ })(WrestlingStyle || (exports.WrestlingStyle = WrestlingStyle = {}));