@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
@@ -89,6 +89,18 @@ export interface JobGradeEvent {
89
89
  * @generated from protobuf message resources.notifications.SystemEvent
90
90
  */
91
91
  export interface SystemEvent {
92
+ /**
93
+ * @generated from protobuf oneof: data
94
+ */
95
+ data: {
96
+ oneofKind: "ping";
97
+ /**
98
+ * @generated from protobuf field: bool ping = 1;
99
+ */
100
+ ping: boolean;
101
+ } | {
102
+ oneofKind: undefined;
103
+ };
92
104
  }
93
105
  // @generated message type with reflection information, may provide speed optimized methods
94
106
  class UserEvent$Type extends MessageType<UserEvent> {
@@ -263,18 +275,43 @@ export const JobGradeEvent = new JobGradeEvent$Type();
263
275
  // @generated message type with reflection information, may provide speed optimized methods
264
276
  class SystemEvent$Type extends MessageType<SystemEvent> {
265
277
  constructor() {
266
- super("resources.notifications.SystemEvent", []);
278
+ super("resources.notifications.SystemEvent", [
279
+ { no: 1, name: "ping", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ }
280
+ ]);
267
281
  }
268
282
  create(value?: PartialMessage<SystemEvent>): SystemEvent {
269
283
  const message = globalThis.Object.create((this.messagePrototype!));
284
+ message.data = { oneofKind: undefined };
270
285
  if (value !== undefined)
271
286
  reflectionMergePartial<SystemEvent>(this, message, value);
272
287
  return message;
273
288
  }
274
289
  internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SystemEvent): SystemEvent {
275
- return target ?? this.create();
290
+ let message = target ?? this.create(), end = reader.pos + length;
291
+ while (reader.pos < end) {
292
+ let [fieldNo, wireType] = reader.tag();
293
+ switch (fieldNo) {
294
+ case /* bool ping */ 1:
295
+ message.data = {
296
+ oneofKind: "ping",
297
+ ping: reader.bool()
298
+ };
299
+ break;
300
+ default:
301
+ let u = options.readUnknownField;
302
+ if (u === "throw")
303
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
304
+ let d = reader.skip(wireType);
305
+ if (u !== false)
306
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
307
+ }
308
+ }
309
+ return message;
276
310
  }
277
311
  internalBinaryWrite(message: SystemEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
312
+ /* bool ping = 1; */
313
+ if (message.data.oneofKind === "ping")
314
+ writer.tag(1, WireType.Varint).bool(message.data.ping);
278
315
  let u = options.writeUnknownFields;
279
316
  if (u !== false)
280
317
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -18,9 +18,9 @@ import { Timestamp } from "../timestamp/timestamp";
18
18
  */
19
19
  export interface Notification {
20
20
  /**
21
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
21
+ * @generated from protobuf field: uint64 id = 1;
22
22
  */
23
- id: string;
23
+ id: number;
24
24
  /**
25
25
  * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
26
26
  */
@@ -101,13 +101,13 @@ export interface Link {
101
101
  */
102
102
  export interface CalendarData {
103
103
  /**
104
- * @generated from protobuf field: optional uint64 calendar_id = 1 [jstype = JS_STRING];
104
+ * @generated from protobuf field: optional uint64 calendar_id = 1;
105
105
  */
106
- calendarId?: string;
106
+ calendarId?: number;
107
107
  /**
108
- * @generated from protobuf field: optional uint64 calendar_entry_id = 2 [jstype = JS_STRING];
108
+ * @generated from protobuf field: optional uint64 calendar_entry_id = 2;
109
109
  */
110
- calendarEntryId?: string;
110
+ calendarEntryId?: number;
111
111
  }
112
112
  /**
113
113
  * @generated from protobuf enum resources.notifications.NotificationType
@@ -159,7 +159,7 @@ export enum NotificationCategory {
159
159
  class Notification$Type extends MessageType<Notification> {
160
160
  constructor() {
161
161
  super("resources.notifications.Notification", [
162
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
162
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
163
163
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
164
164
  { no: 3, name: "read_at", kind: "message", T: () => Timestamp },
165
165
  { no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
@@ -173,7 +173,7 @@ class Notification$Type extends MessageType<Notification> {
173
173
  }
174
174
  create(value?: PartialMessage<Notification>): Notification {
175
175
  const message = globalThis.Object.create((this.messagePrototype!));
176
- message.id = "0";
176
+ message.id = 0;
177
177
  message.userId = 0;
178
178
  message.type = 0;
179
179
  message.category = 0;
@@ -186,8 +186,8 @@ class Notification$Type extends MessageType<Notification> {
186
186
  while (reader.pos < end) {
187
187
  let [fieldNo, wireType] = reader.tag();
188
188
  switch (fieldNo) {
189
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
190
- message.id = reader.uint64().toString();
189
+ case /* uint64 id */ 1:
190
+ message.id = reader.uint64().toNumber();
191
191
  break;
192
192
  case /* resources.timestamp.Timestamp created_at */ 2:
193
193
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -228,8 +228,8 @@ class Notification$Type extends MessageType<Notification> {
228
228
  return message;
229
229
  }
230
230
  internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
231
- /* uint64 id = 1 [jstype = JS_STRING]; */
232
- if (message.id !== "0")
231
+ /* uint64 id = 1; */
232
+ if (message.id !== 0)
233
233
  writer.tag(1, WireType.Varint).uint64(message.id);
234
234
  /* resources.timestamp.Timestamp created_at = 2; */
235
235
  if (message.createdAt)
@@ -393,8 +393,8 @@ export const Link = new Link$Type();
393
393
  class CalendarData$Type extends MessageType<CalendarData> {
394
394
  constructor() {
395
395
  super("resources.notifications.CalendarData", [
396
- { no: 1, name: "calendar_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
397
- { no: 2, name: "calendar_entry_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ }
396
+ { no: 1, name: "calendar_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
397
+ { no: 2, name: "calendar_entry_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
398
398
  ]);
399
399
  }
400
400
  create(value?: PartialMessage<CalendarData>): CalendarData {
@@ -408,11 +408,11 @@ class CalendarData$Type extends MessageType<CalendarData> {
408
408
  while (reader.pos < end) {
409
409
  let [fieldNo, wireType] = reader.tag();
410
410
  switch (fieldNo) {
411
- case /* optional uint64 calendar_id = 1 [jstype = JS_STRING];*/ 1:
412
- message.calendarId = reader.uint64().toString();
411
+ case /* optional uint64 calendar_id */ 1:
412
+ message.calendarId = reader.uint64().toNumber();
413
413
  break;
414
- case /* optional uint64 calendar_entry_id = 2 [jstype = JS_STRING];*/ 2:
415
- message.calendarEntryId = reader.uint64().toString();
414
+ case /* optional uint64 calendar_entry_id */ 2:
415
+ message.calendarEntryId = reader.uint64().toNumber();
416
416
  break;
417
417
  default:
418
418
  let u = options.readUnknownField;
@@ -426,10 +426,10 @@ class CalendarData$Type extends MessageType<CalendarData> {
426
426
  return message;
427
427
  }
428
428
  internalBinaryWrite(message: CalendarData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
429
- /* optional uint64 calendar_id = 1 [jstype = JS_STRING]; */
429
+ /* optional uint64 calendar_id = 1; */
430
430
  if (message.calendarId !== undefined)
431
431
  writer.tag(1, WireType.Varint).uint64(message.calendarId);
432
- /* optional uint64 calendar_entry_id = 2 [jstype = JS_STRING]; */
432
+ /* optional uint64 calendar_entry_id = 2; */
433
433
  if (message.calendarEntryId !== undefined)
434
434
  writer.tag(2, WireType.Varint).uint64(message.calendarEntryId);
435
435
  let u = options.writeUnknownFields;
@@ -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
  */
@@ -226,7 +226,7 @@ export interface JobGradeList {
226
226
  class Permission$Type extends MessageType<Permission> {
227
227
  constructor() {
228
228
  super("resources.permissions.Permission", [
229
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
229
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
230
230
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
231
231
  { no: 3, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
232
232
  { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -236,7 +236,7 @@ class Permission$Type extends MessageType<Permission> {
236
236
  }
237
237
  create(value?: PartialMessage<Permission>): Permission {
238
238
  const message = globalThis.Object.create((this.messagePrototype!));
239
- message.id = "0";
239
+ message.id = 0;
240
240
  message.category = "";
241
241
  message.name = "";
242
242
  message.guardName = "";
@@ -250,8 +250,8 @@ class Permission$Type extends MessageType<Permission> {
250
250
  while (reader.pos < end) {
251
251
  let [fieldNo, wireType] = reader.tag();
252
252
  switch (fieldNo) {
253
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
254
- message.id = reader.uint64().toString();
253
+ case /* uint64 id */ 1:
254
+ message.id = reader.uint64().toNumber();
255
255
  break;
256
256
  case /* optional resources.timestamp.Timestamp created_at */ 2:
257
257
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -280,8 +280,8 @@ class Permission$Type extends MessageType<Permission> {
280
280
  return message;
281
281
  }
282
282
  internalBinaryWrite(message: Permission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
283
- /* uint64 id = 1 [jstype = JS_STRING]; */
284
- if (message.id !== "0")
283
+ /* uint64 id = 1; */
284
+ if (message.id !== 0)
285
285
  writer.tag(1, WireType.Varint).uint64(message.id);
286
286
  /* optional resources.timestamp.Timestamp created_at = 2; */
287
287
  if (message.createdAt)
@@ -312,7 +312,7 @@ export const Permission = new Permission$Type();
312
312
  class Role$Type extends MessageType<Role> {
313
313
  constructor() {
314
314
  super("resources.permissions.Role", [
315
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
315
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
316
316
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
317
317
  { no: 3, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
318
318
  { no: 4, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
@@ -324,7 +324,7 @@ class Role$Type extends MessageType<Role> {
324
324
  }
325
325
  create(value?: PartialMessage<Role>): Role {
326
326
  const message = globalThis.Object.create((this.messagePrototype!));
327
- message.id = "0";
327
+ message.id = 0;
328
328
  message.job = "";
329
329
  message.grade = 0;
330
330
  message.permissions = [];
@@ -338,8 +338,8 @@ class Role$Type extends MessageType<Role> {
338
338
  while (reader.pos < end) {
339
339
  let [fieldNo, wireType] = reader.tag();
340
340
  switch (fieldNo) {
341
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
342
- message.id = reader.uint64().toString();
341
+ case /* uint64 id */ 1:
342
+ message.id = reader.uint64().toNumber();
343
343
  break;
344
344
  case /* optional resources.timestamp.Timestamp created_at */ 2:
345
345
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -374,8 +374,8 @@ class Role$Type extends MessageType<Role> {
374
374
  return message;
375
375
  }
376
376
  internalBinaryWrite(message: Role, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
377
- /* uint64 id = 1 [jstype = JS_STRING]; */
378
- if (message.id !== "0")
377
+ /* uint64 id = 1; */
378
+ if (message.id !== 0)
379
379
  writer.tag(1, WireType.Varint).uint64(message.id);
380
380
  /* optional resources.timestamp.Timestamp created_at = 2; */
381
381
  if (message.createdAt)
@@ -412,10 +412,10 @@ export const Role = new Role$Type();
412
412
  class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
413
413
  constructor() {
414
414
  super("resources.permissions.RawRoleAttribute", [
415
- { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
415
+ { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
416
416
  { 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*/ },
417
+ { no: 3, name: "attr_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
418
+ { no: 4, name: "permission_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
419
419
  { no: 5, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
420
420
  { no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
421
421
  { no: 7, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -426,9 +426,9 @@ class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
426
426
  }
427
427
  create(value?: PartialMessage<RawRoleAttribute>): RawRoleAttribute {
428
428
  const message = globalThis.Object.create((this.messagePrototype!));
429
- message.roleId = "0";
430
- message.attrId = "0";
431
- message.permissionId = "0";
429
+ message.roleId = 0;
430
+ message.attrId = 0;
431
+ message.permissionId = 0;
432
432
  message.category = "";
433
433
  message.name = "";
434
434
  message.key = "";
@@ -442,17 +442,17 @@ class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
442
442
  while (reader.pos < end) {
443
443
  let [fieldNo, wireType] = reader.tag();
444
444
  switch (fieldNo) {
445
- case /* uint64 role_id = 1 [jstype = JS_STRING];*/ 1:
446
- message.roleId = reader.uint64().toString();
445
+ case /* uint64 role_id */ 1:
446
+ message.roleId = reader.uint64().toNumber();
447
447
  break;
448
448
  case /* optional resources.timestamp.Timestamp created_at */ 2:
449
449
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
450
450
  break;
451
- case /* uint64 attr_id = 3 [jstype = JS_STRING];*/ 3:
452
- message.attrId = reader.uint64().toString();
451
+ case /* uint64 attr_id */ 3:
452
+ message.attrId = reader.uint64().toNumber();
453
453
  break;
454
- case /* uint64 permission_id = 4 [jstype = JS_STRING];*/ 4:
455
- message.permissionId = reader.uint64().toString();
454
+ case /* uint64 permission_id */ 4:
455
+ message.permissionId = reader.uint64().toNumber();
456
456
  break;
457
457
  case /* string category */ 5:
458
458
  message.category = reader.string();
@@ -484,17 +484,17 @@ class RawRoleAttribute$Type extends MessageType<RawRoleAttribute> {
484
484
  return message;
485
485
  }
486
486
  internalBinaryWrite(message: RawRoleAttribute, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
487
- /* uint64 role_id = 1 [jstype = JS_STRING]; */
488
- if (message.roleId !== "0")
487
+ /* uint64 role_id = 1; */
488
+ if (message.roleId !== 0)
489
489
  writer.tag(1, WireType.Varint).uint64(message.roleId);
490
490
  /* optional resources.timestamp.Timestamp created_at = 2; */
491
491
  if (message.createdAt)
492
492
  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")
493
+ /* uint64 attr_id = 3; */
494
+ if (message.attrId !== 0)
495
495
  writer.tag(3, WireType.Varint).uint64(message.attrId);
496
- /* uint64 permission_id = 4 [jstype = JS_STRING]; */
497
- if (message.permissionId !== "0")
496
+ /* uint64 permission_id = 4; */
497
+ if (message.permissionId !== 0)
498
498
  writer.tag(4, WireType.Varint).uint64(message.permissionId);
499
499
  /* string category = 5; */
500
500
  if (message.category !== "")
@@ -528,10 +528,10 @@ export const RawRoleAttribute = new RawRoleAttribute$Type();
528
528
  class RoleAttribute$Type extends MessageType<RoleAttribute> {
529
529
  constructor() {
530
530
  super("resources.permissions.RoleAttribute", [
531
- { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
531
+ { no: 1, name: "role_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
532
532
  { 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*/ },
533
+ { no: 3, name: "attr_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
534
+ { no: 4, name: "permission_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
535
535
  { no: 5, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
536
536
  { no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
537
537
  { no: 7, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -543,9 +543,9 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
543
543
  }
544
544
  create(value?: PartialMessage<RoleAttribute>): RoleAttribute {
545
545
  const message = globalThis.Object.create((this.messagePrototype!));
546
- message.roleId = "0";
547
- message.attrId = "0";
548
- message.permissionId = "0";
546
+ message.roleId = 0;
547
+ message.attrId = 0;
548
+ message.permissionId = 0;
549
549
  message.category = "";
550
550
  message.name = "";
551
551
  message.key = "";
@@ -559,17 +559,17 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
559
559
  while (reader.pos < end) {
560
560
  let [fieldNo, wireType] = reader.tag();
561
561
  switch (fieldNo) {
562
- case /* uint64 role_id = 1 [jstype = JS_STRING];*/ 1:
563
- message.roleId = reader.uint64().toString();
562
+ case /* uint64 role_id */ 1:
563
+ message.roleId = reader.uint64().toNumber();
564
564
  break;
565
565
  case /* optional resources.timestamp.Timestamp created_at */ 2:
566
566
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
567
567
  break;
568
- case /* uint64 attr_id = 3 [jstype = JS_STRING];*/ 3:
569
- message.attrId = reader.uint64().toString();
568
+ case /* uint64 attr_id */ 3:
569
+ message.attrId = reader.uint64().toNumber();
570
570
  break;
571
- case /* uint64 permission_id = 4 [jstype = JS_STRING];*/ 4:
572
- message.permissionId = reader.uint64().toString();
571
+ case /* uint64 permission_id */ 4:
572
+ message.permissionId = reader.uint64().toNumber();
573
573
  break;
574
574
  case /* string category */ 5:
575
575
  message.category = reader.string();
@@ -604,17 +604,17 @@ class RoleAttribute$Type extends MessageType<RoleAttribute> {
604
604
  return message;
605
605
  }
606
606
  internalBinaryWrite(message: RoleAttribute, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
607
- /* uint64 role_id = 1 [jstype = JS_STRING]; */
608
- if (message.roleId !== "0")
607
+ /* uint64 role_id = 1; */
608
+ if (message.roleId !== 0)
609
609
  writer.tag(1, WireType.Varint).uint64(message.roleId);
610
610
  /* optional resources.timestamp.Timestamp created_at = 2; */
611
611
  if (message.createdAt)
612
612
  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")
613
+ /* uint64 attr_id = 3; */
614
+ if (message.attrId !== 0)
615
615
  writer.tag(3, WireType.Varint).uint64(message.attrId);
616
- /* uint64 permission_id = 4 [jstype = JS_STRING]; */
617
- if (message.permissionId !== "0")
616
+ /* uint64 permission_id = 4; */
617
+ if (message.permissionId !== 0)
618
618
  writer.tag(4, WireType.Varint).uint64(message.permissionId);
619
619
  /* string category = 5; */
620
620
  if (message.category !== "")
@@ -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; // @gotags: alias:"qualification_id"
39
39
  /**
40
40
  * @generated from protobuf field: string job = 5;
41
41
  */
@@ -152,9 +152,9 @@ export const QualificationAccess = new QualificationAccess$Type();
152
152
  class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
153
153
  constructor() {
154
154
  super("resources.qualifications.QualificationJobAccess", [
155
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
155
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
156
156
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
157
- { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
157
+ { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
158
158
  { no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
159
159
  { no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
160
160
  { no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
@@ -164,8 +164,8 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
164
164
  }
165
165
  create(value?: PartialMessage<QualificationJobAccess>): QualificationJobAccess {
166
166
  const message = globalThis.Object.create((this.messagePrototype!));
167
- message.id = "0";
168
- message.targetId = "0";
167
+ message.id = 0;
168
+ message.targetId = 0;
169
169
  message.job = "";
170
170
  message.minimumGrade = 0;
171
171
  message.access = 0;
@@ -178,14 +178,14 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
178
178
  while (reader.pos < end) {
179
179
  let [fieldNo, wireType] = reader.tag();
180
180
  switch (fieldNo) {
181
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
182
- message.id = reader.uint64().toString();
181
+ case /* uint64 id */ 1:
182
+ message.id = reader.uint64().toNumber();
183
183
  break;
184
184
  case /* optional resources.timestamp.Timestamp created_at */ 2:
185
185
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
186
186
  break;
187
- case /* uint64 target_id = 4 [jstype = JS_STRING];*/ 4:
188
- message.targetId = reader.uint64().toString();
187
+ case /* uint64 target_id */ 4:
188
+ message.targetId = reader.uint64().toNumber();
189
189
  break;
190
190
  case /* string job */ 5:
191
191
  message.job = reader.string();
@@ -214,14 +214,14 @@ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
214
214
  return message;
215
215
  }
216
216
  internalBinaryWrite(message: QualificationJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
217
- /* uint64 id = 1 [jstype = JS_STRING]; */
218
- if (message.id !== "0")
217
+ /* uint64 id = 1; */
218
+ if (message.id !== 0)
219
219
  writer.tag(1, WireType.Varint).uint64(message.id);
220
220
  /* optional resources.timestamp.Timestamp created_at = 2; */
221
221
  if (message.createdAt)
222
222
  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")
223
+ /* uint64 target_id = 4; */
224
+ if (message.targetId !== 0)
225
225
  writer.tag(4, WireType.Varint).uint64(message.targetId);
226
226
  /* string job = 5; */
227
227
  if (message.job !== "")