@scoreboardmax/api-types 1.0.26 → 1.0.28
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 +8 -4
- package/dist/index.d.ts +27 -4
- package/dist/index.mjs +7 -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,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";
|
|
@@ -281,7 +288,6 @@ var WebsocketMessageType;
|
|
|
281
288
|
WebsocketMessageType["Event"] = "event";
|
|
282
289
|
WebsocketMessageType["Heartbeat"] = "heartbeat";
|
|
283
290
|
WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
|
|
284
|
-
WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
|
|
285
291
|
WebsocketMessageType["Info"] = "info";
|
|
286
292
|
WebsocketMessageType["Meta"] = "meta";
|
|
287
293
|
})(WebsocketMessageType || (exports.WebsocketMessageType = WebsocketMessageType = {}));
|
|
@@ -289,8 +295,6 @@ var WebsocketOperation;
|
|
|
289
295
|
(function (WebsocketOperation) {
|
|
290
296
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
291
297
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
292
|
-
WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
|
|
293
|
-
WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
|
|
294
298
|
})(WebsocketOperation || (exports.WebsocketOperation = WebsocketOperation = {}));
|
|
295
299
|
var WrestlingMeetType;
|
|
296
300
|
(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",
|
|
@@ -232,15 +238,12 @@ export declare enum WebsocketMessageType {
|
|
|
232
238
|
Event = "event",
|
|
233
239
|
Heartbeat = "heartbeat",
|
|
234
240
|
ConnectionConfirmation = "connectionConfirmation",
|
|
235
|
-
SubscriptionConfirmation = "subscriptionConfirmation",
|
|
236
241
|
Info = "info",
|
|
237
242
|
Meta = "meta"
|
|
238
243
|
}
|
|
239
244
|
export declare enum WebsocketOperation {
|
|
240
245
|
SendHeartbeat = "sendHeartbeat",
|
|
241
|
-
GetConnectionId = "getConnectionId"
|
|
242
|
-
SubscribeScoreboard = "subscribeScoreboard",
|
|
243
|
-
UnsubscribeScoreboard = "unsubscribeScoreboard"
|
|
246
|
+
GetConnectionId = "getConnectionId"
|
|
244
247
|
}
|
|
245
248
|
export declare enum WrestlingMeetType {
|
|
246
249
|
Dual = "dual",
|
|
@@ -549,6 +552,18 @@ export interface DataExtractResponse {
|
|
|
549
552
|
}
|
|
550
553
|
export interface DataRow extends Array<string> {
|
|
551
554
|
}
|
|
555
|
+
export interface DisplayConnectionCodeRequest {
|
|
556
|
+
code: string;
|
|
557
|
+
}
|
|
558
|
+
export interface DisplayConnectionResponse {
|
|
559
|
+
displayConnectionId: string;
|
|
560
|
+
code: string;
|
|
561
|
+
status: DisplayConnectionStatus;
|
|
562
|
+
dateCreated: string;
|
|
563
|
+
dateModified: string;
|
|
564
|
+
dateExpires: string;
|
|
565
|
+
scoreboardUrl?: string;
|
|
566
|
+
}
|
|
552
567
|
export interface ErrorResponse {
|
|
553
568
|
error: boolean;
|
|
554
569
|
code: ErrorCode;
|
|
@@ -870,6 +885,14 @@ export interface ScoreboardListResponse {
|
|
|
870
885
|
pageNext: string | null;
|
|
871
886
|
data: ScoreboardResponse[];
|
|
872
887
|
}
|
|
888
|
+
export interface ScoreboardQrPdfRequest {
|
|
889
|
+
target: string;
|
|
890
|
+
use: "control" | "embed" | "display" | "direct";
|
|
891
|
+
datePrinted: string;
|
|
892
|
+
}
|
|
893
|
+
export interface ScoreboardQrPdfResponse {
|
|
894
|
+
url: string;
|
|
895
|
+
}
|
|
873
896
|
export interface ScoreboardRequest {
|
|
874
897
|
name: string | null;
|
|
875
898
|
type: ScoreboardType;
|
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";
|
|
@@ -272,7 +279,6 @@ export var WebsocketMessageType;
|
|
|
272
279
|
WebsocketMessageType["Event"] = "event";
|
|
273
280
|
WebsocketMessageType["Heartbeat"] = "heartbeat";
|
|
274
281
|
WebsocketMessageType["ConnectionConfirmation"] = "connectionConfirmation";
|
|
275
|
-
WebsocketMessageType["SubscriptionConfirmation"] = "subscriptionConfirmation";
|
|
276
282
|
WebsocketMessageType["Info"] = "info";
|
|
277
283
|
WebsocketMessageType["Meta"] = "meta";
|
|
278
284
|
})(WebsocketMessageType || (WebsocketMessageType = {}));
|
|
@@ -280,8 +286,6 @@ export var WebsocketOperation;
|
|
|
280
286
|
(function (WebsocketOperation) {
|
|
281
287
|
WebsocketOperation["SendHeartbeat"] = "sendHeartbeat";
|
|
282
288
|
WebsocketOperation["GetConnectionId"] = "getConnectionId";
|
|
283
|
-
WebsocketOperation["SubscribeScoreboard"] = "subscribeScoreboard";
|
|
284
|
-
WebsocketOperation["UnsubscribeScoreboard"] = "unsubscribeScoreboard";
|
|
285
289
|
})(WebsocketOperation || (WebsocketOperation = {}));
|
|
286
290
|
export var WrestlingMeetType;
|
|
287
291
|
(function (WrestlingMeetType) {
|