@fivenet-app/gen 2026.5.0 → 2026.7.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/clients.ts +6 -0
- package/codegen/perms/perms.ts +74 -40
- package/codegen/sanitizer/sanitizer.ts +6 -0
- package/google/protobuf/descriptor.ts +11 -3
- package/google/protobuf/timestamp.ts +7 -6
- package/package.json +1 -1
- package/perms.ts +387 -41
- package/resources/access/access.ts +481 -0
- package/resources/accounts/accounts.ts +41 -30
- package/resources/audit/audit.ts +5 -1
- package/resources/calendar/access/access.ts +0 -330
- package/resources/calendar/calendar.ts +307 -25
- package/resources/calendar/entries/entries.ts +204 -11
- package/resources/centrum/units/access/access.ts +0 -373
- package/resources/centrum/units/units.ts +20 -8
- package/resources/citizens/labels/access.ts +0 -191
- package/resources/citizens/labels/labels.ts +20 -8
- package/resources/common/content/diff_activity.ts +1 -1
- package/resources/cron/cron.ts +1 -1
- package/resources/documents/access/access.ts +0 -329
- package/resources/documents/activity/activity.ts +49 -45
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests/requests.ts +1 -1
- package/resources/documents/stamps/stamp.ts +40 -210
- package/resources/documents/templates/templates.ts +158 -318
- package/resources/jobs/colleagues/activity/activity.ts +2 -2
- package/resources/jobs/conduct/conduct.ts +2 -2
- package/resources/jobs/jobs.ts +22 -0
- package/resources/jobs/labels/labels.ts +9 -9
- package/resources/laws/laws.ts +96 -50
- package/resources/livemap/markers/marker_marker.ts +311 -4
- package/resources/mailer/access/access.ts +0 -457
- package/resources/mailer/emails/email.ts +4 -4
- package/resources/notifications/events/events.ts +18 -1
- package/resources/permissions/attributes/attributes.ts +51 -39
- package/resources/permissions/permissions/permissions.ts +46 -34
- package/resources/qualifications/access/access.ts +0 -248
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/settings/config.ts +53 -5
- package/resources/settings/data.ts +1 -1
- package/resources/stats/stats.ts +32 -20
- package/resources/sync/data/data.ts +22 -10
- package/resources/userinfo/userinfo.ts +202 -51
- package/resources/users/activity/activity.ts +70 -77
- package/resources/wiki/access/access.ts +0 -330
- package/resources/wiki/activity/activity.ts +45 -45
- package/resources/wiki/page.ts +9 -9
- package/services/auth/auth.ts +1 -1
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +13 -2
- package/services/centrum/dispatches.ts +32 -12
- package/services/centrum/units.client.ts +15 -2
- package/services/centrum/units.ts +237 -129
- package/services/citizens/citizens.ts +1 -1
- package/services/citizens/labels.client.ts +13 -0
- package/services/citizens/labels.ts +135 -4
- package/services/completor/completor.client.ts +0 -13
- package/services/completor/completor.ts +2 -116
- package/services/documents/approval.ts +20 -9
- package/services/documents/categories.ts +1 -1
- package/services/documents/collab.ts +1 -1
- package/services/documents/comments.ts +4 -4
- package/services/documents/documents.ts +38 -38
- package/services/documents/stats.ts +14 -2
- package/services/documents/templates.ts +1 -1
- package/services/filestore/filestore.ts +4 -4
- package/services/jobs/colleagues.ts +4 -4
- package/services/jobs/conduct.ts +2 -2
- package/services/jobs/groups.client.ts +22 -0
- package/services/jobs/groups.ts +9 -0
- package/services/jobs/timeclock.ts +2 -2
- package/services/mailer/settings.ts +1 -1
- package/services/mailer/thread.ts +3 -3
- package/services/qualifications/exam.ts +5 -5
- package/services/qualifications/qualifications.ts +52 -34
- package/services/settings/accounts.ts +19 -6
- package/services/settings/config.ts +2 -2
- package/services/settings/cron.ts +2 -2
- package/services/settings/laws.client.ts +44 -5
- package/services/settings/laws.ts +357 -4
- package/services/settings/system.ts +6 -6
- package/services/sync/sync.client.ts +42 -14
- package/services/sync/sync.ts +162 -13
- package/services/wiki/collab.ts +1 -1
- package/services/wiki/wiki.client.ts +15 -2
- package/services/wiki/wiki.ts +122 -0
- package/svcs.ts +19 -1
|
@@ -19,7 +19,7 @@ import { QualificationResult } from "../../resources/qualifications/qualificatio
|
|
|
19
19
|
import { ResultStatus } from "../../resources/qualifications/qualifications";
|
|
20
20
|
import { QualificationRequest } from "../../resources/qualifications/qualifications";
|
|
21
21
|
import { RequestStatus } from "../../resources/qualifications/qualifications";
|
|
22
|
-
import {
|
|
22
|
+
import { Access } from "../../resources/access/access";
|
|
23
23
|
import { ContentType } from "../../resources/common/content/content";
|
|
24
24
|
import { Qualification } from "../../resources/qualifications/qualifications";
|
|
25
25
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
@@ -149,9 +149,9 @@ export interface GetQualificationAccessRequest {
|
|
|
149
149
|
*/
|
|
150
150
|
export interface GetQualificationAccessResponse {
|
|
151
151
|
/**
|
|
152
|
-
* @generated from protobuf field: resources.
|
|
152
|
+
* @generated from protobuf field: resources.access.Access access = 1
|
|
153
153
|
*/
|
|
154
|
-
access?:
|
|
154
|
+
access?: Access;
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
* @generated from protobuf message services.qualifications.SetQualificationAccessRequest
|
|
@@ -162,9 +162,9 @@ export interface SetQualificationAccessRequest {
|
|
|
162
162
|
*/
|
|
163
163
|
qualificationId: number;
|
|
164
164
|
/**
|
|
165
|
-
* @generated from protobuf field: resources.
|
|
165
|
+
* @generated from protobuf field: resources.access.Access access = 2
|
|
166
166
|
*/
|
|
167
|
-
access?:
|
|
167
|
+
access?: Access;
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* @generated from protobuf message services.qualifications.SetQualificationAccessResponse
|
|
@@ -196,9 +196,9 @@ export interface ListQualificationRequestsRequest {
|
|
|
196
196
|
*/
|
|
197
197
|
status: RequestStatus[];
|
|
198
198
|
/**
|
|
199
|
-
* @generated from protobuf field:
|
|
199
|
+
* @generated from protobuf field: repeated int32 user_ids = 5
|
|
200
200
|
*/
|
|
201
|
-
|
|
201
|
+
userIds: number[];
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @generated from protobuf message services.qualifications.ListQualificationRequestsResponse
|
|
@@ -274,9 +274,9 @@ export interface ListQualificationsResultsRequest {
|
|
|
274
274
|
*/
|
|
275
275
|
status: ResultStatus[];
|
|
276
276
|
/**
|
|
277
|
-
* @generated from protobuf field:
|
|
277
|
+
* @generated from protobuf field: repeated int32 user_ids = 5
|
|
278
278
|
*/
|
|
279
|
-
|
|
279
|
+
userIds: number[];
|
|
280
280
|
}
|
|
281
281
|
/**
|
|
282
282
|
* @generated from protobuf message services.qualifications.ListQualificationsResultsResponse
|
|
@@ -871,7 +871,7 @@ export const GetQualificationAccessRequest = new GetQualificationAccessRequest$T
|
|
|
871
871
|
class GetQualificationAccessResponse$Type extends MessageType<GetQualificationAccessResponse> {
|
|
872
872
|
constructor() {
|
|
873
873
|
super("services.qualifications.GetQualificationAccessResponse", [
|
|
874
|
-
{ no: 1, name: "access", kind: "message", T: () =>
|
|
874
|
+
{ no: 1, name: "access", kind: "message", T: () => Access, options: { "buf.validate.field": { required: true } } }
|
|
875
875
|
]);
|
|
876
876
|
}
|
|
877
877
|
create(value?: PartialMessage<GetQualificationAccessResponse>): GetQualificationAccessResponse {
|
|
@@ -885,8 +885,8 @@ class GetQualificationAccessResponse$Type extends MessageType<GetQualificationAc
|
|
|
885
885
|
while (reader.pos < end) {
|
|
886
886
|
let [fieldNo, wireType] = reader.tag();
|
|
887
887
|
switch (fieldNo) {
|
|
888
|
-
case /* resources.
|
|
889
|
-
message.access =
|
|
888
|
+
case /* resources.access.Access access */ 1:
|
|
889
|
+
message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
890
890
|
break;
|
|
891
891
|
default:
|
|
892
892
|
let u = options.readUnknownField;
|
|
@@ -900,9 +900,9 @@ class GetQualificationAccessResponse$Type extends MessageType<GetQualificationAc
|
|
|
900
900
|
return message;
|
|
901
901
|
}
|
|
902
902
|
internalBinaryWrite(message: GetQualificationAccessResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
903
|
-
/* resources.
|
|
903
|
+
/* resources.access.Access access = 1; */
|
|
904
904
|
if (message.access)
|
|
905
|
-
|
|
905
|
+
Access.internalBinaryWrite(message.access, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
906
906
|
let u = options.writeUnknownFields;
|
|
907
907
|
if (u !== false)
|
|
908
908
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -918,7 +918,7 @@ class SetQualificationAccessRequest$Type extends MessageType<SetQualificationAcc
|
|
|
918
918
|
constructor() {
|
|
919
919
|
super("services.qualifications.SetQualificationAccessRequest", [
|
|
920
920
|
{ no: 1, name: "qualification_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
921
|
-
{ no: 2, name: "access", kind: "message", T: () =>
|
|
921
|
+
{ no: 2, name: "access", kind: "message", T: () => Access, options: { "buf.validate.field": { required: true } } }
|
|
922
922
|
]);
|
|
923
923
|
}
|
|
924
924
|
create(value?: PartialMessage<SetQualificationAccessRequest>): SetQualificationAccessRequest {
|
|
@@ -936,8 +936,8 @@ class SetQualificationAccessRequest$Type extends MessageType<SetQualificationAcc
|
|
|
936
936
|
case /* int64 qualification_id */ 1:
|
|
937
937
|
message.qualificationId = reader.int64().toNumber();
|
|
938
938
|
break;
|
|
939
|
-
case /* resources.
|
|
940
|
-
message.access =
|
|
939
|
+
case /* resources.access.Access access */ 2:
|
|
940
|
+
message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
941
941
|
break;
|
|
942
942
|
default:
|
|
943
943
|
let u = options.readUnknownField;
|
|
@@ -954,9 +954,9 @@ class SetQualificationAccessRequest$Type extends MessageType<SetQualificationAcc
|
|
|
954
954
|
/* int64 qualification_id = 1; */
|
|
955
955
|
if (message.qualificationId !== 0)
|
|
956
956
|
writer.tag(1, WireType.Varint).int64(message.qualificationId);
|
|
957
|
-
/* resources.
|
|
957
|
+
/* resources.access.Access access = 2; */
|
|
958
958
|
if (message.access)
|
|
959
|
-
|
|
959
|
+
Access.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
960
960
|
let u = options.writeUnknownFields;
|
|
961
961
|
if (u !== false)
|
|
962
962
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1012,13 +1012,14 @@ class ListQualificationRequestsRequest$Type extends MessageType<ListQualificatio
|
|
|
1012
1012
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
1013
1013
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
1014
1014
|
{ no: 3, name: "qualification_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1015
|
-
{ no: 4, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.qualifications.RequestStatus", RequestStatus, "REQUEST_STATUS_"] },
|
|
1016
|
-
{ no: 5, name: "
|
|
1015
|
+
{ no: 4, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.qualifications.RequestStatus", RequestStatus, "REQUEST_STATUS_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
1016
|
+
{ no: 5, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "5", items: { int32: { gt: 0 } } } } } }
|
|
1017
1017
|
]);
|
|
1018
1018
|
}
|
|
1019
1019
|
create(value?: PartialMessage<ListQualificationRequestsRequest>): ListQualificationRequestsRequest {
|
|
1020
1020
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1021
1021
|
message.status = [];
|
|
1022
|
+
message.userIds = [];
|
|
1022
1023
|
if (value !== undefined)
|
|
1023
1024
|
reflectionMergePartial<ListQualificationRequestsRequest>(this, message, value);
|
|
1024
1025
|
return message;
|
|
@@ -1044,8 +1045,12 @@ class ListQualificationRequestsRequest$Type extends MessageType<ListQualificatio
|
|
|
1044
1045
|
else
|
|
1045
1046
|
message.status.push(reader.int32());
|
|
1046
1047
|
break;
|
|
1047
|
-
case /*
|
|
1048
|
-
|
|
1048
|
+
case /* repeated int32 user_ids */ 5:
|
|
1049
|
+
if (wireType === WireType.LengthDelimited)
|
|
1050
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1051
|
+
message.userIds.push(reader.int32());
|
|
1052
|
+
else
|
|
1053
|
+
message.userIds.push(reader.int32());
|
|
1049
1054
|
break;
|
|
1050
1055
|
default:
|
|
1051
1056
|
let u = options.readUnknownField;
|
|
@@ -1075,9 +1080,13 @@ class ListQualificationRequestsRequest$Type extends MessageType<ListQualificatio
|
|
|
1075
1080
|
writer.int32(message.status[i]);
|
|
1076
1081
|
writer.join();
|
|
1077
1082
|
}
|
|
1078
|
-
/*
|
|
1079
|
-
if (message.
|
|
1080
|
-
writer.tag(5, WireType.
|
|
1083
|
+
/* repeated int32 user_ids = 5; */
|
|
1084
|
+
if (message.userIds.length) {
|
|
1085
|
+
writer.tag(5, WireType.LengthDelimited).fork();
|
|
1086
|
+
for (let i = 0; i < message.userIds.length; i++)
|
|
1087
|
+
writer.int32(message.userIds[i]);
|
|
1088
|
+
writer.join();
|
|
1089
|
+
}
|
|
1081
1090
|
let u = options.writeUnknownFields;
|
|
1082
1091
|
if (u !== false)
|
|
1083
1092
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1239,7 +1248,7 @@ class DeleteQualificationReqRequest$Type extends MessageType<DeleteQualification
|
|
|
1239
1248
|
constructor() {
|
|
1240
1249
|
super("services.qualifications.DeleteQualificationReqRequest", [
|
|
1241
1250
|
{ no: 1, name: "qualification_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1242
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: {
|
|
1251
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } }
|
|
1243
1252
|
]);
|
|
1244
1253
|
}
|
|
1245
1254
|
create(value?: PartialMessage<DeleteQualificationReqRequest>): DeleteQualificationReqRequest {
|
|
@@ -1334,13 +1343,14 @@ class ListQualificationsResultsRequest$Type extends MessageType<ListQualificatio
|
|
|
1334
1343
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
1335
1344
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
1336
1345
|
{ no: 3, name: "qualification_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1337
|
-
{ no: 4, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.qualifications.ResultStatus", ResultStatus, "RESULT_STATUS_"] },
|
|
1338
|
-
{ no: 5, name: "
|
|
1346
|
+
{ no: 4, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.qualifications.ResultStatus", ResultStatus, "RESULT_STATUS_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
1347
|
+
{ no: 5, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "5", items: { int32: { gt: 0 } } } } } }
|
|
1339
1348
|
]);
|
|
1340
1349
|
}
|
|
1341
1350
|
create(value?: PartialMessage<ListQualificationsResultsRequest>): ListQualificationsResultsRequest {
|
|
1342
1351
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1343
1352
|
message.status = [];
|
|
1353
|
+
message.userIds = [];
|
|
1344
1354
|
if (value !== undefined)
|
|
1345
1355
|
reflectionMergePartial<ListQualificationsResultsRequest>(this, message, value);
|
|
1346
1356
|
return message;
|
|
@@ -1366,8 +1376,12 @@ class ListQualificationsResultsRequest$Type extends MessageType<ListQualificatio
|
|
|
1366
1376
|
else
|
|
1367
1377
|
message.status.push(reader.int32());
|
|
1368
1378
|
break;
|
|
1369
|
-
case /*
|
|
1370
|
-
|
|
1379
|
+
case /* repeated int32 user_ids */ 5:
|
|
1380
|
+
if (wireType === WireType.LengthDelimited)
|
|
1381
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1382
|
+
message.userIds.push(reader.int32());
|
|
1383
|
+
else
|
|
1384
|
+
message.userIds.push(reader.int32());
|
|
1371
1385
|
break;
|
|
1372
1386
|
default:
|
|
1373
1387
|
let u = options.readUnknownField;
|
|
@@ -1397,9 +1411,13 @@ class ListQualificationsResultsRequest$Type extends MessageType<ListQualificatio
|
|
|
1397
1411
|
writer.int32(message.status[i]);
|
|
1398
1412
|
writer.join();
|
|
1399
1413
|
}
|
|
1400
|
-
/*
|
|
1401
|
-
if (message.
|
|
1402
|
-
writer.tag(5, WireType.
|
|
1414
|
+
/* repeated int32 user_ids = 5; */
|
|
1415
|
+
if (message.userIds.length) {
|
|
1416
|
+
writer.tag(5, WireType.LengthDelimited).fork();
|
|
1417
|
+
for (let i = 0; i < message.userIds.length; i++)
|
|
1418
|
+
writer.int32(message.userIds[i]);
|
|
1419
|
+
writer.join();
|
|
1420
|
+
}
|
|
1403
1421
|
let u = options.writeUnknownFields;
|
|
1404
1422
|
if (u !== false)
|
|
1405
1423
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -12,6 +12,7 @@ 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 { Timestamp } from "../../resources/timestamp/timestamp";
|
|
15
16
|
import { UserShort } from "../../resources/users/short/user";
|
|
16
17
|
import { Account } from "../../resources/accounts/accounts";
|
|
17
18
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
@@ -154,6 +155,10 @@ export interface DeleteAccountRequest {
|
|
|
154
155
|
* @generated from protobuf message services.settings.DeleteAccountResponse
|
|
155
156
|
*/
|
|
156
157
|
export interface DeleteAccountResponse {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 1
|
|
160
|
+
*/
|
|
161
|
+
deletedAt?: Timestamp;
|
|
157
162
|
}
|
|
158
163
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
159
164
|
class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
@@ -663,7 +668,9 @@ export const DeleteAccountRequest = new DeleteAccountRequest$Type();
|
|
|
663
668
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
664
669
|
class DeleteAccountResponse$Type extends MessageType<DeleteAccountResponse> {
|
|
665
670
|
constructor() {
|
|
666
|
-
super("services.settings.DeleteAccountResponse", [
|
|
671
|
+
super("services.settings.DeleteAccountResponse", [
|
|
672
|
+
{ no: 1, name: "deleted_at", kind: "message", T: () => Timestamp }
|
|
673
|
+
]);
|
|
667
674
|
}
|
|
668
675
|
create(value?: PartialMessage<DeleteAccountResponse>): DeleteAccountResponse {
|
|
669
676
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -676,6 +683,9 @@ class DeleteAccountResponse$Type extends MessageType<DeleteAccountResponse> {
|
|
|
676
683
|
while (reader.pos < end) {
|
|
677
684
|
let [fieldNo, wireType] = reader.tag();
|
|
678
685
|
switch (fieldNo) {
|
|
686
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 1:
|
|
687
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
688
|
+
break;
|
|
679
689
|
default:
|
|
680
690
|
let u = options.readUnknownField;
|
|
681
691
|
if (u === "throw")
|
|
@@ -688,6 +698,9 @@ class DeleteAccountResponse$Type extends MessageType<DeleteAccountResponse> {
|
|
|
688
698
|
return message;
|
|
689
699
|
}
|
|
690
700
|
internalBinaryWrite(message: DeleteAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
701
|
+
/* optional resources.timestamp.Timestamp deleted_at = 1; */
|
|
702
|
+
if (message.deletedAt)
|
|
703
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
691
704
|
let u = options.writeUnknownFields;
|
|
692
705
|
if (u !== false)
|
|
693
706
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -702,9 +715,9 @@ export const DeleteAccountResponse = new DeleteAccountResponse$Type();
|
|
|
702
715
|
* @generated ServiceType for protobuf service services.settings.AccountsService
|
|
703
716
|
*/
|
|
704
717
|
export const AccountsService = new ServiceType("services.settings.AccountsService", [
|
|
705
|
-
{ name: "ListAccounts", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
706
|
-
{ name: "CreateAccount", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
707
|
-
{ name: "UpdateAccount", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
708
|
-
{ name: "DisconnectSocialLogin", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
709
|
-
{ name: "DeleteAccount", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
718
|
+
{ name: "ListAccounts", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: ListAccountsRequest, O: ListAccountsResponse },
|
|
719
|
+
{ name: "CreateAccount", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: CreateAccountRequest, O: CreateAccountResponse },
|
|
720
|
+
{ name: "UpdateAccount", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: UpdateAccountRequest, O: UpdateAccountResponse },
|
|
721
|
+
{ name: "DisconnectSocialLogin", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: DisconnectSocialLoginRequest, O: DisconnectSocialLoginResponse },
|
|
722
|
+
{ name: "DeleteAccount", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: DeleteAccountRequest, O: DeleteAccountResponse }
|
|
710
723
|
]);
|
|
@@ -225,6 +225,6 @@ export const UpdateAppConfigResponse = new UpdateAppConfigResponse$Type();
|
|
|
225
225
|
* @generated ServiceType for protobuf service services.settings.ConfigService
|
|
226
226
|
*/
|
|
227
227
|
export const ConfigService = new ServiceType("services.settings.ConfigService", [
|
|
228
|
-
{ name: "GetAppConfig", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
229
|
-
{ name: "UpdateAppConfig", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
228
|
+
{ name: "GetAppConfig", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: GetAppConfigRequest, O: GetAppConfigResponse },
|
|
229
|
+
{ name: "UpdateAppConfig", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: UpdateAppConfigRequest, O: UpdateAppConfigResponse }
|
|
230
230
|
]);
|
|
@@ -228,6 +228,6 @@ export const RunCronjobResponse = new RunCronjobResponse$Type();
|
|
|
228
228
|
* @generated ServiceType for protobuf service services.settings.CronService
|
|
229
229
|
*/
|
|
230
230
|
export const CronService = new ServiceType("services.settings.CronService", [
|
|
231
|
-
{ name: "ListCronjobs", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
232
|
-
{ name: "RunCronjob", options: { "codegen.perms.perms": { enabled: true, name: "
|
|
231
|
+
{ name: "ListCronjobs", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: ListCronjobsRequest, O: ListCronjobsResponse },
|
|
232
|
+
{ name: "RunCronjob", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: RunCronjobRequest, O: RunCronjobResponse }
|
|
233
233
|
]);
|
|
@@ -5,21 +5,31 @@
|
|
|
5
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
6
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
7
|
import { LawsService } from "./laws";
|
|
8
|
+
import type { ReorderLawsResponse } from "./laws";
|
|
9
|
+
import type { ReorderLawsRequest } from "./laws";
|
|
8
10
|
import type { DeleteLawResponse } from "./laws";
|
|
9
11
|
import type { DeleteLawRequest } from "./laws";
|
|
10
12
|
import type { CreateOrUpdateLawResponse } from "./laws";
|
|
11
13
|
import type { CreateOrUpdateLawRequest } from "./laws";
|
|
14
|
+
import type { ReorderLawBooksResponse } from "./laws";
|
|
15
|
+
import type { ReorderLawBooksRequest } from "./laws";
|
|
12
16
|
import type { DeleteLawBookResponse } from "./laws";
|
|
13
17
|
import type { DeleteLawBookRequest } from "./laws";
|
|
14
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
15
18
|
import type { CreateOrUpdateLawBookResponse } from "./laws";
|
|
16
19
|
import type { CreateOrUpdateLawBookRequest } from "./laws";
|
|
20
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
21
|
+
import type { ListLawBooksResponse } from "./laws";
|
|
22
|
+
import type { ListLawBooksRequest } from "./laws";
|
|
17
23
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
18
24
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
19
25
|
/**
|
|
20
26
|
* @generated from protobuf service services.settings.LawsService
|
|
21
27
|
*/
|
|
22
28
|
export interface ILawsServiceClient {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf rpc: ListLawBooks
|
|
31
|
+
*/
|
|
32
|
+
listLawBooks(input: ListLawBooksRequest, options?: RpcOptions): UnaryCall<ListLawBooksRequest, ListLawBooksResponse>;
|
|
23
33
|
/**
|
|
24
34
|
* @generated from protobuf rpc: CreateOrUpdateLawBook
|
|
25
35
|
*/
|
|
@@ -28,6 +38,10 @@ export interface ILawsServiceClient {
|
|
|
28
38
|
* @generated from protobuf rpc: DeleteLawBook
|
|
29
39
|
*/
|
|
30
40
|
deleteLawBook(input: DeleteLawBookRequest, options?: RpcOptions): UnaryCall<DeleteLawBookRequest, DeleteLawBookResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf rpc: ReorderLawBooks
|
|
43
|
+
*/
|
|
44
|
+
reorderLawBooks(input: ReorderLawBooksRequest, options?: RpcOptions): UnaryCall<ReorderLawBooksRequest, ReorderLawBooksResponse>;
|
|
31
45
|
/**
|
|
32
46
|
* @generated from protobuf rpc: CreateOrUpdateLaw
|
|
33
47
|
*/
|
|
@@ -36,6 +50,10 @@ export interface ILawsServiceClient {
|
|
|
36
50
|
* @generated from protobuf rpc: DeleteLaw
|
|
37
51
|
*/
|
|
38
52
|
deleteLaw(input: DeleteLawRequest, options?: RpcOptions): UnaryCall<DeleteLawRequest, DeleteLawResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf rpc: ReorderLaws
|
|
55
|
+
*/
|
|
56
|
+
reorderLaws(input: ReorderLawsRequest, options?: RpcOptions): UnaryCall<ReorderLawsRequest, ReorderLawsResponse>;
|
|
39
57
|
}
|
|
40
58
|
/**
|
|
41
59
|
* @generated from protobuf service services.settings.LawsService
|
|
@@ -46,32 +64,53 @@ export class LawsServiceClient implements ILawsServiceClient, ServiceInfo {
|
|
|
46
64
|
options = LawsService.options;
|
|
47
65
|
constructor(private readonly _transport: RpcTransport) {
|
|
48
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf rpc: ListLawBooks
|
|
69
|
+
*/
|
|
70
|
+
listLawBooks(input: ListLawBooksRequest, options?: RpcOptions): UnaryCall<ListLawBooksRequest, ListLawBooksResponse> {
|
|
71
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
72
|
+
return stackIntercept<ListLawBooksRequest, ListLawBooksResponse>("unary", this._transport, method, opt, input);
|
|
73
|
+
}
|
|
49
74
|
/**
|
|
50
75
|
* @generated from protobuf rpc: CreateOrUpdateLawBook
|
|
51
76
|
*/
|
|
52
77
|
createOrUpdateLawBook(input: CreateOrUpdateLawBookRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLawBookRequest, CreateOrUpdateLawBookResponse> {
|
|
53
|
-
const method = this.methods[
|
|
78
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
54
79
|
return stackIntercept<CreateOrUpdateLawBookRequest, CreateOrUpdateLawBookResponse>("unary", this._transport, method, opt, input);
|
|
55
80
|
}
|
|
56
81
|
/**
|
|
57
82
|
* @generated from protobuf rpc: DeleteLawBook
|
|
58
83
|
*/
|
|
59
84
|
deleteLawBook(input: DeleteLawBookRequest, options?: RpcOptions): UnaryCall<DeleteLawBookRequest, DeleteLawBookResponse> {
|
|
60
|
-
const method = this.methods[
|
|
85
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
61
86
|
return stackIntercept<DeleteLawBookRequest, DeleteLawBookResponse>("unary", this._transport, method, opt, input);
|
|
62
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf rpc: ReorderLawBooks
|
|
90
|
+
*/
|
|
91
|
+
reorderLawBooks(input: ReorderLawBooksRequest, options?: RpcOptions): UnaryCall<ReorderLawBooksRequest, ReorderLawBooksResponse> {
|
|
92
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
93
|
+
return stackIntercept<ReorderLawBooksRequest, ReorderLawBooksResponse>("unary", this._transport, method, opt, input);
|
|
94
|
+
}
|
|
63
95
|
/**
|
|
64
96
|
* @generated from protobuf rpc: CreateOrUpdateLaw
|
|
65
97
|
*/
|
|
66
98
|
createOrUpdateLaw(input: CreateOrUpdateLawRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLawRequest, CreateOrUpdateLawResponse> {
|
|
67
|
-
const method = this.methods[
|
|
99
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
68
100
|
return stackIntercept<CreateOrUpdateLawRequest, CreateOrUpdateLawResponse>("unary", this._transport, method, opt, input);
|
|
69
101
|
}
|
|
70
102
|
/**
|
|
71
103
|
* @generated from protobuf rpc: DeleteLaw
|
|
72
104
|
*/
|
|
73
105
|
deleteLaw(input: DeleteLawRequest, options?: RpcOptions): UnaryCall<DeleteLawRequest, DeleteLawResponse> {
|
|
74
|
-
const method = this.methods[
|
|
106
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
75
107
|
return stackIntercept<DeleteLawRequest, DeleteLawResponse>("unary", this._transport, method, opt, input);
|
|
76
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf rpc: ReorderLaws
|
|
111
|
+
*/
|
|
112
|
+
reorderLaws(input: ReorderLawsRequest, options?: RpcOptions): UnaryCall<ReorderLawsRequest, ReorderLawsResponse> {
|
|
113
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
114
|
+
return stackIntercept<ReorderLawsRequest, ReorderLawsResponse>("unary", this._transport, method, opt, input);
|
|
115
|
+
}
|
|
77
116
|
}
|