@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
@@ -30,17 +30,17 @@ export interface UnitAccess {
30
30
  */
31
31
  export interface UnitJobAccess {
32
32
  /**
33
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
33
+ * @generated from protobuf field: uint64 id = 1;
34
34
  */
35
- id: string;
35
+ id: number;
36
36
  /**
37
37
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
38
38
  */
39
39
  createdAt?: Timestamp;
40
40
  /**
41
- * @generated from protobuf field: uint64 target_id = 3 [jstype = JS_STRING];
41
+ * @generated from protobuf field: uint64 target_id = 3;
42
42
  */
43
- targetId: string; // @gotags: alias:"calendar_id"
43
+ targetId: number; // @gotags: alias:"calendar_id"
44
44
  /**
45
45
  * @generated from protobuf field: string job = 4;
46
46
  */
@@ -72,21 +72,21 @@ export interface UnitUserAccess {
72
72
  */
73
73
  export interface UnitQualificationAccess {
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
- * @generated from protobuf field: uint64 qualification_id = 4 [jstype = JS_STRING];
87
+ * @generated from protobuf field: uint64 qualification_id = 4;
88
88
  */
89
- qualificationId: string;
89
+ qualificationId: number;
90
90
  /**
91
91
  * @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5;
92
92
  */
@@ -172,9 +172,9 @@ export const UnitAccess = new UnitAccess$Type();
172
172
  class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
173
173
  constructor() {
174
174
  super("resources.centrum.UnitJobAccess", [
175
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
175
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
176
176
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
177
- { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
177
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
178
178
  { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
179
179
  { no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
180
180
  { no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
@@ -184,8 +184,8 @@ class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
184
184
  }
185
185
  create(value?: PartialMessage<UnitJobAccess>): UnitJobAccess {
186
186
  const message = globalThis.Object.create((this.messagePrototype!));
187
- message.id = "0";
188
- message.targetId = "0";
187
+ message.id = 0;
188
+ message.targetId = 0;
189
189
  message.job = "";
190
190
  message.minimumGrade = 0;
191
191
  message.access = 0;
@@ -198,14 +198,14 @@ class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
198
198
  while (reader.pos < end) {
199
199
  let [fieldNo, wireType] = reader.tag();
200
200
  switch (fieldNo) {
201
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
202
- message.id = reader.uint64().toString();
201
+ case /* uint64 id */ 1:
202
+ message.id = reader.uint64().toNumber();
203
203
  break;
204
204
  case /* optional resources.timestamp.Timestamp created_at */ 2:
205
205
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
206
206
  break;
207
- case /* uint64 target_id = 3 [jstype = JS_STRING];*/ 3:
208
- message.targetId = reader.uint64().toString();
207
+ case /* uint64 target_id */ 3:
208
+ message.targetId = reader.uint64().toNumber();
209
209
  break;
210
210
  case /* string job */ 4:
211
211
  message.job = reader.string();
@@ -234,14 +234,14 @@ class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
234
234
  return message;
235
235
  }
236
236
  internalBinaryWrite(message: UnitJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
237
- /* uint64 id = 1 [jstype = JS_STRING]; */
238
- if (message.id !== "0")
237
+ /* uint64 id = 1; */
238
+ if (message.id !== 0)
239
239
  writer.tag(1, WireType.Varint).uint64(message.id);
240
240
  /* optional resources.timestamp.Timestamp created_at = 2; */
241
241
  if (message.createdAt)
242
242
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
243
- /* uint64 target_id = 3 [jstype = JS_STRING]; */
244
- if (message.targetId !== "0")
243
+ /* uint64 target_id = 3; */
244
+ if (message.targetId !== 0)
245
245
  writer.tag(3, WireType.Varint).uint64(message.targetId);
246
246
  /* string job = 4; */
247
247
  if (message.job !== "")
@@ -297,19 +297,19 @@ export const UnitUserAccess = new UnitUserAccess$Type();
297
297
  class UnitQualificationAccess$Type extends MessageType<UnitQualificationAccess> {
298
298
  constructor() {
299
299
  super("resources.centrum.UnitQualificationAccess", [
300
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
300
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
301
301
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
302
- { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
303
- { no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
302
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
303
+ { no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
304
304
  { no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
305
305
  { no: 6, name: "access", kind: "enum", T: () => ["resources.centrum.UnitAccessLevel", UnitAccessLevel, "UNIT_ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
306
306
  ]);
307
307
  }
308
308
  create(value?: PartialMessage<UnitQualificationAccess>): UnitQualificationAccess {
309
309
  const message = globalThis.Object.create((this.messagePrototype!));
310
- message.id = "0";
311
- message.targetId = "0";
312
- message.qualificationId = "0";
310
+ message.id = 0;
311
+ message.targetId = 0;
312
+ message.qualificationId = 0;
313
313
  message.access = 0;
314
314
  if (value !== undefined)
315
315
  reflectionMergePartial<UnitQualificationAccess>(this, message, value);
@@ -320,17 +320,17 @@ class UnitQualificationAccess$Type extends MessageType<UnitQualificationAccess>
320
320
  while (reader.pos < end) {
321
321
  let [fieldNo, wireType] = reader.tag();
322
322
  switch (fieldNo) {
323
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
324
- message.id = reader.uint64().toString();
323
+ case /* uint64 id */ 1:
324
+ message.id = reader.uint64().toNumber();
325
325
  break;
326
326
  case /* optional resources.timestamp.Timestamp created_at */ 2:
327
327
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
328
328
  break;
329
- case /* uint64 target_id = 3 [jstype = JS_STRING];*/ 3:
330
- message.targetId = reader.uint64().toString();
329
+ case /* uint64 target_id */ 3:
330
+ message.targetId = reader.uint64().toNumber();
331
331
  break;
332
- case /* uint64 qualification_id = 4 [jstype = JS_STRING];*/ 4:
333
- message.qualificationId = reader.uint64().toString();
332
+ case /* uint64 qualification_id */ 4:
333
+ message.qualificationId = reader.uint64().toNumber();
334
334
  break;
335
335
  case /* optional resources.qualifications.QualificationShort qualification */ 5:
336
336
  message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
@@ -350,17 +350,17 @@ class UnitQualificationAccess$Type extends MessageType<UnitQualificationAccess>
350
350
  return message;
351
351
  }
352
352
  internalBinaryWrite(message: UnitQualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
353
- /* uint64 id = 1 [jstype = JS_STRING]; */
354
- if (message.id !== "0")
353
+ /* uint64 id = 1; */
354
+ if (message.id !== 0)
355
355
  writer.tag(1, WireType.Varint).uint64(message.id);
356
356
  /* optional resources.timestamp.Timestamp created_at = 2; */
357
357
  if (message.createdAt)
358
358
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
359
- /* uint64 target_id = 3 [jstype = JS_STRING]; */
360
- if (message.targetId !== "0")
359
+ /* uint64 target_id = 3; */
360
+ if (message.targetId !== 0)
361
361
  writer.tag(3, WireType.Varint).uint64(message.targetId);
362
- /* uint64 qualification_id = 4 [jstype = JS_STRING]; */
363
- if (message.qualificationId !== "0")
362
+ /* uint64 qualification_id = 4; */
363
+ if (message.qualificationId !== 0)
364
364
  writer.tag(4, WireType.Varint).uint64(message.qualificationId);
365
365
  /* optional resources.qualifications.QualificationShort qualification = 5; */
366
366
  if (message.qualification)
@@ -20,9 +20,9 @@ import { Timestamp } from "../timestamp/timestamp";
20
20
  */
21
21
  export interface Dispatch {
22
22
  /**
23
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
23
+ * @generated from protobuf field: uint64 id = 1;
24
24
  */
25
- id: string; // @gotags: sql:"primary_key" alias:"id"
25
+ id: number; // @gotags: sql:"primary_key" alias:"id"
26
26
  /**
27
27
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
28
28
  */
@@ -95,9 +95,9 @@ export interface Dispatch {
95
95
  */
96
96
  export interface DispatchAssignments {
97
97
  /**
98
- * @generated from protobuf field: uint64 dispatch_id = 1 [jstype = JS_STRING];
98
+ * @generated from protobuf field: uint64 dispatch_id = 1;
99
99
  */
100
- dispatchId: string;
100
+ dispatchId: number;
101
101
  /**
102
102
  * @generated from protobuf field: string job = 2;
103
103
  */
@@ -112,13 +112,13 @@ export interface DispatchAssignments {
112
112
  */
113
113
  export interface DispatchAssignment {
114
114
  /**
115
- * @generated from protobuf field: uint64 dispatch_id = 1 [jstype = JS_STRING];
115
+ * @generated from protobuf field: uint64 dispatch_id = 1;
116
116
  */
117
- dispatchId: string; // @gotags: sql:"primary_key" alias:"dispatch_id"
117
+ dispatchId: number; // @gotags: sql:"primary_key" alias:"dispatch_id"
118
118
  /**
119
- * @generated from protobuf field: uint64 unit_id = 2 [jstype = JS_STRING];
119
+ * @generated from protobuf field: uint64 unit_id = 2;
120
120
  */
121
- unitId: string; // @gotags: sql:"primary_key" alias:"unit_id"
121
+ unitId: number; // @gotags: sql:"primary_key" alias:"unit_id"
122
122
  /**
123
123
  * @generated from protobuf field: optional resources.centrum.Unit unit = 3;
124
124
  */
@@ -137,21 +137,21 @@ export interface DispatchAssignment {
137
137
  */
138
138
  export interface DispatchStatus {
139
139
  /**
140
- * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
140
+ * @generated from protobuf field: uint64 id = 1;
141
141
  */
142
- id: string; // @gotags: sql:"primary_key" alias:"id"
142
+ id: number; // @gotags: sql:"primary_key" alias:"id"
143
143
  /**
144
144
  * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
145
145
  */
146
146
  createdAt?: Timestamp;
147
147
  /**
148
- * @generated from protobuf field: uint64 dispatch_id = 3 [jstype = JS_STRING];
148
+ * @generated from protobuf field: uint64 dispatch_id = 3;
149
149
  */
150
- dispatchId: string;
150
+ dispatchId: number;
151
151
  /**
152
- * @generated from protobuf field: optional uint64 unit_id = 4 [jstype = JS_STRING];
152
+ * @generated from protobuf field: optional uint64 unit_id = 4;
153
153
  */
154
- unitId?: string;
154
+ unitId?: number;
155
155
  /**
156
156
  * @generated from protobuf field: optional resources.centrum.Unit unit = 5;
157
157
  */
@@ -209,9 +209,9 @@ export interface DispatchReferences {
209
209
  */
210
210
  export interface DispatchReference {
211
211
  /**
212
- * @generated from protobuf field: uint64 target_dispatch_id = 1 [jstype = JS_STRING];
212
+ * @generated from protobuf field: uint64 target_dispatch_id = 1;
213
213
  */
214
- targetDispatchId: string;
214
+ targetDispatchId: number;
215
215
  /**
216
216
  * @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2;
217
217
  */
@@ -324,7 +324,7 @@ export enum DispatchReferenceType {
324
324
  class Dispatch$Type extends MessageType<Dispatch> {
325
325
  constructor() {
326
326
  super("resources.centrum.Dispatch", [
327
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
327
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
328
328
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
329
329
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
330
330
  { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
@@ -344,7 +344,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
344
344
  }
345
345
  create(value?: PartialMessage<Dispatch>): Dispatch {
346
346
  const message = globalThis.Object.create((this.messagePrototype!));
347
- message.id = "0";
347
+ message.id = 0;
348
348
  message.job = "";
349
349
  message.message = "";
350
350
  message.x = 0;
@@ -360,8 +360,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
360
360
  while (reader.pos < end) {
361
361
  let [fieldNo, wireType] = reader.tag();
362
362
  switch (fieldNo) {
363
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
364
- message.id = reader.uint64().toString();
363
+ case /* uint64 id */ 1:
364
+ message.id = reader.uint64().toNumber();
365
365
  break;
366
366
  case /* optional resources.timestamp.Timestamp created_at */ 2:
367
367
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -420,8 +420,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
420
420
  return message;
421
421
  }
422
422
  internalBinaryWrite(message: Dispatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
423
- /* uint64 id = 1 [jstype = JS_STRING]; */
424
- if (message.id !== "0")
423
+ /* uint64 id = 1; */
424
+ if (message.id !== 0)
425
425
  writer.tag(1, WireType.Varint).uint64(message.id);
426
426
  /* optional resources.timestamp.Timestamp created_at = 2; */
427
427
  if (message.createdAt)
@@ -482,14 +482,14 @@ export const Dispatch = new Dispatch$Type();
482
482
  class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
483
483
  constructor() {
484
484
  super("resources.centrum.DispatchAssignments", [
485
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
485
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
486
486
  { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
487
487
  { no: 3, name: "units", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DispatchAssignment }
488
488
  ]);
489
489
  }
490
490
  create(value?: PartialMessage<DispatchAssignments>): DispatchAssignments {
491
491
  const message = globalThis.Object.create((this.messagePrototype!));
492
- message.dispatchId = "0";
492
+ message.dispatchId = 0;
493
493
  message.job = "";
494
494
  message.units = [];
495
495
  if (value !== undefined)
@@ -501,8 +501,8 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
501
501
  while (reader.pos < end) {
502
502
  let [fieldNo, wireType] = reader.tag();
503
503
  switch (fieldNo) {
504
- case /* uint64 dispatch_id = 1 [jstype = JS_STRING];*/ 1:
505
- message.dispatchId = reader.uint64().toString();
504
+ case /* uint64 dispatch_id */ 1:
505
+ message.dispatchId = reader.uint64().toNumber();
506
506
  break;
507
507
  case /* string job */ 2:
508
508
  message.job = reader.string();
@@ -522,8 +522,8 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
522
522
  return message;
523
523
  }
524
524
  internalBinaryWrite(message: DispatchAssignments, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
525
- /* uint64 dispatch_id = 1 [jstype = JS_STRING]; */
526
- if (message.dispatchId !== "0")
525
+ /* uint64 dispatch_id = 1; */
526
+ if (message.dispatchId !== 0)
527
527
  writer.tag(1, WireType.Varint).uint64(message.dispatchId);
528
528
  /* string job = 2; */
529
529
  if (message.job !== "")
@@ -545,8 +545,8 @@ export const DispatchAssignments = new DispatchAssignments$Type();
545
545
  class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
546
546
  constructor() {
547
547
  super("resources.centrum.DispatchAssignment", [
548
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
549
- { no: 2, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
548
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
549
+ { no: 2, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
550
550
  { no: 3, name: "unit", kind: "message", T: () => Unit },
551
551
  { no: 4, name: "created_at", kind: "message", T: () => Timestamp },
552
552
  { no: 5, name: "expires_at", kind: "message", T: () => Timestamp }
@@ -554,8 +554,8 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
554
554
  }
555
555
  create(value?: PartialMessage<DispatchAssignment>): DispatchAssignment {
556
556
  const message = globalThis.Object.create((this.messagePrototype!));
557
- message.dispatchId = "0";
558
- message.unitId = "0";
557
+ message.dispatchId = 0;
558
+ message.unitId = 0;
559
559
  if (value !== undefined)
560
560
  reflectionMergePartial<DispatchAssignment>(this, message, value);
561
561
  return message;
@@ -565,11 +565,11 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
565
565
  while (reader.pos < end) {
566
566
  let [fieldNo, wireType] = reader.tag();
567
567
  switch (fieldNo) {
568
- case /* uint64 dispatch_id = 1 [jstype = JS_STRING];*/ 1:
569
- message.dispatchId = reader.uint64().toString();
568
+ case /* uint64 dispatch_id */ 1:
569
+ message.dispatchId = reader.uint64().toNumber();
570
570
  break;
571
- case /* uint64 unit_id = 2 [jstype = JS_STRING];*/ 2:
572
- message.unitId = reader.uint64().toString();
571
+ case /* uint64 unit_id */ 2:
572
+ message.unitId = reader.uint64().toNumber();
573
573
  break;
574
574
  case /* optional resources.centrum.Unit unit */ 3:
575
575
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
@@ -592,11 +592,11 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
592
592
  return message;
593
593
  }
594
594
  internalBinaryWrite(message: DispatchAssignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
595
- /* uint64 dispatch_id = 1 [jstype = JS_STRING]; */
596
- if (message.dispatchId !== "0")
595
+ /* uint64 dispatch_id = 1; */
596
+ if (message.dispatchId !== 0)
597
597
  writer.tag(1, WireType.Varint).uint64(message.dispatchId);
598
- /* uint64 unit_id = 2 [jstype = JS_STRING]; */
599
- if (message.unitId !== "0")
598
+ /* uint64 unit_id = 2; */
599
+ if (message.unitId !== 0)
600
600
  writer.tag(2, WireType.Varint).uint64(message.unitId);
601
601
  /* optional resources.centrum.Unit unit = 3; */
602
602
  if (message.unit)
@@ -621,10 +621,10 @@ export const DispatchAssignment = new DispatchAssignment$Type();
621
621
  class DispatchStatus$Type extends MessageType<DispatchStatus> {
622
622
  constructor() {
623
623
  super("resources.centrum.DispatchStatus", [
624
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
624
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
625
625
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
626
- { no: 3, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
627
- { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
626
+ { no: 3, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
627
+ { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
628
628
  { no: 5, name: "unit", kind: "message", T: () => Unit },
629
629
  { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
630
630
  { no: 7, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
@@ -638,8 +638,8 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
638
638
  }
639
639
  create(value?: PartialMessage<DispatchStatus>): DispatchStatus {
640
640
  const message = globalThis.Object.create((this.messagePrototype!));
641
- message.id = "0";
642
- message.dispatchId = "0";
641
+ message.id = 0;
642
+ message.dispatchId = 0;
643
643
  message.status = 0;
644
644
  if (value !== undefined)
645
645
  reflectionMergePartial<DispatchStatus>(this, message, value);
@@ -650,17 +650,17 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
650
650
  while (reader.pos < end) {
651
651
  let [fieldNo, wireType] = reader.tag();
652
652
  switch (fieldNo) {
653
- case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
654
- message.id = reader.uint64().toString();
653
+ case /* uint64 id */ 1:
654
+ message.id = reader.uint64().toNumber();
655
655
  break;
656
656
  case /* optional resources.timestamp.Timestamp created_at */ 2:
657
657
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
658
658
  break;
659
- case /* uint64 dispatch_id = 3 [jstype = JS_STRING];*/ 3:
660
- message.dispatchId = reader.uint64().toString();
659
+ case /* uint64 dispatch_id */ 3:
660
+ message.dispatchId = reader.uint64().toNumber();
661
661
  break;
662
- case /* optional uint64 unit_id = 4 [jstype = JS_STRING];*/ 4:
663
- message.unitId = reader.uint64().toString();
662
+ case /* optional uint64 unit_id */ 4:
663
+ message.unitId = reader.uint64().toNumber();
664
664
  break;
665
665
  case /* optional resources.centrum.Unit unit */ 5:
666
666
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
@@ -701,16 +701,16 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
701
701
  return message;
702
702
  }
703
703
  internalBinaryWrite(message: DispatchStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
704
- /* uint64 id = 1 [jstype = JS_STRING]; */
705
- if (message.id !== "0")
704
+ /* uint64 id = 1; */
705
+ if (message.id !== 0)
706
706
  writer.tag(1, WireType.Varint).uint64(message.id);
707
707
  /* optional resources.timestamp.Timestamp created_at = 2; */
708
708
  if (message.createdAt)
709
709
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
710
- /* uint64 dispatch_id = 3 [jstype = JS_STRING]; */
711
- if (message.dispatchId !== "0")
710
+ /* uint64 dispatch_id = 3; */
711
+ if (message.dispatchId !== 0)
712
712
  writer.tag(3, WireType.Varint).uint64(message.dispatchId);
713
- /* optional uint64 unit_id = 4 [jstype = JS_STRING]; */
713
+ /* optional uint64 unit_id = 4; */
714
714
  if (message.unitId !== undefined)
715
715
  writer.tag(4, WireType.Varint).uint64(message.unitId);
716
716
  /* optional resources.centrum.Unit unit = 5; */
@@ -801,13 +801,13 @@ export const DispatchReferences = new DispatchReferences$Type();
801
801
  class DispatchReference$Type extends MessageType<DispatchReference> {
802
802
  constructor() {
803
803
  super("resources.centrum.DispatchReference", [
804
- { no: 1, name: "target_dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
804
+ { no: 1, name: "target_dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
805
805
  { no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
806
806
  ]);
807
807
  }
808
808
  create(value?: PartialMessage<DispatchReference>): DispatchReference {
809
809
  const message = globalThis.Object.create((this.messagePrototype!));
810
- message.targetDispatchId = "0";
810
+ message.targetDispatchId = 0;
811
811
  message.referenceType = 0;
812
812
  if (value !== undefined)
813
813
  reflectionMergePartial<DispatchReference>(this, message, value);
@@ -818,8 +818,8 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
818
818
  while (reader.pos < end) {
819
819
  let [fieldNo, wireType] = reader.tag();
820
820
  switch (fieldNo) {
821
- case /* uint64 target_dispatch_id = 1 [jstype = JS_STRING];*/ 1:
822
- message.targetDispatchId = reader.uint64().toString();
821
+ case /* uint64 target_dispatch_id */ 1:
822
+ message.targetDispatchId = reader.uint64().toNumber();
823
823
  break;
824
824
  case /* resources.centrum.DispatchReferenceType reference_type */ 2:
825
825
  message.referenceType = reader.int32();
@@ -836,8 +836,8 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
836
836
  return message;
837
837
  }
838
838
  internalBinaryWrite(message: DispatchReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
839
- /* uint64 target_dispatch_id = 1 [jstype = JS_STRING]; */
840
- if (message.targetDispatchId !== "0")
839
+ /* uint64 target_dispatch_id = 1; */
840
+ if (message.targetDispatchId !== 0)
841
841
  writer.tag(1, WireType.Varint).uint64(message.targetDispatchId);
842
842
  /* resources.centrum.DispatchReferenceType reference_type = 2; */
843
843
  if (message.referenceType !== 0)
@@ -41,9 +41,9 @@ export interface Disponents {
41
41
  */
42
42
  export interface UserUnitMapping {
43
43
  /**
44
- * @generated from protobuf field: uint64 unit_id = 1 [jstype = JS_STRING];
44
+ * @generated from protobuf field: uint64 unit_id = 1;
45
45
  */
46
- unitId: string;
46
+ unitId: number;
47
47
  /**
48
48
  * @generated from protobuf field: string job = 2;
49
49
  */
@@ -163,7 +163,7 @@ export const Disponents = new Disponents$Type();
163
163
  class UserUnitMapping$Type extends MessageType<UserUnitMapping> {
164
164
  constructor() {
165
165
  super("resources.centrum.UserUnitMapping", [
166
- { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
166
+ { no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
167
167
  { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
168
168
  { no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
169
169
  { no: 4, name: "created_at", kind: "message", T: () => Timestamp }
@@ -171,7 +171,7 @@ class UserUnitMapping$Type extends MessageType<UserUnitMapping> {
171
171
  }
172
172
  create(value?: PartialMessage<UserUnitMapping>): UserUnitMapping {
173
173
  const message = globalThis.Object.create((this.messagePrototype!));
174
- message.unitId = "0";
174
+ message.unitId = 0;
175
175
  message.job = "";
176
176
  message.userId = 0;
177
177
  if (value !== undefined)
@@ -183,8 +183,8 @@ class UserUnitMapping$Type extends MessageType<UserUnitMapping> {
183
183
  while (reader.pos < end) {
184
184
  let [fieldNo, wireType] = reader.tag();
185
185
  switch (fieldNo) {
186
- case /* uint64 unit_id = 1 [jstype = JS_STRING];*/ 1:
187
- message.unitId = reader.uint64().toString();
186
+ case /* uint64 unit_id */ 1:
187
+ message.unitId = reader.uint64().toNumber();
188
188
  break;
189
189
  case /* string job */ 2:
190
190
  message.job = reader.string();
@@ -207,8 +207,8 @@ class UserUnitMapping$Type extends MessageType<UserUnitMapping> {
207
207
  return message;
208
208
  }
209
209
  internalBinaryWrite(message: UserUnitMapping, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
210
- /* uint64 unit_id = 1 [jstype = JS_STRING]; */
211
- if (message.unitId !== "0")
210
+ /* uint64 unit_id = 1; */
211
+ if (message.unitId !== 0)
212
212
  writer.tag(1, WireType.Varint).uint64(message.unitId);
213
213
  /* string job = 2; */
214
214
  if (message.job !== "")