@fivenet-app/gen 2025.4.8 → 2025.5.3
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 +7 -1
- package/clients.ts +48 -42
- package/google/protobuf/any.ts +1 -1
- package/google/protobuf/descriptor.ts +108 -50
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +3 -2
- package/perms.ts +96 -91
- package/resources/accounts/accounts.ts +39 -3
- package/resources/accounts/oauth2.ts +6 -6
- package/resources/{rector → audit}/audit.ts +22 -23
- package/resources/calendar/access.ts +4 -4
- package/resources/calendar/calendar.ts +1 -1
- package/resources/centrum/attributes.ts +6 -2
- package/resources/centrum/dispatches.ts +4 -4
- package/resources/centrum/disponents.ts +2 -2
- package/resources/centrum/settings.ts +3 -3
- package/resources/centrum/units.ts +4 -4
- package/resources/centrum/{access.ts → units_access.ts} +4 -4
- package/resources/centrum/user_unit.ts +2 -2
- package/resources/common/content/content.ts +2 -2
- package/resources/common/cron/cron.ts +53 -12
- package/resources/common/database/database.ts +1 -1
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +1 -1
- package/resources/common/i18n.ts +1 -1
- package/resources/common/tests/objects.ts +1 -1
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +4 -4
- package/resources/documents/activity.ts +7 -7
- package/resources/documents/category.ts +49 -26
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +5 -5
- package/resources/documents/workflow.ts +2 -2
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +4 -4
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +1 -1
- package/resources/internet/page.ts +3 -3
- package/resources/internet/search.ts +1 -1
- package/resources/jobs/activity.ts +114 -114
- package/resources/jobs/colleagues.ts +59 -48
- package/resources/jobs/conduct.ts +52 -41
- package/resources/{users → jobs}/job_props.ts +28 -41
- package/resources/{users → jobs}/job_settings.ts +54 -54
- package/resources/{users → jobs}/jobs.ts +12 -12
- package/resources/jobs/labels.ts +29 -17
- package/resources/jobs/timeclock.ts +7 -7
- package/resources/laws/laws.ts +2 -2
- package/resources/livemap/livemap.ts +1 -1
- package/resources/livemap/tracker.ts +3 -3
- package/resources/mailer/access.ts +5 -5
- package/resources/mailer/email.ts +11 -23
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +2 -2
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +2 -2
- package/resources/notifications/events.ts +23 -11
- package/resources/notifications/notifications.ts +1 -1
- package/resources/permissions/attributes.ts +689 -0
- package/resources/permissions/permissions.ts +4 -727
- package/resources/qualifications/access.ts +2 -2
- package/resources/qualifications/exam.ts +7 -7
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/{rector → settings}/banner.ts +5 -5
- package/resources/{rector → settings}/config.ts +83 -83
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +20 -20
- package/resources/sync/data.ts +26 -26
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +196 -196
- package/resources/users/labels.ts +28 -28
- package/resources/users/licenses.ts +12 -12
- package/resources/users/props.ts +28 -17
- package/resources/users/users.ts +2 -2
- package/resources/vehicles/vehicles.ts +4 -4
- package/resources/wiki/access.ts +4 -4
- package/resources/wiki/activity.ts +7 -7
- package/resources/wiki/page.ts +2 -2
- package/services/auth/auth.client.ts +8 -8
- package/services/auth/auth.ts +32 -32
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +6 -6
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +8 -8
- package/services/{citizenstore/citizenstore.client.ts → citizens/citizens.client.ts} +37 -37
- package/services/{citizenstore/citizenstore.ts → citizens/citizens.ts} +72 -72
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +17 -17
- package/services/{docstore/docstore.client.ts → documents/documents.client.ts} +163 -180
- package/services/{docstore/docstore.ts → documents/documents.ts} +280 -377
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +2 -2
- package/services/internet/domain.client.ts +1 -1
- package/services/internet/domain.ts +3 -3
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +2 -2
- package/services/jobs/conduct.client.ts +9 -9
- package/services/jobs/conduct.ts +4 -4
- package/services/jobs/jobs.client.ts +15 -15
- package/services/jobs/jobs.ts +77 -77
- package/services/jobs/timeclock.client.ts +9 -9
- package/services/jobs/timeclock.ts +15 -15
- package/services/{livemapper → livemap}/livemap.client.ts +16 -16
- package/services/{livemapper → livemap}/livemap.ts +63 -52
- package/services/mailer/mailer.client.ts +5 -5
- package/services/mailer/mailer.ts +6 -6
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +5 -5
- package/services/qualifications/qualifications.client.ts +1 -1
- package/services/qualifications/qualifications.ts +4 -4
- package/services/settings/accounts.client.ts +92 -0
- package/services/settings/accounts.ts +526 -0
- package/services/{rector → settings}/config.client.ts +18 -18
- package/services/{rector → settings}/config.ts +26 -26
- package/services/settings/cron.client.ts +41 -0
- package/services/settings/cron.ts +119 -0
- package/services/{rector → settings}/filestore.client.ts +22 -22
- package/services/{rector → settings}/filestore.ts +23 -23
- package/services/{rector → settings}/laws.client.ts +26 -26
- package/services/{rector → settings}/laws.ts +28 -28
- package/services/settings/settings.client.ts +262 -0
- package/services/{rector/rector.ts → settings/settings.ts} +558 -149
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +1 -1
- package/services/sync/sync.client.ts +1 -1
- package/services/sync/sync.ts +33 -33
- package/services/{dmv → vehicles}/vehicles.client.ts +12 -12
- package/services/{dmv → vehicles}/vehicles.ts +11 -11
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +3 -3
- package/svcs.ts +247 -235
- package/services/rector/rector.client.ts +0 -211
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "services/
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "services/citizens/citizens.proto" (package "services.citizens", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,7 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import {
|
|
14
|
+
import { Label } from "../../resources/users/labels";
|
|
15
15
|
import { File } from "../../resources/filestore/file";
|
|
16
16
|
import { UserProps } from "../../resources/users/props";
|
|
17
17
|
import { UserActivity } from "../../resources/users/activity";
|
|
@@ -21,7 +21,7 @@ import { PaginationResponse } from "../../resources/common/database/database";
|
|
|
21
21
|
import { Sort } from "../../resources/common/database/database";
|
|
22
22
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
23
23
|
/**
|
|
24
|
-
* @generated from protobuf message services.
|
|
24
|
+
* @generated from protobuf message services.citizens.ListCitizensRequest
|
|
25
25
|
*/
|
|
26
26
|
export interface ListCitizensRequest {
|
|
27
27
|
/**
|
|
@@ -60,7 +60,7 @@ export interface ListCitizensRequest {
|
|
|
60
60
|
openFines?: number;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* @generated from protobuf message services.
|
|
63
|
+
* @generated from protobuf message services.citizens.ListCitizensResponse
|
|
64
64
|
*/
|
|
65
65
|
export interface ListCitizensResponse {
|
|
66
66
|
/**
|
|
@@ -73,7 +73,7 @@ export interface ListCitizensResponse {
|
|
|
73
73
|
users: User[];
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
* @generated from protobuf message services.
|
|
76
|
+
* @generated from protobuf message services.citizens.GetUserRequest
|
|
77
77
|
*/
|
|
78
78
|
export interface GetUserRequest {
|
|
79
79
|
/**
|
|
@@ -86,7 +86,7 @@ export interface GetUserRequest {
|
|
|
86
86
|
infoOnly?: boolean;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* @generated from protobuf message services.
|
|
89
|
+
* @generated from protobuf message services.citizens.GetUserResponse
|
|
90
90
|
*/
|
|
91
91
|
export interface GetUserResponse {
|
|
92
92
|
/**
|
|
@@ -95,7 +95,7 @@ export interface GetUserResponse {
|
|
|
95
95
|
user?: User;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* @generated from protobuf message services.
|
|
98
|
+
* @generated from protobuf message services.citizens.ListUserActivityRequest
|
|
99
99
|
*/
|
|
100
100
|
export interface ListUserActivityRequest {
|
|
101
101
|
/**
|
|
@@ -118,7 +118,7 @@ export interface ListUserActivityRequest {
|
|
|
118
118
|
types: UserActivityType[];
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
|
-
* @generated from protobuf message services.
|
|
121
|
+
* @generated from protobuf message services.citizens.ListUserActivityResponse
|
|
122
122
|
*/
|
|
123
123
|
export interface ListUserActivityResponse {
|
|
124
124
|
/**
|
|
@@ -131,7 +131,7 @@ export interface ListUserActivityResponse {
|
|
|
131
131
|
activity: UserActivity[];
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
|
-
* @generated from protobuf message services.
|
|
134
|
+
* @generated from protobuf message services.citizens.SetUserPropsRequest
|
|
135
135
|
*/
|
|
136
136
|
export interface SetUserPropsRequest {
|
|
137
137
|
/**
|
|
@@ -146,7 +146,7 @@ export interface SetUserPropsRequest {
|
|
|
146
146
|
reason: string;
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* @generated from protobuf message services.
|
|
149
|
+
* @generated from protobuf message services.citizens.SetUserPropsResponse
|
|
150
150
|
*/
|
|
151
151
|
export interface SetUserPropsResponse {
|
|
152
152
|
/**
|
|
@@ -155,7 +155,7 @@ export interface SetUserPropsResponse {
|
|
|
155
155
|
props?: UserProps;
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
* @generated from protobuf message services.
|
|
158
|
+
* @generated from protobuf message services.citizens.SetProfilePictureRequest
|
|
159
159
|
*/
|
|
160
160
|
export interface SetProfilePictureRequest {
|
|
161
161
|
/**
|
|
@@ -164,7 +164,7 @@ export interface SetProfilePictureRequest {
|
|
|
164
164
|
avatar?: File;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
|
-
* @generated from protobuf message services.
|
|
167
|
+
* @generated from protobuf message services.citizens.SetProfilePictureResponse
|
|
168
168
|
*/
|
|
169
169
|
export interface SetProfilePictureResponse {
|
|
170
170
|
/**
|
|
@@ -173,27 +173,27 @@ export interface SetProfilePictureResponse {
|
|
|
173
173
|
avatar?: File;
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
|
-
* @generated from protobuf message services.
|
|
176
|
+
* @generated from protobuf message services.citizens.ManageLabelsRequest
|
|
177
177
|
*/
|
|
178
|
-
export interface
|
|
178
|
+
export interface ManageLabelsRequest {
|
|
179
179
|
/**
|
|
180
|
-
* @generated from protobuf field: repeated resources.users.
|
|
180
|
+
* @generated from protobuf field: repeated resources.users.Label labels = 1;
|
|
181
181
|
*/
|
|
182
|
-
labels:
|
|
182
|
+
labels: Label[];
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* @generated from protobuf message services.
|
|
185
|
+
* @generated from protobuf message services.citizens.ManageLabelsResponse
|
|
186
186
|
*/
|
|
187
|
-
export interface
|
|
187
|
+
export interface ManageLabelsResponse {
|
|
188
188
|
/**
|
|
189
|
-
* @generated from protobuf field: repeated resources.users.
|
|
189
|
+
* @generated from protobuf field: repeated resources.users.Label labels = 1;
|
|
190
190
|
*/
|
|
191
|
-
labels:
|
|
191
|
+
labels: Label[];
|
|
192
192
|
}
|
|
193
193
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
194
194
|
class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
195
195
|
constructor() {
|
|
196
|
-
super("services.
|
|
196
|
+
super("services.citizens.ListCitizensRequest", [
|
|
197
197
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
198
198
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
199
199
|
{ no: 3, name: "search", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
@@ -283,15 +283,15 @@ class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
|
-
* @generated MessageType for protobuf message services.
|
|
286
|
+
* @generated MessageType for protobuf message services.citizens.ListCitizensRequest
|
|
287
287
|
*/
|
|
288
288
|
export const ListCitizensRequest = new ListCitizensRequest$Type();
|
|
289
289
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
290
290
|
class ListCitizensResponse$Type extends MessageType<ListCitizensResponse> {
|
|
291
291
|
constructor() {
|
|
292
|
-
super("services.
|
|
292
|
+
super("services.citizens.ListCitizensResponse", [
|
|
293
293
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
294
|
-
{ no: 2, name: "users", kind: "message", repeat:
|
|
294
|
+
{ no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => User }
|
|
295
295
|
]);
|
|
296
296
|
}
|
|
297
297
|
create(value?: PartialMessage<ListCitizensResponse>): ListCitizensResponse {
|
|
@@ -337,13 +337,13 @@ class ListCitizensResponse$Type extends MessageType<ListCitizensResponse> {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
|
-
* @generated MessageType for protobuf message services.
|
|
340
|
+
* @generated MessageType for protobuf message services.citizens.ListCitizensResponse
|
|
341
341
|
*/
|
|
342
342
|
export const ListCitizensResponse = new ListCitizensResponse$Type();
|
|
343
343
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
344
344
|
class GetUserRequest$Type extends MessageType<GetUserRequest> {
|
|
345
345
|
constructor() {
|
|
346
|
-
super("services.
|
|
346
|
+
super("services.citizens.GetUserRequest", [
|
|
347
347
|
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
348
348
|
{ no: 2, name: "info_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
349
349
|
]);
|
|
@@ -391,13 +391,13 @@ class GetUserRequest$Type extends MessageType<GetUserRequest> {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
|
-
* @generated MessageType for protobuf message services.
|
|
394
|
+
* @generated MessageType for protobuf message services.citizens.GetUserRequest
|
|
395
395
|
*/
|
|
396
396
|
export const GetUserRequest = new GetUserRequest$Type();
|
|
397
397
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
398
398
|
class GetUserResponse$Type extends MessageType<GetUserResponse> {
|
|
399
399
|
constructor() {
|
|
400
|
-
super("services.
|
|
400
|
+
super("services.citizens.GetUserResponse", [
|
|
401
401
|
{ no: 1, name: "user", kind: "message", T: () => User }
|
|
402
402
|
]);
|
|
403
403
|
}
|
|
@@ -437,13 +437,13 @@ class GetUserResponse$Type extends MessageType<GetUserResponse> {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
/**
|
|
440
|
-
* @generated MessageType for protobuf message services.
|
|
440
|
+
* @generated MessageType for protobuf message services.citizens.GetUserResponse
|
|
441
441
|
*/
|
|
442
442
|
export const GetUserResponse = new GetUserResponse$Type();
|
|
443
443
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
444
444
|
class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest> {
|
|
445
445
|
constructor() {
|
|
446
|
-
super("services.
|
|
446
|
+
super("services.citizens.ListUserActivityRequest", [
|
|
447
447
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
448
448
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
449
449
|
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
@@ -514,15 +514,15 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
517
|
-
* @generated MessageType for protobuf message services.
|
|
517
|
+
* @generated MessageType for protobuf message services.citizens.ListUserActivityRequest
|
|
518
518
|
*/
|
|
519
519
|
export const ListUserActivityRequest = new ListUserActivityRequest$Type();
|
|
520
520
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
521
521
|
class ListUserActivityResponse$Type extends MessageType<ListUserActivityResponse> {
|
|
522
522
|
constructor() {
|
|
523
|
-
super("services.
|
|
523
|
+
super("services.citizens.ListUserActivityResponse", [
|
|
524
524
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
525
|
-
{ no: 2, name: "activity", kind: "message", repeat:
|
|
525
|
+
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserActivity }
|
|
526
526
|
]);
|
|
527
527
|
}
|
|
528
528
|
create(value?: PartialMessage<ListUserActivityResponse>): ListUserActivityResponse {
|
|
@@ -568,13 +568,13 @@ class ListUserActivityResponse$Type extends MessageType<ListUserActivityResponse
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
|
-
* @generated MessageType for protobuf message services.
|
|
571
|
+
* @generated MessageType for protobuf message services.citizens.ListUserActivityResponse
|
|
572
572
|
*/
|
|
573
573
|
export const ListUserActivityResponse = new ListUserActivityResponse$Type();
|
|
574
574
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
575
575
|
class SetUserPropsRequest$Type extends MessageType<SetUserPropsRequest> {
|
|
576
576
|
constructor() {
|
|
577
|
-
super("services.
|
|
577
|
+
super("services.citizens.SetUserPropsRequest", [
|
|
578
578
|
{ no: 1, name: "props", kind: "message", T: () => UserProps, options: { "validate.rules": { message: { required: true } } } },
|
|
579
579
|
{ no: 2, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "255", ignoreEmpty: true } } } }
|
|
580
580
|
]);
|
|
@@ -622,13 +622,13 @@ class SetUserPropsRequest$Type extends MessageType<SetUserPropsRequest> {
|
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
/**
|
|
625
|
-
* @generated MessageType for protobuf message services.
|
|
625
|
+
* @generated MessageType for protobuf message services.citizens.SetUserPropsRequest
|
|
626
626
|
*/
|
|
627
627
|
export const SetUserPropsRequest = new SetUserPropsRequest$Type();
|
|
628
628
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
629
629
|
class SetUserPropsResponse$Type extends MessageType<SetUserPropsResponse> {
|
|
630
630
|
constructor() {
|
|
631
|
-
super("services.
|
|
631
|
+
super("services.citizens.SetUserPropsResponse", [
|
|
632
632
|
{ no: 1, name: "props", kind: "message", T: () => UserProps }
|
|
633
633
|
]);
|
|
634
634
|
}
|
|
@@ -668,13 +668,13 @@ class SetUserPropsResponse$Type extends MessageType<SetUserPropsResponse> {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
/**
|
|
671
|
-
* @generated MessageType for protobuf message services.
|
|
671
|
+
* @generated MessageType for protobuf message services.citizens.SetUserPropsResponse
|
|
672
672
|
*/
|
|
673
673
|
export const SetUserPropsResponse = new SetUserPropsResponse$Type();
|
|
674
674
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
675
675
|
class SetProfilePictureRequest$Type extends MessageType<SetProfilePictureRequest> {
|
|
676
676
|
constructor() {
|
|
677
|
-
super("services.
|
|
677
|
+
super("services.citizens.SetProfilePictureRequest", [
|
|
678
678
|
{ no: 1, name: "avatar", kind: "message", T: () => File }
|
|
679
679
|
]);
|
|
680
680
|
}
|
|
@@ -714,13 +714,13 @@ class SetProfilePictureRequest$Type extends MessageType<SetProfilePictureRequest
|
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
717
|
-
* @generated MessageType for protobuf message services.
|
|
717
|
+
* @generated MessageType for protobuf message services.citizens.SetProfilePictureRequest
|
|
718
718
|
*/
|
|
719
719
|
export const SetProfilePictureRequest = new SetProfilePictureRequest$Type();
|
|
720
720
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
721
721
|
class SetProfilePictureResponse$Type extends MessageType<SetProfilePictureResponse> {
|
|
722
722
|
constructor() {
|
|
723
|
-
super("services.
|
|
723
|
+
super("services.citizens.SetProfilePictureResponse", [
|
|
724
724
|
{ no: 1, name: "avatar", kind: "message", T: () => File }
|
|
725
725
|
]);
|
|
726
726
|
}
|
|
@@ -760,30 +760,30 @@ class SetProfilePictureResponse$Type extends MessageType<SetProfilePictureRespon
|
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
/**
|
|
763
|
-
* @generated MessageType for protobuf message services.
|
|
763
|
+
* @generated MessageType for protobuf message services.citizens.SetProfilePictureResponse
|
|
764
764
|
*/
|
|
765
765
|
export const SetProfilePictureResponse = new SetProfilePictureResponse$Type();
|
|
766
766
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
767
|
-
class
|
|
767
|
+
class ManageLabelsRequest$Type extends MessageType<ManageLabelsRequest> {
|
|
768
768
|
constructor() {
|
|
769
|
-
super("services.
|
|
770
|
-
{ no: 1, name: "labels", kind: "message", repeat:
|
|
769
|
+
super("services.citizens.ManageLabelsRequest", [
|
|
770
|
+
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label }
|
|
771
771
|
]);
|
|
772
772
|
}
|
|
773
|
-
create(value?: PartialMessage<
|
|
773
|
+
create(value?: PartialMessage<ManageLabelsRequest>): ManageLabelsRequest {
|
|
774
774
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
775
775
|
message.labels = [];
|
|
776
776
|
if (value !== undefined)
|
|
777
|
-
reflectionMergePartial<
|
|
777
|
+
reflectionMergePartial<ManageLabelsRequest>(this, message, value);
|
|
778
778
|
return message;
|
|
779
779
|
}
|
|
780
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
780
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ManageLabelsRequest): ManageLabelsRequest {
|
|
781
781
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
782
782
|
while (reader.pos < end) {
|
|
783
783
|
let [fieldNo, wireType] = reader.tag();
|
|
784
784
|
switch (fieldNo) {
|
|
785
|
-
case /* repeated resources.users.
|
|
786
|
-
message.labels.push(
|
|
785
|
+
case /* repeated resources.users.Label labels */ 1:
|
|
786
|
+
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
787
787
|
break;
|
|
788
788
|
default:
|
|
789
789
|
let u = options.readUnknownField;
|
|
@@ -796,10 +796,10 @@ class ManageCitizenLabelsRequest$Type extends MessageType<ManageCitizenLabelsReq
|
|
|
796
796
|
}
|
|
797
797
|
return message;
|
|
798
798
|
}
|
|
799
|
-
internalBinaryWrite(message:
|
|
800
|
-
/* repeated resources.users.
|
|
799
|
+
internalBinaryWrite(message: ManageLabelsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
800
|
+
/* repeated resources.users.Label labels = 1; */
|
|
801
801
|
for (let i = 0; i < message.labels.length; i++)
|
|
802
|
-
|
|
802
|
+
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
803
803
|
let u = options.writeUnknownFields;
|
|
804
804
|
if (u !== false)
|
|
805
805
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -807,30 +807,30 @@ class ManageCitizenLabelsRequest$Type extends MessageType<ManageCitizenLabelsReq
|
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
/**
|
|
810
|
-
* @generated MessageType for protobuf message services.
|
|
810
|
+
* @generated MessageType for protobuf message services.citizens.ManageLabelsRequest
|
|
811
811
|
*/
|
|
812
|
-
export const
|
|
812
|
+
export const ManageLabelsRequest = new ManageLabelsRequest$Type();
|
|
813
813
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
814
|
-
class
|
|
814
|
+
class ManageLabelsResponse$Type extends MessageType<ManageLabelsResponse> {
|
|
815
815
|
constructor() {
|
|
816
|
-
super("services.
|
|
817
|
-
{ no: 1, name: "labels", kind: "message", repeat:
|
|
816
|
+
super("services.citizens.ManageLabelsResponse", [
|
|
817
|
+
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label }
|
|
818
818
|
]);
|
|
819
819
|
}
|
|
820
|
-
create(value?: PartialMessage<
|
|
820
|
+
create(value?: PartialMessage<ManageLabelsResponse>): ManageLabelsResponse {
|
|
821
821
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
822
822
|
message.labels = [];
|
|
823
823
|
if (value !== undefined)
|
|
824
|
-
reflectionMergePartial<
|
|
824
|
+
reflectionMergePartial<ManageLabelsResponse>(this, message, value);
|
|
825
825
|
return message;
|
|
826
826
|
}
|
|
827
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
827
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ManageLabelsResponse): ManageLabelsResponse {
|
|
828
828
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
829
829
|
while (reader.pos < end) {
|
|
830
830
|
let [fieldNo, wireType] = reader.tag();
|
|
831
831
|
switch (fieldNo) {
|
|
832
|
-
case /* repeated resources.users.
|
|
833
|
-
message.labels.push(
|
|
832
|
+
case /* repeated resources.users.Label labels */ 1:
|
|
833
|
+
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
834
834
|
break;
|
|
835
835
|
default:
|
|
836
836
|
let u = options.readUnknownField;
|
|
@@ -843,10 +843,10 @@ class ManageCitizenLabelsResponse$Type extends MessageType<ManageCitizenLabelsRe
|
|
|
843
843
|
}
|
|
844
844
|
return message;
|
|
845
845
|
}
|
|
846
|
-
internalBinaryWrite(message:
|
|
847
|
-
/* repeated resources.users.
|
|
846
|
+
internalBinaryWrite(message: ManageLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
847
|
+
/* repeated resources.users.Label labels = 1; */
|
|
848
848
|
for (let i = 0; i < message.labels.length; i++)
|
|
849
|
-
|
|
849
|
+
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
850
850
|
let u = options.writeUnknownFields;
|
|
851
851
|
if (u !== false)
|
|
852
852
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -854,17 +854,17 @@ class ManageCitizenLabelsResponse$Type extends MessageType<ManageCitizenLabelsRe
|
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
/**
|
|
857
|
-
* @generated MessageType for protobuf message services.
|
|
857
|
+
* @generated MessageType for protobuf message services.citizens.ManageLabelsResponse
|
|
858
858
|
*/
|
|
859
|
-
export const
|
|
859
|
+
export const ManageLabelsResponse = new ManageLabelsResponse$Type();
|
|
860
860
|
/**
|
|
861
|
-
* @generated ServiceType for protobuf service services.
|
|
861
|
+
* @generated ServiceType for protobuf service services.citizens.CitizensService
|
|
862
862
|
*/
|
|
863
|
-
export const
|
|
863
|
+
export const CitizensService = new ServiceType("services.citizens.CitizensService", [
|
|
864
864
|
{ name: "ListCitizens", options: {}, I: ListCitizensRequest, O: ListCitizensResponse },
|
|
865
865
|
{ name: "GetUser", options: {}, I: GetUserRequest, O: GetUserResponse },
|
|
866
866
|
{ name: "ListUserActivity", options: {}, I: ListUserActivityRequest, O: ListUserActivityResponse },
|
|
867
867
|
{ name: "SetUserProps", options: {}, I: SetUserPropsRequest, O: SetUserPropsResponse },
|
|
868
868
|
{ name: "SetProfilePicture", options: {}, I: SetProfilePictureRequest, O: SetProfilePictureResponse },
|
|
869
|
-
{ name: "
|
|
869
|
+
{ name: "ManageLabels", options: {}, I: ManageLabelsRequest, O: ManageLabelsResponse }
|
|
870
870
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "services/completor/completor.proto" (package "services.completor", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "services/completor/completor.proto" (package "services.completor", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -11,10 +11,10 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import {
|
|
14
|
+
import { Label } from "../../resources/users/labels";
|
|
15
15
|
import { LawBook } from "../../resources/laws/laws";
|
|
16
16
|
import { Category } from "../../resources/documents/category";
|
|
17
|
-
import { Job } from "../../resources/
|
|
17
|
+
import { Job } from "../../resources/jobs/jobs";
|
|
18
18
|
import { UserShort } from "../../resources/users/users";
|
|
19
19
|
/**
|
|
20
20
|
* @generated from protobuf message services.completor.CompleteCitizensRequest
|
|
@@ -68,7 +68,7 @@ export interface CompleteJobsRequest {
|
|
|
68
68
|
*/
|
|
69
69
|
export interface CompleteJobsResponse {
|
|
70
70
|
/**
|
|
71
|
-
* @generated from protobuf field: repeated resources.
|
|
71
|
+
* @generated from protobuf field: repeated resources.jobs.Job jobs = 1;
|
|
72
72
|
*/
|
|
73
73
|
jobs: Job[];
|
|
74
74
|
}
|
|
@@ -118,9 +118,9 @@ export interface CompleteCitizenLabelsRequest {
|
|
|
118
118
|
*/
|
|
119
119
|
export interface CompleteCitizenLabelsResponse {
|
|
120
120
|
/**
|
|
121
|
-
* @generated from protobuf field: repeated resources.users.
|
|
121
|
+
* @generated from protobuf field: repeated resources.users.Label labels = 1;
|
|
122
122
|
*/
|
|
123
|
-
labels:
|
|
123
|
+
labels: Label[];
|
|
124
124
|
}
|
|
125
125
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
126
126
|
class CompleteCitizensRequest$Type extends MessageType<CompleteCitizensRequest> {
|
|
@@ -194,7 +194,7 @@ export const CompleteCitizensRequest = new CompleteCitizensRequest$Type();
|
|
|
194
194
|
class CompleteCitizensRespoonse$Type extends MessageType<CompleteCitizensRespoonse> {
|
|
195
195
|
constructor() {
|
|
196
196
|
super("services.completor.CompleteCitizensRespoonse", [
|
|
197
|
-
{ no: 1, name: "users", kind: "message", repeat:
|
|
197
|
+
{ no: 1, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserShort }
|
|
198
198
|
]);
|
|
199
199
|
}
|
|
200
200
|
create(value?: PartialMessage<CompleteCitizensRespoonse>): CompleteCitizensRespoonse {
|
|
@@ -301,7 +301,7 @@ export const CompleteJobsRequest = new CompleteJobsRequest$Type();
|
|
|
301
301
|
class CompleteJobsResponse$Type extends MessageType<CompleteJobsResponse> {
|
|
302
302
|
constructor() {
|
|
303
303
|
super("services.completor.CompleteJobsResponse", [
|
|
304
|
-
{ no: 1, name: "jobs", kind: "message", repeat:
|
|
304
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Job }
|
|
305
305
|
]);
|
|
306
306
|
}
|
|
307
307
|
create(value?: PartialMessage<CompleteJobsResponse>): CompleteJobsResponse {
|
|
@@ -316,7 +316,7 @@ class CompleteJobsResponse$Type extends MessageType<CompleteJobsResponse> {
|
|
|
316
316
|
while (reader.pos < end) {
|
|
317
317
|
let [fieldNo, wireType] = reader.tag();
|
|
318
318
|
switch (fieldNo) {
|
|
319
|
-
case /* repeated resources.
|
|
319
|
+
case /* repeated resources.jobs.Job jobs */ 1:
|
|
320
320
|
message.jobs.push(Job.internalBinaryRead(reader, reader.uint32(), options));
|
|
321
321
|
break;
|
|
322
322
|
default:
|
|
@@ -331,7 +331,7 @@ class CompleteJobsResponse$Type extends MessageType<CompleteJobsResponse> {
|
|
|
331
331
|
return message;
|
|
332
332
|
}
|
|
333
333
|
internalBinaryWrite(message: CompleteJobsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
334
|
-
/* repeated resources.
|
|
334
|
+
/* repeated resources.jobs.Job jobs = 1; */
|
|
335
335
|
for (let i = 0; i < message.jobs.length; i++)
|
|
336
336
|
Job.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
337
337
|
let u = options.writeUnknownFields;
|
|
@@ -395,7 +395,7 @@ export const CompleteDocumentCategoriesRequest = new CompleteDocumentCategoriesR
|
|
|
395
395
|
class CompleteDocumentCategoriesResponse$Type extends MessageType<CompleteDocumentCategoriesResponse> {
|
|
396
396
|
constructor() {
|
|
397
397
|
super("services.completor.CompleteDocumentCategoriesResponse", [
|
|
398
|
-
{ no: 1, name: "categories", kind: "message", repeat:
|
|
398
|
+
{ no: 1, name: "categories", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Category }
|
|
399
399
|
]);
|
|
400
400
|
}
|
|
401
401
|
create(value?: PartialMessage<CompleteDocumentCategoriesResponse>): CompleteDocumentCategoriesResponse {
|
|
@@ -480,7 +480,7 @@ export const ListLawBooksRequest = new ListLawBooksRequest$Type();
|
|
|
480
480
|
class ListLawBooksResponse$Type extends MessageType<ListLawBooksResponse> {
|
|
481
481
|
constructor() {
|
|
482
482
|
super("services.completor.ListLawBooksResponse", [
|
|
483
|
-
{ no: 1, name: "books", kind: "message", repeat:
|
|
483
|
+
{ no: 1, name: "books", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LawBook }
|
|
484
484
|
]);
|
|
485
485
|
}
|
|
486
486
|
create(value?: PartialMessage<ListLawBooksResponse>): ListLawBooksResponse {
|
|
@@ -574,7 +574,7 @@ export const CompleteCitizenLabelsRequest = new CompleteCitizenLabelsRequest$Typ
|
|
|
574
574
|
class CompleteCitizenLabelsResponse$Type extends MessageType<CompleteCitizenLabelsResponse> {
|
|
575
575
|
constructor() {
|
|
576
576
|
super("services.completor.CompleteCitizenLabelsResponse", [
|
|
577
|
-
{ no: 1, name: "labels", kind: "message", repeat:
|
|
577
|
+
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label }
|
|
578
578
|
]);
|
|
579
579
|
}
|
|
580
580
|
create(value?: PartialMessage<CompleteCitizenLabelsResponse>): CompleteCitizenLabelsResponse {
|
|
@@ -589,8 +589,8 @@ class CompleteCitizenLabelsResponse$Type extends MessageType<CompleteCitizenLabe
|
|
|
589
589
|
while (reader.pos < end) {
|
|
590
590
|
let [fieldNo, wireType] = reader.tag();
|
|
591
591
|
switch (fieldNo) {
|
|
592
|
-
case /* repeated resources.users.
|
|
593
|
-
message.labels.push(
|
|
592
|
+
case /* repeated resources.users.Label labels */ 1:
|
|
593
|
+
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
594
594
|
break;
|
|
595
595
|
default:
|
|
596
596
|
let u = options.readUnknownField;
|
|
@@ -604,9 +604,9 @@ class CompleteCitizenLabelsResponse$Type extends MessageType<CompleteCitizenLabe
|
|
|
604
604
|
return message;
|
|
605
605
|
}
|
|
606
606
|
internalBinaryWrite(message: CompleteCitizenLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
607
|
-
/* repeated resources.users.
|
|
607
|
+
/* repeated resources.users.Label labels = 1; */
|
|
608
608
|
for (let i = 0; i < message.labels.length; i++)
|
|
609
|
-
|
|
609
|
+
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
610
610
|
let u = options.writeUnknownFields;
|
|
611
611
|
if (u !== false)
|
|
612
612
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|