@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.
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
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:
|
|
24
|
+
* @generated from protobuf field: int64 id = 1
|
|
24
25
|
*/
|
|
25
|
-
id: number;
|
|
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
|
-
* @
|
|
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:
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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:
|
|
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:
|
|
137
|
+
* @generated from protobuf field: int64 dispatch_id = 1
|
|
116
138
|
*/
|
|
117
|
-
dispatchId: number;
|
|
139
|
+
dispatchId: number;
|
|
118
140
|
/**
|
|
119
|
-
* @generated from protobuf field:
|
|
141
|
+
* @generated from protobuf field: int64 unit_id = 2
|
|
120
142
|
*/
|
|
121
|
-
unitId: number;
|
|
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:
|
|
162
|
+
* @generated from protobuf field: int64 id = 1
|
|
141
163
|
*/
|
|
142
|
-
id: number;
|
|
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:
|
|
170
|
+
* @generated from protobuf field: int64 dispatch_id = 3
|
|
149
171
|
*/
|
|
150
172
|
dispatchId: number;
|
|
151
173
|
/**
|
|
152
|
-
* @generated from protobuf field: optional
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
335
|
-
{ no: 8, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
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.
|
|
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.
|
|
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 /*
|
|
366
|
-
message.id = reader.
|
|
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
|
-
/*
|
|
451
|
+
/* int64 id = 1; */
|
|
426
452
|
if (message.id !== 0)
|
|
427
|
-
writer.tag(1, WireType.Varint).
|
|
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:
|
|
488
|
-
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
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 /*
|
|
507
|
-
message.dispatchId = reader.
|
|
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
|
-
/*
|
|
657
|
+
/* int64 dispatch_id = 1; */
|
|
528
658
|
if (message.dispatchId !== 0)
|
|
529
|
-
writer.tag(1, WireType.Varint).
|
|
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:
|
|
551
|
-
{ no: 2, name: "unit_id", kind: "scalar", T:
|
|
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 /*
|
|
571
|
-
message.dispatchId = reader.
|
|
700
|
+
case /* int64 dispatch_id */ 1:
|
|
701
|
+
message.dispatchId = reader.int64().toNumber();
|
|
572
702
|
break;
|
|
573
|
-
case /*
|
|
574
|
-
message.unitId = reader.
|
|
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
|
-
/*
|
|
727
|
+
/* int64 dispatch_id = 1; */
|
|
598
728
|
if (message.dispatchId !== 0)
|
|
599
|
-
writer.tag(1, WireType.Varint).
|
|
600
|
-
/*
|
|
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).
|
|
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:
|
|
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:
|
|
629
|
-
{ no: 4, name: "unit_id", kind: "scalar", opt: true, T:
|
|
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.
|
|
632
|
-
{ no: 7, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
633
|
-
{ no: 8, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
634
|
-
{ no: 9, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
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.
|
|
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 /*
|
|
656
|
-
message.id = reader.
|
|
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 /*
|
|
662
|
-
message.dispatchId = reader.
|
|
792
|
+
case /* int64 dispatch_id */ 3:
|
|
793
|
+
message.dispatchId = reader.int64().toNumber();
|
|
663
794
|
break;
|
|
664
|
-
case /* optional
|
|
665
|
-
message.unitId = reader.
|
|
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
|
-
/*
|
|
840
|
+
/* int64 id = 1; */
|
|
707
841
|
if (message.id !== 0)
|
|
708
|
-
writer.tag(1, WireType.Varint).
|
|
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
|
-
/*
|
|
846
|
+
/* int64 dispatch_id = 3; */
|
|
713
847
|
if (message.dispatchId !== 0)
|
|
714
|
-
writer.tag(3, WireType.Varint).
|
|
715
|
-
/* optional
|
|
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).
|
|
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:
|
|
807
|
-
{ no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "validate.
|
|
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 /*
|
|
824
|
-
message.targetDispatchId = reader.
|
|
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
|
-
/*
|
|
978
|
+
/* int64 target_dispatch_id = 1; */
|
|
842
979
|
if (message.targetDispatchId !== 0)
|
|
843
|
-
writer.tag(1, WireType.Varint).
|
|
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);
|