@fivenet-app/gen 0.9.3 → 0.9.5-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 (133) hide show
  1. package/clients.ts +150 -0
  2. package/google/protobuf/any.ts +10 -6
  3. package/google/protobuf/descriptor.ts +1255 -76
  4. package/google/protobuf/duration.ts +1 -2
  5. package/google/protobuf/timestamp.ts +3 -6
  6. package/package.json +5 -1
  7. package/perms.ts +9 -1
  8. package/resources/accounts/accounts.ts +9 -9
  9. package/resources/accounts/oauth2.ts +17 -17
  10. package/resources/calendar/access.ts +33 -33
  11. package/resources/calendar/calendar.ts +51 -49
  12. package/resources/centrum/access.ts +57 -42
  13. package/resources/centrum/attributes.ts +182 -0
  14. package/resources/centrum/dispatches.ts +73 -71
  15. package/resources/centrum/disponents.ts +81 -0
  16. package/resources/centrum/settings.ts +5 -1
  17. package/resources/centrum/units.ts +49 -49
  18. package/resources/centrum/user_unit.ts +104 -0
  19. package/resources/common/content/content.ts +47 -26
  20. package/resources/common/cron/cron.ts +37 -1
  21. package/resources/common/database/database.ts +37 -19
  22. package/resources/common/error.ts +1 -1
  23. package/resources/common/grpcws/grpcws.ts +59 -33
  24. package/resources/common/i18n.ts +4 -1
  25. package/resources/common/tests/objects.ts +82 -0
  26. package/resources/common/uuid.ts +1 -1
  27. package/resources/documents/access.ts +37 -35
  28. package/resources/documents/activity.ts +19 -17
  29. package/resources/documents/category.ts +9 -9
  30. package/resources/documents/comment.ts +17 -17
  31. package/resources/documents/documents.ts +89 -89
  32. package/resources/documents/requests.ts +17 -17
  33. package/resources/documents/templates.ts +50 -35
  34. package/resources/documents/workflow.ts +3 -1
  35. package/resources/filestore/file.ts +1 -1
  36. package/resources/internet/access.ts +358 -0
  37. package/resources/internet/ads.ts +9 -9
  38. package/resources/internet/domain.ts +216 -24
  39. package/resources/internet/page.ts +215 -23
  40. package/resources/internet/search.ts +42 -18
  41. package/resources/jobs/activity.ts +11 -9
  42. package/resources/jobs/colleagues.ts +1 -1
  43. package/resources/jobs/conduct.ts +9 -9
  44. package/resources/jobs/labels.ts +9 -9
  45. package/resources/jobs/timeclock.ts +7 -3
  46. package/resources/laws/laws.ts +25 -25
  47. package/resources/livemap/livemap.ts +314 -295
  48. package/resources/livemap/tracker.ts +1 -1
  49. package/resources/mailer/access.ts +57 -57
  50. package/resources/mailer/email.ts +9 -9
  51. package/resources/mailer/events.ts +19 -19
  52. package/resources/mailer/message.ts +151 -45
  53. package/resources/mailer/settings.ts +9 -9
  54. package/resources/mailer/template.ts +17 -17
  55. package/resources/mailer/thread.ts +57 -57
  56. package/resources/notifications/events.ts +112 -3
  57. package/resources/notifications/notifications.ts +23 -21
  58. package/resources/permissions/permissions.ts +67 -65
  59. package/resources/qualifications/access.ts +33 -24
  60. package/resources/qualifications/exam.ts +226 -44
  61. package/resources/qualifications/qualifications.ts +99 -71
  62. package/resources/rector/audit.ts +17 -17
  63. package/resources/rector/banner.ts +133 -0
  64. package/resources/rector/config.ts +84 -17
  65. package/resources/stats/stats.ts +1 -1
  66. package/resources/sync/activity.ts +93 -15
  67. package/resources/sync/data.ts +143 -11
  68. package/resources/timestamp/timestamp.ts +1 -1
  69. package/resources/users/activity.ts +995 -37
  70. package/resources/users/job_props.ts +6 -709
  71. package/resources/users/job_settings.ts +765 -0
  72. package/resources/users/jobs.ts +1 -1
  73. package/resources/users/labels.ts +11 -9
  74. package/resources/users/licenses.ts +148 -0
  75. package/resources/users/props.ts +1 -1
  76. package/resources/users/users.ts +2 -137
  77. package/resources/vehicles/vehicles.ts +38 -5
  78. package/resources/wiki/access.ts +34 -38
  79. package/resources/wiki/activity.ts +19 -17
  80. package/resources/wiki/page.ts +29 -29
  81. package/services/auth/auth.client.ts +7 -1
  82. package/services/auth/auth.ts +110 -33
  83. package/services/calendar/calendar.client.ts +1 -1
  84. package/services/calendar/calendar.ts +98 -59
  85. package/services/centrum/centrum.client.ts +1 -1
  86. package/services/centrum/centrum.ts +268 -125
  87. package/services/citizenstore/citizenstore.client.ts +1 -1
  88. package/services/citizenstore/citizenstore.ts +25 -2
  89. package/services/completor/completor.client.ts +1 -1
  90. package/services/completor/completor.ts +15 -2
  91. package/services/dmv/vehicles.client.ts +1 -1
  92. package/services/dmv/vehicles.ts +13 -2
  93. package/services/docstore/docstore.client.ts +1 -1
  94. package/services/docstore/docstore.ts +491 -296
  95. package/services/internet/ads.client.ts +1 -1
  96. package/services/internet/ads.ts +1 -1
  97. package/services/internet/domain.client.ts +109 -0
  98. package/services/internet/domain.ts +658 -0
  99. package/services/internet/internet.client.ts +1 -1
  100. package/services/internet/internet.ts +15 -4
  101. package/services/jobs/conduct.client.ts +1 -1
  102. package/services/jobs/conduct.ts +30 -17
  103. package/services/jobs/jobs.client.ts +1 -1
  104. package/services/jobs/jobs.ts +43 -17
  105. package/services/jobs/timeclock.client.ts +1 -1
  106. package/services/jobs/timeclock.ts +20 -20
  107. package/services/livemapper/livemap.client.ts +1 -1
  108. package/services/livemapper/livemap.ts +137 -35
  109. package/services/mailer/mailer.client.ts +1 -1
  110. package/services/mailer/mailer.ts +216 -164
  111. package/services/notificator/notificator.client.ts +1 -1
  112. package/services/notificator/notificator.ts +30 -17
  113. package/services/qualifications/qualifications.client.ts +3 -3
  114. package/services/qualifications/qualifications.ts +190 -115
  115. package/services/rector/config.client.ts +1 -1
  116. package/services/rector/config.ts +16 -3
  117. package/services/rector/filestore.client.ts +1 -1
  118. package/services/rector/filestore.ts +15 -2
  119. package/services/rector/laws.client.ts +1 -1
  120. package/services/rector/laws.ts +45 -19
  121. package/services/rector/rector.client.ts +1 -1
  122. package/services/rector/rector.ts +135 -70
  123. package/services/stats/stats.client.ts +1 -1
  124. package/services/stats/stats.ts +16 -3
  125. package/services/sync/sync.client.ts +43 -3
  126. package/services/sync/sync.ts +301 -34
  127. package/services/wiki/wiki.client.ts +1 -1
  128. package/services/wiki/wiki.ts +39 -26
  129. package/svcs.ts +17 -1
  130. package/resources/centrum/general.ts +0 -231
  131. package/resources/common/access/dummy.ts +0 -309
  132. package/resources/internet/internet.ts +0 -344
  133. package/resources/mailer/user.ts +0 -93
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "resources/permissions/permissions.proto" (package "resources.permissions", syntax proto3)
3
3
  // @ts-nocheck
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -16,9 +16,9 @@ import { Timestamp } from "../timestamp/timestamp";
16
16
  */
