@fivenet-app/gen 2025.5.2 → 2025.9.1

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 (169) hide show
  1. package/buf/validate/validate.ts +11301 -0
  2. package/clients.ts +157 -154
  3. package/codegen/dbscanner/dbscanner.ts +91 -0
  4. package/codegen/perms/perms.ts +208 -0
  5. package/codegen/sanitizer/sanitizer.ts +80 -0
  6. package/google/protobuf/any.ts +4 -3
  7. package/google/protobuf/descriptor.ts +393 -239
  8. package/google/protobuf/duration.ts +4 -3
  9. package/google/protobuf/struct.ts +485 -0
  10. package/google/protobuf/timestamp.ts +4 -3
  11. package/package.json +3 -3
  12. package/perms.ts +85 -159
  13. package/resources/accounts/accounts.ts +26 -25
  14. package/resources/accounts/oauth2.ts +30 -29
  15. package/resources/audit/audit.ts +36 -35
  16. package/resources/calendar/access.ts +49 -48
  17. package/resources/calendar/calendar.ts +122 -126
  18. package/resources/centrum/access.ts +345 -0
  19. package/resources/centrum/attributes.ts +8 -11
  20. package/resources/centrum/dispatchers.ts +149 -0
  21. package/resources/centrum/dispatches.ts +252 -115
  22. package/resources/centrum/settings.ts +384 -34
  23. package/resources/centrum/units.ts +112 -92
  24. package/resources/centrum/units_access.ts +54 -55
  25. package/resources/clientconfig/clientconfig.ts +890 -0
  26. package/resources/collab/collab.ts +817 -0
  27. package/resources/common/content/content.ts +113 -30
  28. package/resources/common/cron/cron.ts +43 -31
  29. package/resources/common/database/database.ts +92 -35
  30. package/resources/common/error.ts +17 -16
  31. package/resources/common/grpcws/grpcws.ts +24 -23
  32. package/resources/common/i18n.ts +20 -24
  33. package/resources/common/id_mapping.ts +69 -0
  34. package/resources/common/tests/objects.ts +4 -3
  35. package/resources/common/uuid.ts +4 -3
  36. package/resources/discord/discord.ts +209 -0
  37. package/resources/documents/access.ts +52 -53
  38. package/resources/documents/activity.ts +235 -58
  39. package/resources/documents/category.ts +20 -27
  40. package/resources/documents/comment.ts +26 -25
  41. package/resources/documents/documents.ts +335 -262
  42. package/resources/documents/pins.ts +127 -0
  43. package/resources/documents/requests.ts +31 -30
  44. package/resources/documents/signoff.ts +55 -0
  45. package/resources/documents/state.ts +69 -0
  46. package/resources/documents/templates.ts +119 -136
  47. package/resources/documents/workflow.ts +35 -24
  48. package/resources/file/file.ts +152 -0
  49. package/{services/settings → resources/file}/filestore.ts +179 -165
  50. package/resources/file/meta.ts +148 -0
  51. package/resources/jobs/activity.ts +39 -42
  52. package/resources/jobs/colleagues.ts +67 -60
  53. package/resources/jobs/conduct.ts +29 -30
  54. package/resources/jobs/job_props.ts +46 -48
  55. package/resources/jobs/job_settings.ts +45 -52
  56. package/resources/jobs/jobs.ts +14 -13
  57. package/resources/jobs/labels.ts +21 -22
  58. package/resources/jobs/timeclock.ts +26 -25
  59. package/resources/laws/laws.ts +40 -49
  60. package/resources/livemap/coords.ts +81 -0
  61. package/resources/livemap/heatmap.ts +93 -0
  62. package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
  63. package/resources/livemap/user_marker.ts +298 -0
  64. package/resources/mailer/access.ts +75 -74
  65. package/resources/mailer/email.ts +24 -27
  66. package/resources/mailer/events.ts +25 -24
  67. package/resources/mailer/message.ts +45 -50
  68. package/resources/mailer/settings.ts +12 -15
  69. package/resources/mailer/template.ts +25 -28
  70. package/resources/mailer/thread.ts +70 -71
  71. package/resources/notifications/client_view.ts +239 -0
  72. package/resources/notifications/events.ts +50 -101
  73. package/resources/notifications/notifications.ts +52 -57
  74. package/resources/permissions/attributes.ts +63 -206
  75. package/resources/permissions/events.ts +149 -0
  76. package/resources/permissions/permissions.ts +103 -34
  77. package/resources/qualifications/access.ts +27 -26
  78. package/resources/qualifications/exam.ts +188 -126
  79. package/resources/qualifications/qualifications.ts +370 -303
  80. package/resources/settings/banner.ts +14 -21
  81. package/resources/settings/config.ts +163 -79
  82. package/resources/settings/perms.ts +151 -0
  83. package/resources/settings/status.ts +533 -0
  84. package/resources/stats/stats.ts +3 -2
  85. package/resources/sync/activity.ts +24 -23
  86. package/resources/sync/data.ts +94 -26
  87. package/resources/timestamp/timestamp.ts +3 -2
  88. package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
  89. package/resources/userinfo/user_info.ts +464 -0
  90. package/resources/users/activity.ts +80 -85
  91. package/resources/users/labels.ts +18 -21
  92. package/resources/users/licenses.ts +9 -8
  93. package/resources/users/props.ts +61 -51
  94. package/resources/users/users.ts +100 -78
  95. package/resources/vehicles/activity.ts +231 -0
  96. package/resources/vehicles/props.ts +103 -0
  97. package/resources/vehicles/vehicles.ts +28 -15
  98. package/resources/wiki/access.ts +49 -48
  99. package/resources/wiki/activity.ts +133 -51
  100. package/resources/wiki/page.ts +134 -87
  101. package/services/auth/auth.client.ts +24 -27
  102. package/services/auth/auth.ts +222 -195
  103. package/services/calendar/calendar.client.ts +32 -91
  104. package/services/calendar/calendar.ts +110 -109
  105. package/services/centrum/centrum.client.ts +97 -137
  106. package/services/centrum/centrum.ts +701 -298
  107. package/services/citizens/citizens.client.ts +70 -39
  108. package/services/citizens/citizens.ts +183 -93
  109. package/services/completor/completor.client.ts +16 -35
  110. package/services/completor/completor.ts +65 -44
  111. package/services/documents/collab.client.ts +46 -0
  112. package/services/documents/collab.ts +13 -0
  113. package/services/documents/documents.client.ts +88 -217
  114. package/services/documents/documents.ts +490 -508
  115. package/services/filestore/filestore.client.ts +86 -0
  116. package/services/filestore/filestore.ts +262 -0
  117. package/services/jobs/conduct.client.ts +10 -25
  118. package/services/jobs/conduct.ts +36 -35
  119. package/services/jobs/jobs.client.ts +22 -61
  120. package/services/jobs/jobs.ts +108 -91
  121. package/services/jobs/timeclock.client.ts +8 -19
  122. package/services/jobs/timeclock.ts +47 -46
  123. package/services/livemap/livemap.client.ts +8 -19
  124. package/services/livemap/livemap.ts +290 -119
  125. package/services/mailer/mailer.client.ts +44 -127
  126. package/services/mailer/mailer.ts +213 -216
  127. package/services/notifications/notifications.client.ts +65 -0
  128. package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
  129. package/services/qualifications/qualifications.client.ts +46 -91
  130. package/services/qualifications/qualifications.ts +181 -175
  131. package/services/settings/accounts.client.ts +10 -25
  132. package/services/settings/accounts.ts +64 -41
  133. package/services/settings/config.client.ts +6 -13
  134. package/services/settings/config.ts +8 -7
  135. package/services/settings/cron.client.ts +4 -7
  136. package/services/settings/cron.ts +4 -3
  137. package/services/settings/laws.client.ts +10 -25
  138. package/services/settings/laws.ts +29 -28
  139. package/services/settings/settings.client.ts +57 -103
  140. package/services/settings/settings.ts +190 -607
  141. package/services/settings/system.client.ts +90 -0
  142. package/services/settings/system.ts +618 -0
  143. package/services/stats/stats.client.ts +4 -3
  144. package/services/stats/stats.ts +4 -3
  145. package/services/sync/sync.client.ts +16 -15
  146. package/services/sync/sync.ts +82 -52
  147. package/services/vehicles/vehicles.client.ts +17 -7
  148. package/services/vehicles/vehicles.ts +169 -24
  149. package/services/wiki/collab.client.ts +46 -0
  150. package/services/wiki/collab.ts +13 -0
  151. package/services/wiki/wiki.client.ts +28 -37
  152. package/services/wiki/wiki.ts +93 -63
  153. package/svcs.ts +79 -103
  154. package/resources/centrum/disponents.ts +0 -81
  155. package/resources/filestore/file.ts +0 -204
  156. package/resources/internet/access.ts +0 -358
  157. package/resources/internet/ads.ts +0 -257
  158. package/resources/internet/domain.ts +0 -328
  159. package/resources/internet/page.ts +0 -428
  160. package/resources/internet/search.ts +0 -128
  161. package/resources/livemap/tracker.ts +0 -81
  162. package/services/internet/ads.client.ts +0 -41
  163. package/services/internet/ads.ts +0 -145
  164. package/services/internet/domain.client.ts +0 -109
  165. package/services/internet/domain.ts +0 -658
  166. package/services/internet/internet.client.ts +0 -58
  167. package/services/internet/internet.ts +0 -268
  168. package/services/notificator/notificator.client.ts +0 -76
  169. 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
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
2
  // @generated from protobuf file "resources/centrum/dispatches.proto" (package "resources.centrum", 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";
