@fivenet-app/gen 2025.9.1 → 2026.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +186 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +140 -8
  7. package/resources/accounts/accounts.ts +98 -31
  8. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
  9. package/resources/audit/audit.ts +156 -38
  10. package/resources/calendar/{access.ts → access/access.ts} +30 -30
  11. package/resources/calendar/calendar.ts +17 -477
  12. package/resources/calendar/entries/entries.ts +474 -0
  13. package/resources/centrum/{access.ts → access/access.ts} +22 -22
  14. package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
  15. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
  16. package/resources/centrum/joblist.ts +136 -0
  17. package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
  18. package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
  19. package/resources/centrum/{units.ts → units/units.ts} +131 -51
  20. package/resources/citizens/labels/labels.ts +526 -0
  21. package/resources/{users → citizens/licenses}/licenses.ts +17 -17
  22. package/resources/clientconfig/clientconfig.ts +126 -258
  23. package/resources/collab/collab.ts +4 -16
  24. package/resources/common/content/content.ts +108 -85
  25. package/resources/common/content/diff_activity.ts +267 -0
  26. package/resources/common/i18n.ts +2 -2
  27. package/resources/{common/cron → cron}/cron.ts +43 -43
  28. package/resources/documents/{access.ts → access/access.ts} +29 -52
  29. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  30. package/resources/documents/approval/approval.ts +945 -0
  31. package/resources/documents/{category.ts → category/category.ts} +7 -7
  32. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  33. package/resources/documents/data/data.ts +303 -0
  34. package/resources/documents/documents.ts +282 -667
  35. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  36. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  37. package/resources/documents/references/references.ts +187 -0
  38. package/resources/documents/relations/relations.ts +184 -0
  39. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  40. package/resources/documents/stamps/stamp.ts +355 -0
  41. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  42. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  43. package/resources/file/filestore.ts +1 -1
  44. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  45. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  46. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  47. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  48. package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
  49. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  50. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  51. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  52. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  53. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  54. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  55. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  56. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  57. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  58. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  59. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  60. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  61. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  62. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  63. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  64. package/resources/notifications/notifications.ts +4 -4
  65. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  66. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  67. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  68. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  69. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  70. package/resources/qualifications/qualifications.ts +51 -179
  71. package/resources/settings/banner.ts +3 -3
  72. package/resources/settings/config.ts +527 -25
  73. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  74. package/resources/settings/perms.ts +14 -14
  75. package/resources/stats/stats.ts +379 -0
  76. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  77. package/resources/sync/{data.ts → data/data.ts} +405 -59
  78. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  79. package/resources/users/{activity.ts → activity/activity.ts} +242 -101
  80. package/resources/users/{props.ts → props/props.ts} +91 -69
  81. package/resources/users/short/user.ts +184 -0
  82. package/resources/users/{users.ts → user.ts} +266 -195
  83. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  84. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  85. package/resources/vehicles/vehicles.ts +20 -8
  86. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  87. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  88. package/resources/wiki/page.ts +39 -15
  89. package/services/auth/auth.client.ts +23 -10
  90. package/services/auth/auth.ts +445 -262
  91. package/services/calendar/calendar.ts +56 -34
  92. package/services/centrum/centrum.ts +127 -127
  93. package/services/citizens/citizens.client.ts +0 -13
  94. package/services/citizens/citizens.ts +44 -134
  95. package/services/citizens/labels.client.ts +77 -0
  96. package/services/citizens/labels.ts +455 -0
  97. package/services/completor/completor.ts +36 -16
  98. package/services/documents/approval.client.ts +188 -0
  99. package/services/documents/approval.ts +1776 -0
  100. package/services/documents/documents.ts +164 -186
  101. package/services/documents/forms.client.ts +51 -0
  102. package/services/documents/forms.ts +232 -0
  103. package/services/documents/stamps.client.ts +77 -0
  104. package/services/documents/stamps.ts +481 -0
  105. package/services/documents/stats.client.ts +38 -0
  106. package/services/documents/stats.ts +245 -0
  107. package/services/jobs/conduct.client.ts +30 -3
  108. package/services/jobs/conduct.ts +159 -33
  109. package/services/jobs/jobs.ts +43 -43
  110. package/services/jobs/stats.client.ts +38 -0
  111. package/services/jobs/stats.ts +207 -0
  112. package/services/jobs/timeclock.ts +39 -39
  113. package/services/livemap/livemap.ts +18 -18
  114. package/services/mailer/mailer.ts +78 -78
  115. package/services/notifications/notifications.ts +35 -35
  116. package/services/qualifications/qualifications.ts +81 -46
  117. package/services/settings/accounts.client.ts +23 -10
  118. package/services/settings/accounts.ts +191 -30
  119. package/services/settings/cron.client.ts +13 -0
  120. package/services/settings/cron.ts +118 -5
  121. package/services/settings/laws.ts +1 -1
  122. package/services/settings/settings.ts +73 -52
  123. package/services/settings/system.client.ts +13 -0
  124. package/services/settings/system.ts +115 -15
  125. package/services/stats/stats.client.ts +7 -7
  126. package/services/stats/stats.ts +24 -24
  127. package/services/sync/sync.client.ts +271 -37
  128. package/services/sync/sync.ts +1525 -421
  129. package/services/vehicles/vehicles.ts +8 -8
  130. package/services/wiki/wiki.ts +8 -8
  131. package/svcs.ts +100 -6
  132. package/resources/centrum/attributes.ts +0 -183
  133. package/resources/documents/signoff.ts +0 -55
  134. package/resources/users/labels.ts +0 -160