17
17
  export interface Permission {
18
18
  /**
19
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
19
+ * @generated from protobuf field: uint64 id = 1;
20
20
  */
21
- id: string;
21
+ id: number;
22
22
  /**
23
23
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
24
24
  */
@@ -45,9 +45,9 @@ export interface Permission {
45
45
  */
46
46
  export interface Role {
47
47
  /**
48
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
48
+ * @generated from protobuf field: uint64 id = 1;
49
49
  */
50
- id: string;
50
+ id: number;
51
51
  /**
52
52
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
53
53
  */
@@ -82,21 +82,21 @@ export interface Role {
82
82
  */
83
83
  export interface RawRoleAttribute {
84
84
  /**
85
- * @generated from protobuf field: uint64 role_id = 1 [jstype = JS_STRING];
85
+ * @generated from protobuf field: uint64 role_id = 1;
86
86
  */
87
- roleId: string;
87
+ roleId: number;
88
88
  /**
89
89
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
90
90
  */
91
91
  createdAt?: Timestamp;
92
92
  /**
93
- * @generated from protobuf field: uint64 attr_id = 3 [jstype = JS_STRING];
93
+ * @generated from protobuf field: uint64 attr_id = 3;
94
94
  */
95
- attrId: string;
95
+ attrId: number;
96
96
  /**
97
- * @generated from protobuf field: uint64 permission_id = 4 [jstype = JS_STRING];
97
+ * @generated from protobuf field: uint64 permission_id = 4;
98
98
  */
99
- permissionId: string;
99
+ permissionId: number;
100
100
  /**
101
101
  * @generated from protobuf field: string category = 5;
102
102
  */
@@ -127,21 +127,21 @@ export interface RawRoleAttribute {
127
127
  */
128
128
  export interface RoleAttribute {
129
129
  /**
130
- * @generated from protobuf field: uint64 role_id = 1 [jstype = JS_STRING];
130
+ * @generated from protobuf field: uint64 role_id = 1;
131
131
  */
132
- roleId: string;
132
+ roleId: number;
133
133
  /**
134
134
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
135
135
  */
136
136
  createdAt?: Timestamp;
137
137
  /**
138
- * @generated from protobuf field: uint64 attr_id = 3 [jstype = JS_STRING];
138
+ * @generated from protobuf field: uint64 attr_id = 3;
139
139
  */
140
- attrId: string;
140
+ attrId: number;
141
141
  /**
142
- * @generated from protobuf field: uint64 permission_id = 4 [jstype = JS_STRING];
142
+ * @generated from protobuf field: uint64 permission_id = 4;
143
143
  */
144
- permissionId: string;
144
+ permissionId: number;
145
145
  /**
146
146
  * @generated from protobuf field: string category = 5;
147
147
  */
@@ -172,6 +172,8 @@ export interface RoleAttribute {
172
172
  maxValues?: AttributeValues;
173
173
  }
174
174
  /**
175
+ * @dbscanner: json
176
+ *
175
177
  * @generated from protobuf message resources.permissions.AttributeValues
176
178
  */
177
179
  export interface AttributeValues {
@@ -226,7 +228,7 @@ export interface JobGradeList {
226
228
  class Permission$Type extends MessageType<Permission> {
227
229
  constructor() {
228
230
  super("resources.permissions.Permission", [
229
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
231
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
230
232
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
231
233
  { no: 3, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
232
234
  { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -236,7 +238,7 @@ class Permission$Type extends MessageType<Permission> {
236
238
  }
237
239
  create(value?: PartialMessage<Permission>): Permission {
238
240
  const message = globalThis.Object.create((this.messagePrototype!));
239
- message.id = "0";
241
+ message.id = 0;
240
242
  message.category = "";
241
243
  message.name = "";
242
244
  message.guardName = "";
@@ -250,8 +252,8 @@ class Permission$Type extends MessageType<Permission> {
250
252
  while (reader.pos < end) {
251
253
  let [fieldNo, wireType] = reader.tag();
252
254
  switch (fieldNo) {
253
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
254
- message.id = reader.uint64().toString();
255
+ case /* uint64 id */ 1:
256
+ message.id = reader.uint64().toNumber();
255
257
  break;
256
258
  case /* optional resources.timestamp.Timestamp created_at */ 2:
257
259
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -280,8 +282,8 @@ class Permission$Type extends MessageType<Permission> {
280
282
  return message;
281
283
  }
282
284
  internalBinaryWrite(message: Permission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
283
- /* uint64 id = 1 [jstype = JS_STRING]; */
284
- if (message.id !== "0")
285
+ /* uint64 id = 1; */
286
+ if (message.id !== 0)
285
287
  writer.tag(1, WireType.Varint).uint64(message.id);
286
288
  /* optional resources.timestamp.Timestamp created_at = 2; */
287
289
  if (message.createdAt)
@@ -312,7 +314,7 @@ export const Permission = new Permission$Type();
312
314
  class Role$Type extends MessageType<Role> {
313
315
  constructor() {
314
316
  super("resources.permissions.Role", [
315
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
317
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
316
318
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
317
319
  { no: 3, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
318
320
  { no: 4, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
@@ -324,7 +326,7 @@ class Role$Type extends MessageType<Role> {
324
326
  }
325
327
  create(value?: PartialMessage<Role>): Role {
326
328
  const message = globalThis.Object.create((this.messagePrototype!));
327
- message.id = "0";
329
+ message.id = 0;
328
330
  message.job = "";
329
331
  message.grade = 0;
330
332
  message.permissions = [];
@@ -338,8 +340,8 @@ class Role$Type extends MessageType<Role> {
338
340
  while (reader.pos < end) {
339
341
  let [fieldNo, wireType] = reader.tag();
340
342
  switch (fieldNo) {
341
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
342
- message.id = reader.uint64().toString();
343
+ case /* uint64 id */ 1:
344
+ message.id = reader.uint64().toNumber();
343
345
  break;
344
346
  case /* optional resources.timestamp.Timestamp created_at */ 2:
345
347
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -374,8 +376,8 @@ class Role$Type extends MessageType<Role> {
374
376
  return message;
375
377
  }
376
378
  internalBinaryWrite(message: Role, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
377
- /* uint64 id = 1 [jstype = JS_STRING]; */
378
- if (message.id !== "0")
379
+ /* uint64 id = 1; */
380
+ if (message.id !== 0)
379
381
  writer.tag(1, WireType.Varint).uint64(message.id);
380
382
  /* optional resources.timestamp.Timestamp created_at = 2; */
381
383
  if (message.createdAt)
@@ -412,10 +414,10 @@ export const Role = new Role$Type();
412
414
  class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
413
415
  constructor() {
414
416
  super("resources.permissions.RawRoleAttribute", [
415
- { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
417
+ { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
416
418
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
417
- { no: 3, name: "attr_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
418
- { no: 4, name: "permission_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
419
+ { no: 3, name: "attr_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
420
+ { no: 4, name: "permission_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
419
421
  { no: 5, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
420
422
  { no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
421
423
  { no: 7, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -426,9 +428,9 @@ class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
426
428
  }
427
429
  create(value?: PartialMessage<RawRoleAttribute>): RawRoleAttribute {
428
430
  const message = globalThis.Object.create((this.messagePrototype!));
429
- message.roleId = "0";
430
- message.attrId = "0";
431
- message.permissionId = "0";
431
+ message.roleId = 0;
432
+ message.attrId = 0;
433
+ message.permissionId = 0;
432
434
  message.category = "";
433
435
  message.name = "";
434
436
  message.key = "";
@@ -442,17 +444,17 @@ class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
442
444
  while (reader.pos < end) {
443
445
  let [fieldNo, wireType] = reader.tag();
444
446
  switch (fieldNo) {
445
- case /* uint64 role_id = 1 [jstype = JS_STRING];*/ 1:
446
- message.roleId = reader.uint64().toString();
447
+ case /* uint64 role_id */ 1:
448
+ message.roleId = reader.uint64().toNumber();
447
449
  break;
448
450
  case /* optional resources.timestamp.Timestamp created_at */ 2:
449
451
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
450
452
  break;
451
- case /* uint64 attr_id = 3 [jstype = JS_STRING];*/ 3:
452
- message.attrId = reader.uint64().toString();
453
+ case /* uint64 attr_id */ 3:
454
+ message.attrId = reader.uint64().toNumber();
453
455
  break;
454
- case /* uint64 permission_id = 4 [jstype = JS_STRING];*/ 4:
455
- message.permissionId = reader.uint64().toString();
456
+ case /* uint64 permission_id */ 4:
457
+ message.permissionId = reader.uint64().toNumber();
456
458
  break;
457
459
  case /* string category */ 5:
458
460
  message.category = reader.string();
@@ -484,17 +486,17 @@ class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
484
486
  return message;
485
487
  }
486
488
  internalBinaryWrite(message: RawRoleAttribute, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
487
- /* uint64 role_id = 1 [jstype = JS_STRING]; */
488
- if (message.roleId !== "0")
489
+ /* uint64 role_id = 1; */
490
+ if (message.roleId !== 0)
489
491
  writer.tag(1, WireType.Varint).uint64(message.roleId);
490
492
  /* optional resources.timestamp.Timestamp created_at = 2; */
491
493
  if (message.createdAt)
492
494
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
493
- /* uint64 attr_id = 3 [jstype = JS_STRING]; */
494
- if (message.attrId !== "0")
495
+ /* uint64 attr_id = 3; */
496
+ if (message.attrId !== 0)
495
497
  writer.tag(3, WireType.Varint).uint64(message.attrId);
496
- /* uint64 permission_id = 4 [jstype = JS_STRING]; */
497
- if (message.permissionId !== "0")
498
+ /* uint64 permission_id = 4; */
499
+ if (message.permissionId !== 0)
498
500
  writer.tag(4, WireType.Varint).uint64(message.permissionId);
499
501
  /* string category = 5; */
500
502
  if (message.category !== "")
@@ -528,10 +530,10 @@ export const RawRoleAttribute = new RawRoleAttribute$Type();
528
530
  class RoleAttribute$Type extends MessageType<RoleAttribute> {
529
531
  constructor() {
530
532
  super("resources.permissions.RoleAttribute", [
531
- { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
533
+ { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
532
534
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
533
- { no: 3, name: "attr_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
534
- { no: 4, name: "permission_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
535
+ { no: 3, name: "attr_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
536
+ { no: 4, name: "permission_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
535
537
  { no: 5, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
536
538
  { no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
537
539
  { no: 7, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -543,9 +545,9 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
543
545
  }
544
546
  create(value?: PartialMessage<RoleAttribute>): RoleAttribute {
545
547
  const message = globalThis.Object.create((this.messagePrototype!));
546
- message.roleId = "0";
547
- message.attrId = "0";
548
- message.permissionId = "0";
548
+ message.roleId = 0;
549
+ message.attrId = 0;
550
+ message.permissionId = 0;
549
551
  message.category = "";
550
552
  message.name = "";
551
553
  message.key = "";
@@ -559,17 +561,17 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
559
561
  while (reader.pos < end) {
560
562
  let [fieldNo, wireType] = reader.tag();
561
563
  switch (fieldNo) {
562
- case /* uint64 role_id = 1 [jstype = JS_STRING];*/ 1:
563
- message.roleId = reader.uint64().toString();
564
+ case /* uint64 role_id */ 1:
565
+ message.roleId = reader.uint64().toNumber();
564
566
  break;
565
567
  case /* optional resources.timestamp.Timestamp created_at */ 2:
566
568
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
567
569
  break;
568
- case /* uint64 attr_id = 3 [jstype = JS_STRING];*/ 3:
569
- message.attrId = reader.uint64().toString();
570
+ case /* uint64 attr_id */ 3:
571
+ message.attrId = reader.uint64().toNumber();
570
572
  break;
571
- case /* uint64 permission_id = 4 [jstype = JS_STRING];*/ 4:
572
- message.permissionId = reader.uint64().toString();
573
+ case /* uint64 permission_id */ 4:
574
+ message.permissionId = reader.uint64().toNumber();
573
575
  break;
574
576
  case /* string category */ 5:
575
577
  message.category = reader.string();
@@ -604,17 +606,17 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
604
606
  return message;
605
607
  }
606
608
  internalBinaryWrite(message: RoleAttribute, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
607
- /* uint64 role_id = 1 [jstype = JS_STRING]; */
608
- if (message.roleId !== "0")
609
+ /* uint64 role_id = 1; */
610
+ if (message.roleId !== 0)
609
611
  writer.tag(1, WireType.Varint).uint64(message.roleId);
610
612
  /* optional resources.timestamp.Timestamp created_at = 2; */
611
613
  if (message.createdAt)
612
614
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
613
- /* uint64 attr_id = 3 [jstype = JS_STRING]; */
614
- if (message.attrId !== "0")
615
+ /* uint64 attr_id = 3; */
616
+ if (message.attrId !== 0)
615
617
  writer.tag(3, WireType.Varint).uint64(message.attrId);
616
- /* uint64 permission_id = 4 [jstype = JS_STRING]; */
617
- if (message.permissionId !== "0")
618
+ /* uint64 permission_id = 4; */
619
+ if (message.permissionId !== 0)
618
620
  writer.tag(4, WireType.Varint).uint64(message.permissionId);
619
621
  /* string category = 5; */
620
622
  if (message.category !== "")
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
1
+ // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
2
2
  // @generated from protobuf file "resources/qualifications/access.proto" (package "resources.qualifications", syntax proto3)
3
3
  // @ts-nocheck
4
4
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -25,17 +25,17 @@ export interface QualificationAccess {
25
25
  */
26
26
  export interface QualificationJobAccess {
27
27
  /**
28
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
28
+ * @generated from protobuf field: uint64 id = 1;
29
29
  */
30
- id: string; // @gotags: sql:"primary_key" alias:"id"
30
+ id: number; // @gotags: sql:"primary_key" alias:"id"
31
31
  /**
32
32
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
33
33
  */
34
34
  createdAt?: Timestamp;
35
35
  /**
36
- * @generated from protobuf field: uint64 target_id = 4 [jstype = JS_STRING];
36
+ * @generated from protobuf field: uint64 target_id = 4;
37
37
  */
38
- targetId: string; // @gotags: alias:"qualification_id"
38
+ targetId: number;
39
39
  /**
40
40
  * @generated from protobuf field: string job = 5;
41
41
  */
@@ -93,13 +93,9 @@ export enum AccessLevel {
93
93
  */
94
94
  GRADE = 5,
95
95
  /**
96
- * @generated from protobuf enum value: ACCESS_LEVEL_MANAGE = 6;
96
+ * @generated from protobuf enum value: ACCESS_LEVEL_EDIT = 6;
97
97
  */
98
- MANAGE = 6,
99
- /**
100
- * @generated from protobuf enum value: ACCESS_LEVEL_EDIT = 7;
101
- */
102
- EDIT = 7
98
+ EDIT = 6
103
99
  }
104
100
  // @generated message type with reflection information, may provide speed optimized methods
105
101
  class QualificationAccess$Type extends MessageType<QualificationAccess> {
@@ -152,9 +148,9 @@ export const QualificationAccess = new QualificationAccess$Type();
152
148
  class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
153
149
  constructor() {
154
150
  super("resources.qualifications.QualificationJobAccess", [
155
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
151
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
156
152
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
157
- { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
153
+ { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
158
154
  { no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
159
155
  { no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
160
156
  { no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
@@ -164,8 +160,8 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
164
160
  }
165
161
  create(value?: PartialMessage<QualificationJobAccess>): QualificationJobAccess {
166
162
  const message = globalThis.Object.create((this.messagePrototype!));
167
- message.id = "0";
168
- message.targetId = "0";
163
+ message.id = 0;
164
+ message.targetId = 0;
169
165
  message.job = "";
170
166
  message.minimumGrade = 0;
171
167
  message.access = 0;
@@ -178,14 +174,14 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
178
174
  while (reader.pos < end) {
179
175
  let [fieldNo, wireType] = reader.tag();
180
176
  switch (fieldNo) {
181
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
182
- message.id = reader.uint64().toString();
177
+ case /* uint64 id */ 1:
178
+ message.id = reader.uint64().toNumber();
183
179
  break;
184
180
  case /* optional resources.timestamp.Timestamp created_at */ 2:
185
181
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
186
182
  break;
187
- case /* uint64 target_id = 4 [jstype = JS_STRING];*/ 4:
188
- message.targetId = reader.uint64().toString();
183
+ case /* uint64 target_id */ 4:
184
+ message.targetId = reader.uint64().toNumber();
189
185
  break;
190
186
  case /* string job */ 5:
191
187
  message.job = reader.string();
@@ -214,14 +210,14 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
214
210
  return message;
215
211
  }
216
212
  internalBinaryWrite(message: QualificationJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
217
- /* uint64 id = 1 [jstype = JS_STRING]; */
218
- if (message.id !== "0")
213
+ /* uint64 id = 1; */
214
+ if (message.id !== 0)
219
215
  writer.tag(1, WireType.Varint).uint64(message.id);
220
216
  /* optional resources.timestamp.Timestamp created_at = 2; */
221
217
  if (message.createdAt)
222
218
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
223
- /* uint64 target_id = 4 [jstype = JS_STRING]; */
224
- if (message.targetId !== "0")
219
+ /* uint64 target_id = 4; */
220
+ if (message.targetId !== 0)
225
221
  writer.tag(4, WireType.Varint).uint64(message.targetId);
226
222
  /* string job = 5; */
227
223
  if (message.job !== "")
@@ -260,7 +256,20 @@ class QualificationUserAccess$Type extends MessageType<QualificationUserAccess>
260
256
  return message;
261
257
  }
262
258
  internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationUserAccess): QualificationUserAccess {
263
- return target ?? this.create();
259
+ let message = target ?? this.create(), end = reader.pos + length;
260
+ while (reader.pos < end) {
261
+ let [fieldNo, wireType] = reader.tag();
262
+ switch (fieldNo) {
263
+ default:
264
+ let u = options.readUnknownField;
265
+ if (u === "throw")
266
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
267
+ let d = reader.skip(wireType);
268
+ if (u !== false)
269
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
270
+ }
271
+ }
272
+ return message;
264
273
  }
265
274
  internalBinaryWrite(message: QualificationUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
266
275
  let u = options.writeUnknownFields;