moons-ta-client 1.2.4 → 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.
@@ -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
  }
@@ -1,7 +1,6 @@
1
1
  import { WireType } from "@protobuf-ts/runtime";
2
2
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
- import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
5
4
  import { MessageType } from "@protobuf-ts/runtime";
6
5
  import { GameplayParameters } from './models.js';
7
6
  /**
@@ -42,8 +41,10 @@ class Command$Type extends MessageType {
42
41
  ]);
43
42
  }
44
43
  create(value) {
45
- const message = { tournamentId: "", forwardTo: [], type: { oneofKind: undefined } };
46
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
44
+ const message = globalThis.Object.create((this.messagePrototype));
45
+ message.tournamentId = "";
46
+ message.forwardTo = [];
47
+ message.type = { oneofKind: undefined };
47
48
  if (value !== undefined)
48
49
  reflectionMergePartial(this, message, value);
49
50
  return message;
@@ -113,12 +114,6 @@ class Command$Type extends MessageType {
113
114
  return message;
114
115
  }
115
116
  internalBinaryWrite(message, writer, options) {
116
- /* string tournament_id = 11; */
117
- if (message.tournamentId !== "")
118
- writer.tag(11, WireType.LengthDelimited).string(message.tournamentId);
119
- /* repeated string forward_to = 12; */
120
- for (let i = 0; i < message.forwardTo.length; i++)
121
- writer.tag(12, WireType.LengthDelimited).string(message.forwardTo[i]);
122
117
  /* bool return_to_menu = 2; */
123
118
  if (message.type.oneofKind === "returnToMenu")
124
119
  writer.tag(2, WireType.Varint).bool(message.type.returnToMenu);
@@ -137,6 +132,12 @@ class Command$Type extends MessageType {
137
132
  /* proto.packets.Command.ModifyGameplay modify_gameplay = 10; */
138
133
  if (message.type.oneofKind === "modifyGameplay")
139
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]);
140
141
  /* proto.packets.Command.ShowColorForStreamSync show_color_for_stream_sync = 13; */
141
142
  if (message.type.oneofKind === "showColorForStreamSync")
142
143
  Command_ShowColorForStreamSync.internalBinaryWrite(message.type.showColorForStreamSync, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
@@ -158,8 +159,7 @@ class Command_PlaySong$Type extends MessageType {
158
159
  ]);
159
160
  }
160
161
  create(value) {
161
- const message = {};
162
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
162
+ const message = globalThis.Object.create((this.messagePrototype));
163
163
  if (value !== undefined)
164
164
  reflectionMergePartial(this, message, value);
165
165
  return message;
@@ -205,8 +205,8 @@ class Command_ModifyGameplay$Type extends MessageType {
205
205
  ]);
206
206
  }
207
207
  create(value) {
208
- const message = { modifier: 0 };
209
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
208
+ const message = globalThis.Object.create((this.messagePrototype));
209
+ message.modifier = 0;
210
210
  if (value !== undefined)
211
211
  reflectionMergePartial(this, message, value);
212
212
  return message;
@@ -252,8 +252,8 @@ class Command_ShowColorForStreamSync$Type extends MessageType {
252
252
  ]);
253
253
  }
254
254
  create(value) {
255
- const message = { color: "" };
256
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
255
+ const message = globalThis.Object.create((this.messagePrototype));
256
+ message.color = "";
257
257
  if (value !== undefined)
258
258
  reflectionMergePartial(this, message, value);
259
259
  return message;
@@ -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
  }
@@ -1,7 +1,6 @@
1
1
  import { WireType } from "@protobuf-ts/runtime";
2
2
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
- import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
5
4
  import { MessageType } from "@protobuf-ts/runtime";
6
5
  // @generated message type with reflection information, may provide speed optimized methods
7
6
  class Channel$Type extends MessageType {
@@ -12,8 +11,9 @@ class Channel$Type extends MessageType {
12
11
  ]);
13
12
  }
14
13
  create(value) {
15
- const message = { id: "", name: "" };
16
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
14
+ const message = globalThis.Object.create((this.messagePrototype));
15
+ message.id = "";
16
+ message.name = "";
17
17
  if (value !== undefined)
18
18
  reflectionMergePartial(this, message, value);
19
19
  return message;
@@ -66,8 +66,9 @@ class DiscordUser$Type extends MessageType {
66
66
  ]);
67
67
  }
68
68
  create(value) {
69
- const message = { id: "", name: "" };
70
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
69
+ const message = globalThis.Object.create((this.messagePrototype));
70
+ message.id = "";
71
+ message.name = "";
71
72
  if (value !== undefined)
72
73
  reflectionMergePartial(this, message, value);
73
74
  return message;
@@ -120,8 +121,9 @@ class Guild$Type extends MessageType {
120
121
  ]);
121
122
  }
122
123
  create(value) {
123
- const message = { id: "", name: "" };
124
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
124
+ const message = globalThis.Object.create((this.messagePrototype));
125
+ message.id = "";
126
+ message.name = "";
125
127
  if (value !== undefined)
126
128
  reflectionMergePartial(this, message, value);
127
129
  return message;
@@ -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
  }