@scoreboardmax/api-types 1.0.28 → 1.0.30
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 +9 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +8 -0
- 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.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;
|
|
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
|
};
|
|
@@ -218,6 +218,14 @@ var MetaMessageType;
|
|
|
218
218
|
MetaMessageType["ScoreboardReset"] = "scoreboardReset";
|
|
219
219
|
MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
|
|
220
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 = {}));
|
|
221
229
|
var OAuthProvider;
|
|
222
230
|
(function (OAuthProvider) {
|
|
223
231
|
OAuthProvider["Google"] = "google";
|
package/dist/index.d.ts
CHANGED
|
@@ -178,6 +178,13 @@ export declare enum MetaMessageType {
|
|
|
178
178
|
ScoreboardReset = "scoreboardReset",
|
|
179
179
|
ScoreboardRefresh = "scoreboardRefresh"
|
|
180
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
|
+
}
|
|
181
188
|
export declare enum OAuthProvider {
|
|
182
189
|
Google = "google"
|
|
183
190
|
}
|
|
@@ -716,6 +723,7 @@ export interface OAuthResponse {
|
|
|
716
723
|
oAuthProviderName: string;
|
|
717
724
|
messageCipher?: string;
|
|
718
725
|
dateNow: string;
|
|
726
|
+
action: OAuthAction;
|
|
719
727
|
}
|
|
720
728
|
export interface OverlayRequest {
|
|
721
729
|
type: "players" | "sponsors";
|
|
@@ -733,6 +741,7 @@ export interface Plan {
|
|
|
733
741
|
planId: PlanId;
|
|
734
742
|
resetScoreboards: boolean;
|
|
735
743
|
apiAccess: boolean;
|
|
744
|
+
customizationAccess?: boolean;
|
|
736
745
|
maxScoreboards: number;
|
|
737
746
|
maxActiveScoreboards: number;
|
|
738
747
|
maxConcurrentDevices: number;
|
|
@@ -788,6 +797,7 @@ export interface PlayerSummaryRequest {
|
|
|
788
797
|
number: string | null;
|
|
789
798
|
position: string | null;
|
|
790
799
|
imageFilename: string | null;
|
|
800
|
+
reference?: string;
|
|
791
801
|
}
|
|
792
802
|
export interface PlayerSummaryResponse {
|
|
793
803
|
playerId: string | null;
|
|
@@ -799,6 +809,7 @@ export interface PlayerSummaryResponse {
|
|
|
799
809
|
imageUrl: string | null;
|
|
800
810
|
imagePreviewUrl: string | null;
|
|
801
811
|
imageMediumUrl: string | null;
|
|
812
|
+
reference: string;
|
|
802
813
|
}
|
|
803
814
|
export interface PortalSessionResponse {
|
|
804
815
|
redirectUrl: string;
|
package/dist/index.mjs
CHANGED
|
@@ -209,6 +209,14 @@ export var MetaMessageType;
|
|
|
209
209
|
MetaMessageType["ScoreboardReset"] = "scoreboardReset";
|
|
210
210
|
MetaMessageType["ScoreboardRefresh"] = "scoreboardRefresh";
|
|
211
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 = {}));
|
|
212
220
|
export var OAuthProvider;
|
|
213
221
|
(function (OAuthProvider) {
|
|
214
222
|
OAuthProvider["Google"] = "google";
|