@scoreboardmax/api-types 1.0.22-next.2 → 1.0.22-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,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.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
11
  const isBaseballData = (data) => {
12
12
  return data.type === ScoreboardType.Baseball;
13
13
  };
@@ -131,6 +131,13 @@ var ContentType;
131
131
  ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
132
132
  ContentType["Zip"] = "application/zip";
133
133
  })(ContentType || (exports.ContentType = ContentType = {}));
134
+ var DisplayConnectionStatus;
135
+ (function (DisplayConnectionStatus) {
136
+ DisplayConnectionStatus["New"] = "new";
137
+ DisplayConnectionStatus["Connected"] = "connected";
138
+ DisplayConnectionStatus["Sent"] = "sent";
139
+ DisplayConnectionStatus["Completed"] = "completed";
140
+ })(DisplayConnectionStatus || (exports.DisplayConnectionStatus = DisplayConnectionStatus = {}));
134
141
  var DownAndDistanceDisplay;
135
142
  (function (DownAndDistanceDisplay) {
136
143
  DownAndDistanceDisplay["Both"] = "both";
@@ -211,6 +218,14 @@ var MetaMessageType;
211
218
  MetaMessageType["ScoreboardReset"] = "scoreboardReset";
212
219
  MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
213
220
  })(MetaMessageType || (exports.MetaMessageType = MetaMessageType = {}));
221
+ var OAuthAction;
222
+ (function (OAuthAction) {
223
+ OAuthAction["NewUserCreated"] = "new_user_created";
224
+ OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
225
+ OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
226
+ OAuthAction["RequiresUserDecision"] = "requires_user_decision";
227
+ OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
228
+ })(OAuthAction || (exports.OAuthAction = OAuthAction = {}));
214
229
  var OAuthProvider;
215
230
  (function (OAuthProvider) {
216
231
  OAuthProvider["Google"] = "google";
@@ -267,12 +282,20 @@ var TemplateUseCase;
267
282
  TemplateUseCase["Display"] = "display";
268
283
  TemplateUseCase["Direct"] = "direct";
269
284
  })(TemplateUseCase || (exports.TemplateUseCase = TemplateUseCase = {}));
285
+ var VolleyballSet;
286
+ (function (VolleyballSet) {
287
+ VolleyballSet["Pre"] = "pregame";
288
+ VolleyballSet["First"] = "1";
289
+ VolleyballSet["Second"] = "2";
290
+ VolleyballSet["Third"] = "3";
291
+ VolleyballSet["Fourth"] = "4";
292
+ VolleyballSet["Fifth"] = "5";
293
+ })(VolleyballSet || (exports.VolleyballSet = VolleyballSet = {}));
270
294
  var WebsocketMessageType;
