@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
@@ -35,9 +35,9 @@ export interface ListDispatchActivityRequest {
35
35
  */
36
36
  pagination?: PaginationRequest;
37
37
  /**
38
- * @generated from protobuf field: uint64 id = 2 [jstype = JS_STRING];
38
+ * @generated from protobuf field: uint64 id = 2;
39
39
  */
40
- id: string;
40
+ id: number;
41
41
  }
42
42
  /**
43
43
  * @generated from protobuf message services.centrum.ListUnitActivityRequest
@@ -48,9 +48,9 @@ export interface ListUnitActivityRequest {
48
48
  */
49
49
  pagination?: PaginationRequest;
50
50
  /**
51
- * @generated from protobuf field: uint64 id = 2 [jstype = JS_STRING];
51
+ * @generated from protobuf field: uint64 id = 2;
52
52
  */
53
- id: string;
53
+ id: number;
54
54
  }
55
55
  /**
56
56
  * @generated from protobuf message services.centrum.GetSettingsRequest
@@ -127,9 +127,9 @@ export interface CreateOrUpdateUnitResponse {
127
127
  */
128
128
  export interface DeleteUnitRequest {
129
129
  /**
130
- * @generated from protobuf field: uint64 unit_id = 1 [jstype = JS_STRING];
130
+ * @generated from protobuf field: uint64 unit_id = 1;
131
131
  */
132
- unitId: string;
132
+ unitId: number;
133
133
  }
134
134
  /**
135
135
  * @generated from protobuf message services.centrum.DeleteUnitResponse
@@ -141,9 +141,9 @@ export interface DeleteUnitResponse {
141
141
  */