@@ -0,0 +1,188 @@
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/documents/approval.proto" (package "services.documents", 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 { ApprovalService } from "./approval";
8
+ import type { RecomputeApprovalPolicyCountersResponse } from "./approval";
9
+ import type { RecomputeApprovalPolicyCountersRequest } from "./approval";
10
+ import type { ReopenApprovalTaskResponse } from "./approval";
11
+ import type { ReopenApprovalTaskRequest } from "./approval";
12
+ import type { DecideApprovalResponse } from "./approval";
13
+ import type { DecideApprovalRequest } from "./approval";
14
+ import type { RevokeApprovalResponse } from "./approval";
15
+ import type { RevokeApprovalRequest } from "./approval";
16
+ import type { ListApprovalsResponse } from "./approval";
17
+ import type { ListApprovalsRequest } from "./approval";
18
+ import type { DeleteApprovalTasksResponse } from "./approval";
19
+ import type { DeleteApprovalTasksRequest } from "./approval";
20
+ import type { UpsertApprovalTasksResponse } from "./approval";
21
+ import type { UpsertApprovalTasksRequest } from "./approval";
22
+ import type { ListApprovalTasksResponse } from "./approval";
23
+ import type { ListApprovalTasksRequest } from "./approval";
24
+ import type { UpsertApprovalPolicyResponse } from "./approval";
25
+ import type { UpsertApprovalPolicyRequest } from "./approval";
26
+ import type { ListApprovalPoliciesResponse } from "./approval";
27
+ import type { ListApprovalPoliciesRequest } from "./approval";
28
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
29
+ import type { ListApprovalTasksInboxResponse } from "./approval";
30
+ import type { ListApprovalTasksInboxRequest } from "./approval";
31
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
32
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
33
+ /**
34
+ * @generated from protobuf service services.documents.ApprovalService
35
+ */
36
+ export interface IApprovalServiceClient {
37
+ /**
38
+ * Inbox (for tasks assigned to user)
39
+ *
40
+ * @generated from protobuf rpc: ListApprovalTasksInbox
41
+ */
42
+ listApprovalTasksInbox(input: ListApprovalTasksInboxRequest, options?: RpcOptions): UnaryCall<ListApprovalTasksInboxRequest, ListApprovalTasksInboxResponse>;
43
+ /**
44
+ * Policies
45
+ *
46
+ * @generated from protobuf rpc: ListApprovalPolicies
47
+ */
48
+ listApprovalPolicies(input: ListApprovalPoliciesRequest, options?: RpcOptions): UnaryCall<ListApprovalPoliciesRequest, ListApprovalPoliciesResponse>;
49
+ /**
50
+ * @generated from protobuf rpc: UpsertApprovalPolicy
51
+ */
52
+ upsertApprovalPolicy(input: UpsertApprovalPolicyRequest, options?: RpcOptions): UnaryCall<UpsertApprovalPolicyRequest, UpsertApprovalPolicyResponse>;
53
+ /**
54
+ * Tasks
55
+ *
56
+ * @generated from protobuf rpc: ListApprovalTasks
57
+ */
58
+ listApprovalTasks(input: ListApprovalTasksRequest, options?: RpcOptions): UnaryCall<ListApprovalTasksRequest, ListApprovalTasksResponse>;
59
+ /**
60
+ * @generated from protobuf rpc: UpsertApprovalTasks
61
+ */
62
+ upsertApprovalTasks(input: UpsertApprovalTasksRequest, options?: RpcOptions): UnaryCall<UpsertApprovalTasksRequest, UpsertApprovalTasksResponse>;
63
+ /**
64
+ * @generated from protobuf rpc: DeleteApprovalTasks
65
+ */
66
+ deleteApprovalTasks(input: DeleteApprovalTasksRequest, options?: RpcOptions): UnaryCall<DeleteApprovalTasksRequest, DeleteApprovalTasksResponse>;
67
+ /**
68
+ * Approval
69
+ *
70
+ * @generated from protobuf rpc: ListApprovals
71
+ */
72
+ listApprovals(input: ListApprovalsRequest, options?: RpcOptions): UnaryCall<ListApprovalsRequest, ListApprovalsResponse>;
73
+ /**
74
+ * @generated from protobuf rpc: RevokeApproval
75
+ */
76
+ revokeApproval(input: RevokeApprovalRequest, options?: RpcOptions): UnaryCall<RevokeApprovalRequest, RevokeApprovalResponse>;
77
+ /**
78
+ * @generated from protobuf rpc: DecideApproval
79
+ */
80
+ decideApproval(input: DecideApprovalRequest, options?: RpcOptions): UnaryCall<DecideApprovalRequest, DecideApprovalResponse>;
81
+ /**
82
+ * @generated from protobuf rpc: ReopenApprovalTask
83
+ */
84
+ reopenApprovalTask(input: ReopenApprovalTaskRequest, options?: RpcOptions): UnaryCall<ReopenApprovalTaskRequest, ReopenApprovalTaskResponse>;
85
+ /**
86
+ * Helpers
87
+ *
88
+ * @generated from protobuf rpc: RecomputeApprovalPolicyCounters
89
+ */
90
+ recomputeApprovalPolicyCounters(input: RecomputeApprovalPolicyCountersRequest, options?: RpcOptions): UnaryCall<RecomputeApprovalPolicyCountersRequest, RecomputeApprovalPolicyCountersResponse>;
91
+ }
92
+ /**
93
+ * @generated from protobuf service services.documents.ApprovalService
94
+ */
95
+ export class ApprovalServiceClient implements IApprovalServiceClient, ServiceInfo {
96
+ typeName = ApprovalService.typeName;
97
+ methods = ApprovalService.methods;
98
+ options = ApprovalService.options;
99
+ constructor(private readonly _transport: RpcTransport) {
100
+ }
101
+ /**
102
+ * Inbox (for tasks assigned to user)
103
+ *
104
+ * @generated from protobuf rpc: ListApprovalTasksInbox
105
+ */
106
+ listApprovalTasksInbox(input: ListApprovalTasksInboxRequest, options?: RpcOptions): UnaryCall<ListApprovalTasksInboxRequest, ListApprovalTasksInboxResponse> {
107
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
108
+ return stackIntercept<ListApprovalTasksInboxRequest, ListApprovalTasksInboxResponse>("unary", this._transport, method, opt, input);
109
+ }
110
+ /**
111
+ * Policies
112
+ *
113
+ * @generated from protobuf rpc: ListApprovalPolicies
114
+ */
115
+ listApprovalPolicies(input: ListApprovalPoliciesRequest, options?: RpcOptions): UnaryCall<ListApprovalPoliciesRequest, ListApprovalPoliciesResponse> {
116
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
117
+ return stackIntercept<ListApprovalPoliciesRequest, ListApprovalPoliciesResponse>("unary", this._transport, method, opt, input);
118
+ }
119
+ /**
120
+ * @generated from protobuf rpc: UpsertApprovalPolicy
121
+ */
122
+ upsertApprovalPolicy(input: UpsertApprovalPolicyRequest, options?: RpcOptions): UnaryCall<UpsertApprovalPolicyRequest, UpsertApprovalPolicyResponse> {
123
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
124
+ return stackIntercept<UpsertApprovalPolicyRequest, UpsertApprovalPolicyResponse>("unary", this._transport, method, opt, input);
125
+ }
126
+ /**
127
+ * Tasks
128
+ *
129
+ * @generated from protobuf rpc: ListApprovalTasks
130
+ */
131
+ listApprovalTasks(input: ListApprovalTasksRequest, options?: RpcOptions): UnaryCall<ListApprovalTasksRequest, ListApprovalTasksResponse> {
132
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
133
+ return stackIntercept<ListApprovalTasksRequest, ListApprovalTasksResponse>("unary", this._transport, method, opt, input);
134
+ }
135
+ /**
136
+ * @generated from protobuf rpc: UpsertApprovalTasks
137
+ */
138
+ upsertApprovalTasks(input: UpsertApprovalTasksRequest, options?: RpcOptions): UnaryCall<UpsertApprovalTasksRequest, UpsertApprovalTasksResponse> {
139
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
140
+ return stackIntercept<UpsertApprovalTasksRequest, UpsertApprovalTasksResponse>("unary", this._transport, method, opt, input);
141
+ }
142
+ /**
143
+ * @generated from protobuf rpc: DeleteApprovalTasks
144
+ */
145
+ deleteApprovalTasks(input: DeleteApprovalTasksRequest, options?: RpcOptions): UnaryCall<DeleteApprovalTasksRequest, DeleteApprovalTasksResponse> {
146
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
147
+ return stackIntercept<DeleteApprovalTasksRequest, DeleteApprovalTasksResponse>("unary", this._transport, method, opt, input);
148
+ }
149
+ /**
150
+ * Approval
151
+ *
152
+ * @generated from protobuf rpc: ListApprovals
153
+ */
154
+ listApprovals(input: ListApprovalsRequest, options?: RpcOptions): UnaryCall<ListApprovalsRequest, ListApprovalsResponse> {
155
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
156
+ return stackIntercept<ListApprovalsRequest, ListApprovalsResponse>("unary", this._transport, method, opt, input);
157
+ }
158
+ /**
159
+ * @generated from protobuf rpc: RevokeApproval
160
+ */
161
+ revokeApproval(input: RevokeApprovalRequest, options?: RpcOptions): UnaryCall<RevokeApprovalRequest, RevokeApprovalResponse> {
162
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
163
+ return stackIntercept<RevokeApprovalRequest, RevokeApprovalResponse>("unary", this._transport, method, opt, input);
164
+ }
165
+ /**
166
+ * @generated from protobuf rpc: DecideApproval
167
+ */
168
+ decideApproval(input: DecideApprovalRequest, options?: RpcOptions): UnaryCall<DecideApprovalRequest, DecideApprovalResponse> {
169
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
170
+ return stackIntercept<DecideApprovalRequest, DecideApprovalResponse>("unary", this._transport, method, opt, input);
171
+ }
172
+ /**
173
+ * @generated from protobuf rpc: ReopenApprovalTask
174
+ */
175
+ reopenApprovalTask(input: ReopenApprovalTaskRequest, options?: RpcOptions): UnaryCall<ReopenApprovalTaskRequest, ReopenApprovalTaskResponse> {
176
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
177
+ return stackIntercept<ReopenApprovalTaskRequest, ReopenApprovalTaskResponse>("unary", this._transport, method, opt, input);
178
+ }
179
+ /**
180
+ * Helpers
181
+ *
182
+ * @generated from protobuf rpc: RecomputeApprovalPolicyCounters
183
+ */
184
+ recomputeApprovalPolicyCounters(input: RecomputeApprovalPolicyCountersRequest, options?: RpcOptions): UnaryCall<RecomputeApprovalPolicyCountersRequest, RecomputeApprovalPolicyCountersResponse> {
185
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
186
+ return stackIntercept<RecomputeApprovalPolicyCountersRequest, RecomputeApprovalPolicyCountersResponse>("unary", this._transport, method, opt, input);
187
+ }
188
+ }