@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
@@ -28,13 +28,13 @@ export interface ExamQuestions {
28
28
  */
29
29
  export interface ExamQuestion {
30
30
  /**
31
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
31
+ * @generated from protobuf field: uint64 id = 1;
32
32
  */
33
- id: string;
33
+ id: number;
34
34
  /**
35
- * @generated from protobuf field: uint64 qualification_id = 2 [jstype = JS_STRING];
35
+ * @generated from protobuf field: uint64 qualification_id = 2;
36
36
  */
37
- qualificationId: string;
37
+ qualificationId: number;
38
38
  /**
39
39
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 3;
40
40
  */
@@ -193,9 +193,9 @@ export interface ExamQuestionAnswerData {
193
193
  */
194
194
  export interface ExamUser {
195
195
  /**
196
- * @generated from protobuf field: uint64 qualification_id = 1 [jstype = JS_STRING];
196
+ * @generated from protobuf field: uint64 qualification_id = 1;
197
197
  */
198
- qualificationId: string;
198
+ qualificationId: number;
199
199
  /**
200
200
  * @generated from protobuf field: int32 user_id = 2;
201
201
  */
@@ -222,9 +222,9 @@ export interface ExamUser {
222
222
  */
223
223
  export interface ExamResponses {
224
224
  /**
225
- * @generated from protobuf field: uint64 qualification_id = 1 [jstype = JS_STRING];
225
+ * @generated from protobuf field: uint64 qualification_id = 1;
226
226
  */
227
- qualificationId: string;
227
+ qualificationId: number;
228
228
  /**
229
229
  * @generated from protobuf field: int32 user_id = 2;
230
230
  */
@@ -239,9 +239,9 @@ export interface ExamResponses {
239
239
  */
240
240
  export interface ExamResponse {
241
241
  /**
242
- * @generated from protobuf field: uint64 question_id = 1 [jstype = JS_STRING];
242
+ * @generated from protobuf field: uint64 question_id = 1;
243
243
  */
244
- questionId: string;
244
+ questionId: number;
245
245
  /**
246
246
  * @generated from protobuf field: int32 user_id = 2;
247
247
  */
@@ -394,8 +394,8 @@ export const ExamQuestions = new ExamQuestions$Type();
394
394
  class ExamQuestion$Type extends MessageType<ExamQuestion> {
395
395
  constructor() {
396
396
  super("resources.qualifications.ExamQuestion", [
397
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
398
- { no: 2, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
397
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
398
+ { no: 2, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
399
399
  { no: 3, name: "created_at", kind: "message", T: () => Timestamp },
400
400
  { no: 4, name: "updated_at", kind: "message", T: () => Timestamp },
401
401
  { no: 5, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
@@ -407,8 +407,8 @@ class ExamQuestion$Type extends MessageType<ExamQuestion> {
407
407
  }
408
408
  create(value?: PartialMessage<ExamQuestion>): ExamQuestion {
409
409
  const message = globalThis.Object.create((this.messagePrototype!));
410
- message.id = "0";
411
- message.qualificationId = "0";
410
+ message.id = 0;
411
+ message.qualificationId = 0;
412
412
  message.title = "";
413
413
  if (value !== undefined)
414
414
  reflectionMergePartial<ExamQuestion>(this, message, value);
@@ -419,11 +419,11 @@ class ExamQuestion$Type extends MessageType<ExamQuestion> {
419
419
  while (reader.pos < end) {
420
420
  let [fieldNo, wireType] = reader.tag();
421
421
  switch (fieldNo) {
422
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
423
- message.id = reader.uint64().toString();
422
+ case /* uint64 id */ 1:
423
+ message.id = reader.uint64().toNumber();
424
424
  break;
425
- case /* uint64 qualification_id = 2 [jstype = JS_STRING];*/ 2:
426
- message.qualificationId = reader.uint64().toString();
425
+ case /* uint64 qualification_id */ 2:
426
+ message.qualificationId = reader.uint64().toNumber();
427
427
  break;
428
428
  case /* optional resources.timestamp.Timestamp created_at */ 3:
429
429
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -458,11 +458,11 @@ class ExamQuestion$Type extends MessageType<ExamQuestion> {
458
458
  return message;
459
459
  }
460
460
  internalBinaryWrite(message: ExamQuestion, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
461
- /* uint64 id = 1 [jstype = JS_STRING]; */
462
- if (message.id !== "0")
461
+ /* uint64 id = 1; */
462
+ if (message.id !== 0)
463
463
  writer.tag(1, WireType.Varint).uint64(message.id);
464
- /* uint64 qualification_id = 2 [jstype = JS_STRING]; */
465
- if (message.qualificationId !== "0")
464
+ /* uint64 qualification_id = 2; */
465
+ if (message.qualificationId !== 0)
466
466
  writer.tag(2, WireType.Varint).uint64(message.qualificationId);
467
467
  /* optional resources.timestamp.Timestamp created_at = 3; */
468
468
  if (message.createdAt)
@@ -905,7 +905,7 @@ export const ExamQuestionAnswerData = new ExamQuestionAnswerData$Type();
905
905
  class ExamUser$Type extends MessageType<ExamUser> {
906
906
  constructor() {
907
907
  super("resources.qualifications.ExamUser", [
908
- { no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
908
+ { no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
909
909
  { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
910
910
  { no: 3, name: "created_at", kind: "message", T: () => Timestamp },
911
911
  { no: 4, name: "started_at", kind: "message", T: () => Timestamp },
@@ -915,7 +915,7 @@ class ExamUser$Type extends MessageType<ExamUser> {
915
915
  }
916
916
  create(value?: PartialMessage<ExamUser>): ExamUser {
917
917
  const message = globalThis.Object.create((this.messagePrototype!));
918
- message.qualificationId = "0";
918
+ message.qualificationId = 0;
919
919
  message.userId = 0;
920
920
  if (value !== undefined)
921
921
  reflectionMergePartial<ExamUser>(this, message, value);
@@ -926,8 +926,8 @@ class ExamUser$Type extends MessageType<ExamUser> {
926
926
  while (reader.pos < end) {
927
927
  let [fieldNo, wireType] = reader.tag();
928
928
  switch (fieldNo) {
929
- case /* uint64 qualification_id = 1 [jstype = JS_STRING];*/ 1:
930
- message.qualificationId = reader.uint64().toString();
929
+ case /* uint64 qualification_id */ 1:
930
+ message.qualificationId = reader.uint64().toNumber();
931
931
  break;
932
932
  case /* int32 user_id */ 2:
933
933
  message.userId = reader.int32();
@@ -956,8 +956,8 @@ class ExamUser$Type extends MessageType<ExamUser> {
956
956
  return message;
957
957
  }
958
958
  internalBinaryWrite(message: ExamUser, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
959
- /* uint64 qualification_id = 1 [jstype = JS_STRING]; */
960
- if (message.qualificationId !== "0")
959
+ /* uint64 qualification_id = 1; */
960
+ if (message.qualificationId !== 0)
961
961
  writer.tag(1, WireType.Varint).uint64(message.qualificationId);
962
962
  /* int32 user_id = 2; */
963
963
  if (message.userId !== 0)
@@ -988,14 +988,14 @@ export const ExamUser = new ExamUser$Type();
988
988
  class ExamResponses$Type extends MessageType<ExamResponses> {
989
989
  constructor() {
990
990
  super("resources.qualifications.ExamResponses", [
991
- { no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
991
+ { no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
992
992
  { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
993
993
  { no: 3, name: "responses", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ExamResponse, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
994
994
  ]);
995
995
  }
996
996
  create(value?: PartialMessage<ExamResponses>): ExamResponses {
997
997
  const message = globalThis.Object.create((this.messagePrototype!));
998
- message.qualificationId = "0";
998
+ message.qualificationId = 0;
999
999
  message.userId = 0;
1000
1000
  message.responses = [];
1001
1001
  if (value !== undefined)
@@ -1007,8 +1007,8 @@ class ExamResponses$Type extends MessageType<ExamResponses> {
1007
1007
  while (reader.pos < end) {
1008
1008
  let [fieldNo, wireType] = reader.tag();
1009
1009
  switch (fieldNo) {
1010
- case /* uint64 qualification_id = 1 [jstype = JS_STRING];*/ 1:
1011
- message.qualificationId = reader.uint64().toString();
1010
+ case /* uint64 qualification_id */ 1:
1011
+ message.qualificationId = reader.uint64().toNumber();
1012
1012
  break;
1013
1013
  case /* int32 user_id */ 2:
1014
1014
  message.userId = reader.int32();
@@ -1028,8 +1028,8 @@ class ExamResponses$Type extends MessageType<ExamResponses> {
1028
1028
  return message;
1029
1029
  }
1030
1030
  internalBinaryWrite(message: ExamResponses, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1031
- /* uint64 qualification_id = 1 [jstype = JS_STRING]; */
1032
- if (message.qualificationId !== "0")
1031
+ /* uint64 qualification_id = 1; */
1032
+ if (message.qualificationId !== 0)
1033
1033
  writer.tag(1, WireType.Varint).uint64(message.qualificationId);
1034
1034
  /* int32 user_id = 2; */
1035
1035
  if (message.userId !== 0)
@@ -1051,7 +1051,7 @@ export const ExamResponses = new ExamResponses$Type();
1051
1051
  class ExamResponse$Type extends MessageType<ExamResponse> {
1052
1052
  constructor() {
1053
1053
  super("resources.qualifications.ExamResponse", [
1054
- { no: 1, name: "question_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1054
+ { no: 1, name: "question_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1055
1055
  { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1056
1056
  { no: 3, name: "question", kind: "message", T: () => ExamQuestion },
1057
1057
  { no: 4, name: "response", kind: "message", T: () => ExamResponseData }
@@ -1059,7 +1059,7 @@ class ExamResponse$Type extends MessageType<ExamResponse> {
1059
1059
  }
1060
1060
  create(value?: PartialMessage<ExamResponse>): ExamResponse {
1061
1061
  const message = globalThis.Object.create((this.messagePrototype!));
1062
- message.questionId = "0";
1062
+ message.questionId = 0;
1063
1063
  message.userId = 0;
1064
1064
  if (value !== undefined)
1065
1065
  reflectionMergePartial<ExamResponse>(this, message, value);
@@ -1070,8 +1070,8 @@ class ExamResponse$Type extends MessageType<ExamResponse> {
1070
1070
  while (reader.pos < end) {
1071
1071
  let [fieldNo, wireType] = reader.tag();
1072
1072
  switch (fieldNo) {
1073
- case /* uint64 question_id = 1 [jstype = JS_STRING];*/ 1:
1074
- message.questionId = reader.uint64().toString();
1073
+ case /* uint64 question_id */ 1:
1074
+ message.questionId = reader.uint64().toNumber();
1075
1075
  break;
1076
1076
  case /* int32 user_id */ 2:
1077
1077
  message.userId = reader.int32();
@@ -1094,8 +1094,8 @@ class ExamResponse$Type extends MessageType<ExamResponse> {
1094
1094
  return message;
1095
1095
  }
1096
1096
  internalBinaryWrite(message: ExamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1097
- /* uint64 question_id = 1 [jstype = JS_STRING]; */
1098
- if (message.questionId !== "0")
1097
+ /* uint64 question_id = 1; */
1098
+ if (message.questionId !== 0)
1099
1099
  writer.tag(1, WireType.Varint).uint64(message.questionId);
1100
1100
  /* int32 user_id = 2; */
1101
1101
  if (message.userId !== 0)
@@ -21,9 +21,9 @@ import { Timestamp } from "../timestamp/timestamp";
21
21
  */
22
22
  export interface Qualification {
23
23
  /**
24
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
24
+ * @generated from protobuf field: uint64 id = 1;
25
25
  */
26
- id: string; // @gotags: sql:"primary_key" alias:"id"
26
+ id: number; // @gotags: sql:"primary_key" alias:"id"
27
27
  /**
28
28
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
29
29
  */
@@ -134,9 +134,9 @@ export interface Qualification {
134
134
  */
135
135
  export interface QualificationShort {
136
136
  /**
137
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
137
+ * @generated from protobuf field: uint64 id = 1;
138
138
  */
139
- id: string; // @gotags: sql:"primary_key" alias:"id"
139
+ id: number; // @gotags: sql:"primary_key" alias:"id"
140
140
  /**
141
141
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
142
142
  */
@@ -213,21 +213,21 @@ export interface QualificationShort {
213
213
  */
214
214
  export interface QualificationRequirement {
215
215
  /**
216
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
216
+ * @generated from protobuf field: uint64 id = 1;
217
217
  */
218
- id: string; // @gotags: sql:"primary_key" alias:"id"
218
+ id: number; // @gotags: sql:"primary_key" alias:"id"
219
219
  /**
220
220
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
221
221
  */
222
222
  createdAt?: Timestamp;
223
223
  /**
224
- * @generated from protobuf field: uint64 qualification_id = 3 [jstype = JS_STRING];
224
+ * @generated from protobuf field: uint64 qualification_id = 3;
225
225
  */
226
- qualificationId: string;
226
+ qualificationId: number;
227
227
  /**
228
- * @generated from protobuf field: uint64 target_qualification_id = 4 [jstype = JS_STRING];
228
+ * @generated from protobuf field: uint64 target_qualification_id = 4;
229
229
  */
230
- targetQualificationId: string;
230
+ targetQualificationId: number;
231
231
  /**
232
232
  * @generated from protobuf field: optional resources.qualifications.QualificationShort target_qualification = 5;
233
233
  */
@@ -268,9 +268,9 @@ export interface QualificationRequest {
268
268
  */
269
269
  deletedAt?: Timestamp;
270
270
  /**
271
- * @generated from protobuf field: uint64 qualification_id = 3 [jstype = JS_STRING];
271
+ * @generated from protobuf field: uint64 qualification_id = 3;
272
272
  */
273
- qualificationId: string; // @gotags: sql:"primary_key" alias:"qualification_id"
273
+ qualificationId: number; // @gotags: sql:"primary_key" alias:"qualification_id"
274
274
  /**
275
275
  * @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 4;
276
276
  */
@@ -321,9 +321,9 @@ export interface QualificationRequest {
321
321
  */
322
322
  export interface QualificationResult {
323
323
  /**
324
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
324
+ * @generated from protobuf field: uint64 id = 1;
325
325
  */
326
- id: string; // @gotags: sql:"primary_key" alias:"id"
326
+ id: number; // @gotags: sql:"primary_key" alias:"id"
327
327
  /**
328
328
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
329
329
  */
@@ -333,9 +333,9 @@ export interface QualificationResult {
333
333
  */
334
334
  deletedAt?: Timestamp;
335
335
  /**
336
- * @generated from protobuf field: uint64 qualification_id = 4 [jstype = JS_STRING];
336
+ * @generated from protobuf field: uint64 qualification_id = 4;
337
337
  */
338
- qualificationId: string;
338
+ qualificationId: number;
339
339
  /**
340
340
  * @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5;
341
341
  */
@@ -454,7 +454,7 @@ export enum ResultStatus {
454
454
  class Qualification$Type extends MessageType<Qualification> {
455
455
  constructor() {
456
456
  super("resources.qualifications.Qualification", [
457
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
457
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
458
458
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
459
459
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
460
460
  { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
@@ -483,7 +483,7 @@ class Qualification$Type extends MessageType<Qualification> {
483
483
  }
484
484
  create(value?: PartialMessage<Qualification>): Qualification {
485
485
  const message = globalThis.Object.create((this.messagePrototype!));
486
- message.id = "0";
486
+ message.id = 0;
487
487
  message.job = "";
488
488
  message.weight = 0;
489
489
  message.closed = false;
@@ -503,8 +503,8 @@ class Qualification$Type extends MessageType<Qualification> {
503
503
  while (reader.pos < end) {
504
504
  let [fieldNo, wireType] = reader.tag();
505
505
  switch (fieldNo) {
506
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
507
- message.id = reader.uint64().toString();
506
+ case /* uint64 id */ 1:
507
+ message.id = reader.uint64().toNumber();
508
508
  break;
509
509
  case /* optional resources.timestamp.Timestamp created_at */ 2:
510
510
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -590,8 +590,8 @@ class Qualification$Type extends MessageType<Qualification> {
590
590
  return message;
591
591
  }
592
592
  internalBinaryWrite(message: Qualification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
593
- /* uint64 id = 1 [jstype = JS_STRING]; */
594
- if (message.id !== "0")
593
+ /* uint64 id = 1; */
594
+ if (message.id !== 0)
595
595
  writer.tag(1, WireType.Varint).uint64(message.id);
596
596
  /* optional resources.timestamp.Timestamp created_at = 2; */
597
597
  if (message.createdAt)
@@ -679,7 +679,7 @@ export const Qualification = new Qualification$Type();
679
679
  class QualificationShort$Type extends MessageType<QualificationShort> {
680
680
  constructor() {
681
681
  super("resources.qualifications.QualificationShort", [
682
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
682
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
683
683
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
684
684
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
685
685
  { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
@@ -700,7 +700,7 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
700
700
  }
701
701
  create(value?: PartialMessage<QualificationShort>): QualificationShort {
702
702
  const message = globalThis.Object.create((this.messagePrototype!));
703
- message.id = "0";
703
+ message.id = 0;
704
704
  message.job = "";
705
705
  message.weight = 0;
706
706
  message.closed = false;
@@ -718,8 +718,8 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
718
718
  while (reader.pos < end) {
719
719
  let [fieldNo, wireType] = reader.tag();
720
720
  switch (fieldNo) {
721
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
722
- message.id = reader.uint64().toString();
721
+ case /* uint64 id */ 1:
722
+ message.id = reader.uint64().toNumber();
723
723
  break;
724
724
  case /* optional resources.timestamp.Timestamp created_at */ 2:
725
725
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -781,8 +781,8 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
781
781
  return message;
782
782
  }
783
783
  internalBinaryWrite(message: QualificationShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
784
- /* uint64 id = 1 [jstype = JS_STRING]; */
785
- if (message.id !== "0")
784
+ /* uint64 id = 1; */
785
+ if (message.id !== 0)
786
786
  writer.tag(1, WireType.Varint).uint64(message.id);
787
787
  /* optional resources.timestamp.Timestamp created_at = 2; */
788
788
  if (message.createdAt)
@@ -846,18 +846,18 @@ export const QualificationShort = new QualificationShort$Type();
846
846
  class QualificationRequirement$Type extends MessageType<QualificationRequirement> {
847
847
  constructor() {
848
848
  super("resources.qualifications.QualificationRequirement", [
849
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
849
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
850
850
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
851
- { no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
852
- { no: 4, name: "target_qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
851
+ { no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
852
+ { no: 4, name: "target_qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
853
853
  { no: 5, name: "target_qualification", kind: "message", T: () => QualificationShort }
854
854
  ]);
855
855
  }
856
856
  create(value?: PartialMessage<QualificationRequirement>): QualificationRequirement {
857
857
  const message = globalThis.Object.create((this.messagePrototype!));
858
- message.id = "0";
859
- message.qualificationId = "0";
860
- message.targetQualificationId = "0";
858
+ message.id = 0;
859
+ message.qualificationId = 0;
860
+ message.targetQualificationId = 0;
861
861
  if (value !== undefined)
862
862
  reflectionMergePartial<QualificationRequirement>(this, message, value);
863
863
  return message;
@@ -867,17 +867,17 @@ class QualificationRequirement$Type extends MessageType<QualificationRequirement
867
867
  while (reader.pos < end) {
868
868
  let [fieldNo, wireType] = reader.tag();
869
869
  switch (fieldNo) {
870
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
871
- message.id = reader.uint64().toString();
870
+ case /* uint64 id */ 1:
871
+ message.id = reader.uint64().toNumber();
872
872
  break;
873
873
  case /* optional resources.timestamp.Timestamp created_at */ 2:
874
874
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
875
875
  break;
876
- case /* uint64 qualification_id = 3 [jstype = JS_STRING];*/ 3:
877
- message.qualificationId = reader.uint64().toString();
876
+ case /* uint64 qualification_id */ 3:
877
+ message.qualificationId = reader.uint64().toNumber();
878
878
  break;
879
- case /* uint64 target_qualification_id = 4 [jstype = JS_STRING];*/ 4:
880
- message.targetQualificationId = reader.uint64().toString();
879
+ case /* uint64 target_qualification_id */ 4:
880
+ message.targetQualificationId = reader.uint64().toNumber();
881
881
  break;
882
882
  case /* optional resources.qualifications.QualificationShort target_qualification */ 5:
883
883
  message.targetQualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.targetQualification);
@@ -894,17 +894,17 @@ class QualificationRequirement$Type extends MessageType<QualificationRequirement
894
894
  return message;
895
895
  }
896
896
  internalBinaryWrite(message: QualificationRequirement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
897
- /* uint64 id = 1 [jstype = JS_STRING]; */
898
- if (message.id !== "0")
897
+ /* uint64 id = 1; */
898
+ if (message.id !== 0)
899
899
  writer.tag(1, WireType.Varint).uint64(message.id);
900
900
  /* optional resources.timestamp.Timestamp created_at = 2; */
901
901
  if (message.createdAt)
902
902
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
903
- /* uint64 qualification_id = 3 [jstype = JS_STRING]; */
904
- if (message.qualificationId !== "0")
903
+ /* uint64 qualification_id = 3; */
904
+ if (message.qualificationId !== 0)
905
905
  writer.tag(3, WireType.Varint).uint64(message.qualificationId);
906
- /* uint64 target_qualification_id = 4 [jstype = JS_STRING]; */
907
- if (message.targetQualificationId !== "0")
906
+ /* uint64 target_qualification_id = 4; */
907
+ if (message.targetQualificationId !== 0)
908
908
  writer.tag(4, WireType.Varint).uint64(message.targetQualificationId);
909
909
  /* optional resources.qualifications.QualificationShort target_qualification = 5; */
910
910
  if (message.targetQualification)
@@ -1024,7 +1024,7 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
1024
1024
  super("resources.qualifications.QualificationRequest", [
1025
1025
  { no: 1, name: "created_at", kind: "message", T: () => Timestamp },
1026
1026
  { no: 2, name: "deleted_at", kind: "message", T: () => Timestamp },
1027
- { no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1027
+ { no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1028
1028
  { no: 4, name: "qualification", kind: "message", T: () => QualificationShort },
1029
1029
  { no: 5, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
1030
1030
  { no: 6, name: "user", kind: "message", T: () => UserShort },
@@ -1039,7 +1039,7 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
1039
1039
  }
1040
1040
  create(value?: PartialMessage<QualificationRequest>): QualificationRequest {
1041
1041
  const message = globalThis.Object.create((this.messagePrototype!));
1042
- message.qualificationId = "0";
1042
+ message.qualificationId = 0;
1043
1043
  message.userId = 0;
1044
1044
  if (value !== undefined)
1045
1045
  reflectionMergePartial<QualificationRequest>(this, message, value);
@@ -1056,8 +1056,8 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
1056
1056
  case /* optional resources.timestamp.Timestamp deleted_at */ 2:
1057
1057
  message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
1058
1058
  break;
1059
- case /* uint64 qualification_id = 3 [jstype = JS_STRING];*/ 3:
1060
- message.qualificationId = reader.uint64().toString();
1059
+ case /* uint64 qualification_id */ 3:
1060
+ message.qualificationId = reader.uint64().toNumber();
1061
1061
  break;
1062
1062
  case /* optional resources.qualifications.QualificationShort qualification */ 4:
1063
1063
  message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
@@ -1107,8 +1107,8 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
1107
1107
  /* optional resources.timestamp.Timestamp deleted_at = 2; */
1108
1108
  if (message.deletedAt)
1109
1109
  Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1110
- /* uint64 qualification_id = 3 [jstype = JS_STRING]; */
1111
- if (message.qualificationId !== "0")
1110
+ /* uint64 qualification_id = 3; */
1111
+ if (message.qualificationId !== 0)
1112
1112
  writer.tag(3, WireType.Varint).uint64(message.qualificationId);
1113
1113
  /* optional resources.qualifications.QualificationShort qualification = 4; */
1114
1114
  if (message.qualification)
@@ -1154,10 +1154,10 @@ export const QualificationRequest = new QualificationRequest$Type();
1154
1154
  class QualificationResult$Type extends MessageType<QualificationResult> {
1155
1155
  constructor() {
1156
1156
  super("resources.qualifications.QualificationResult", [
1157
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1157
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1158
1158
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
1159
1159
  { no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
1160
- { no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
1160
+ { no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
1161
1161
  { no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
1162
1162
  { no: 6, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
1163
1163
  { no: 7, name: "user", kind: "message", T: () => UserShort },
@@ -1171,8 +1171,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
1171
1171
  }
1172
1172
  create(value?: PartialMessage<QualificationResult>): QualificationResult {
1173
1173
  const message = globalThis.Object.create((this.messagePrototype!));
1174
- message.id = "0";
1175
- message.qualificationId = "0";
1174
+ message.id = 0;
1175
+ message.qualificationId = 0;
1176
1176
  message.userId = 0;
1177
1177
  message.status = 0;
1178
1178
  message.summary = "";
@@ -1187,8 +1187,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
1187
1187
  while (reader.pos < end) {
1188
1188
  let [fieldNo, wireType] = reader.tag();
1189
1189
  switch (fieldNo) {
1190
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
1191
- message.id = reader.uint64().toString();
1190
+ case /* uint64 id */ 1:
1191
+ message.id = reader.uint64().toNumber();
1192
1192
  break;
1193
1193
  case /* optional resources.timestamp.Timestamp created_at */ 2:
1194
1194
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -1196,8 +1196,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
1196
1196
  case /* optional resources.timestamp.Timestamp deleted_at */ 3:
1197
1197
  message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
1198
1198
  break;
1199
- case /* uint64 qualification_id = 4 [jstype = JS_STRING];*/ 4:
1200
- message.qualificationId = reader.uint64().toString();
1199
+ case /* uint64 qualification_id */ 4:
1200
+ message.qualificationId = reader.uint64().toNumber();
1201
1201
  break;
1202
1202
  case /* optional resources.qualifications.QualificationShort qualification */ 5:
1203
1203
  message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
@@ -1238,8 +1238,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
1238
1238
  return message;
1239
1239
  }
1240
1240
  internalBinaryWrite(message: QualificationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1241
- /* uint64 id = 1 [jstype = JS_STRING]; */
1242
- if (message.id !== "0")
1241
+ /* uint64 id = 1; */
1242
+ if (message.id !== 0)
1243
1243
  writer.tag(1, WireType.Varint).uint64(message.id);
1244
1244
  /* optional resources.timestamp.Timestamp created_at = 2; */
1245
1245
  if (message.createdAt)
@@ -1247,8 +1247,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
1247
1247
  /* optional resources.timestamp.Timestamp deleted_at = 3; */
1248
1248
  if (message.deletedAt)
1249
1249
  Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1250
- /* uint64 qualification_id = 4 [jstype = JS_STRING]; */
1251
- if (message.qualificationId !== "0")
1250
+ /* uint64 qualification_id = 4; */
1251
+ if (message.qualificationId !== 0)
1252
1252
  writer.tag(4, WireType.Varint).uint64(message.qualificationId);
1253
1253
  /* optional resources.qualifications.QualificationShort qualification = 5; */
1254
1254
  if (message.qualification)
@@ -17,17 +17,17 @@ import { Timestamp } from "../timestamp/timestamp";
17
17
  */
18
18
  export interface AuditEntry {
19
19
  /**
20
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
20
+ * @generated from protobuf field: uint64 id = 1;
21
21
  */
22
- id: string; // @gotags: alias:"id"
22
+ id: number; // @gotags: alias:"id"
23
23
  /**
24
24
  * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
25
25
  */
26
26
  createdAt?: Timestamp;
27
27
  /**
28
- * @generated from protobuf field: uint64 user_id = 3 [jstype = JS_STRING];
28
+ * @generated from protobuf field: uint64 user_id = 3;
29
29
  */
30
- userId: string; // @gotags: alias:"user_id"
30
+ userId: number; // @gotags: alias:"user_id"
31
31
  /**
32
32
  * @generated from protobuf field: optional resources.users.UserShort user = 4;
33
33
  */
@@ -98,9 +98,9 @@ export enum EventType {
98
98
  class AuditEntry$Type extends MessageType<AuditEntry> {
99
99
  constructor() {
100
100
  super("resources.rector.AuditEntry", [
101
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
101
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
102
102
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
103
- { no: 3, name: "user_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
103
+ { no: 3, name: "user_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
104
104
  { no: 4, name: "user", kind: "message", T: () => UserShort },
105
105
  { no: 5, name: "user_job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
106
106
  { no: 6, name: "target_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
@@ -114,8 +114,8 @@ class AuditEntry$Type extends MessageType<AuditEntry> {
114
114
  }
115
115
  create(value?: PartialMessage<AuditEntry>): AuditEntry {
116
116
  const message = globalThis.Object.create((this.messagePrototype!));
117
- message.id = "0";
118
- message.userId = "0";
117
+ message.id = 0;
118
+ message.userId = 0;
119
119
  message.userJob = "";
120
120
  message.targetUserJob = "";
121
121
  message.service = "";
@@ -130,14 +130,14 @@ class AuditEntry$Type extends MessageType<AuditEntry> {
130
130
  while (reader.pos < end) {
131
131
  let [fieldNo, wireType] = reader.tag();
132
132
  switch (fieldNo) {
133
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
134
- message.id = reader.uint64().toString();
133
+ case /* uint64 id */ 1:
134
+ message.id = reader.uint64().toNumber();
135
135
  break;
136
136
  case /* resources.timestamp.Timestamp created_at */ 2:
137
137
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
138
138
  break;
139
- case /* uint64 user_id = 3 [jstype = JS_STRING];*/ 3:
140
- message.userId = reader.uint64().toString();
139
+ case /* uint64 user_id */ 3:
140
+ message.userId = reader.uint64().toNumber();
141
141
  break;
142
142
  case /* optional resources.users.UserShort user */ 4:
143
143
  message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
@@ -178,14 +178,14 @@ class AuditEntry$Type extends MessageType<AuditEntry> {
178
178
  return message;
179
179
  }
180
180
  internalBinaryWrite(message: AuditEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
181
- /* uint64 id = 1 [jstype = JS_STRING]; */
182
- if (message.id !== "0")
181
+ /* uint64 id = 1; */
182
+ if (message.id !== 0)
183
183
  writer.tag(1, WireType.Varint).uint64(message.id);
184
184
  /* resources.timestamp.Timestamp created_at = 2; */
185
185
  if (message.createdAt)
186
186
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
187
- /* uint64 user_id = 3 [jstype = JS_STRING]; */
188
- if (message.userId !== "0")
187
+ /* uint64 user_id = 3; */
188
+ if (message.userId !== 0)
189
189
  writer.tag(3, WireType.Varint).uint64(message.userId);
190
190
  /* optional resources.users.UserShort user = 4; */
191
191
  if (message.user)