moons-ta-client 1.1.3 → 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.
@@ -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.3";
4
- export declare const versionCode = 113;
3
+ export declare const version = "1.1.5";
4
+ export declare const versionCode = 115;
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export const masterAddress = "server.tournamentassistant.net";
2
2
  export const masterPort = "8676";
3
- export const version = "1.1.3";
4
- export const versionCode = 113;
3
+ export const version = "1.1.5";
4
+ export const versionCode = 115;
package/dist/index.d.ts CHANGED
@@ -347,37 +347,57 @@ declare enum QualifierEvent_LeaderboardSort {
347
347
  */
348
348
  ModifiedScoreAscending = 1,
349
349
  /**
350
- * @generated from protobuf enum value: NotesMissed = 2;
350
+ * @generated from protobuf enum value: ModifiedScoreTarget = 2;
351
351
  */
352
- NotesMissed = 2,
352
+ ModifiedScoreTarget = 2,
353
353
  /**
354
- * @generated from protobuf enum value: NotesMissedAscending = 3;
354
+ * @generated from protobuf enum value: NotesMissed = 3;
355
355
  */
356
- NotesMissedAscending = 3,
356
+ NotesMissed = 3,
357
357
  /**
358
- * @generated from protobuf enum value: BadCuts = 4;
358
+ * @generated from protobuf enum value: NotesMissedAscending = 4;
359
359
  */
360
- BadCuts = 4,
360
+ NotesMissedAscending = 4,
361
361
  /**
362
- * @generated from protobuf enum value: BadCutsAscending = 5;
362
+ * @generated from protobuf enum value: NotesMissedTarget = 5;
363
363
  */
364
- BadCutsAscending = 5,
364
+ NotesMissedTarget = 5,
365
365
  /**
366
- * @generated from protobuf enum value: MaxCombo = 6;
366
+ * @generated from protobuf enum value: BadCuts = 6;
367
367
  */
368
- MaxCombo = 6,
368
+ BadCuts = 6,
369
369
  /**
370
- * @generated from protobuf enum value: MaxComboAscending = 7;
370
+ * @generated from protobuf enum value: BadCutsAscending = 7;
371
371
  */
372
- MaxComboAscending = 7,
372
+ BadCutsAscending = 7,
373
373
  /**
374
- * @generated from protobuf enum value: GoodCuts = 8;
374
+ * @generated from protobuf enum value: BadCutsTarget = 8;
375
375
  */
376
- GoodCuts = 8,
376
+ BadCutsTarget = 8,
377
377
  /**
378
- * @generated from protobuf enum value: GoodCutsAscending = 9;
378
+ * @generated from protobuf enum value: MaxCombo = 9;
379
379
  */
380
- GoodCutsAscending = 9
380
+ MaxCombo = 9,
381
+ /**
382
+ * @generated from protobuf enum value: MaxComboAscending = 10;
383
+ */
384
+ MaxComboAscending = 10,
385
+ /**
386
+ * @generated from protobuf enum value: MaxComboTarget = 11;
387
+ */
388
+ MaxComboTarget = 11,
389
+ /**
390
+ * @generated from protobuf enum value: GoodCuts = 12;
391
+ */
392
+ GoodCuts = 12,
393
+ /**
394
+ * @generated from protobuf enum value: GoodCutsAscending = 13;
395
+ */
396
+ GoodCutsAscending = 13,
397
+ /**
398
+ * @generated from protobuf enum value: GoodCutsTarget = 14;
399
+ */
400
+ GoodCutsTarget = 14
381
401
  }
382
402
  /**
383
403
  * @generated from protobuf enum proto.models.Permissions
@@ -566,6 +586,10 @@ interface GameplayParameters {
566
586
  * @generated from protobuf field: bool use_sync = 10;
567
587
  */
568
588
  useSync: boolean;
589
+ /**
590
+ * @generated from protobuf field: int32 target = 11;
591
+ */
592
+ target: number;
569
593
  }
570
594
  /**
571
595
  * @generated MessageType for protobuf message proto.models.GameplayParameters
@@ -999,29 +1023,6 @@ interface State {
999
1023
  * @generated MessageType for protobuf message proto.models.State
1000
1024
  */
1001
1025
  declare const State: State$Type;
