@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
@@ -16,9 +16,9 @@ import { Timestamp } from "../timestamp/timestamp";
16
16
  */
17
17
  export interface LawBook {
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; // @gotags: sql:"primary_key" alias:"id"
21
+ id: number; // @gotags: sql:"primary_key" alias:"id"
22
22
  /**
23
23
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
24
24
  */
@@ -49,9 +49,9 @@ export interface LawBook {
49
49
  */
50
50
  export interface Law {
51
51
  /**
52
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
52
+ * @generated from protobuf field: uint64 id = 1;
53
53
  */
54
- id: string; // @gotags: sql:"primary_key" alias:"law.id"
54
+ id: number; // @gotags: sql:"primary_key" alias:"law.id"
55
55
  /**
56
56
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
57
57
  */
@@ -61,9 +61,9 @@ export interface Law {
61
61
  */
62
62
  updatedAt?: Timestamp;
63
63
  /**
64
- * @generated from protobuf field: uint64 lawbook_id = 4 [jstype = JS_STRING];
64
+ * @generated from protobuf field: uint64 lawbook_id = 4;
65
65
  */
66
- lawbookId: string;
66
+ lawbookId: number;
67
67
  /**
68
68
  * @sanitize
69
69
  *
@@ -99,7 +99,7 @@ export interface Law {
99
99
  class LawBook$Type extends MessageType<LawBook> {
100
100
  constructor() {
101
101
  super("resources.laws.LawBook", [
102
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
102
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
103
103
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
104
104
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
105
105
  { no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "128" } } } },
@@ -109,7 +109,7 @@ class LawBook$Type extends MessageType<LawBook> {
109
109
  }
110
110
  create(value?: PartialMessage<LawBook>): LawBook {
111
111
  const message = globalThis.Object.create((this.messagePrototype!));
112
- message.id = "0";
112
+ message.id = 0;
113
113
  message.name = "";
114
114
  message.laws = [];
115
115
  if (value !== undefined)
@@ -121,8 +121,8 @@ class LawBook$Type extends MessageType<LawBook> {
121
121
  while (reader.pos < end) {
122
122
  let [fieldNo, wireType] = reader.tag();
123
123
  switch (fieldNo) {
124
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
125
- message.id = reader.uint64().toString();
124
+ case /* uint64 id */ 1:
125
+ message.id = reader.uint64().toNumber();
126
126
  break;
127
127
  case /* optional resources.timestamp.Timestamp created_at */ 2:
128
128
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -151,8 +151,8 @@ class LawBook$Type extends MessageType<LawBook> {
151
151
  return message;
152
152
  }
153
153
  internalBinaryWrite(message: LawBook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
154
- /* uint64 id = 1 [jstype = JS_STRING]; */
155
- if (message.id !== "0")
154
+ /* uint64 id = 1; */
155
+ if (message.id !== 0)
156
156
  writer.tag(1, WireType.Varint).uint64(message.id);
157
157
  /* optional resources.timestamp.Timestamp created_at = 2; */
158
158
  if (message.createdAt)
@@ -183,10 +183,10 @@ export const LawBook = new LawBook$Type();
183
183
  class Law$Type extends MessageType<Law> {
184
184
  constructor() {
185
185
  super("resources.laws.Law", [
186
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
186
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
187
187
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
188
188
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
189
- { no: 4, name: "lawbook_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
189
+ { no: 4, name: "lawbook_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
190
190
  { no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "128" } } } },
191
191
  { no: 6, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "1024" } } } },
192
192
  { no: 7, name: "hint", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
@@ -197,8 +197,8 @@ class Law$Type extends MessageType<Law> {
197
197
  }
198
198
  create(value?: PartialMessage<Law>): Law {
199
199
  const message = globalThis.Object.create((this.messagePrototype!));
200
- message.id = "0";
201
- message.lawbookId = "0";
200
+ message.id = 0;
201
+ message.lawbookId = 0;
202
202
  message.name = "";
203
203
  if (value !== undefined)
204
204
  reflectionMergePartial<Law>(this, message, value);
@@ -209,8 +209,8 @@ class Law$Type extends MessageType<Law> {
209
209
  while (reader.pos < end) {
210
210
  let [fieldNo, wireType] = reader.tag();
211
211
  switch (fieldNo) {
212
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
213
- message.id = reader.uint64().toString();
212
+ case /* uint64 id */ 1:
213
+ message.id = reader.uint64().toNumber();
214
214
  break;
215
215
  case /* optional resources.timestamp.Timestamp created_at */ 2:
216
216
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -218,8 +218,8 @@ class Law$Type extends MessageType<Law> {
218
218
  case /* optional resources.timestamp.Timestamp updated_at */ 3:
219
219
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
220
220
  break;
221
- case /* uint64 lawbook_id = 4 [jstype = JS_STRING];*/ 4:
222
- message.lawbookId = reader.uint64().toString();
221
+ case /* uint64 lawbook_id */ 4:
222
+ message.lawbookId = reader.uint64().toNumber();
223
223
  break;
224
224
  case /* string name */ 5:
225
225
  message.name = reader.string();
@@ -251,8 +251,8 @@ class Law$Type extends MessageType<Law> {
251
251
  return message;
252
252
  }
253
253
  internalBinaryWrite(message: Law, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
254
- /* uint64 id = 1 [jstype = JS_STRING]; */
255
- if (message.id !== "0")
254
+ /* uint64 id = 1; */
255
+ if (message.id !== 0)
256
256
  writer.tag(1, WireType.Varint).uint64(message.id);
257
257
  /* optional resources.timestamp.Timestamp created_at = 2; */
258
258
  if (message.createdAt)
@@ -260,8 +260,8 @@ class Law$Type extends MessageType<Law> {
260
260
  /* optional resources.timestamp.Timestamp updated_at = 3; */
261
261
  if (message.updatedAt)
262
262
  Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
263
- /* uint64 lawbook_id = 4 [jstype = JS_STRING]; */
264
- if (message.lawbookId !== "0")
263
+ /* uint64 lawbook_id = 4; */
264
+ if (message.lawbookId !== 0)
265
265
  writer.tag(4, WireType.Varint).uint64(message.lawbookId);
266
266
  /* string name = 5; */
267
267
  if (message.name !== "")
@@ -19,9 +19,9 @@ import { Timestamp } from "../timestamp/timestamp";
19
19
  */
20
20
  export interface MarkerInfo {
21
21
  /**
22
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
22
+ * @generated from protobuf field: uint64 id = 1;
23
23
  */
24
- id: string;
24
+ id: number;
25
25
  /**
26
26
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
27
27
  */
@@ -94,9 +94,9 @@ export interface UserMarker {
94
94
  */
95
95
  user?: Colleague; // @gotags: alias:"user"
96
96
  /**
97
- * @generated from protobuf field: optional uint64 unit_id = 4 [jstype = JS_STRING];
97
+ * @generated from protobuf field: optional uint64 unit_id = 4;
98
98
  */
99
- unitId?: string;
99
+ unitId?: number;
100
100
  /**
101
101
  * @generated from protobuf field: optional resources.centrum.Unit unit = 5;
102
102
  */
@@ -220,7 +220,7 @@ export enum MarkerType {
220
220
  class MarkerInfo$Type extends MessageType<MarkerInfo> {
221
221
  constructor() {
222
222
  super("resources.livemap.MarkerInfo", [
223
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
223
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
224
224
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
225
225
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
226
226
  { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -236,7 +236,7 @@ class MarkerInfo$Type extends MessageType<MarkerInfo> {
236
236
  }
237
237
  create(value?: PartialMessage<MarkerInfo>): MarkerInfo {
238
238
  const message = globalThis.Object.create((this.messagePrototype!));
239
- message.id = "0";
239
+ message.id = 0;
240
240
  message.job = "";
241
241
  message.jobLabel = "";
242
242
  message.name = "";
@@ -251,8 +251,8 @@ class MarkerInfo$Type extends MessageType<MarkerInfo> {
251
251
  while (reader.pos < end) {
252
252
  let [fieldNo, wireType] = reader.tag();
253
253
  switch (fieldNo) {
254
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
255
- message.id = reader.uint64().toString();
254
+ case /* uint64 id */ 1:
255
+ message.id = reader.uint64().toNumber();
256
256
  break;
257
257
  case /* optional resources.timestamp.Timestamp created_at */ 2:
258
258
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -299,8 +299,8 @@ class MarkerInfo$Type extends MessageType<MarkerInfo> {
299
299
  return message;
300
300
  }
301
301
  internalBinaryWrite(message: MarkerInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
302
- /* uint64 id = 1 [jstype = JS_STRING]; */
303
- if (message.id !== "0")
302
+ /* uint64 id = 1; */
303
+ if (message.id !== 0)
304
304
  writer.tag(1, WireType.Varint).uint64(message.id);
305
305
  /* optional resources.timestamp.Timestamp created_at = 2; */
306
306
  if (message.createdAt)
@@ -352,7 +352,7 @@ class UserMarker$Type extends MessageType<UserMarker> {
352
352
  { no: 1, name: "info", kind: "message", T: () => MarkerInfo },
353
353
  { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
354
354
  { no: 3, name: "user", kind: "message", T: () => Colleague },
355
- { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
355
+ { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
356
356
  { no: 5, name: "unit", kind: "message", T: () => Unit },
357
357
  { no: 6, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
358
358
  ]);
@@ -379,8 +379,8 @@ class UserMarker$Type extends MessageType<UserMarker> {
379
379
  case /* resources.jobs.Colleague user */ 3:
380
380
  message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
381
381
  break;
382
- case /* optional uint64 unit_id = 4 [jstype = JS_STRING];*/ 4:
383
- message.unitId = reader.uint64().toString();
382
+ case /* optional uint64 unit_id */ 4:
383
+ message.unitId = reader.uint64().toNumber();
384
384
  break;
385
385
  case /* optional resources.centrum.Unit unit */ 5:
386
386
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
@@ -409,7 +409,7 @@ class UserMarker$Type extends MessageType<UserMarker> {
409
409
  /* resources.jobs.Colleague user = 3; */
410
410
  if (message.user)
411
411
  Colleague.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
412
- /* optional uint64 unit_id = 4 [jstype = JS_STRING]; */
412
+ /* optional uint64 unit_id = 4; */
413
413
  if (message.unitId !== undefined)
414
414
  writer.tag(4, WireType.Varint).uint64(message.unitId);
415
415
  /* optional resources.centrum.Unit unit = 5; */
@@ -35,17 +35,17 @@ export interface Access {
35
35
  */
36
36
  export interface JobAccess {
37
37
  /**
38
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
38
+ * @generated from protobuf field: uint64 id = 1;
39
39
  */
40
- id: string; // @gotags: sql:"primary_key" alias:"id"
40
+ id: number; // @gotags: sql:"primary_key" alias:"id"
41
41
  /**
42
42
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
43
43
  */
44
44
  createdAt?: Timestamp;
45
45
  /**
46
- * @generated from protobuf field: uint64 target_id = 4 [jstype = JS_STRING];
46
+ * @generated from protobuf field: uint64 target_id = 4;
47
47
  */
48
- targetId: string; // @gotags: alias:"email_id"
48
+ targetId: number; // @gotags: alias:"email_id"
49
49
  /**
50
50
  * @generated from protobuf field: string job = 5;
51
51
  */
@@ -72,17 +72,17 @@ export interface JobAccess {
72
72
  */
73
73
  export interface UserAccess {
74
74
  /**
75
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
75
+ * @generated from protobuf field: uint64 id = 1;
76
76
  */
77
- id: string;
77
+ id: number;
78
78
  /**
79
79
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
80
80
  */
81
81
  createdAt?: Timestamp;
82
82
  /**
83
- * @generated from protobuf field: uint64 target_id = 3 [jstype = JS_STRING];
83
+ * @generated from protobuf field: uint64 target_id = 3;
84
84
  */
85
- targetId: string; // @gotags: alias:"thread_id"
85
+ targetId: number; // @gotags: alias:"thread_id"
86
86
  /**
87
87
  * @generated from protobuf field: int32 user_id = 4;
88
88
  */
@@ -101,21 +101,21 @@ export interface UserAccess {
101
101
  */
102
102
  export interface QualificationAccess {
103
103
  /**
104
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
104
+ * @generated from protobuf field: uint64 id = 1;
105
105
  */
106
- id: string;
106
+ id: number;
107
107
  /**
108
108
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
109
109
  */
110
110
  createdAt?: Timestamp;
111
111
  /**
112
- * @generated from protobuf field: uint64 target_id = 3 [jstype = JS_STRING];
112
+ * @generated from protobuf field: uint64 target_id = 3;
113
113
  */
114
- targetId: string; // @gotags: alias:"thread_id"
114
+ targetId: number; // @gotags: alias:"thread_id"
115
115
  /**
116
- * @generated from protobuf field: uint64 qualification_id = 4 [jstype = JS_STRING];
116
+ * @generated from protobuf field: uint64 qualification_id = 4;
117
117
  */
118
- qualificationId: string;
118
+ qualificationId: number;
119
119
  /**
120
120
  * @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5;
121
121
  */
@@ -217,9 +217,9 @@ export const Access = new Access$Type();
217
217
  class JobAccess$Type extends MessageType<JobAccess> {
218
218
  constructor() {
219
219
  super("resources.mailer.JobAccess", [
220
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
220
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
221
221
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
222
- { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
222
+ { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
223
223
  { no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
224
224
  { no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
225
225
  { no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
@@ -229,8 +229,8 @@ class JobAccess$Type extends MessageType<JobAccess> {
229
229
  }
230
230
  create(value?: PartialMessage<JobAccess>): JobAccess {
231
231
  const message = globalThis.Object.create((this.messagePrototype!));
232
- message.id = "0";
233
- message.targetId = "0";
232
+ message.id = 0;
233
+ message.targetId = 0;
234
234
  message.job = "";
235
235
  message.minimumGrade = 0;
236
236
  message.access = 0;
@@ -243,14 +243,14 @@ class JobAccess$Type extends MessageType<JobAccess> {
243
243
  while (reader.pos < end) {
244
244
  let [fieldNo, wireType] = reader.tag();
245
245
  switch (fieldNo) {
246
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
247
- message.id = reader.uint64().toString();
246
+ case /* uint64 id */ 1:
247
+ message.id = reader.uint64().toNumber();
248
248
  break;
249
249
  case /* optional resources.timestamp.Timestamp created_at */ 2:
250
250
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
251
251
  break;
252
- case /* uint64 target_id = 4 [jstype = JS_STRING];*/ 4:
253
- message.targetId = reader.uint64().toString();
252
+ case /* uint64 target_id */ 4:
253
+ message.targetId = reader.uint64().toNumber();
254
254
  break;
255
255
  case /* string job */ 5:
256
256
  message.job = reader.string();
@@ -279,14 +279,14 @@ class JobAccess$Type extends MessageType<JobAccess> {
279
279
  return message;
280
280
  }
281
281
  internalBinaryWrite(message: JobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
282
- /* uint64 id = 1 [jstype = JS_STRING]; */
283
- if (message.id !== "0")
282
+ /* uint64 id = 1; */
283
+ if (message.id !== 0)
284
284
  writer.tag(1, WireType.Varint).uint64(message.id);
285
285
  /* optional resources.timestamp.Timestamp created_at = 2; */
286
286
  if (message.createdAt)
287
287
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
288
- /* uint64 target_id = 4 [jstype = JS_STRING]; */
289
- if (message.targetId !== "0")
288
+ /* uint64 target_id = 4; */
289
+ if (message.targetId !== 0)
290
290
  writer.tag(4, WireType.Varint).uint64(message.targetId);
291
291
  /* string job = 5; */
292
292
  if (message.job !== "")
@@ -317,9 +317,9 @@ export const JobAccess = new JobAccess$Type();
317
317
  class UserAccess$Type extends MessageType<UserAccess> {
318
318
  constructor() {
319
319
  super("resources.mailer.UserAccess", [
320
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
320
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
321
321
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
322
- { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
322
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
323
323
  { no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
324
324
  { no: 5, name: "user", kind: "message", T: () => UserShort },
325
325
  { no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
@@ -327,8 +327,8 @@ class UserAccess$Type extends MessageType<UserAccess> {
327
327
  }
328
328
  create(value?: PartialMessage<UserAccess>): UserAccess {
329
329
  const message = globalThis.Object.create((this.messagePrototype!));
330
- message.id = "0";
331
- message.targetId = "0";
330
+ message.id = 0;
331
+ message.targetId = 0;
332
332
  message.userId = 0;
333
333
  message.access = 0;
334
334
  if (value !== undefined)
@@ -340,14 +340,14 @@ class UserAccess$Type extends MessageType<UserAccess> {
340
340
  while (reader.pos < end) {
341
341
  let [fieldNo, wireType] = reader.tag();
342
342
  switch (fieldNo) {
343
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
344
- message.id = reader.uint64().toString();
343
+ case /* uint64 id */ 1:
344
+ message.id = reader.uint64().toNumber();
345
345
  break;
346
346
  case /* optional resources.timestamp.Timestamp created_at */ 2:
347
347
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
348
348
  break;
349
- case /* uint64 target_id = 3 [jstype = JS_STRING];*/ 3:
350
- message.targetId = reader.uint64().toString();
349
+ case /* uint64 target_id */ 3:
350
+ message.targetId = reader.uint64().toNumber();
351
351
  break;
352
352
  case /* int32 user_id */ 4:
353
353
  message.userId = reader.int32();
@@ -370,14 +370,14 @@ class UserAccess$Type extends MessageType<UserAccess> {
370
370
  return message;
371
371
  }
372
372
  internalBinaryWrite(message: UserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
373
- /* uint64 id = 1 [jstype = JS_STRING]; */
374
- if (message.id !== "0")
373
+ /* uint64 id = 1; */
374
+ if (message.id !== 0)
375
375
  writer.tag(1, WireType.Varint).uint64(message.id);
376
376
  /* optional resources.timestamp.Timestamp created_at = 2; */
377
377
  if (message.createdAt)
378
378
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
379
- /* uint64 target_id = 3 [jstype = JS_STRING]; */
380
- if (message.targetId !== "0")
379
+ /* uint64 target_id = 3; */
380
+ if (message.targetId !== 0)
381
381
  writer.tag(3, WireType.Varint).uint64(message.targetId);
382
382
  /* int32 user_id = 4; */
383
383
  if (message.userId !== 0)
@@ -402,19 +402,19 @@ export const UserAccess = new UserAccess$Type();
402
402
  class QualificationAccess$Type extends MessageType<QualificationAccess> {
403
403
  constructor() {
404
404
  super("resources.mailer.QualificationAccess", [
405
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
405
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
406
406
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
407
- { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
408
- { no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
407
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
408
+ { no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
409
409
  { no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
410
410
  { no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
411
411
  ]);
412
412
  }
413
413
  create(value?: PartialMessage<QualificationAccess>): QualificationAccess {
414
414
  const message = globalThis.Object.create((this.messagePrototype!));
415
- message.id = "0";
416
- message.targetId = "0";
417
- message.qualificationId = "0";
415
+ message.id = 0;
416
+ message.targetId = 0;
417
+ message.qualificationId = 0;
418
418
  message.access = 0;
419
419
  if (value !== undefined)
420
420
  reflectionMergePartial<QualificationAccess>(this, message, value);
@@ -425,17 +425,17 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
425
425
  while (reader.pos < end) {
426
426
  let [fieldNo, wireType] = reader.tag();
427
427
  switch (fieldNo) {
428
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
429
- message.id = reader.uint64().toString();
428
+ case /* uint64 id */ 1:
429
+ message.id = reader.uint64().toNumber();
430
430
  break;
431
431
  case /* optional resources.timestamp.Timestamp created_at */ 2:
432
432
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
433
433
  break;
434
- case /* uint64 target_id = 3 [jstype = JS_STRING];*/ 3:
435
- message.targetId = reader.uint64().toString();
434
+ case /* uint64 target_id */ 3:
435
+ message.targetId = reader.uint64().toNumber();
436
436
  break;
437
- case /* uint64 qualification_id = 4 [jstype = JS_STRING];*/ 4:
438
- message.qualificationId = reader.uint64().toString();
437
+ case /* uint64 qualification_id */ 4:
438
+ message.qualificationId = reader.uint64().toNumber();
439
439
  break;
440
440
  case /* optional resources.qualifications.QualificationShort qualification */ 5:
441
441
  message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
@@ -455,17 +455,17 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
455
455
  return message;
456
456
  }
457
457
  internalBinaryWrite(message: QualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
458
- /* uint64 id = 1 [jstype = JS_STRING]; */
459
- if (message.id !== "0")
458
+ /* uint64 id = 1; */
459
+ if (message.id !== 0)
460
460
  writer.tag(1, WireType.Varint).uint64(message.id);
461
461
  /* optional resources.timestamp.Timestamp created_at = 2; */
462
462
  if (message.createdAt)
463
463
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
464
- /* uint64 target_id = 3 [jstype = JS_STRING]; */
465
- if (message.targetId !== "0")
464
+ /* uint64 target_id = 3; */
465
+ if (message.targetId !== 0)
466
466
  writer.tag(3, WireType.Varint).uint64(message.targetId);
467
- /* uint64 qualification_id = 4 [jstype = JS_STRING]; */
468
- if (message.qualificationId !== "0")
467
+ /* uint64 qualification_id = 4; */
468
+ if (message.qualificationId !== 0)
469
469
  writer.tag(4, WireType.Varint).uint64(message.qualificationId);
470
470
  /* optional resources.qualifications.QualificationShort qualification = 5; */
471
471
  if (message.qualification)
@@ -19,9 +19,9 @@ import { Timestamp } from "../timestamp/timestamp";
19
19
  */
20
20
  export interface Email {
21
21
  /**
22
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
22
+ * @generated from protobuf field: uint64 id = 1;
23
23
  */
24
- id: string;
24
+ id: number;
25
25
  /**
26
26
  * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
27
27
  */
@@ -83,7 +83,7 @@ export interface Email {
83
83
  class Email$Type extends MessageType<Email> {
84
84
  constructor() {
85
85
  super("resources.mailer.Email", [
86
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
86
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
87
87
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
88
88
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
89
89
  { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
@@ -101,7 +101,7 @@ class Email$Type extends MessageType<Email> {
101
101
  }
102
102
  create(value?: PartialMessage<Email>): Email {
103
103
  const message = globalThis.Object.create((this.messagePrototype!));
104
- message.id = "0";
104
+ message.id = 0;
105
105
  message.deactivated = false;
106
106
  message.email = "";
107
107
  message.internal = false;
@@ -114,8 +114,8 @@ class Email$Type extends MessageType<Email> {
114
114
  while (reader.pos < end) {
115
115
  let [fieldNo, wireType] = reader.tag();
116
116
  switch (fieldNo) {
117
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
118
- message.id = reader.uint64().toString();
117
+ case /* uint64 id */ 1:
118
+ message.id = reader.uint64().toNumber();
119
119
  break;
120
120
  case /* resources.timestamp.Timestamp created_at */ 2:
121
121
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -168,8 +168,8 @@ class Email$Type extends MessageType<Email> {
168
168
  return message;
169
169
  }
170
170
  internalBinaryWrite(message: Email, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
171
- /* uint64 id = 1 [jstype = JS_STRING]; */
172
- if (message.id !== "0")
171
+ /* uint64 id = 1; */
172
+ if (message.id !== 0)
173
173
  writer.tag(1, WireType.Varint).uint64(message.id);
174
174
  /* resources.timestamp.Timestamp created_at = 2; */
175
175
  if (message.createdAt)