@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.
Files changed (68) hide show
  1. package/clients.ts +66 -6
  2. package/codegen/perms/perms.ts +104 -1
  3. package/package.json +1 -1
  4. package/perms.ts +16 -5
  5. package/resources/centrum/settings/settings.ts +1 -1
  6. package/resources/centrum/units/units.ts +1 -1
  7. package/resources/citizens/labels/access.ts +216 -0
  8. package/resources/citizens/labels/labels.ts +320 -0
  9. package/resources/{users → citizens}/licenses/licenses.ts +17 -17
  10. package/resources/clientconfig/clientconfig.ts +32 -289
  11. package/resources/cron/cron.ts +2 -2
  12. package/resources/documents/access/access.ts +0 -23
  13. package/resources/documents/category/category.ts +1 -1
  14. package/resources/documents/templates/templates.ts +2 -2
  15. package/resources/jobs/labels/labels.ts +16 -5
  16. package/resources/livemap/markers/marker_marker.ts +1 -1
  17. package/resources/settings/banner.ts +1 -1
  18. package/resources/settings/config.ts +16 -14
  19. package/resources/sync/data/data.ts +9 -9
  20. package/resources/users/activity/activity.ts +132 -12
  21. package/resources/users/props/props.ts +4 -4
  22. package/resources/users/user.ts +4 -4
  23. package/services/calendar/calendar.client.ts +2 -106
  24. package/services/calendar/calendar.ts +0 -1018
  25. package/services/calendar/entries.client.ts +129 -0
  26. package/services/calendar/entries.ts +1040 -0
  27. package/services/centrum/centrum.client.ts +23 -244
  28. package/services/centrum/centrum.ts +246 -2383
  29. package/services/centrum/dispatches.client.ts +155 -0
  30. package/services/centrum/dispatches.ts +1305 -0
  31. package/services/centrum/units.client.ts +116 -0
  32. package/services/centrum/units.ts +876 -0
  33. package/services/citizens/citizens.client.ts +0 -13
  34. package/services/citizens/citizens.ts +1 -115
  35. package/services/citizens/labels.client.ts +77 -0
  36. package/services/citizens/labels.ts +455 -0
  37. package/services/completor/completor.ts +5 -5
  38. package/services/documents/categories.client.ts +64 -0
  39. package/services/documents/categories.ts +331 -0
  40. package/services/documents/comments.client.ts +77 -0
  41. package/services/documents/comments.ts +479 -0
  42. package/services/documents/documents.client.ts +26 -182
  43. package/services/documents/documents.ts +335 -1682
  44. package/services/documents/templates.client.ts +90 -0
  45. package/services/documents/templates.ts +591 -0
  46. package/services/jobs/colleagues.client.ts +129 -0
  47. package/services/jobs/colleagues.ts +1129 -0
  48. package/services/jobs/jobs.client.ts +3 -107
  49. package/services/jobs/jobs.ts +1 -1113
  50. package/services/mailer/mailer.client.ts +0 -208
  51. package/services/mailer/mailer.ts +1 -2010
  52. package/services/mailer/settings.client.ts +103 -0
  53. package/services/mailer/settings.ts +708 -0
  54. package/services/mailer/thread.client.ts +155 -0
  55. package/services/mailer/thread.ts +1343 -0
  56. package/services/qualifications/exam.client.ts +77 -0
  57. package/services/qualifications/exam.ts +609 -0
  58. package/services/qualifications/qualifications.client.ts +1 -53
  59. package/services/qualifications/qualifications.ts +0 -591
  60. package/services/settings/cron.client.ts +13 -0
  61. package/services/settings/cron.ts +114 -1
  62. package/services/sync/sync.client.ts +271 -37
  63. package/services/sync/sync.ts +1463 -383
  64. package/svcs.ts +182 -94
  65. package/resources/sync/data/v2/data.ts +0 -220
  66. package/resources/users/labels/labels.ts +0 -160
  67. package/services/sync/v2/sync.client.ts +0 -331
  68. package/services/sync/v2/sync.ts +0 -1766