271
295
  (function (WebsocketMessageType) {
272
296
  WebsocketMessageType["Event"] = "event";
273
297
  WebsocketMessageType["Heartbeat"] = "heartbeat";
274
298
  WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
275
- WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
276
299
  WebsocketMessageType["Info"] = "info";
277
300
  WebsocketMessageType["Meta"] = "meta";
278
301
  })(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
@@ -280,8 +303,6 @@ var WebsocketOperation;
280
303
  (function (WebsocketOperation) {
281
304
  WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
282
305
  WebsocketOperation["GetConnectionId"] = "getConnectionId";
283
- WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
284
- WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
285
306
  })(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
286
307
  var WrestlingMeetType;
287
308
  (function (WrestlingMeetType) {
package/dist/index.d.ts CHANGED
@@ -100,6 +100,12 @@ export declare enum ContentType {
100
100
  Xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
101
101
  Zip = "application/zip"
102
102
  }
103
+ export declare enum DisplayConnectionStatus {
104
+ New = "new",
105
+ Connected = "connected",
106
+ Sent = "sent",
107
+ Completed = "completed"
108
+ }
103
109
  export declare enum DownAndDistanceDisplay {
104
110
  Both = "both",
105
111
  DownOnly = "downOnly",
@@ -172,6 +178,13 @@ export declare enum MetaMessageType {
172
178
  ScoreboardReset = "scoreboardReset",
173
179
  ScoreboardRefresh = "scoreboardRefresh"
174
180
  }
181
+ export declare enum OAuthAction {
182
+ NewUserCreated = "new_user_created",
183
+ ExistingUserSignedIn = "existing_user_signed_in",
184
+ ProviderLinkedAndSignedIn = "provider_linked_and_signed_in",
185
+ RequiresUserDecision = "requires_user_decision",
186
+ NewAccountForExistingUser = "new_account_for_existing_user"
187
+ }
175
188
  export declare enum OAuthProvider {
176
189
  Google = "google"
177
190
  }
@@ -220,19 +233,24 @@ export declare enum TemplateUseCase {
220
233
  Display = "display",
221
234
  Direct = "direct"
222
235
  }
236
+ export declare enum VolleyballSet {
237
+ Pre = "pregame",
238
+ First = "1",
239
+ Second = "2",
240
+ Third = "3",
241
+ Fourth = "4",
242
+ Fifth = "5"
243
+ }
223
244
  export declare enum WebsocketMessageType {
224
245
  Event = "event",
225
246
  Heartbeat = "heartbeat",
226
247
  ConnectionConfirmation = "connectionConfirmation",
227
- SubscriptionConfirmation = "subscriptionConfirmation",
228
248
  Info = "info",
229
249
  Meta = "meta"
230
250
  }
231
251
  export declare enum WebsocketOperation {
232
252
  SendHeartbeat = "sendHeartbeat",
233
- GetConnectionId = "getConnectionId",
234
- SubscribeScoreboard = "subscribeScoreboard",
235
- UnsubscribeScoreboard = "unsubscribeScoreboard"
253
+ GetConnectionId = "getConnectionId"
236
254
  }
237
255
  export declare enum WrestlingMeetType {
238
256
  Dual = "dual",
@@ -417,6 +435,7 @@ export interface BaseballSettings extends ScoreboardSettingsBase {
417
435
  showPitchClock: boolean;
418
436
  showPitchClockWhenLow: boolean;
419
437
  enableClockAutomations: boolean;
438
+ innings: number;
420
439
  }
421
440
  export interface BaseballSettingsRequest extends BaseballSettings {
422
441
  }
@@ -493,6 +512,11 @@ export interface CheckoutSessionResponse {
493
512
  sessionId: string;
494
513
  redirectUrl: string;
495
514
  }
515
+ export interface ClientConfigResponse {
516
+ websocketUrl: string;
517
+ signInUrl: string;
518
+ dashboardUrl: string;
519
+ }
496
520
  export interface Clock {
497
521
  clockId: string;
498
522
  scoreboardId: string;
@@ -535,6 +559,18 @@ export interface DataExtractResponse {
535
559
  }
536
560
  export interface DataRow extends Array<string> {
537
561
  }
562
+ export interface DisplayConnectionCodeRequest {
563
+ code: string;
564
+ }
565
+ export interface DisplayConnectionResponse {
566
+ displayConnectionId: string;
567
+ code: string;
568
+ status: DisplayConnectionStatus;
569
+ dateCreated: string;
570
+ dateModified: string;
571
+ dateExpires: string;
572
+ scoreboardUrl?: string;
573
+ }
538
574
  export interface ErrorResponse {
539
575
  error: boolean;
540
576
  code: ErrorCode;
@@ -674,6 +710,10 @@ export interface NumberInput extends BaseInput {
674
710
  export interface OAuthBindingRequest {
675
711
  messageCipher: string;
676
712
  }
713
+ export interface OAuthRequest {
714
+ code: string;
715
+ redirectUri: string;
716
+ }
677
717
  export interface OAuthResponse {
678
718
  auth?: AuthResponse;
679
719
  userCredentials?: UserCredentialsResponse;
@@ -683,6 +723,7 @@ export interface OAuthResponse {
683
723
  oAuthProviderName: string;
684
724
  messageCipher?: string;
685
725
  dateNow: string;
726
+ action: OAuthAction;
686
727
  }
687
728
  export interface OverlayRequest {
688
729
  type: "players" | "sponsors";
@@ -700,6 +741,7 @@ export interface Plan {
700
741
  planId: PlanId;
701
742
  resetScoreboards: boolean;
702
743
  apiAccess: boolean;
744
+ customizationAccess?: boolean;
703
745
  maxScoreboards: number;
704
746
  maxActiveScoreboards: number;
705
747
  maxConcurrentDevices: number;
@@ -755,6 +797,7 @@ export interface PlayerSummaryRequest {
755
797
  number: string | null;
756
798
  position: string | null;
757
799
  imageFilename: string | null;
800
+ reference?: string;
758
801
  }
759
802
  export interface PlayerSummaryResponse {
760
803
  playerId: string | null;
@@ -766,6 +809,7 @@ export interface PlayerSummaryResponse {
766
809
  imageUrl: string | null;
767
810
  imagePreviewUrl: string | null;
768
811
  imageMediumUrl: string | null;
812
+ reference: string;
769
813
  }
770
814
  export interface PortalSessionResponse {
771
815
  redirectUrl: string;
@@ -852,6 +896,14 @@ export interface ScoreboardListResponse {
852
896
  pageNext: string | null;
853
897
  data: ScoreboardResponse[];
854
898
  }
899
+ export interface ScoreboardQrPdfRequest {
900
+ target: string;
901
+ use: "control" | "embed" | "display" | "direct";
902
+ datePrinted: string;
903
+ }
904
+ export interface ScoreboardQrPdfResponse {
905
+ url: string;
906
+ }
855
907
  export interface ScoreboardRequest {
856
908
  name: string | null;
857
909
  type: ScoreboardType;
@@ -868,6 +920,8 @@ export interface ScoreboardResponse {
868
920
  description: string;
869
921
  controlUrl: string;
870
922
  embedUrl: string;
923
+ displayUrl: string;
924
+ directUrl: string;
871
925
  type: ScoreboardType;
872
926
  data: BasketballDataResponse | FootballDataResponse | VolleyballDataResponse | SoccerDataResponse | BaseballDataResponse | WrestlingDataResponse;
873
927
  accountId: string;
@@ -1145,14 +1199,14 @@ export interface UserUpdateRequest {
1145
1199
  permissions?: Permissions;
1146
1200
  }
1147
1201
  export interface VolleyballDataRequest {
1148
- set: number | null;
1202
+ set: VolleyballSet;
1149
1203
  team1: VolleyballScoreboardTeamRequest;
1150
1204
  team2: VolleyballScoreboardTeamRequest;
1151
1205
  settings?: VolleyballSettingsRequest;
1152
1206
  }
1153
1207
  export interface VolleyballDataResponse {
1154
1208
  type: ScoreboardType;
1155
- set: number | null;
1209
+ set: VolleyballSet;
1156
1210
  team1: VolleyballScoreboardTeamResponse;
1157
1211
  team2: VolleyballScoreboardTeamResponse;
1158
1212
  settings: VolleyballSettingsResponse;
@@ -1201,23 +1255,8 @@ export interface WebsocketMessage {
1201
1255
  message: string;
1202
1256
  data: Event | MetaMessage | WebsocketConnectionIdResponse | null;
1203
1257
  }
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
1258
  export interface WebsocketSubscriptionRequest {
1219
1259
  connectionId: string;
1220
- appId?: string;
1221
1260
  sendInitialData?: boolean;
1222
1261
  }
1223
1262
  export interface WebsocketSubscriptionResponse {
@@ -1225,7 +1264,6 @@ export interface WebsocketSubscriptionResponse {
1225
1264
  subscriptionResource: string;
1226
1265
  subscriptionResourceUri: string;
1227
1266
  accountId: string;
1228
- appId?: string;
1229
1267
  }
1230
1268
  export interface WrestlingDataRequest {
1231
1269
  period: WrestlingPeriod;
package/dist/index.mjs CHANGED
@@ -122,6 +122,13 @@ export var ContentType;
122
122
  ContentType["Xlsx"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
123
123
  ContentType["Zip"] = "application/zip";
124
124
  })(ContentType || (ContentType = {}));
125
+ export var DisplayConnectionStatus;
126
+ (function (DisplayConnectionStatus) {
127
+ DisplayConnectionStatus["New"] = "new";
128
+ DisplayConnectionStatus["Connected"] = "connected";
129
+ DisplayConnectionStatus["Sent"] = "sent";
130
+ DisplayConnectionStatus["Completed"] = "completed";
131
+ })(DisplayConnectionStatus || (DisplayConnectionStatus = {}));
125
132
  export var DownAndDistanceDisplay;
126
133
  (function (DownAndDistanceDisplay) {
127
134
  DownAndDistanceDisplay["Both"] = "both";
@@ -202,6 +209,14 @@ export var MetaMessageType;
202
209
  MetaMessageType["ScoreboardReset"] = "scoreboardReset";
203
210
  MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
204
211
  })(MetaMessageType || (MetaMessageType = {}));
212
+ export var OAuthAction;
213
+ (function (OAuthAction) {
214
+ OAuthAction["NewUserCreated"] = "new_user_created";
215
+ OAuthAction["ExistingUserSignedIn"] = "existing_user_signed_in";
216
+ OAuthAction["ProviderLinkedAndSignedIn"] = "provider_linked_and_signed_in";
217
+ OAuthAction["RequiresUserDecision"] = "requires_user_decision";
218
+ OAuthAction["NewAccountForExistingUser"] = "new_account_for_existing_user";
219
+ })(OAuthAction || (OAuthAction = {}));
205
220
  export var OAuthProvider;
206
221
  (function (OAuthProvider) {
207
222
  OAuthProvider["Google"] = "google";
@@ -258,12 +273,20 @@ export var TemplateUseCase;
258
273
  TemplateUseCase["Display"] = "display";
259
274
  TemplateUseCase["Direct"] = "direct";
260
275
  })(TemplateUseCase || (TemplateUseCase = {}));
276
+ export var VolleyballSet;
277
+ (function (VolleyballSet) {
278
+ VolleyballSet["Pre"] = "pregame";
279
+ VolleyballSet["First"] = "1";
280
+ VolleyballSet["Second"] = "2";
281
+ VolleyballSet["Third"] = "3";
282
+ VolleyballSet["Fourth"] = "4";
283
+ VolleyballSet["Fifth"] = "5";
284
+ })(VolleyballSet || (VolleyballSet = {}));
261
285
  export var WebsocketMessageType;
262
286
  (function (WebsocketMessageType) {
263
287
  WebsocketMessageType["Event"] = "event";
264
288
  WebsocketMessageType["Heartbeat"] = "heartbeat";
265
289
  WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
266
- WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
267
290
  WebsocketMessageType["Info"] = "info";
268
291
  WebsocketMessageType["Meta"] = "meta";
269
292
  })(WebsocketMessageType || (WebsocketMessageType = {}));
@@ -271,8 +294,6 @@ export var WebsocketOperation;
271
294
  (function (WebsocketOperation) {
272
295
  WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
273
296
  WebsocketOperation["GetConnectionId"] = "getConnectionId";
274
- WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
275
- WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
276
297
  })(WebsocketOperation || (WebsocketOperation = {}));
277
298
  export var WrestlingMeetType;
278
299
  (function (WrestlingMeetType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scoreboardmax/api-types",
3
- "version": "1.0.22-next.2",
3
+ "version": "1.0.22-next.20",
4
4
  "description": "TypeScript definitions for ScoreboardMax API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",