@fivenet-app/gen 2025.9.1 → 2026.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 (134) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +186 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +140 -8
  7. package/resources/accounts/accounts.ts +98 -31
  8. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
  9. package/resources/audit/audit.ts +156 -38
  10. package/resources/calendar/{access.ts → access/access.ts} +30 -30
  11. package/resources/calendar/calendar.ts +17 -477
  12. package/resources/calendar/entries/entries.ts +474 -0
  13. package/resources/centrum/{access.ts → access/access.ts} +22 -22
  14. package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
  15. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
  16. package/resources/centrum/joblist.ts +136 -0
  17. package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
  18. package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
  19. package/resources/centrum/{units.ts → units/units.ts} +131 -51
  20. package/resources/citizens/labels/labels.ts +526 -0
  21. package/resources/{users → citizens/licenses}/licenses.ts +17 -17
  22. package/resources/clientconfig/clientconfig.ts +126 -258
  23. package/resources/collab/collab.ts +4 -16
  24. package/resources/common/content/content.ts +108 -85
  25. package/resources/common/content/diff_activity.ts +267 -0
  26. package/resources/common/i18n.ts +2 -2
  27. package/resources/{common/cron → cron}/cron.ts +43 -43
  28. package/resources/documents/{access.ts → access/access.ts} +29 -52
  29. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  30. package/resources/documents/approval/approval.ts +945 -0
  31. package/resources/documents/{category.ts → category/category.ts} +7 -7
  32. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  33. package/resources/documents/data/data.ts +303 -0
  34. package/resources/documents/documents.ts +282 -667
  35. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  36. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  37. package/resources/documents/references/references.ts +187 -0
  38. package/resources/documents/relations/relations.ts +184 -0
  39. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  40. package/resources/documents/stamps/stamp.ts +355 -0
  41. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  42. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  43. package/resources/file/filestore.ts +1 -1
  44. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  45. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  46. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  47. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  48. package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
  49. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  50. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  51. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  52. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  53. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  54. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  55. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  56. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  57. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  58. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  59. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  60. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  61. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  62. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  63. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  64. package/resources/notifications/notifications.ts +4 -4
  65. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  66. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  67. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  68. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  69. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  70. package/resources/qualifications/qualifications.ts +51 -179
  71. package/resources/settings/banner.ts +3 -3
  72. package/resources/settings/config.ts +527 -25
  73. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  74. package/resources/settings/perms.ts +14 -14
  75. package/resources/stats/stats.ts +379 -0
  76. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  77. package/resources/sync/{data.ts → data/data.ts} +405 -59
  78. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  79. package/resources/users/{activity.ts → activity/activity.ts} +242 -101
  80. package/resources/users/{props.ts → props/props.ts} +91 -69
  81. package/resources/users/short/user.ts +184 -0
  82. package/resources/users/{users.ts → user.ts} +266 -195
  83. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  84. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  85. package/resources/vehicles/vehicles.ts +20 -8
  86. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  87. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  88. package/resources/wiki/page.ts +39 -15
  89. package/services/auth/auth.client.ts +23 -10
  90. package/services/auth/auth.ts +445 -262
  91. package/services/calendar/calendar.ts +56 -34
  92. package/services/centrum/centrum.ts +127 -127
  93. package/services/citizens/citizens.client.ts +0 -13
  94. package/services/citizens/citizens.ts +44 -134
  95. package/services/citizens/labels.client.ts +77 -0
  96. package/services/citizens/labels.ts +455 -0
  97. package/services/completor/completor.ts +36 -16
  98. package/services/documents/approval.client.ts +188 -0
  99. package/services/documents/approval.ts +1776 -0
  100. package/services/documents/documents.ts +164 -186
  101. package/services/documents/forms.client.ts +51 -0
  102. package/services/documents/forms.ts +232 -0
  103. package/services/documents/stamps.client.ts +77 -0
  104. package/services/documents/stamps.ts +481 -0
  105. package/services/documents/stats.client.ts +38 -0
  106. package/services/documents/stats.ts +245 -0
  107. package/services/jobs/conduct.client.ts +30 -3
  108. package/services/jobs/conduct.ts +159 -33
  109. package/services/jobs/jobs.ts +43 -43
  110. package/services/jobs/stats.client.ts +38 -0
  111. package/services/jobs/stats.ts +207 -0
  112. package/services/jobs/timeclock.ts +39 -39
  113. package/services/livemap/livemap.ts +18 -18
  114. package/services/mailer/mailer.ts +78 -78
  115. package/services/notifications/notifications.ts +35 -35
  116. package/services/qualifications/qualifications.ts +81 -46
  117. package/services/settings/accounts.client.ts +23 -10
  118. package/services/settings/accounts.ts +191 -30
  119. package/services/settings/cron.client.ts +13 -0
  120. package/services/settings/cron.ts +118 -5
  121. package/services/settings/laws.ts +1 -1
  122. package/services/settings/settings.ts +73 -52
  123. package/services/settings/system.client.ts +13 -0
  124. package/services/settings/system.ts +115 -15
  125. package/services/stats/stats.client.ts +7 -7
  126. package/services/stats/stats.ts +24 -24
  127. package/services/sync/sync.client.ts +271 -37
  128. package/services/sync/sync.ts +1525 -421
  129. package/services/vehicles/vehicles.ts +8 -8
  130. package/services/wiki/wiki.ts +8 -8
  131. package/svcs.ts +100 -6
  132. package/resources/centrum/attributes.ts +0 -183
  133. package/resources/documents/signoff.ts +0 -55
  134. package/resources/users/labels.ts +0 -160
