@fivenet-app/gen 2025.5.3 → 2026.3.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 (195) hide show
  1. package/README.md +1 -1
  2. package/buf/validate/validate.ts +11301 -0
  3. package/clients.ts +193 -154
  4. package/codegen/dbscanner/dbscanner.ts +91 -0
  5. package/codegen/perms/perms.ts +287 -0
  6. package/codegen/sanitizer/sanitizer.ts +113 -0
  7. package/google/protobuf/any.ts +4 -3
  8. package/google/protobuf/descriptor.ts +393 -239
  9. package/google/protobuf/duration.ts +4 -3
  10. package/google/protobuf/struct.ts +485 -0
  11. package/google/protobuf/timestamp.ts +4 -3
  12. package/package.json +3 -3
  13. package/perms.ts +217 -160
  14. package/resources/accounts/accounts.ts +115 -47
  15. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
  16. package/resources/audit/audit.ts +172 -53
  17. package/resources/calendar/{access.ts → access/access.ts} +72 -71
  18. package/resources/calendar/calendar.ts +79 -543
  19. package/resources/calendar/entries/entries.ts +474 -0
  20. package/resources/centrum/access/access.ts +345 -0
  21. package/resources/centrum/dispatchers/dispatchers.ts +149 -0
  22. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
  23. package/resources/centrum/joblist.ts +136 -0
  24. package/resources/centrum/settings/settings.ts +657 -0
  25. package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
  26. package/resources/centrum/{units.ts → units/units.ts} +230 -130
  27. package/resources/clientconfig/clientconfig.ts +1015 -0
  28. package/resources/collab/collab.ts +805 -0
  29. package/resources/common/content/content.ts +169 -63
  30. package/resources/common/content/diff_activity.ts +267 -0
  31. package/resources/common/database/database.ts +92 -35
  32. package/resources/common/error.ts +17 -16
  33. package/resources/common/i18n.ts +20 -24
  34. package/resources/common/id_mapping.ts +69 -0
  35. package/resources/common/tests/objects.ts +4 -3
  36. package/resources/{common/cron → cron}/cron.ts +77 -65
  37. package/resources/discord/discord.ts +209 -0
  38. package/resources/documents/{access.ts → access/access.ts} +75 -76
  39. package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
  40. package/resources/documents/approval/approval.ts +945 -0
  41. package/resources/documents/{category.ts → category/category.ts} +25 -32
  42. package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
  43. package/resources/documents/data/data.ts +303 -0
  44. package/resources/documents/documents.ts +374 -686
  45. package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
  46. package/resources/documents/pins/pins.ts +127 -0
  47. package/resources/documents/references/references.ts +187 -0
  48. package/resources/documents/relations/relations.ts +184 -0
  49. package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
  50. package/resources/documents/stamps/stamp.ts +355 -0
  51. package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
  52. package/resources/documents/workflow/workflow.ts +600 -0
  53. package/resources/file/file.ts +152 -0
  54. package/{services/settings → resources/file}/filestore.ts +179 -165
  55. package/resources/file/meta.ts +148 -0
  56. package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
  57. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
  58. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
  59. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
  60. package/resources/jobs/jobs.ts +14 -13
  61. package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
  62. package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
  63. package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
  64. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
  65. package/resources/laws/laws.ts +40 -49
  66. package/resources/livemap/coords.ts +81 -0
  67. package/resources/livemap/heatmap/heatmap.ts +93 -0
  68. package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
  69. package/resources/livemap/markers/user_marker.ts +377 -0
  70. package/resources/mailer/{access.ts → access/access.ts} +119 -118
  71. package/resources/mailer/{email.ts → emails/email.ts} +38 -41
  72. package/resources/mailer/{events.ts → events/events.ts} +44 -43
  73. package/resources/mailer/{message.ts → messages/message.ts} +69 -74
  74. package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
  75. package/resources/mailer/{template.ts → templates/template.ts} +37 -40
  76. package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
  77. package/resources/notifications/clientview/clientview.ts +239 -0
  78. package/resources/notifications/{events.ts → events/events.ts} +67 -130
  79. package/resources/notifications/notifications.ts +55 -60
  80. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
  81. package/resources/permissions/events/events.ts +149 -0
  82. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
  83. package/resources/qualifications/{access.ts → access/access.ts} +43 -42
  84. package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
  85. package/resources/qualifications/qualifications.ts +327 -388
  86. package/resources/settings/banner.ts +14 -21
  87. package/resources/settings/config.ts +663 -79
  88. package/resources/settings/data.ts +90 -0
  89. package/resources/settings/perms.ts +151 -0
  90. package/resources/settings/status.ts +533 -0
  91. package/resources/stats/stats.ts +382 -2
  92. package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
  93. package/resources/sync/data/data.ts +1001 -0
  94. package/resources/sync/data/v2/data.ts +220 -0
  95. package/resources/timestamp/timestamp.ts +3 -2
  96. package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
  97. package/resources/userinfo/userinfo.ts +442 -0
  98. package/resources/users/{activity.ts → activity/activity.ts} +182 -166
  99. package/resources/users/{labels.ts → labels/labels.ts} +27 -30
  100. package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
  101. package/resources/users/{props.ts → props/props.ts} +109 -77
  102. package/resources/users/short/user.ts +184 -0
  103. package/resources/users/user.ts +528 -0
  104. package/resources/vehicles/activity/activity.ts +231 -0
  105. package/resources/vehicles/props/props.ts +125 -0
  106. package/resources/vehicles/vehicles.ts +43 -18
  107. package/resources/wiki/{access.ts → access/access.ts} +72 -71
  108. package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
  109. package/resources/wiki/page.ts +164 -93
  110. package/services/auth/auth.client.ts +45 -35
  111. package/services/auth/auth.ts +498 -288
  112. package/services/calendar/calendar.client.ts +32 -91
  113. package/services/calendar/calendar.ts +157 -134
  114. package/services/centrum/centrum.client.ts +97 -137
  115. package/services/centrum/centrum.ts +755 -352
  116. package/services/citizens/citizens.client.ts +70 -39
  117. package/services/citizens/citizens.ts +226 -112
  118. package/services/completor/completor.client.ts +16 -35
  119. package/services/completor/completor.ts +95 -54
  120. package/services/documents/approval.client.ts +188 -0
  121. package/services/documents/approval.ts +1776 -0
  122. package/services/documents/collab.client.ts +46 -0
  123. package/services/documents/collab.ts +13 -0
  124. package/services/documents/documents.client.ts +88 -217
  125. package/services/documents/documents.ts +579 -619
  126. package/services/documents/forms.client.ts +51 -0
  127. package/services/documents/forms.ts +232 -0
  128. package/services/documents/stamps.client.ts +77 -0
  129. package/services/documents/stamps.ts +481 -0
  130. package/services/documents/stats.client.ts +38 -0
  131. package/services/documents/stats.ts +245 -0
  132. package/services/filestore/filestore.client.ts +86 -0
  133. package/services/filestore/filestore.ts +262 -0
  134. package/services/jobs/conduct.client.ts +40 -28
  135. package/services/jobs/conduct.ts +183 -56
  136. package/services/jobs/jobs.client.ts +22 -61
  137. package/services/jobs/jobs.ts +138 -121
  138. package/services/jobs/stats.client.ts +38 -0
  139. package/services/jobs/stats.ts +207 -0
  140. package/services/jobs/timeclock.client.ts +8 -19
  141. package/services/jobs/timeclock.ts +76 -75
  142. package/services/livemap/livemap.client.ts +8 -19
  143. package/services/livemap/livemap.ts +297 -126
  144. package/services/mailer/mailer.client.ts +44 -127
  145. package/services/mailer/mailer.ts +266 -269
  146. package/services/notifications/notifications.client.ts +65 -0
  147. package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
  148. package/services/qualifications/qualifications.client.ts +46 -91
  149. package/services/qualifications/qualifications.ts +250 -209
  150. package/services/settings/accounts.client.ts +31 -33
  151. package/services/settings/accounts.ts +251 -67
  152. package/services/settings/config.client.ts +6 -13
  153. package/services/settings/config.ts +8 -7
  154. package/services/settings/cron.client.ts +4 -7
  155. package/services/settings/cron.ts +7 -6
  156. package/services/settings/laws.client.ts +10 -25
  157. package/services/settings/laws.ts +30 -29
  158. package/services/settings/settings.client.ts +57 -103
  159. package/services/settings/settings.ts +237 -633
  160. package/services/settings/system.client.ts +103 -0
  161. package/services/settings/system.ts +718 -0
  162. package/services/stats/stats.client.ts +9 -8
  163. package/services/stats/stats.ts +27 -26
  164. package/services/sync/sync.client.ts +16 -15
  165. package/services/sync/sync.ts +174 -97
  166. package/services/sync/v2/sync.client.ts +331 -0
  167. package/services/sync/v2/sync.ts +1766 -0
  168. package/services/vehicles/vehicles.client.ts +17 -7
  169. package/services/vehicles/vehicles.ts +170 -25
  170. package/services/wiki/collab.client.ts +46 -0
  171. package/services/wiki/collab.ts +13 -0
  172. package/services/wiki/wiki.client.ts +28 -37
  173. package/services/wiki/wiki.ts +97 -67
  174. package/svcs.ts +174 -106
  175. package/resources/centrum/attributes.ts +0 -186
  176. package/resources/centrum/disponents.ts +0 -81
  177. package/resources/centrum/settings.ts +0 -307
  178. package/resources/documents/workflow.ts +0 -351
  179. package/resources/filestore/file.ts +0 -204
  180. package/resources/internet/access.ts +0 -358
  181. package/resources/internet/ads.ts +0 -257
  182. package/resources/internet/domain.ts +0 -328
  183. package/resources/internet/page.ts +0 -428
  184. package/resources/internet/search.ts +0 -128
  185. package/resources/livemap/tracker.ts +0 -81
  186. package/resources/sync/data.ts +0 -587
  187. package/resources/users/users.ts +0 -435
  188. package/services/internet/ads.client.ts +0 -41
  189. package/services/internet/ads.ts +0 -145
  190. package/services/internet/domain.client.ts +0 -109
  191. package/services/internet/domain.ts +0 -658
  192. package/services/internet/internet.client.ts +0 -58
  193. package/services/internet/internet.ts +0 -268
  194. package/services/notificator/notificator.client.ts +0 -76
  195. package/services/settings/filestore.client.ts +0 -75
