@scoreboardmax/api-types 1.0.27 → 1.0.29
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 +18 -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";
|
|
@@ -788,6 +796,7 @@ export interface PlayerSummaryRequest {
|
|
|
788
796
|
number: string | null;
|
|
789
797
|
position: string | null;
|
|
790
798
|
imageFilename: string | null;
|
|
799
|
+
reference?: string;
|
|
791
800
|
}
|
|
792
801
|
export interface PlayerSummaryResponse {
|
|
793
802
|
playerId: string | null;
|
|
@@ -799,6 +808,7 @@ export interface PlayerSummaryResponse {
|
|
|
799
808
|
imageUrl: string | null;
|
|
800
809
|
imagePreviewUrl: string | null;
|
|
801
810
|
imageMediumUrl: string | null;
|
|
811
|
+
reference: string;
|
|
802
812
|
}
|
|
803
813
|
export interface PortalSessionResponse {
|
|
804
814
|
redirectUrl: string;
|
|
@@ -885,6 +895,14 @@ export interface ScoreboardListResponse {
|
|
|
885
895
|
pageNext: string | null;
|
|
886
896
|
data: ScoreboardResponse[];
|
|
887
897
|
}
|
|
898
|
+
export interface ScoreboardQrPdfRequest {
|
|
899
|
+
target: string;
|
|
900
|
+
use: "control" | "embed" | "display" | "direct";
|
|
901
|
+
datePrinted: string;
|
|
902
|
+
}
|
|
903
|
+
export interface ScoreboardQrPdfResponse {
|
|
904
|
+
url: string;
|
|
905
|
+
}
|
|
888
906
|
export interface ScoreboardRequest {
|
|
889
907
|
name: string | null;
|
|
890
908
|
type: ScoreboardType;
|
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";
|