142
142
  export interface UpdateUnitStatusRequest {
143
143
  /**
144
- * @generated from protobuf field: uint64 unit_id = 1 [jstype = JS_STRING];
144
+ * @generated from protobuf field: uint64 unit_id = 1;
145
145
  */
146
- unitId: string;
146
+ unitId: number;
147
147
  /**
148
148
  * @generated from protobuf field: resources.centrum.StatusUnit status = 2;
149
149
  */
@@ -171,9 +171,9 @@ export interface UpdateUnitStatusResponse {
171
171
  */
172
172
  export interface AssignUnitRequest {
173
173
  /**
174
- * @generated from protobuf field: uint64 unit_id = 1 [jstype = JS_STRING];
174
+ * @generated from protobuf field: uint64 unit_id = 1;
175
175
  */
176
- unitId: string;
176
+ unitId: number;
177
177
  /**
178
178
  * @generated from protobuf field: repeated int32 to_add = 2;
179
179
  */
@@ -234,9 +234,9 @@ export interface ListDispatchesRequest {
234
234
  */
235
235
  notStatus: StatusDispatch[];
236
236
  /**
237
- * @generated from protobuf field: repeated uint64 ids = 4 [jstype = JS_STRING];
237
+ * @generated from protobuf field: repeated uint64 ids = 4;
238
238
  */
239
- ids: string[];
239
+ ids: number[];
240
240
  /**
241
241
  * @generated from protobuf field: optional string postal = 5;
242
242
  */
@@ -260,9 +260,9 @@ export interface ListDispatchesResponse {
260
260
  */
261
261
  export interface GetDispatchRequest {
262
262
  /**
263
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
263
+ * @generated from protobuf field: uint64 id = 1;
264
264
  */
265
- id: string;
265
+ id: number;
266
266
  }
267
267
  /**
268
268
  * @generated from protobuf message services.centrum.GetDispatchResponse
@@ -310,9 +310,9 @@ export interface UpdateDispatchResponse {
310
310
  */
311
311
  export interface DeleteDispatchRequest {
312
312
  /**
313
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
313
+ * @generated from protobuf field: uint64 id = 1;
314
314
  */
315
- id: string;
315
+ id: number;
316
316
  }
317
317
  /**
318
318
  * @generated from protobuf message services.centrum.DeleteDispatchResponse
@@ -324,9 +324,9 @@ export interface DeleteDispatchResponse {
324
324
  */
325
325
  export interface UpdateDispatchStatusRequest {
326
326
  /**
327
- * @generated from protobuf field: uint64 dispatch_id = 1 [jstype = JS_STRING];
327
+ * @generated from protobuf field: uint64 dispatch_id = 1;
328
328
  */
329
- dispatchId: string;
329
+ dispatchId: number;
330
330
  /**
331
331
  * @generated from protobuf field: resources.centrum.StatusDispatch status = 2;
332
332
  */
@@ -354,17 +354,17 @@ export interface UpdateDispatchStatusResponse {
354
354
  */
355
355
  export interface AssignDispatchRequest {
356
356
  /**
357
- * @generated from protobuf field: uint64 dispatch_id = 1 [jstype = JS_STRING];
357
+ * @generated from protobuf field: uint64 dispatch_id = 1;
358
358
  */
359
- dispatchId: string;
359
+ dispatchId: number;
360
360
  /**
361
- * @generated from protobuf field: repeated uint64 to_add = 2 [jstype = JS_STRING];
361
+ * @generated from protobuf field: repeated uint64 to_add = 2;
362
362
  */
363
- toAdd: string[];
363
+ toAdd: number[];
364
364
  /**
365
- * @generated from protobuf field: repeated uint64 to_remove = 3 [jstype = JS_STRING];
365
+ * @generated from protobuf field: repeated uint64 to_remove = 3;
366
366
  */
367
- toRemove: string[];
367
+ toRemove: number[];
368
368
  /**
369
369
  * @generated from protobuf field: optional bool forced = 4;
370
370
  */
@@ -393,9 +393,9 @@ export interface ListDispatchActivityResponse {
393
393
  */
394
394
  export interface JoinUnitRequest {
395
395
  /**
396
- * @generated from protobuf field: optional uint64 unit_id = 1 [jstype = JS_STRING];
396
+ * @generated from protobuf field: optional uint64 unit_id = 1;
397
397
  */
398
- unitId?: string;
398
+ unitId?: number;
399
399
  }
400
400
  /**
401
401
  * @generated from protobuf message services.centrum.JoinUnitResponse
@@ -411,9 +411,9 @@ export interface JoinUnitResponse {
411
411
  */
412
412
  export interface TakeDispatchRequest {
413
413
  /**
414
- * @generated from protobuf field: repeated uint64 dispatch_ids = 1 [jstype = JS_STRING];
414
+ * @generated from protobuf field: repeated uint64 dispatch_ids = 1;
415
415
  */
416
- dispatchIds: string[];
416
+ dispatchIds: number[];
417
417
  /**
418
418
  * @generated from protobuf field: resources.centrum.TakeDispatchResp resp = 2;
419
419
  */
@@ -447,9 +447,9 @@ export interface LatestState {
447
447
  */
448
448
  disponents: Colleague[];
449
449
  /**
450
- * @generated from protobuf field: optional uint64 own_unit_id = 4 [jstype = JS_STRING];
450
+ * @generated from protobuf field: optional uint64 own_unit_id = 4;
451
451
  */
452
- ownUnitId?: string;
452
+ ownUnitId?: number;
453
453
  /**
454
454
  * Send the current units and dispatches
455
455
  *
@@ -548,12 +548,12 @@ class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityR
548
548
  constructor() {
549
549
  super("services.centrum.ListDispatchActivityRequest", [
550
550
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
551
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
551
+ { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
552
552
  ]);
553
553
  }
554
554
  create(value?: PartialMessage<ListDispatchActivityRequest>): ListDispatchActivityRequest {
555
555
  const message = globalThis.Object.create((this.messagePrototype!));
556
- message.id = "0";
556
+ message.id = 0;
557
557
  if (value !== undefined)
558
558
  reflectionMergePartial<ListDispatchActivityRequest>(this, message, value);
559
559
  return message;
@@ -566,8 +566,8 @@ class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityR
566
566
  case /* resources.common.database.PaginationRequest pagination */ 1:
567
567
  message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
568
568
  break;
569
- case /* uint64 id = 2 [jstype = JS_STRING];*/ 2:
570
- message.id = reader.uint64().toString();
569
+ case /* uint64 id */ 2:
570
+ message.id = reader.uint64().toNumber();
571
571
  break;
572
572
  default:
573
573
  let u = options.readUnknownField;
@@ -584,8 +584,8 @@ class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityR
584
584
  /* resources.common.database.PaginationRequest pagination = 1; */
585
585
  if (message.pagination)
586
586
  PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
587
- /* uint64 id = 2 [jstype = JS_STRING]; */
588
- if (message.id !== "0")
587
+ /* uint64 id = 2; */
588
+ if (message.id !== 0)
589
589
  writer.tag(2, WireType.Varint).uint64(message.id);
590
590
  let u = options.writeUnknownFields;
591
591
  if (u !== false)
@@ -602,12 +602,12 @@ class ListUnitActivityRequest$Type extends MessageType<ListUnitActivityRequest>
602
602
  constructor() {
603
603
  super("services.centrum.ListUnitActivityRequest", [
604
604
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
605
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
605
+ { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
606
606
  ]);
607
607
  }
608
608
  create(value?: PartialMessage<ListUnitActivityRequest>): ListUnitActivityRequest {
609
609
  const message = globalThis.Object.create((this.messagePrototype!));
610
- message.id = "0";
610
+ message.id = 0;
611
611
  if (value !== undefined)
612
612
  reflectionMergePartial<ListUnitActivityRequest>(this, message, value);
613
613
  return message;
@@ -620,8 +620,8 @@ class ListUnitActivityRequest$Type extends MessageType<ListUnitActivityRequest>
620
620
  case /* resources.common.database.PaginationRequest pagination */ 1:
621
621
  message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
622
622
  break;
623
- case /* uint64 id = 2 [jstype = JS_STRING];*/ 2:
624
- message.id = reader.uint64().toString();
623
+ case /* uint64 id */ 2:
624
+ message.id = reader.uint64().toNumber();
625
625
  break;
626
626
  default:
627
627
  let u = options.readUnknownField;
@@ -638,8 +638,8 @@ class ListUnitActivityRequest$Type extends MessageType<ListUnitActivityRequest>
638
638
  /* resources.common.database.PaginationRequest pagination = 1; */
639
639
  if (message.pagination)
640
640
  PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
641
- /* uint64 id = 2 [jstype = JS_STRING]; */
642
- if (message.id !== "0")
641
+ /* uint64 id = 2; */
642
+ if (message.id !== 0)
643
643
  writer.tag(2, WireType.Varint).uint64(message.id);
644
644
  let u = options.writeUnknownFields;
645
645
  if (u !== false)
@@ -1012,12 +1012,12 @@ export const CreateOrUpdateUnitResponse = new CreateOrUpdateUnitResponse$Type();
1012
1012
  class DeleteUnitRequest$Type extends MessageType<DeleteUnitRequest> {
1013
1013
  constructor() {
1014
1014
  super("services.centrum.DeleteUnitRequest", [
1015
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
1015
+ { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
1016
1016
  ]);
1017
1017
  }
1018
1018
  create(value?: PartialMessage<DeleteUnitRequest>): DeleteUnitRequest {
1019
1019
  const message = globalThis.Object.create((this.messagePrototype!));
1020
- message.unitId = "0";
1020
+ message.unitId = 0;
1021
1021
  if (value !== undefined)
1022
1022
  reflectionMergePartial<DeleteUnitRequest>(this, message, value);
1023
1023
  return message;
@@ -1027,8 +1027,8 @@ class DeleteUnitRequest$Type extends MessageType<DeleteUnitRequest> {
1027
1027
  while (reader.pos < end) {
1028
1028
  let [fieldNo, wireType] = reader.tag();
1029
1029
  switch (fieldNo) {
1030
- case /* uint64 unit_id = 1 [jstype = JS_STRING];*/ 1:
1031
- message.unitId = reader.uint64().toString();
1030
+ case /* uint64 unit_id */ 1:
1031
+ message.unitId = reader.uint64().toNumber();
1032
1032
  break;
1033
1033
  default:
1034
1034
  let u = options.readUnknownField;
@@ -1042,8 +1042,8 @@ class DeleteUnitRequest$Type extends MessageType<DeleteUnitRequest> {
1042
1042
  return message;
1043
1043
  }
1044
1044
  internalBinaryWrite(message: DeleteUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1045
- /* uint64 unit_id = 1 [jstype = JS_STRING]; */
1046
- if (message.unitId !== "0")
1045
+ /* uint64 unit_id = 1; */
1046
+ if (message.unitId !== 0)
1047
1047
  writer.tag(1, WireType.Varint).uint64(message.unitId);
1048
1048
  let u = options.writeUnknownFields;
1049
1049
  if (u !== false)
@@ -1084,7 +1084,7 @@ export const DeleteUnitResponse = new DeleteUnitResponse$Type();
1084
1084
  class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest> {
1085
1085
  constructor() {
1086
1086
  super("services.centrum.UpdateUnitStatusRequest", [
1087
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1087
+ { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1088
1088
  { no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
1089
1089
  { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
1090
1090
  { no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
@@ -1092,7 +1092,7 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
1092
1092
  }
1093
1093
  create(value?: PartialMessage<UpdateUnitStatusRequest>): UpdateUnitStatusRequest {
1094
1094
  const message = globalThis.Object.create((this.messagePrototype!));
1095
- message.unitId = "0";
1095
+ message.unitId = 0;
1096
1096
  message.status = 0;
1097
1097
  if (value !== undefined)
1098
1098
  reflectionMergePartial<UpdateUnitStatusRequest>(this, message, value);
@@ -1103,8 +1103,8 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
1103
1103
  while (reader.pos < end) {
1104
1104
  let [fieldNo, wireType] = reader.tag();
1105
1105
  switch (fieldNo) {
1106
- case /* uint64 unit_id = 1 [jstype = JS_STRING];*/ 1:
1107
- message.unitId = reader.uint64().toString();
1106
+ case /* uint64 unit_id */ 1:
1107
+ message.unitId = reader.uint64().toNumber();
1108
1108
  break;
1109
1109
  case /* resources.centrum.StatusUnit status */ 2:
1110
1110
  message.status = reader.int32();
@@ -1127,8 +1127,8 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
1127
1127
  return message;
1128
1128
  }
1129
1129
  internalBinaryWrite(message: UpdateUnitStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1130
- /* uint64 unit_id = 1 [jstype = JS_STRING]; */
1131
- if (message.unitId !== "0")
1130
+ /* uint64 unit_id = 1; */
1131
+ if (message.unitId !== 0)
1132
1132
  writer.tag(1, WireType.Varint).uint64(message.unitId);
1133
1133
  /* resources.centrum.StatusUnit status = 2; */
1134
1134
  if (message.status !== 0)
@@ -1178,14 +1178,14 @@ export const UpdateUnitStatusResponse = new UpdateUnitStatusResponse$Type();
1178
1178
  class AssignUnitRequest$Type extends MessageType<AssignUnitRequest> {
1179
1179
  constructor() {
1180
1180
  super("services.centrum.AssignUnitRequest", [
1181
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1181
+ { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1182
1182
  { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
1183
1183
  { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }
1184
1184
  ]);
1185
1185
  }
1186
1186
  create(value?: PartialMessage<AssignUnitRequest>): AssignUnitRequest {
1187
1187
  const message = globalThis.Object.create((this.messagePrototype!));
1188
- message.unitId = "0";
1188
+ message.unitId = 0;
1189
1189
  message.toAdd = [];
1190
1190
  message.toRemove = [];
1191
1191
  if (value !== undefined)
@@ -1197,8 +1197,8 @@ class AssignUnitRequest$Type extends MessageType<AssignUnitRequest> {
1197
1197
  while (reader.pos < end) {
1198
1198
  let [fieldNo, wireType] = reader.tag();
1199
1199
  switch (fieldNo) {
1200
- case /* uint64 unit_id = 1 [jstype = JS_STRING];*/ 1:
1201
- message.unitId = reader.uint64().toString();
1200
+ case /* uint64 unit_id */ 1:
1201
+ message.unitId = reader.uint64().toNumber();
1202
1202
  break;
1203
1203
  case /* repeated int32 to_add */ 2:
1204
1204
  if (wireType === WireType.LengthDelimited)
@@ -1226,8 +1226,8 @@ class AssignUnitRequest$Type extends MessageType<AssignUnitRequest> {
1226
1226
  return message;
1227
1227
  }
1228
1228
  internalBinaryWrite(message: AssignUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1229
- /* uint64 unit_id = 1 [jstype = JS_STRING]; */
1230
- if (message.unitId !== "0")
1229
+ /* uint64 unit_id = 1; */
1230
+ if (message.unitId !== 0)
1231
1231
  writer.tag(1, WireType.Varint).uint64(message.unitId);
1232
1232
  /* repeated int32 to_add = 2; */
1233
1233
  if (message.toAdd.length) {
@@ -1411,7 +1411,7 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
1411
1411
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
1412
1412
  { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } },
1413
1413
  { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { repeated: { items: { enum: { definedOnly: true } } } } } },
1414
- { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, options: { "validate.rules": { repeated: { maxItems: "10" } } } },
1414
+ { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { repeated: { maxItems: "10" } } } },
1415
1415
  { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } }
1416
1416
  ]);
1417
1417
  }
@@ -1446,12 +1446,12 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
1446
1446
  else
1447
1447
  message.notStatus.push(reader.int32());
1448
1448
  break;
1449
- case /* repeated uint64 ids = 4 [jstype = JS_STRING];*/ 4:
1449
+ case /* repeated uint64 ids */ 4:
1450
1450
  if (wireType === WireType.LengthDelimited)
1451
1451
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
1452
- message.ids.push(reader.uint64().toString());
1452
+ message.ids.push(reader.uint64().toNumber());
1453
1453
  else
1454
- message.ids.push(reader.uint64().toString());
1454
+ message.ids.push(reader.uint64().toNumber());
1455
1455
  break;
1456
1456
  case /* optional string postal */ 5:
1457
1457
  message.postal = reader.string();
@@ -1485,7 +1485,7 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
1485
1485
  writer.int32(message.notStatus[i]);
1486
1486
  writer.join();
1487
1487
  }
1488
- /* repeated uint64 ids = 4 [jstype = JS_STRING]; */
1488
+ /* repeated uint64 ids = 4; */
1489
1489
  if (message.ids.length) {
1490
1490
  writer.tag(4, WireType.LengthDelimited).fork();
1491
1491
  for (let i = 0; i < message.ids.length; i++)
@@ -1563,12 +1563,12 @@ export const ListDispatchesResponse = new ListDispatchesResponse$Type();
1563
1563
  class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
1564
1564
  constructor() {
1565
1565
  super("services.centrum.GetDispatchRequest", [
1566
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, options: { "validate.rules": { uint64: { gt: "0" } } } }
1566
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { uint64: { gt: "0" } } } }
1567
1567
  ]);
1568
1568
  }
1569
1569
  create(value?: PartialMessage<GetDispatchRequest>): GetDispatchRequest {
1570
1570
  const message = globalThis.Object.create((this.messagePrototype!));
1571
- message.id = "0";
1571
+ message.id = 0;
1572
1572
  if (value !== undefined)
1573
1573
  reflectionMergePartial<GetDispatchRequest>(this, message, value);
1574
1574
  return message;
@@ -1578,8 +1578,8 @@ class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
1578
1578
  while (reader.pos < end) {
1579
1579
  let [fieldNo, wireType] = reader.tag();
1580
1580
  switch (fieldNo) {
1581
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
1582
- message.id = reader.uint64().toString();
1581
+ case /* uint64 id */ 1:
1582
+ message.id = reader.uint64().toNumber();
1583
1583
  break;
1584
1584
  default:
1585
1585
  let u = options.readUnknownField;
@@ -1593,8 +1593,8 @@ class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
1593
1593
  return message;
1594
1594
  }
1595
1595
  internalBinaryWrite(message: GetDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1596
- /* uint64 id = 1 [jstype = JS_STRING]; */
1597
- if (message.id !== "0")
1596
+ /* uint64 id = 1; */
1597
+ if (message.id !== 0)
1598
1598
  writer.tag(1, WireType.Varint).uint64(message.id);
1599
1599
  let u = options.writeUnknownFields;
1600
1600
  if (u !== false)
@@ -1819,12 +1819,12 @@ export const UpdateDispatchResponse = new UpdateDispatchResponse$Type();
1819
1819
  class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
1820
1820
  constructor() {
1821
1821
  super("services.centrum.DeleteDispatchRequest", [
1822
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, options: { "validate.rules": { uint64: { gt: "0" } } } }
1822
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { uint64: { gt: "0" } } } }
1823
1823
  ]);
1824
1824
  }
1825
1825
  create(value?: PartialMessage<DeleteDispatchRequest>): DeleteDispatchRequest {
1826
1826
  const message = globalThis.Object.create((this.messagePrototype!));
1827
- message.id = "0";
1827
+ message.id = 0;
1828
1828
  if (value !== undefined)
1829
1829
  reflectionMergePartial<DeleteDispatchRequest>(this, message, value);
1830
1830
  return message;
@@ -1834,8 +1834,8 @@ class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
1834
1834
  while (reader.pos < end) {
1835
1835
  let [fieldNo, wireType] = reader.tag();
1836
1836
  switch (fieldNo) {
1837
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
1838
- message.id = reader.uint64().toString();
1837
+ case /* uint64 id */ 1:
1838
+ message.id = reader.uint64().toNumber();
1839
1839
  break;
1840
1840
  default:
1841
1841
  let u = options.readUnknownField;
@@ -1849,8 +1849,8 @@ class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
1849
1849
  return message;
1850
1850
  }
1851
1851
  internalBinaryWrite(message: DeleteDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1852
- /* uint64 id = 1 [jstype = JS_STRING]; */
1853
- if (message.id !== "0")
1852
+ /* uint64 id = 1; */
1853
+ if (message.id !== 0)
1854
1854
  writer.tag(1, WireType.Varint).uint64(message.id);
1855
1855
  let u = options.writeUnknownFields;
1856
1856
  if (u !== false)
@@ -1891,7 +1891,7 @@ export const DeleteDispatchResponse = new DeleteDispatchResponse$Type();
1891
1891
  class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusRequest> {
1892
1892
  constructor() {
1893
1893
  super("services.centrum.UpdateDispatchStatusRequest", [
1894
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1894
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1895
1895
  { no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
1896
1896
  { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
1897
1897
  { no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
@@ -1899,7 +1899,7 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
1899
1899
  }
1900
1900
  create(value?: PartialMessage<UpdateDispatchStatusRequest>): UpdateDispatchStatusRequest {
1901
1901
  const message = globalThis.Object.create((this.messagePrototype!));
1902
- message.dispatchId = "0";
1902
+ message.dispatchId = 0;
1903
1903
  message.status = 0;
1904
1904
  if (value !== undefined)
1905
1905
  reflectionMergePartial<UpdateDispatchStatusRequest>(this, message, value);
@@ -1910,8 +1910,8 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
1910
1910
  while (reader.pos < end) {
1911
1911
  let [fieldNo, wireType] = reader.tag();
1912
1912
  switch (fieldNo) {
1913
- case /* uint64 dispatch_id = 1 [jstype = JS_STRING];*/ 1:
1914
- message.dispatchId = reader.uint64().toString();
1913
+ case /* uint64 dispatch_id */ 1:
1914
+ message.dispatchId = reader.uint64().toNumber();
1915
1915
  break;
1916
1916
  case /* resources.centrum.StatusDispatch status */ 2:
1917
1917
  message.status = reader.int32();
@@ -1934,8 +1934,8 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
1934
1934
  return message;
1935
1935
  }
1936
1936
  internalBinaryWrite(message: UpdateDispatchStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1937
- /* uint64 dispatch_id = 1 [jstype = JS_STRING]; */
1938
- if (message.dispatchId !== "0")
1937
+ /* uint64 dispatch_id = 1; */
1938
+ if (message.dispatchId !== 0)
1939
1939
  writer.tag(1, WireType.Varint).uint64(message.dispatchId);
1940
1940
  /* resources.centrum.StatusDispatch status = 2; */
1941
1941
  if (message.status !== 0)
@@ -1985,15 +1985,15 @@ export const UpdateDispatchStatusResponse = new UpdateDispatchStatusResponse$Typ
1985
1985
  class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
1986
1986
  constructor() {
1987
1987
  super("services.centrum.AssignDispatchRequest", [
1988
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1989
- { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/ },
1990
- { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/ },
1988
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1989
+ { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1990
+ { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1991
1991
  { no: 4, name: "forced", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
1992
1992
  ]);
1993
1993
  }
1994
1994
  create(value?: PartialMessage<AssignDispatchRequest>): AssignDispatchRequest {
1995
1995
  const message = globalThis.Object.create((this.messagePrototype!));
1996
- message.dispatchId = "0";
1996
+ message.dispatchId = 0;
1997
1997
  message.toAdd = [];
1998
1998
  message.toRemove = [];
1999
1999
  if (value !== undefined)
@@ -2005,22 +2005,22 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
2005
2005
  while (reader.pos < end) {
2006
2006
  let [fieldNo, wireType] = reader.tag();
2007
2007
  switch (fieldNo) {
2008
- case /* uint64 dispatch_id = 1 [jstype = JS_STRING];*/ 1:
2009
- message.dispatchId = reader.uint64().toString();
2008
+ case /* uint64 dispatch_id */ 1:
2009
+ message.dispatchId = reader.uint64().toNumber();
2010
2010
  break;
2011
- case /* repeated uint64 to_add = 2 [jstype = JS_STRING];*/ 2:
2011
+ case /* repeated uint64 to_add */ 2:
2012
2012
  if (wireType === WireType.LengthDelimited)
2013
2013
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
2014
- message.toAdd.push(reader.uint64().toString());
2014
+ message.toAdd.push(reader.uint64().toNumber());
2015
2015
  else
2016
- message.toAdd.push(reader.uint64().toString());
2016
+ message.toAdd.push(reader.uint64().toNumber());
2017
2017
  break;
2018
- case /* repeated uint64 to_remove = 3 [jstype = JS_STRING];*/ 3:
2018
+ case /* repeated uint64 to_remove */ 3:
2019
2019
  if (wireType === WireType.LengthDelimited)
2020
2020
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
2021
- message.toRemove.push(reader.uint64().toString());
2021
+ message.toRemove.push(reader.uint64().toNumber());
2022
2022
  else
2023
- message.toRemove.push(reader.uint64().toString());
2023
+ message.toRemove.push(reader.uint64().toNumber());
2024
2024
  break;
2025
2025
  case /* optional bool forced */ 4:
2026
2026
  message.forced = reader.bool();
@@ -2037,17 +2037,17 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
2037
2037
  return message;
2038
2038
  }
2039
2039
  internalBinaryWrite(message: AssignDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2040
- /* uint64 dispatch_id = 1 [jstype = JS_STRING]; */
2041
- if (message.dispatchId !== "0")
2040
+ /* uint64 dispatch_id = 1; */
2041
+ if (message.dispatchId !== 0)
2042
2042
  writer.tag(1, WireType.Varint).uint64(message.dispatchId);
2043
- /* repeated uint64 to_add = 2 [jstype = JS_STRING]; */
2043
+ /* repeated uint64 to_add = 2; */
2044
2044
  if (message.toAdd.length) {
2045
2045
  writer.tag(2, WireType.LengthDelimited).fork();
2046
2046
  for (let i = 0; i < message.toAdd.length; i++)
2047
2047
  writer.uint64(message.toAdd[i]);
2048
2048
  writer.join();
2049
2049
  }
2050
- /* repeated uint64 to_remove = 3 [jstype = JS_STRING]; */
2050
+ /* repeated uint64 to_remove = 3; */
2051
2051
  if (message.toRemove.length) {
2052
2052
  writer.tag(3, WireType.LengthDelimited).fork();
2053
2053
  for (let i = 0; i < message.toRemove.length; i++)
@@ -2150,7 +2150,7 @@ export const ListDispatchActivityResponse = new ListDispatchActivityResponse$Typ
2150
2150
  class JoinUnitRequest$Type extends MessageType<JoinUnitRequest> {
2151
2151
  constructor() {
2152
2152
  super("services.centrum.JoinUnitRequest", [
2153
- { no: 1, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ }
2153
+ { no: 1, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
2154
2154
  ]);
2155
2155
  }
2156
2156
  create(value?: PartialMessage<JoinUnitRequest>): JoinUnitRequest {
@@ -2164,8 +2164,8 @@ class JoinUnitRequest$Type extends MessageType<JoinUnitRequest> {
2164
2164
  while (reader.pos < end) {
2165
2165
  let [fieldNo, wireType] = reader.tag();
2166
2166
  switch (fieldNo) {
2167
- case /* optional uint64 unit_id = 1 [jstype = JS_STRING];*/ 1:
2168
- message.unitId = reader.uint64().toString();
2167
+ case /* optional uint64 unit_id */ 1:
2168
+ message.unitId = reader.uint64().toNumber();
2169
2169
  break;
2170
2170
  default:
2171
2171
  let u = options.readUnknownField;
@@ -2179,7 +2179,7 @@ class JoinUnitRequest$Type extends MessageType<JoinUnitRequest> {
2179
2179
  return message;
2180
2180
  }
2181
2181
  internalBinaryWrite(message: JoinUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2182
- /* optional uint64 unit_id = 1 [jstype = JS_STRING]; */
2182
+ /* optional uint64 unit_id = 1; */
2183
2183
  if (message.unitId !== undefined)
2184
2184
  writer.tag(1, WireType.Varint).uint64(message.unitId);
2185
2185
  let u = options.writeUnknownFields;
@@ -2242,7 +2242,7 @@ export const JoinUnitResponse = new JoinUnitResponse$Type();
2242
2242
  class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
2243
2243
  constructor() {
2244
2244
  super("services.centrum.TakeDispatchRequest", [
2245
- { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, options: { "validate.rules": { repeated: { minItems: "1" } } } },
2245
+ { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/, options: { "validate.rules": { repeated: { minItems: "1" } } } },
2246
2246
  { no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
2247
2247
  { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } }
2248
2248
  ]);
@@ -2260,12 +2260,12 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
2260
2260
  while (reader.pos < end) {
2261
2261
  let [fieldNo, wireType] = reader.tag();
2262
2262
  switch (fieldNo) {
2263
- case /* repeated uint64 dispatch_ids = 1 [jstype = JS_STRING];*/ 1:
2263
+ case /* repeated uint64 dispatch_ids */ 1:
2264
2264
  if (wireType === WireType.LengthDelimited)
2265
2265
  for (let e = reader.int32() + reader.pos; reader.pos < e;)
2266
- message.dispatchIds.push(reader.uint64().toString());
2266
+ message.dispatchIds.push(reader.uint64().toNumber());
2267
2267
  else
2268
- message.dispatchIds.push(reader.uint64().toString());
2268
+ message.dispatchIds.push(reader.uint64().toNumber());
2269
2269
  break;
2270
2270
  case /* resources.centrum.TakeDispatchResp resp */ 2:
2271
2271
  message.resp = reader.int32();
@@ -2285,7 +2285,7 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
2285
2285
  return message;
2286
2286
  }
2287
2287
  internalBinaryWrite(message: TakeDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2288
- /* repeated uint64 dispatch_ids = 1 [jstype = JS_STRING]; */
2288
+ /* repeated uint64 dispatch_ids = 1; */
2289
2289
  if (message.dispatchIds.length) {
2290
2290
  writer.tag(1, WireType.LengthDelimited).fork();
2291
2291
  for (let i = 0; i < message.dispatchIds.length; i++)
@@ -2340,7 +2340,7 @@ class LatestState$Type extends MessageType<LatestState> {
2340
2340
  { no: 1, name: "server_time", kind: "message", T: () => Timestamp },
2341
2341
  { no: 2, name: "settings", kind: "message", T: () => Settings },
2342
2342
  { no: 3, name: "disponents", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Colleague },
2343
- { no: 4, name: "own_unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
2343
+ { no: 4, name: "own_unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
2344
2344
  { no: 5, name: "units", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Unit },
2345
2345
  { no: 6, name: "dispatches", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Dispatch }
2346
2346
  ]);
@@ -2368,8 +2368,8 @@ class LatestState$Type extends MessageType<LatestState> {
2368
2368
  case /* repeated resources.jobs.Colleague disponents */ 3:
2369
2369
  message.disponents.push(Colleague.internalBinaryRead(reader, reader.uint32(), options));
2370
2370
  break;
2371
- case /* optional uint64 own_unit_id = 4 [jstype = JS_STRING];*/ 4:
2372
- message.ownUnitId = reader.uint64().toString();
2371
+ case /* optional uint64 own_unit_id */ 4:
2372
+ message.ownUnitId = reader.uint64().toNumber();
2373
2373
  break;
2374
2374
  case /* repeated resources.centrum.Unit units */ 5:
2375
2375
  message.units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
@@ -2398,7 +2398,7 @@ class LatestState$Type extends MessageType<LatestState> {
2398
2398
  /* repeated resources.jobs.Colleague disponents = 3; */
2399
2399
  for (let i = 0; i < message.disponents.length; i++)
2400
2400
  Colleague.internalBinaryWrite(message.disponents[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2401
- /* optional uint64 own_unit_id = 4 [jstype = JS_STRING]; */
2401
+ /* optional uint64 own_unit_id = 4; */
2402
2402
  if (message.ownUnitId !== undefined)
2403
2403
  writer.tag(4, WireType.Varint).uint64(message.ownUnitId);
2404
2404
  /* repeated resources.centrum.Unit units = 5; */