@@ -1,5 +1,5 @@
1
1
  // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
- // @generated from protobuf file "resources/centrum/dispatches.proto" (package "resources.centrum", syntax proto3)
2
+ // @generated from protobuf file "resources/centrum/dispatches/dispatches.proto" (package "resources.centrum.dispatches", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -11,13 +11,13 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
12
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
13
  import { MessageType } from "@protobuf-ts/runtime";
14
- import { Colleague } from "../jobs/colleagues";
15
- import { Unit } from "./units";
16
- import { User } from "../users/users";
17
- import { DispatchAttributes } from "./attributes";
18
- import { Timestamp } from "../timestamp/timestamp";
14
+ import { Colleague } from "../../jobs/colleagues/colleagues";
15
+ import { Unit } from "../units/units";
16
+ import { User } from "../../users/user";
17
+ import { JobList } from "../joblist";
18
+ import { Timestamp } from "../../timestamp/timestamp";
19
19
  /**
20
- * @generated from protobuf message resources.centrum.Dispatch
20
+ * @generated from protobuf message resources.centrum.dispatches.Dispatch
21
21
  */
22
22
  export interface Dispatch {
23
23
  /**
@@ -42,7 +42,7 @@ export interface Dispatch {
42
42
  */
43
43
  jobs?: JobList;
44
44
  /**
45
- * @generated from protobuf field: optional resources.centrum.DispatchStatus status = 5
45
+ * @generated from protobuf field: optional resources.centrum.dispatches.DispatchStatus status = 5
46
46
  */
47
47
  status?: DispatchStatus;
48
48
  /**
@@ -54,7 +54,7 @@ export interface Dispatch {
54
54
  */
55
55
  description?: string;
56
56
  /**
57
- * @generated from protobuf field: optional resources.centrum.DispatchAttributes attributes = 9
57
+ * @generated from protobuf field: optional resources.centrum.dispatches.DispatchAttributes attributes = 9
58
58
  */
59
59
  attributes?: DispatchAttributes;
60
60
  /**
@@ -82,38 +82,16 @@ export interface Dispatch {
82
82
  */
83
83
  creator?: User;
84
84
  /**
85
- * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 16
85
+ * @generated from protobuf field: repeated resources.centrum.dispatches.DispatchAssignment units = 16
86
86
  */
87
87
  units: DispatchAssignment[];
88
88
  /**
89
- * @generated from protobuf field: optional resources.centrum.DispatchReferences references = 17
89
+ * @generated from protobuf field: optional resources.centrum.dispatches.DispatchReferences references = 17
90
90
  */
91
91
  references?: DispatchReferences;
92
92
  }
93
93
  /**
94
- * @generated from protobuf message resources.centrum.JobList
95
- */
96
- export interface JobList {
97
- /**
98
- * @generated from protobuf field: repeated resources.centrum.JobListEntry jobs = 1
99
- */
100
- jobs: JobListEntry[];
101
- }
102
- /**
103
- * @generated from protobuf message resources.centrum.JobListEntry
104
- */
105
- export interface JobListEntry {
106
- /**
107
- * @generated from protobuf field: string name = 1
108
- */
109
- name: string;
110
- /**
111
- * @generated from protobuf field: optional string label = 2
112
- */
113
- label?: string;
114
- }
115
- /**
116
- * @generated from protobuf message resources.centrum.DispatchAssignments
94
+ * @generated from protobuf message resources.centrum.dispatches.DispatchAssignments
117
95
  */
