@scoreboardmax/api-types 1.0.22-next.13 → 1.0.22-next.15
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 +7 -4
- package/dist/index.d.ts +18 -4
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
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.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.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.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,12 @@ 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["Completed"] = "completed";
|
|
139
|
+
})(DisplayConnectionStatus || (exports.DisplayConnectionStatus = DisplayConnectionStatus = {}));
|
|
134
140
|
var DownAndDistanceDisplay;
|
|
135
141
|
(function (DownAndDistanceDisplay) {
|
|
136
142
|
DownAndDistanceDisplay["Both"] = "both";
|
|
@@ -281,7 +287,6 @@ var WebsocketMessageType;
|
|
|
281
287
|
WebsocketMessageType["Event"] = "event";
|
|
282
288
|
WebsocketMessageType["Heartbeat"] = "heartbeat";
|
|
283
289
|
WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
|
|
284
|
-
WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
|
|
285
290
|
WebsocketMessageType["Info"] = "info";
|
|
286
291
|
WebsocketMessageType["Meta"] = "meta";
|
|
287
292
|
})(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
|
|
@@ -289,8 +294,6 @@ var WebsocketOperation;
|
|
|
289
294
|
(function (WebsocketOperation) {
|
|
290
295
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
291
296
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
292
|
-
WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
|
|
293
|
-
WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
|
|
294
297
|
})(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
|
|
295
298
|
var WrestlingMeetType;
|
|
296
299
|
(function (WrestlingMeetType) {
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,11 @@ 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
|
+
Completed = "completed"
|
|
107
|
+
}
|
|
103
108
|
export declare enum DownAndDistanceDisplay {
|
|
104
109
|
Both = "both",
|
|
105
110
|
DownOnly = "downOnly",
|
|
@@ -232,15 +237,12 @@ export declare enum WebsocketMessageType {
|
|
|
232
237
|
Event = "event",
|
|
233
238
|
Heartbeat = "heartbeat",
|
|
234
239
|
ConnectionConfirmation = "connectionConfirmation",
|
|
235
|
-
SubscriptionConfirmation = "subscriptionConfirmation",
|
|
236
240
|
Info = "info",
|
|
237
241
|
Meta = "meta"
|
|
238
242
|
}
|
|
239
243
|
export declare enum WebsocketOperation {
|
|
240
244
|
SendHeartbeat = "sendHeartbeat",
|
|
241
|
-
GetConnectionId = "getConnectionId"
|
|
242
|
-
SubscribeScoreboard = "subscribeScoreboard",
|
|
243
|
-
UnsubscribeScoreboard = "unsubscribeScoreboard"
|
|
245
|
+
GetConnectionId = "getConnectionId"
|
|
244
246
|
}
|
|
245
247
|
export declare enum WrestlingMeetType {
|
|
246
248
|
Dual = "dual",
|
|
@@ -549,6 +551,18 @@ export interface DataExtractResponse {
|
|
|
549
551
|
}
|
|
550
552
|
export interface DataRow extends Array<string> {
|
|
551
553
|
}
|
|
554
|
+
export interface DisplayConnectionCodeRequest {
|
|
555
|
+
code: string;
|
|
556
|
+
}
|
|
557
|
+
export interface DisplayConnectionResponse {
|
|
558
|
+
displayConnectionId: string;
|
|
559
|
+
code: string;
|
|
560
|
+
status: DisplayConnectionStatus;
|
|
561
|
+
dateCreated: string;
|
|
562
|
+
dateModified: string;
|
|
563
|
+
dateExpires: string;
|
|
564
|
+
scoreboardUrl?: string;
|
|
565
|
+
}
|
|
552
566
|
export interface ErrorResponse {
|
|
553
567
|
error: boolean;
|
|
554
568
|
code: ErrorCode;
|
package/dist/index.mjs
CHANGED
|
@@ -122,6 +122,12 @@ 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["Completed"] = "completed";
|
|
130
|
+
})(DisplayConnectionStatus || (DisplayConnectionStatus = {}));
|
|
125
131
|
export var DownAndDistanceDisplay;
|
|
126
132
|
(function (DownAndDistanceDisplay) {
|
|
127
133
|
DownAndDistanceDisplay["Both"] = "both";
|
|
@@ -272,7 +278,6 @@ export var WebsocketMessageType;
|
|
|
272
278
|
WebsocketMessageType["Event"] = "event";
|
|
273
279
|
WebsocketMessageType["Heartbeat"] = "heartbeat";
|
|
274
280
|
WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
|
|
275
|
-
WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
|
|
276
281
|
WebsocketMessageType["Info"] = "info";
|
|
277
282
|
WebsocketMessageType["Meta"] = "meta";
|
|
278
283
|
})(WebsocketMessageType || (WebsocketMessageType = {}));
|
|
@@ -280,8 +285,6 @@ export var WebsocketOperation;
|
|
|
280
285
|
(function (WebsocketOperation) {
|
|
281
286
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
282
287
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
283
|
-
WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
|
|
284
|
-
WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
|
|
285
288
|
})(WebsocketOperation || (WebsocketOperation = {}));
|
|
286
289
|
export var WrestlingMeetType;
|
|
287
290
|
(function (WrestlingMeetType) {
|