@scoreboardmax/api-types 1.0.15 → 1.0.16
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 -6
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.WrestlingStyle = exports.WrestlingPeriod = exports.WrestlingOvertimeType = exports.WrestlingMeetType = exports.WebsocketOperation = exports.WebsocketMessageType = 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.ErrorCode = exports.DownAndDistanceDisplay = exports.ContentType = exports.ClockType = exports.BasketballTimeoutAllocation = exports.BasketballPeriod = exports.BasketballGamePeriods = exports.BaseballInningSegment = exports.AuthType = 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
|
};
|
|
14
14
|
exports.isBaseballData = isBaseballData;
|
|
15
|
-
|
|
15
|
+
const isBasketballData = (data) => {
|
|
16
16
|
return data.type === ScoreboardType.Basketball;
|
|
17
17
|
};
|
|
18
18
|
exports.isBasketballData = isBasketballData;
|
|
19
|
-
|
|
19
|
+
const isFootballData = (data) => {
|
|
20
20
|
return data.type === ScoreboardType.Football;
|
|
21
21
|
};
|
|
22
22
|
exports.isFootballData = isFootballData;
|
|
23
|
-
|
|
23
|
+
const isSoccerData = (data) => {
|
|
24
24
|
return data.type === ScoreboardType.Soccer;
|
|
25
25
|
};
|
|
26
26
|
exports.isSoccerData = isSoccerData;
|
|
27
|
-
|
|
27
|
+
const isVolleyballData = (data) => {
|
|
28
28
|
return data.type === ScoreboardType.Volleyball;
|
|
29
29
|
};
|
|
30
30
|
exports.isVolleyballData = isVolleyballData;
|
|
31
|
-
|
|
31
|
+
const isWrestlingData = (data) => {
|
|
32
32
|
return data.type === ScoreboardType.Wrestling;
|
|
33
33
|
};
|
|
34
34
|
exports.isWrestlingData = isWrestlingData;
|
|
@@ -158,6 +158,7 @@ var ErrorCode;
|
|
|
158
158
|
ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
|
|
159
159
|
ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
|
|
160
160
|
ErrorCode["IncompatibleState"] = "IncompatibleState";
|
|
161
|
+
ErrorCode["VersionConflict"] = "VersionConflict";
|
|
161
162
|
ErrorCode["UnspecifiedError"] = "UnspecifiedError";
|
|
162
163
|
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
|
|
163
164
|
var ExtraTimeLabel;
|
package/dist/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare enum ErrorCode {
|
|
|
126
126
|
UserCredentialsInUse = "UserCredentialsInUse",
|
|
127
127
|
AccountEmailInUse = "AccountEmailInUse",
|
|
128
128
|
IncompatibleState = "IncompatibleState",
|
|
129
|
+
VersionConflict = "VersionConflict",
|
|
129
130
|
UnspecifiedError = "UnspecifiedError"
|
|
130
131
|
}
|
|
131
132
|
export declare enum ExtraTimeLabel {
|
|
@@ -771,6 +772,7 @@ export interface ScoreboardListResponse {
|
|
|
771
772
|
export interface ScoreboardRequest {
|
|
772
773
|
name: string | null;
|
|
773
774
|
type: ScoreboardType;
|
|
775
|
+
version: number;
|
|
774
776
|
data: BasketballDataRequest | FootballDataRequest | VolleyballDataRequest | SoccerDataRequest | BaseballDataRequest | WrestlingDataRequest;
|
|
775
777
|
}
|
|
776
778
|
export interface ScoreboardResponse {
|
|
@@ -792,6 +794,7 @@ export interface ScoreboardResponse {
|
|
|
792
794
|
currentServerTimestamp: number;
|
|
793
795
|
clocks: ClockListResponse | string;
|
|
794
796
|
overlay: OverlayResponse | string;
|
|
797
|
+
version: number;
|
|
795
798
|
}
|
|
796
799
|
export interface ScoreboardSettingsBase {
|
|
797
800
|
clockAscending: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
* These types are automatically generated from the ScoreboardMax API source code.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export const isBaseballData = (data) => {
|
|
9
9
|
return data.type === ScoreboardType.Baseball;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export const isBasketballData = (data) => {
|
|
12
12
|
return data.type === ScoreboardType.Basketball;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export const isFootballData = (data) => {
|
|
15
15
|
return data.type === ScoreboardType.Football;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export const isSoccerData = (data) => {
|
|
18
18
|
return data.type === ScoreboardType.Soccer;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export const isVolleyballData = (data) => {
|
|
21
21
|
return data.type === ScoreboardType.Volleyball;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export const isWrestlingData = (data) => {
|
|
24
24
|
return data.type === ScoreboardType.Wrestling;
|
|
25
25
|
};
|
|
26
26
|
export var ApiAction;
|
|
@@ -149,6 +149,7 @@ export var ErrorCode;
|
|
|
149
149
|
ErrorCode["UserCredentialsInUse"] = "UserCredentialsInUse";
|
|
150
150
|
ErrorCode["AccountEmailInUse"] = "AccountEmailInUse";
|
|
151
151
|
ErrorCode["IncompatibleState"] = "IncompatibleState";
|
|
152
|
+
ErrorCode["VersionConflict"] = "VersionConflict";
|
|
152
153
|
ErrorCode["UnspecifiedError"] = "UnspecifiedError";
|
|
153
154
|
})(ErrorCode || (ErrorCode = {}));
|
|
154
155
|
export var ExtraTimeLabel;
|