@@ -1,5 +1,6 @@
1
- // @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
2
- // @generated from protobuf file "resources/centrum/dispatches.proto" (package "resources.centrum", syntax proto3)
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/dispatches.proto" (package "resources.centrum.dispatches", syntax proto3)
3
+ // tslint:disable
3
4
  // @ts-nocheck
4
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
6
  import type { IBinaryWriter } from "@protobuf-ts/runtime";
@@ -10,217 +11,221 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
11
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
13
  import { MessageType } from "@protobuf-ts/runtime";
13
- import { Colleague } from "../jobs/colleagues";
14
- import { Unit } from "./units";
15
- import { User } from "../users/users";
16
- import { DispatchAttributes } from "./attributes";
17
- 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";
18
19
  /**
19
- * @generated from protobuf message resources.centrum.Dispatch
20
+ * @generated from protobuf message resources.centrum.dispatches.Dispatch
20
21
  */
21
22
  export interface Dispatch {
22
23
  /**
23
- * @generated from protobuf field: uint64 id = 1;
24
+ * @generated from protobuf field: int64 id = 1
24
25
  */
25
- id: number; // @gotags: sql:"primary_key" alias:"id"
26
+ id: number;
26
27
  /**
27
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
28
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
28
29
  */
29
30
  createdAt?: Timestamp;
30
31
  /**
31
- * @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
32
+ * @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3
32
33
  */
33
34
  updatedAt?: Timestamp;
34
35
  /**
35
- * @generated from protobuf field: string job = 4;
36
+ * @deprecated
37
+ * @generated from protobuf field: string job = 4 [deprecated = true]
36
38
  */
37
39
  job: string;
38
40
  /**
39
- * @generated from protobuf field: optional resources.centrum.DispatchStatus status = 5;
41
+ * @generated from protobuf field: resources.centrum.JobList jobs = 18
42
+ */
43
+ jobs?: JobList;
44
+ /**
45
+ * @generated from protobuf field: optional resources.centrum.dispatches.DispatchStatus status = 5
40
46
  */
41
47
  status?: DispatchStatus;
42
48
  /**
43
- * @sanitize
44
- *
45
- * @generated from protobuf field: string message = 7;
49
+ * @generated from protobuf field: string message = 7
46
50
  */
47
51
  message: string;
48
52
  /**
49
- * @sanitize
50
- *
51
- * @generated from protobuf field: optional string description = 8;
53
+ * @generated from protobuf field: optional string description = 8
52
54
  */
53
55
  description?: string;
54
56
  /**
55
- * @generated from protobuf field: optional resources.centrum.DispatchAttributes attributes = 9;
57
+ * @generated from protobuf field: optional resources.centrum.dispatches.DispatchAttributes attributes = 9
56
58
  */
57
59
  attributes?: DispatchAttributes;
58
60
  /**
59
- * @generated from protobuf field: double x = 10;
61
+ * @generated from protobuf field: double x = 10
60
62
  */
61
63
  x: number;
62
64
  /**
63
- * @generated from protobuf field: double y = 11;
65
+ * @generated from protobuf field: double y = 11
64
66
  */
65
67
  y: number;
66
68
  /**
67
- * @sanitize
68
- *
69
- * @generated from protobuf field: optional string postal = 12;
69
+ * @generated from protobuf field: optional string postal = 12
70
70
  */
71
71
  postal?: string;
72
72
  /**
73
- * @generated from protobuf field: bool anon = 13;
73
+ * @generated from protobuf field: bool anon = 13
74
74
  */
75
75
  anon: boolean;
76
76
  /**
77
- * @generated from protobuf field: optional int32 creator_id = 14;
77
+ * @generated from protobuf field: optional int32 creator_id = 14
78
78
  */
79
79
  creatorId?: number;
80
80
  /**
81
- * @generated from protobuf field: optional resources.users.User creator = 15;
81
+ * @generated from protobuf field: optional resources.users.User creator = 15
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.DispatchAssignments
94
+ * @generated from protobuf message resources.centrum.dispatches.DispatchAssignments
95
95
  */
96
96
  export interface DispatchAssignments {
97
97
  /**
98
- * @generated from protobuf field: uint64 dispatch_id = 1;
98
+ * @generated from protobuf field: int64 dispatch_id = 1
99
99
  */
100
100
  dispatchId: number;
101
101
  /**
102
- * @generated from protobuf field: string job = 2;
102
+ * @generated from protobuf field: string job = 2
103
103
  */
104
104
  job: string;
105
105
  /**
106
- * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 3;
106
+ * @generated from protobuf field: repeated resources.centrum.dispatches.DispatchAssignment units = 3
107
107
  */
108
108
  units: DispatchAssignment[];
109
109
  }
110
110
  /**
111
- * @generated from protobuf message resources.centrum.DispatchAssignment
111
+ * @generated from protobuf message resources.centrum.dispatches.DispatchAssignment
112
112
  */
113
113
  export interface DispatchAssignment {
114
114
  /**
115
- * @generated from protobuf field: uint64 dispatch_id = 1;
115
+ * @generated from protobuf field: int64 dispatch_id = 1
116
116
  */
117
- dispatchId: number; // @gotags: sql:"primary_key" alias:"dispatch_id"
117
+ dispatchId: number;
118
118
  /**
119
- * @generated from protobuf field: uint64 unit_id = 2;
119
+ * @generated from protobuf field: int64 unit_id = 2
120
120
  */
121
- unitId: number; // @gotags: sql:"primary_key" alias:"unit_id"
121
+ unitId: number;
122
122
  /**
123
- * @generated from protobuf field: optional resources.centrum.Unit unit = 3;
123
+ * @generated from protobuf field: optional resources.centrum.units.Unit unit = 3
124
124
  */
125
125
  unit?: Unit;
126
126
  /**
127
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4;
127
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
128
128
  */
129
129
  createdAt?: Timestamp;
130
130
  /**
131
- * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 5;
131
+ * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 5
132
132
  */
133
133
  expiresAt?: Timestamp;
134
134
  }
135
135
  /**
136
- * @generated from protobuf message resources.centrum.DispatchStatus
136
+ * @generated from protobuf message resources.centrum.dispatches.DispatchStatus
137
137
  */
138
138
  export interface DispatchStatus {
139
139
  /**
140
- * @generated from protobuf field: uint64 id = 1;
140
+ * @generated from protobuf field: int64 id = 1
141
141
  */
142
- id: number; // @gotags: sql:"primary_key" alias:"id"
142
+ id: number;
143
143
  /**
144
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
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;
148
+ * @generated from protobuf field: int64 dispatch_id = 3
149
149
  */
150
150
  dispatchId: number;
151
151
  /**
152
- * @generated from protobuf field: optional uint64 unit_id = 4;
152
+ * @generated from protobuf field: optional int64 unit_id = 4
153
153
  */
154
154
  unitId?: number;
155
155
  /**
156
- * @generated from protobuf field: optional resources.centrum.Unit unit = 5;
156
+ * @generated from protobuf field: optional resources.centrum.units.Unit unit = 5
157
157
  */
158
158
  unit?: Unit;
159
159
  /**
160
- * @generated from protobuf field: resources.centrum.StatusDispatch status = 6;
160
+ * @generated from protobuf field: resources.centrum.dispatches.StatusDispatch status = 6
161
161
  */
162
162
  status: StatusDispatch;
163
163
  /**
164
- * @sanitize
165
- *
166
- * @generated from protobuf field: optional string reason = 7;
164
+ * @generated from protobuf field: optional string reason = 7
167
165
  */
168
166
  reason?: string;
169
167
  /**
170
- * @sanitize
171
- *
172
- * @generated from protobuf field: optional string code = 8;
168
+ * @generated from protobuf field: optional string code = 8
173
169
  */
174
170
  code?: string;
175
171
  /**
176
- * @generated from protobuf field: optional int32 user_id = 9;
172
+ * @generated from protobuf field: optional int32 user_id = 9
177
173
  */
178
174
  userId?: number;
179
175
  /**
180
- * @generated from protobuf field: optional resources.jobs.Colleague user = 10;
176
+ * @generated from protobuf field: optional resources.jobs.colleagues.Colleague user = 10
181
177
  */
182
178
  user?: Colleague;
183
179
  /**
184
- * @generated from protobuf field: optional double x = 11;
180
+ * @generated from protobuf field: optional double x = 11
185
181
  */
186
182
  x?: number;
187
183
  /**
188
- * @generated from protobuf field: optional double y = 12;
184
+ * @generated from protobuf field: optional double y = 12
189
185
  */
190
186
  y?: number;
191
187
  /**
192
- * @sanitize
193
- *
194
- * @generated from protobuf field: optional string postal = 13;
188
+ * @generated from protobuf field: optional string postal = 13
195
189
  */
196
190
  postal?: string;
191
+ /**
192
+ * @generated from protobuf field: optional string creator_job = 14
193
+ */
194
+ creatorJob?: string;
197
195
  }
198
196
  /**
199
- * @dbscanner: json
200
- *
201
- * @generated from protobuf message resources.centrum.DispatchReferences
197
+ * @generated from protobuf message resources.centrum.dispatches.DispatchReferences
202
198
  */
203
199
  export interface DispatchReferences {
204
200
  /**
205
- * @generated from protobuf field: repeated resources.centrum.DispatchReference references = 1;
201
+ * @generated from protobuf field: repeated resources.centrum.dispatches.DispatchReference references = 1
206
202
  */
207
203
  references: DispatchReference[];
208
204
  }
209
205
  /**
210
- * @generated from protobuf message resources.centrum.DispatchReference
206
+ * @generated from protobuf message resources.centrum.dispatches.DispatchReference
211
207
  */
212
208
  export interface DispatchReference {
213
209
  /**
214
- * @generated from protobuf field: uint64 target_dispatch_id = 1;
210
+ * @generated from protobuf field: int64 target_dispatch_id = 1
215
211
  */
216
212
  targetDispatchId: number;
217
213
  /**
218
- * @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2;
214
+ * @generated from protobuf field: resources.centrum.dispatches.DispatchReferenceType reference_type = 2
219
215
  */
220
216
  referenceType: DispatchReferenceType;
221
217
  }
222
218
  /**
223
- * @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
224
229
  */
225
230
  export enum StatusDispatch {
226
231
  /**
@@ -278,10 +283,14 @@ export enum StatusDispatch {
278
283
  /**
279
284
  * @generated from protobuf enum value: STATUS_DISPATCH_ARCHIVED = 13;
280
285
  */
281
- ARCHIVED = 13
286
+ ARCHIVED = 13,
287
+ /**
288
+ * @generated from protobuf enum value: STATUS_DISPATCH_DELETED = 14;
289
+ */
290
+ DELETED = 14
282
291
  }
283
292
  /**
284
- * @generated from protobuf enum resources.centrum.TakeDispatchResp
293
+ * @generated from protobuf enum resources.centrum.dispatches.TakeDispatchResp
285
294
  */
286
295
  export enum TakeDispatchResp {
287
296
  /**
@@ -302,7 +311,7 @@ export enum TakeDispatchResp {
302
311
  DECLINED = 3
303
312
  }
304
313
  /**
305
- * @generated from protobuf enum resources.centrum.DispatchReferenceType
314
+ * @generated from protobuf enum resources.centrum.dispatches.DispatchReferenceType
306
315
  */
307
316
  export enum DispatchReferenceType {
308
317
  /**
@@ -322,23 +331,49 @@ export enum DispatchReferenceType {
322
331
  */
323
332
  DUPLICATE_OF = 3
324
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
+ }
325
359
  // @generated message type with reflection information, may provide speed optimized methods
326
360
  class Dispatch$Type extends MessageType<Dispatch> {
327
361
  constructor() {
328
- super("resources.centrum.Dispatch", [
329
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
362
+ super("resources.centrum.dispatches.Dispatch", [
363
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
330
364
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
331
365
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
332
- { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
366
+ { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
367
+ { no: 18, name: "jobs", kind: "message", T: () => JobList },
333
368
  { no: 5, name: "status", kind: "message", T: () => DispatchStatus },
334
- { no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
335
- { no: 8, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "1024" } } } },
369
+ { no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
370
+ { no: 8, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
336
371
  { no: 9, name: "attributes", kind: "message", T: () => DispatchAttributes },
337
372
  { no: 10, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
338
373
  { no: 11, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
339
- { no: 12, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
374
+ { no: 12, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
340
375
  { no: 13, name: "anon", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
341
- { no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
376
+ { no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
342
377
  { no: 15, name: "creator", kind: "message", T: () => User },
343
378
  { no: 16, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchAssignment },
344
379
  { no: 17, name: "references", kind: "message", T: () => DispatchReferences }
@@ -362,8 +397,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
362
397
  while (reader.pos < end) {
363
398
  let [fieldNo, wireType] = reader.tag();
364
399
  switch (fieldNo) {
365
- case /* uint64 id */ 1:
366
- message.id = reader.uint64().toNumber();
400
+ case /* int64 id */ 1:
401
+ message.id = reader.int64().toNumber();
367
402
  break;
368
403
  case /* optional resources.timestamp.Timestamp created_at */ 2:
369
404
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -371,10 +406,13 @@ class Dispatch$Type extends MessageType<Dispatch> {
371
406
  case /* optional resources.timestamp.Timestamp updated_at */ 3:
372
407
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
373
408
  break;
374
- case /* string job */ 4:
409
+ case /* string job = 4 [deprecated = true] */ 4:
375
410
  message.job = reader.string();
376
411
  break;
377
- case /* optional resources.centrum.DispatchStatus status */ 5:
412
+ case /* resources.centrum.JobList jobs */ 18:
413
+ message.jobs = JobList.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
414
+ break;
415
+ case /* optional resources.centrum.dispatches.DispatchStatus status */ 5:
378
416
  message.status = DispatchStatus.internalBinaryRead(reader, reader.uint32(), options, message.status);
379
417
  break;
380
418
  case /* string message */ 7:
@@ -383,7 +421,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
383
421
  case /* optional string description */ 8:
384
422
  message.description = reader.string();
385
423
  break;
386
- case /* optional resources.centrum.DispatchAttributes attributes */ 9:
424
+ case /* optional resources.centrum.dispatches.DispatchAttributes attributes */ 9:
387
425
  message.attributes = DispatchAttributes.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
388
426
  break;
389
427
  case /* double x */ 10:
@@ -404,10 +442,10 @@ class Dispatch$Type extends MessageType<Dispatch> {
404
442
  case /* optional resources.users.User creator */ 15:
405
443
  message.creator = User.internalBinaryRead(reader, reader.uint32(), options, message.creator);
406
444
  break;
407
- case /* repeated resources.centrum.DispatchAssignment units */ 16:
445
+ case /* repeated resources.centrum.dispatches.DispatchAssignment units */ 16:
408
446
  message.units.push(DispatchAssignment.internalBinaryRead(reader, reader.uint32(), options));
409
447
  break;
410
- case /* optional resources.centrum.DispatchReferences references */ 17:
448
+ case /* optional resources.centrum.dispatches.DispatchReferences references */ 17:
411
449
  message.references = DispatchReferences.internalBinaryRead(reader, reader.uint32(), options, message.references);
412
450
  break;
413
451
  default:
@@ -422,19 +460,19 @@ class Dispatch$Type extends MessageType<Dispatch> {
422
460
  return message;
423
461
  }
424
462
  internalBinaryWrite(message: Dispatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
425
- /* uint64 id = 1; */
463
+ /* int64 id = 1; */
426
464
  if (message.id !== 0)
427
- writer.tag(1, WireType.Varint).uint64(message.id);
465
+ writer.tag(1, WireType.Varint).int64(message.id);
428
466
  /* optional resources.timestamp.Timestamp created_at = 2; */
429
467
  if (message.createdAt)
430
468
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
431
469
  /* optional resources.timestamp.Timestamp updated_at = 3; */
432
470
  if (message.updatedAt)
433
471
  Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
434
- /* string job = 4; */
472
+ /* string job = 4 [deprecated = true]; */
435
473
  if (message.job !== "")
436
474
  writer.tag(4, WireType.LengthDelimited).string(message.job);
437
- /* optional resources.centrum.DispatchStatus status = 5; */
475
+ /* optional resources.centrum.dispatches.DispatchStatus status = 5; */
438
476
  if (message.status)
439
477
  DispatchStatus.internalBinaryWrite(message.status, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
440
478
  /* string message = 7; */
@@ -443,7 +481,7 @@ class Dispatch$Type extends MessageType<Dispatch> {
443
481
  /* optional string description = 8; */
444
482
  if (message.description !== undefined)
445
483
  writer.tag(8, WireType.LengthDelimited).string(message.description);
446
- /* optional resources.centrum.DispatchAttributes attributes = 9; */
484
+ /* optional resources.centrum.dispatches.DispatchAttributes attributes = 9; */
447
485
  if (message.attributes)
448
486
  DispatchAttributes.internalBinaryWrite(message.attributes, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
449
487
  /* double x = 10; */
@@ -464,12 +502,15 @@ class Dispatch$Type extends MessageType<Dispatch> {
464
502
  /* optional resources.users.User creator = 15; */
465
503
  if (message.creator)
466
504
  User.internalBinaryWrite(message.creator, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
467
- /* repeated resources.centrum.DispatchAssignment units = 16; */
505
+ /* repeated resources.centrum.dispatches.DispatchAssignment units = 16; */
468
506
  for (let i = 0; i < message.units.length; i++)
469
507
  DispatchAssignment.internalBinaryWrite(message.units[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
470
- /* optional resources.centrum.DispatchReferences references = 17; */
508
+ /* optional resources.centrum.dispatches.DispatchReferences references = 17; */
471
509
  if (message.references)
472
510
  DispatchReferences.internalBinaryWrite(message.references, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
511
+ /* resources.centrum.JobList jobs = 18; */
512
+ if (message.jobs)
513
+ JobList.internalBinaryWrite(message.jobs, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
473
514
  let u = options.writeUnknownFields;
474
515
  if (u !== false)
475
516
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -477,15 +518,15 @@ class Dispatch$Type extends MessageType<Dispatch> {
477
518
  }
478
519
  }
479
520
  /**
480
- * @generated MessageType for protobuf message resources.centrum.Dispatch
521
+ * @generated MessageType for protobuf message resources.centrum.dispatches.Dispatch
481
522
  */
482
523
  export const Dispatch = new Dispatch$Type();
483
524
  // @generated message type with reflection information, may provide speed optimized methods
484
525
  class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
485
526
  constructor() {
486
- super("resources.centrum.DispatchAssignments", [
487
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
488
- { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
527
+ super("resources.centrum.dispatches.DispatchAssignments", [
528
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
529
+ { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
489
530
  { no: 3, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchAssignment }
490
531
  ]);
491
532
  }
@@ -503,13 +544,13 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
503
544
  while (reader.pos < end) {
504
545
  let [fieldNo, wireType] = reader.tag();
505
546
  switch (fieldNo) {
506
- case /* uint64 dispatch_id */ 1:
507
- message.dispatchId = reader.uint64().toNumber();
547
+ case /* int64 dispatch_id */ 1:
548
+ message.dispatchId = reader.int64().toNumber();
508
549
  break;
509
550
  case /* string job */ 2:
510
551
  message.job = reader.string();
511
552
  break;
512
- case /* repeated resources.centrum.DispatchAssignment units */ 3:
553
+ case /* repeated resources.centrum.dispatches.DispatchAssignment units */ 3:
513
554
  message.units.push(DispatchAssignment.internalBinaryRead(reader, reader.uint32(), options));
514
555
  break;
515
556
  default:
@@ -524,13 +565,13 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
524
565
  return message;
525
566
  }
526
567
  internalBinaryWrite(message: DispatchAssignments, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
527
- /* uint64 dispatch_id = 1; */
568
+ /* int64 dispatch_id = 1; */
528
569
  if (message.dispatchId !== 0)
529
- writer.tag(1, WireType.Varint).uint64(message.dispatchId);
570
+ writer.tag(1, WireType.Varint).int64(message.dispatchId);
530
571
  /* string job = 2; */
531
572
  if (message.job !== "")
532
573
  writer.tag(2, WireType.LengthDelimited).string(message.job);
533
- /* repeated resources.centrum.DispatchAssignment units = 3; */
574
+ /* repeated resources.centrum.dispatches.DispatchAssignment units = 3; */
534
575
  for (let i = 0; i < message.units.length; i++)
535
576
  DispatchAssignment.internalBinaryWrite(message.units[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
536
577
  let u = options.writeUnknownFields;
@@ -540,15 +581,15 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
540
581
  }
541
582
  }
542
583
  /**
543
- * @generated MessageType for protobuf message resources.centrum.DispatchAssignments
584
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchAssignments
544
585
  */
545
586
  export const DispatchAssignments = new DispatchAssignments$Type();
546
587
  // @generated message type with reflection information, may provide speed optimized methods
547
588
  class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
548
589
  constructor() {
549
- super("resources.centrum.DispatchAssignment", [
550
- { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
551
- { no: 2, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
590
+ super("resources.centrum.dispatches.DispatchAssignment", [
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\"" } },
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\"" } },
552
593
  { no: 3, name: "unit", kind: "message", T: () => Unit },
553
594
  { no: 4, name: "created_at", kind: "message", T: () => Timestamp },
554
595
  { no: 5, name: "expires_at", kind: "message", T: () => Timestamp }
@@ -567,13 +608,13 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
567
608
  while (reader.pos < end) {
568
609
  let [fieldNo, wireType] = reader.tag();
569
610
  switch (fieldNo) {
570
- case /* uint64 dispatch_id */ 1:
571
- message.dispatchId = reader.uint64().toNumber();
611
+ case /* int64 dispatch_id */ 1:
612
+ message.dispatchId = reader.int64().toNumber();
572
613
  break;
573
- case /* uint64 unit_id */ 2:
574
- message.unitId = reader.uint64().toNumber();
614
+ case /* int64 unit_id */ 2:
615
+ message.unitId = reader.int64().toNumber();
575
616
  break;
576
- case /* optional resources.centrum.Unit unit */ 3:
617
+ case /* optional resources.centrum.units.Unit unit */ 3:
577
618
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
578
619
  break;
579
620
  case /* optional resources.timestamp.Timestamp created_at */ 4:
@@ -594,13 +635,13 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
594
635
  return message;
595
636
  }
596
637
  internalBinaryWrite(message: DispatchAssignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
597
- /* uint64 dispatch_id = 1; */
638
+ /* int64 dispatch_id = 1; */
598
639
  if (message.dispatchId !== 0)
599
- writer.tag(1, WireType.Varint).uint64(message.dispatchId);
600
- /* uint64 unit_id = 2; */
640
+ writer.tag(1, WireType.Varint).int64(message.dispatchId);
641
+ /* int64 unit_id = 2; */
601
642
  if (message.unitId !== 0)
602
- writer.tag(2, WireType.Varint).uint64(message.unitId);
603
- /* optional resources.centrum.Unit unit = 3; */
643
+ writer.tag(2, WireType.Varint).int64(message.unitId);
644
+ /* optional resources.centrum.units.Unit unit = 3; */
604
645
  if (message.unit)
605
646
  Unit.internalBinaryWrite(message.unit, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
606
647
  /* optional resources.timestamp.Timestamp created_at = 4; */
@@ -616,26 +657,27 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
616
657
  }
617
658
  }
618
659
  /**
619
- * @generated MessageType for protobuf message resources.centrum.DispatchAssignment
660
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchAssignment
620
661
  */
621
662
  export const DispatchAssignment = new DispatchAssignment$Type();
622
663
  // @generated message type with reflection information, may provide speed optimized methods
623
664
  class DispatchStatus$Type extends MessageType<DispatchStatus> {
624
665
  constructor() {
625
- super("resources.centrum.DispatchStatus", [
626
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
666
+ super("resources.centrum.dispatches.DispatchStatus", [
667
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
627
668
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
628
- { no: 3, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
629
- { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
669
+ { no: 3, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
670
+ { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
630
671
  { no: 5, name: "unit", kind: "message", T: () => Unit },
631
- { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
632
- { no: 7, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
633
- { no: 8, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
634
- { no: 9, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
672
+ { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
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 } } },
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 } } },
675
+ { no: 9, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
635
676
  { no: 10, name: "user", kind: "message", T: () => Colleague },
636
677
  { no: 11, name: "x", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
637
678
  { no: 12, name: "y", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
638
- { no: 13, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } }
679
+ { no: 13, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
680
+ { no: 14, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } }
639
681
  ]);
640
682
  }
641
683
  create(value?: PartialMessage<DispatchStatus>): DispatchStatus {
@@ -652,22 +694,22 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
652
694
  while (reader.pos < end) {
653
695
  let [fieldNo, wireType] = reader.tag();
654
696
  switch (fieldNo) {
655
- case /* uint64 id */ 1:
656
- message.id = reader.uint64().toNumber();
697
+ case /* int64 id */ 1:
698
+ message.id = reader.int64().toNumber();
657
699
  break;
658
700
  case /* optional resources.timestamp.Timestamp created_at */ 2:
659
701
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
660
702
  break;
661
- case /* uint64 dispatch_id */ 3:
662
- message.dispatchId = reader.uint64().toNumber();
703
+ case /* int64 dispatch_id */ 3:
704
+ message.dispatchId = reader.int64().toNumber();
663
705
  break;
664
- case /* optional uint64 unit_id */ 4:
665
- message.unitId = reader.uint64().toNumber();
706
+ case /* optional int64 unit_id */ 4:
707
+ message.unitId = reader.int64().toNumber();
666
708
  break;
667
- case /* optional resources.centrum.Unit unit */ 5:
709
+ case /* optional resources.centrum.units.Unit unit */ 5:
668
710
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
669
711
  break;
670
- case /* resources.centrum.StatusDispatch status */ 6:
712
+ case /* resources.centrum.dispatches.StatusDispatch status */ 6:
671
713
  message.status = reader.int32();
672
714
  break;
673
715
  case /* optional string reason */ 7:
@@ -679,7 +721,7 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
679
721
  case /* optional int32 user_id */ 9:
680
722
  message.userId = reader.int32();
681
723
  break;
682
- case /* optional resources.jobs.Colleague user */ 10:
724
+ case /* optional resources.jobs.colleagues.Colleague user */ 10:
683
725
  message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
684
726
  break;
685
727
  case /* optional double x */ 11:
@@ -691,6 +733,9 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
691
733
  case /* optional string postal */ 13:
692
734
  message.postal = reader.string();
693
735
  break;
736
+ case /* optional string creator_job */ 14:
737
+ message.creatorJob = reader.string();
738
+ break;
694
739
  default:
695
740
  let u = options.readUnknownField;
696
741
  if (u === "throw")
@@ -703,22 +748,22 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
703
748
  return message;
704
749
  }
705
750
  internalBinaryWrite(message: DispatchStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
706
- /* uint64 id = 1; */
751
+ /* int64 id = 1; */
707
752
  if (message.id !== 0)
708
- writer.tag(1, WireType.Varint).uint64(message.id);
753
+ writer.tag(1, WireType.Varint).int64(message.id);
709
754
  /* optional resources.timestamp.Timestamp created_at = 2; */
710
755
  if (message.createdAt)
711
756
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
712
- /* uint64 dispatch_id = 3; */
757
+ /* int64 dispatch_id = 3; */
713
758
  if (message.dispatchId !== 0)
714
- writer.tag(3, WireType.Varint).uint64(message.dispatchId);
715
- /* optional uint64 unit_id = 4; */
759
+ writer.tag(3, WireType.Varint).int64(message.dispatchId);
760
+ /* optional int64 unit_id = 4; */
716
761
  if (message.unitId !== undefined)
717
- writer.tag(4, WireType.Varint).uint64(message.unitId);
718
- /* optional resources.centrum.Unit unit = 5; */
762
+ writer.tag(4, WireType.Varint).int64(message.unitId);
763
+ /* optional resources.centrum.units.Unit unit = 5; */
719
764
  if (message.unit)
720
765
  Unit.internalBinaryWrite(message.unit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
721
- /* resources.centrum.StatusDispatch status = 6; */
766
+ /* resources.centrum.dispatches.StatusDispatch status = 6; */
722
767
  if (message.status !== 0)
723
768
  writer.tag(6, WireType.Varint).int32(message.status);
724
769
  /* optional string reason = 7; */
@@ -730,7 +775,7 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
730
775
  /* optional int32 user_id = 9; */
731
776
  if (message.userId !== undefined)
732
777
  writer.tag(9, WireType.Varint).int32(message.userId);
733
- /* optional resources.jobs.Colleague user = 10; */
778
+ /* optional resources.jobs.colleagues.Colleague user = 10; */
734
779
  if (message.user)
735
780
  Colleague.internalBinaryWrite(message.user, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
736
781
  /* optional double x = 11; */
@@ -742,6 +787,9 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
742
787
  /* optional string postal = 13; */
743
788
  if (message.postal !== undefined)
744
789
  writer.tag(13, WireType.LengthDelimited).string(message.postal);
790
+ /* optional string creator_job = 14; */
791
+ if (message.creatorJob !== undefined)
792
+ writer.tag(14, WireType.LengthDelimited).string(message.creatorJob);
745
793
  let u = options.writeUnknownFields;
746
794
  if (u !== false)
747
795
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -749,15 +797,15 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
749
797
  }
750
798
  }
751
799
  /**
752
- * @generated MessageType for protobuf message resources.centrum.DispatchStatus
800
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchStatus
753
801
  */
754
802
  export const DispatchStatus = new DispatchStatus$Type();
755
803
  // @generated message type with reflection information, may provide speed optimized methods
756
804
  class DispatchReferences$Type extends MessageType<DispatchReferences> {
757
805
  constructor() {
758
- super("resources.centrum.DispatchReferences", [
806
+ super("resources.centrum.dispatches.DispatchReferences", [
759
807
  { no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchReference }
760
- ]);
808
+ ], { "codegen.dbscanner.dbscanner": { enabled: true } });
761
809
  }
762
810
  create(value?: PartialMessage<DispatchReferences>): DispatchReferences {
763
811
  const message = globalThis.Object.create((this.messagePrototype!));
@@ -771,7 +819,7 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
771
819
  while (reader.pos < end) {
772
820
  let [fieldNo, wireType] = reader.tag();
773
821
  switch (fieldNo) {
774
- case /* repeated resources.centrum.DispatchReference references */ 1:
822
+ case /* repeated resources.centrum.dispatches.DispatchReference references */ 1:
775
823
  message.references.push(DispatchReference.internalBinaryRead(reader, reader.uint32(), options));
776
824
  break;
777
825
  default:
@@ -786,7 +834,7 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
786
834
  return message;
787
835
  }
788
836
  internalBinaryWrite(message: DispatchReferences, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
789
- /* repeated resources.centrum.DispatchReference references = 1; */
837
+ /* repeated resources.centrum.dispatches.DispatchReference references = 1; */
790
838
  for (let i = 0; i < message.references.length; i++)
791
839
  DispatchReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
792
840
  let u = options.writeUnknownFields;
@@ -796,15 +844,15 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
796
844
  }
797
845
  }
798
846
  /**
799
- * @generated MessageType for protobuf message resources.centrum.DispatchReferences
847
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchReferences
800
848
  */
801
849
  export const DispatchReferences = new DispatchReferences$Type();
802
850
  // @generated message type with reflection information, may provide speed optimized methods
803
851
  class DispatchReference$Type extends MessageType<DispatchReference> {
804
852
  constructor() {
805
- super("resources.centrum.DispatchReference", [
806
- { no: 1, name: "target_dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
807
- { no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
853
+ super("resources.centrum.dispatches.DispatchReference", [
854
+ { no: 1, name: "target_dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
855
+ { no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.dispatches.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
808
856
  ]);
809
857
  }
810
858
  create(value?: PartialMessage<DispatchReference>): DispatchReference {
@@ -820,10 +868,10 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
820
868
  while (reader.pos < end) {
821
869
  let [fieldNo, wireType] = reader.tag();
822
870
  switch (fieldNo) {
823
- case /* uint64 target_dispatch_id */ 1:
824
- message.targetDispatchId = reader.uint64().toNumber();
871
+ case /* int64 target_dispatch_id */ 1:
872
+ message.targetDispatchId = reader.int64().toNumber();
825
873
  break;
826
- case /* resources.centrum.DispatchReferenceType reference_type */ 2:
874
+ case /* resources.centrum.dispatches.DispatchReferenceType reference_type */ 2:
827
875
  message.referenceType = reader.int32();
828
876
  break;
829
877
  default:
@@ -838,10 +886,10 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
838
886
  return message;
839
887
  }
840
888
  internalBinaryWrite(message: DispatchReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
841
- /* uint64 target_dispatch_id = 1; */
889
+ /* int64 target_dispatch_id = 1; */
842
890
  if (message.targetDispatchId !== 0)
843
- writer.tag(1, WireType.Varint).uint64(message.targetDispatchId);
844
- /* resources.centrum.DispatchReferenceType reference_type = 2; */
891
+ writer.tag(1, WireType.Varint).int64(message.targetDispatchId);
892
+ /* resources.centrum.dispatches.DispatchReferenceType reference_type = 2; */
845
893
  if (message.referenceType !== 0)
846
894
  writer.tag(2, WireType.Varint).int32(message.referenceType);
847
895
  let u = options.writeUnknownFields;
@@ -851,6 +899,61 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
851
899
  }
852
900
  }
853
901
  /**
854
- * @generated MessageType for protobuf message resources.centrum.DispatchReference
902
+ * @generated MessageType for protobuf message resources.centrum.dispatches.DispatchReference
855
903
  */
856
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();