moons-ta-client 1.1.4 → 1.1.6
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 +61 -60
- package/dist/index.esm.js +157 -138
- 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 +12 -16
- package/dist/models/responses.js +16 -23
- 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.6";
|
|
4
|
+
export declare const versionCode = 116;
|
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,25 @@ 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
|
|
2395
|
-
/**
|
|
2396
|
-
* @generated from protobuf field: string modal_id = 1;
|
|
2397
|
-
*/
|
|
2398
|
-
modalId: string;
|
|
2371
|
+
interface Response_ShowPrompt {
|
|
2399
2372
|
/**
|
|
2400
|
-
* @generated from protobuf field: string value =
|
|
2373
|
+
* @generated from protobuf field: string value = 1;
|
|
2401
2374
|
*/
|
|
2402
2375
|
value: string;
|
|
2403
2376
|
}
|
|
2404
2377
|
/**
|
|
2405
|
-
* @generated MessageType for protobuf message proto.packets.Response.
|
|
2378
|
+
* @generated MessageType for protobuf message proto.packets.Response.ShowPrompt
|
|
2406
2379
|
*/
|
|
2407
|
-
declare const
|
|
2380
|
+
declare const Response_ShowPrompt: Response_ShowPrompt$Type;
|
|
2408
2381
|
declare class Response_RemainingAttempts$Type extends MessageType<Response_RemainingAttempts> {
|
|
2409
2382
|
constructor();
|
|
2410
2383
|
create(value?: PartialMessage<Response_RemainingAttempts>): Response_RemainingAttempts;
|
|
@@ -2747,11 +2720,11 @@ interface Request {
|
|
|
2747
2720
|
*/
|
|
2748
2721
|
preloadImageForStreamSync: Request_PreloadImageForStreamSync;
|
|
2749
2722
|
} | {
|
|
2750
|
-
oneofKind: "
|
|
2723
|
+
oneofKind: "showPrompt";
|
|
2751
2724
|
/**
|
|
2752
|
-
* @generated from protobuf field: proto.packets.Request.
|
|
2725
|
+
* @generated from protobuf field: proto.packets.Request.ShowPrompt show_prompt = 42;
|
|
2753
2726
|
*/
|
|
2754
|
-
|
|
2727
|
+
showPrompt: Request_ShowPrompt;
|
|
2755
2728
|
} | {
|
|
2756
2729
|
oneofKind: "remainingAttempts";
|
|
2757
2730
|
/**
|
|
@@ -4035,20 +4008,20 @@ interface Request_PreloadImageForStreamSync {
|
|
|
4035
4008
|
* @generated MessageType for protobuf message proto.packets.Request.PreloadImageForStreamSync
|
|
4036
4009
|
*/
|
|
4037
4010
|
declare const Request_PreloadImageForStreamSync: Request_PreloadImageForStreamSync$Type;
|
|
4038
|
-
declare class
|
|
4011
|
+
declare class Request_ShowPrompt$Type extends MessageType<Request_ShowPrompt> {
|
|
4039
4012
|
constructor();
|
|
4040
|
-
create(value?: PartialMessage<
|
|
4041
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
4042
|
-
internalBinaryWrite(message:
|
|
4013
|
+
create(value?: PartialMessage<Request_ShowPrompt>): Request_ShowPrompt;
|
|
4014
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_ShowPrompt): Request_ShowPrompt;
|
|
4015
|
+
internalBinaryWrite(message: Request_ShowPrompt, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4043
4016
|
}
|
|
4044
4017
|
/**
|
|
4045
|
-
* @generated from protobuf message proto.packets.Request.
|
|
4018
|
+
* @generated from protobuf message proto.packets.Request.ShowPrompt
|
|
4046
4019
|
*/
|
|
4047
|
-
interface
|
|
4020
|
+
interface Request_ShowPrompt {
|
|
4048
4021
|
/**
|
|
4049
|
-
* @generated from protobuf field: string
|
|
4022
|
+
* @generated from protobuf field: string prompt_id = 1;
|
|
4050
4023
|
*/
|
|
4051
|
-
|
|
4024
|
+
promptId: string;
|
|
4052
4025
|
/**
|
|
4053
4026
|
* @generated from protobuf field: string message_title = 2;
|
|
4054
4027
|
*/
|
|
@@ -4058,22 +4031,49 @@ interface Request_ShowModal {
|
|
|
4058
4031
|
*/
|
|
4059
4032
|
messageText: string;
|
|
4060
4033
|
/**
|
|
4061
|
-
* @generated from protobuf field:
|
|
4034
|
+
* @generated from protobuf field: int32 timeout = 4;
|
|
4035
|
+
*/
|
|
4036
|
+
timeout: number;
|
|
4037
|
+
/**
|
|
4038
|
+
* @generated from protobuf field: bool show_timer = 5;
|
|
4039
|
+
*/
|
|
4040
|
+
showTimer: boolean;
|
|
4041
|
+
/**
|
|
4042
|
+
* @generated from protobuf field: bool can_close = 6;
|
|
4062
4043
|
*/
|
|
4063
4044
|
canClose: boolean;
|
|
4064
4045
|
/**
|
|
4065
|
-
* @generated from protobuf field: proto.
|
|
4046
|
+
* @generated from protobuf field: repeated proto.packets.Request.ShowPrompt.PromptOption options = 7;
|
|
4066
4047
|
*/
|
|
4067
|
-
|
|
4048
|
+
options: Request_ShowPrompt_PromptOption[];
|
|
4049
|
+
}
|
|
4050
|
+
/**
|
|
4051
|
+
* @generated MessageType for protobuf message proto.packets.Request.ShowPrompt
|
|
4052
|
+
*/
|
|
4053
|
+
declare const Request_ShowPrompt: Request_ShowPrompt$Type;
|
|
4054
|
+
declare class Request_ShowPrompt_PromptOption$Type extends MessageType<Request_ShowPrompt_PromptOption> {
|
|
4055
|
+
constructor();
|
|
4056
|
+
create(value?: PartialMessage<Request_ShowPrompt_PromptOption>): Request_ShowPrompt_PromptOption;
|
|
4057
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_ShowPrompt_PromptOption): Request_ShowPrompt_PromptOption;
|
|
4058
|
+
internalBinaryWrite(message: Request_ShowPrompt_PromptOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* @generated from protobuf message proto.packets.Request.ShowPrompt.PromptOption
|
|
4062
|
+
*/
|
|
4063
|
+
interface Request_ShowPrompt_PromptOption {
|
|
4064
|
+
/**
|
|
4065
|
+
* @generated from protobuf field: string label = 1;
|
|
4066
|
+
*/
|
|
4067
|
+
label: string;
|
|
4068
4068
|
/**
|
|
4069
|
-
* @generated from protobuf field:
|
|
4069
|
+
* @generated from protobuf field: string value = 2;
|
|
4070
4070
|
*/
|
|
4071
|
-
|
|
4071
|
+
value: string;
|
|
4072
4072
|
}
|
|
4073
4073
|
/**
|
|
4074
|
-
* @generated MessageType for protobuf message proto.packets.Request.
|
|
4074
|
+
* @generated MessageType for protobuf message proto.packets.Request.ShowPrompt.PromptOption
|
|
4075
4075
|
*/
|
|
4076
|
-
declare const
|
|
4076
|
+
declare const Request_ShowPrompt_PromptOption: Request_ShowPrompt_PromptOption$Type;
|
|
4077
4077
|
declare class Request_RemainingAttempts$Type extends MessageType<Request_RemainingAttempts> {
|
|
4078
4078
|
constructor();
|
|
4079
4079
|
create(value?: PartialMessage<Request_RemainingAttempts>): Request_RemainingAttempts;
|
|
@@ -4560,6 +4560,7 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
|
|
|
4560
4560
|
getLeaderboard: (tournamentId: string, qualifierId: string, mapId: string) => Promise<Response>;
|
|
4561
4561
|
loadSong: (levelId: string, userIds: string[], timeout?: number) => Promise<ResponseFromUser[]>;
|
|
4562
4562
|
loadImage: (bitmap: Uint8Array, userIds: string[]) => Promise<ResponseFromUser[]>;
|
|
4563
|
+
showPrompt: (userIds: string[], titleText: string, bodyText: string, canClose: boolean, options: Request_ShowPrompt_PromptOption[], timer?: number) => Promise<ResponseFromUser[]>;
|
|
4563
4564
|
private handlePacket;
|
|
4564
4565
|
updateUser: (tournamentId: string, user: User) => Promise<Response>;
|
|
4565
4566
|
createMatch: (tournamentId: string, match: Match) => Promise<Response>;
|
|
@@ -4608,7 +4609,7 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
|
|
|
4608
4609
|
|
|
4609
4610
|
declare const masterAddress = "server.tournamentassistant.net";
|
|
4610
4611
|
declare const masterPort = "8676";
|
|
4611
|
-
declare const version = "1.1.
|
|
4612
|
-
declare const versionCode =
|
|
4612
|
+
declare const version = "1.1.6";
|
|
4613
|
+
declare const versionCode = 116;
|
|
4613
4614
|
|
|
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,
|
|
4615
|
+
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 };
|