moons-ta-client 1.3.0 → 1.3.2
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/index.d.ts +1252 -705
- package/dist/index.esm.js +1521 -188
- package/dist/models/commands.d.ts +12 -12
- package/dist/models/commands.js +6 -6
- package/dist/models/discord.d.ts +6 -6
- package/dist/models/events.d.ts +37 -37
- package/dist/models/google/protobuf/timestamp.d.ts +2 -2
- package/dist/models/google/protobuf/timestamp.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/models.d.ts +247 -131
- package/dist/models/models.js +188 -13
- package/dist/models/packets.d.ts +16 -16
- package/dist/models/packets.js +3 -3
- package/dist/models/pushes.d.ts +19 -19
- package/dist/models/replay_stream.d.ts +181 -155
- package/dist/models/replay_stream.js +81 -26
- package/dist/models/requests.d.ts +481 -224
- package/dist/models/requests.js +604 -37
- package/dist/models/responses.d.ts +237 -95
- package/dist/models/responses.js +335 -19
- package/dist/tournament-assistant-client.d.ts +10 -2
- package/dist/tournament-assistant-client.js +109 -2
- package/package.json +2 -2
|
@@ -12,11 +12,11 @@ import { GameplayParameters } from './models.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export interface Command {
|
|
14
14
|
/**
|
|
15
|
-
* @generated from protobuf field: string tournament_id = 11
|
|
15
|
+
* @generated from protobuf field: string tournament_id = 11
|
|
16
16
|
*/
|
|
17
17
|
tournamentId: string;
|
|
18
18
|
/**
|
|
19
|
-
* @generated from protobuf field: repeated string forward_to = 12
|
|
19
|
+
* @generated from protobuf field: repeated string forward_to = 12
|
|
20
20
|
*/
|
|
21
21
|
forwardTo: string[];
|
|
22
22
|
/**
|
|
@@ -25,43 +25,43 @@ export interface Command {
|
|
|
25
25
|
type: {
|
|
26
26
|
oneofKind: "returnToMenu";
|
|
27
27
|
/**
|
|
28
|
-
* @generated from protobuf field: bool return_to_menu = 2
|
|
28
|
+
* @generated from protobuf field: bool return_to_menu = 2
|
|
29
29
|
*/
|
|
30
30
|
returnToMenu: boolean;
|
|
31
31
|
} | {
|
|
32
32
|
oneofKind: "delayTestFinish";
|
|
33
33
|
/**
|
|
34
|
-
* @generated from protobuf field: bool delay_test_finish = 3
|
|
34
|
+
* @generated from protobuf field: bool delay_test_finish = 3
|
|
35
35
|
*/
|
|
36
36
|
delayTestFinish: boolean;
|
|
37
37
|
} | {
|
|
38
38
|
oneofKind: "streamSyncShowImage";
|
|
39
39
|
/**
|
|
40
|
-
* @generated from protobuf field: bool stream_sync_show_image = 4
|
|
40
|
+
* @generated from protobuf field: bool stream_sync_show_image = 4
|
|
41
41
|
*/
|
|
42
42
|
streamSyncShowImage: boolean;
|
|
43
43
|
} | {
|
|
44
44
|
oneofKind: "playSong";
|
|
45
45
|
/**
|
|
46
|
-
* @generated from protobuf field: proto.packets.Command.PlaySong play_song = 6
|
|
46
|
+
* @generated from protobuf field: proto.packets.Command.PlaySong play_song = 6
|
|
47
47
|
*/
|
|
48
48
|
playSong: Command_PlaySong;
|
|
49
49
|
} | {
|
|
50
50
|
oneofKind: "discordAuthorize";
|
|
51
51
|
/**
|
|
52
|
-
* @generated from protobuf field: string discord_authorize = 9
|
|
52
|
+
* @generated from protobuf field: string discord_authorize = 9
|
|
53
53
|
*/
|
|
54
54
|
discordAuthorize: string;
|
|
55
55
|
} | {
|
|
56
56
|
oneofKind: "modifyGameplay";
|
|
57
57
|
/**
|
|
58
|
-
* @generated from protobuf field: proto.packets.Command.ModifyGameplay modify_gameplay = 10
|
|
58
|
+
* @generated from protobuf field: proto.packets.Command.ModifyGameplay modify_gameplay = 10
|
|
59
59
|
*/
|
|
60
60
|
modifyGameplay: Command_ModifyGameplay;
|
|
61
61
|
} | {
|
|
62
62
|
oneofKind: "showColorForStreamSync";
|
|
63
63
|
/**
|
|
64
|
-
* @generated from protobuf field: proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync = 13
|
|
64
|
+
* @generated from protobuf field: proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync = 13
|
|
65
65
|
*/
|
|
66
66
|
showColorForStreamSync: Command_ShowColorForStreamSync;
|
|
67
67
|
} | {
|
|
@@ -73,7 +73,7 @@ export interface Command {
|
|
|
73
73
|
*/
|
|
74
74
|
export interface Command_PlaySong {
|
|
75
75
|
/**
|
|
76
|
-
* @generated from protobuf field: proto.models.GameplayParameters gameplay_parameters = 1
|
|
76
|
+
* @generated from protobuf field: proto.models.GameplayParameters gameplay_parameters = 1
|
|
77
77
|
*/
|
|
78
78
|
gameplayParameters?: GameplayParameters;
|
|
79
79
|
}
|
|
@@ -82,7 +82,7 @@ export interface Command_PlaySong {
|
|
|
82
82
|
*/
|
|
83
83
|
export interface Command_ModifyGameplay {
|
|
84
84
|
/**
|
|
85
|
-
* @generated from protobuf field: proto.packets.Command.ModifyGameplay.Modifier modifier = 1
|
|
85
|
+
* @generated from protobuf field: proto.packets.Command.ModifyGameplay.Modifier modifier = 1
|
|
86
86
|
*/
|
|
87
87
|
modifier: Command_ModifyGameplay_Modifier;
|
|
88
88
|
}
|
|
@@ -112,7 +112,7 @@ export declare enum Command_ModifyGameplay_Modifier {
|
|
|
112
112
|
*/
|
|
113
113
|
export interface Command_ShowColorForStreamSync {
|
|
114
114
|
/**
|
|
115
|
-
* @generated from protobuf field: string color = 1
|
|
115
|
+
* @generated from protobuf field: string color = 1
|
|
116
116
|
*/
|
|
117
117
|
color: string;
|
|
118
118
|
}
|
package/dist/models/commands.js
CHANGED
|
@@ -114,12 +114,6 @@ class Command$Type extends MessageType {
|
|
|
114
114
|
return message;
|
|
115
115
|
}
|
|
116
116
|
internalBinaryWrite(message, writer, options) {
|
|
117
|
-
/* string tournament_id = 11; */
|
|
118
|
-
if (message.tournamentId !== "")
|
|
119
|
-
writer.tag(11, WireType.LengthDelimited).string(message.tournamentId);
|
|
120
|
-
/* repeated string forward_to = 12; */
|
|
121
|
-
for (let i = 0; i < message.forwardTo.length; i++)
|
|
122
|
-
writer.tag(12, WireType.LengthDelimited).string(message.forwardTo[i]);
|
|
123
117
|
/* bool return_to_menu = 2; */
|
|
124
118
|
if (message.type.oneofKind === "returnToMenu")
|
|
125
119
|
writer.tag(2, WireType.Varint).bool(message.type.returnToMenu);
|
|
@@ -138,6 +132,12 @@ class Command$Type extends MessageType {
|
|
|
138
132
|
/* proto.packets.Command.ModifyGameplay modify_gameplay = 10; */
|
|
139
133
|
if (message.type.oneofKind === "modifyGameplay")
|
|
140
134
|
Command_ModifyGameplay.internalBinaryWrite(message.type.modifyGameplay, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
135
|
+
/* string tournament_id = 11; */
|
|
136
|
+
if (message.tournamentId !== "")
|
|
137
|
+
writer.tag(11, WireType.LengthDelimited).string(message.tournamentId);
|
|
138
|
+
/* repeated string forward_to = 12; */
|
|
139
|
+
for (let i = 0; i < message.forwardTo.length; i++)
|
|
140
|
+
writer.tag(12, WireType.LengthDelimited).string(message.forwardTo[i]);
|
|
141
141
|
/* proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync = 13; */
|
|
142
142
|
if (message.type.oneofKind === "showColorForStreamSync")
|
|
143
143
|
Command_ShowColorForStreamSync.internalBinaryWrite(message.type.showColorForStreamSync, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
package/dist/models/discord.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
9
9
|
*/
|
|
10
10
|
export interface Channel {
|
|
11
11
|
/**
|
|
12
|
-
* @generated from protobuf field: string id = 1
|
|
12
|
+
* @generated from protobuf field: string id = 1
|
|
13
13
|
*/
|
|
14
14
|
id: string;
|
|
15
15
|
/**
|
|
16
|
-
* @generated from protobuf field: string name = 2
|
|
16
|
+
* @generated from protobuf field: string name = 2
|
|
17
17
|
*/
|
|
18
18
|
name: string;
|
|
19
19
|
}
|
|
@@ -22,11 +22,11 @@ export interface Channel {
|
|
|
22
22
|
*/
|
|
23
23
|
export interface DiscordUser {
|
|
24
24
|
/**
|
|
25
|
-
* @generated from protobuf field: string id = 1
|
|
25
|
+
* @generated from protobuf field: string id = 1
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
* @generated from protobuf field: string name = 2
|
|
29
|
+
* @generated from protobuf field: string name = 2
|
|
30
30
|
*/
|
|
31
31
|
name: string;
|
|
32
32
|
}
|
|
@@ -35,11 +35,11 @@ export interface DiscordUser {
|
|
|
35
35
|
*/
|
|
36
36
|
export interface Guild {
|
|
37
37
|
/**
|
|
38
|
-
* @generated from protobuf field: string id = 1
|
|
38
|
+
* @generated from protobuf field: string id = 1
|
|
39
39
|
*/
|
|
40
40
|
id: string;
|
|
41
41
|
/**
|
|
42
|
-
* @generated from protobuf field: string name = 2
|
|
42
|
+
* @generated from protobuf field: string name = 2
|
|
43
43
|
*/
|
|
44
44
|
name: string;
|
|
45
45
|
}
|
package/dist/models/events.d.ts
CHANGED
|
@@ -19,85 +19,85 @@ export interface Event {
|
|
|
19
19
|
changedObject: {
|
|
20
20
|
oneofKind: "userAdded";
|
|
21
21
|
/**
|
|
22
|
-
* @generated from protobuf field: proto.packets.Event.UserAdded user_added = 1
|
|
22
|
+
* @generated from protobuf field: proto.packets.Event.UserAdded user_added = 1
|
|
23
23
|
*/
|
|
24
24
|
userAdded: Event_UserAdded;
|
|
25
25
|
} | {
|
|
26
26
|
oneofKind: "userUpdated";
|
|
27
27
|
/**
|
|
28
|
-
* @generated from protobuf field: proto.packets.Event.UserUpdated user_updated = 2
|
|
28
|
+
* @generated from protobuf field: proto.packets.Event.UserUpdated user_updated = 2
|
|
29
29
|
*/
|
|
30
30
|
userUpdated: Event_UserUpdated;
|
|
31
31
|
} | {
|
|
32
32
|
oneofKind: "userLeft";
|
|
33
33
|
/**
|
|
34
|
-
* @generated from protobuf field: proto.packets.Event.UserLeft user_left = 3
|
|
34
|
+
* @generated from protobuf field: proto.packets.Event.UserLeft user_left = 3
|
|
35
35
|
*/
|
|
36
36
|
userLeft: Event_UserLeft;
|
|
37
37
|
} | {
|
|
38
38
|
oneofKind: "matchCreated";
|
|
39
39
|
/**
|
|
40
|
-
* @generated from protobuf field: proto.packets.Event.MatchCreated match_created = 6
|
|
40
|
+
* @generated from protobuf field: proto.packets.Event.MatchCreated match_created = 6
|
|
41
41
|
*/
|
|
42
42
|
matchCreated: Event_MatchCreated;
|
|
43
43
|
} | {
|
|
44
44
|
oneofKind: "matchUpdated";
|
|
45
45
|
/**
|
|
46
|
-
* @generated from protobuf field: proto.packets.Event.MatchUpdated match_updated = 7
|
|
46
|
+
* @generated from protobuf field: proto.packets.Event.MatchUpdated match_updated = 7
|
|
47
47
|
*/
|
|
48
48
|
matchUpdated: Event_MatchUpdated;
|
|
49
49
|
} | {
|
|
50
50
|
oneofKind: "matchDeleted";
|
|
51
51
|
/**
|
|
52
|
-
* @generated from protobuf field: proto.packets.Event.MatchDeleted match_deleted = 8
|
|
52
|
+
* @generated from protobuf field: proto.packets.Event.MatchDeleted match_deleted = 8
|
|
53
53
|
*/
|
|
54
54
|
matchDeleted: Event_MatchDeleted;
|
|
55
55
|
} | {
|
|
56
56
|
oneofKind: "qualifierCreated";
|
|
57
57
|
/**
|
|
58
|
-
* @generated from protobuf field: proto.packets.Event.QualifierCreated qualifier_created = 9
|
|
58
|
+
* @generated from protobuf field: proto.packets.Event.QualifierCreated qualifier_created = 9
|
|
59
59
|
*/
|
|
60
60
|
qualifierCreated: Event_QualifierCreated;
|
|
61
61
|
} | {
|
|
62
62
|
oneofKind: "qualifierUpdated";
|
|
63
63
|
/**
|
|
64
|
-
* @generated from protobuf field: proto.packets.Event.QualifierUpdated qualifier_updated = 10
|
|
64
|
+
* @generated from protobuf field: proto.packets.Event.QualifierUpdated qualifier_updated = 10
|
|
65
65
|
*/
|
|
66
66
|
qualifierUpdated: Event_QualifierUpdated;
|
|
67
67
|
} | {
|
|
68
68
|
oneofKind: "qualifierDeleted";
|
|
69
69
|
/**
|
|
70
|
-
* @generated from protobuf field: proto.packets.Event.QualifierDeleted qualifier_deleted = 11
|
|
70
|
+
* @generated from protobuf field: proto.packets.Event.QualifierDeleted qualifier_deleted = 11
|
|
71
71
|
*/
|
|
72
72
|
qualifierDeleted: Event_QualifierDeleted;
|
|
73
73
|
} | {
|
|
74
74
|
oneofKind: "tournamentCreated";
|
|
75
75
|
/**
|
|
76
|
-
* @generated from protobuf field: proto.packets.Event.TournamentCreated tournament_created = 12
|
|
76
|
+
* @generated from protobuf field: proto.packets.Event.TournamentCreated tournament_created = 12
|
|
77
77
|
*/
|
|
78
78
|
tournamentCreated: Event_TournamentCreated;
|
|
79
79
|
} | {
|
|
80
80
|
oneofKind: "tournamentUpdated";
|
|
81
81
|
/**
|
|
82
|
-
* @generated from protobuf field: proto.packets.Event.TournamentUpdated tournament_updated = 13
|
|
82
|
+
* @generated from protobuf field: proto.packets.Event.TournamentUpdated tournament_updated = 13
|
|
83
83
|
*/
|
|
84
84
|
tournamentUpdated: Event_TournamentUpdated;
|
|
85
85
|
} | {
|
|
86
86
|
oneofKind: "tournamentDeleted";
|
|
87
87
|
/**
|
|
88
|
-
* @generated from protobuf field: proto.packets.Event.TournamentDeleted tournament_deleted = 14
|
|
88
|
+
* @generated from protobuf field: proto.packets.Event.TournamentDeleted tournament_deleted = 14
|
|
89
89
|
*/
|
|
90
90
|
tournamentDeleted: Event_TournamentDeleted;
|
|
91
91
|
} | {
|
|
92
92
|
oneofKind: "serverAdded";
|
|
93
93
|
/**
|
|
94
|
-
* @generated from protobuf field: proto.packets.Event.ServerAdded server_added = 15
|
|
94
|
+
* @generated from protobuf field: proto.packets.Event.ServerAdded server_added = 15
|
|
95
95
|
*/
|
|
96
96
|
serverAdded: Event_ServerAdded;
|
|
97
97
|
} | {
|
|
98
98
|
oneofKind: "serverDeleted";
|
|
99
99
|
/**
|
|
100
|
-
* @generated from protobuf field: proto.packets.Event.ServerDeleted server_deleted = 16
|
|
100
|
+
* @generated from protobuf field: proto.packets.Event.ServerDeleted server_deleted = 16
|
|
101
101
|
*/
|
|
102
102
|
serverDeleted: Event_ServerDeleted;
|
|
103
103
|
} | {
|
|
@@ -109,11 +109,11 @@ export interface Event {
|
|
|
109
109
|
*/
|
|
110
110
|
export interface Event_UserAdded {
|
|
111
111
|
/**
|
|
112
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
112
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
113
113
|
*/
|
|
114
114
|
tournamentId: string;
|
|
115
115
|
/**
|
|
116
|
-
* @generated from protobuf field: proto.models.User user = 2
|
|
116
|
+
* @generated from protobuf field: proto.models.User user = 2
|
|
117
117
|
*/
|
|
118
118
|
user?: User;
|
|
119
119
|
}
|
|
@@ -122,11 +122,11 @@ export interface Event_UserAdded {
|
|
|
122
122
|
*/
|
|
123
123
|
export interface Event_UserUpdated {
|
|
124
124
|
/**
|
|
125
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
125
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
126
126
|
*/
|
|
127
127
|
tournamentId: string;
|
|
128
128
|
/**
|
|
129
|
-
* @generated from protobuf field: proto.models.User user = 2
|
|
129
|
+
* @generated from protobuf field: proto.models.User user = 2
|
|
130
130
|
*/
|
|
131
131
|
user?: User;
|
|
132
132
|
}
|
|
@@ -135,11 +135,11 @@ export interface Event_UserUpdated {
|
|
|
135
135
|
*/
|
|
136
136
|
export interface Event_UserLeft {
|
|
137
137
|
/**
|
|
138
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
138
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
139
139
|
*/
|
|
140
140
|
tournamentId: string;
|
|
141
141
|
/**
|
|
142
|
-
* @generated from protobuf field: proto.models.User user = 2
|
|
142
|
+
* @generated from protobuf field: proto.models.User user = 2
|
|
143
143
|
*/
|
|
144
144
|
user?: User;
|
|
145
145
|
}
|
|
@@ -148,11 +148,11 @@ export interface Event_UserLeft {
|
|
|
148
148
|
*/
|
|
149
149
|
export interface Event_MatchCreated {
|
|
150
150
|
/**
|
|
151
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
151
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
152
152
|
*/
|
|
153
153
|
tournamentId: string;
|
|
154
154
|
/**
|
|
155
|
-
* @generated from protobuf field: proto.models.Match match = 2
|
|
155
|
+
* @generated from protobuf field: proto.models.Match match = 2
|
|
156
156
|
*/
|
|
157
157
|
match?: Match;
|
|
158
158
|
}
|
|
@@ -161,11 +161,11 @@ export interface Event_MatchCreated {
|
|
|
161
161
|
*/
|
|
162
162
|
export interface Event_MatchUpdated {
|
|
163
163
|
/**
|
|
164
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
164
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
165
165
|
*/
|
|
166
166
|
tournamentId: string;
|
|
167
167
|
/**
|
|
168
|
-
* @generated from protobuf field: proto.models.Match match = 2
|
|
168
|
+
* @generated from protobuf field: proto.models.Match match = 2
|
|
169
169
|
*/
|
|
170
170
|
match?: Match;
|
|
171
171
|
}
|
|
@@ -174,11 +174,11 @@ export interface Event_MatchUpdated {
|
|
|
174
174
|
*/
|
|
175
175
|
export interface Event_MatchDeleted {
|
|
176
176
|
/**
|
|
177
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
177
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
178
178
|
*/
|
|
179
179
|
tournamentId: string;
|
|
180
180
|
/**
|
|
181
|
-
* @generated from protobuf field: proto.models.Match match = 2
|
|
181
|
+
* @generated from protobuf field: proto.models.Match match = 2
|
|
182
182
|
*/
|
|
183
183
|
match?: Match;
|
|
184
184
|
}
|
|
@@ -187,11 +187,11 @@ export interface Event_MatchDeleted {
|
|
|
187
187
|
*/
|
|
188
188
|
export interface Event_QualifierCreated {
|
|
189
189
|
/**
|
|
190
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
190
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
191
191
|
*/
|
|
192
192
|
tournamentId: string;
|
|
193
193
|
/**
|
|
194
|
-
* @generated from protobuf field: proto.models.QualifierEvent event = 2
|
|
194
|
+
* @generated from protobuf field: proto.models.QualifierEvent event = 2
|
|
195
195
|
*/
|
|
196
196
|
event?: QualifierEvent;
|
|
197
197
|
}
|
|
@@ -200,11 +200,11 @@ export interface Event_QualifierCreated {
|
|
|
200
200
|
*/
|
|
201
201
|
export interface Event_QualifierUpdated {
|
|
202
202
|
/**
|
|
203
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
203
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
204
204
|
*/
|
|
205
205
|
tournamentId: string;
|
|
206
206
|
/**
|
|
207
|
-
* @generated from protobuf field: proto.models.QualifierEvent event = 2
|
|
207
|
+
* @generated from protobuf field: proto.models.QualifierEvent event = 2
|
|
208
208
|
*/
|
|
209
209
|
event?: QualifierEvent;
|
|
210
210
|
}
|
|
@@ -213,11 +213,11 @@ export interface Event_QualifierUpdated {
|
|
|
213
213
|
*/
|
|
214
214
|
export interface Event_QualifierDeleted {
|
|
215
215
|
/**
|
|
216
|
-
* @generated from protobuf field: string tournament_id = 1
|
|
216
|
+
* @generated from protobuf field: string tournament_id = 1
|
|
217
217
|
*/
|
|
218
218
|
tournamentId: string;
|
|
219
219
|
/**
|
|
220
|
-
* @generated from protobuf field: proto.models.QualifierEvent event = 2
|
|
220
|
+
* @generated from protobuf field: proto.models.QualifierEvent event = 2
|
|
221
221
|
*/
|
|
222
222
|
event?: QualifierEvent;
|
|
223
223
|
}
|
|
@@ -226,7 +226,7 @@ export interface Event_QualifierDeleted {
|
|
|
226
226
|
*/
|
|
227
227
|
export interface Event_TournamentCreated {
|
|
228
228
|
/**
|
|
229
|
-
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
229
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
230
230
|
*/
|
|
231
231
|
tournament?: Tournament;
|
|
232
232
|
}
|
|
@@ -235,7 +235,7 @@ export interface Event_TournamentCreated {
|
|
|
235
235
|
*/
|
|
236
236
|
export interface Event_TournamentUpdated {
|
|
237
237
|
/**
|
|
238
|
-
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
238
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
239
239
|
*/
|
|
240
240
|
tournament?: Tournament;
|
|
241
241
|
}
|
|
@@ -244,7 +244,7 @@ export interface Event_TournamentUpdated {
|
|
|
244
244
|
*/
|
|
245
245
|
export interface Event_TournamentDeleted {
|
|
246
246
|
/**
|
|
247
|
-
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
247
|
+
* @generated from protobuf field: proto.models.Tournament tournament = 1
|
|
248
248
|
*/
|
|
249
249
|
tournament?: Tournament;
|
|
250
250
|
}
|
|
@@ -253,7 +253,7 @@ export interface Event_TournamentDeleted {
|
|
|
253
253
|
*/
|
|
254
254
|
export interface Event_ServerAdded {
|
|
255
255
|
/**
|
|
256
|
-
* @generated from protobuf field: proto.models.CoreServer server = 1
|
|
256
|
+
* @generated from protobuf field: proto.models.CoreServer server = 1
|
|
257
257
|
*/
|
|
258
258
|
server?: CoreServer;
|
|
259
259
|
}
|
|
@@ -262,7 +262,7 @@ export interface Event_ServerAdded {
|
|
|
262
262
|
*/
|
|
263
263
|
export interface Event_ServerDeleted {
|
|
264
264
|
/**
|
|
265
|
-
* @generated from protobuf field: proto.models.CoreServer server = 1
|
|
265
|
+
* @generated from protobuf field: proto.models.CoreServer server = 1
|
|
266
266
|
*/
|
|
267
267
|
server?: CoreServer;
|
|
268
268
|
}
|
|
@@ -107,7 +107,7 @@ export interface Timestamp {
|
|
|
107
107
|
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
|
108
108
|
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
109
109
|
*
|
|
110
|
-
* @generated from protobuf field: int64 seconds = 1
|
|
110
|
+
* @generated from protobuf field: int64 seconds = 1
|
|
111
111
|
*/
|
|
112
112
|
seconds: bigint;
|
|
113
113
|
/**
|
|
@@ -117,7 +117,7 @@ export interface Timestamp {
|
|
|
117
117
|
* values that count forward in time. Must be between 0 and 999,999,999
|
|
118
118
|
* inclusive.
|
|
119
119
|
*
|
|
120
|
-
* @generated from protobuf field: int32 nanos = 2
|
|
120
|
+
* @generated from protobuf field: int32 nanos = 2
|
|
121
121
|
*/
|
|
122
122
|
nanos: number;
|
|
123
123
|
}
|
|
@@ -35,7 +35,7 @@ class Timestamp$Type extends MessageType {
|
|
|
35
35
|
const msg = this.create();
|
|
36
36
|
const ms = date.getTime();
|
|
37
37
|
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
38
|
-
msg.nanos = (ms % 1000) * 1000000;
|
|
38
|
+
msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
|
|
39
39
|
return msg;
|
|
40
40
|
}
|
|
41
41
|
/**
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED