@fivenet-app/gen 2026.4.0 → 2026.5.1

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.
Files changed (60) hide show
  1. package/clients.ts +60 -0
  2. package/codegen/perms/perms.ts +64 -31
  3. package/package.json +1 -1
  4. package/perms.ts +57 -41
  5. package/resources/accounts/accounts.ts +41 -30
  6. package/resources/audit/audit.ts +5 -1
  7. package/resources/citizens/labels/access.ts +216 -0
  8. package/resources/citizens/labels/labels.ts +8 -214
  9. package/resources/jobs/colleagues/activity/activity.ts +1 -1
  10. package/resources/laws/laws.ts +72 -50
  11. package/resources/permissions/attributes/attributes.ts +51 -39
  12. package/resources/permissions/permissions/permissions.ts +46 -34
  13. package/resources/sync/data/data.ts +9 -9
  14. package/resources/users/activity/activity.ts +69 -76
  15. package/services/auth/auth.ts +1 -1
  16. package/services/calendar/calendar.client.ts +2 -106
  17. package/services/calendar/calendar.ts +0 -1018
  18. package/services/calendar/entries.client.ts +129 -0
  19. package/services/calendar/entries.ts +1040 -0
  20. package/services/centrum/centrum.client.ts +23 -244
  21. package/services/centrum/centrum.ts +246 -2383
  22. package/services/centrum/dispatches.client.ts +155 -0
  23. package/services/centrum/dispatches.ts +1305 -0
  24. package/services/centrum/units.client.ts +116 -0
  25. package/services/centrum/units.ts +876 -0
  26. package/services/citizens/labels.client.ts +26 -0
  27. package/services/citizens/labels.ts +283 -4
  28. package/services/completor/completor.client.ts +0 -13
  29. package/services/completor/completor.ts +2 -116
  30. package/services/documents/approval.ts +5 -5
  31. package/services/documents/categories.client.ts +64 -0
  32. package/services/documents/categories.ts +331 -0
  33. package/services/documents/collab.ts +1 -1
  34. package/services/documents/comments.client.ts +77 -0
  35. package/services/documents/comments.ts +479 -0
  36. package/services/documents/documents.client.ts +26 -182
  37. package/services/documents/documents.ts +335 -1682
  38. package/services/documents/templates.client.ts +90 -0
  39. package/services/documents/templates.ts +591 -0
  40. package/services/jobs/colleagues.client.ts +129 -0
  41. package/services/jobs/colleagues.ts +1129 -0
  42. package/services/jobs/jobs.client.ts +3 -107
  43. package/services/jobs/jobs.ts +1 -1113
  44. package/services/mailer/mailer.client.ts +0 -208
  45. package/services/mailer/mailer.ts +1 -2010
  46. package/services/mailer/settings.client.ts +103 -0
  47. package/services/mailer/settings.ts +708 -0
  48. package/services/mailer/thread.client.ts +155 -0
  49. package/services/mailer/thread.ts +1343 -0
  50. package/services/qualifications/exam.client.ts +77 -0
  51. package/services/qualifications/exam.ts +609 -0
  52. package/services/qualifications/qualifications.client.ts +1 -53
  53. package/services/qualifications/qualifications.ts +0 -591
  54. package/services/settings/accounts.ts +14 -1
  55. package/services/settings/laws.client.ts +18 -5
  56. package/services/settings/laws.ts +128 -3
  57. package/services/sync/sync.client.ts +4 -4
  58. package/services/sync/sync.ts +23 -0
  59. package/services/wiki/collab.ts +1 -1
  60. package/svcs.ts +156 -68
