moons-ta-client 1.3.0 → 1.3.1

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.
@@ -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
  }
@@ -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
  /**