@fivenet-app/gen 2025.9.1 → 2026.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/clients.ts +36 -0
- package/codegen/perms/perms.ts +186 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +140 -8
- package/resources/accounts/accounts.ts +98 -31
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
- package/resources/audit/audit.ts +156 -38
- package/resources/calendar/{access.ts → access/access.ts} +30 -30
- package/resources/calendar/calendar.ts +17 -477
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/{access.ts → access/access.ts} +22 -22
- package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/citizens/labels/labels.ts +526 -0
- package/resources/{users → citizens/licenses}/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +126 -258
- package/resources/collab/collab.ts +4 -16
- package/resources/common/content/content.ts +108 -85
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/i18n.ts +2 -2
- package/resources/{common/cron → cron}/cron.ts +43 -43
- package/resources/documents/{access.ts → access/access.ts} +29 -52
- package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +7 -7
- package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +282 -667
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
- package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
- package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
- package/resources/file/filestore.ts +1 -1
- package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
- package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
- package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
- package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
- package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
- package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
- package/resources/mailer/{access.ts → access/access.ts} +67 -67
- package/resources/mailer/{email.ts → emails/email.ts} +19 -19
- package/resources/mailer/{events.ts → events/events.ts} +24 -24
- package/resources/mailer/{message.ts → messages/message.ts} +29 -29
- package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
- package/resources/mailer/{template.ts → templates/template.ts} +15 -15
- package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
- package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
- package/resources/notifications/{events.ts → events/events.ts} +20 -20
- package/resources/notifications/notifications.ts +4 -4
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
- package/resources/permissions/{events.ts → events/events.ts} +7 -7
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
- package/resources/qualifications/{access.ts → access/access.ts} +19 -19
- package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
- package/resources/qualifications/qualifications.ts +51 -179
- package/resources/settings/banner.ts +3 -3
- package/resources/settings/config.ts +527 -25
- package/resources/{documents/state.ts → settings/data.ts} +41 -20
- package/resources/settings/perms.ts +14 -14
- package/resources/stats/stats.ts +379 -0
- package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
- package/resources/sync/{data.ts → data/data.ts} +405 -59
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +242 -101
- package/resources/users/{props.ts → props/props.ts} +91 -69
- package/resources/users/short/user.ts +184 -0
- package/resources/users/{users.ts → user.ts} +266 -195
- package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
- package/resources/vehicles/{props.ts → props/props.ts} +28 -6
- package/resources/vehicles/vehicles.ts +20 -8
- package/resources/wiki/{access.ts → access/access.ts} +30 -30
- package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
- package/resources/wiki/page.ts +39 -15
- package/services/auth/auth.client.ts +23 -10
- package/services/auth/auth.ts +445 -262
- package/services/calendar/calendar.ts +56 -34
- package/services/centrum/centrum.ts +127 -127
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +44 -134
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +36 -16
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +164 -186
- 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/jobs/conduct.client.ts +30 -3
- package/services/jobs/conduct.ts +159 -33
- package/services/jobs/jobs.ts +43 -43
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.ts +39 -39
- package/services/livemap/livemap.ts +18 -18
- package/services/mailer/mailer.ts +78 -78
- package/services/notifications/notifications.ts +35 -35
- package/services/qualifications/qualifications.ts +81 -46
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +118 -5
- package/services/settings/laws.ts +1 -1
- package/services/settings/settings.ts +73 -52
- package/services/settings/system.client.ts +13 -0
- package/services/settings/system.ts +115 -15
- package/services/stats/stats.client.ts +7 -7
- package/services/stats/stats.ts +24 -24
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1525 -421
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +100 -6
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
- package/resources/users/labels.ts +0 -160
|
@@ -12,21 +12,21 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
13
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
14
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
import { JobDispatchers } from "../../resources/centrum/dispatchers";
|
|
15
|
+
import { JobDispatchers } from "../../resources/centrum/dispatchers/dispatchers";
|
|
16
16
|
import { Timestamp } from "../../resources/timestamp/timestamp";
|
|
17
|
-
import { TakeDispatchResp } from "../../resources/centrum/dispatches";
|
|
18
|
-
import { DispatchStatus } from "../../resources/centrum/dispatches";
|
|
17
|
+
import { TakeDispatchResp } from "../../resources/centrum/dispatches/dispatches";
|
|
18
|
+
import { DispatchStatus } from "../../resources/centrum/dispatches/dispatches";
|
|
19
19
|
import { Job } from "../../resources/jobs/jobs";
|
|
20
|
-
import { Dispatch } from "../../resources/centrum/dispatches";
|
|
21
|
-
import { StatusDispatch } from "../../resources/centrum/dispatches";
|
|
22
|
-
import { UnitStatus } from "../../resources/centrum/units";
|
|
20
|
+
import { Dispatch } from "../../resources/centrum/dispatches/dispatches";
|
|
21
|
+
import { StatusDispatch } from "../../resources/centrum/dispatches/dispatches";
|
|
22
|
+
import { UnitStatus } from "../../resources/centrum/units/units";
|
|
23
23
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
24
|
-
import { Dispatchers } from "../../resources/centrum/dispatchers";
|
|
25
|
-
import { HeatmapEntry } from "../../resources/livemap/heatmap";
|
|
26
|
-
import { Unit } from "../../resources/centrum/units";
|
|
27
|
-
import { StatusUnit } from "../../resources/centrum/units";
|
|
28
|
-
import { EffectiveAccess } from "../../resources/centrum/settings";
|
|
29
|
-
import { Settings } from "../../resources/centrum/settings";
|
|
24
|
+
import { Dispatchers } from "../../resources/centrum/dispatchers/dispatchers";
|
|
25
|
+
import { HeatmapEntry } from "../../resources/livemap/heatmap/heatmap";
|
|
26
|
+
import { Unit } from "../../resources/centrum/units/units";
|
|
27
|
+
import { StatusUnit } from "../../resources/centrum/units/units";
|
|
28
|
+
import { EffectiveAccess } from "../../resources/centrum/settings/settings";
|
|
29
|
+
import { Settings } from "../../resources/centrum/settings/settings";
|
|
30
30
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
31
31
|
// Common
|
|
32
32
|
|
|
@@ -66,11 +66,11 @@ export interface GetSettingsRequest {
|
|
|
66
66
|
*/
|
|
67
67
|
export interface GetSettingsResponse {
|
|
68
68
|
/**
|
|
69
|
-
* @generated from protobuf field: resources.centrum.Settings settings = 1
|
|
69
|
+
* @generated from protobuf field: resources.centrum.settings.Settings settings = 1
|
|
70
70
|
*/
|
|
71
71
|
settings?: Settings;
|
|
72
72
|
/**
|
|
73
|
-
* @generated from protobuf field: resources.centrum.EffectiveAccess effective_access = 2
|
|
73
|
+
* @generated from protobuf field: resources.centrum.settings.EffectiveAccess effective_access = 2
|
|
74
74
|
*/
|
|
75
75
|
effectiveAccess?: EffectiveAccess;
|
|
76
76
|
}
|
|
@@ -79,7 +79,7 @@ export interface GetSettingsResponse {
|
|
|
79
79
|
*/
|
|
80
80
|
export interface UpdateSettingsRequest {
|
|
81
81
|
/**
|
|
82
|
-
* @generated from protobuf field: resources.centrum.Settings settings = 1
|
|
82
|
+
* @generated from protobuf field: resources.centrum.settings.Settings settings = 1
|
|
83
83
|
*/
|
|
84
84
|
settings?: Settings;
|
|
85
85
|
}
|
|
@@ -88,7 +88,7 @@ export interface UpdateSettingsRequest {
|
|
|
88
88
|
*/
|
|
89
89
|
export interface UpdateSettingsResponse {
|
|
90
90
|
/**
|
|
91
|
-
* @generated from protobuf field: resources.centrum.Settings settings = 1
|
|
91
|
+
* @generated from protobuf field: resources.centrum.settings.Settings settings = 1
|
|
92
92
|
*/
|
|
93
93
|
settings?: Settings;
|
|
94
94
|
}
|
|
@@ -99,7 +99,7 @@ export interface UpdateSettingsResponse {
|
|
|
99
99
|
*/
|
|
100
100
|
export interface ListUnitsRequest {
|
|
101
101
|
/**
|
|
102
|
-
* @generated from protobuf field: repeated resources.centrum.StatusUnit status = 1
|
|
102
|
+
* @generated from protobuf field: repeated resources.centrum.units.StatusUnit status = 1
|
|
103
103
|
*/
|
|
104
104
|
status: StatusUnit[];
|
|
105
105
|
}
|
|
@@ -108,7 +108,7 @@ export interface ListUnitsRequest {
|
|
|
108
108
|
*/
|
|
109
109
|
export interface ListUnitsResponse {
|
|
110
110
|
/**
|
|
111
|
-
* @generated from protobuf field: repeated resources.centrum.Unit units = 1
|
|
111
|
+
* @generated from protobuf field: repeated resources.centrum.units.Unit units = 1
|
|
112
112
|
*/
|
|
113
113
|
units: Unit[];
|
|
114
114
|
}
|
|
@@ -117,7 +117,7 @@ export interface ListUnitsResponse {
|
|
|
117
117
|
*/
|
|
118
118
|
export interface CreateOrUpdateUnitRequest {
|
|
119
119
|
/**
|
|
120
|
-
* @generated from protobuf field: resources.centrum.Unit unit = 1
|
|
120
|
+
* @generated from protobuf field: resources.centrum.units.Unit unit = 1
|
|
121
121
|
*/
|
|
122
122
|
unit?: Unit;
|
|
123
123
|
}
|
|
@@ -126,7 +126,7 @@ export interface CreateOrUpdateUnitRequest {
|
|
|
126
126
|
*/
|
|
127
127
|
export interface CreateOrUpdateUnitResponse {
|
|
128
128
|
/**
|
|
129
|
-
* @generated from protobuf field: resources.centrum.Unit unit = 1
|
|
129
|
+
* @generated from protobuf field: resources.centrum.units.Unit unit = 1
|
|
130
130
|
*/
|
|
131
131
|
unit?: Unit;
|
|
132
132
|
}
|
|
@@ -153,7 +153,7 @@ export interface UpdateUnitStatusRequest {
|
|
|
153
153
|
*/
|
|
154
154
|
unitId: number;
|
|
155
155
|
/**
|
|
156
|
-
* @generated from protobuf field: resources.centrum.StatusUnit status = 2
|
|
156
|
+
* @generated from protobuf field: resources.centrum.units.StatusUnit status = 2
|
|
157
157
|
*/
|
|
158
158
|
status: StatusUnit;
|
|
159
159
|
/**
|
|
@@ -206,7 +206,7 @@ export interface GetDispatchHeatmapResponse {
|
|
|
206
206
|
*/
|
|
207
207
|
maxEntries: number;
|
|
208
208
|
/**
|
|
209
|
-
* @generated from protobuf field: repeated resources.livemap.HeatmapEntry entries = 2
|
|
209
|
+
* @generated from protobuf field: repeated resources.livemap.heatmap.HeatmapEntry entries = 2
|
|
210
210
|
*/
|
|
211
211
|
entries: HeatmapEntry[];
|
|
212
212
|
}
|
|
@@ -224,7 +224,7 @@ export interface UpdateDispatchersRequest {
|
|
|
224
224
|
*/
|
|
225
225
|
export interface UpdateDispatchersResponse {
|
|
226
226
|
/**
|
|
227
|
-
* @generated from protobuf field: resources.centrum.Dispatchers dispatchers = 1
|
|
227
|
+
* @generated from protobuf field: resources.centrum.dispatchers.Dispatchers dispatchers = 1
|
|
228
228
|
*/
|
|
229
229
|
dispatchers?: Dispatchers;
|
|
230
230
|
}
|
|
@@ -237,7 +237,7 @@ export interface ListUnitActivityResponse {
|
|
|
237
237
|
*/
|
|
238
238
|
pagination?: PaginationResponse;
|
|
239
239
|
/**
|
|
240
|
-
* @generated from protobuf field: repeated resources.centrum.UnitStatus activity = 2
|
|
240
|
+
* @generated from protobuf field: repeated resources.centrum.units.UnitStatus activity = 2
|
|
241
241
|
*/
|
|
242
242
|
activity: UnitStatus[];
|
|
243
243
|
}
|
|
@@ -266,11 +266,11 @@ export interface ListDispatchesRequest {
|
|
|
266
266
|
*/
|
|
267
267
|
pagination?: PaginationRequest;
|
|
268
268
|
/**
|
|
269
|
-
* @generated from protobuf field: repeated resources.centrum.StatusDispatch status = 2
|
|
269
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.StatusDispatch status = 2
|
|
270
270
|
*/
|
|
271
271
|
status: StatusDispatch[];
|
|
272
272
|
/**
|
|
273
|
-
* @generated from protobuf field: repeated resources.centrum.StatusDispatch not_status = 3
|
|
273
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.StatusDispatch not_status = 3
|
|
274
274
|
*/
|
|
275
275
|
notStatus: StatusDispatch[];
|
|
276
276
|
/**
|
|
@@ -291,7 +291,7 @@ export interface ListDispatchesResponse {
|
|
|
291
291
|
*/
|
|
292
292
|
pagination?: PaginationResponse;
|
|
293
293
|
/**
|
|
294
|
-
* @generated from protobuf field: repeated resources.centrum.Dispatch dispatches = 2
|
|
294
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.Dispatch dispatches = 2
|
|
295
295
|
*/
|
|
296
296
|
dispatches: Dispatch[];
|
|
297
297
|
}
|
|
@@ -309,7 +309,7 @@ export interface GetDispatchRequest {
|
|
|
309
309
|
*/
|
|
310
310
|
export interface GetDispatchResponse {
|
|
311
311
|
/**
|
|
312
|
-
* @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
|
|
312
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
313
313
|
*/
|
|
314
314
|
dispatch?: Dispatch;
|
|
315
315
|
}
|
|
@@ -318,7 +318,7 @@ export interface GetDispatchResponse {
|
|
|
318
318
|
*/
|
|
319
319
|
export interface CreateDispatchRequest {
|
|
320
320
|
/**
|
|
321
|
-
* @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
|
|
321
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
322
322
|
*/
|
|
323
323
|
dispatch?: Dispatch;
|
|
324
324
|
}
|
|
@@ -327,7 +327,7 @@ export interface CreateDispatchRequest {
|
|
|
327
327
|
*/
|
|
328
328
|
export interface CreateDispatchResponse {
|
|
329
329
|
/**
|
|
330
|
-
* @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
|
|
330
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
331
331
|
*/
|
|
332
332
|
dispatch?: Dispatch;
|
|
333
333
|
}
|
|
@@ -336,7 +336,7 @@ export interface CreateDispatchResponse {
|
|
|
336
336
|
*/
|
|
337
337
|
export interface UpdateDispatchRequest {
|
|
338
338
|
/**
|
|
339
|
-
* @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
|
|
339
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
340
340
|
*/
|
|
341
341
|
dispatch?: Dispatch;
|
|
342
342
|
}
|
|
@@ -345,7 +345,7 @@ export interface UpdateDispatchRequest {
|
|
|
345
345
|
*/
|
|
346
346
|
export interface UpdateDispatchResponse {
|
|
347
347
|
/**
|
|
348
|
-
* @generated from protobuf field: resources.centrum.Dispatch dispatch = 1
|
|
348
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
349
349
|
*/
|
|
350
350
|
dispatch?: Dispatch;
|
|
351
351
|
}
|
|
@@ -386,7 +386,7 @@ export interface UpdateDispatchStatusRequest {
|
|
|
386
386
|
*/
|
|
387
387
|
dispatchId: number;
|
|
388
388
|
/**
|
|
389
|
-
* @generated from protobuf field: resources.centrum.StatusDispatch status = 2
|
|
389
|
+
* @generated from protobuf field: resources.centrum.dispatches.StatusDispatch status = 2
|
|
390
390
|
*/
|
|
391
391
|
status: StatusDispatch;
|
|
392
392
|
/**
|
|
@@ -438,7 +438,7 @@ export interface ListDispatchActivityResponse {
|
|
|
438
438
|
*/
|
|
439
439
|
pagination?: PaginationResponse;
|
|
440
440
|
/**
|
|
441
|
-
* @generated from protobuf field: repeated resources.centrum.DispatchStatus activity = 2
|
|
441
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.DispatchStatus activity = 2
|
|
442
442
|
*/
|
|
443
443
|
activity: DispatchStatus[];
|
|
444
444
|
}
|
|
@@ -456,7 +456,7 @@ export interface JoinUnitRequest {
|
|
|
456
456
|
*/
|
|
457
457
|
export interface JoinUnitResponse {
|
|
458
458
|
/**
|
|
459
|
-
* @generated from protobuf field: resources.centrum.Unit unit = 1
|
|
459
|
+
* @generated from protobuf field: resources.centrum.units.Unit unit = 1
|
|
460
460
|
*/
|
|
461
461
|
unit?: Unit;
|
|
462
462
|
}
|
|
@@ -469,7 +469,7 @@ export interface TakeDispatchRequest {
|
|
|
469
469
|
*/
|
|
470
470
|
dispatchIds: number[];
|
|
471
471
|
/**
|
|
472
|
-
* @generated from protobuf field: resources.centrum.TakeDispatchResp resp = 2
|
|
472
|
+
* @generated from protobuf field: resources.centrum.dispatches.TakeDispatchResp resp = 2
|
|
473
473
|
*/
|
|
474
474
|
resp: TakeDispatchResp;
|
|
475
475
|
/**
|
|
@@ -491,11 +491,11 @@ export interface StreamHandshake {
|
|
|
491
491
|
*/
|
|
492
492
|
serverTime?: Timestamp;
|
|
493
493
|
/**
|
|
494
|
-
* @generated from protobuf field: resources.centrum.Settings settings = 2
|
|
494
|
+
* @generated from protobuf field: resources.centrum.settings.Settings settings = 2
|
|
495
495
|
*/
|
|
496
496
|
settings?: Settings;
|
|
497
497
|
/**
|
|
498
|
-
* @generated from protobuf field: resources.centrum.EffectiveAccess access = 3
|
|
498
|
+
* @generated from protobuf field: resources.centrum.settings.EffectiveAccess access = 3
|
|
499
499
|
*/
|
|
500
500
|
access?: EffectiveAccess;
|
|
501
501
|
}
|
|
@@ -504,7 +504,7 @@ export interface StreamHandshake {
|
|
|
504
504
|
*/
|
|
505
505
|
export interface LatestState {
|
|
506
506
|
/**
|
|
507
|
-
* @generated from protobuf field: resources.centrum.JobDispatchers dispatchers = 1
|
|
507
|
+
* @generated from protobuf field: resources.centrum.dispatchers.JobDispatchers dispatchers = 1
|
|
508
508
|
*/
|
|
509
509
|
dispatchers?: JobDispatchers;
|
|
510
510
|
/**
|
|
@@ -514,11 +514,11 @@ export interface LatestState {
|
|
|
514
514
|
/**
|
|
515
515
|
* Send the current units and dispatches
|
|
516
516
|
*
|
|
517
|
-
* @generated from protobuf field: repeated resources.centrum.Unit units = 3
|
|
517
|
+
* @generated from protobuf field: repeated resources.centrum.units.Unit units = 3
|
|
518
518
|
*/
|
|
519
519
|
units: Unit[];
|
|
520
520
|
/**
|
|
521
|
-
* @generated from protobuf field: repeated resources.centrum.Dispatch dispatches = 4
|
|
521
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.Dispatch dispatches = 4
|
|
522
522
|
*/
|
|
523
523
|
dispatches: Dispatch[];
|
|
524
524
|
}
|
|
@@ -549,19 +549,19 @@ export interface StreamResponse {
|
|
|
549
549
|
} | {
|
|
550
550
|
oneofKind: "settings";
|
|
551
551
|
/**
|
|
552
|
-
* @generated from protobuf field: resources.centrum.Settings settings = 3
|
|
552
|
+
* @generated from protobuf field: resources.centrum.settings.Settings settings = 3
|
|
553
553
|
*/
|
|
554
554
|
settings: Settings;
|
|
555
555
|
} | {
|
|
556
556
|
oneofKind: "access";
|
|
557
557
|
/**
|
|
558
|
-
* @generated from protobuf field: resources.centrum.EffectiveAccess access = 4
|
|
558
|
+
* @generated from protobuf field: resources.centrum.settings.EffectiveAccess access = 4
|
|
559
559
|
*/
|
|
560
560
|
access: EffectiveAccess;
|
|
561
561
|
} | {
|
|
562
562
|
oneofKind: "dispatchers";
|
|
563
563
|
/**
|
|
564
|
-
* @generated from protobuf field: resources.centrum.Dispatchers dispatchers = 5
|
|
564
|
+
* @generated from protobuf field: resources.centrum.dispatchers.Dispatchers dispatchers = 5
|
|
565
565
|
*/
|
|
566
566
|
dispatchers: Dispatchers;
|
|
567
567
|
} | {
|
|
@@ -573,13 +573,13 @@ export interface StreamResponse {
|
|
|
573
573
|
} | {
|
|
574
574
|
oneofKind: "unitUpdated";
|
|
575
575
|
/**
|
|
576
|
-
* @generated from protobuf field: resources.centrum.Unit unit_updated = 7
|
|
576
|
+
* @generated from protobuf field: resources.centrum.units.Unit unit_updated = 7
|
|
577
577
|
*/
|
|
578
578
|
unitUpdated: Unit;
|
|
579
579
|
} | {
|
|
580
580
|
oneofKind: "unitStatus";
|
|
581
581
|
/**
|
|
582
|
-
* @generated from protobuf field: resources.centrum.UnitStatus unit_status = 8
|
|
582
|
+
* @generated from protobuf field: resources.centrum.units.UnitStatus unit_status = 8
|
|
583
583
|
*/
|
|
584
584
|
unitStatus: UnitStatus;
|
|
585
585
|
} | {
|
|
@@ -591,13 +591,13 @@ export interface StreamResponse {
|
|
|
591
591
|
} | {
|
|
592
592
|
oneofKind: "dispatchUpdated";
|
|
593
593
|
/**
|
|
594
|
-
* @generated from protobuf field: resources.centrum.Dispatch dispatch_updated = 10
|
|
594
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch_updated = 10
|
|
595
595
|
*/
|
|
596
596
|
dispatchUpdated: Dispatch;
|
|
597
597
|
} | {
|
|
598
598
|
oneofKind: "dispatchStatus";
|
|
599
599
|
/**
|
|
600
|
-
* @generated from protobuf field: resources.centrum.DispatchStatus dispatch_status = 11
|
|
600
|
+
* @generated from protobuf field: resources.centrum.dispatches.DispatchStatus dispatch_status = 11
|
|
601
601
|
*/
|
|
602
602
|
dispatchStatus: DispatchStatus;
|
|
603
603
|
} | {
|
|
@@ -769,10 +769,10 @@ class GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
|
|
|
769
769
|
while (reader.pos < end) {
|
|
770
770
|
let [fieldNo, wireType] = reader.tag();
|
|
771
771
|
switch (fieldNo) {
|
|
772
|
-
case /* resources.centrum.Settings settings */ 1:
|
|
772
|
+
case /* resources.centrum.settings.Settings settings */ 1:
|
|
773
773
|
message.settings = Settings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
774
774
|
break;
|
|
775
|
-
case /* resources.centrum.EffectiveAccess effective_access */ 2:
|
|
775
|
+
case /* resources.centrum.settings.EffectiveAccess effective_access */ 2:
|
|
776
776
|
message.effectiveAccess = EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAccess);
|
|
777
777
|
break;
|
|
778
778
|
default:
|
|
@@ -787,10 +787,10 @@ class GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
|
|
|
787
787
|
return message;
|
|
788
788
|
}
|
|
789
789
|
internalBinaryWrite(message: GetSettingsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
790
|
-
/* resources.centrum.Settings settings = 1; */
|
|
790
|
+
/* resources.centrum.settings.Settings settings = 1; */
|
|
791
791
|
if (message.settings)
|
|
792
792
|
Settings.internalBinaryWrite(message.settings, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
793
|
-
/* resources.centrum.EffectiveAccess effective_access = 2; */
|
|
793
|
+
/* resources.centrum.settings.EffectiveAccess effective_access = 2; */
|
|
794
794
|
if (message.effectiveAccess)
|
|
795
795
|
EffectiveAccess.internalBinaryWrite(message.effectiveAccess, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
796
796
|
let u = options.writeUnknownFields;
|
|
@@ -821,7 +821,7 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
|
|
|
821
821
|
while (reader.pos < end) {
|
|
822
822
|
let [fieldNo, wireType] = reader.tag();
|
|
823
823
|
switch (fieldNo) {
|
|
824
|
-
case /* resources.centrum.Settings settings */ 1:
|
|
824
|
+
case /* resources.centrum.settings.Settings settings */ 1:
|
|
825
825
|
message.settings = Settings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
826
826
|
break;
|
|
827
827
|
default:
|
|
@@ -836,7 +836,7 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
|
|
|
836
836
|
return message;
|
|
837
837
|
}
|
|
838
838
|
internalBinaryWrite(message: UpdateSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
839
|
-
/* resources.centrum.Settings settings = 1; */
|
|
839
|
+
/* resources.centrum.settings.Settings settings = 1; */
|
|
840
840
|
if (message.settings)
|
|
841
841
|
Settings.internalBinaryWrite(message.settings, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
842
842
|
let u = options.writeUnknownFields;
|
|
@@ -867,7 +867,7 @@ class UpdateSettingsResponse$Type extends MessageType<UpdateSettingsResponse> {
|
|
|
867
867
|
while (reader.pos < end) {
|
|
868
868
|
let [fieldNo, wireType] = reader.tag();
|
|
869
869
|
switch (fieldNo) {
|
|
870
|
-
case /* resources.centrum.Settings settings */ 1:
|
|
870
|
+
case /* resources.centrum.settings.Settings settings */ 1:
|
|
871
871
|
message.settings = Settings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
872
872
|
break;
|
|
873
873
|
default:
|
|
@@ -882,7 +882,7 @@ class UpdateSettingsResponse$Type extends MessageType<UpdateSettingsResponse> {
|
|
|
882
882
|
return message;
|
|
883
883
|
}
|
|
884
884
|
internalBinaryWrite(message: UpdateSettingsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
885
|
-
/* resources.centrum.Settings settings = 1; */
|
|
885
|
+
/* resources.centrum.settings.Settings settings = 1; */
|
|
886
886
|
if (message.settings)
|
|
887
887
|
Settings.internalBinaryWrite(message.settings, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
888
888
|
let u = options.writeUnknownFields;
|
|
@@ -899,7 +899,7 @@ export const UpdateSettingsResponse = new UpdateSettingsResponse$Type();
|
|
|
899
899
|
class ListUnitsRequest$Type extends MessageType<ListUnitsRequest> {
|
|
900
900
|
constructor() {
|
|
901
901
|
super("services.centrum.ListUnitsRequest", [
|
|
902
|
-
{ no: 1, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } }
|
|
902
|
+
{ no: 1, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.units.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } }
|
|
903
903
|
]);
|
|
904
904
|
}
|
|
905
905
|
create(value?: PartialMessage<ListUnitsRequest>): ListUnitsRequest {
|
|
@@ -914,7 +914,7 @@ class ListUnitsRequest$Type extends MessageType<ListUnitsRequest> {
|
|
|
914
914
|
while (reader.pos < end) {
|
|
915
915
|
let [fieldNo, wireType] = reader.tag();
|
|
916
916
|
switch (fieldNo) {
|
|
917
|
-
case /* repeated resources.centrum.StatusUnit status */ 1:
|
|
917
|
+
case /* repeated resources.centrum.units.StatusUnit status */ 1:
|
|
918
918
|
if (wireType === WireType.LengthDelimited)
|
|
919
919
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
920
920
|
message.status.push(reader.int32());
|
|
@@ -933,7 +933,7 @@ class ListUnitsRequest$Type extends MessageType<ListUnitsRequest> {
|
|
|
933
933
|
return message;
|
|
934
934
|
}
|
|
935
935
|
internalBinaryWrite(message: ListUnitsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
936
|
-
/* repeated resources.centrum.StatusUnit status = 1; */
|
|
936
|
+
/* repeated resources.centrum.units.StatusUnit status = 1; */
|
|
937
937
|
if (message.status.length) {
|
|
938
938
|
writer.tag(1, WireType.LengthDelimited).fork();
|
|
939
939
|
for (let i = 0; i < message.status.length; i++)
|
|
@@ -969,7 +969,7 @@ class ListUnitsResponse$Type extends MessageType<ListUnitsResponse> {
|
|
|
969
969
|
while (reader.pos < end) {
|
|
970
970
|
let [fieldNo, wireType] = reader.tag();
|
|
971
971
|
switch (fieldNo) {
|
|
972
|
-
case /* repeated resources.centrum.Unit units */ 1:
|
|
972
|
+
case /* repeated resources.centrum.units.Unit units */ 1:
|
|
973
973
|
message.units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
|
|
974
974
|
break;
|
|
975
975
|
default:
|
|
@@ -984,7 +984,7 @@ class ListUnitsResponse$Type extends MessageType<ListUnitsResponse> {
|
|
|
984
984
|
return message;
|
|
985
985
|
}
|
|
986
986
|
internalBinaryWrite(message: ListUnitsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
987
|
-
/* repeated resources.centrum.Unit units = 1; */
|
|
987
|
+
/* repeated resources.centrum.units.Unit units = 1; */
|
|
988
988
|
for (let i = 0; i < message.units.length; i++)
|
|
989
989
|
Unit.internalBinaryWrite(message.units[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
990
990
|
let u = options.writeUnknownFields;
|
|
@@ -1015,7 +1015,7 @@ class CreateOrUpdateUnitRequest$Type extends MessageType<CreateOrUpdateUnitReque
|
|
|
1015
1015
|
while (reader.pos < end) {
|
|
1016
1016
|
let [fieldNo, wireType] = reader.tag();
|
|
1017
1017
|
switch (fieldNo) {
|
|
1018
|
-
case /* resources.centrum.Unit unit */ 1:
|
|
1018
|
+
case /* resources.centrum.units.Unit unit */ 1:
|
|
1019
1019
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
1020
1020
|
break;
|
|
1021
1021
|
default:
|
|
@@ -1030,7 +1030,7 @@ class CreateOrUpdateUnitRequest$Type extends MessageType<CreateOrUpdateUnitReque
|
|
|
1030
1030
|
return message;
|
|
1031
1031
|
}
|
|
1032
1032
|
internalBinaryWrite(message: CreateOrUpdateUnitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1033
|
-
/* resources.centrum.Unit unit = 1; */
|
|
1033
|
+
/* resources.centrum.units.Unit unit = 1; */
|
|
1034
1034
|
if (message.unit)
|
|
1035
1035
|
Unit.internalBinaryWrite(message.unit, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1036
1036
|
let u = options.writeUnknownFields;
|
|
@@ -1061,7 +1061,7 @@ class CreateOrUpdateUnitResponse$Type extends MessageType<CreateOrUpdateUnitResp
|
|
|
1061
1061
|
while (reader.pos < end) {
|
|
1062
1062
|
let [fieldNo, wireType] = reader.tag();
|
|
1063
1063
|
switch (fieldNo) {
|
|
1064
|
-
case /* resources.centrum.Unit unit */ 1:
|
|
1064
|
+
case /* resources.centrum.units.Unit unit */ 1:
|
|
1065
1065
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
1066
1066
|
break;
|
|
1067
1067
|
default:
|
|
@@ -1076,7 +1076,7 @@ class CreateOrUpdateUnitResponse$Type extends MessageType<CreateOrUpdateUnitResp
|
|
|
1076
1076
|
return message;
|
|
1077
1077
|
}
|
|
1078
1078
|
internalBinaryWrite(message: CreateOrUpdateUnitResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1079
|
-
/* resources.centrum.Unit unit = 1; */
|
|
1079
|
+
/* resources.centrum.units.Unit unit = 1; */
|
|
1080
1080
|
if (message.unit)
|
|
1081
1081
|
Unit.internalBinaryWrite(message.unit, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1082
1082
|
let u = options.writeUnknownFields;
|
|
@@ -1179,7 +1179,7 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
|
|
|
1179
1179
|
constructor() {
|
|
1180
1180
|
super("services.centrum.UpdateUnitStatusRequest", [
|
|
1181
1181
|
{ no: 1, name: "unit_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1182
|
-
{ no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
1182
|
+
{ no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.units.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
1183
1183
|
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
1184
1184
|
{ no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
|
|
1185
1185
|
]);
|
|
@@ -1200,7 +1200,7 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
|
|
|
1200
1200
|
case /* int64 unit_id */ 1:
|
|
1201
1201
|
message.unitId = reader.int64().toNumber();
|
|
1202
1202
|
break;
|
|
1203
|
-
case /* resources.centrum.StatusUnit status */ 2:
|
|
1203
|
+
case /* resources.centrum.units.StatusUnit status */ 2:
|
|
1204
1204
|
message.status = reader.int32();
|
|
1205
1205
|
break;
|
|
1206
1206
|
case /* optional string reason */ 3:
|
|
@@ -1224,7 +1224,7 @@ class UpdateUnitStatusRequest$Type extends MessageType<UpdateUnitStatusRequest>
|
|
|
1224
1224
|
/* int64 unit_id = 1; */
|
|
1225
1225
|
if (message.unitId !== 0)
|
|
1226
1226
|
writer.tag(1, WireType.Varint).int64(message.unitId);
|
|
1227
|
-
/* resources.centrum.StatusUnit status = 2; */
|
|
1227
|
+
/* resources.centrum.units.StatusUnit status = 2; */
|
|
1228
1228
|
if (message.status !== 0)
|
|
1229
1229
|
writer.tag(2, WireType.Varint).int32(message.status);
|
|
1230
1230
|
/* optional string reason = 3; */
|
|
@@ -1460,7 +1460,7 @@ class GetDispatchHeatmapResponse$Type extends MessageType<GetDispatchHeatmapResp
|
|
|
1460
1460
|
case /* int32 max_entries */ 1:
|
|
1461
1461
|
message.maxEntries = reader.int32();
|
|
1462
1462
|
break;
|
|
1463
|
-
case /* repeated resources.livemap.HeatmapEntry entries */ 2:
|
|
1463
|
+
case /* repeated resources.livemap.heatmap.HeatmapEntry entries */ 2:
|
|
1464
1464
|
message.entries.push(HeatmapEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
1465
1465
|
break;
|
|
1466
1466
|
default:
|
|
@@ -1478,7 +1478,7 @@ class GetDispatchHeatmapResponse$Type extends MessageType<GetDispatchHeatmapResp
|
|
|
1478
1478
|
/* int32 max_entries = 1; */
|
|
1479
1479
|
if (message.maxEntries !== 0)
|
|
1480
1480
|
writer.tag(1, WireType.Varint).int32(message.maxEntries);
|
|
1481
|
-
/* repeated resources.livemap.HeatmapEntry entries = 2; */
|
|
1481
|
+
/* repeated resources.livemap.heatmap.HeatmapEntry entries = 2; */
|
|
1482
1482
|
for (let i = 0; i < message.entries.length; i++)
|
|
1483
1483
|
HeatmapEntry.internalBinaryWrite(message.entries[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1484
1484
|
let u = options.writeUnknownFields;
|
|
@@ -1564,7 +1564,7 @@ class UpdateDispatchersResponse$Type extends MessageType<UpdateDispatchersRespon
|
|
|
1564
1564
|
while (reader.pos < end) {
|
|
1565
1565
|
let [fieldNo, wireType] = reader.tag();
|
|
1566
1566
|
switch (fieldNo) {
|
|
1567
|
-
case /* resources.centrum.Dispatchers dispatchers */ 1:
|
|
1567
|
+
case /* resources.centrum.dispatchers.Dispatchers dispatchers */ 1:
|
|
1568
1568
|
message.dispatchers = Dispatchers.internalBinaryRead(reader, reader.uint32(), options, message.dispatchers);
|
|
1569
1569
|
break;
|
|
1570
1570
|
default:
|
|
@@ -1579,7 +1579,7 @@ class UpdateDispatchersResponse$Type extends MessageType<UpdateDispatchersRespon
|
|
|
1579
1579
|
return message;
|
|
1580
1580
|
}
|
|
1581
1581
|
internalBinaryWrite(message: UpdateDispatchersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1582
|
-
/* resources.centrum.Dispatchers dispatchers = 1; */
|
|
1582
|
+
/* resources.centrum.dispatchers.Dispatchers dispatchers = 1; */
|
|
1583
1583
|
if (message.dispatchers)
|
|
1584
1584
|
Dispatchers.internalBinaryWrite(message.dispatchers, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1585
1585
|
let u = options.writeUnknownFields;
|
|
@@ -1615,7 +1615,7 @@ class ListUnitActivityResponse$Type extends MessageType<ListUnitActivityResponse
|
|
|
1615
1615
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
1616
1616
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
1617
1617
|
break;
|
|
1618
|
-
case /* repeated resources.centrum.UnitStatus activity */ 2:
|
|
1618
|
+
case /* repeated resources.centrum.units.UnitStatus activity */ 2:
|
|
1619
1619
|
message.activity.push(UnitStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
1620
1620
|
break;
|
|
1621
1621
|
default:
|
|
@@ -1633,7 +1633,7 @@ class ListUnitActivityResponse$Type extends MessageType<ListUnitActivityResponse
|
|
|
1633
1633
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
1634
1634
|
if (message.pagination)
|
|
1635
1635
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1636
|
-
/* repeated resources.centrum.UnitStatus activity = 2; */
|
|
1636
|
+
/* repeated resources.centrum.units.UnitStatus activity = 2; */
|
|
1637
1637
|
for (let i = 0; i < message.activity.length; i++)
|
|
1638
1638
|
UnitStatus.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1639
1639
|
let u = options.writeUnknownFields;
|
|
@@ -1736,8 +1736,8 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
|
|
|
1736
1736
|
constructor() {
|
|
1737
1737
|
super("services.centrum.ListDispatchesRequest", [
|
|
1738
1738
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
1739
|
-
{ no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
1740
|
-
{ no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
1739
|
+
{ no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
1740
|
+
{ no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
1741
1741
|
{ no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } },
|
|
1742
1742
|
{ no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } }
|
|
1743
1743
|
]);
|
|
@@ -1759,14 +1759,14 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
|
|
|
1759
1759
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
1760
1760
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
1761
1761
|
break;
|
|
1762
|
-
case /* repeated resources.centrum.StatusDispatch status */ 2:
|
|
1762
|
+
case /* repeated resources.centrum.dispatches.StatusDispatch status */ 2:
|
|
1763
1763
|
if (wireType === WireType.LengthDelimited)
|
|
1764
1764
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1765
1765
|
message.status.push(reader.int32());
|
|
1766
1766
|
else
|
|
1767
1767
|
message.status.push(reader.int32());
|
|
1768
1768
|
break;
|
|
1769
|
-
case /* repeated resources.centrum.StatusDispatch not_status */ 3:
|
|
1769
|
+
case /* repeated resources.centrum.dispatches.StatusDispatch not_status */ 3:
|
|
1770
1770
|
if (wireType === WireType.LengthDelimited)
|
|
1771
1771
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1772
1772
|
message.notStatus.push(reader.int32());
|
|
@@ -1798,14 +1798,14 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
|
|
|
1798
1798
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
1799
1799
|
if (message.pagination)
|
|
1800
1800
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1801
|
-
/* repeated resources.centrum.StatusDispatch status = 2; */
|
|
1801
|
+
/* repeated resources.centrum.dispatches.StatusDispatch status = 2; */
|
|
1802
1802
|
if (message.status.length) {
|
|
1803
1803
|
writer.tag(2, WireType.LengthDelimited).fork();
|
|
1804
1804
|
for (let i = 0; i < message.status.length; i++)
|
|
1805
1805
|
writer.int32(message.status[i]);
|
|
1806
1806
|
writer.join();
|
|
1807
1807
|
}
|
|
1808
|
-
/* repeated resources.centrum.StatusDispatch not_status = 3; */
|
|
1808
|
+
/* repeated resources.centrum.dispatches.StatusDispatch not_status = 3; */
|
|
1809
1809
|
if (message.notStatus.length) {
|
|
1810
1810
|
writer.tag(3, WireType.LengthDelimited).fork();
|
|
1811
1811
|
for (let i = 0; i < message.notStatus.length; i++)
|
|
@@ -1855,7 +1855,7 @@ class ListDispatchesResponse$Type extends MessageType<ListDispatchesResponse> {
|
|
|
1855
1855
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
1856
1856
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
1857
1857
|
break;
|
|
1858
|
-
case /* repeated resources.centrum.Dispatch dispatches */ 2:
|
|
1858
|
+
case /* repeated resources.centrum.dispatches.Dispatch dispatches */ 2:
|
|
1859
1859
|
message.dispatches.push(Dispatch.internalBinaryRead(reader, reader.uint32(), options));
|
|
1860
1860
|
break;
|
|
1861
1861
|
default:
|
|
@@ -1873,7 +1873,7 @@ class ListDispatchesResponse$Type extends MessageType<ListDispatchesResponse> {
|
|
|
1873
1873
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
1874
1874
|
if (message.pagination)
|
|
1875
1875
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1876
|
-
/* repeated resources.centrum.Dispatch dispatches = 2; */
|
|
1876
|
+
/* repeated resources.centrum.dispatches.Dispatch dispatches = 2; */
|
|
1877
1877
|
for (let i = 0; i < message.dispatches.length; i++)
|
|
1878
1878
|
Dispatch.internalBinaryWrite(message.dispatches[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1879
1879
|
let u = options.writeUnknownFields;
|
|
@@ -1951,7 +1951,7 @@ class GetDispatchResponse$Type extends MessageType<GetDispatchResponse> {
|
|
|
1951
1951
|
while (reader.pos < end) {
|
|
1952
1952
|
let [fieldNo, wireType] = reader.tag();
|
|
1953
1953
|
switch (fieldNo) {
|
|
1954
|
-
case /* resources.centrum.Dispatch dispatch */ 1:
|
|
1954
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
1955
1955
|
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
1956
1956
|
break;
|
|
1957
1957
|
default:
|
|
@@ -1966,7 +1966,7 @@ class GetDispatchResponse$Type extends MessageType<GetDispatchResponse> {
|
|
|
1966
1966
|
return message;
|
|
1967
1967
|
}
|
|
1968
1968
|
internalBinaryWrite(message: GetDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1969
|
-
/* resources.centrum.Dispatch dispatch = 1; */
|
|
1969
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
1970
1970
|
if (message.dispatch)
|
|
1971
1971
|
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1972
1972
|
let u = options.writeUnknownFields;
|
|
@@ -1997,7 +1997,7 @@ class CreateDispatchRequest$Type extends MessageType<CreateDispatchRequest> {
|
|
|
1997
1997
|
while (reader.pos < end) {
|
|
1998
1998
|
let [fieldNo, wireType] = reader.tag();
|
|
1999
1999
|
switch (fieldNo) {
|
|
2000
|
-
case /* resources.centrum.Dispatch dispatch */ 1:
|
|
2000
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
2001
2001
|
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
2002
2002
|
break;
|
|
2003
2003
|
default:
|
|
@@ -2012,7 +2012,7 @@ class CreateDispatchRequest$Type extends MessageType<CreateDispatchRequest> {
|
|
|
2012
2012
|
return message;
|
|
2013
2013
|
}
|
|
2014
2014
|
internalBinaryWrite(message: CreateDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2015
|
-
/* resources.centrum.Dispatch dispatch = 1; */
|
|
2015
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
2016
2016
|
if (message.dispatch)
|
|
2017
2017
|
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2018
2018
|
let u = options.writeUnknownFields;
|
|
@@ -2043,7 +2043,7 @@ class CreateDispatchResponse$Type extends MessageType<CreateDispatchResponse> {
|
|
|
2043
2043
|
while (reader.pos < end) {
|
|
2044
2044
|
let [fieldNo, wireType] = reader.tag();
|
|
2045
2045
|
switch (fieldNo) {
|
|
2046
|
-
case /* resources.centrum.Dispatch dispatch */ 1:
|
|
2046
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
2047
2047
|
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
2048
2048
|
break;
|
|
2049
2049
|
default:
|
|
@@ -2058,7 +2058,7 @@ class CreateDispatchResponse$Type extends MessageType<CreateDispatchResponse> {
|
|
|
2058
2058
|
return message;
|
|
2059
2059
|
}
|
|
2060
2060
|
internalBinaryWrite(message: CreateDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2061
|
-
/* resources.centrum.Dispatch dispatch = 1; */
|
|
2061
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
2062
2062
|
if (message.dispatch)
|
|
2063
2063
|
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2064
2064
|
let u = options.writeUnknownFields;
|
|
@@ -2089,7 +2089,7 @@ class UpdateDispatchRequest$Type extends MessageType<UpdateDispatchRequest> {
|
|
|
2089
2089
|
while (reader.pos < end) {
|
|
2090
2090
|
let [fieldNo, wireType] = reader.tag();
|
|
2091
2091
|
switch (fieldNo) {
|
|
2092
|
-
case /* resources.centrum.Dispatch dispatch */ 1:
|
|
2092
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
2093
2093
|
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
2094
2094
|
break;
|
|
2095
2095
|
default:
|
|
@@ -2104,7 +2104,7 @@ class UpdateDispatchRequest$Type extends MessageType<UpdateDispatchRequest> {
|
|
|
2104
2104
|
return message;
|
|
2105
2105
|
}
|
|
2106
2106
|
internalBinaryWrite(message: UpdateDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2107
|
-
/* resources.centrum.Dispatch dispatch = 1; */
|
|
2107
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
2108
2108
|
if (message.dispatch)
|
|
2109
2109
|
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2110
2110
|
let u = options.writeUnknownFields;
|
|
@@ -2135,7 +2135,7 @@ class UpdateDispatchResponse$Type extends MessageType<UpdateDispatchResponse> {
|
|
|
2135
2135
|
while (reader.pos < end) {
|
|
2136
2136
|
let [fieldNo, wireType] = reader.tag();
|
|
2137
2137
|
switch (fieldNo) {
|
|
2138
|
-
case /* resources.centrum.Dispatch dispatch */ 1:
|
|
2138
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
2139
2139
|
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
2140
2140
|
break;
|
|
2141
2141
|
default:
|
|
@@ -2150,7 +2150,7 @@ class UpdateDispatchResponse$Type extends MessageType<UpdateDispatchResponse> {
|
|
|
2150
2150
|
return message;
|
|
2151
2151
|
}
|
|
2152
2152
|
internalBinaryWrite(message: UpdateDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2153
|
-
/* resources.centrum.Dispatch dispatch = 1; */
|
|
2153
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
2154
2154
|
if (message.dispatch)
|
|
2155
2155
|
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2156
2156
|
let u = options.writeUnknownFields;
|
|
@@ -2338,7 +2338,7 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
|
|
|
2338
2338
|
constructor() {
|
|
2339
2339
|
super("services.centrum.UpdateDispatchStatusRequest", [
|
|
2340
2340
|
{ no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2341
|
-
{ no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
2341
|
+
{ no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
2342
2342
|
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
2343
2343
|
{ no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
|
|
2344
2344
|
]);
|
|
@@ -2359,7 +2359,7 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
|
|
|
2359
2359
|
case /* int64 dispatch_id */ 1:
|
|
2360
2360
|
message.dispatchId = reader.int64().toNumber();
|
|
2361
2361
|
break;
|
|
2362
|
-
case /* resources.centrum.StatusDispatch status */ 2:
|
|
2362
|
+
case /* resources.centrum.dispatches.StatusDispatch status */ 2:
|
|
2363
2363
|
message.status = reader.int32();
|
|
2364
2364
|
break;
|
|
2365
2365
|
case /* optional string reason */ 3:
|
|
@@ -2383,7 +2383,7 @@ class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusR
|
|
|
2383
2383
|
/* int64 dispatch_id = 1; */
|
|
2384
2384
|
if (message.dispatchId !== 0)
|
|
2385
2385
|
writer.tag(1, WireType.Varint).int64(message.dispatchId);
|
|
2386
|
-
/* resources.centrum.StatusDispatch status = 2; */
|
|
2386
|
+
/* resources.centrum.dispatches.StatusDispatch status = 2; */
|
|
2387
2387
|
if (message.status !== 0)
|
|
2388
2388
|
writer.tag(2, WireType.Varint).int32(message.status);
|
|
2389
2389
|
/* optional string reason = 3; */
|
|
@@ -2587,7 +2587,7 @@ class ListDispatchActivityResponse$Type extends MessageType<ListDispatchActivity
|
|
|
2587
2587
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
2588
2588
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2589
2589
|
break;
|
|
2590
|
-
case /* repeated resources.centrum.DispatchStatus activity */ 2:
|
|
2590
|
+
case /* repeated resources.centrum.dispatches.DispatchStatus activity */ 2:
|
|
2591
2591
|
message.activity.push(DispatchStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
2592
2592
|
break;
|
|
2593
2593
|
default:
|
|
@@ -2605,7 +2605,7 @@ class ListDispatchActivityResponse$Type extends MessageType<ListDispatchActivity
|
|
|
2605
2605
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
2606
2606
|
if (message.pagination)
|
|
2607
2607
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2608
|
-
/* repeated resources.centrum.DispatchStatus activity = 2; */
|
|
2608
|
+
/* repeated resources.centrum.dispatches.DispatchStatus activity = 2; */
|
|
2609
2609
|
for (let i = 0; i < message.activity.length; i++)
|
|
2610
2610
|
DispatchStatus.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2611
2611
|
let u = options.writeUnknownFields;
|
|
@@ -2682,7 +2682,7 @@ class JoinUnitResponse$Type extends MessageType<JoinUnitResponse> {
|
|
|
2682
2682
|
while (reader.pos < end) {
|
|
2683
2683
|
let [fieldNo, wireType] = reader.tag();
|
|
2684
2684
|
switch (fieldNo) {
|
|
2685
|
-
case /* resources.centrum.Unit unit */ 1:
|
|
2685
|
+
case /* resources.centrum.units.Unit unit */ 1:
|
|
2686
2686
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
2687
2687
|
break;
|
|
2688
2688
|
default:
|
|
@@ -2697,7 +2697,7 @@ class JoinUnitResponse$Type extends MessageType<JoinUnitResponse> {
|
|
|
2697
2697
|
return message;
|
|
2698
2698
|
}
|
|
2699
2699
|
internalBinaryWrite(message: JoinUnitResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2700
|
-
/* resources.centrum.Unit unit = 1; */
|
|
2700
|
+
/* resources.centrum.units.Unit unit = 1; */
|
|
2701
2701
|
if (message.unit)
|
|
2702
2702
|
Unit.internalBinaryWrite(message.unit, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2703
2703
|
let u = options.writeUnknownFields;
|
|
@@ -2715,7 +2715,7 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
|
|
|
2715
2715
|
constructor() {
|
|
2716
2716
|
super("services.centrum.TakeDispatchRequest", [
|
|
2717
2717
|
{ no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1" } } } },
|
|
2718
|
-
{ no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
2718
|
+
{ no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.dispatches.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
2719
2719
|
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
|
|
2720
2720
|
]);
|
|
2721
2721
|
}
|
|
@@ -2739,7 +2739,7 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
|
|
|
2739
2739
|
else
|
|
2740
2740
|
message.dispatchIds.push(reader.int64().toNumber());
|
|
2741
2741
|
break;
|
|
2742
|
-
case /* resources.centrum.TakeDispatchResp resp */ 2:
|
|
2742
|
+
case /* resources.centrum.dispatches.TakeDispatchResp resp */ 2:
|
|
2743
2743
|
message.resp = reader.int32();
|
|
2744
2744
|
break;
|
|
2745
2745
|
case /* optional string reason */ 3:
|
|
@@ -2764,7 +2764,7 @@ class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
|
|
|
2764
2764
|
writer.int64(message.dispatchIds[i]);
|
|
2765
2765
|
writer.join();
|
|
2766
2766
|
}
|
|
2767
|
-
/* resources.centrum.TakeDispatchResp resp = 2; */
|
|
2767
|
+
/* resources.centrum.dispatches.TakeDispatchResp resp = 2; */
|
|
2768
2768
|
if (message.resp !== 0)
|
|
2769
2769
|
writer.tag(2, WireType.Varint).int32(message.resp);
|
|
2770
2770
|
/* optional string reason = 3; */
|
|
@@ -2841,10 +2841,10 @@ class StreamHandshake$Type extends MessageType<StreamHandshake> {
|
|
|
2841
2841
|
case /* resources.timestamp.Timestamp server_time */ 1:
|
|
2842
2842
|
message.serverTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.serverTime);
|
|
2843
2843
|
break;
|
|
2844
|
-
case /* resources.centrum.Settings settings */ 2:
|
|
2844
|
+
case /* resources.centrum.settings.Settings settings */ 2:
|
|
2845
2845
|
message.settings = Settings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
2846
2846
|
break;
|
|
2847
|
-
case /* resources.centrum.EffectiveAccess access */ 3:
|
|
2847
|
+
case /* resources.centrum.settings.EffectiveAccess access */ 3:
|
|
2848
2848
|
message.access = EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
2849
2849
|
break;
|
|
2850
2850
|
default:
|
|
@@ -2862,10 +2862,10 @@ class StreamHandshake$Type extends MessageType<StreamHandshake> {
|
|
|
2862
2862
|
/* resources.timestamp.Timestamp server_time = 1; */
|
|
2863
2863
|
if (message.serverTime)
|
|
2864
2864
|
Timestamp.internalBinaryWrite(message.serverTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2865
|
-
/* resources.centrum.Settings settings = 2; */
|
|
2865
|
+
/* resources.centrum.settings.Settings settings = 2; */
|
|
2866
2866
|
if (message.settings)
|
|
2867
2867
|
Settings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2868
|
-
/* resources.centrum.EffectiveAccess access = 3; */
|
|
2868
|
+
/* resources.centrum.settings.EffectiveAccess access = 3; */
|
|
2869
2869
|
if (message.access)
|
|
2870
2870
|
EffectiveAccess.internalBinaryWrite(message.access, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2871
2871
|
let u = options.writeUnknownFields;
|
|
@@ -2901,16 +2901,16 @@ class LatestState$Type extends MessageType<LatestState> {
|
|
|
2901
2901
|
while (reader.pos < end) {
|
|
2902
2902
|
let [fieldNo, wireType] = reader.tag();
|
|
2903
2903
|
switch (fieldNo) {
|
|
2904
|
-
case /* resources.centrum.JobDispatchers dispatchers */ 1:
|
|
2904
|
+
case /* resources.centrum.dispatchers.JobDispatchers dispatchers */ 1:
|
|
2905
2905
|
message.dispatchers = JobDispatchers.internalBinaryRead(reader, reader.uint32(), options, message.dispatchers);
|
|
2906
2906
|
break;
|
|
2907
2907
|
case /* optional int64 own_unit_id */ 2:
|
|
2908
2908
|
message.ownUnitId = reader.int64().toNumber();
|
|
2909
2909
|
break;
|
|
2910
|
-
case /* repeated resources.centrum.Unit units */ 3:
|
|
2910
|
+
case /* repeated resources.centrum.units.Unit units */ 3:
|
|
2911
2911
|
message.units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
|
|
2912
2912
|
break;
|
|
2913
|
-
case /* repeated resources.centrum.Dispatch dispatches */ 4:
|
|
2913
|
+
case /* repeated resources.centrum.dispatches.Dispatch dispatches */ 4:
|
|
2914
2914
|
message.dispatches.push(Dispatch.internalBinaryRead(reader, reader.uint32(), options));
|
|
2915
2915
|
break;
|
|
2916
2916
|
default:
|
|
@@ -2925,16 +2925,16 @@ class LatestState$Type extends MessageType<LatestState> {
|
|
|
2925
2925
|
return message;
|
|
2926
2926
|
}
|
|
2927
2927
|
internalBinaryWrite(message: LatestState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2928
|
-
/* resources.centrum.JobDispatchers dispatchers = 1; */
|
|
2928
|
+
/* resources.centrum.dispatchers.JobDispatchers dispatchers = 1; */
|
|
2929
2929
|
if (message.dispatchers)
|
|
2930
2930
|
JobDispatchers.internalBinaryWrite(message.dispatchers, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2931
2931
|
/* optional int64 own_unit_id = 2; */
|
|
2932
2932
|
if (message.ownUnitId !== undefined)
|
|
2933
2933
|
writer.tag(2, WireType.Varint).int64(message.ownUnitId);
|
|
2934
|
-
/* repeated resources.centrum.Unit units = 3; */
|
|
2934
|
+
/* repeated resources.centrum.units.Unit units = 3; */
|
|
2935
2935
|
for (let i = 0; i < message.units.length; i++)
|
|
2936
2936
|
Unit.internalBinaryWrite(message.units[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2937
|
-
/* repeated resources.centrum.Dispatch dispatches = 4; */
|
|
2937
|
+
/* repeated resources.centrum.dispatches.Dispatch dispatches = 4; */
|
|
2938
2938
|
for (let i = 0; i < message.dispatches.length; i++)
|
|
2939
2939
|
Dispatch.internalBinaryWrite(message.dispatches[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2940
2940
|
let u = options.writeUnknownFields;
|
|
@@ -3026,19 +3026,19 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
3026
3026
|
latestState: LatestState.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).latestState)
|
|
3027
3027
|
};
|
|
3028
3028
|
break;
|
|
3029
|
-
case /* resources.centrum.Settings settings */ 3:
|
|
3029
|
+
case /* resources.centrum.settings.Settings settings */ 3:
|
|
3030
3030
|
message.change = {
|
|
3031
3031
|
oneofKind: "settings",
|
|
3032
3032
|
settings: Settings.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).settings)
|
|
3033
3033
|
};
|
|
3034
3034
|
break;
|
|
3035
|
-
case /* resources.centrum.EffectiveAccess access */ 4:
|
|
3035
|
+
case /* resources.centrum.settings.EffectiveAccess access */ 4:
|
|
3036
3036
|
message.change = {
|
|
3037
3037
|
oneofKind: "access",
|
|
3038
3038
|
access: EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).access)
|
|
3039
3039
|
};
|
|
3040
3040
|
break;
|
|
3041
|
-
case /* resources.centrum.Dispatchers dispatchers */ 5:
|
|
3041
|
+
case /* resources.centrum.dispatchers.Dispatchers dispatchers */ 5:
|
|
3042
3042
|
message.change = {
|
|
3043
3043
|
oneofKind: "dispatchers",
|
|
3044
3044
|
dispatchers: Dispatchers.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).dispatchers)
|
|
@@ -3050,13 +3050,13 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
3050
3050
|
unitDeleted: reader.int64().toNumber()
|
|
3051
3051
|
};
|
|
3052
3052
|
break;
|
|
3053
|
-
case /* resources.centrum.Unit unit_updated */ 7:
|
|
3053
|
+
case /* resources.centrum.units.Unit unit_updated */ 7:
|
|
3054
3054
|
message.change = {
|
|
3055
3055
|
oneofKind: "unitUpdated",
|
|
3056
3056
|
unitUpdated: Unit.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).unitUpdated)
|
|
3057
3057
|
};
|
|
3058
3058
|
break;
|
|
3059
|
-
case /* resources.centrum.UnitStatus unit_status */ 8:
|
|
3059
|
+
case /* resources.centrum.units.UnitStatus unit_status */ 8:
|
|
3060
3060
|
message.change = {
|
|
3061
3061
|
oneofKind: "unitStatus",
|
|
3062
3062
|
unitStatus: UnitStatus.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).unitStatus)
|
|
@@ -3068,13 +3068,13 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
3068
3068
|
dispatchDeleted: reader.int64().toNumber()
|
|
3069
3069
|
};
|
|
3070
3070
|
break;
|
|
3071
|
-
case /* resources.centrum.Dispatch dispatch_updated */ 10:
|
|
3071
|
+
case /* resources.centrum.dispatches.Dispatch dispatch_updated */ 10:
|
|
3072
3072
|
message.change = {
|
|
3073
3073
|
oneofKind: "dispatchUpdated",
|
|
3074
3074
|
dispatchUpdated: Dispatch.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).dispatchUpdated)
|
|
3075
3075
|
};
|
|
3076
3076
|
break;
|
|
3077
|
-
case /* resources.centrum.DispatchStatus dispatch_status */ 11:
|
|
3077
|
+
case /* resources.centrum.dispatches.DispatchStatus dispatch_status */ 11:
|
|
3078
3078
|
message.change = {
|
|
3079
3079
|
oneofKind: "dispatchStatus",
|
|
3080
3080
|
dispatchStatus: DispatchStatus.internalBinaryRead(reader, reader.uint32(), options, (message.change as any).dispatchStatus)
|
|
@@ -3098,31 +3098,31 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
3098
3098
|
/* services.centrum.LatestState latest_state = 2; */
|
|
3099
3099
|
if (message.change.oneofKind === "latestState")
|
|
3100
3100
|
LatestState.internalBinaryWrite(message.change.latestState, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3101
|
-
/* resources.centrum.Settings settings = 3; */
|
|
3101
|
+
/* resources.centrum.settings.Settings settings = 3; */
|
|
3102
3102
|
if (message.change.oneofKind === "settings")
|
|
3103
3103
|
Settings.internalBinaryWrite(message.change.settings, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3104
|
-
/* resources.centrum.EffectiveAccess access = 4; */
|
|
3104
|
+
/* resources.centrum.settings.EffectiveAccess access = 4; */
|
|
3105
3105
|
if (message.change.oneofKind === "access")
|
|
3106
3106
|
EffectiveAccess.internalBinaryWrite(message.change.access, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3107
|
-
/* resources.centrum.Dispatchers dispatchers = 5; */
|
|
3107
|
+
/* resources.centrum.dispatchers.Dispatchers dispatchers = 5; */
|
|
3108
3108
|
if (message.change.oneofKind === "dispatchers")
|
|
3109
3109
|
Dispatchers.internalBinaryWrite(message.change.dispatchers, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
3110
3110
|
/* int64 unit_deleted = 6; */
|
|
3111
3111
|
if (message.change.oneofKind === "unitDeleted")
|
|
3112
3112
|
writer.tag(6, WireType.Varint).int64(message.change.unitDeleted);
|
|
3113
|
-
/* resources.centrum.Unit unit_updated = 7; */
|
|
3113
|
+
/* resources.centrum.units.Unit unit_updated = 7; */
|
|
3114
3114
|
if (message.change.oneofKind === "unitUpdated")
|
|
3115
3115
|
Unit.internalBinaryWrite(message.change.unitUpdated, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3116
|
-
/* resources.centrum.UnitStatus unit_status = 8; */
|
|
3116
|
+
/* resources.centrum.units.UnitStatus unit_status = 8; */
|
|
3117
3117
|
if (message.change.oneofKind === "unitStatus")
|
|
3118
3118
|
UnitStatus.internalBinaryWrite(message.change.unitStatus, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
3119
3119
|
/* int64 dispatch_deleted = 9; */
|
|
3120
3120
|
if (message.change.oneofKind === "dispatchDeleted")
|
|
3121
3121
|
writer.tag(9, WireType.Varint).int64(message.change.dispatchDeleted);
|
|
3122
|
-
/* resources.centrum.Dispatch dispatch_updated = 10; */
|
|
3122
|
+
/* resources.centrum.dispatches.Dispatch dispatch_updated = 10; */
|
|
3123
3123
|
if (message.change.oneofKind === "dispatchUpdated")
|
|
3124
3124
|
Dispatch.internalBinaryWrite(message.change.dispatchUpdated, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
3125
|
-
/* resources.centrum.DispatchStatus dispatch_status = 11; */
|
|
3125
|
+
/* resources.centrum.dispatches.DispatchStatus dispatch_status = 11; */
|
|
3126
3126
|
if (message.change.oneofKind === "dispatchStatus")
|
|
3127
3127
|
DispatchStatus.internalBinaryWrite(message.change.dispatchStatus, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
3128
3128
|
let u = options.writeUnknownFields;
|
|
@@ -3162,4 +3162,4 @@ export const CentrumService = new ServiceType("services.centrum.CentrumService",
|
|
|
3162
3162
|
{ name: "TakeDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: TakeDispatchRequest, O: TakeDispatchResponse },
|
|
3163
3163
|
{ name: "UpdateUnitStatus", options: { "codegen.perms.perms": { enabled: true, name: "TakeDispatch" } }, I: UpdateUnitStatusRequest, O: UpdateUnitStatusResponse },
|
|
3164
3164
|
{ name: "UpdateDispatchStatus", options: { "codegen.perms.perms": { enabled: true, name: "TakeDispatch" } }, I: UpdateDispatchStatusRequest, O: UpdateDispatchStatusResponse }
|
|
3165
|
-
]);
|
|
3165
|
+
], { "codegen.perms.perms_svc": { order: 100, icon: "i-mdi-car-emergency" } });
|