@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
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
6
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
7
|
import { CitizensService } from "./citizens";
|
|
8
|
-
import type { ManageLabelsResponse } from "./citizens";
|
|
9
|
-
import type { ManageLabelsRequest } from "./citizens";
|
|
10
8
|
import type { DeleteMugshotResponse } from "./citizens";
|
|
11
9
|
import type { DeleteMugshotRequest } from "./citizens";
|
|
12
10
|
import type { DeleteAvatarResponse } from "./citizens";
|
|
@@ -69,10 +67,6 @@ export interface ICitizensServiceClient {
|
|
|
69
67
|
* @generated from protobuf rpc: DeleteMugshot
|
|
70
68
|
*/
|
|
71
69
|
deleteMugshot(input: DeleteMugshotRequest, options?: RpcOptions): UnaryCall<DeleteMugshotRequest, DeleteMugshotResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* @generated from protobuf rpc: ManageLabels
|
|
74
|
-
*/
|
|
75
|
-
manageLabels(input: ManageLabelsRequest, options?: RpcOptions): UnaryCall<ManageLabelsRequest, ManageLabelsResponse>;
|
|
76
70
|
}
|
|
77
71
|
/**
|
|
78
72
|
* @generated from protobuf service services.citizens.CitizensService
|
|
@@ -147,11 +141,4 @@ export class CitizensServiceClient implements ICitizensServiceClient, ServiceInf
|
|
|
147
141
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
148
142
|
return stackIntercept<DeleteMugshotRequest, DeleteMugshotResponse>("unary", this._transport, method, opt, input);
|
|
149
143
|
}
|
|
150
|
-
/**
|
|
151
|
-
* @generated from protobuf rpc: ManageLabels
|
|
152
|
-
*/
|
|
153
|
-
manageLabels(input: ManageLabelsRequest, options?: RpcOptions): UnaryCall<ManageLabelsRequest, ManageLabelsResponse> {
|
|
154
|
-
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
155
|
-
return stackIntercept<ManageLabelsRequest, ManageLabelsResponse>("unary", this._transport, method, opt, input);
|
|
156
|
-
}
|
|
157
144
|
}
|
|
@@ -14,11 +14,10 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
14
14
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
15
15
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
16
16
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { User } from "../../resources/users/users";
|
|
17
|
+
import { UserProps } from "../../resources/users/props/props";
|
|
18
|
+
import { UserActivity } from "../../resources/users/activity/activity";
|
|
19
|
+
import { UserActivityType } from "../../resources/users/activity/activity";
|
|
20
|
+
import { User } from "../../resources/users/user";
|
|
22
21
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
23
22
|
import { Sort } from "../../resources/common/database/database";
|
|
24
23
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
@@ -60,6 +59,16 @@ export interface ListCitizensRequest {
|
|
|
60
59
|
* @generated from protobuf field: optional int64 open_fines = 8
|
|
61
60
|
*/
|
|
62
61
|
openFines?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Height range search (in cm)
|
|
64
|
+
*
|
|
65
|
+
* @generated from protobuf field: optional float min_height = 9
|
|
66
|
+
*/
|
|
67
|
+
minHeight?: number;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf field: optional float max_height = 10
|
|
70
|
+
*/
|
|
71
|
+
maxHeight?: number;
|
|
63
72
|
}
|
|
64
73
|
/**
|
|
65
74
|
* @generated from protobuf message services.citizens.ListCitizensResponse
|
|
@@ -115,7 +124,7 @@ export interface ListUserActivityRequest {
|
|
|
115
124
|
*/
|
|
116
125
|
userId: number;
|
|
117
126
|
/**
|
|
118
|
-
* @generated from protobuf field: repeated resources.users.UserActivityType types = 4
|
|
127
|
+
* @generated from protobuf field: repeated resources.users.activity.UserActivityType types = 4
|
|
119
128
|
*/
|
|
120
129
|
types: UserActivityType[];
|
|
121
130
|
}
|
|
@@ -128,7 +137,7 @@ export interface ListUserActivityResponse {
|
|
|
128
137
|
*/
|
|
129
138
|
pagination?: PaginationResponse;
|
|
130
139
|
/**
|
|
131
|
-
* @generated from protobuf field: repeated resources.users.UserActivity activity = 2
|
|
140
|
+
* @generated from protobuf field: repeated resources.users.activity.UserActivity activity = 2
|
|
132
141
|
*/
|
|
133
142
|
activity: UserActivity[];
|
|
134
143
|
}
|
|
@@ -137,7 +146,7 @@ export interface ListUserActivityResponse {
|
|
|
137
146
|
*/
|
|
138
147
|
export interface SetUserPropsRequest {
|
|
139
148
|
/**
|
|
140
|
-
* @generated from protobuf field: resources.users.UserProps props = 1
|
|
149
|
+
* @generated from protobuf field: resources.users.props.UserProps props = 1
|
|
141
150
|
*/
|
|
142
151
|
props?: UserProps;
|
|
143
152
|
/**
|
|
@@ -150,7 +159,7 @@ export interface SetUserPropsRequest {
|
|
|
150
159
|
*/
|
|
151
160
|
export interface SetUserPropsResponse {
|
|
152
161
|
/**
|
|
153
|
-
* @generated from protobuf field: resources.users.UserProps props = 1
|
|
162
|
+
* @generated from protobuf field: resources.users.props.UserProps props = 1
|
|
154
163
|
*/
|
|
155
164
|
props?: UserProps;
|
|
156
165
|
}
|
|
@@ -182,24 +191,6 @@ export interface DeleteMugshotRequest {
|
|
|
182
191
|
*/
|
|
183
192
|
export interface DeleteMugshotResponse {
|
|
184
193
|
}
|
|
185
|
-
/**
|
|
186
|
-
* @generated from protobuf message services.citizens.ManageLabelsRequest
|
|
187
|
-
*/
|
|
188
|
-
export interface ManageLabelsRequest {
|
|
189
|
-
/**
|
|
190
|
-
* @generated from protobuf field: repeated resources.users.Label labels = 1
|
|
191
|
-
*/
|
|
192
|
-
labels: Label[];
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* @generated from protobuf message services.citizens.ManageLabelsResponse
|
|
196
|
-
*/
|
|
197
|
-
export interface ManageLabelsResponse {
|
|
198
|
-
/**
|
|
199
|
-
* @generated from protobuf field: repeated resources.users.Label labels = 1
|
|
200
|
-
*/
|
|
201
|
-
labels: Label[];
|
|
202
|
-
}
|
|
203
194
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
204
195
|
class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
205
196
|
constructor() {
|
|
@@ -211,7 +202,9 @@ class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
|
211
202
|
{ no: 5, name: "phone_number", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
212
203
|
{ no: 6, name: "traffic_infraction_points", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
213
204
|
{ no: 7, name: "dateofbirth", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "10" } } } },
|
|
214
|
-
{ no: 8, name: "open_fines", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
205
|
+
{ no: 8, name: "open_fines", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
206
|
+
{ no: 9, name: "min_height", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
|
|
207
|
+
{ no: 10, name: "max_height", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }
|
|
215
208
|
]);
|
|
216
209
|
}
|
|
217
210
|
create(value?: PartialMessage<ListCitizensRequest>): ListCitizensRequest {
|
|
@@ -250,6 +243,12 @@ class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
|
250
243
|
case /* optional int64 open_fines */ 8:
|
|
251
244
|
message.openFines = reader.int64().toNumber();
|
|
252
245
|
break;
|
|
246
|
+
case /* optional float min_height */ 9:
|
|
247
|
+
message.minHeight = reader.float();
|
|
248
|
+
break;
|
|
249
|
+
case /* optional float max_height */ 10:
|
|
250
|
+
message.maxHeight = reader.float();
|
|
251
|
+
break;
|
|
253
252
|
default:
|
|
254
253
|
let u = options.readUnknownField;
|
|
255
254
|
if (u === "throw")
|
|
@@ -286,6 +285,12 @@ class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
|
286
285
|
/* optional int64 open_fines = 8; */
|
|
287
286
|
if (message.openFines !== undefined)
|
|
288
287
|
writer.tag(8, WireType.Varint).int64(message.openFines);
|
|
288
|
+
/* optional float min_height = 9; */
|
|
289
|
+
if (message.minHeight !== undefined)
|
|
290
|
+
writer.tag(9, WireType.Bit32).float(message.minHeight);
|
|
291
|
+
/* optional float max_height = 10; */
|
|
292
|
+
if (message.maxHeight !== undefined)
|
|
293
|
+
writer.tag(10, WireType.Bit32).float(message.maxHeight);
|
|
289
294
|
let u = options.writeUnknownFields;
|
|
290
295
|
if (u !== false)
|
|
291
296
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -457,7 +462,7 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
457
462
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
458
463
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
459
464
|
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
460
|
-
{ no: 4, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.users.UserActivityType", UserActivityType, "USER_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
465
|
+
{ no: 4, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.users.activity.UserActivityType", UserActivityType, "USER_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
461
466
|
]);
|
|
462
467
|
}
|
|
463
468
|
create(value?: PartialMessage<ListUserActivityRequest>): ListUserActivityRequest {
|
|
@@ -482,7 +487,7 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
482
487
|
case /* int32 user_id */ 3:
|
|
483
488
|
message.userId = reader.int32();
|
|
484
489
|
break;
|
|
485
|
-
case /* repeated resources.users.UserActivityType types */ 4:
|
|
490
|
+
case /* repeated resources.users.activity.UserActivityType types */ 4:
|
|
486
491
|
if (wireType === WireType.LengthDelimited)
|
|
487
492
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
488
493
|
message.types.push(reader.int32());
|
|
@@ -510,7 +515,7 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
510
515
|
/* int32 user_id = 3; */
|
|
511
516
|
if (message.userId !== 0)
|
|
512
517
|
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
513
|
-
/* repeated resources.users.UserActivityType types = 4; */
|
|
518
|
+
/* repeated resources.users.activity.UserActivityType types = 4; */
|
|
514
519
|
if (message.types.length) {
|
|
515
520
|
writer.tag(4, WireType.LengthDelimited).fork();
|
|
516
521
|
for (let i = 0; i < message.types.length; i++)
|
|
@@ -550,7 +555,7 @@ class ListUserActivityResponse$Type extends MessageType<ListUserActivityResponse
|
|
|
550
555
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
551
556
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
552
557
|
break;
|
|
553
|
-
case /* repeated resources.users.UserActivity activity */ 2:
|
|
558
|
+
case /* repeated resources.users.activity.UserActivity activity */ 2:
|
|
554
559
|
message.activity.push(UserActivity.internalBinaryRead(reader, reader.uint32(), options));
|
|
555
560
|
break;
|
|
556
561
|
default:
|
|
@@ -568,7 +573,7 @@ class ListUserActivityResponse$Type extends MessageType<ListUserActivityResponse
|
|
|
568
573
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
569
574
|
if (message.pagination)
|
|
570
575
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
571
|
-
/* repeated resources.users.UserActivity activity = 2; */
|
|
576
|
+
/* repeated resources.users.activity.UserActivity activity = 2; */
|
|
572
577
|
for (let i = 0; i < message.activity.length; i++)
|
|
573
578
|
UserActivity.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
574
579
|
let u = options.writeUnknownFields;
|
|
@@ -601,7 +606,7 @@ class SetUserPropsRequest$Type extends MessageType<SetUserPropsRequest> {
|
|
|
601
606
|
while (reader.pos < end) {
|
|
602
607
|
let [fieldNo, wireType] = reader.tag();
|
|
603
608
|
switch (fieldNo) {
|
|
604
|
-
case /* resources.users.UserProps props */ 1:
|
|
609
|
+
case /* resources.users.props.UserProps props */ 1:
|
|
605
610
|
message.props = UserProps.internalBinaryRead(reader, reader.uint32(), options, message.props);
|
|
606
611
|
break;
|
|
607
612
|
case /* string reason */ 2:
|
|
@@ -619,7 +624,7 @@ class SetUserPropsRequest$Type extends MessageType<SetUserPropsRequest> {
|
|
|
619
624
|
return message;
|
|
620
625
|
}
|
|
621
626
|
internalBinaryWrite(message: SetUserPropsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
622
|
-
/* resources.users.UserProps props = 1; */
|
|
627
|
+
/* resources.users.props.UserProps props = 1; */
|
|
623
628
|
if (message.props)
|
|
624
629
|
UserProps.internalBinaryWrite(message.props, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
625
630
|
/* string reason = 2; */
|
|
@@ -653,7 +658,7 @@ class SetUserPropsResponse$Type extends MessageType<SetUserPropsResponse> {
|
|
|
653
658
|
while (reader.pos < end) {
|
|
654
659
|
let [fieldNo, wireType] = reader.tag();
|
|
655
660
|
switch (fieldNo) {
|
|
656
|
-
case /* resources.users.UserProps props */ 1:
|
|
661
|
+
case /* resources.users.props.UserProps props */ 1:
|
|
657
662
|
message.props = UserProps.internalBinaryRead(reader, reader.uint32(), options, message.props);
|
|
658
663
|
break;
|
|
659
664
|
default:
|
|
@@ -668,7 +673,7 @@ class SetUserPropsResponse$Type extends MessageType<SetUserPropsResponse> {
|
|
|
668
673
|
return message;
|
|
669
674
|
}
|
|
670
675
|
internalBinaryWrite(message: SetUserPropsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
671
|
-
/* resources.users.UserProps props = 1; */
|
|
676
|
+
/* resources.users.props.UserProps props = 1; */
|
|
672
677
|
if (message.props)
|
|
673
678
|
UserProps.internalBinaryWrite(message.props, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
674
679
|
let u = options.writeUnknownFields;
|
|
@@ -850,100 +855,6 @@ class DeleteMugshotResponse$Type extends MessageType<DeleteMugshotResponse> {
|
|
|
850
855
|
* @generated MessageType for protobuf message services.citizens.DeleteMugshotResponse
|
|
851
856
|
*/
|
|
852
857
|
export const DeleteMugshotResponse = new DeleteMugshotResponse$Type();
|
|
853
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
854
|
-
class ManageLabelsRequest$Type extends MessageType<ManageLabelsRequest> {
|
|
855
|
-
constructor() {
|
|
856
|
-
super("services.citizens.ManageLabelsRequest", [
|
|
857
|
-
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label }
|
|
858
|
-
]);
|
|
859
|
-
}
|
|
860
|
-
create(value?: PartialMessage<ManageLabelsRequest>): ManageLabelsRequest {
|
|
861
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
862
|
-
message.labels = [];
|
|
863
|
-
if (value !== undefined)
|
|
864
|
-
reflectionMergePartial<ManageLabelsRequest>(this, message, value);
|
|
865
|
-
return message;
|
|
866
|
-
}
|
|
867
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ManageLabelsRequest): ManageLabelsRequest {
|
|
868
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
869
|
-
while (reader.pos < end) {
|
|
870
|
-
let [fieldNo, wireType] = reader.tag();
|
|
871
|
-
switch (fieldNo) {
|
|
872
|
-
case /* repeated resources.users.Label labels */ 1:
|
|
873
|
-
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
874
|
-
break;
|
|
875
|
-
default:
|
|
876
|
-
let u = options.readUnknownField;
|
|
877
|
-
if (u === "throw")
|
|
878
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
879
|
-
let d = reader.skip(wireType);
|
|
880
|
-
if (u !== false)
|
|
881
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return message;
|
|
885
|
-
}
|
|
886
|
-
internalBinaryWrite(message: ManageLabelsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
887
|
-
/* repeated resources.users.Label labels = 1; */
|
|
888
|
-
for (let i = 0; i < message.labels.length; i++)
|
|
889
|
-
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
890
|
-
let u = options.writeUnknownFields;
|
|
891
|
-
if (u !== false)
|
|
892
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
893
|
-
return writer;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
/**
|
|
897
|
-
* @generated MessageType for protobuf message services.citizens.ManageLabelsRequest
|
|
898
|
-
*/
|
|
899
|
-
export const ManageLabelsRequest = new ManageLabelsRequest$Type();
|
|
900
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
901
|
-
class ManageLabelsResponse$Type extends MessageType<ManageLabelsResponse> {
|
|
902
|
-
constructor() {
|
|
903
|
-
super("services.citizens.ManageLabelsResponse", [
|
|
904
|
-
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label }
|
|
905
|
-
]);
|
|
906
|
-
}
|
|
907
|
-
create(value?: PartialMessage<ManageLabelsResponse>): ManageLabelsResponse {
|
|
908
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
909
|
-
message.labels = [];
|
|
910
|
-
if (value !== undefined)
|
|
911
|
-
reflectionMergePartial<ManageLabelsResponse>(this, message, value);
|
|
912
|
-
return message;
|
|
913
|
-
}
|
|
914
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ManageLabelsResponse): ManageLabelsResponse {
|
|
915
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
916
|
-
while (reader.pos < end) {
|
|
917
|
-
let [fieldNo, wireType] = reader.tag();
|
|
918
|
-
switch (fieldNo) {
|
|
919
|
-
case /* repeated resources.users.Label labels */ 1:
|
|
920
|
-
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
921
|
-
break;
|
|
922
|
-
default:
|
|
923
|
-
let u = options.readUnknownField;
|
|
924
|
-
if (u === "throw")
|
|
925
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
926
|
-
let d = reader.skip(wireType);
|
|
927
|
-
if (u !== false)
|
|
928
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
return message;
|
|
932
|
-
}
|
|
933
|
-
internalBinaryWrite(message: ManageLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
934
|
-
/* repeated resources.users.Label labels = 1; */
|
|
935
|
-
for (let i = 0; i < message.labels.length; i++)
|
|
936
|
-
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
937
|
-
let u = options.writeUnknownFields;
|
|
938
|
-
if (u !== false)
|
|
939
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
940
|
-
return writer;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
/**
|
|
944
|
-
* @generated MessageType for protobuf message services.citizens.ManageLabelsResponse
|
|
945
|
-
*/
|
|
946
|
-
export const ManageLabelsResponse = new ManageLabelsResponse$Type();
|
|
947
858
|
/**
|
|
948
859
|
* @generated ServiceType for protobuf service services.citizens.CitizensService
|
|
949
860
|
*/
|
|
@@ -955,6 +866,5 @@ export const CitizensService = new ServiceType("services.citizens.CitizensServic
|
|
|
955
866
|
{ name: "UploadAvatar", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: UploadFileRequest, O: UploadFileResponse },
|
|
956
867
|
{ name: "DeleteAvatar", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: DeleteAvatarRequest, O: DeleteAvatarResponse },
|
|
957
868
|
{ name: "UploadMugshot", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "SetUserProps" } }, I: UploadFileRequest, O: UploadFileResponse },
|
|
958
|
-
{ name: "DeleteMugshot", options: { "codegen.perms.perms": { enabled: true, name: "SetUserProps" } }, I: DeleteMugshotRequest, O: DeleteMugshotResponse }
|
|
959
|
-
|
|
960
|
-
]);
|
|
869
|
+
{ name: "DeleteMugshot", options: { "codegen.perms.perms": { enabled: true, name: "SetUserProps" } }, I: DeleteMugshotRequest, O: DeleteMugshotResponse }
|
|
870
|
+
], { "codegen.perms.perms_svc": { order: 30, icon: "i-mdi-account-multiple-outline" } });
|
|
@@ -0,0 +1,77 @@
|
|
|
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 "services/citizens/labels.proto" (package "services.citizens", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
|
+
import { LabelsService } from "./labels";
|
|
8
|
+
import type { DeleteLabelResponse } from "./labels";
|
|
9
|
+
import type { DeleteLabelRequest } from "./labels";
|
|
10
|
+
import type { CreateOrUpdateLabelResponse } from "./labels";
|
|
11
|
+
import type { CreateOrUpdateLabelRequest } from "./labels";
|
|
12
|
+
import type { GetLabelResponse } from "./labels";
|
|
13
|
+
import type { GetLabelRequest } from "./labels";
|
|
14
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
15
|
+
import type { ListLabelsResponse } from "./labels";
|
|
16
|
+
import type { ListLabelsRequest } from "./labels";
|
|
17
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
18
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf service services.citizens.LabelsService
|
|
21
|
+
*/
|
|
22
|
+
export interface ILabelsServiceClient {
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf rpc: ListLabels
|
|
25
|
+
*/
|
|
26
|
+
listLabels(input: ListLabelsRequest, options?: RpcOptions): UnaryCall<ListLabelsRequest, ListLabelsResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf rpc: GetLabel
|
|
29
|
+
*/
|
|
30
|
+
getLabel(input: GetLabelRequest, options?: RpcOptions): UnaryCall<GetLabelRequest, GetLabelResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf rpc: CreateOrUpdateLabel
|
|
33
|
+
*/
|
|
34
|
+
createOrUpdateLabel(input: CreateOrUpdateLabelRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf rpc: DeleteLabel
|
|
37
|
+
*/
|
|
38
|
+
deleteLabel(input: DeleteLabelRequest, options?: RpcOptions): UnaryCall<DeleteLabelRequest, DeleteLabelResponse>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf service services.citizens.LabelsService
|
|
42
|
+
*/
|
|
43
|
+
export class LabelsServiceClient implements ILabelsServiceClient, ServiceInfo {
|
|
44
|
+
typeName = LabelsService.typeName;
|
|
45
|
+
methods = LabelsService.methods;
|
|
46
|
+
options = LabelsService.options;
|
|
47
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf rpc: ListLabels
|
|
51
|
+
*/
|
|
52
|
+
listLabels(input: ListLabelsRequest, options?: RpcOptions): UnaryCall<ListLabelsRequest, ListLabelsResponse> {
|
|
53
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
54
|
+
return stackIntercept<ListLabelsRequest, ListLabelsResponse>("unary", this._transport, method, opt, input);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf rpc: GetLabel
|
|
58
|
+
*/
|
|
59
|
+
getLabel(input: GetLabelRequest, options?: RpcOptions): UnaryCall<GetLabelRequest, GetLabelResponse> {
|
|
60
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
61
|
+
return stackIntercept<GetLabelRequest, GetLabelResponse>("unary", this._transport, method, opt, input);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf rpc: CreateOrUpdateLabel
|
|
65
|
+
*/
|
|
66
|
+
createOrUpdateLabel(input: CreateOrUpdateLabelRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse> {
|
|
67
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
68
|
+
return stackIntercept<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse>("unary", this._transport, method, opt, input);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf rpc: DeleteLabel
|
|
72
|
+
*/
|
|
73
|
+
deleteLabel(input: DeleteLabelRequest, options?: RpcOptions): UnaryCall<DeleteLabelRequest, DeleteLabelResponse> {
|
|
74
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
75
|
+
return stackIntercept<DeleteLabelRequest, DeleteLabelResponse>("unary", this._transport, method, opt, input);
|
|
76
|
+
}
|
|
77
|
+
}
|