@@ -1,331 +0,0 @@
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/sync/v2/sync.proto" (package "services.sync.v2", 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 { SyncService } from "./sync";
8
- import type { StreamResponse } from "./sync";
9
- import type { StreamRequest } from "./sync";
10
- import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
11
- import type { DeleteVehiclesDataRequest } from "./sync";
12
- import type { DeleteDataResponse } from "./sync";
13
- import type { DeleteUsersDataRequest } from "./sync";
14
- import type { SendLastCharIDDataRequest } from "./sync";
15
- import type { SendUserLocationsDataRequest } from "./sync";
16
- import type { SendVehiclesDataRequest } from "./sync";
17
- import type { SendUsersDataRequest } from "./sync";
18
- import type { SendAccountsDataRequest } from "./sync";
19
- import type { SendLicensesDataRequest } from "./sync";
20
- import type { SendDataResponse } from "./sync";
21
- import type { SendJobsDataRequest } from "./sync";
22
- import type { AddUserUpdateRequest } from "./sync";
23
- import type { AddAccountUpdateRequest } from "./sync";
24
- import type { AddJobTimeclockRequest } from "./sync";
25
- import type { AddColleaguePropsRequest } from "./sync";
26
- import type { AddColleagueActivityRequest } from "./sync";
27
- import type { AddUserPropsRequest } from "./sync";
28
- import type { AddUserActivityRequest } from "./sync";
29
- import type { AddDispatchRequest } from "./sync";
30
- import type { AddActivityResponse } from "./sync";
31
- import type { AddUserOAuth2ConnRequest } from "./sync";
32
- import type { TransferAccountResponse } from "./sync";
33
- import type { TransferAccountRequest } from "./sync";
34
- import type { RegisterAccountResponse } from "./sync";
35
- import type { RegisterAccountRequest } from "./sync";
36
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
37
- import type { GetStatusResponse } from "./sync";
38
- import type { GetStatusRequest } from "./sync";
39
- import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
40
- import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
41
- /**
42
- * Sync Service handles the sync of data (e.g., users, jobs) to this FiveNet instance and API calls
43
- * from the plugin (e.g., user activity, user props changes).
44
- *
45
- * @generated from protobuf service services.sync.v2.SyncService
46
- */
47
- export interface ISyncServiceClient {
48
- /**
49
- * Get basic "sync state" from server side (currently simply the count of records on the server side).
50
- *
51
- * @generated from protobuf rpc: GetStatus
52
- */
53
- getStatus(input: GetStatusRequest, options?: RpcOptions): UnaryCall<GetStatusRequest, GetStatusResponse>;
54
- /**
55
- * Get registration token for a new user account or return the account id and username, for a given identifier/license.
56
- *
57
- * @generated from protobuf rpc: RegisterAccount
58
- */
59
- registerAccount(input: RegisterAccountRequest, options?: RpcOptions): UnaryCall<RegisterAccountRequest, RegisterAccountResponse>;
60
- /**
61
- * Transfer account from one license to another
62
- *
63
- * @generated from protobuf rpc: TransferAccount
64
- */
65
- transferAccount(input: TransferAccountRequest, options?: RpcOptions): UnaryCall<TransferAccountRequest, TransferAccountResponse>;
66
- /**
67
- * Individual AddActivity methods
68
- *
69
- * @generated from protobuf rpc: AddUserOAuth2Conn
70
- */
71
- addUserOAuth2Conn(input: AddUserOAuth2ConnRequest, options?: RpcOptions): UnaryCall<AddUserOAuth2ConnRequest, AddActivityResponse>;
72
- /**
73
- * @generated from protobuf rpc: AddDispatch
74
- */
75
- addDispatch(input: AddDispatchRequest, options?: RpcOptions): UnaryCall<AddDispatchRequest, AddActivityResponse>;
76
- /**
77
- * @generated from protobuf rpc: AddUserActivity
78
- */
79
- addUserActivity(input: AddUserActivityRequest, options?: RpcOptions): UnaryCall<AddUserActivityRequest, AddActivityResponse>;
80
- /**
81
- * @generated from protobuf rpc: AddUserProps
82
- */
83
- addUserProps(input: AddUserPropsRequest, options?: RpcOptions): UnaryCall<AddUserPropsRequest, AddActivityResponse>;
84
- /**
85
- * @generated from protobuf rpc: AddColleagueActivity
86
- */
87
- addColleagueActivity(input: AddColleagueActivityRequest, options?: RpcOptions): UnaryCall<AddColleagueActivityRequest, AddActivityResponse>;
88
- /**
89
- * @generated from protobuf rpc: AddColleagueProps
90
- */
91
- addColleagueProps(input: AddColleaguePropsRequest, options?: RpcOptions): UnaryCall<AddColleaguePropsRequest, AddActivityResponse>;
92
- /**
93
- * @generated from protobuf rpc: AddJobTimeclock
94
- */
95
- addJobTimeclock(input: AddJobTimeclockRequest, options?: RpcOptions): UnaryCall<AddJobTimeclockRequest, AddActivityResponse>;
96
- /**
97
- * @generated from protobuf rpc: AddAccountUpdate
98
- */
99
- addAccountUpdate(input: AddAccountUpdateRequest, options?: RpcOptions): UnaryCall<AddAccountUpdateRequest, AddActivityResponse>;
100
- /**
101
- * @generated from protobuf rpc: AddUserUpdate
102
- */
103
- addUserUpdate(input: AddUserUpdateRequest, options?: RpcOptions): UnaryCall<AddUserUpdateRequest, AddActivityResponse>;
104
- /**
105
- * Individual SendData methods
106
- *
107
- * @generated from protobuf rpc: SendJobsData
108
- */
109
- sendJobsData(input: SendJobsDataRequest, options?: RpcOptions): UnaryCall<SendJobsDataRequest, SendDataResponse>;
110
- /**
111
- * @generated from protobuf rpc: SendLicensesData
112
- */
113
- sendLicensesData(input: SendLicensesDataRequest, options?: RpcOptions): UnaryCall<SendLicensesDataRequest, SendDataResponse>;
114
- /**
115
- * @generated from protobuf rpc: SendAccountsData
116
- */
117
- sendAccountsData(input: SendAccountsDataRequest, options?: RpcOptions): UnaryCall<SendAccountsDataRequest, SendDataResponse>;
118
- /**
119
- * @generated from protobuf rpc: SendUsersData
120
- */
121
- sendUsersData(input: SendUsersDataRequest, options?: RpcOptions): UnaryCall<SendUsersDataRequest, SendDataResponse>;
122
- /**
123
- * @generated from protobuf rpc: SendVehiclesData
124
- */
125
- sendVehiclesData(input: SendVehiclesDataRequest, options?: RpcOptions): UnaryCall<SendVehiclesDataRequest, SendDataResponse>;
126
- /**
127
- * @generated from protobuf rpc: SendUserLocationsData
128
- */
129
- sendUserLocationsData(input: SendUserLocationsDataRequest, options?: RpcOptions): UnaryCall<SendUserLocationsDataRequest, SendDataResponse>;
130
- /**
131
- * @generated from protobuf rpc: SendLastCharIDData
132
- */
133
- sendLastCharIDData(input: SendLastCharIDDataRequest, options?: RpcOptions): UnaryCall<SendLastCharIDDataRequest, SendDataResponse>;
134
- /**
135
- * Individual DeleteData methods
136
- *
137
- * @generated from protobuf rpc: DeleteUsersData
138
- */
139
- deleteUsersData(input: DeleteUsersDataRequest, options?: RpcOptions): UnaryCall<DeleteUsersDataRequest, DeleteDataResponse>;
140
- /**
141
- * @generated from protobuf rpc: DeleteVehiclesData
142
- */
143
- deleteVehiclesData(input: DeleteVehiclesDataRequest, options?: RpcOptions): UnaryCall<DeleteVehiclesDataRequest, DeleteDataResponse>;
144
- /**
145
- * Used for the server to stream events to the dbsync (e.g., "refresh" of user/char data)
146
- *
147
- * @generated from protobuf rpc: Stream
148
- */
149
- stream(input: StreamRequest, options?: RpcOptions): ServerStreamingCall<StreamRequest, StreamResponse>;
150
- }
151
- /**
152
- * Sync Service handles the sync of data (e.g., users, jobs) to this FiveNet instance and API calls
153
- * from the plugin (e.g., user activity, user props changes).
154
- *
155
- * @generated from protobuf service services.sync.v2.SyncService
156
- */
157
- export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
158
- typeName = SyncService.typeName;
159
- methods = SyncService.methods;
160
- options = SyncService.options;
161
- constructor(private readonly _transport: RpcTransport) {
162
- }
163
- /**
164
- * Get basic "sync state" from server side (currently simply the count of records on the server side).
165
- *
166
- * @generated from protobuf rpc: GetStatus
167
- */
168
- getStatus(input: GetStatusRequest, options?: RpcOptions): UnaryCall<GetStatusRequest, GetStatusResponse> {
169
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
170
- return stackIntercept<GetStatusRequest, GetStatusResponse>("unary", this._transport, method, opt, input);
171
- }
172
- /**
173
- * Get registration token for a new user account or return the account id and username, for a given identifier/license.
174
- *
175
- * @generated from protobuf rpc: RegisterAccount
176
- */
177
- registerAccount(input: RegisterAccountRequest, options?: RpcOptions): UnaryCall<RegisterAccountRequest, RegisterAccountResponse> {
178
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
179
- return stackIntercept<RegisterAccountRequest, RegisterAccountResponse>("unary", this._transport, method, opt, input);
180
- }
181
- /**
182
- * Transfer account from one license to another
183
- *
184
- * @generated from protobuf rpc: TransferAccount
185
- */
186
- transferAccount(input: TransferAccountRequest, options?: RpcOptions): UnaryCall<TransferAccountRequest, TransferAccountResponse> {
187
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
188
- return stackIntercept<TransferAccountRequest, TransferAccountResponse>("unary", this._transport, method, opt, input);
189
- }
190
- /**
191
- * Individual AddActivity methods
192
- *
193
- * @generated from protobuf rpc: AddUserOAuth2Conn
194
- */
195
- addUserOAuth2Conn(input: AddUserOAuth2ConnRequest, options?: RpcOptions): UnaryCall<AddUserOAuth2ConnRequest, AddActivityResponse> {
196
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
197
- return stackIntercept<AddUserOAuth2ConnRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
198
- }
199
- /**
200
- * @generated from protobuf rpc: AddDispatch
201
- */
202
- addDispatch(input: AddDispatchRequest, options?: RpcOptions): UnaryCall<AddDispatchRequest, AddActivityResponse> {
203
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
204
- return stackIntercept<AddDispatchRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
205
- }
206
- /**
207
- * @generated from protobuf rpc: AddUserActivity
208
- */
209
- addUserActivity(input: AddUserActivityRequest, options?: RpcOptions): UnaryCall<AddUserActivityRequest, AddActivityResponse> {
210
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
211
- return stackIntercept<AddUserActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
212
- }
213
- /**
214
- * @generated from protobuf rpc: AddUserProps
215
- */
216
- addUserProps(input: AddUserPropsRequest, options?: RpcOptions): UnaryCall<AddUserPropsRequest, AddActivityResponse> {
217
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
218
- return stackIntercept<AddUserPropsRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
219
- }
220
- /**
221
- * @generated from protobuf rpc: AddColleagueActivity
222
- */
223
- addColleagueActivity(input: AddColleagueActivityRequest, options?: RpcOptions): UnaryCall<AddColleagueActivityRequest, AddActivityResponse> {
224
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
225
- return stackIntercept<AddColleagueActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
226
- }
227
- /**
228
- * @generated from protobuf rpc: AddColleagueProps
229
- */
230
- addColleagueProps(input: AddColleaguePropsRequest, options?: RpcOptions): UnaryCall<AddColleaguePropsRequest, AddActivityResponse> {
231
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
232
- return stackIntercept<AddColleaguePropsRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
233
- }
234
- /**
235
- * @generated from protobuf rpc: AddJobTimeclock
236
- */
237
- addJobTimeclock(input: AddJobTimeclockRequest, options?: RpcOptions): UnaryCall<AddJobTimeclockRequest, AddActivityResponse> {
238
- const method = this.methods[9], opt = this._transport.mergeOptions(options);
239
- return stackIntercept<AddJobTimeclockRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
240
- }
241
- /**
242
- * @generated from protobuf rpc: AddAccountUpdate
243
- */
244
- addAccountUpdate(input: AddAccountUpdateRequest, options?: RpcOptions): UnaryCall<AddAccountUpdateRequest, AddActivityResponse> {
245
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
246
- return stackIntercept<AddAccountUpdateRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
247
- }
248
- /**
249
- * @generated from protobuf rpc: AddUserUpdate
250
- */
251
- addUserUpdate(input: AddUserUpdateRequest, options?: RpcOptions): UnaryCall<AddUserUpdateRequest, AddActivityResponse> {
252
- const method = this.methods[11], opt = this._transport.mergeOptions(options);
253
- return stackIntercept<AddUserUpdateRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
254
- }
255
- /**
256
- * Individual SendData methods
257
- *
258
- * @generated from protobuf rpc: SendJobsData
259
- */
260
- sendJobsData(input: SendJobsDataRequest, options?: RpcOptions): UnaryCall<SendJobsDataRequest, SendDataResponse> {
261
- const method = this.methods[12], opt = this._transport.mergeOptions(options);
262
- return stackIntercept<SendJobsDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
263
- }
264
- /**
265
- * @generated from protobuf rpc: SendLicensesData
266
- */
267
- sendLicensesData(input: SendLicensesDataRequest, options?: RpcOptions): UnaryCall<SendLicensesDataRequest, SendDataResponse> {
268
- const method = this.methods[13], opt = this._transport.mergeOptions(options);
269
- return stackIntercept<SendLicensesDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
270
- }
271
- /**
272
- * @generated from protobuf rpc: SendAccountsData
273
- */
274
- sendAccountsData(input: SendAccountsDataRequest, options?: RpcOptions): UnaryCall<SendAccountsDataRequest, SendDataResponse> {
275
- const method = this.methods[14], opt = this._transport.mergeOptions(options);
276
- return stackIntercept<SendAccountsDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
277
- }
278
- /**
279
- * @generated from protobuf rpc: SendUsersData
280
- */
281
- sendUsersData(input: SendUsersDataRequest, options?: RpcOptions): UnaryCall<SendUsersDataRequest, SendDataResponse> {
282
- const method = this.methods[15], opt = this._transport.mergeOptions(options);
283
- return stackIntercept<SendUsersDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
284
- }
285
- /**
286
- * @generated from protobuf rpc: SendVehiclesData
287
- */
288
- sendVehiclesData(input: SendVehiclesDataRequest, options?: RpcOptions): UnaryCall<SendVehiclesDataRequest, SendDataResponse> {
289
- const method = this.methods[16], opt = this._transport.mergeOptions(options);
290
- return stackIntercept<SendVehiclesDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
291
- }
292
- /**
293
- * @generated from protobuf rpc: SendUserLocationsData
294
- */
295
- sendUserLocationsData(input: SendUserLocationsDataRequest, options?: RpcOptions): UnaryCall<SendUserLocationsDataRequest, SendDataResponse> {
296
- const method = this.methods[17], opt = this._transport.mergeOptions(options);
297
- return stackIntercept<SendUserLocationsDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
298
- }
299
- /**
300
- * @generated from protobuf rpc: SendLastCharIDData
301
- */
302
- sendLastCharIDData(input: SendLastCharIDDataRequest, options?: RpcOptions): UnaryCall<SendLastCharIDDataRequest, SendDataResponse> {
303
- const method = this.methods[18], opt = this._transport.mergeOptions(options);
304
- return stackIntercept<SendLastCharIDDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
305
- }
306
- /**
307
- * Individual DeleteData methods
308
- *
309
- * @generated from protobuf rpc: DeleteUsersData
310
- */
311
- deleteUsersData(input: DeleteUsersDataRequest, options?: RpcOptions): UnaryCall<DeleteUsersDataRequest, DeleteDataResponse> {
312
- const method = this.methods[19], opt = this._transport.mergeOptions(options);
313
- return stackIntercept<DeleteUsersDataRequest, DeleteDataResponse>("unary", this._transport, method, opt, input);
314
- }
315
- /**
316
- * @generated from protobuf rpc: DeleteVehiclesData
317
- */
318
- deleteVehiclesData(input: DeleteVehiclesDataRequest, options?: RpcOptions): UnaryCall<DeleteVehiclesDataRequest, DeleteDataResponse> {
319
- const method = this.methods[20], opt = this._transport.mergeOptions(options);
320
- return stackIntercept<DeleteVehiclesDataRequest, DeleteDataResponse>("unary", this._transport, method, opt, input);
321
- }
322
- /**
323
- * Used for the server to stream events to the dbsync (e.g., "refresh" of user/char data)
324
- *
325
- * @generated from protobuf rpc: Stream
326
- */
327
- stream(input: StreamRequest, options?: RpcOptions): ServerStreamingCall<StreamRequest, StreamResponse> {
328
- const method = this.methods[21], opt = this._transport.mergeOptions(options);
329
- return stackIntercept<StreamRequest, StreamResponse>("serverStreaming", this._transport, method, opt, input);
330
- }
331
- }