@fivenet-app/gen 0.9.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.
Files changed (123) hide show
  1. package/README.md +1 -0
  2. package/google/protobuf/any.ts +322 -0
  3. package/google/protobuf/descriptor.ts +3475 -0
  4. package/google/protobuf/duration.ts +231 -0
  5. package/google/protobuf/timestamp.ts +290 -0
  6. package/package.json +15 -0
  7. package/perms.ts +178 -0
  8. package/resources/accounts/accounts.ts +195 -0
  9. package/resources/accounts/oauth2.ts +230 -0
  10. package/resources/calendar/access.ts +362 -0
  11. package/resources/calendar/calendar.ts +955 -0
  12. package/resources/centrum/access.ts +380 -0
  13. package/resources/centrum/dispatches.ts +854 -0
  14. package/resources/centrum/general.ts +231 -0
  15. package/resources/centrum/settings.ts +303 -0
  16. package/resources/centrum/units.ts +620 -0
  17. package/resources/common/access/dummy.ts +309 -0
  18. package/resources/common/content/content.ts +252 -0
  19. package/resources/common/cron/cron.ts +536 -0
  20. package/resources/common/database/database.ts +306 -0
  21. package/resources/common/error.ts +79 -0
  22. package/resources/common/grpcws/grpcws.ts +615 -0
  23. package/resources/common/i18n.ts +102 -0
  24. package/resources/common/uuid.ts +68 -0
  25. package/resources/documents/access.ts +388 -0
  26. package/resources/documents/activity.ts +803 -0
  27. package/resources/documents/category.ts +132 -0
  28. package/resources/documents/comment.ts +161 -0
  29. package/resources/documents/documents.ts +1124 -0
  30. package/resources/documents/requests.ts +196 -0
  31. package/resources/documents/templates.ts +949 -0
  32. package/resources/documents/workflow.ts +349 -0
  33. package/resources/filestore/file.ts +204 -0
  34. package/resources/internet/ads.ts +257 -0
  35. package/resources/internet/domain.ts +136 -0
  36. package/resources/internet/internet.ts +344 -0
  37. package/resources/internet/page.ts +236 -0
  38. package/resources/internet/search.ts +104 -0
  39. package/resources/jobs/activity.ts +600 -0
  40. package/resources/jobs/colleagues.ts +346 -0
  41. package/resources/jobs/conduct.ts +220 -0
  42. package/resources/jobs/labels.ts +240 -0
  43. package/resources/jobs/timeclock.ts +372 -0
  44. package/resources/laws/laws.ts +293 -0
  45. package/resources/livemap/livemap.ts +728 -0
  46. package/resources/livemap/tracker.ts +81 -0
  47. package/resources/mailer/access.ts +485 -0
  48. package/resources/mailer/email.ts +222 -0
  49. package/resources/mailer/events.ts +196 -0
  50. package/resources/mailer/message.ts +285 -0
  51. package/resources/mailer/settings.ts +95 -0
  52. package/resources/mailer/template.ts +164 -0
  53. package/resources/mailer/thread.ts +422 -0
  54. package/resources/mailer/user.ts +93 -0
  55. package/resources/notifications/events.ts +287 -0
  56. package/resources/notifications/notifications.ts +444 -0
  57. package/resources/permissions/permissions.ts +829 -0
  58. package/resources/qualifications/access.ts +275 -0
  59. package/resources/qualifications/exam.ts +1421 -0
  60. package/resources/qualifications/qualifications.ts +1289 -0
  61. package/resources/rector/audit.ts +226 -0
  62. package/resources/rector/config.ts +922 -0
  63. package/resources/stats/stats.ts +67 -0
  64. package/resources/sync/activity.ts +356 -0
  65. package/resources/sync/data.ts +455 -0
  66. package/resources/timestamp/timestamp.ts +78 -0
  67. package/resources/users/activity.ts +211 -0
  68. package/resources/users/job_props.ts +992 -0
  69. package/resources/users/jobs.ts +171 -0
  70. package/resources/users/labels.ts +161 -0
  71. package/resources/users/props.ts +207 -0
  72. package/resources/users/users.ts +570 -0
  73. package/resources/vehicles/vehicles.ts +114 -0
  74. package/resources/wiki/access.ts +362 -0
  75. package/resources/wiki/activity.ts +591 -0
  76. package/resources/wiki/page.ts +548 -0
  77. package/services/auth/auth.client.ts +171 -0
  78. package/services/auth/auth.ts +1331 -0
  79. package/services/calendar/calendar.client.ts +262 -0
  80. package/services/calendar/calendar.ts +1733 -0
  81. package/services/centrum/centrum.client.ts +365 -0
  82. package/services/centrum/centrum.ts +2619 -0
  83. package/services/citizenstore/citizenstore.client.ts +126 -0
  84. package/services/citizenstore/citizenstore.ts +847 -0
  85. package/services/completor/completor.client.ts +109 -0
  86. package/services/completor/completor.ts +616 -0
  87. package/services/dmv/vehicles.client.ts +41 -0
  88. package/services/dmv/vehicles.ts +191 -0
  89. package/services/docstore/docstore.client.ts +653 -0
  90. package/services/docstore/docstore.ts +4571 -0
  91. package/services/internet/ads.client.ts +41 -0
  92. package/services/internet/ads.ts +145 -0
  93. package/services/internet/internet.client.ts +58 -0
  94. package/services/internet/internet.ts +257 -0
  95. package/services/jobs/conduct.client.ts +92 -0
  96. package/services/jobs/conduct.ts +541 -0
  97. package/services/jobs/jobs.client.ts +194 -0
  98. package/services/jobs/jobs.ts +1301 -0
  99. package/services/jobs/timeclock.client.ts +75 -0
  100. package/services/jobs/timeclock.ts +808 -0
  101. package/services/livemapper/livemap.client.ts +76 -0
  102. package/services/livemapper/livemap.ts +552 -0
  103. package/services/mailer/mailer.client.ts +381 -0
  104. package/services/mailer/mailer.ts +2590 -0
  105. package/services/notificator/notificator.client.ts +76 -0
  106. package/services/notificator/notificator.ts +510 -0
  107. package/services/qualifications/qualifications.client.ts +279 -0
  108. package/services/qualifications/qualifications.ts +2142 -0
  109. package/services/rector/config.client.ts +58 -0
  110. package/services/rector/config.ts +216 -0
  111. package/services/rector/filestore.client.ts +75 -0
  112. package/services/rector/filestore.ts +378 -0
  113. package/services/rector/laws.client.ts +92 -0
  114. package/services/rector/laws.ts +416 -0
  115. package/services/rector/rector.client.ts +211 -0
  116. package/services/rector/rector.ts +1540 -0
  117. package/services/stats/stats.client.ts +37 -0
  118. package/services/stats/stats.ts +128 -0
  119. package/services/sync/sync.client.ts +110 -0
  120. package/services/sync/sync.ts +831 -0
  121. package/services/wiki/wiki.client.ts +126 -0
  122. package/services/wiki/wiki.ts +749 -0
  123. package/svcs.ts +307 -0
