moons-ta-client 1.3.1 → 1.3.3
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 +3 -3
- package/dist/constants.js +2 -2
- package/dist/custom-event-emitter.js +1 -1
- package/dist/index.d.ts +940 -8
- package/dist/index.esm.js +6563 -4003
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/models.d.ts +206 -0
- package/dist/models/models.js +376 -3
- package/dist/models/requests.d.ts +463 -0
- package/dist/models/requests.js +1019 -1
- package/dist/models/responses.d.ts +255 -0
- package/dist/models/responses.js +566 -1
- package/dist/scraper.js +3 -4
- package/dist/tournament-assistant-client.d.ts +14 -3
- package/dist/tournament-assistant-client.js +151 -2
- package/package.json +4 -10
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
package/dist/models/models.d.ts
CHANGED
|
@@ -405,6 +405,10 @@ export interface User {
|
|
|
405
405
|
* @generated from protobuf field: proto.models.User.DiscordInfo discord_info = 12
|
|
406
406
|
*/
|
|
407
407
|
discordInfo?: User_DiscordInfo;
|
|
408
|
+
/**
|
|
409
|
+
* @generated from protobuf field: bool is_mock = 13
|
|
410
|
+
*/
|
|
411
|
+
isMock: boolean;
|
|
408
412
|
}
|
|
409
413
|
/**
|
|
410
414
|
* @generated from protobuf message proto.models.User.DiscordInfo
|
|
@@ -544,6 +548,14 @@ export interface QualifierEvent {
|
|
|
544
548
|
* @generated from protobuf field: proto.models.QualifierEvent.LeaderboardSort sort = 7
|
|
545
549
|
*/
|
|
546
550
|
sort: QualifierEvent_LeaderboardSort;
|
|
551
|
+
/**
|
|
552
|
+
* @generated from protobuf field: google.protobuf.Timestamp start_time = 8
|
|
553
|
+
*/
|
|
554
|
+
startTime?: Timestamp;
|
|
555
|
+
/**
|
|
556
|
+
* @generated from protobuf field: google.protobuf.Timestamp end_time = 9
|
|
557
|
+
*/
|
|
558
|
+
endTime?: Timestamp;
|
|
547
559
|
}
|
|
548
560
|
/**
|
|
549
561
|
* @generated from protobuf enum proto.models.QualifierEvent.EventSettings
|
|
@@ -656,6 +668,158 @@ export interface CoreServer {
|
|
|
656
668
|
*/
|
|
657
669
|
websocketPort: number;
|
|
658
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* @generated from protobuf message proto.models.Webhook
|
|
673
|
+
*/
|
|
674
|
+
export interface Webhook {
|
|
675
|
+
/**
|
|
676
|
+
* @generated from protobuf field: string guid = 1
|
|
677
|
+
*/
|
|
678
|
+
guid: string;
|
|
679
|
+
/**
|
|
680
|
+
* @generated from protobuf field: string tournament_id = 2
|
|
681
|
+
*/
|
|
682
|
+
tournamentId: string;
|
|
683
|
+
/**
|
|
684
|
+
* @generated from protobuf field: string url = 3
|
|
685
|
+
*/
|
|
686
|
+
url: string;
|
|
687
|
+
/**
|
|
688
|
+
* @generated from protobuf field: int64 triggers = 4
|
|
689
|
+
*/
|
|
690
|
+
triggers: bigint;
|
|
691
|
+
/**
|
|
692
|
+
* @generated from protobuf field: bool has_signing_secret = 5
|
|
693
|
+
*/
|
|
694
|
+
hasSigningSecret: boolean;
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @generated from protobuf enum proto.models.Webhook.Trigger
|
|
698
|
+
*/
|
|
699
|
+
export declare enum Webhook_Trigger {
|
|
700
|
+
/**
|
|
701
|
+
* @generated from protobuf enum value: None = 0;
|
|
702
|
+
*/
|
|
703
|
+
None = 0,
|
|
704
|
+
/**
|
|
705
|
+
* @generated from protobuf enum value: TournamentUpdated = 1;
|
|
706
|
+
*/
|
|
707
|
+
TournamentUpdated = 1,
|
|
708
|
+
/**
|
|
709
|
+
* @generated from protobuf enum value: TournamentDeleted = 2;
|
|
710
|
+
*/
|
|
711
|
+
TournamentDeleted = 2,
|
|
712
|
+
/**
|
|
713
|
+
* @generated from protobuf enum value: UserAdded = 4;
|
|
714
|
+
*/
|
|
715
|
+
UserAdded = 4,
|
|
716
|
+
/**
|
|
717
|
+
* @generated from protobuf enum value: UserUpdated = 8;
|
|
718
|
+
*/
|
|
719
|
+
UserUpdated = 8,
|
|
720
|
+
/**
|
|
721
|
+
* @generated from protobuf enum value: UserLeft = 16;
|
|
722
|
+
*/
|
|
723
|
+
UserLeft = 16,
|
|
724
|
+
/**
|
|
725
|
+
* @generated from protobuf enum value: MatchCreated = 32;
|
|
726
|
+
*/
|
|
727
|
+
MatchCreated = 32,
|
|
728
|
+
/**
|
|
729
|
+
* @generated from protobuf enum value: MatchUpdated = 64;
|
|
730
|
+
*/
|
|
731
|
+
MatchUpdated = 64,
|
|
732
|
+
/**
|
|
733
|
+
* @generated from protobuf enum value: MatchDeleted = 128;
|
|
734
|
+
*/
|
|
735
|
+
MatchDeleted = 128,
|
|
736
|
+
/**
|
|
737
|
+
* @generated from protobuf enum value: QualifierCreated = 256;
|
|
738
|
+
*/
|
|
739
|
+
QualifierCreated = 256,
|
|
740
|
+
/**
|
|
741
|
+
* @generated from protobuf enum value: QualifierUpdated = 512;
|
|
742
|
+
*/
|
|
743
|
+
QualifierUpdated = 512,
|
|
744
|
+
/**
|
|
745
|
+
* @generated from protobuf enum value: QualifierDeleted = 1024;
|
|
746
|
+
*/
|
|
747
|
+
QualifierDeleted = 1024,
|
|
748
|
+
/**
|
|
749
|
+
* @generated from protobuf enum value: QualifierScoreSubmitted = 2048;
|
|
750
|
+
*/
|
|
751
|
+
QualifierScoreSubmitted = 2048,
|
|
752
|
+
/**
|
|
753
|
+
* @generated from protobuf enum value: SongFinished = 4096;
|
|
754
|
+
*/
|
|
755
|
+
SongFinished = 4096,
|
|
756
|
+
/**
|
|
757
|
+
* @generated from protobuf enum value: All = 8191;
|
|
758
|
+
*/
|
|
759
|
+
All = 8191
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* @generated from protobuf message proto.models.EndpointAccess
|
|
763
|
+
*/
|
|
764
|
+
export interface EndpointAccess {
|
|
765
|
+
/**
|
|
766
|
+
* @generated from protobuf field: string endpoint_id = 1
|
|
767
|
+
*/
|
|
768
|
+
endpointId: string;
|
|
769
|
+
/**
|
|
770
|
+
* @generated from protobuf field: string display_name = 2
|
|
771
|
+
*/
|
|
772
|
+
displayName: string;
|
|
773
|
+
/**
|
|
774
|
+
* @generated from protobuf field: string route = 3
|
|
775
|
+
*/
|
|
776
|
+
route: string;
|
|
777
|
+
/**
|
|
778
|
+
* @generated from protobuf field: bool supports_websocket = 4
|
|
779
|
+
*/
|
|
780
|
+
supportsWebsocket: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* @generated from protobuf field: bool supports_rest = 5
|
|
783
|
+
*/
|
|
784
|
+
supportsRest: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* @generated from protobuf field: bool supports_player = 6
|
|
787
|
+
*/
|
|
788
|
+
supportsPlayer: boolean;
|
|
789
|
+
/**
|
|
790
|
+
* @generated from protobuf field: bool websocket_enabled = 7
|
|
791
|
+
*/
|
|
792
|
+
websocketEnabled: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* @generated from protobuf field: bool rest_enabled = 8
|
|
795
|
+
*/
|
|
796
|
+
restEnabled: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* @generated from protobuf field: bool player_enabled = 9
|
|
799
|
+
*/
|
|
800
|
+
playerEnabled: boolean;
|
|
801
|
+
/**
|
|
802
|
+
* @generated from protobuf field: bool is_core = 10
|
|
803
|
+
*/
|
|
804
|
+
isCore: boolean;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @generated from protobuf message proto.models.GlobalConfiguration
|
|
808
|
+
*/
|
|
809
|
+
export interface GlobalConfiguration {
|
|
810
|
+
/**
|
|
811
|
+
* @generated from protobuf field: repeated string full_access_discord_ids = 1
|
|
812
|
+
*/
|
|
813
|
+
fullAccessDiscordIds: string[];
|
|
814
|
+
/**
|
|
815
|
+
* @generated from protobuf field: repeated string endpoint_manager_discord_ids = 2
|
|
816
|
+
*/
|
|
817
|
+
endpointManagerDiscordIds: string[];
|
|
818
|
+
/**
|
|
819
|
+
* @generated from protobuf field: repeated proto.models.EndpointAccess endpoints = 3
|
|
820
|
+
*/
|
|
821
|
+
endpoints: EndpointAccess[];
|
|
822
|
+
}
|
|
659
823
|
/**
|
|
660
824
|
* @generated from protobuf message proto.models.Tournament
|
|
661
825
|
*/
|
|
@@ -745,6 +909,18 @@ export interface Tournament_TournamentSettings {
|
|
|
745
909
|
* @generated from protobuf field: bool enable_replay_streaming = 14
|
|
746
910
|
*/
|
|
747
911
|
enableReplayStreaming: boolean;
|
|
912
|
+
/**
|
|
913
|
+
* @generated from protobuf field: bool allow_mock_clients = 15
|
|
914
|
+
*/
|
|
915
|
+
allowMockClients: boolean;
|
|
916
|
+
/**
|
|
917
|
+
* @generated from protobuf field: bool is_bk_tournament = 16
|
|
918
|
+
*/
|
|
919
|
+
isBkTournament: boolean;
|
|
920
|
+
/**
|
|
921
|
+
* @generated from protobuf field: string beat_khana_tournament_guid = 17
|
|
922
|
+
*/
|
|
923
|
+
beatKhanaTournamentGuid: string;
|
|
748
924
|
}
|
|
749
925
|
/**
|
|
750
926
|
* @generated from protobuf message proto.models.Tournament.TournamentSettings.Pool
|
|
@@ -1090,6 +1266,36 @@ declare class CoreServer$Type extends MessageType<CoreServer> {
|
|
|
1090
1266
|
* @generated MessageType for protobuf message proto.models.CoreServer
|
|
1091
1267
|
*/
|
|
1092
1268
|
export declare const CoreServer: CoreServer$Type;
|
|
1269
|
+
declare class Webhook$Type extends MessageType<Webhook> {
|
|
1270
|
+
constructor();
|
|
1271
|
+
create(value?: PartialMessage<Webhook>): Webhook;
|
|
1272
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Webhook): Webhook;
|
|
1273
|
+
internalBinaryWrite(message: Webhook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* @generated MessageType for protobuf message proto.models.Webhook
|
|
1277
|
+
*/
|
|
1278
|
+
export declare const Webhook: Webhook$Type;
|
|
1279
|
+
declare class EndpointAccess$Type extends MessageType<EndpointAccess> {
|
|
1280
|
+
constructor();
|
|
1281
|
+
create(value?: PartialMessage<EndpointAccess>): EndpointAccess;
|
|
1282
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndpointAccess): EndpointAccess;
|
|
1283
|
+
internalBinaryWrite(message: EndpointAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* @generated MessageType for protobuf message proto.models.EndpointAccess
|
|
1287
|
+
*/
|
|
1288
|
+
export declare const EndpointAccess: EndpointAccess$Type;
|
|
1289
|
+
declare class GlobalConfiguration$Type extends MessageType<GlobalConfiguration> {
|
|
1290
|
+
constructor();
|
|
1291
|
+
create(value?: PartialMessage<GlobalConfiguration>): GlobalConfiguration;
|
|
1292
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GlobalConfiguration): GlobalConfiguration;
|
|
1293
|
+
internalBinaryWrite(message: GlobalConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* @generated MessageType for protobuf message proto.models.GlobalConfiguration
|
|
1297
|
+
*/
|
|
1298
|
+
export declare const GlobalConfiguration: GlobalConfiguration$Type;
|
|
1093
1299
|
declare class Tournament$Type extends MessageType<Tournament> {
|
|
1094
1300
|
constructor();
|
|
1095
1301
|
create(value?: PartialMessage<Tournament>): Tournament;
|