@fivenet-app/gen 2025.4.8 → 2025.5.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/README.md +7 -1
- package/clients.ts +48 -42
- package/google/protobuf/any.ts +1 -1
- package/google/protobuf/descriptor.ts +108 -50
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +3 -2
- package/perms.ts +96 -91
- package/resources/accounts/accounts.ts +39 -3
- package/resources/accounts/oauth2.ts +6 -6
- package/resources/{rector → audit}/audit.ts +22 -23
- package/resources/calendar/access.ts +4 -4
- package/resources/calendar/calendar.ts +1 -1
- package/resources/centrum/attributes.ts +6 -2
- package/resources/centrum/dispatches.ts +4 -4
- package/resources/centrum/disponents.ts +2 -2
- package/resources/centrum/settings.ts +3 -3
- package/resources/centrum/units.ts +4 -4
- package/resources/centrum/{access.ts → units_access.ts} +4 -4
- package/resources/centrum/user_unit.ts +2 -2
- package/resources/common/content/content.ts +2 -2
- package/resources/common/cron/cron.ts +53 -12
- package/resources/common/database/database.ts +1 -1
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +1 -1
- package/resources/common/i18n.ts +1 -1
- package/resources/common/tests/objects.ts +1 -1
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +4 -4
- package/resources/documents/activity.ts +7 -7
- package/resources/documents/category.ts +49 -26
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +5 -5
- package/resources/documents/workflow.ts +2 -2
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +4 -4
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +1 -1
- package/resources/internet/page.ts +3 -3
- package/resources/internet/search.ts +1 -1
- package/resources/jobs/activity.ts +114 -114
- package/resources/jobs/colleagues.ts +59 -48
- package/resources/jobs/conduct.ts +52 -41
- package/resources/{users → jobs}/job_props.ts +28 -29
- package/resources/{users → jobs}/job_settings.ts +54 -54
- package/resources/{users → jobs}/jobs.ts +12 -12
- package/resources/jobs/labels.ts +29 -17
- package/resources/jobs/timeclock.ts +7 -7
- package/resources/laws/laws.ts +2 -2
- package/resources/livemap/livemap.ts +1 -1
- package/resources/livemap/tracker.ts +3 -3
- package/resources/mailer/access.ts +5 -5
- package/resources/mailer/email.ts +11 -23
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +2 -2
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +2 -2
- package/resources/notifications/events.ts +9 -9
- package/resources/notifications/notifications.ts +1 -1
- package/resources/permissions/attributes.ts +689 -0
- package/resources/permissions/permissions.ts +4 -727
- package/resources/qualifications/access.ts +2 -2
- package/resources/qualifications/exam.ts +7 -7
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/{rector → settings}/banner.ts +5 -5
- package/resources/{rector → settings}/config.ts +83 -83
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +20 -20
- package/resources/sync/data.ts +26 -26
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +196 -196
- package/resources/users/labels.ts +28 -28
- package/resources/users/licenses.ts +12 -12
- package/resources/users/props.ts +28 -17
- package/resources/users/users.ts +2 -2
- package/resources/vehicles/vehicles.ts +4 -4
- package/resources/wiki/access.ts +4 -4
- package/resources/wiki/activity.ts +7 -7
- package/resources/wiki/page.ts +2 -2
- package/services/auth/auth.client.ts +8 -8
- package/services/auth/auth.ts +32 -32
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +6 -6
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +8 -8
- package/services/{citizenstore/citizenstore.client.ts → citizens/citizens.client.ts} +37 -37
- package/services/{citizenstore/citizenstore.ts → citizens/citizens.ts} +72 -72
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +17 -17
- package/services/{docstore/docstore.client.ts → documents/documents.client.ts} +163 -180
- package/services/{docstore/docstore.ts → documents/documents.ts} +280 -377
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +2 -2
- package/services/internet/domain.client.ts +1 -1
- package/services/internet/domain.ts +3 -3
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +2 -2
- package/services/jobs/conduct.client.ts +9 -9
- package/services/jobs/conduct.ts +4 -4
- package/services/jobs/jobs.client.ts +15 -15
- package/services/jobs/jobs.ts +77 -77
- package/services/jobs/timeclock.client.ts +9 -9
- package/services/jobs/timeclock.ts +15 -15
- package/services/{livemapper → livemap}/livemap.client.ts +16 -16
- package/services/{livemapper → livemap}/livemap.ts +63 -52
- package/services/mailer/mailer.client.ts +5 -5
- package/services/mailer/mailer.ts +6 -6
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +5 -5
- package/services/qualifications/qualifications.client.ts +1 -1
- package/services/qualifications/qualifications.ts +4 -4
- package/services/settings/accounts.client.ts +92 -0
- package/services/settings/accounts.ts +526 -0
- package/services/{rector → settings}/config.client.ts +18 -18
- package/services/{rector → settings}/config.ts +26 -26
- package/services/settings/cron.client.ts +41 -0
- package/services/settings/cron.ts +119 -0
- package/services/{rector → settings}/filestore.client.ts +22 -22
- package/services/{rector → settings}/filestore.ts +23 -23
- package/services/{rector → settings}/laws.client.ts +26 -26
- package/services/{rector → settings}/laws.ts +28 -28
- package/services/settings/settings.client.ts +262 -0
- package/services/{rector/rector.ts → settings/settings.ts} +558 -149
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +1 -1
- package/services/sync/sync.client.ts +1 -1
- package/services/sync/sync.ts +33 -33
- package/services/{dmv → vehicles}/vehicles.client.ts +12 -12
- package/services/{dmv → vehicles}/vehicles.ts +11 -11
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +3 -3
- package/svcs.ts +247 -235
- package/services/rector/rector.client.ts +0 -211
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/sync/activity.proto" (package "resources.sync", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -10,7 +10,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
10
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { ColleagueProps as ColleagueProps$ } from "../jobs/colleagues";
|
|
14
14
|
import { UserProps as UserProps$ } from "../users/props";
|
|
15
15
|
/**
|
|
16
16
|
* Connect an identifier/license to the provider with the specified external id
|
|
@@ -50,17 +50,17 @@ export interface UserProps {
|
|
|
50
50
|
props?: UserProps$;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* @generated from protobuf message resources.sync.
|
|
53
|
+
* @generated from protobuf message resources.sync.ColleagueProps
|
|
54
54
|
*/
|
|
55
|
-
export interface
|
|
55
|
+
export interface ColleagueProps {
|
|
56
56
|
/**
|
|
57
57
|
* @generated from protobuf field: optional string reason = 1;
|
|
58
58
|
*/
|
|
59
59
|
reason?: string;
|
|
60
60
|
/**
|
|
61
|
-
* @generated from protobuf field: resources.jobs.
|
|
61
|
+
* @generated from protobuf field: resources.jobs.ColleagueProps props = 2;
|
|
62
62
|
*/
|
|
63
|
-
props?:
|
|
63
|
+
props?: ColleagueProps$;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* @generated from protobuf message resources.sync.UserUpdate
|
|
@@ -235,20 +235,20 @@ class UserProps$Type extends MessageType<UserProps> {
|
|
|
235
235
|
*/
|
|
236
236
|
export const UserProps = new UserProps$Type();
|
|
237
237
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
238
|
-
class
|
|
238
|
+
class ColleagueProps$Type extends MessageType<ColleagueProps> {
|
|
239
239
|
constructor() {
|
|
240
|
-
super("resources.sync.
|
|
240
|
+
super("resources.sync.ColleagueProps", [
|
|
241
241
|
{ no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
242
|
-
{ no: 2, name: "props", kind: "message", T: () =>
|
|
242
|
+
{ no: 2, name: "props", kind: "message", T: () => ColleagueProps$, options: { "validate.rules": { message: { required: true } } } }
|
|
243
243
|
]);
|
|
244
244
|
}
|
|
245
|
-
create(value?: PartialMessage<
|
|
245
|
+
create(value?: PartialMessage<ColleagueProps>): ColleagueProps {
|
|
246
246
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
247
247
|
if (value !== undefined)
|
|
248
|
-
reflectionMergePartial<
|
|
248
|
+
reflectionMergePartial<ColleagueProps>(this, message, value);
|
|
249
249
|
return message;
|
|
250
250
|
}
|
|
251
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
251
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ColleagueProps): ColleagueProps {
|
|
252
252
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
253
253
|
while (reader.pos < end) {
|
|
254
254
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -256,8 +256,8 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
|
|
|
256
256
|
case /* optional string reason */ 1:
|
|
257
257
|
message.reason = reader.string();
|
|
258
258
|
break;
|
|
259
|
-
case /* resources.jobs.
|
|
260
|
-
message.props =
|
|
259
|
+
case /* resources.jobs.ColleagueProps props */ 2:
|
|
260
|
+
message.props = ColleagueProps$.internalBinaryRead(reader, reader.uint32(), options, message.props);
|
|
261
261
|
break;
|
|
262
262
|
default:
|
|
263
263
|
let u = options.readUnknownField;
|
|
@@ -270,13 +270,13 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
|
|
|
270
270
|
}
|
|
271
271
|
return message;
|
|
272
272
|
}
|
|
273
|
-
internalBinaryWrite(message:
|
|
273
|
+
internalBinaryWrite(message: ColleagueProps, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
274
274
|
/* optional string reason = 1; */
|
|
275
275
|
if (message.reason !== undefined)
|
|
276
276
|
writer.tag(1, WireType.LengthDelimited).string(message.reason);
|
|
277
|
-
/* resources.jobs.
|
|
277
|
+
/* resources.jobs.ColleagueProps props = 2; */
|
|
278
278
|
if (message.props)
|
|
279
|
-
|
|
279
|
+
ColleagueProps$.internalBinaryWrite(message.props, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
280
280
|
let u = options.writeUnknownFields;
|
|
281
281
|
if (u !== false)
|
|
282
282
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -284,16 +284,16 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
|
-
* @generated MessageType for protobuf message resources.sync.
|
|
287
|
+
* @generated MessageType for protobuf message resources.sync.ColleagueProps
|
|
288
288
|
*/
|
|
289
|
-
export const
|
|
289
|
+
export const ColleagueProps = new ColleagueProps$Type();
|
|
290
290
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
291
291
|
class UserUpdate$Type extends MessageType<UserUpdate> {
|
|
292
292
|
constructor() {
|
|
293
293
|
super("resources.sync.UserUpdate", [
|
|
294
294
|
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
295
295
|
{ no: 2, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
296
|
-
{ no: 3, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
296
|
+
{ no: 3, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
297
297
|
{ no: 4, name: "job_grade", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
298
298
|
{ no: 5, name: "firstname", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
299
299
|
{ no: 6, name: "lastname", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
package/resources/sync/data.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/sync/data.proto" (package "resources.sync", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -14,7 +14,7 @@ import { Coords } from "../livemap/livemap";
|
|
|
14
14
|
import { License } from "../users/licenses";
|
|
15
15
|
import { Vehicle } from "../vehicles/vehicles";
|
|
16
16
|
import { User } from "../users/users";
|
|
17
|
-
import { Job } from "../
|
|
17
|
+
import { Job } from "../jobs/jobs";
|
|
18
18
|
/**
|
|
19
19
|
* @generated from protobuf message resources.sync.DataStatus
|
|
20
20
|
*/
|
|
@@ -29,7 +29,7 @@ export interface DataStatus {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface DataJobs {
|
|
31
31
|
/**
|
|
32
|
-
* @generated from protobuf field: repeated resources.
|
|
32
|
+
* @generated from protobuf field: repeated resources.jobs.Job jobs = 1;
|
|
33
33
|
*/
|
|
34
34
|
jobs: Job[];
|
|
35
35
|
}
|
|
@@ -65,18 +65,18 @@ export interface DataLicenses {
|
|
|
65
65
|
*/
|
|
66
66
|
export interface DataUserLocations {
|
|
67
67
|
/**
|
|
68
|
-
* @generated from protobuf field: repeated resources.sync.
|
|
68
|
+
* @generated from protobuf field: repeated resources.sync.CitizenLocations users = 1;
|
|
69
69
|
*/
|
|
70
|
-
users:
|
|
70
|
+
users: CitizenLocations[];
|
|
71
71
|
/**
|
|
72
72
|
* @generated from protobuf field: optional bool clear_all = 2;
|
|
73
73
|
*/
|
|
74
74
|
clearAll?: boolean;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* @generated from protobuf message resources.sync.
|
|
77
|
+
* @generated from protobuf message resources.sync.CitizenLocations
|
|
78
78
|
*/
|
|
79
|
-
export interface
|
|
79
|
+
export interface CitizenLocations {
|
|
80
80
|
/**
|
|
81
81
|
* @generated from protobuf field: string identifier = 1;
|
|
82
82
|
*/
|
|
@@ -167,7 +167,7 @@ export const DataStatus = new DataStatus$Type();
|
|
|
167
167
|
class DataJobs$Type extends MessageType<DataJobs> {
|
|
168
168
|
constructor() {
|
|
169
169
|
super("resources.sync.DataJobs", [
|
|
170
|
-
{ no: 1, name: "jobs", kind: "message", repeat:
|
|
170
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Job, options: { "validate.rules": { repeated: { maxItems: "200" } } } }
|
|
171
171
|
]);
|
|
172
172
|
}
|
|
173
173
|
create(value?: PartialMessage<DataJobs>): DataJobs {
|
|
@@ -182,7 +182,7 @@ class DataJobs$Type extends MessageType<DataJobs> {
|
|
|
182
182
|
while (reader.pos < end) {
|
|
183
183
|
let [fieldNo, wireType] = reader.tag();
|
|
184
184
|
switch (fieldNo) {
|
|
185
|
-
case /* repeated resources.
|
|
185
|
+
case /* repeated resources.jobs.Job jobs */ 1:
|
|
186
186
|
message.jobs.push(Job.internalBinaryRead(reader, reader.uint32(), options));
|
|
187
187
|
break;
|
|
188
188
|
default:
|
|
@@ -197,7 +197,7 @@ class DataJobs$Type extends MessageType<DataJobs> {
|
|
|
197
197
|
return message;
|
|
198
198
|
}
|
|
199
199
|
internalBinaryWrite(message: DataJobs, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
200
|
-
/* repeated resources.
|
|
200
|
+
/* repeated resources.jobs.Job jobs = 1; */
|
|
201
201
|
for (let i = 0; i < message.jobs.length; i++)
|
|
202
202
|
Job.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
203
203
|
let u = options.writeUnknownFields;
|
|
@@ -214,7 +214,7 @@ export const DataJobs = new DataJobs$Type();
|
|
|
214
214
|
class DataUsers$Type extends MessageType<DataUsers> {
|
|
215
215
|
constructor() {
|
|
216
216
|
super("resources.sync.DataUsers", [
|
|
217
|
-
{ no: 1, name: "users", kind: "message", repeat:
|
|
217
|
+
{ no: 1, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => User, options: { "validate.rules": { repeated: { maxItems: "500" } } } }
|
|
218
218
|
]);
|
|
219
219
|
}
|
|
220
220
|
create(value?: PartialMessage<DataUsers>): DataUsers {
|
|
@@ -261,7 +261,7 @@ export const DataUsers = new DataUsers$Type();
|
|
|
261
261
|
class DataVehicles$Type extends MessageType<DataVehicles> {
|
|
262
262
|
constructor() {
|
|
263
263
|
super("resources.sync.DataVehicles", [
|
|
264
|
-
{ no: 1, name: "vehicles", kind: "message", repeat:
|
|
264
|
+
{ no: 1, name: "vehicles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Vehicle, options: { "validate.rules": { repeated: { maxItems: "1000" } } } }
|
|
265
265
|
]);
|
|
266
266
|
}
|
|
267
267
|
create(value?: PartialMessage<DataVehicles>): DataVehicles {
|
|
@@ -308,7 +308,7 @@ export const DataVehicles = new DataVehicles$Type();
|
|
|
308
308
|
class DataLicenses$Type extends MessageType<DataLicenses> {
|
|
309
309
|
constructor() {
|
|
310
310
|
super("resources.sync.DataLicenses", [
|
|
311
|
-
{ no: 1, name: "licenses", kind: "message", repeat:
|
|
311
|
+
{ no: 1, name: "licenses", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => License, options: { "validate.rules": { repeated: { maxItems: "200" } } } }
|
|
312
312
|
]);
|
|
313
313
|
}
|
|
314
314
|
create(value?: PartialMessage<DataLicenses>): DataLicenses {
|
|
@@ -355,7 +355,7 @@ export const DataLicenses = new DataLicenses$Type();
|
|
|
355
355
|
class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
356
356
|
constructor() {
|
|
357
357
|
super("resources.sync.DataUserLocations", [
|
|
358
|
-
{ no: 1, name: "users", kind: "message", repeat:
|
|
358
|
+
{ no: 1, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CitizenLocations, options: { "validate.rules": { repeated: { maxItems: "2000" } } } },
|
|
359
359
|
{ no: 2, name: "clear_all", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
360
360
|
]);
|
|
361
361
|
}
|
|
@@ -371,8 +371,8 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
371
371
|
while (reader.pos < end) {
|
|
372
372
|
let [fieldNo, wireType] = reader.tag();
|
|
373
373
|
switch (fieldNo) {
|
|
374
|
-
case /* repeated resources.sync.
|
|
375
|
-
message.users.push(
|
|
374
|
+
case /* repeated resources.sync.CitizenLocations users */ 1:
|
|
375
|
+
message.users.push(CitizenLocations.internalBinaryRead(reader, reader.uint32(), options));
|
|
376
376
|
break;
|
|
377
377
|
case /* optional bool clear_all */ 2:
|
|
378
378
|
message.clearAll = reader.bool();
|
|
@@ -389,9 +389,9 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
389
389
|
return message;
|
|
390
390
|
}
|
|
391
391
|
internalBinaryWrite(message: DataUserLocations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
392
|
-
/* repeated resources.sync.
|
|
392
|
+
/* repeated resources.sync.CitizenLocations users = 1; */
|
|
393
393
|
for (let i = 0; i < message.users.length; i++)
|
|
394
|
-
|
|
394
|
+
CitizenLocations.internalBinaryWrite(message.users[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
395
395
|
/* optional bool clear_all = 2; */
|
|
396
396
|
if (message.clearAll !== undefined)
|
|
397
397
|
writer.tag(2, WireType.Varint).bool(message.clearAll);
|
|
@@ -406,9 +406,9 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
406
406
|
*/
|
|
407
407
|
export const DataUserLocations = new DataUserLocations$Type();
|
|
408
408
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
409
|
-
class
|
|
409
|
+
class CitizenLocations$Type extends MessageType<CitizenLocations> {
|
|
410
410
|
constructor() {
|
|
411
|
-
super("resources.sync.
|
|
411
|
+
super("resources.sync.CitizenLocations", [
|
|
412
412
|
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
413
413
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
414
414
|
{ no: 3, name: "coords", kind: "message", T: () => Coords, options: { "validate.rules": { message: { required: true } } } },
|
|
@@ -416,17 +416,17 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
416
416
|
{ no: 5, name: "remove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
417
417
|
]);
|
|
418
418
|
}
|
|
419
|
-
create(value?: PartialMessage<
|
|
419
|
+
create(value?: PartialMessage<CitizenLocations>): CitizenLocations {
|
|
420
420
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
421
421
|
message.identifier = "";
|
|
422
422
|
message.job = "";
|
|
423
423
|
message.hidden = false;
|
|
424
424
|
message.remove = false;
|
|
425
425
|
if (value !== undefined)
|
|
426
|
-
reflectionMergePartial<
|
|
426
|
+
reflectionMergePartial<CitizenLocations>(this, message, value);
|
|
427
427
|
return message;
|
|
428
428
|
}
|
|
429
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
429
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CitizenLocations): CitizenLocations {
|
|
430
430
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
431
431
|
while (reader.pos < end) {
|
|
432
432
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -457,7 +457,7 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
457
457
|
}
|
|
458
458
|
return message;
|
|
459
459
|
}
|
|
460
|
-
internalBinaryWrite(message:
|
|
460
|
+
internalBinaryWrite(message: CitizenLocations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
461
461
|
/* string identifier = 1; */
|
|
462
462
|
if (message.identifier !== "")
|
|
463
463
|
writer.tag(1, WireType.LengthDelimited).string(message.identifier);
|
|
@@ -480,9 +480,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
|
-
* @generated MessageType for protobuf message resources.sync.
|
|
483
|
+
* @generated MessageType for protobuf message resources.sync.CitizenLocations
|
|
484
484
|
*/
|
|
485
|
-
export const
|
|
485
|
+
export const CitizenLocations = new CitizenLocations$Type();
|
|
486
486
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
487
487
|
class DeleteUsers$Type extends MessageType<DeleteUsers> {
|
|
488
488
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/timestamp/timestamp.proto" (package "resources.timestamp", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
//
|