@scoreboardmax/api-types 1.0.22-next.6 → 1.0.22-next.8

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,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.WebsocketMessageType = exports.TemplateUseCase = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.SoccerGamePeriods = exports.ScoreboardType = exports.ScoreboardCode = exports.PlanId = exports.OAuthProvider = exports.MetaMessageType = exports.MagicLinkType = exports.FootballPeriod = exports.FileType = exports.ExtraTimeLabel = exports.EventAction = exports.ErrorCode = exports.DownAndDistanceDisplay = exports.ContentType = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballPeriod = exports.BasketballGamePeriods = exports.BaseballInningSegment = exports.AuthType = exports.AppType = exports.ApiResource = exports.ApiAction = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = void 0;
10
+ exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.WebsocketMessageType = exports.VolleyballSet = exports.TemplateUseCase = exports.SoccerPeriod = exports.SoccerPenaltyCardType = exports.SoccerGamePeriods = exports.ScoreboardType = exports.ScoreboardCode = exports.PlanId = exports.OAuthProvider = exports.MetaMessageType = exports.MagicLinkType = exports.FootballPeriod = exports.FileType = exports.ExtraTimeLabel = exports.EventAction = exports.DownAndDistanceDisplay = exports.ContentType = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballPeriod = exports.BasketballGamePeriods = exports.BaseballInningSegment = exports.AuthType = exports.AppType = exports.ApiResource = exports.ApiAction = exports.isWrestlingData = exports.isVolleyballData = exports.isSoccerData = exports.isFootballData = exports.isBasketballData = exports.isBaseballData = void 0;
11
11
  const isBaseballData = (data) => {
12
12
  return data.type === ScoreboardType.Baseball;
13
13
  };
@@ -137,38 +137,6 @@ var DownAndDistanceDisplay;
137
137
  DownAndDistanceDisplay["DownOnly"] = "downOnly";
138
138
  DownAndDistanceDisplay["None"] = "none";
139
139
  })(DownAndDistanceDisplay || (exports.DownAndDistanceDisplay = DownAndDistanceDisplay = {}));
140
- var ErrorCode;
141
- (function (ErrorCode) {
142
- ErrorCode["ForbiddenSelfPermissionsChange"] = "ForbiddenSelfPermissionsChange";
143
- ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
144
- ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
145
- ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
146
- ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
147
- ErrorCode["InvalidAuthType"] = "InvalidAuthType";
148
- ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
149
- ErrorCode["InvalidDate"] = "InvalidDate";
150
- ErrorCode["InvalidInput"] = "InvalidInput";
151
- ErrorCode["InvalidRequest"] = "InvalidRequest";
152
- ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
153
- ErrorCode["InvalidSignIn"] = "InvalidSignIn";
154
- ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
155
- ErrorCode["InvalidToken"] = "InvalidToken";
156
- ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
157
- ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
158
- ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
159
- ErrorCode["AccountFeatureNotEnabled"] = "AccountFeatureNotEnabled";
160
- ErrorCode["AppNotEnabled"] = "AppNotEnabled";
161
- ErrorCode["ImageProcessingError"] = "ImageProcessingError";
162
- ErrorCode["RemoteServerError"] = "RemoteServerError";
163
- ErrorCode["RemoteServerTimeout"] = "RemoteServerTimeout";
164
- ErrorCode["RequestLimitExceeded"] = "RequestLimitExceeded";
165
- ErrorCode["ResourceNotFound"] = "ResourceNotFound";
166
- ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
167
- ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
168
- ErrorCode["IncompatibleState"] = "IncompatibleState";
169
- ErrorCode["VersionConflict"] = "VersionConflict";
170
- ErrorCode["UnspecifiedError"] = "UnspecifiedError";
171
- })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
172
140
  var EventAction;
