moons-ta-client 1.1.4 → 1.1.5
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/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/index.d.ts +62 -57
- package/dist/index.esm.js +160 -128
- package/dist/models/models.d.ts +0 -23
- package/dist/models/models.js +0 -54
- package/dist/models/requests.d.ts +45 -19
- package/dist/models/requests.js +96 -36
- package/dist/models/responses.d.ts +13 -13
- package/dist/models/responses.js +18 -18
- package/dist/tournament-assistant-client.d.ts +2 -1
- package/dist/tournament-assistant-client.js +32 -20
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const masterAddress = "server.tournamentassistant.net";
|
|
2
2
|
export declare const masterPort = "8676";
|
|
3
|
-
export declare const version = "1.1.
|
|
4
|
-
export declare const versionCode =
|
|
3
|
+
export declare const version = "1.1.5";
|
|
4
|
+
export declare const versionCode = 115;
|
package/dist/constants.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1023,29 +1023,6 @@ interface State {
|
|
|
1023
1023
|
* @generated MessageType for protobuf message proto.models.State
|
|
1024
1024
|
*/
|
|
1025
1025
|
declare const State: State$Type;
|
|
1026
|
-
declare class ModalOption$Type extends MessageType<ModalOption> {
|
|
1027
|
-
constructor();
|
|
1028
|
-
create(value?: PartialMessage<ModalOption>): ModalOption;
|
|
1029
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModalOption): ModalOption;
|
|
1030
|
-
internalBinaryWrite(message: ModalOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1031
|
-
}
|
|
1032
|
-
/**
|
|
1033
|
-
* @generated from protobuf message proto.models.ModalOption
|
|
1034
|
-
*/
|
|
1035
|
-
interface ModalOption {
|
|
1036
|
-
/**
|
|
1037
|
-
* @generated from protobuf field: string label = 1;
|
|
1038
|
-
*/
|
|
1039
|
-
label: string;
|
|
1040
|
-
/**
|
|
1041
|
-
* @generated from protobuf field: string value = 2;
|
|
1042
|
-
*/
|
|
1043
|
-
value: string;
|
|
1044
|
-
}
|
|
1045
|
-
/**
|
|
1046
|
-
* @generated MessageType for protobuf message proto.models.ModalOption
|
|
1047
|
-
*/
|
|
1048
|
-
declare const ModalOption: ModalOption$Type;
|
|
1049
1026
|
declare class LeaderboardEntry$Type extends MessageType<LeaderboardEntry> {
|
|
1050
1027
|
constructor();
|
|
1051
1028
|
create(value?: PartialMessage<LeaderboardEntry>): LeaderboardEntry;
|
|
@@ -1821,11 +1798,11 @@ interface Response {
|
|
|
1821
1798
|
*/
|
|
1822
1799
|
preloadImageForStreamSync: Response_PreloadImageForStreamSync;
|
|
1823
1800
|
} | {
|
|
1824
|
-
oneofKind: "
|
|
1801
|
+
oneofKind: "showPrompt";
|
|
1825
1802
|
/**
|
|
1826
|
-
* @generated from protobuf field: proto.packets.Response.
|
|
1803
|
+
* @generated from protobuf field: proto.packets.Response.ShowPrompt show_prompt = 19;
|
|
1827
1804
|
*/
|
|
1828
|
-
|
|
1805
|
+
showPrompt: Response_ShowPrompt;
|
|
1829
1806
|
} | {
|
|
1830
1807
|
oneofKind: "remainingAttempts";
|
|
1831
1808
|
/**
|
|
@@ -2382,29 +2359,29 @@ interface Response_PreloadImageForStreamSync {
|
|
|
2382
2359
|
* @generated MessageType for protobuf message proto.packets.Response.PreloadImageForStreamSync
|
|
2383
2360
|
*/
|
|
2384
2361
|
declare const Response_PreloadImageForStreamSync: Response_PreloadImageForStreamSync$Type;
|
|
2385
|
-
declare class
|
|
2362
|
+
declare class Response_ShowPrompt$Type extends MessageType<Response_ShowPrompt> {
|
|
2386
2363
|
constructor();
|
|
2387
|
-
create(value?: PartialMessage<
|
|
2388
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
2389
|
-
internalBinaryWrite(message:
|
|
2364
|
+
create(value?: PartialMessage<Response_ShowPrompt>): Response_ShowPrompt;
|
|
2365
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_ShowPrompt): Response_ShowPrompt;
|
|
2366
|
+
internalBinaryWrite(message: Response_ShowPrompt, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2390
2367
|
}
|
|
2391
2368
|
/**
|
|
2392
|
-
* @generated from protobuf message proto.packets.Response.
|
|
2369
|
+
* @generated from protobuf message proto.packets.Response.ShowPrompt
|
|
2393
2370
|
*/
|
|
2394
|
-
interface
|
|
2371
|
+
interface Response_ShowPrompt {
|
|
2395
2372
|
/**
|
|
2396
|
-
* @generated from protobuf field: string
|
|
2373
|
+
* @generated from protobuf field: string prompt_id = 1;
|
|
2397
2374
|
*/
|
|
2398
|
-
|
|
2375
|
+
promptId: string;
|
|
2399
2376
|
/**
|
|
2400
2377
|
* @generated from protobuf field: string value = 2;
|
|
2401
2378
|
*/
|
|
2402
2379
|
value: string;
|
|
2403
2380
|
}
|
|
2404
2381
|
/**
|
|
2405
|
-
* @generated MessageType for protobuf message proto.packets.Response.
|
|
2382
|
+
* @generated MessageType for protobuf message proto.packets.Response.ShowPrompt
|
|
2406
2383
|
*/
|
|
2407
|
-
declare const
|
|
2384
|
+
declare const Response_ShowPrompt: Response_ShowPrompt$Type;
|
|
2408
2385
|
declare class Response_RemainingAttempts$Type extends MessageType<Response_RemainingAttempts> {
|
|
2409
2386
|
constructor();
|
|
2410
2387
|
create(value?: PartialMessage<Response_RemainingAttempts>): Response_RemainingAttempts;
|
|
@@ -2747,11 +2724,11 @@ interface Request {
|
|
|
2747
2724
|
*/
|
|
2748
2725
|
preloadImageForStreamSync: Request_PreloadImageForStreamSync;
|
|
2749
2726
|
} | {
|
|
2750
|
-
oneofKind: "
|
|
2727
|
+
oneofKind: "showPrompt";
|
|
2751
2728
|
/**
|
|
2752
|
-
* @generated from protobuf field: proto.packets.Request.
|
|
2729
|
+
* @generated from protobuf field: proto.packets.Request.ShowPrompt show_prompt = 42;
|
|
2753
2730
|
*/
|
|
2754
|
-
|
|
2731
|
+
showPrompt: Request_ShowPrompt;
|
|
2755
2732
|
} | {
|
|
2756
2733
|
oneofKind: "remainingAttempts";
|
|
2757
2734
|
/**
|
|
@@ -4035,20 +4012,20 @@ interface Request_PreloadImageForStreamSync {
|
|
|
4035
4012
|
* @generated MessageType for protobuf message proto.packets.Request.PreloadImageForStreamSync
|
|
4036
4013
|
*/
|
|
4037
4014
|
declare const Request_PreloadImageForStreamSync: Request_PreloadImageForStreamSync$Type;
|
|
4038
|
-
declare class
|
|
4015
|
+
declare class Request_ShowPrompt$Type extends MessageType<Request_ShowPrompt> {
|
|
4039
4016
|
constructor();
|
|
4040
|
-
create(value?: PartialMessage<
|
|
4041
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
4042
|
-
internalBinaryWrite(message:
|
|
4017
|
+
create(value?: PartialMessage<Request_ShowPrompt>): Request_ShowPrompt;
|
|
4018
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_ShowPrompt): Request_ShowPrompt;
|
|
4019
|
+
internalBinaryWrite(message: Request_ShowPrompt, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4043
4020
|
}
|
|
4044
4021
|
/**
|
|
4045
|
-
* @generated from protobuf message proto.packets.Request.
|
|
4022
|
+
* @generated from protobuf message proto.packets.Request.ShowPrompt
|
|
4046
4023
|
*/
|
|
4047
|
-
interface
|
|
4024
|
+
interface Request_ShowPrompt {
|
|
4048
4025
|
/**
|
|
4049
|
-
* @generated from protobuf field: string
|
|
4026
|
+
* @generated from protobuf field: string prompt_id = 1;
|
|
4050
4027
|
*/
|
|
4051
|
-
|
|
4028
|
+
promptId: string;
|
|
4052
4029
|
/**
|
|
4053
4030
|
* @generated from protobuf field: string message_title = 2;
|
|
4054
4031
|
*/
|
|
@@ -4058,22 +4035,49 @@ interface Request_ShowModal {
|
|
|
4058
4035
|
*/
|
|
4059
4036
|
messageText: string;
|
|
4060
4037
|
/**
|
|
4061
|
-
* @generated from protobuf field:
|
|
4038
|
+
* @generated from protobuf field: int32 timeout = 4;
|
|
4039
|
+
*/
|
|
4040
|
+
timeout: number;
|
|
4041
|
+
/**
|
|
4042
|
+
* @generated from protobuf field: bool show_timer = 5;
|
|
4043
|
+
*/
|
|
4044
|
+
showTimer: boolean;
|
|
4045
|
+
/**
|
|
4046
|
+
* @generated from protobuf field: bool can_close = 6;
|
|
4062
4047
|
*/
|
|
4063
4048
|
canClose: boolean;
|
|
4064
4049
|
/**
|
|
4065
|
-
* @generated from protobuf field: proto.
|
|
4050
|
+
* @generated from protobuf field: repeated proto.packets.Request.ShowPrompt.PromptOption options = 7;
|
|
4051
|
+
*/
|
|
4052
|
+
options: Request_ShowPrompt_PromptOption[];
|
|
4053
|
+
}
|
|
4054
|
+
/**
|
|
4055
|
+
* @generated MessageType for protobuf message proto.packets.Request.ShowPrompt
|
|
4056
|
+
*/
|
|
4057
|
+
declare const Request_ShowPrompt: Request_ShowPrompt$Type;
|
|
4058
|
+
declare class Request_ShowPrompt_PromptOption$Type extends MessageType<Request_ShowPrompt_PromptOption> {
|
|
4059
|
+
constructor();
|
|
4060
|
+
create(value?: PartialMessage<Request_ShowPrompt_PromptOption>): Request_ShowPrompt_PromptOption;
|
|
4061
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_ShowPrompt_PromptOption): Request_ShowPrompt_PromptOption;
|
|
4062
|
+
internalBinaryWrite(message: Request_ShowPrompt_PromptOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4063
|
+
}
|
|
4064
|
+
/**
|
|
4065
|
+
* @generated from protobuf message proto.packets.Request.ShowPrompt.PromptOption
|
|
4066
|
+
*/
|
|
4067
|
+
interface Request_ShowPrompt_PromptOption {
|
|
4068
|
+
/**
|
|
4069
|
+
* @generated from protobuf field: string label = 1;
|
|
4066
4070
|
*/
|
|
4067
|
-
|
|
4071
|
+
label: string;
|
|
4068
4072
|
/**
|
|
4069
|
-
* @generated from protobuf field:
|
|
4073
|
+
* @generated from protobuf field: string value = 2;
|
|
4070
4074
|
*/
|
|
4071
|
-
|
|
4075
|
+
value: string;
|
|
4072
4076
|
}
|
|
4073
4077
|
/**
|
|
4074
|
-
* @generated MessageType for protobuf message proto.packets.Request.
|
|
4078
|
+
* @generated MessageType for protobuf message proto.packets.Request.ShowPrompt.PromptOption
|
|
4075
4079
|
*/
|
|
4076
|
-
declare const
|
|
4080
|
+
declare const Request_ShowPrompt_PromptOption: Request_ShowPrompt_PromptOption$Type;
|
|
4077
4081
|
declare class Request_RemainingAttempts$Type extends MessageType<Request_RemainingAttempts> {
|
|
4078
4082
|
constructor();
|
|
4079
4083
|
create(value?: PartialMessage<Request_RemainingAttempts>): Request_RemainingAttempts;
|
|
@@ -4560,6 +4564,7 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
|
|
|
4560
4564
|
getLeaderboard: (tournamentId: string, qualifierId: string, mapId: string) => Promise<Response>;
|
|
4561
4565
|
loadSong: (levelId: string, userIds: string[], timeout?: number) => Promise<ResponseFromUser[]>;
|
|
4562
4566
|
loadImage: (bitmap: Uint8Array, userIds: string[]) => Promise<ResponseFromUser[]>;
|
|
4567
|
+
showPrompt: (userIds: string[], titleText: string, bodyText: string, canClose: boolean, options: Request_ShowPrompt_PromptOption[], timer?: number) => Promise<ResponseFromUser[]>;
|
|
4563
4568
|
private handlePacket;
|
|
4564
4569
|
updateUser: (tournamentId: string, user: User) => Promise<Response>;
|
|
4565
4570
|
createMatch: (tournamentId: string, match: Match) => Promise<Response>;
|
|
@@ -4608,7 +4613,7 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
|
|
|
4608
4613
|
|
|
4609
4614
|
declare const masterAddress = "server.tournamentassistant.net";
|
|
4610
4615
|
declare const masterPort = "8676";
|
|
4611
|
-
declare const version = "1.1.
|
|
4612
|
-
declare const versionCode =
|
|
4616
|
+
declare const version = "1.1.5";
|
|
4617
|
+
declare const versionCode = 115;
|
|
4613
4618
|
|
|
4614
|
-
export { Acknowledgement, Acknowledgement_AcknowledgementType, Beatmap, Channel, Characteristic, Command, Command_PlaySong, Command_SendBotMessage, CoreServer, CustomEventEmitter, DiscordUser, Event, Event_MatchCreated, Event_MatchDeleted, Event_MatchUpdated, Event_QualifierCreated, Event_QualifierDeleted, Event_QualifierUpdated, Event_ServerAdded, Event_ServerDeleted, Event_TournamentCreated, Event_TournamentDeleted, Event_TournamentUpdated, Event_UserAdded, Event_UserLeft, Event_UserUpdated, ForwardingPacket, GameplayModifiers, GameplayModifiers_GameOptions, GameplayParameters, Guild, LeaderboardEntry, Map, Match,
|
|
4619
|
+
export { Acknowledgement, Acknowledgement_AcknowledgementType, Beatmap, Channel, Characteristic, Command, Command_PlaySong, Command_SendBotMessage, CoreServer, CustomEventEmitter, DiscordUser, Event, Event_MatchCreated, Event_MatchDeleted, Event_MatchUpdated, Event_QualifierCreated, Event_QualifierDeleted, Event_QualifierUpdated, Event_ServerAdded, Event_ServerDeleted, Event_TournamentCreated, Event_TournamentDeleted, Event_TournamentUpdated, Event_UserAdded, Event_UserLeft, Event_UserUpdated, ForwardingPacket, GameplayModifiers, GameplayModifiers_GameOptions, GameplayParameters, Guild, LeaderboardEntry, Map, Match, Packet, Permissions, PlayerSpecificSettings, PlayerSpecificSettings_ArcVisibilityType, PlayerSpecificSettings_NoteJumpDurationTypeSettings, PlayerSpecificSettings_PlayerOptions, Push, Push_SongFinished, Push_SongFinished_CompletionType, QualifierEvent, QualifierEvent_EventSettings, QualifierEvent_LeaderboardSort, RealtimeScore, Request, Request_AddAuthorizedUser, Request_AddAuthorizedUserPermission, Request_AddQualifierMaps, Request_AddServer, Request_AddTournamentPool, Request_AddTournamentPoolMaps, Request_AddTournamentTeam, Request_AddUserToMatch, Request_Connect, Request_CreateMatch, Request_CreateQualifierEvent, Request_CreateTournament, Request_DeleteMatch, Request_DeleteQualifierEvent, Request_DeleteTournament, Request_GetAuthorizedUsers, Request_GetDiscordInfo, Request_Join, Request_LoadSong, Request_PreloadImageForStreamSync, Request_QualifierScores, Request_RemainingAttempts, Request_RemoveAuthorizedUser, Request_RemoveAuthorizedUserPermission, Request_RemoveQualifierMap, Request_RemoveTournamentPool, Request_RemoveTournamentPoolMap, Request_RemoveTournamentTeam, Request_RemoveUserFromMatch, Request_SetMatchLeader, Request_SetMatchMap, Request_SetQualifierFlags, Request_SetQualifierImage, Request_SetQualifierInfoChannel, Request_SetQualifierLeaderboardSort, Request_SetQualifierName, Request_SetTournamentAllowUnauthorizedView, Request_SetTournamentBannedMods, Request_SetTournamentEnablePools, Request_SetTournamentEnableTeams, Request_SetTournamentImage, Request_SetTournamentName, Request_SetTournamentPoolName, Request_SetTournamentScoreUpdateFrequency, Request_SetTournamentShowQualifierButton, Request_SetTournamentShowTournamentButton, Request_SetTournamentTeamImage, Request_SetTournamentTeamName, Request_ShowPrompt, Request_ShowPrompt_PromptOption, Request_SubmitQualifierScore, Request_UpdateQualifierMap, Request_UpdateTournamentPoolMap, Request_UpdateUser, Response, type ResponseFromUser, Response_AddAuthorizedUser, Response_AddServer, Response_Connect, Response_Connect_ConnectFailReason, Response_CreateMatch, Response_CreateQualifierEvent, Response_CreateTournament, Response_DeleteMatch, Response_DeleteQualifierEvent, Response_DeleteTournament, Response_GetAuthorizedUsers, Response_GetAuthorizedUsers_AuthroizedUser, Response_GetDiscordInfo, Response_Join, Response_Join_JoinFailReason, Response_LeaderboardEntries, Response_LoadSong, Response_PreloadImageForStreamSync, Response_RemainingAttempts, Response_RemoveAuthorizedUser, Response_ResponseType, Response_ShowPrompt, Response_UpdateAuthorizedUser, Response_UpdateMatch, Response_UpdateQualifierEvent, Response_UpdateTournament, Response_UpdateUser, ScoreTrackerHand, State, TAClient, Tournament, Tournament_TournamentSettings, Tournament_TournamentSettings_Pool, Tournament_TournamentSettings_Team, User, User_ClientTypes, User_DiscordInfo, User_DownloadStates, User_PlayStates, User_Point, getTournaments, masterAddress, masterPort, version, versionCode };
|