@@ -0,0 +1,116 @@
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/centrum/units.proto" (package "services.centrum", 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 { UnitsService } from "./units";
8
+ import type { UpdateUnitStatusResponse } from "./units";
9
+ import type { UpdateUnitStatusRequest } from "./units";
10
+ import type { AssignUnitResponse } from "./units";
11
+ import type { AssignUnitRequest } from "./units";
12
+ import type { DeleteUnitResponse } from "./units";
13
+ import type { DeleteUnitRequest } from "./units";
14
+ import type { CreateOrUpdateUnitResponse } from "./units";
15
+ import type { CreateOrUpdateUnitRequest } from "./units";
16
+ import type { ListUnitActivityResponse } from "./units";
17
+ import type { ListUnitActivityRequest } from "./units";
18
+ import type { ListUnitsResponse } from "./units";
19
+ import type { ListUnitsRequest } from "./units";
20
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
21
+ import type { JoinUnitResponse } from "./units";
22
+ import type { JoinUnitRequest } from "./units";
23
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
24
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
25
+ /**
26
+ * @generated from protobuf service services.centrum.UnitsService
27
+ */
28
+ export interface IUnitsServiceClient {
29
+ /**
30
+ * @generated from protobuf rpc: JoinUnit
31
+ */
32
+ joinUnit(input: JoinUnitRequest, options?: RpcOptions): UnaryCall<JoinUnitRequest, JoinUnitResponse>;
33
+ /**
34
+ * @generated from protobuf rpc: ListUnits
35
+ */
36
+ listUnits(input: ListUnitsRequest, options?: RpcOptions): UnaryCall<ListUnitsRequest, ListUnitsResponse>;
37
+ /**
38
+ * @generated from protobuf rpc: ListUnitActivity
39
+ */
40
+ listUnitActivity(input: ListUnitActivityRequest, options?: RpcOptions): UnaryCall<ListUnitActivityRequest, ListUnitActivityResponse>;
41
+ /**
42
+ * @generated from protobuf rpc: CreateOrUpdateUnit
43
+ */
44
+ createOrUpdateUnit(input: CreateOrUpdateUnitRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateUnitRequest, CreateOrUpdateUnitResponse>;
45
+ /**
46
+ * @generated from protobuf rpc: DeleteUnit
47
+ */
48
+ deleteUnit(input: DeleteUnitRequest, options?: RpcOptions): UnaryCall<DeleteUnitRequest, DeleteUnitResponse>;
49
+ /**
50
+ * @generated from protobuf rpc: AssignUnit
51
+ */
52
+ assignUnit(input: AssignUnitRequest, options?: RpcOptions): UnaryCall<AssignUnitRequest, AssignUnitResponse>;
53
+ /**
54
+ * @generated from protobuf rpc: UpdateUnitStatus
55
+ */
56
+ updateUnitStatus(input: UpdateUnitStatusRequest, options?: RpcOptions): UnaryCall<UpdateUnitStatusRequest, UpdateUnitStatusResponse>;
57
+ }
58
+ /**
59
+ * @generated from protobuf service services.centrum.UnitsService
60
+ */
61
+ export class UnitsServiceClient implements IUnitsServiceClient, ServiceInfo {
62
+ typeName = UnitsService.typeName;
63
+ methods = UnitsService.methods;
64
+ options = UnitsService.options;
65
+ constructor(private readonly _transport: RpcTransport) {
66
+ }
67
+ /**
68
+ * @generated from protobuf rpc: JoinUnit
69
+ */
70
+ joinUnit(input: JoinUnitRequest, options?: RpcOptions): UnaryCall<JoinUnitRequest, JoinUnitResponse> {
71
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
72
+ return stackIntercept<JoinUnitRequest, JoinUnitResponse>("unary", this._transport, method, opt, input);
73
+ }
74
+ /**
75
+ * @generated from protobuf rpc: ListUnits
76
+ */
77
+ listUnits(input: ListUnitsRequest, options?: RpcOptions): UnaryCall<ListUnitsRequest, ListUnitsResponse> {
78
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
79
+ return stackIntercept<ListUnitsRequest, ListUnitsResponse>("unary", this._transport, method, opt, input);
80
+ }
81
+ /**
82
+ * @generated from protobuf rpc: ListUnitActivity
83
+ */
84
+ listUnitActivity(input: ListUnitActivityRequest, options?: RpcOptions): UnaryCall<ListUnitActivityRequest, ListUnitActivityResponse> {
85
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
86
+ return stackIntercept<ListUnitActivityRequest, ListUnitActivityResponse>("unary", this._transport, method, opt, input);
87
+ }
88
+ /**
89
+ * @generated from protobuf rpc: CreateOrUpdateUnit
90
+ */
91
+ createOrUpdateUnit(input: CreateOrUpdateUnitRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateUnitRequest, CreateOrUpdateUnitResponse> {
92
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
93
+ return stackIntercept<CreateOrUpdateUnitRequest, CreateOrUpdateUnitResponse>("unary", this._transport, method, opt, input);
94
+ }
95
+ /**
96
+ * @generated from protobuf rpc: DeleteUnit
97
+ */
98
+ deleteUnit(input: DeleteUnitRequest, options?: RpcOptions): UnaryCall<DeleteUnitRequest, DeleteUnitResponse> {
99
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
100
+ return stackIntercept<DeleteUnitRequest, DeleteUnitResponse>("unary", this._transport, method, opt, input);
101
+ }
102
+ /**
103
+ * @generated from protobuf rpc: AssignUnit
104
+ */
105
+ assignUnit(input: AssignUnitRequest, options?: RpcOptions): UnaryCall<AssignUnitRequest, AssignUnitResponse> {
106
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
107
+ return stackIntercept<AssignUnitRequest, AssignUnitResponse>("unary", this._transport, method, opt, input);
108
+ }
109
+ /**
110
+ * @generated from protobuf rpc: UpdateUnitStatus
111
+ */
112
+ updateUnitStatus(input: UpdateUnitStatusRequest, options?: RpcOptions): UnaryCall<UpdateUnitStatusRequest, UpdateUnitStatusResponse> {
113
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
114
+ return stackIntercept<UpdateUnitStatusRequest, UpdateUnitStatusResponse>("unary", this._transport, method, opt, input);
115
+ }
116
+ }