@fivenet-app/gen 0.9.3 → 0.9.4-0

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 (77) hide show
  1. package/package.json +5 -1
  2. package/perms.ts +4 -0
  3. package/resources/accounts/accounts.ts +8 -8
  4. package/resources/accounts/oauth2.ts +16 -16
  5. package/resources/calendar/access.ts +32 -32
  6. package/resources/calendar/calendar.ts +48 -48
  7. package/resources/centrum/access.ts +40 -40
  8. package/resources/centrum/dispatches.ts +62 -62
  9. package/resources/centrum/general.ts +8 -8
  10. package/resources/centrum/units.ts +40 -40
  11. package/resources/documents/access.ts +32 -32
  12. package/resources/documents/activity.ts +16 -16
  13. package/resources/documents/category.ts +8 -8
  14. package/resources/documents/comment.ts +16 -16
  15. package/resources/documents/documents.ts +86 -86
  16. package/resources/documents/requests.ts +16 -16
  17. package/resources/documents/templates.ts +32 -32
  18. package/resources/internet/access.ts +358 -0
  19. package/resources/internet/ads.ts +8 -8
  20. package/resources/internet/domain.ts +182 -23
  21. package/resources/internet/page.ts +22 -20
  22. package/resources/internet/search.ts +8 -8
  23. package/resources/jobs/activity.ts +8 -8
  24. package/resources/jobs/conduct.ts +8 -8
  25. package/resources/jobs/labels.ts +8 -8
  26. package/resources/jobs/timeclock.ts +6 -2
  27. package/resources/laws/laws.ts +24 -24
  28. package/resources/livemap/livemap.ts +14 -14
  29. package/resources/mailer/access.ts +56 -56
  30. package/resources/mailer/email.ts +8 -8
  31. package/resources/mailer/events.ts +18 -18
  32. package/resources/mailer/message.ts +24 -24
  33. package/resources/mailer/settings.ts +8 -8
  34. package/resources/mailer/template.ts +16 -16
  35. package/resources/mailer/thread.ts +56 -56
  36. package/resources/notifications/events.ts +39 -2
  37. package/resources/notifications/notifications.ts +20 -20
  38. package/resources/permissions/permissions.ts +64 -64
  39. package/resources/qualifications/access.ts +16 -16
  40. package/resources/qualifications/exam.ts +40 -40
  41. package/resources/qualifications/qualifications.ts +64 -64
  42. package/resources/rector/audit.ts +16 -16
  43. package/resources/sync/activity.ts +92 -14
  44. package/resources/sync/data.ts +142 -10
  45. package/resources/users/activity.ts +992 -36
  46. package/resources/users/job_props.ts +3 -708
  47. package/resources/users/job_settings.ts +721 -0
  48. package/resources/users/labels.ts +8 -8
  49. package/resources/users/licenses.ts +148 -0
  50. package/resources/users/users.ts +1 -136
  51. package/resources/wiki/access.ts +32 -32
  52. package/resources/wiki/activity.ts +16 -16
  53. package/resources/wiki/page.ts +28 -28
  54. package/services/auth/auth.ts +16 -16
  55. package/services/calendar/calendar.ts +55 -55
  56. package/services/centrum/centrum.ts +112 -112
  57. package/services/citizenstore/citizenstore.ts +24 -1
  58. package/services/docstore/docstore.ts +280 -280
  59. package/services/internet/domain.client.ts +126 -0
  60. package/services/internet/domain.ts +695 -0
  61. package/services/internet/internet.ts +3 -3
  62. package/services/jobs/conduct.ts +15 -15
  63. package/services/jobs/jobs.ts +14 -14
  64. package/services/jobs/timeclock.ts +1 -1
  65. package/services/livemapper/livemap.ts +8 -8
  66. package/services/mailer/mailer.ts +159 -159
  67. package/services/notificator/notificator.ts +15 -15
  68. package/services/qualifications/qualifications.ts +108 -108
  69. package/services/rector/laws.ts +16 -16
  70. package/services/rector/rector.ts +63 -63
  71. package/services/sync/sync.client.ts +36 -2
  72. package/services/sync/sync.ts +259 -44
  73. package/services/wiki/wiki.ts +24 -24
  74. package/svcs.ts +13 -0
  75. package/resources/common/access/dummy.ts +0 -309
  76. package/resources/internet/internet.ts +0 -344
  77. package/resources/mailer/user.ts +0 -93
