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

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,15 @@ 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 || (exports.VolleyballSet = VolleyballSet = {}));
270
247
  var WebsocketMessageType;
271
248
  (function (WebsocketMessageType) {
272
249
  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,14 @@ 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
+ }
223
200
  export declare enum WebsocketMessageType {
224
201
  Event = "event",
225
202
  Heartbeat = "heartbeat",
@@ -493,6 +470,9 @@ export interface CheckoutSessionResponse {
493
470
  sessionId: string;
494
471
  redirectUrl: string;
495
472
  }
473
+ export interface ClientConfigResponse {
474
+ websocketUrl: string;
475
+ }
496
476
  export interface Clock {
497
477
  clockId: string;
498
478
  scoreboardId: string;
@@ -535,13 +515,6 @@ export interface DataExtractResponse {
535
515
  }
536
516
  export interface DataRow extends Array<string> {
537
517
  }
538
- export interface ErrorResponse {
539
- error: boolean;
540
- code: ErrorCode;
541
- statusCode: number;
542
- reference: string;
543
- message: string;
544
- }
545
518
  export interface Event {
546
519
  eventId: string;
547
520
  accountId: string;
@@ -1145,14 +1118,14 @@ export interface UserUpdateRequest {
1145
1118
  permissions?: Permissions;
1146
1119
  }
1147
1120
  export interface VolleyballDataRequest {
1148
- set: number | null;
1121
+ set: VolleyballSet;
1149
1122
  team1: VolleyballScoreboardTeamRequest;
1150
1123
  team2: VolleyballScoreboardTeamRequest;
1151
1124
  settings?: VolleyballSettingsRequest;
1152
1125
  }
1153
1126
  export interface VolleyballDataResponse {
1154
1127
  type: ScoreboardType;
1155
- set: number | null;
1128
+ set: VolleyballSet;
1156
1129
  team1: VolleyballScoreboardTeamResponse;
1157
1130
  team2: VolleyballScoreboardTeamResponse;
1158
1131
  settings: VolleyballSettingsResponse;
@@ -1201,23 +1174,8 @@ export interface WebsocketMessage {
1201
1174
  message: string;
1202
1175
  data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
1203
1176
  }
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
1177
  export interface WebsocketSubscriptionRequest {
1219
1178
  connectionId: string;
1220
- appId?: string;
1221
1179
  sendInitialData?: boolean;
1222
1180
  }
1223
1181
  export interface WebsocketSubscriptionResponse {
@@ -1225,7 +1183,6 @@ export interface WebsocketSubscriptionResponse {
1225
1183
  subscriptionResource: string;
1226
1184
  subscriptionResourceUri: string;
1227
1185
  accountId: string;
1228
- appId?: string;
1229
1186
  }
1230
1187
  export interface WrestlingDataRequest {
1231
1188
  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,15 @@ 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 || (VolleyballSet = {}));
261
238
  export var WebsocketMessageType;
262
239
  (function (WebsocketMessageType) {
263
240
  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.7",
4
4
  "description": "TypeScript definitions for ScoreboardMax API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",