1002
- declare class ModalOption$Type extends MessageType<ModalOption> {
1003
- constructor();
1004
- create(value?: PartialMessage<ModalOption>): ModalOption;
1005
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModalOption): ModalOption;
1006
- internalBinaryWrite(message: ModalOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
1007
- }
1008
- /**
1009
- * @generated from protobuf message proto.models.ModalOption
1010
- */
1011
- interface ModalOption {
1012
- /**
1013
- * @generated from protobuf field: string label = 1;
1014
- */
1015
- label: string;
1016
- /**
1017
- * @generated from protobuf field: string value = 2;
1018
- */
1019
- value: string;
1020
- }
1021
- /**
1022
- * @generated MessageType for protobuf message proto.models.ModalOption
1023
- */
1024
- declare const ModalOption: ModalOption$Type;
1025
1026
  declare class LeaderboardEntry$Type extends MessageType<LeaderboardEntry> {
1026
1027
  constructor();
1027
1028
  create(value?: PartialMessage<LeaderboardEntry>): LeaderboardEntry;
@@ -1797,11 +1798,11 @@ interface Response {
1797
1798
  */
1798
1799
  preloadImageForStreamSync: Response_PreloadImageForStreamSync;
1799
1800
  } | {
1800
- oneofKind: "showModal";
1801
+ oneofKind: "showPrompt";
1801
1802
  /**
1802
- * @generated from protobuf field: proto.packets.Response.ShowModal show_modal = 19;
1803
+ * @generated from protobuf field: proto.packets.Response.ShowPrompt show_prompt = 19;
1803
1804
  */
1804
- showModal: Response_ShowModal;
1805
+ showPrompt: Response_ShowPrompt;
1805
1806
  } | {
1806
1807
  oneofKind: "remainingAttempts";
1807
1808
  /**
@@ -2358,29 +2359,29 @@ interface Response_PreloadImageForStreamSync {
2358
2359
  * @generated MessageType for protobuf message proto.packets.Response.PreloadImageForStreamSync
2359
2360
  */
2360
2361
  declare const Response_PreloadImageForStreamSync: Response_PreloadImageForStreamSync$Type;
2361
- declare class Response_ShowModal$Type extends MessageType<Response_ShowModal> {
2362
+ declare class Response_ShowPrompt$Type extends MessageType<Response_ShowPrompt> {
2362
2363
  constructor();
2363
- create(value?: PartialMessage<Response_ShowModal>): Response_ShowModal;
2364
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response_ShowModal): Response_ShowModal;
2365
- internalBinaryWrite(message: Response_ShowModal, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
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;
2366
2367
  }
2367
2368
  /**
2368
- * @generated from protobuf message proto.packets.Response.ShowModal
2369
+ * @generated from protobuf message proto.packets.Response.ShowPrompt
2369
2370
  */
2370
- interface Response_ShowModal {
2371
+ interface Response_ShowPrompt {
2371
2372
  /**
2372
- * @generated from protobuf field: string modal_id = 1;
2373
+ * @generated from protobuf field: string prompt_id = 1;
2373
2374
  */
2374
- modalId: string;
2375
+ promptId: string;
2375
2376
  /**
2376
2377
  * @generated from protobuf field: string value = 2;
2377
2378
  */
2378
2379
  value: string;
2379
2380
  }
2380
2381
  /**
2381
- * @generated MessageType for protobuf message proto.packets.Response.ShowModal
2382
+ * @generated MessageType for protobuf message proto.packets.Response.ShowPrompt
2382
2383
  */
2383
- declare const Response_ShowModal: Response_ShowModal$Type;
2384
+ declare const Response_ShowPrompt: Response_ShowPrompt$Type;
2384
2385
  declare class Response_RemainingAttempts$Type extends MessageType<Response_RemainingAttempts> {
2385
2386
  constructor();
2386
2387
  create(value?: PartialMessage<Response_RemainingAttempts>): Response_RemainingAttempts;
@@ -2723,11 +2724,11 @@ interface Request {
2723
2724
  */
2724
2725
  preloadImageForStreamSync: Request_PreloadImageForStreamSync;
2725
2726
  } | {
2726
- oneofKind: "showModal";
2727
+ oneofKind: "showPrompt";
2727
2728
  /**
2728
- * @generated from protobuf field: proto.packets.Request.ShowModal show_modal = 42;
2729
+ * @generated from protobuf field: proto.packets.Request.ShowPrompt show_prompt = 42;
2729
2730
  */
2730
- showModal: Request_ShowModal;
2731
+ showPrompt: Request_ShowPrompt;
2731
2732
  } | {
2732
2733
  oneofKind: "remainingAttempts";
2733
2734
  /**
@@ -4011,20 +4012,20 @@ interface Request_PreloadImageForStreamSync {
4011
4012
  * @generated MessageType for protobuf message proto.packets.Request.PreloadImageForStreamSync
4012
4013
  */
4013
4014
  declare const Request_PreloadImageForStreamSync: Request_PreloadImageForStreamSync$Type;
4014
- declare class Request_ShowModal$Type extends MessageType<Request_ShowModal> {
4015
+ declare class Request_ShowPrompt$Type extends MessageType<Request_ShowPrompt> {
4015
4016
  constructor();
4016
- create(value?: PartialMessage<Request_ShowModal>): Request_ShowModal;
4017
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Request_ShowModal): Request_ShowModal;
4018
- internalBinaryWrite(message: Request_ShowModal, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
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;
4019
4020
  }
4020
4021
  /**
4021
- * @generated from protobuf message proto.packets.Request.ShowModal
4022
+ * @generated from protobuf message proto.packets.Request.ShowPrompt
4022
4023
  */
4023
- interface Request_ShowModal {
4024
+ interface Request_ShowPrompt {
4024
4025
  /**
4025
- * @generated from protobuf field: string modal_id = 1;
4026
+ * @generated from protobuf field: string prompt_id = 1;
4026
4027
  */
4027
- modalId: string;
4028
+ promptId: string;
4028
4029
  /**
4029
4030
  * @generated from protobuf field: string message_title = 2;
4030
4031
  */
@@ -4034,22 +4035,49 @@ interface Request_ShowModal {
4034
4035
  */
4035
4036
  messageText: string;
4036
4037
  /**
4037
- * @generated from protobuf field: bool can_close = 4;
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;
4038
4047
  */
4039
4048
  canClose: boolean;
4040
4049
  /**
4041
- * @generated from protobuf field: proto.models.ModalOption option_1 = 5;
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;
4042
4070
  */
4043
- option1?: ModalOption;
4071
+ label: string;
4044
4072
  /**
4045
- * @generated from protobuf field: proto.models.ModalOption option_2 = 6;
4073
+ * @generated from protobuf field: string value = 2;
4046
4074
  */
4047
- option2?: ModalOption;
4075
+ value: string;
4048
4076
  }
4049
4077
  /**
4050
- * @generated MessageType for protobuf message proto.packets.Request.ShowModal
4078
+ * @generated MessageType for protobuf message proto.packets.Request.ShowPrompt.PromptOption
4051
4079
  */
4052
- declare const Request_ShowModal: Request_ShowModal$Type;
4080
+ declare const Request_ShowPrompt_PromptOption: Request_ShowPrompt_PromptOption$Type;
4053
4081
  declare class Request_RemainingAttempts$Type extends MessageType<Request_RemainingAttempts> {
4054
4082
  constructor();
4055
4083
  create(value?: PartialMessage<Request_RemainingAttempts>): Request_RemainingAttempts;
@@ -4536,6 +4564,7 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
4536
4564
  getLeaderboard: (tournamentId: string, qualifierId: string, mapId: string) => Promise<Response>;
4537
4565
  loadSong: (levelId: string, userIds: string[], timeout?: number) => Promise<ResponseFromUser[]>;
4538
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[]>;
4539
4568
  private handlePacket;
4540
4569
  updateUser: (tournamentId: string, user: User) => Promise<Response>;
4541
4570
  createMatch: (tournamentId: string, match: Match) => Promise<Response>;
@@ -4584,7 +4613,7 @@ declare class TAClient extends CustomEventEmitter<TAClientEvents> {
4584
4613
 
4585
4614
  declare const masterAddress = "server.tournamentassistant.net";
4586
4615
  declare const masterPort = "8676";
4587
- declare const version = "1.1.3";
4588
- declare const versionCode = 113;
4616
+ declare const version = "1.1.5";
4617
+ declare const versionCode = 115;
4589
4618
 
4590
- 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, ModalOption, 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_ShowModal, 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_ShowModal, 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 };
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 };