@@ -0,0 +1,455 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/sync/data.proto" (package "resources.sync", syntax proto3)
3
+ // @ts-nocheck
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { Coords } from "../livemap/livemap";
14
+ import { License } from "../users/users";
15
+ import { Vehicle } from "../vehicles/vehicles";
16
+ import { User } from "../users/users";
17
+ import { Job } from "../users/jobs";
18
+ /**
19
+ * @generated from protobuf message resources.sync.DataStatus
20
+ */
21
+ export interface DataStatus {
22
+ /**
23
+ * @generated from protobuf field: int64 count = 1;
24
+ */
25
+ count: number;
26
+ }
27
+ /**
28
+ * @generated from protobuf message resources.sync.DataJobs
29
+ */
30
+ export interface DataJobs {
31
+ /**
32
+ * @generated from protobuf field: repeated resources.users.Job jobs = 1;
33
+ */
34
+ jobs: Job[];
35
+ }
36
+ /**
37
+ * @generated from protobuf message resources.sync.DataUsers
38
+ */
39
+ export interface DataUsers {
40
+ /**
41
+ * @generated from protobuf field: repeated resources.users.User users = 1;
42
+ */
43
+ users: User[];
44
+ }
45
+ /**
46
+ * @generated from protobuf message resources.sync.DataVehicles
47
+ */
48
+ export interface DataVehicles {
49
+ /**
50
+ * @generated from protobuf field: repeated resources.vehicles.Vehicle vehicles = 1;
51
+ */
52
+ vehicles: Vehicle[];
53
+ }
54
+ /**
55
+ * @generated from protobuf message resources.sync.DataLicenses
56
+ */
57
+ export interface DataLicenses {
58
+ /**
59
+ * @generated from protobuf field: repeated resources.users.License licenses = 1;
60
+ */
61
+ licenses: License[];
62
+ }
63
+ /**
64
+ * @generated from protobuf message resources.sync.DataUserLocations
65
+ */
66
+ export interface DataUserLocations {
67
+ /**
68
+ * @generated from protobuf field: repeated resources.sync.UserLocation users = 1;
69
+ */
70
+ users: UserLocation[];
71
+ /**
72
+ * @generated from protobuf field: optional bool clear = 2;
73
+ */
74
+ clear?: boolean;
75
+ }
76
+ /**
77
+ * @generated from protobuf message resources.sync.UserLocation
78
+ */
79
+ export interface UserLocation {
80
+ /**
81
+ * @generated from protobuf field: string identifier = 1;
82
+ */
83
+ identifier: string;
84
+ /**
85
+ * @generated from protobuf field: string job = 2;
86
+ */
87
+ job: string;
88
+ /**
89
+ * @generated from protobuf field: resources.livemap.Coords coords = 3;
90
+ */
91
+ coords?: Coords;
92
+ /**
93
+ * @generated from protobuf field: bool hidden = 4;
94
+ */
95
+ hidden: boolean;
96
+ }
97
+ // @generated message type with reflection information, may provide speed optimized methods
98
+ class DataStatus$Type extends MessageType<DataStatus> {
99
+ constructor() {
100
+ super("resources.sync.DataStatus", [
101
+ { no: 1, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
102
+ ]);
103
+ }
104
+ create(value?: PartialMessage<DataStatus>): DataStatus {
105
+ const message = globalThis.Object.create((this.messagePrototype!));
106
+ message.count = 0;
107
+ if (value !== undefined)
108
+ reflectionMergePartial<DataStatus>(this, message, value);
109
+ return message;
110
+ }
111
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataStatus): DataStatus {
112
+ let message = target ?? this.create(), end = reader.pos + length;
113
+ while (reader.pos < end) {
114
+ let [fieldNo, wireType] = reader.tag();
115
+ switch (fieldNo) {
116
+ case /* int64 count */ 1:
117
+ message.count = reader.int64().toNumber();
118
+ break;
119
+ default:
120
+ let u = options.readUnknownField;
121
+ if (u === "throw")
122
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
123
+ let d = reader.skip(wireType);
124
+ if (u !== false)
125
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
126
+ }
127
+ }
128
+ return message;
129
+ }
130
+ internalBinaryWrite(message: DataStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
131
+ /* int64 count = 1; */
132
+ if (message.count !== 0)
133
+ writer.tag(1, WireType.Varint).int64(message.count);
134
+ let u = options.writeUnknownFields;
135
+ if (u !== false)
136
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
137
+ return writer;
138
+ }
139
+ }
140
+ /**
141
+ * @generated MessageType for protobuf message resources.sync.DataStatus
142
+ */
143
+ export const DataStatus = new DataStatus$Type();
144
+ // @generated message type with reflection information, may provide speed optimized methods
145
+ class DataJobs$Type extends MessageType<DataJobs> {
146
+ constructor() {
147
+ super("resources.sync.DataJobs", [
148
+ { no: 1, name: "jobs", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Job, options: { "validate.rules": { repeated: { maxItems: "200" } } } }
149
+ ]);
150
+ }
151
+ create(value?: PartialMessage<DataJobs>): DataJobs {
152
+ const message = globalThis.Object.create((this.messagePrototype!));
153
+ message.jobs = [];
154
+ if (value !== undefined)
155
+ reflectionMergePartial<DataJobs>(this, message, value);
156
+ return message;
157
+ }
158
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataJobs): DataJobs {
159
+ let message = target ?? this.create(), end = reader.pos + length;
160
+ while (reader.pos < end) {
161
+ let [fieldNo, wireType] = reader.tag();
162
+ switch (fieldNo) {
163
+ case /* repeated resources.users.Job jobs */ 1:
164
+ message.jobs.push(Job.internalBinaryRead(reader, reader.uint32(), options));
165
+ break;
166
+ default:
167
+ let u = options.readUnknownField;
168
+ if (u === "throw")
169
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
170
+ let d = reader.skip(wireType);
171
+ if (u !== false)
172
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
173
+ }
174
+ }
175
+ return message;
176
+ }
177
+ internalBinaryWrite(message: DataJobs, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
178
+ /* repeated resources.users.Job jobs = 1; */
179
+ for (let i = 0; i < message.jobs.length; i++)
180
+ Job.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
181
+ let u = options.writeUnknownFields;
182
+ if (u !== false)
183
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
184
+ return writer;
185
+ }
186
+ }
187
+ /**
188
+ * @generated MessageType for protobuf message resources.sync.DataJobs
189
+ */
190
+ export const DataJobs = new DataJobs$Type();
191
+ // @generated message type with reflection information, may provide speed optimized methods
192
+ class DataUsers$Type extends MessageType<DataUsers> {
193
+ constructor() {
194
+ super("resources.sync.DataUsers", [
195
+ { no: 1, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => User, options: { "validate.rules": { repeated: { maxItems: "500" } } } }
196
+ ]);
197
+ }
198
+ create(value?: PartialMessage<DataUsers>): DataUsers {
199
+ const message = globalThis.Object.create((this.messagePrototype!));
200
+ message.users = [];
201
+ if (value !== undefined)
202
+ reflectionMergePartial<DataUsers>(this, message, value);
203
+ return message;
204
+ }
205
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataUsers): DataUsers {
206
+ let message = target ?? this.create(), end = reader.pos + length;
207
+ while (reader.pos < end) {
208
+ let [fieldNo, wireType] = reader.tag();
209
+ switch (fieldNo) {
210
+ case /* repeated resources.users.User users */ 1:
211
+ message.users.push(User.internalBinaryRead(reader, reader.uint32(), options));
212
+ break;
213
+ default:
214
+ let u = options.readUnknownField;
215
+ if (u === "throw")
216
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
217
+ let d = reader.skip(wireType);
218
+ if (u !== false)
219
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
220
+ }
221
+ }
222
+ return message;
223
+ }
224
+ internalBinaryWrite(message: DataUsers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
225
+ /* repeated resources.users.User users = 1; */
226
+ for (let i = 0; i < message.users.length; i++)
227
+ User.internalBinaryWrite(message.users[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
228
+ let u = options.writeUnknownFields;
229
+ if (u !== false)
230
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
231
+ return writer;
232
+ }
233
+ }
234
+ /**
235
+ * @generated MessageType for protobuf message resources.sync.DataUsers
236
+ */
237
+ export const DataUsers = new DataUsers$Type();
238
+ // @generated message type with reflection information, may provide speed optimized methods
239
+ class DataVehicles$Type extends MessageType<DataVehicles> {
240
+ constructor() {
241
+ super("resources.sync.DataVehicles", [
242
+ { no: 1, name: "vehicles", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Vehicle, options: { "validate.rules": { repeated: { maxItems: "1000" } } } }
243
+ ]);
244
+ }
245
+ create(value?: PartialMessage<DataVehicles>): DataVehicles {
246
+ const message = globalThis.Object.create((this.messagePrototype!));
247
+ message.vehicles = [];
248
+ if (value !== undefined)
249
+ reflectionMergePartial<DataVehicles>(this, message, value);
250
+ return message;
251
+ }
252
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataVehicles): DataVehicles {
253
+ let message = target ?? this.create(), end = reader.pos + length;
254
+ while (reader.pos < end) {
255
+ let [fieldNo, wireType] = reader.tag();
256
+ switch (fieldNo) {
257
+ case /* repeated resources.vehicles.Vehicle vehicles */ 1:
258
+ message.vehicles.push(Vehicle.internalBinaryRead(reader, reader.uint32(), options));
259
+ break;
260
+ default:
261
+ let u = options.readUnknownField;
262
+ if (u === "throw")
263
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
264
+ let d = reader.skip(wireType);
265
+ if (u !== false)
266
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
267
+ }
268
+ }
269
+ return message;
270
+ }
271
+ internalBinaryWrite(message: DataVehicles, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
272
+ /* repeated resources.vehicles.Vehicle vehicles = 1; */
273
+ for (let i = 0; i < message.vehicles.length; i++)
274
+ Vehicle.internalBinaryWrite(message.vehicles[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
275
+ let u = options.writeUnknownFields;
276
+ if (u !== false)
277
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
278
+ return writer;
279
+ }
280
+ }
281
+ /**
282
+ * @generated MessageType for protobuf message resources.sync.DataVehicles
283
+ */
284
+ export const DataVehicles = new DataVehicles$Type();
285
+ // @generated message type with reflection information, may provide speed optimized methods
286
+ class DataLicenses$Type extends MessageType<DataLicenses> {
287
+ constructor() {
288
+ super("resources.sync.DataLicenses", [
289
+ { no: 1, name: "licenses", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => License, options: { "validate.rules": { repeated: { maxItems: "200" } } } }
290
+ ]);
291
+ }
292
+ create(value?: PartialMessage<DataLicenses>): DataLicenses {
293
+ const message = globalThis.Object.create((this.messagePrototype!));
294
+ message.licenses = [];
295
+ if (value !== undefined)
296
+ reflectionMergePartial<DataLicenses>(this, message, value);
297
+ return message;
298
+ }
299
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataLicenses): DataLicenses {
300
+ let message = target ?? this.create(), end = reader.pos + length;
301
+ while (reader.pos < end) {
302
+ let [fieldNo, wireType] = reader.tag();
303
+ switch (fieldNo) {
304
+ case /* repeated resources.users.License licenses */ 1:
305
+ message.licenses.push(License.internalBinaryRead(reader, reader.uint32(), options));
306
+ break;
307
+ default:
308
+ let u = options.readUnknownField;
309
+ if (u === "throw")
310
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
311
+ let d = reader.skip(wireType);
312
+ if (u !== false)
313
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
314
+ }
315
+ }
316
+ return message;
317
+ }
318
+ internalBinaryWrite(message: DataLicenses, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
319
+ /* repeated resources.users.License licenses = 1; */
320
+ for (let i = 0; i < message.licenses.length; i++)
321
+ License.internalBinaryWrite(message.licenses[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
322
+ let u = options.writeUnknownFields;
323
+ if (u !== false)
324
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
325
+ return writer;
326
+ }
327
+ }
328
+ /**
329
+ * @generated MessageType for protobuf message resources.sync.DataLicenses
330
+ */
331
+ export const DataLicenses = new DataLicenses$Type();
332
+ // @generated message type with reflection information, may provide speed optimized methods
333
+ class DataUserLocations$Type extends MessageType<DataUserLocations> {
334
+ constructor() {
335
+ super("resources.sync.DataUserLocations", [
336
+ { no: 1, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => UserLocation, options: { "validate.rules": { repeated: { maxItems: "2000" } } } },
337
+ { no: 2, name: "clear", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
338
+ ]);
339
+ }
340
+ create(value?: PartialMessage<DataUserLocations>): DataUserLocations {
341
+ const message = globalThis.Object.create((this.messagePrototype!));
342
+ message.users = [];
343
+ if (value !== undefined)
344
+ reflectionMergePartial<DataUserLocations>(this, message, value);
345
+ return message;
346
+ }
347
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataUserLocations): DataUserLocations {
348
+ let message = target ?? this.create(), end = reader.pos + length;
349
+ while (reader.pos < end) {
350
+ let [fieldNo, wireType] = reader.tag();
351
+ switch (fieldNo) {
352
+ case /* repeated resources.sync.UserLocation users */ 1:
353
+ message.users.push(UserLocation.internalBinaryRead(reader, reader.uint32(), options));
354
+ break;
355
+ case /* optional bool clear */ 2:
356
+ message.clear = reader.bool();
357
+ break;
358
+ default:
359
+ let u = options.readUnknownField;
360
+ if (u === "throw")
361
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
362
+ let d = reader.skip(wireType);
363
+ if (u !== false)
364
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
365
+ }
366
+ }
367
+ return message;
368
+ }
369
+ internalBinaryWrite(message: DataUserLocations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
370
+ /* repeated resources.sync.UserLocation users = 1; */
371
+ for (let i = 0; i < message.users.length; i++)
372
+ UserLocation.internalBinaryWrite(message.users[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
373
+ /* optional bool clear = 2; */
374
+ if (message.clear !== undefined)
375
+ writer.tag(2, WireType.Varint).bool(message.clear);
376
+ let u = options.writeUnknownFields;
377
+ if (u !== false)
378
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
379
+ return writer;
380
+ }
381
+ }
382
+ /**
383
+ * @generated MessageType for protobuf message resources.sync.DataUserLocations
384
+ */
385
+ export const DataUserLocations = new DataUserLocations$Type();
386
+ // @generated message type with reflection information, may provide speed optimized methods
387
+ class UserLocation$Type extends MessageType<UserLocation> {
388
+ constructor() {
389
+ super("resources.sync.UserLocation", [
390
+ { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
391
+ { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
392
+ { no: 3, name: "coords", kind: "message", T: () => Coords, options: { "validate.rules": { message: { required: true } } } },
393
+ { no: 4, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
394
+ ]);
395
+ }
396
+ create(value?: PartialMessage<UserLocation>): UserLocation {
397
+ const message = globalThis.Object.create((this.messagePrototype!));
398
+ message.identifier = "";
399
+ message.job = "";
400
+ message.hidden = false;
401
+ if (value !== undefined)
402
+ reflectionMergePartial<UserLocation>(this, message, value);
403
+ return message;
404
+ }
405
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserLocation): UserLocation {
406
+ let message = target ?? this.create(), end = reader.pos + length;
407
+ while (reader.pos < end) {
408
+ let [fieldNo, wireType] = reader.tag();
409
+ switch (fieldNo) {
410
+ case /* string identifier */ 1:
411
+ message.identifier = reader.string();
412
+ break;
413
+ case /* string job */ 2:
414
+ message.job = reader.string();
415
+ break;
416
+ case /* resources.livemap.Coords coords */ 3:
417
+ message.coords = Coords.internalBinaryRead(reader, reader.uint32(), options, message.coords);
418
+ break;
419
+ case /* bool hidden */ 4:
420
+ message.hidden = reader.bool();
421
+ break;
422
+ default:
423
+ let u = options.readUnknownField;
424
+ if (u === "throw")
425
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
426
+ let d = reader.skip(wireType);
427
+ if (u !== false)
428
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
429
+ }
430
+ }
431
+ return message;
432
+ }
433
+ internalBinaryWrite(message: UserLocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
434
+ /* string identifier = 1; */
435
+ if (message.identifier !== "")
436
+ writer.tag(1, WireType.LengthDelimited).string(message.identifier);
437
+ /* string job = 2; */
438
+ if (message.job !== "")
439
+ writer.tag(2, WireType.LengthDelimited).string(message.job);
440
+ /* resources.livemap.Coords coords = 3; */
441
+ if (message.coords)
442
+ Coords.internalBinaryWrite(message.coords, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
443
+ /* bool hidden = 4; */
444
+ if (message.hidden !== false)
445
+ writer.tag(4, WireType.Varint).bool(message.hidden);
446
+ let u = options.writeUnknownFields;
447
+ if (u !== false)
448
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
449
+ return writer;
450
+ }
451
+ }
452
+ /**
453
+ * @generated MessageType for protobuf message resources.sync.UserLocation
454
+ */
455
+ export const UserLocation = new UserLocation$Type();
@@ -0,0 +1,78 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/timestamp/timestamp.proto" (package "resources.timestamp", syntax proto3)
3
+ // @ts-nocheck
4
+ //
5
+ // Copyright (c) HashiCorp, Inc.
6
+ // SPDX-License-Identifier: MPL-2.0
7
+ //
8
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
10
+ import { WireType } from "@protobuf-ts/runtime";
11
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
12
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
13
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
14
+ import type { PartialMessage } from "@protobuf-ts/runtime";
15
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
16
+ import { MessageType } from "@protobuf-ts/runtime";
17
+ import { Timestamp as Timestamp$ } from "../../google/protobuf/timestamp";
18
+ /**
19
+ * Timestamp for storage messages. We've defined a new local type wrapper
20
+ * of google.protobuf.Timestamp so we can implement sql.Scanner and sql.Valuer
21
+ * interfaces. See:
22
+ * https://golang.org/pkg/database/sql/#Scanner
23
+ * https://golang.org/pkg/database/sql/driver/#Valuer
24
+ *
25
+ * @generated from protobuf message resources.timestamp.Timestamp
26
+ */
27
+ export interface Timestamp {
28
+ /**
29
+ * @generated from protobuf field: google.protobuf.Timestamp timestamp = 1;
30
+ */
31
+ timestamp?: Timestamp$;
32
+ }
33
+ // @generated message type with reflection information, may provide speed optimized methods
34
+ class Timestamp$Type extends MessageType<Timestamp> {
35
+ constructor() {
36
+ super("resources.timestamp.Timestamp", [
37
+ { no: 1, name: "timestamp", kind: "message", T: () => Timestamp$ }
38
+ ]);
39
+ }
40
+ create(value?: PartialMessage<Timestamp>): Timestamp {
41
+ const message = globalThis.Object.create((this.messagePrototype!));
42
+ if (value !== undefined)
43
+ reflectionMergePartial<Timestamp>(this, message, value);
44
+ return message;
45
+ }
46
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp {
47
+ let message = target ?? this.create(), end = reader.pos + length;
48
+ while (reader.pos < end) {
49
+ let [fieldNo, wireType] = reader.tag();
50
+ switch (fieldNo) {
51
+ case /* google.protobuf.Timestamp timestamp */ 1:
52
+ message.timestamp = Timestamp$.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
53
+ break;
54
+ default:
55
+ let u = options.readUnknownField;
56
+ if (u === "throw")
57
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
58
+ let d = reader.skip(wireType);
59
+ if (u !== false)
60
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
61
+ }
62
+ }
63
+ return message;
64
+ }
65
+ internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
66
+ /* google.protobuf.Timestamp timestamp = 1; */
67
+ if (message.timestamp)
68
+ Timestamp$.internalBinaryWrite(message.timestamp, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
69
+ let u = options.writeUnknownFields;
70
+ if (u !== false)
71
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
72
+ return writer;
73
+ }
74
+ }
75
+ /**
76
+ * @generated MessageType for protobuf message resources.timestamp.Timestamp
77
+ */
78
+ export const Timestamp = new Timestamp$Type();