@@ -20,90 +21,111 @@ import { Timestamp } from "../timestamp/timestamp";
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.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.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.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.DispatchReferences references = 17
90
90
  */
91
91
  references?: DispatchReferences;
92
92
  }
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
+ }
93
115
  /**
94
116
  * @generated from protobuf message resources.centrum.DispatchAssignments
95
117
  */
96
118
  export interface DispatchAssignments {
97
119
  /**
98
- * @generated from protobuf field: uint64 dispatch_id = 1;
120
+ * @generated from protobuf field: int64 dispatch_id = 1
99
121
  */
100
122
  dispatchId: number;
101
123
  /**
102
- * @generated from protobuf field: string job = 2;
124
+ * @generated from protobuf field: string job = 2
103
125
  */
104
126
  job: string;
105
127
  /**
106
- * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 3;
128
+ * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 3
107
129
  */
108
130
  units: DispatchAssignment[];
109
131
  }
@@ -112,23 +134,23 @@ export interface DispatchAssignments {
112
134
  */
113
135
  export interface DispatchAssignment {
114
136
  /**
115
- * @generated from protobuf field: uint64 dispatch_id = 1;
137
+ * @generated from protobuf field: int64 dispatch_id = 1
116
138
  */
117
- dispatchId: number; // @gotags: sql:"primary_key" alias:"dispatch_id"
139
+ dispatchId: number;
118
140
  /**
119
- * @generated from protobuf field: uint64 unit_id = 2;
141
+ * @generated from protobuf field: int64 unit_id = 2
120
142
  */
121
- unitId: number; // @gotags: sql:"primary_key" alias:"unit_id"
143
+ unitId: number;
122
144
  /**
123
- * @generated from protobuf field: optional resources.centrum.Unit unit = 3;
145
+ * @generated from protobuf field: optional resources.centrum.Unit unit = 3
124
146
  */
125
147
  unit?: Unit;
126
148
  /**
127
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4;
149
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
128
150
  */
129
151
  createdAt?: Timestamp;
130
152
  /**
131
- * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 5;
153
+ * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 5
132
154
  */
133
155
  expiresAt?: Timestamp;
134
156
  }
@@ -137,72 +159,68 @@ export interface DispatchAssignment {
137
159
  */
138
160
  export interface DispatchStatus {
139
161
  /**
140
- * @generated from protobuf field: uint64 id = 1;
162
+ * @generated from protobuf field: int64 id = 1
141
163
  */
142
- id: number; // @gotags: sql:"primary_key" alias:"id"
164
+ id: number;
143
165
  /**
144
- * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
166
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
145
167
  */
146
168
  createdAt?: Timestamp;
147
169
  /**
148
- * @generated from protobuf field: uint64 dispatch_id = 3;
170
+ * @generated from protobuf field: int64 dispatch_id = 3
149
171
  */
150
172
  dispatchId: number;
151
173
  /**
152
- * @generated from protobuf field: optional uint64 unit_id = 4;
174
+ * @generated from protobuf field: optional int64 unit_id = 4
153
175
  */
154
176
  unitId?: number;
155
177
  /**
156
- * @generated from protobuf field: optional resources.centrum.Unit unit = 5;
178
+ * @generated from protobuf field: optional resources.centrum.Unit unit = 5
157
179
  */
158
180
  unit?: Unit;
159
181
  /**
160
- * @generated from protobuf field: resources.centrum.StatusDispatch status = 6;
182
+ * @generated from protobuf field: resources.centrum.StatusDispatch status = 6
161
183
  */
162
184
  status: StatusDispatch;
163
185
  /**
164
- * @sanitize
165
- *
166
- * @generated from protobuf field: optional string reason = 7;
186
+ * @generated from protobuf field: optional string reason = 7
167
187
  */
168
188
  reason?: string;
169
189
  /**
170
- * @sanitize
171
- *
172
- * @generated from protobuf field: optional string code = 8;
190
+ * @generated from protobuf field: optional string code = 8
173
191
  */
174
192
  code?: string;
175
193
  /**
176
- * @generated from protobuf field: optional int32 user_id = 9;
194
+ * @generated from protobuf field: optional int32 user_id = 9
177
195
  */
178
196
  userId?: number;
179
197
  /**
180
- * @generated from protobuf field: optional resources.jobs.Colleague user = 10;
198
+ * @generated from protobuf field: optional resources.jobs.Colleague user = 10
181
199
  */
182
200
  user?: Colleague;
183
201
  /**
184
- * @generated from protobuf field: optional double x = 11;
202
+ * @generated from protobuf field: optional double x = 11
185
203
  */
186
204
  x?: number;
187
205
  /**
188
- * @generated from protobuf field: optional double y = 12;
206
+ * @generated from protobuf field: optional double y = 12
189
207
  */
190
208
  y?: number;
191
209
  /**
192
- * @sanitize
193
- *
194
- * @generated from protobuf field: optional string postal = 13;
210
+ * @generated from protobuf field: optional string postal = 13
195
211
  */
196
212
  postal?: string;
213
+ /**
214
+ * @generated from protobuf field: optional string creator_job = 14
215
+ */
216
+ creatorJob?: string;
197
217
  }
198
218
  /**
199
- * @dbscanner: json
200
- *
201
219
  * @generated from protobuf message resources.centrum.DispatchReferences
202
220
  */
203
221
  export interface DispatchReferences {
204
222
  /**
205
- * @generated from protobuf field: repeated resources.centrum.DispatchReference references = 1;
223
+ * @generated from protobuf field: repeated resources.centrum.DispatchReference references = 1
206
224
  */
207
225
  references: DispatchReference[];
208
226
  }
@@ -211,11 +229,11 @@ export interface DispatchReferences {
211
229
  */
212
230
  export interface DispatchReference {
213
231
  /**
214
- * @generated from protobuf field: uint64 target_dispatch_id = 1;
232
+ * @generated from protobuf field: int64 target_dispatch_id = 1
215
233
  */
216
234
  targetDispatchId: number;
217
235
  /**
218
- * @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2;
236
+ * @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2
219
237
  */
220
238
  referenceType: DispatchReferenceType;
221
239
  }
@@ -278,7 +296,11 @@ export enum StatusDispatch {
278
296
  /**
279
297
  * @generated from protobuf enum value: STATUS_DISPATCH_ARCHIVED = 13;
280
298
  */
281
- ARCHIVED = 13
299
+ ARCHIVED = 13,
300
+ /**
301
+ * @generated from protobuf enum value: STATUS_DISPATCH_DELETED = 14;
302
+ */
303
+ DELETED = 14
282
304
  }
283
305
  /**
284
306
  * @generated from protobuf enum resources.centrum.TakeDispatchResp
@@ -326,19 +348,20 @@ export enum DispatchReferenceType {
326
348
  class Dispatch$Type extends MessageType<Dispatch> {
327
349
  constructor() {
328
350
  super("resources.centrum.Dispatch", [
329
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
351
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
330
352
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
331
353
  { 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" } } } },
354
+ { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
355
+ { no: 18, name: "jobs", kind: "message", T: () => JobList },
333
356
  { 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" } } } },
357
+ { no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
358
+ { 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
359
  { no: 9, name: "attributes", kind: "message", T: () => DispatchAttributes },
337
360
  { no: 10, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
338
361
  { 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" } } } },
362
+ { 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
363
  { 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 } } } },
364
+ { no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
342
365
  { no: 15, name: "creator", kind: "message", T: () => User },
343
366
  { no: 16, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchAssignment },
344
367
  { no: 17, name: "references", kind: "message", T: () => DispatchReferences }
@@ -362,8 +385,8 @@ class Dispatch$Type extends MessageType<Dispatch> {
362
385
  while (reader.pos < end) {
363
386
  let [fieldNo, wireType] = reader.tag();
364
387
  switch (fieldNo) {
365
- case /* uint64 id */ 1:
366
- message.id = reader.uint64().toNumber();
388
+ case /* int64 id */ 1:
389
+ message.id = reader.int64().toNumber();
367
390
  break;
368
391
  case /* optional resources.timestamp.Timestamp created_at */ 2:
369
392
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
@@ -371,9 +394,12 @@ class Dispatch$Type extends MessageType<Dispatch> {
371
394
  case /* optional resources.timestamp.Timestamp updated_at */ 3:
372
395
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
373
396
  break;
374
- case /* string job */ 4:
397
+ case /* string job = 4 [deprecated = true] */ 4:
375
398
  message.job = reader.string();
376
399
  break;
400
+ case /* resources.centrum.JobList jobs */ 18:
401
+ message.jobs = JobList.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
402
+ break;
377
403
  case /* optional resources.centrum.DispatchStatus status */ 5:
378
404
  message.status = DispatchStatus.internalBinaryRead(reader, reader.uint32(), options, message.status);
379
405
  break;
@@ -422,16 +448,16 @@ class Dispatch$Type extends MessageType<Dispatch> {
422
448
  return message;
423
449
  }
424
450
  internalBinaryWrite(message: Dispatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
425
- /* uint64 id = 1; */
451
+ /* int64 id = 1; */
426
452
  if (message.id !== 0)
427
- writer.tag(1, WireType.Varint).uint64(message.id);
453
+ writer.tag(1, WireType.Varint).int64(message.id);
428
454
  /* optional resources.timestamp.Timestamp created_at = 2; */
429
455
  if (message.createdAt)
430
456
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
431
457
  /* optional resources.timestamp.Timestamp updated_at = 3; */
432
458
  if (message.updatedAt)
433
459
  Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
434
- /* string job = 4; */
460
+ /* string job = 4 [deprecated = true]; */
435
461
  if (message.job !== "")
436
462
  writer.tag(4, WireType.LengthDelimited).string(message.job);
437
463
  /* optional resources.centrum.DispatchStatus status = 5; */
@@ -470,6 +496,9 @@ class Dispatch$Type extends MessageType<Dispatch> {
470
496
  /* optional resources.centrum.DispatchReferences references = 17; */
471
497
  if (message.references)
472
498
  DispatchReferences.internalBinaryWrite(message.references, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
499
+ /* resources.centrum.JobList jobs = 18; */
500
+ if (message.jobs)
501
+ JobList.internalBinaryWrite(message.jobs, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
473
502
  let u = options.writeUnknownFields;
474
503
  if (u !== false)
475
504
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -481,11 +510,112 @@ class Dispatch$Type extends MessageType<Dispatch> {
481
510
  */
482
511
  export const Dispatch = new Dispatch$Type();
483
512
  // @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
484
614
  class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
485
615
  constructor() {
486
616
  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" } } } },
617
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
618
+ { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
489
619
  { no: 3, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchAssignment }
490
620
  ]);
491
621
  }
@@ -503,8 +633,8 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
503
633
  while (reader.pos < end) {
504
634
  let [fieldNo, wireType] = reader.tag();
505
635
  switch (fieldNo) {
506
- case /* uint64 dispatch_id */ 1:
507
- message.dispatchId = reader.uint64().toNumber();
636
+ case /* int64 dispatch_id */ 1:
637
+ message.dispatchId = reader.int64().toNumber();
508
638
  break;
509
639
  case /* string job */ 2:
510
640
  message.job = reader.string();
@@ -524,9 +654,9 @@ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
524
654
  return message;
525
655
  }
526
656
  internalBinaryWrite(message: DispatchAssignments, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
527
- /* uint64 dispatch_id = 1; */
657
+ /* int64 dispatch_id = 1; */
528
658
  if (message.dispatchId !== 0)
529
- writer.tag(1, WireType.Varint).uint64(message.dispatchId);
659
+ writer.tag(1, WireType.Varint).int64(message.dispatchId);
530
660
  /* string job = 2; */
531
661
  if (message.job !== "")
532
662
  writer.tag(2, WireType.LengthDelimited).string(message.job);
@@ -547,8 +677,8 @@ export const DispatchAssignments = new DispatchAssignments$Type();
547
677
  class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
548
678
  constructor() {
549
679
  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*/ },
680
+ { 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
+ { 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
682
  { no: 3, name: "unit", kind: "message", T: () => Unit },
553
683
  { no: 4, name: "created_at", kind: "message", T: () => Timestamp },
554
684
  { no: 5, name: "expires_at", kind: "message", T: () => Timestamp }
@@ -567,11 +697,11 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
567
697
  while (reader.pos < end) {
568
698
  let [fieldNo, wireType] = reader.tag();
569
699
  switch (fieldNo) {
570
- case /* uint64 dispatch_id */ 1:
571
- message.dispatchId = reader.uint64().toNumber();
700
+ case /* int64 dispatch_id */ 1:
701
+ message.dispatchId = reader.int64().toNumber();
572
702
  break;
573
- case /* uint64 unit_id */ 2:
574
- message.unitId = reader.uint64().toNumber();
703
+ case /* int64 unit_id */ 2:
704
+ message.unitId = reader.int64().toNumber();
575
705
  break;
576
706
  case /* optional resources.centrum.Unit unit */ 3:
577
707
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
@@ -594,12 +724,12 @@ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
594
724
  return message;
595
725
  }
596
726
  internalBinaryWrite(message: DispatchAssignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
597
- /* uint64 dispatch_id = 1; */
727
+ /* int64 dispatch_id = 1; */
598
728
  if (message.dispatchId !== 0)
599
- writer.tag(1, WireType.Varint).uint64(message.dispatchId);
600
- /* uint64 unit_id = 2; */
729
+ writer.tag(1, WireType.Varint).int64(message.dispatchId);
730
+ /* int64 unit_id = 2; */
601
731
  if (message.unitId !== 0)
602
- writer.tag(2, WireType.Varint).uint64(message.unitId);
732
+ writer.tag(2, WireType.Varint).int64(message.unitId);
603
733
  /* optional resources.centrum.Unit unit = 3; */
604
734
  if (message.unit)
605
735
  Unit.internalBinaryWrite(message.unit, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
@@ -623,19 +753,20 @@ export const DispatchAssignment = new DispatchAssignment$Type();
623
753
  class DispatchStatus$Type extends MessageType<DispatchStatus> {
624
754
  constructor() {
625
755
  super("resources.centrum.DispatchStatus", [
626
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
756
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
627
757
  { 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*/ },
758
+ { no: 3, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
759
+ { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
630
760
  { 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 } } } },
761
+ { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
762
+ { 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
+ { 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
+ { no: 9, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
635
765
  { no: 10, name: "user", kind: "message", T: () => Colleague },
636
766
  { no: 11, name: "x", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
637
767
  { 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" } } } }
768
+ { no: 13, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
769
+ { no: 14, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } }
639
770
  ]);
640
771
  }
641
772
  create(value?: PartialMessage<DispatchStatus>): DispatchStatus {
@@ -652,17 +783,17 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
652
783
  while (reader.pos < end) {
653
784
  let [fieldNo, wireType] = reader.tag();
654
785
  switch (fieldNo) {
655
- case /* uint64 id */ 1:
656
- message.id = reader.uint64().toNumber();
786
+ case /* int64 id */ 1:
787
+ message.id = reader.int64().toNumber();
657
788
  break;
658
789
  case /* optional resources.timestamp.Timestamp created_at */ 2:
659
790
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
660
791
  break;
661
- case /* uint64 dispatch_id */ 3:
662
- message.dispatchId = reader.uint64().toNumber();
792
+ case /* int64 dispatch_id */ 3:
793
+ message.dispatchId = reader.int64().toNumber();
663
794
  break;
664
- case /* optional uint64 unit_id */ 4:
665
- message.unitId = reader.uint64().toNumber();
795
+ case /* optional int64 unit_id */ 4:
796
+ message.unitId = reader.int64().toNumber();
666
797
  break;
667
798
  case /* optional resources.centrum.Unit unit */ 5:
668
799
  message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
@@ -691,6 +822,9 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
691
822
  case /* optional string postal */ 13:
692
823
  message.postal = reader.string();
693
824
  break;
825
+ case /* optional string creator_job */ 14:
826
+ message.creatorJob = reader.string();
827
+ break;
694
828
  default:
695
829
  let u = options.readUnknownField;
696
830
  if (u === "throw")
@@ -703,18 +837,18 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
703
837
  return message;
704
838
  }
705
839
  internalBinaryWrite(message: DispatchStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
706
- /* uint64 id = 1; */
840
+ /* int64 id = 1; */
707
841
  if (message.id !== 0)
708
- writer.tag(1, WireType.Varint).uint64(message.id);
842
+ writer.tag(1, WireType.Varint).int64(message.id);
709
843
  /* optional resources.timestamp.Timestamp created_at = 2; */
710
844
  if (message.createdAt)
711
845
  Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
712
- /* uint64 dispatch_id = 3; */
846
+ /* int64 dispatch_id = 3; */
713
847
  if (message.dispatchId !== 0)
714
- writer.tag(3, WireType.Varint).uint64(message.dispatchId);
715
- /* optional uint64 unit_id = 4; */
848
+ writer.tag(3, WireType.Varint).int64(message.dispatchId);
849
+ /* optional int64 unit_id = 4; */
716
850
  if (message.unitId !== undefined)
717
- writer.tag(4, WireType.Varint).uint64(message.unitId);
851
+ writer.tag(4, WireType.Varint).int64(message.unitId);
718
852
  /* optional resources.centrum.Unit unit = 5; */
719
853
  if (message.unit)
720
854
  Unit.internalBinaryWrite(message.unit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
@@ -742,6 +876,9 @@ class DispatchStatus$Type extends MessageType<DispatchStatus> {
742
876
  /* optional string postal = 13; */
743
877
  if (message.postal !== undefined)
744
878
  writer.tag(13, WireType.LengthDelimited).string(message.postal);
879
+ /* optional string creator_job = 14; */
880
+ if (message.creatorJob !== undefined)
881
+ writer.tag(14, WireType.LengthDelimited).string(message.creatorJob);
745
882
  let u = options.writeUnknownFields;
746
883
  if (u !== false)
747
884
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -757,7 +894,7 @@ class DispatchReferences$Type extends MessageType<DispatchReferences> {
757
894
  constructor() {
758
895
  super("resources.centrum.DispatchReferences", [
759
896
  { no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchReference }
760
- ]);
897
+ ], { "codegen.dbscanner.dbscanner": { enabled: true } });
761
898
  }
762
899
  create(value?: PartialMessage<DispatchReferences>): DispatchReferences {
763
900
  const message = globalThis.Object.create((this.messagePrototype!));
@@ -803,8 +940,8 @@ export const DispatchReferences = new DispatchReferences$Type();
803
940
  class DispatchReference$Type extends MessageType<DispatchReference> {
804
941
  constructor() {
805
942
  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 } } } }
943
+ { 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 } } } }
808
945
  ]);
809
946
  }
810
947
  create(value?: PartialMessage<DispatchReference>): DispatchReference {
@@ -820,8 +957,8 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
820
957
  while (reader.pos < end) {
821
958
  let [fieldNo, wireType] = reader.tag();
822
959
  switch (fieldNo) {
823
- case /* uint64 target_dispatch_id */ 1:
824
- message.targetDispatchId = reader.uint64().toNumber();
960
+ case /* int64 target_dispatch_id */ 1:
961
+ message.targetDispatchId = reader.int64().toNumber();
825
962
  break;
826
963
  case /* resources.centrum.DispatchReferenceType reference_type */ 2:
827
964
  message.referenceType = reader.int32();
@@ -838,9 +975,9 @@ class DispatchReference$Type extends MessageType<DispatchReference> {
838
975
  return message;
839
976
  }
840
977
  internalBinaryWrite(message: DispatchReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
841
- /* uint64 target_dispatch_id = 1; */
978
+ /* int64 target_dispatch_id = 1; */
842
979
  if (message.targetDispatchId !== 0)
843
- writer.tag(1, WireType.Varint).uint64(message.targetDispatchId);
980
+ writer.tag(1, WireType.Varint).int64(message.targetDispatchId);
844
981
  /* resources.centrum.DispatchReferenceType reference_type = 2; */
845
982
  if (message.referenceType !== 0)
846
983
  writer.tag(2, WireType.Varint).int32(message.referenceType);