@@ -41,9 +41,9 @@ export interface UserOAuth2Conn {
41
41
  */
42
42
  export interface UserProps {
43
43
  /**
44
- * @generated from protobuf field: string reason = 1;
44
+ * @generated from protobuf field: optional string reason = 1;
45
45
  */
46
- reason: string;
46
+ reason?: string;
47
47
  /**
48
48
  * @generated from protobuf field: resources.users.UserProps props = 2;
49
49
  */
@@ -54,9 +54,9 @@ export interface UserProps {
54
54
  */
55
55
  export interface JobsUserProps {
56
56
  /**
57
- * @generated from protobuf field: string reason = 1;
57
+ * @generated from protobuf field: optional string reason = 1;
58
58
  */
59
- reason: string;
59
+ reason?: string;
60
60
  /**
61
61
  * @generated from protobuf field: resources.jobs.JobsUserProps props = 2;
62
62
  */
@@ -93,6 +93,23 @@ export interface UserUpdate {
93
93
  */
94
94
  lastname?: string;
95
95
  }
96
+ /**
97
+ * @generated from protobuf message resources.sync.TimeclockUpdate
98
+ */
99
+ export interface TimeclockUpdate {
100
+ /**
101
+ * @generated from protobuf field: string job = 1;
102
+ */
103
+ job: string;
104
+ /**
105
+ * @generated from protobuf field: int32 user_id = 2;
106
+ */
107
+ userId: number;
108
+ /**
109
+ * @generated from protobuf field: bool start = 3;
110
+ */
111
+ start: boolean;
112
+ }
96
113
  // @generated message type with reflection information, may provide speed optimized methods
97
114
  class UserOAuth2Conn$Type extends MessageType<UserOAuth2Conn> {
98
115
  constructor() {
@@ -168,13 +185,12 @@ export const UserOAuth2Conn = new UserOAuth2Conn$Type();
168
185
  class UserProps$Type extends MessageType<UserProps> {
169
186
  constructor() {
170
187
  super("resources.sync.UserProps", [
171
- { no: 1, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
188
+ { no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
172
189
  { no: 2, name: "props", kind: "message", T: () => UserProps$, options: { "validate.rules": { message: { required: true } } } }
173
190
  ]);
174
191
  }
175
192
  create(value?: PartialMessage<UserProps>): UserProps {
176
193
  const message = globalThis.Object.create((this.messagePrototype!));
177
- message.reason = "";
178
194
  if (value !== undefined)
179
195
  reflectionMergePartial<UserProps>(this, message, value);
180
196
  return message;
@@ -184,7 +200,7 @@ class UserProps$Type extends MessageType<UserProps> {
184
200
  while (reader.pos < end) {
185
201
  let [fieldNo, wireType] = reader.tag();
186
202
  switch (fieldNo) {
187
- case /* string reason */ 1:
203
+ case /* optional string reason */ 1:
188
204
  message.reason = reader.string();
189
205
  break;
190
206
  case /* resources.users.UserProps props */ 2:
@@ -202,8 +218,8 @@ class UserProps$Type extends MessageType<UserProps> {
202
218
  return message;
203
219
  }
204
220
  internalBinaryWrite(message: UserProps, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
205
- /* string reason = 1; */
206
- if (message.reason !== "")
221
+ /* optional string reason = 1; */
222
+ if (message.reason !== undefined)
207
223
  writer.tag(1, WireType.LengthDelimited).string(message.reason);
208
224
  /* resources.users.UserProps props = 2; */
209
225
  if (message.props)
@@ -222,13 +238,12 @@ export const UserProps = new UserProps$Type();
222
238
  class JobsUserProps$Type extends MessageType<JobsUserProps> {
223
239
  constructor() {
224
240
  super("resources.sync.JobsUserProps", [
225
- { no: 1, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
241
+ { no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
226
242
  { no: 2, name: "props", kind: "message", T: () => JobsUserProps$, options: { "validate.rules": { message: { required: true } } } }
227
243
  ]);
228
244
  }
229
245
  create(value?: PartialMessage<JobsUserProps>): JobsUserProps {
230
246
  const message = globalThis.Object.create((this.messagePrototype!));
231
- message.reason = "";
232
247
  if (value !== undefined)
233
248
  reflectionMergePartial<JobsUserProps>(this, message, value);
234
249
  return message;
@@ -238,7 +253,7 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
238
253
  while (reader.pos < end) {
239
254
  let [fieldNo, wireType] = reader.tag();
240
255
  switch (fieldNo) {
241
- case /* string reason */ 1:
256
+ case /* optional string reason */ 1:
242
257
  message.reason = reader.string();
243
258
  break;
244
259
  case /* resources.jobs.JobsUserProps props */ 2:
@@ -256,8 +271,8 @@ class JobsUserProps$Type extends MessageType<JobsUserProps> {
256
271
  return message;
257
272
  }
258
273
  internalBinaryWrite(message: JobsUserProps, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
259
- /* string reason = 1; */
260
- if (message.reason !== "")
274
+ /* optional string reason = 1; */
275
+ if (message.reason !== undefined)
261
276
  writer.tag(1, WireType.LengthDelimited).string(message.reason);
262
277
  /* resources.jobs.JobsUserProps props = 2; */
263
278
  if (message.props)
@@ -354,3 +369,66 @@ class UserUpdate$Type extends MessageType<UserUpdate> {
354
369
  * @generated MessageType for protobuf message resources.sync.UserUpdate
355
370
  */
356
371
  export const UserUpdate = new UserUpdate$Type();
372
+ // @generated message type with reflection information, may provide speed optimized methods
373
+ class TimeclockUpdate$Type extends MessageType<TimeclockUpdate> {
374
+ constructor() {
375
+ super("resources.sync.TimeclockUpdate", [
376
+ { no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
377
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
378
+ { no: 3, name: "start", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
379
+ ]);
380
+ }
381
+ create(value?: PartialMessage<TimeclockUpdate>): TimeclockUpdate {
382
+ const message = globalThis.Object.create((this.messagePrototype!));
383
+ message.job = "";
384
+ message.userId = 0;
385
+ message.start = false;
386
+ if (value !== undefined)
387
+ reflectionMergePartial<TimeclockUpdate>(this, message, value);
388
+ return message;
389
+ }
390
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimeclockUpdate): TimeclockUpdate {
391
+ let message = target ?? this.create(), end = reader.pos + length;
392
+ while (reader.pos < end) {
393
+ let [fieldNo, wireType] = reader.tag();
394
+ switch (fieldNo) {
395
+ case /* string job */ 1:
396
+ message.job = reader.string();
397
+ break;
398
+ case /* int32 user_id */ 2:
399
+ message.userId = reader.int32();
400
+ break;
401
+ case /* bool start */ 3:
402
+ message.start = reader.bool();
403
+ break;
404
+ default:
405
+ let u = options.readUnknownField;
406
+ if (u === "throw")
407
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
408
+ let d = reader.skip(wireType);
409
+ if (u !== false)
410
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
411
+ }
412
+ }
413
+ return message;
414
+ }
415
+ internalBinaryWrite(message: TimeclockUpdate, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
416
+ /* string job = 1; */
417
+ if (message.job !== "")
418
+ writer.tag(1, WireType.LengthDelimited).string(message.job);
419
+ /* int32 user_id = 2; */
420
+ if (message.userId !== 0)
421
+ writer.tag(2, WireType.Varint).int32(message.userId);
422
+ /* bool start = 3; */
423
+ if (message.start !== false)
424
+ writer.tag(3, WireType.Varint).bool(message.start);
425
+ let u = options.writeUnknownFields;
426
+ if (u !== false)
427
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
428
+ return writer;
429
+ }
430
+ }
431
+ /**
432
+ * @generated MessageType for protobuf message resources.sync.TimeclockUpdate
433
+ */
434
+ export const TimeclockUpdate = new TimeclockUpdate$Type();
@@ -11,7 +11,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
11
11
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
12
  import { MessageType } from "@protobuf-ts/runtime";
13
13
  import { Coords } from "../livemap/livemap";
14
- import { License } from "../users/users";
14
+ import { License } from "../users/licenses";
15
15
  import { Vehicle } from "../vehicles/vehicles";
16
16
  import { User } from "../users/users";
17
17
  import { Job } from "../users/jobs";
@@ -69,9 +69,9 @@ export interface DataUserLocations {
69
69
  */
70
70
  users: UserLocation[];
71
71
  /**
72
- * @generated from protobuf field: optional bool clear = 2;
72
+ * @generated from protobuf field: optional bool clear_all = 2;
73
73
  */
74
- clear?: boolean;
74
+ clearAll?: boolean;
75
75
  }
76
76
  /**
77
77
  * @generated from protobuf message resources.sync.UserLocation
@@ -93,6 +93,28 @@ export interface UserLocation {
93
93
  * @generated from protobuf field: bool hidden = 4;
94
94
  */
95
95
  hidden: boolean;
96
+ /**
97
+ * @generated from protobuf field: bool remove = 5;
98
+ */
99
+ remove: boolean;
100
+ }
101
+ /**
102
+ * @generated from protobuf message resources.sync.DeleteUsers
103
+ */
104
+ export interface DeleteUsers {
105
+ /**
106
+ * @generated from protobuf field: repeated int32 user_ids = 1;
107
+ */
108
+ userIds: number[];
109
+ }
110
+ /**
111
+ * @generated from protobuf message resources.sync.DeleteVehicles
112
+ */
113
+ export interface DeleteVehicles {
114
+ /**
115
+ * @generated from protobuf field: repeated string plates = 1;
116
+ */
117
+ plates: string[];
96
118
  }
97
119
  // @generated message type with reflection information, may provide speed optimized methods
98
120
  class DataStatus$Type extends MessageType<DataStatus> {
@@ -334,7 +356,7 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
334
356
  constructor() {
335
357
  super("resources.sync.DataUserLocations", [
336
358
  { 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*/ }
359
+ { no: 2, name: "clear_all", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
338
360
  ]);
339
361
  }
340
362
  create(value?: PartialMessage<DataUserLocations>): DataUserLocations {
@@ -352,8 +374,8 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
352
374
  case /* repeated resources.sync.UserLocation users */ 1:
353
375
  message.users.push(UserLocation.internalBinaryRead(reader, reader.uint32(), options));
354
376
  break;
355
- case /* optional bool clear */ 2:
356
- message.clear = reader.bool();
377
+ case /* optional bool clear_all */ 2:
378
+ message.clearAll = reader.bool();
357
379
  break;
358
380
  default:
359
381
  let u = options.readUnknownField;
@@ -370,9 +392,9 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
370
392
  /* repeated resources.sync.UserLocation users = 1; */
371
393
  for (let i = 0; i < message.users.length; i++)
372
394
  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);
395
+ /* optional bool clear_all = 2; */
396
+ if (message.clearAll !== undefined)
397
+ writer.tag(2, WireType.Varint).bool(message.clearAll);
376
398
  let u = options.writeUnknownFields;
377
399
  if (u !== false)
378
400
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -390,7 +412,8 @@ class UserLocation$Type extends MessageType<UserLocation> {
390
412
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
391
413
  { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
392
414
  { 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*/ }
415
+ { no: 4, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
416
+ { no: 5, name: "remove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
394
417
  ]);
395
418
  }
396
419
  create(value?: PartialMessage<UserLocation>): UserLocation {
@@ -398,6 +421,7 @@ class UserLocation$Type extends MessageType<UserLocation> {
398
421
  message.identifier = "";
399
422
  message.job = "";
400
423
  message.hidden = false;
424
+ message.remove = false;
401
425
  if (value !== undefined)
402
426
  reflectionMergePartial<UserLocation>(this, message, value);
403
427
  return message;
@@ -419,6 +443,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
419
443
  case /* bool hidden */ 4:
420
444
  message.hidden = reader.bool();
421
445
  break;
446
+ case /* bool remove */ 5:
447
+ message.remove = reader.bool();
448
+ break;
422
449
  default:
423
450
  let u = options.readUnknownField;
424
451
  if (u === "throw")
@@ -443,6 +470,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
443
470
  /* bool hidden = 4; */
444
471
  if (message.hidden !== false)
445
472
  writer.tag(4, WireType.Varint).bool(message.hidden);
473
+ /* bool remove = 5; */
474
+ if (message.remove !== false)
475
+ writer.tag(5, WireType.Varint).bool(message.remove);
446
476
  let u = options.writeUnknownFields;
447
477
  if (u !== false)
448
478
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -453,3 +483,105 @@ class UserLocation$Type extends MessageType<UserLocation> {
453
483
  * @generated MessageType for protobuf message resources.sync.UserLocation
454
484
  */
455
485
  export const UserLocation = new UserLocation$Type();
486
+ // @generated message type with reflection information, may provide speed optimized methods
487
+ class DeleteUsers$Type extends MessageType<DeleteUsers> {
488
+ constructor() {
489
+ super("resources.sync.DeleteUsers", [
490
+ { no: 1, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { repeated: { maxItems: "100" } } } }
491
+ ]);
492
+ }
493
+ create(value?: PartialMessage<DeleteUsers>): DeleteUsers {
494
+ const message = globalThis.Object.create((this.messagePrototype!));
495
+ message.userIds = [];
496
+ if (value !== undefined)
497
+ reflectionMergePartial<DeleteUsers>(this, message, value);
498
+ return message;
499
+ }
500
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteUsers): DeleteUsers {
501
+ let message = target ?? this.create(), end = reader.pos + length;
502
+ while (reader.pos < end) {
503
+ let [fieldNo, wireType] = reader.tag();
504
+ switch (fieldNo) {
505
+ case /* repeated int32 user_ids */ 1:
506
+ if (wireType === WireType.LengthDelimited)
507
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
508
+ message.userIds.push(reader.int32());
509
+ else
510
+ message.userIds.push(reader.int32());
511
+ break;
512
+ default:
513
+ let u = options.readUnknownField;
514
+ if (u === "throw")
515
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
516
+ let d = reader.skip(wireType);
517
+ if (u !== false)
518
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
519
+ }
520
+ }
521
+ return message;
522
+ }
523
+ internalBinaryWrite(message: DeleteUsers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
524
+ /* repeated int32 user_ids = 1; */
525
+ if (message.userIds.length) {
526
+ writer.tag(1, WireType.LengthDelimited).fork();
527
+ for (let i = 0; i < message.userIds.length; i++)
528
+ writer.int32(message.userIds[i]);
529
+ writer.join();
530
+ }
531
+ let u = options.writeUnknownFields;
532
+ if (u !== false)
533
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
534
+ return writer;
535
+ }
536
+ }
537
+ /**
538
+ * @generated MessageType for protobuf message resources.sync.DeleteUsers
539
+ */
540
+ export const DeleteUsers = new DeleteUsers$Type();
541
+ // @generated message type with reflection information, may provide speed optimized methods
542
+ class DeleteVehicles$Type extends MessageType<DeleteVehicles> {
543
+ constructor() {
544
+ super("resources.sync.DeleteVehicles", [
545
+ { no: 1, name: "plates", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "100" } } } }
546
+ ]);
547
+ }
548
+ create(value?: PartialMessage<DeleteVehicles>): DeleteVehicles {
549
+ const message = globalThis.Object.create((this.messagePrototype!));
550
+ message.plates = [];
551
+ if (value !== undefined)
552
+ reflectionMergePartial<DeleteVehicles>(this, message, value);
553
+ return message;
554
+ }
555
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteVehicles): DeleteVehicles {
556
+ let message = target ?? this.create(), end = reader.pos + length;
557
+ while (reader.pos < end) {
558
+ let [fieldNo, wireType] = reader.tag();
559
+ switch (fieldNo) {
560
+ case /* repeated string plates */ 1:
561
+ message.plates.push(reader.string());
562
+ break;
563
+ default:
564
+ let u = options.readUnknownField;
565
+ if (u === "throw")
566
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
567
+ let d = reader.skip(wireType);
568
+ if (u !== false)
569
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
570
+ }
571
+ }
572
+ return message;
573
+ }
574
+ internalBinaryWrite(message: DeleteVehicles, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
575
+ /* repeated string plates = 1; */
576
+ for (let i = 0; i < message.plates.length; i++)
577
+ writer.tag(1, WireType.LengthDelimited).string(message.plates[i]);
578
+ let u = options.writeUnknownFields;
579
+ if (u !== false)
580
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
581
+ return writer;
582
+ }
583
+ }
584
+ /**
585
+ * @generated MessageType for protobuf message resources.sync.DeleteVehicles
586
+ */
587
+ export const DeleteVehicles = new DeleteVehicles$Type();