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