@fivenet-app/gen 2026.3.0 → 2026.5.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 +66 -6
- package/codegen/perms/perms.ts +104 -1
- package/package.json +1 -1
- package/perms.ts +16 -5
- package/resources/centrum/settings/settings.ts +1 -1
- package/resources/centrum/units/units.ts +1 -1
- package/resources/citizens/labels/access.ts +216 -0
- package/resources/citizens/labels/labels.ts +320 -0
- package/resources/{users → citizens}/licenses/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +32 -289
- package/resources/cron/cron.ts +2 -2
- package/resources/documents/access/access.ts +0 -23
- package/resources/documents/category/category.ts +1 -1
- package/resources/documents/templates/templates.ts +2 -2
- package/resources/jobs/labels/labels.ts +16 -5
- package/resources/livemap/markers/marker_marker.ts +1 -1
- package/resources/settings/banner.ts +1 -1
- package/resources/settings/config.ts +16 -14
- package/resources/sync/data/data.ts +9 -9
- package/resources/users/activity/activity.ts +132 -12
- package/resources/users/props/props.ts +4 -4
- package/resources/users/user.ts +4 -4
- package/services/calendar/calendar.client.ts +2 -106
- package/services/calendar/calendar.ts +0 -1018
- package/services/calendar/entries.client.ts +129 -0
- package/services/calendar/entries.ts +1040 -0
- package/services/centrum/centrum.client.ts +23 -244
- package/services/centrum/centrum.ts +246 -2383
- package/services/centrum/dispatches.client.ts +155 -0
- package/services/centrum/dispatches.ts +1305 -0
- package/services/centrum/units.client.ts +116 -0
- package/services/centrum/units.ts +876 -0
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +1 -115
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +5 -5
- package/services/documents/categories.client.ts +64 -0
- package/services/documents/categories.ts +331 -0
- package/services/documents/comments.client.ts +77 -0
- package/services/documents/comments.ts +479 -0
- package/services/documents/documents.client.ts +26 -182
- package/services/documents/documents.ts +335 -1682
- package/services/documents/templates.client.ts +90 -0
- package/services/documents/templates.ts +591 -0
- package/services/jobs/colleagues.client.ts +129 -0
- package/services/jobs/colleagues.ts +1129 -0
- package/services/jobs/jobs.client.ts +3 -107
- package/services/jobs/jobs.ts +1 -1113
- package/services/mailer/mailer.client.ts +0 -208
- package/services/mailer/mailer.ts +1 -2010
- package/services/mailer/settings.client.ts +103 -0
- package/services/mailer/settings.ts +708 -0
- package/services/mailer/thread.client.ts +155 -0
- package/services/mailer/thread.ts +1343 -0
- package/services/qualifications/exam.client.ts +77 -0
- package/services/qualifications/exam.ts +609 -0
- package/services/qualifications/qualifications.client.ts +1 -53
- package/services/qualifications/qualifications.ts +0 -591
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +114 -1
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1463 -383
- package/svcs.ts +182 -94
- package/resources/sync/data/v2/data.ts +0 -220
- package/resources/users/labels/labels.ts +0 -160
- package/services/sync/v2/sync.client.ts +0 -331
- package/services/sync/v2/sync.ts +0 -1766
|
@@ -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,7 +14,6 @@ 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 { Label } from "../../resources/users/labels/labels";
|
|
18
17
|
import { UserProps } from "../../resources/users/props/props";
|
|
19
18
|
import { UserActivity } from "../../resources/users/activity/activity";
|
|
20
19
|
import { UserActivityType } from "../../resources/users/activity/activity";
|
|
@@ -192,24 +191,6 @@ export interface DeleteMugshotRequest {
|
|
|
192
191
|
*/
|
|
193
192
|
export interface DeleteMugshotResponse {
|
|
194
193
|
}
|
|
195
|
-
/**
|
|
196
|
-
* @generated from protobuf message services.citizens.ManageLabelsRequest
|
|
197
|
-
*/
|
|
198
|
-
export interface ManageLabelsRequest {
|
|
199
|
-
/**
|
|
200
|
-
* @generated from protobuf field: repeated resources.users.labels.Label labels = 1
|
|
201
|
-
*/
|
|
202
|
-
labels: Label[];
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* @generated from protobuf message services.citizens.ManageLabelsResponse
|
|
206
|
-
*/
|
|
207
|
-
export interface ManageLabelsResponse {
|
|
208
|
-
/**
|
|
209
|
-
* @generated from protobuf field: repeated resources.users.labels.Label labels = 1
|
|
210
|
-
*/
|
|
211
|
-
labels: Label[];
|
|
212
|
-
}
|
|
213
194
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
214
195
|
class ListCitizensRequest$Type extends MessageType<ListCitizensRequest> {
|
|
215
196
|
constructor() {
|
|
@@ -874,100 +855,6 @@ class DeleteMugshotResponse$Type extends MessageType<DeleteMugshotResponse> {
|
|
|
874
855
|
* @generated MessageType for protobuf message services.citizens.DeleteMugshotResponse
|
|
875
856
|
*/
|
|
876
857
|
export const DeleteMugshotResponse = new DeleteMugshotResponse$Type();
|
|
877
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
878
|
-
class ManageLabelsRequest$Type extends MessageType<ManageLabelsRequest> {
|
|
879
|
-
constructor() {
|
|
880
|
-
super("services.citizens.ManageLabelsRequest", [
|
|
881
|
-
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label, options: { "buf.validate.field": { repeated: { maxItems: "50" } } } }
|
|
882
|
-
]);
|
|
883
|
-
}
|
|
884
|
-
create(value?: PartialMessage<ManageLabelsRequest>): ManageLabelsRequest {
|
|
885
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
886
|
-
message.labels = [];
|
|
887
|
-
if (value !== undefined)
|
|
888
|
-
reflectionMergePartial<ManageLabelsRequest>(this, message, value);
|
|
889
|
-
return message;
|
|
890
|
-
}
|
|
891
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ManageLabelsRequest): ManageLabelsRequest {
|
|
892
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
893
|
-
while (reader.pos < end) {
|
|
894
|
-
let [fieldNo, wireType] = reader.tag();
|
|
895
|
-
switch (fieldNo) {
|
|
896
|
-
case /* repeated resources.users.labels.Label labels */ 1:
|
|
897
|
-
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
898
|
-
break;
|
|
899
|
-
default:
|
|
900
|
-
let u = options.readUnknownField;
|
|
901
|
-
if (u === "throw")
|
|
902
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
903
|
-
let d = reader.skip(wireType);
|
|
904
|
-
if (u !== false)
|
|
905
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
return message;
|
|
909
|
-
}
|
|
910
|
-
internalBinaryWrite(message: ManageLabelsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
911
|
-
/* repeated resources.users.labels.Label labels = 1; */
|
|
912
|
-
for (let i = 0; i < message.labels.length; i++)
|
|
913
|
-
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
914
|
-
let u = options.writeUnknownFields;
|
|
915
|
-
if (u !== false)
|
|
916
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
917
|
-
return writer;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* @generated MessageType for protobuf message services.citizens.ManageLabelsRequest
|
|
922
|
-
*/
|
|
923
|
-
export const ManageLabelsRequest = new ManageLabelsRequest$Type();
|
|
924
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
925
|
-
class ManageLabelsResponse$Type extends MessageType<ManageLabelsResponse> {
|
|
926
|
-
constructor() {
|
|
927
|
-
super("services.citizens.ManageLabelsResponse", [
|
|
928
|
-
{ no: 1, name: "labels", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Label }
|
|
929
|
-
]);
|
|
930
|
-
}
|
|
931
|
-
create(value?: PartialMessage<ManageLabelsResponse>): ManageLabelsResponse {
|
|
932
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
933
|
-
message.labels = [];
|
|
934
|
-
if (value !== undefined)
|
|
935
|
-
reflectionMergePartial<ManageLabelsResponse>(this, message, value);
|
|
936
|
-
return message;
|
|
937
|
-
}
|
|
938
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ManageLabelsResponse): ManageLabelsResponse {
|
|
939
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
940
|
-
while (reader.pos < end) {
|
|
941
|
-
let [fieldNo, wireType] = reader.tag();
|
|
942
|
-
switch (fieldNo) {
|
|
943
|
-
case /* repeated resources.users.labels.Label labels */ 1:
|
|
944
|
-
message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
|
|
945
|
-
break;
|
|
946
|
-
default:
|
|
947
|
-
let u = options.readUnknownField;
|
|
948
|
-
if (u === "throw")
|
|
949
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
950
|
-
let d = reader.skip(wireType);
|
|
951
|
-
if (u !== false)
|
|
952
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
return message;
|
|
956
|
-
}
|
|
957
|
-
internalBinaryWrite(message: ManageLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
958
|
-
/* repeated resources.users.labels.Label labels = 1; */
|
|
959
|
-
for (let i = 0; i < message.labels.length; i++)
|
|
960
|
-
Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
961
|
-
let u = options.writeUnknownFields;
|
|
962
|
-
if (u !== false)
|
|
963
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
964
|
-
return writer;
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
/**
|
|
968
|
-
* @generated MessageType for protobuf message services.citizens.ManageLabelsResponse
|
|
969
|
-
*/
|
|
970
|
-
export const ManageLabelsResponse = new ManageLabelsResponse$Type();
|
|
971
858
|
/**
|
|
972
859
|
* @generated ServiceType for protobuf service services.citizens.CitizensService
|
|
973
860
|
*/
|
|
@@ -979,6 +866,5 @@ export const CitizensService = new ServiceType("services.citizens.CitizensServic
|
|
|
979
866
|
{ name: "UploadAvatar", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: UploadFileRequest, O: UploadFileResponse },
|
|
980
867
|
{ name: "DeleteAvatar", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: DeleteAvatarRequest, O: DeleteAvatarResponse },
|
|
981
868
|
{ name: "UploadMugshot", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "SetUserProps" } }, I: UploadFileRequest, O: UploadFileResponse },
|
|
982
|
-
{ name: "DeleteMugshot", options: { "codegen.perms.perms": { enabled: true, name: "SetUserProps" } }, I: DeleteMugshotRequest, O: DeleteMugshotResponse }
|
|
983
|
-
{ name: "ManageLabels", options: { "codegen.perms.perms": { enabled: true } }, I: ManageLabelsRequest, O: ManageLabelsResponse }
|
|
869
|
+
{ name: "DeleteMugshot", options: { "codegen.perms.perms": { enabled: true, name: "SetUserProps" } }, I: DeleteMugshotRequest, O: DeleteMugshotResponse }
|
|
984
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
|
+
}
|