118
96
  export interface DispatchAssignments {
119
97
  /**
@@ -125,12 +103,12 @@ export interface DispatchAssignments {
125
103
  */
126
104
  job: string;
127
105
  /**
128
- * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 3
106
+ * @generated from protobuf field: repeated resources.centrum.dispatches.DispatchAssignment units = 3
129
107
  */
130
108
  units: DispatchAssignment[];
131
109
  }
132
110
  /**
133
- * @generated from protobuf message resources.centrum.DispatchAssignment
111
+ * @generated from protobuf message resources.centrum.dispatches.DispatchAssignment
134
112
  */
135
113
  export interface DispatchAssignment {
136
114
  /**
@@ -142,7 +120,7 @@ export interface DispatchAssignment {
142
120
  */
143
121
  unitId: number;
144
122
  /**
145
- * @generated from protobuf field: optional resources.centrum.Unit unit = 3
123
+ * @generated from protobuf field: optional resources.centrum.units.Unit unit = 3
146
124
  */
147
125
  unit?: Unit;
148
126
  /**
@@ -155,7 +133,7 @@ export interface DispatchAssignment {
155
133
  expiresAt?: Timestamp;
156
134
  }
157
135
  /**
158
- * @generated from protobuf message resources.centrum.DispatchStatus
136
+ * @generated from protobuf message resources.centrum.dispatches.DispatchStatus
159
137
  */
160
138
  export interface DispatchStatus {
161
139
  /**
@@ -175,11 +153,11 @@ export interface DispatchStatus {
175
153
  */
176
154
  unitId?: number;
177
155
  /**
178
- * @generated from protobuf field: optional resources.centrum.Unit unit = 5
156
+ * @generated from protobuf field: optional resources.centrum.units.Unit unit = 5
179
157
  */
180
158
  unit?: Unit;
181
159
  /**
182
- * @generated from protobuf field: resources.centrum.StatusDispatch status = 6
160
+ * @generated from protobuf field: resources.centrum.dispatches.StatusDispatch status = 6
183
161
  */
184
162
  status: StatusDispatch;
185
163
  /**
@@ -195,7 +173,7 @@ export interface DispatchStatus {
195
173
  */
196
174
  userId?: number;
197
175
  /**
198
- * @generated from protobuf field: optional resources.jobs.Colleague user = 10
176
+ * @generated from protobuf field: optional resources.jobs.colleagues.Colleague user = 10
199
177
  */
200
178
  user?: Colleague;
201
179
  /**
@@ -216,16 +194,16 @@ export interface DispatchStatus {
216
194
  creatorJob?: string;
217
195
  }
218
196
  /**
219
- * @generated from protobuf message resources.centrum.DispatchReferences
197
+ * @generated from protobuf message resources.centrum.dispatches.DispatchReferences
220
198
  */
221
199
  export interface DispatchReferences {
222
200
  /**
223
- * @generated from protobuf field: repeated resources.centrum.DispatchReference references = 1
201
+ * @generated from protobuf field: repeated resources.centrum.dispatches.DispatchReference references = 1
224
202
  */
225
203
  references: DispatchReference[];
226
204
  }
227
205
  /**
228
- * @generated from protobuf message resources.centrum.DispatchReference
206
+ * @generated from protobuf message resources.centrum.dispatches.DispatchReference
229
207
  */
230
208
  export interface DispatchReference {
231
209
  /**
@@ -233,12 +211,21 @@ export interface DispatchReference {
233
211
  */
234
212
  targetDispatchId: number;
235
213
  /**
236
- * @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2
214
+ * @generated from protobuf field: resources.centrum.dispatches.DispatchReferenceType reference_type = 2
237
215
  */
238
216
  referenceType: DispatchReferenceType;
239
217
  }
240
218
  /**
241
- * @generated from protobuf enum resources.centrum.StatusDispatch
219
+ * @generated from protobuf message resources.centrum.dispatches.DispatchAttributes
220
+ */
221
+ export interface DispatchAttributes {
222
+ /**
223
+ * @generated from protobuf field: repeated resources.centrum.dispatches.DispatchAttribute list = 1
224
+ */
225
+ list: DispatchAttribute[];
226
+ }
227
+ /**
228
+ * @generated from protobuf enum resources.centrum.dispatches.StatusDispatch
242
229
  */
243
230
  export enum StatusDispatch {
244
231
  /**
@@ -303,7 +290,7 @@ export enum StatusDispatch {
303
290
  DELETED = 14
304
291
  }
305
292
  /**
306
- * @generated from protobuf enum resources.centrum.TakeDispatchResp
293
+ * @generated from protobuf enum resources.centrum.dispatches.TakeDispatchResp
307
294
  */
308
295
  export enum TakeDispatchResp {
309
296
  /**
@@ -324,7 +311,7 @@ export enum TakeDispatchResp {
324
311
  DECLINED = 3
325
312
  }
326
313
  /**
327
- * @generated from protobuf enum resources.centrum.DispatchReferenceType
314
+ * @generated from protobuf enum resources.centrum.dispatches.DispatchReferenceType
328
315
  */
329
316
  export enum DispatchReferenceType {
330
317
  /**
@@ -344,10 +331,35 @@ export enum DispatchReferenceType {
344
331
  */
345
332
  DUPLICATE_OF = 3
346
333
  }
334
+ /**
335
+ * @generated from protobuf enum resources.centrum.dispatches.DispatchAttribute
336
+ */
337
+ export enum DispatchAttribute {
338
+ /**
339
+ * @generated from protobuf enum value: DISPATCH_ATTRIBUTE_UNSPECIFIED = 0;
340
+ */
341
+ UNSPECIFIED = 0,
342
+ /**
343
+ * @generated from protobuf enum value: DISPATCH_ATTRIBUTE_MULTIPLE = 1;
344
+ */
345
+ MULTIPLE = 1,
346
+ /**
347
+ * @generated from protobuf enum value: DISPATCH_ATTRIBUTE_DUPLICATE = 2;
348
+ */
349
+ DUPLICATE = 2,
350
+ /**
351
+ * @generated from protobuf enum value: DISPATCH_ATTRIBUTE_TOO_OLD = 3;
352
+ */
353
+ TOO_OLD = 3,
354
+ /**
355
+ * @generated from protobuf enum value: DISPATCH_ATTRIBUTE_AUTOMATIC = 4;
356
+ */
357
+ AUTOMATIC = 4
358
+ }
347
359
  // @generated message type with reflection information, may provide speed optimized methods
348
360
  class Dispatch$Type extends MessageType<Dispatch> {
349
361
  constructor() {
350
- super("resources.centrum.Dispatch", [
362
+ super("resources.centrum.dispatches.Dispatch", [
351
363
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
352
364
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
353
365
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
@@ -400,7 +412,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
400
412
  case /* resources.centrum.JobList jobs */ 18:
401
413
  message.jobs = JobList.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
402
414
  break;
403
- case /* optional resources.centrum.DispatchStatus status */ 5:
415
+ case /* optional resources.centrum.dispatches.DispatchStatus status */ 5:
404
416
  message.status = DispatchStatus.internalBinaryRead(reader, reader.uint32(), options, message.status);
405
417
  break;
406
418
  case /* string message */ 7:
@@ -409,7 +421,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
409
421
  case /* optional string description */ 8:
410
422
  message.description = reader.string();
411
423
  break;
412
- case /* optional resources.centrum.DispatchAttributes attributes */ 9:
424
+ case /* optional resources.centrum.dispatches.DispatchAttributes attributes */ 9:
413
425
  message.attributes = DispatchAttributes.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
414
426
  break;
415
427
  case /* double x */ 10:
@@ -430,10 +442,10 @@ class Dispatch$Type extends MessageType<Dispatch> {
430
442
  case /* optional resources.users.User creator */ 15:
431
443
  message.creator = User.internalBinaryRead(reader, reader.uint32(), options, message.creator);
432
444
  break;
433
- case /* repeated resources.centrum.DispatchAssignment units */ 16:
445
+ case /* repeated resources.centrum.dispatches.DispatchAssignment units */ 16:
434
446
  message.units.push(DispatchAssignment.internalBinaryRead(reader, reader.uint32(), options));
435
447
  break;
436
- case /* optional resources.centrum.DispatchReferences references */ 17:
448
+ case /* optional resources.centrum.dispatches.DispatchReferences references */ 17:
437
449
  message.references = DispatchReferences.internalBinaryRead(reader, reader.uint32(), options, message.references);
438
450
  break;
439
451
  default:
@@ -460,7 +472,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
460
472
  /* string job = 4 [deprecated = true]; */
461
473
  if (message.job !== "")
462
474
  writer.tag(4, WireType.LengthDelimited).string(message.job);
463
- /* optional resources.centrum.DispatchStatus status = 5; */
475
+ /* optional resources.centrum.dispatches.DispatchStatus status = 5; */
464
476
  if (message.status)
465
477
  DispatchStatus.internalBinaryWrite(message.status, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
466
478
  /* string message = 7; */
@@ -469,7 +481,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
469
481
  /* optional string description = 8; */
470
482
  if (message.description !== undefined)
471
483
  writer.tag(8, WireType.LengthDelimited).string(message.description);
472
- /* optional resources.centrum.DispatchAttributes attributes = 9; */
484
+ /* optional resources.centrum.dispatches.DispatchAttributes attributes = 9; */
473
485
  if (message.attributes)
474
486
  DispatchAttributes.internalBinaryWrite(message.attributes, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
475
487
  /* double x = 10; */
@@ -490,10 +502,10 @@ class Dispatch$Type extends MessageType<Dispatch> {
490
502
  /* optional resources.users.User creator = 15; */
491
503
  if (message.creator)
492
504
  User.internalBinaryWrite(message.creator, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
493
- /* repeated resources.centrum.DispatchAssignment units = 16; */
505
+ /* repeated resources.centrum.dispatches.DispatchAssignment units = 16; */
494
506
  for (let i = 0; i < message.units.length; i++)
495
507
  DispatchAssignment.internalBinaryWrite(message.units[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
496
- /* optional resources.centrum.DispatchReferences references = 17; */
508
+ /* optional resources.centrum.dispatches.DispatchReferences references = 17; */
497
509
  if (message.references)
498
510
  DispatchReferences.internalBinaryWrite(message.references, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
499
511
  /* resources.centrum.JobList jobs = 18; */
@@ -506,114 +518,13 @@ class Dispatch$Type extends MessageType<Dispatch> {
506
518
  }
507
519
  }
508
520
  /**
509
- * @generated MessageType for protobuf message resources.centrum.Dispatch
521
+ * @generated MessageType for protobuf message resources.centrum.dispatches.Dispatch
510
522
  */
511
523
  export const Dispatch = new Dispatch$Type();
512
524
  // @generated message type with reflection information, may provide speed optimized methods
513
- class JobList$Type extends MessageType<JobList> {
514
- constructor() {
515
- super("resources.centrum.JobList", [
516
- { no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobListEntry, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } }
517
- ]);
518
- }
519
- create(value?: PartialMessage<JobList>): JobList {
520
- const message = globalThis.Object.create((this.messagePrototype!));
521
- message.jobs = [];
522
- if (value !== undefined)
523
- reflectionMergePartial<JobList>(this, message, value);
524
- return message;
525
- }
526
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobList): JobList {
527
- let message = target ?? this.create(), end = reader.pos + length;
528
- while (reader.pos < end) {
529
- let [fieldNo, wireType] = reader.tag();
530
- switch (fieldNo) {
531
- case /* repeated resources.centrum.JobListEntry jobs */ 1:
532
- message.jobs.push(JobListEntry.internalBinaryRead(reader, reader.uint32(), options));
533
- break;
534
- default:
535
- let u = options.readUnknownField;
536
- if (u === "throw")
537
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
538
- let d = reader.skip(wireType);
539
- if (u !== false)
540
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
541
- }
542
- }
543
- return message;
544
- }
545
- internalBinaryWrite(message: JobList, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
546
- /* repeated resources.centrum.JobListEntry jobs = 1; */
547
- for (let i = 0; i < message.jobs.length; i++)
548
- JobListEntry.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
549
- let u = options.writeUnknownFields;
550
- if (u !== false)
551
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
552
- return writer;
553
- }
554
- }
555
- /**
556
- * @generated MessageType for protobuf message resources.centrum.JobList
557
- */
558
- export const JobList = new JobList$Type();
559
- // @generated message type with reflection information, may provide speed optimized methods
560
- class JobListEntry$Type extends MessageType<JobListEntry> {
561
- constructor() {
562
- super("resources.centrum.JobListEntry", [
563
- { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
564
- { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
565
- ]);
566
- }
567
- create(value?: PartialMessage<JobListEntry>): JobListEntry {
568
- const message = globalThis.Object.create((this.messagePrototype!));
569
- message.name = "";
570
- if (value !== undefined)
571
- reflectionMergePartial<JobListEntry>(this, message, value);
572
- return message;
573
- }
574
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobListEntry): JobListEntry {
575
- let message = target ?? this.create(), end = reader.pos + length;
576
- while (reader.pos < end) {
577
- let [fieldNo, wireType] = reader.tag();
578
- switch (fieldNo) {
579
- case /* string name */ 1:
580
- message.name = reader.string();
581
- break;
582
- case /* optional string label */ 2:
583
- message.label = reader.string();
584
- break;
585
- default:
586
- let u = options.readUnknownField;
587
- if (u === "throw")
588
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
589
- let d = reader.skip(wireType);
590
- if (u !== false)
591
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
592
- }
593
- }
594
- return message;
595
- }
596
- internalBinaryWrite(message: JobListEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
597
- /* string name = 1; */
598
- if (message.name !== "")
599
- writer.tag(1, WireType.LengthDelimited).string(message.name);
600
- /* optional string label = 2; */
601
- if (message.label !== undefined)
602
- writer.tag(2, WireType.LengthDelimited).string(message.label);
603
- let u = options.writeUnknownFields;
604
- if (u !== false)
605
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
606
- return writer;
607
- }
608
- }
609
- /**
610
- * @generated MessageType for protobuf message resources.centrum.JobListEntry
611
- */
612
- export const JobListEntry = new JobListEntry$Type();
613
- // @generated message type with reflection information, may provide speed optimized methods
614
525
  class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
615
526
  constructor() {
616
- super("resources.centrum.DispatchAssignments", [
527
+ super("resources.centrum.dispatches.DispatchAssignments", [
617
528
  { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
618
529
  { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
619
530
  { no: 3, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchAssignment }
@@ -639,7 +550,7 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
639
550
  case /* string job */ 2:
640
551
  message.job = reader.string();
641
552
  break;
642
- case /* repeated resources.centrum.DispatchAssignment units */ 3:
553
+ case /* repeated resources.centrum.dispatches.DispatchAssignment units */ 3:
643
554
  message.units.push(DispatchAssignment.internalBinaryRead(reader, reader.uint32(), options));
644
555
  break;
645
556
  default:
@@ -660,7 +571,7 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
660
571
  /* string job = 2; */
661
572
  if (message.job !== "")
662
573
  writer.tag(2, WireType.LengthDelimited).string(message.job);
663
- /* repeated resources.centrum.DispatchAssignment units = 3; */
574
+ /* repeated resources.centrum.dispatches.DispatchAssignment units = 3; */
664
575
  for (let i = 0; i < message.units.length; i++)
665
576
  DispatchAssignment.internalBinaryWrite(message.units[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
666
577
  let u = options.writeUnknownFields;
@@ -670,13 +581,13 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
670
581
  }
671
582
  }
672
583
  /**
673
- * @generated MessageType for protobuf message resources.centrum.DispatchAssignments
584
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchAssignments
674
585
  */
675
586
  export const DispatchAssignments = new DispatchAssignments$Type();
676
587
  // @generated message type with reflection information, may provide speed optimized methods
677
588
  class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
678
589
  constructor() {
679
- super("resources.centrum.DispatchAssignment", [
590
+ super("resources.centrum.dispatches.DispatchAssignment", [
680
591
  { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"dispatch_id\"" } },
681
592
  { no: 2, name: "unit_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"unit_id\"" } },
682
593
  { no: 3, name: "unit", kind: "message", T: () => Unit },
@@ -703,7 +614,7 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
703
614
  case /* int64 unit_id */ 2:
704
615
  message.unitId = reader.int64().toNumber();
705
616
  break;
706
- case /* optional resources.centrum.Unit unit */ 3:
617
+ case /* optional resources.centrum.units.Unit unit */ 3:
707
618
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
708
619
  break;
709
620
  case /* optional resources.timestamp.Timestamp created_at */ 4:
@@ -730,7 +641,7 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
730
641
  /* int64 unit_id = 2; */
731
642
  if (message.unitId !== 0)
732
643
  writer.tag(2, WireType.Varint).int64(message.unitId);
733
- /* optional resources.centrum.Unit unit = 3; */
644
+ /* optional resources.centrum.units.Unit unit = 3; */
734
645
  if (message.unit)
735
646
  Unit.internalBinaryWrite(message.unit, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
736
647
  /* optional resources.timestamp.Timestamp created_at = 4; */
@@ -746,19 +657,19 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
746
657
  }
747
658
  }
748
659
  /**
749
- * @generated MessageType for protobuf message resources.centrum.DispatchAssignment
660
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchAssignment
750
661
  */
751
662
  export const DispatchAssignment = new DispatchAssignment$Type();
752
663
  // @generated message type with reflection information, may provide speed optimized methods
753
664
  class DispatchStatus$Type extends MessageType<DispatchStatus> {
754
665
  constructor() {
755
- super("resources.centrum.DispatchStatus", [
666
+ super("resources.centrum.dispatches.DispatchStatus", [
756
667
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
757
668
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
758
669
  { no: 3, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
759
670
  { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
760
671
  { no: 5, name: "unit", kind: "message", T: () => Unit },
761
- { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
672
+ { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
762
673
  { no: 7, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
763
674
  { no: 8, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
764
675
  { no: 9, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
@@ -795,10 +706,10 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
795
706
  case /* optional int64 unit_id */ 4:
796
707
  message.unitId = reader.int64().toNumber();
797
708
  break;
798
- case /* optional resources.centrum.Unit unit */ 5:
709
+ case /* optional resources.centrum.units.Unit unit */ 5:
799
710
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
800
711
  break;
801
- case /* resources.centrum.StatusDispatch status */ 6:
712
+ case /* resources.centrum.dispatches.StatusDispatch status */ 6:
802
713
  message.status = reader.int32();
803
714
  break;
804
715
  case /* optional string reason */ 7:
@@ -810,7 +721,7 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
810
721
  case /* optional int32 user_id */ 9:
811
722
  message.userId = reader.int32();
812
723
  break;
813
- case /* optional resources.jobs.Colleague user */ 10:
724
+ case /* optional resources.jobs.colleagues.Colleague user */ 10:
814
725
  message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
815
726
  break;
816
727
  case /* optional double x */ 11:
@@ -849,10 +760,10 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
849
760
  /* optional int64 unit_id = 4; */
850
761
  if (message.unitId !== undefined)
851
762
  writer.tag(4, WireType.Varint).int64(message.unitId);
852
- /* optional resources.centrum.Unit unit = 5; */
763
+ /* optional resources.centrum.units.Unit unit = 5; */
853
764
  if (message.unit)
854
765
  Unit.internalBinaryWrite(message.unit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
855
- /* resources.centrum.StatusDispatch status = 6; */
766
+ /* resources.centrum.dispatches.StatusDispatch status = 6; */
856
767
  if (message.status !== 0)
857
768
  writer.tag(6, WireType.Varint).int32(message.status);
858
769
  /* optional string reason = 7; */
@@ -864,7 +775,7 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
864
775
  /* optional int32 user_id = 9; */
865
776
  if (message.userId !== undefined)
866
777
  writer.tag(9, WireType.Varint).int32(message.userId);
867
- /* optional resources.jobs.Colleague user = 10; */
778
+ /* optional resources.jobs.colleagues.Colleague user = 10; */
868
779
  if (message.user)
869
780
  Colleague.internalBinaryWrite(message.user, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
870
781
  /* optional double x = 11; */
@@ -886,13 +797,13 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
886
797
  }
887
798
  }
888
799
  /**
889
- * @generated MessageType for protobuf message resources.centrum.DispatchStatus
800
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchStatus
890
801
  */
891
802
  export const DispatchStatus = new DispatchStatus$Type();
892
803
  // @generated message type with reflection information, may provide speed optimized methods
893
804
  class DispatchReferences$Type extends MessageType<DispatchReferences> {
894
805
  constructor() {
895
- super("resources.centrum.DispatchReferences", [
806
+ super("resources.centrum.dispatches.DispatchReferences", [
896
807
  { no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchReference }
897
808
  ], { "codegen.dbscanner.dbscanner": { enabled: true } });
898
809
  }
@@ -908,7 +819,7 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
908
819
  while (reader.pos < end) {
909
820
  let [fieldNo, wireType] = reader.tag();
910
821
  switch (fieldNo) {
911
- case /* repeated resources.centrum.DispatchReference references */ 1:
822
+ case /* repeated resources.centrum.dispatches.DispatchReference references */ 1:
912
823
  message.references.push(DispatchReference.internalBinaryRead(reader, reader.uint32(), options));
913
824
  break;
914
825
  default:
@@ -923,7 +834,7 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
923
834
  return message;
924
835
  }
925
836
  internalBinaryWrite(message: DispatchReferences, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
926
- /* repeated resources.centrum.DispatchReference references = 1; */
837
+ /* repeated resources.centrum.dispatches.DispatchReference references = 1; */
927
838
  for (let i = 0; i < message.references.length; i++)
928
839
  DispatchReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
929
840
  let u = options.writeUnknownFields;
@@ -933,15 +844,15 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
933
844
  }
934
845
  }
935
846
  /**
936
- * @generated MessageType for protobuf message resources.centrum.DispatchReferences
847
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchReferences
937
848
  */
938
849
  export const DispatchReferences = new DispatchReferences$Type();
939
850
  // @generated message type with reflection information, may provide speed optimized methods
940
851
  class DispatchReference$Type extends MessageType<DispatchReference> {
941
852
  constructor() {
942
- super("resources.centrum.DispatchReference", [
853
+ super("resources.centrum.dispatches.DispatchReference", [
943
854
  { no: 1, name: "target_dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
944
- { no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
855
+ { no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.dispatches.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
945
856
  ]);
946
857
  }
947
858
  create(value?: PartialMessage<DispatchReference>): DispatchReference {
@@ -960,7 +871,7 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
960
871
  case /* int64 target_dispatch_id */ 1:
961
872
  message.targetDispatchId = reader.int64().toNumber();
962
873
  break;
963
- case /* resources.centrum.DispatchReferenceType reference_type */ 2:
874
+ case /* resources.centrum.dispatches.DispatchReferenceType reference_type */ 2:
964
875
  message.referenceType = reader.int32();
965
876
  break;
966
877
  default:
@@ -978,7 +889,7 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
978
889
  /* int64 target_dispatch_id = 1; */
979
890
  if (message.targetDispatchId !== 0)
980
891
  writer.tag(1, WireType.Varint).int64(message.targetDispatchId);
981
- /* resources.centrum.DispatchReferenceType reference_type = 2; */
892
+ /* resources.centrum.dispatches.DispatchReferenceType reference_type = 2; */
982
893
  if (message.referenceType !== 0)
983
894
  writer.tag(2, WireType.Varint).int32(message.referenceType);
984
895
  let u = options.writeUnknownFields;
@@ -988,6 +899,61 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
988
899
  }
989
900
  }
990
901
  /**
991
- * @generated MessageType for protobuf message resources.centrum.DispatchReference
902
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchReference
992
903
  */
993
904
  export const DispatchReference = new DispatchReference$Type();
905
+ // @generated message type with reflection information, may provide speed optimized methods
906
+ class DispatchAttributes$Type extends MessageType<DispatchAttributes> {
907
+ constructor() {
908
+ super("resources.centrum.dispatches.DispatchAttributes", [
909
+ { no: 1, name: "list", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.DispatchAttribute", DispatchAttribute, "DISPATCH_ATTRIBUTE_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } }
910
+ ], { "codegen.dbscanner.dbscanner": { enabled: true } });
911
+ }
912
+ create(value?: PartialMessage<DispatchAttributes>): DispatchAttributes {
913
+ const message = globalThis.Object.create((this.messagePrototype!));
914
+ message.list = [];
915
+ if (value !== undefined)
916
+ reflectionMergePartial<DispatchAttributes>(this, message, value);
917
+ return message;
918
+ }
919
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchAttributes): DispatchAttributes {
920
+ let message = target ?? this.create(), end = reader.pos + length;
921
+ while (reader.pos < end) {
922
+ let [fieldNo, wireType] = reader.tag();
923
+ switch (fieldNo) {
924
+ case /* repeated resources.centrum.dispatches.DispatchAttribute list */ 1:
925
+ if (wireType === WireType.LengthDelimited)
926
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
927
+ message.list.push(reader.int32());
928
+ else
929
+ message.list.push(reader.int32());
930
+ break;
931
+ default:
932
+ let u = options.readUnknownField;
933
+ if (u === "throw")
934
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
935
+ let d = reader.skip(wireType);
936
+ if (u !== false)
937
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
938
+ }
939
+ }
940
+ return message;
941
+ }
942
+ internalBinaryWrite(message: DispatchAttributes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
943
+ /* repeated resources.centrum.dispatches.DispatchAttribute list = 1; */
944
+ if (message.list.length) {
945
+ writer.tag(1, WireType.LengthDelimited).fork();
946
+ for (let i = 0; i < message.list.length; i++)
947
+ writer.int32(message.list[i]);
948
+ writer.join();
949
+ }
950
+ let u = options.writeUnknownFields;
951
+ if (u !== false)
952
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
953
+ return writer;
954
+ }
955
+ }
956
+ /**
957
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchAttributes
958
+ */
959
+ export const DispatchAttributes = new DispatchAttributes$Type();