173
141
  (function (EventAction) {
174
142
  EventAction["Created"] = "created";
@@ -267,6 +235,16 @@ var TemplateUseCase;
267
235
  TemplateUseCase["Display"] = "display";
268
236
  TemplateUseCase["Direct"] = "direct";
269
237
  })(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
238
+ var VolleyballSet;
239
+ (function (VolleyballSet) {
240
+ VolleyballSet["Pre"] = "pregame";
241
+ VolleyballSet["First"] = "1";
242
+ VolleyballSet["Second"] = "2";
243
+ VolleyballSet["Third"] = "3";
244
+ VolleyballSet["Fourth"] = "4";
245
+ VolleyballSet["Fifth"] = "5";
246
+ VolleyballSet["Final"] = "final";
247
+ })(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
270
248
  var WebsocketMessageType;
271
249
  (function (WebsocketMessageType) {
272
250
  WebsocketMessageType["Event"] = "event";
package/dist/index.d.ts CHANGED
@@ -105,37 +105,6 @@ export declare enum DownAndDistanceDisplay {
105
105
  DownOnly = "downOnly",
106
106
  None = "none"
107
107
  }
108
- export declare enum ErrorCode {
109
- ForbiddenSelfPermissionsChange = "ForbiddenSelfPermissionsChange",
110
- InsufficientAdminPermissions = "InsufficientAdminPermissions",
111
- InsufficientItemPermissions = "InsufficientItemPermissions",
112
- InsufficientResourcePermissions = "InsufficientResourcePermissions",
113
- InsufficientResourceItemPermissions = "InsufficientResourceItemPermissions",
114
- InvalidAuthType = "InvalidAuthType",
115
- InvalidColorFormat = "InvalidColorFormat",
116
- InvalidDate = "InvalidDate",
117
- InvalidInput = "InvalidInput",
118
- InvalidRequest = "InvalidRequest",
119
- InvalidPermissionGrant = "InvalidPermissionGrant",
120
- InvalidSignIn = "InvalidSignIn",
121
- InvalidAccountSignIn = "InvalidAccountSignIn",
122
- InvalidToken = "InvalidToken",
123
- AccountLimitExceeded = "AccountLimitExceeded",
124
- AccountStorageExceeded = "AccountStorageExceeded",
125
- ActiveScoreboardsExceeded = "ActiveScoreboardsExceeded",
126
- AccountFeatureNotEnabled = "AccountFeatureNotEnabled",
127
- AppNotEnabled = "AppNotEnabled",
128
- ImageProcessingError = "ImageProcessingError",
129
- RemoteServerError = "RemoteServerError",
130
- RemoteServerTimeout = "RemoteServerTimeout",
131
- RequestLimitExceeded = "RequestLimitExceeded",
132
- ResourceNotFound = "ResourceNotFound",
133
- UserCredentialsInUse = "UserCredentialsInUse",
134
- AccountEmailInUse = "AccountEmailInUse",
135
- IncompatibleState = "IncompatibleState",
136
- VersionConflict = "VersionConflict",
137
- UnspecifiedError = "UnspecifiedError"
138
- }
139
108
  export declare enum EventAction {
140
109
  Created = "created",
141
110
  Updated = "updated",
@@ -220,6 +189,15 @@ export declare enum TemplateUseCase {
220
189
  Display = "display",
221
190
  Direct = "direct"
222
191
  }
192
+ export declare enum VolleyballSet {
193
+ Pre = "pregame",
194
+ First = "1",
195
+ Second = "2",
196
+ Third = "3",
197
+ Fourth = "4",
198
+ Fifth = "5",
199
+ Final = "final"
200
+ }
223
201
  export declare enum WebsocketMessageType {
224
202
  Event = "event",
225
203
  Heartbeat = "heartbeat",
@@ -493,6 +471,9 @@ export interface CheckoutSessionResponse {
493
471
  sessionId: string;
494
472
  redirectUrl: string;
495
473
  }
474
+ export interface ClientConfigResponse {
475
+ websocketUrl: string;
476
+ }
496
477
  export interface Clock {
497
478
  clockId: string;
498
479
  scoreboardId: string;
@@ -535,13 +516,6 @@ export interface DataExtractResponse {
535
516
  }
536
517
  export interface DataRow extends Array<string> {
537
518
  }
538
- export interface ErrorResponse {
539
- error: boolean;
540
- code: ErrorCode;
541
- statusCode: number;
542
- reference: string;
543
- message: string;
544
- }
545
519
  export interface Event {
546
520
  eventId: string;
547
521
  accountId: string;
@@ -1145,14 +1119,14 @@ export interface UserUpdateRequest {
1145
1119
  permissions?: Permissions;
1146
1120
  }
1147
1121
  export interface VolleyballDataRequest {
1148
- set: number | null;
1122
+ set: VolleyballSet;
1149
1123
  team1: VolleyballScoreboardTeamRequest;
1150
1124
  team2: VolleyballScoreboardTeamRequest;
1151
1125
  settings?: VolleyballSettingsRequest;
1152
1126
  }
1153
1127
  export interface VolleyballDataResponse {
1154
1128
  type: ScoreboardType;
1155
- set: number | null;
1129
+ set: VolleyballSet;
1156
1130
  team1: VolleyballScoreboardTeamResponse;
1157
1131
  team2: VolleyballScoreboardTeamResponse;
1158
1132
  settings: VolleyballSettingsResponse;
@@ -1201,23 +1175,8 @@ export interface WebsocketMessage {
1201
1175
  message: string;
1202
1176
  data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
1203
1177
  }
1204
- export interface WebsocketScoreboardSubscriptionRequest {
1205
- action: "sendmessage";
1206
- operation: WebsocketOperation.SubscribeScoreboard | WebsocketOperation.UnsubscribeScoreboard;
1207
- scoreboardId: string;
1208
- appId?: string;
1209
- sendInitialData?: boolean;
1210
- token: string;
1211
- }
1212
- export interface WebsocketScoreboardSubscriptionResponse {
1213
- operation: WebsocketOperation.SubscribeScoreboard | WebsocketOperation.UnsubscribeScoreboard;
1214
- scoreboardId: string;
1215
- appId?: string;
1216
- error?: ErrorResponse;
1217
- }
1218
1178
  export interface WebsocketSubscriptionRequest {
1219
1179
  connectionId: string;
1220
- appId?: string;
1221
1180
  sendInitialData?: boolean;
1222
1181
  }
1223
1182
  export interface WebsocketSubscriptionResponse {
@@ -1225,7 +1184,6 @@ export interface WebsocketSubscriptionResponse {
1225
1184
  subscriptionResource: string;
1226
1185
  subscriptionResourceUri: string;
1227
1186
  accountId: string;
1228
- appId?: string;
1229
1187
  }
1230
1188
  export interface WrestlingDataRequest {
1231
1189
  period: WrestlingPeriod;
package/dist/index.mjs CHANGED
@@ -128,38 +128,6 @@ export var DownAndDistanceDisplay;
128
128
  DownAndDistanceDisplay["DownOnly"] = "downOnly";
129
129
  DownAndDistanceDisplay["None"] = "none";
130
130
  })(DownAndDistanceDisplay || (DownAndDistanceDisplay = {}));
131
- export var ErrorCode;
132
- (function (ErrorCode) {
133
- ErrorCode["ForbiddenSelfPermissionsChange"] = "ForbiddenSelfPermissionsChange";
134
- ErrorCode["InsufficientAdminPermissions"] = "InsufficientAdminPermissions";
135
- ErrorCode["InsufficientItemPermissions"] = "InsufficientItemPermissions";
136
- ErrorCode["InsufficientResourcePermissions"] = "InsufficientResourcePermissions";
137
- ErrorCode["InsufficientResourceItemPermissions"] = "InsufficientResourceItemPermissions";
138
- ErrorCode["InvalidAuthType"] = "InvalidAuthType";
139
- ErrorCode["InvalidColorFormat"] = "InvalidColorFormat";
140
- ErrorCode["InvalidDate"] = "InvalidDate";
141
- ErrorCode["InvalidInput"] = "InvalidInput";
142
- ErrorCode["InvalidRequest"] = "InvalidRequest";
143
- ErrorCode["InvalidPermissionGrant"] = "InvalidPermissionGrant";
144
- ErrorCode["InvalidSignIn"] = "InvalidSignIn";
145
- ErrorCode["InvalidAccountSignIn"] = "InvalidAccountSignIn";
146
- ErrorCode["InvalidToken"] = "InvalidToken";
147
- ErrorCode["AccountLimitExceeded"] = "AccountLimitExceeded";
148
- ErrorCode["AccountStorageExceeded"] = "AccountStorageExceeded";
149
- ErrorCode["ActiveScoreboardsExceeded"] = "ActiveScoreboardsExceeded";
150
- ErrorCode["AccountFeatureNotEnabled"] = "AccountFeatureNotEnabled";
151
- ErrorCode["AppNotEnabled"] = "AppNotEnabled";
152
- ErrorCode["ImageProcessingError"] = "ImageProcessingError";
153
- ErrorCode["RemoteServerError"] = "RemoteServerError";
154
- ErrorCode["RemoteServerTimeout"] = "RemoteServerTimeout";
155
- ErrorCode["RequestLimitExceeded"] = "RequestLimitExceeded";
156
- ErrorCode["ResourceNotFound"] = "ResourceNotFound";
157
- ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
158
- ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
159
- ErrorCode["IncompatibleState"] = "IncompatibleState";
160
- ErrorCode["VersionConflict"] = "VersionConflict";
161
- ErrorCode["UnspecifiedError"] = "UnspecifiedError";
162
- })(ErrorCode || (ErrorCode = {}));
163
131
  export var EventAction;
164
132
  (function (EventAction) {
165
133
  EventAction["Created"] = "created";
@@ -258,6 +226,16 @@ export var TemplateUseCase;
258
226
  TemplateUseCase["Display"] = "display";
259
227
  TemplateUseCase["Direct"] = "direct";
260
228
  })(TemplateUseCase || (TemplateUseCase = {}));
229
+ export var VolleyballSet;
230
+ (function (VolleyballSet) {
231
+ VolleyballSet["Pre"] = "pregame";
232
+ VolleyballSet["First"] = "1";
233
+ VolleyballSet["Second"] = "2";
234
+ VolleyballSet["Third"] = "3";
235
+ VolleyballSet["Fourth"] = "4";
236
+ VolleyballSet["Fifth"] = "5";
237
+ VolleyballSet["Final"] = "final";
238
+ })(VolleyballSet || (VolleyballSet = {}));
261
239
  export var WebsocketMessageType;
262
240
  (function (WebsocketMessageType) {
263
241
  WebsocketMessageType["Event"] = "event";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scoreboardmax/api-types",
3
- "version": "1.0.22-next.6",
3
+ "version": "1.0.22-next.8",
4
4
  "description": "TypeScript definitions for ScoreboardMax API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",