@fivenet-app/gen 2026.5.1 → 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.
Files changed (74) hide show
  1. package/clients.ts +6 -0
  2. package/codegen/perms/perms.ts +14 -2
  3. package/codegen/sanitizer/sanitizer.ts +6 -0
  4. package/google/protobuf/descriptor.ts +11 -3
  5. package/google/protobuf/timestamp.ts +7 -6
  6. package/package.json +1 -1
  7. package/perms.ts +343 -3
  8. package/resources/access/access.ts +481 -0
  9. package/resources/calendar/access/access.ts +0 -330
  10. package/resources/calendar/calendar.ts +307 -25
  11. package/resources/calendar/entries/entries.ts +204 -11
  12. package/resources/centrum/units/access/access.ts +0 -373
  13. package/resources/centrum/units/units.ts +20 -8
  14. package/resources/citizens/labels/access.ts +0 -191
  15. package/resources/citizens/labels/labels.ts +20 -8
  16. package/resources/common/content/diff_activity.ts +1 -1
  17. package/resources/cron/cron.ts +1 -1
  18. package/resources/documents/access/access.ts +0 -329
  19. package/resources/documents/activity/activity.ts +49 -45
  20. package/resources/documents/documents.ts +1 -1
  21. package/resources/documents/requests/requests.ts +1 -1
  22. package/resources/documents/stamps/stamp.ts +40 -210
  23. package/resources/documents/templates/templates.ts +158 -318
  24. package/resources/jobs/colleagues/activity/activity.ts +1 -1
  25. package/resources/jobs/conduct/conduct.ts +2 -2
  26. package/resources/jobs/jobs.ts +22 -0
  27. package/resources/jobs/labels/labels.ts +9 -9
  28. package/resources/laws/laws.ts +24 -0
  29. package/resources/livemap/markers/marker_marker.ts +311 -4
  30. package/resources/mailer/access/access.ts +0 -457
  31. package/resources/mailer/emails/email.ts +4 -4
  32. package/resources/notifications/events/events.ts +18 -1
  33. package/resources/qualifications/access/access.ts +0 -248
  34. package/resources/qualifications/qualifications.ts +9 -9
  35. package/resources/settings/config.ts +53 -5
  36. package/resources/settings/data.ts +1 -1
  37. package/resources/stats/stats.ts +32 -20
  38. package/resources/sync/data/data.ts +13 -1
  39. package/resources/userinfo/userinfo.ts +202 -51
  40. package/resources/users/activity/activity.ts +1 -1
  41. package/resources/wiki/access/access.ts +0 -330
  42. package/resources/wiki/activity/activity.ts +45 -45
  43. package/resources/wiki/page.ts +9 -9
  44. package/services/calendar/calendar.ts +1 -1
  45. package/services/calendar/entries.ts +12 -1
  46. package/services/centrum/dispatches.ts +27 -7
  47. package/services/centrum/units.client.ts +15 -2
  48. package/services/centrum/units.ts +231 -123
  49. package/services/citizens/citizens.ts +1 -1
  50. package/services/citizens/labels.client.ts +7 -20
  51. package/services/citizens/labels.ts +35 -183
  52. package/services/documents/approval.ts +15 -4
  53. package/services/documents/collab.ts +1 -1
  54. package/services/documents/documents.ts +38 -38
  55. package/services/documents/stats.ts +14 -2
  56. package/services/filestore/filestore.ts +4 -4
  57. package/services/jobs/colleagues.ts +3 -3
  58. package/services/jobs/conduct.ts +2 -2
  59. package/services/jobs/groups.client.ts +22 -0
  60. package/services/jobs/groups.ts +9 -0
  61. package/services/jobs/timeclock.ts +2 -2
  62. package/services/mailer/thread.ts +2 -2
  63. package/services/qualifications/qualifications.ts +52 -34
  64. package/services/settings/accounts.ts +5 -5
  65. package/services/settings/config.ts +2 -2
  66. package/services/settings/cron.ts +2 -2
  67. package/services/settings/laws.client.ts +28 -2
  68. package/services/settings/laws.ts +229 -1
  69. package/services/settings/system.ts +6 -6
  70. package/services/sync/sync.client.ts +42 -14
  71. package/services/sync/sync.ts +162 -13
  72. package/services/wiki/wiki.client.ts +15 -2
  73. package/services/wiki/wiki.ts +122 -0
  74. package/svcs.ts +18 -2
@@ -43,6 +43,10 @@ export interface ListDispatchesRequest {
43
43
  * @generated from protobuf field: optional string postal = 5
44
44
  */
45
45
  postal?: string;
46
+ /**
47
+ * @generated from protobuf field: repeated int32 creator_ids = 6
48
+ */
49
+ creatorIds: number[];
46
50
  }
47
51
  /**
48
52
  * @generated from protobuf message services.centrum.ListDispatchesResponse
@@ -244,10 +248,11 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
244
248
  constructor() {
245
249
  super("services.centrum.ListDispatchesRequest", [
246
250
  { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
247
- { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
248
- { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
249
- { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } },
250
- { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } }
251
+ { no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { definedOnly: true } } } } } },
252
+ { no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { definedOnly: true } } } } } },
253
+ { no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
254
+ { no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } },
255
+ { no: 6, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int32: { gt: 0 } } } } } }
251
256
  ]);
252
257
  }
253
258
  create(value?: PartialMessage<ListDispatchesRequest>): ListDispatchesRequest {
@@ -255,6 +260,7 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
255
260
  message.status = [];
256
261
  message.notStatus = [];
257
262
  message.ids = [];
263
+ message.creatorIds = [];
258
264
  if (value !== undefined)
259
265
  reflectionMergePartial<ListDispatchesRequest>(this, message, value);
260
266
  return message;
@@ -291,6 +297,13 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
291
297
  case /* optional string postal */ 5:
292
298
  message.postal = reader.string();
293
299
  break;
300
+ case /* repeated int32 creator_ids */ 6:
301
+ if (wireType === WireType.LengthDelimited)
302
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
303
+ message.creatorIds.push(reader.int32());
304
+ else
305
+ message.creatorIds.push(reader.int32());
306
+ break;
294
307
  default:
295
308
  let u = options.readUnknownField;
296
309
  if (u === "throw")
@@ -330,6 +343,13 @@ class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
330
343
  /* optional string postal = 5; */
331
344
  if (message.postal !== undefined)
332
345
  writer.tag(5, WireType.LengthDelimited).string(message.postal);
346
+ /* repeated int32 creator_ids = 6; */
347
+ if (message.creatorIds.length) {
348
+ writer.tag(6, WireType.LengthDelimited).fork();
349
+ for (let i = 0; i < message.creatorIds.length; i++)
350
+ writer.int32(message.creatorIds[i]);
351
+ writer.join();
352
+ }
333
353
  let u = options.writeUnknownFields;
334
354
  if (u !== false)
335
355
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1061,8 +1081,8 @@ class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
1061
1081
  constructor() {
1062
1082
  super("services.centrum.AssignDispatchRequest", [
1063
1083
  { no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1064
- { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1065
- { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1084
+ { no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
1085
+ { no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int64: { gt: "0" } } } } } },
1066
1086
  { no: 4, name: "forced", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
1067
1087
  ]);
1068
1088
  }
@@ -1184,7 +1204,7 @@ export const AssignDispatchResponse = new AssignDispatchResponse$Type();
1184
1204
  class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
1185
1205
  constructor() {
1186
1206
  super("services.centrum.TakeDispatchRequest", [
1187
- { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1" } } } },
1207
+ { no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "10", items: { int64: { gt: "0" } } } } } },
1188
1208
  { no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.dispatches.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1189
1209
  { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1190
1210
  ]);
@@ -9,6 +9,8 @@ import type { UpdateUnitStatusResponse } from "./units";
9
9
  import type { UpdateUnitStatusRequest } from "./units";
10
10
  import type { AssignUnitResponse } from "./units";
11
11
  import type { AssignUnitRequest } from "./units";
12
+ import type { ReorderUnitsResponse } from "./units";
13
+ import type { ReorderUnitsRequest } from "./units";
12
14
  import type { DeleteUnitResponse } from "./units";
13
15
  import type { DeleteUnitRequest } from "./units";
14
16
  import type { CreateOrUpdateUnitResponse } from "./units";
@@ -46,6 +48,10 @@ export interface IUnitsServiceClient {
46
48
  * @generated from protobuf rpc: DeleteUnit
47
49
  */
48
50
  deleteUnit(input: DeleteUnitRequest, options?: RpcOptions): UnaryCall<DeleteUnitRequest, DeleteUnitResponse>;
51
+ /**
52
+ * @generated from protobuf rpc: ReorderUnits
53
+ */
54
+ reorderUnits(input: ReorderUnitsRequest, options?: RpcOptions): UnaryCall<ReorderUnitsRequest, ReorderUnitsResponse>;
49
55
  /**
50
56
  * @generated from protobuf rpc: AssignUnit
51
57
  */
@@ -99,18 +105,25 @@ export class UnitsServiceClient implements IUnitsServiceClient, ServiceInfo {
99
105
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
100
106
  return stackIntercept<DeleteUnitRequest, DeleteUnitResponse>("unary", this._transport, method, opt, input);
101
107
  }
108
+ /**
109
+ * @generated from protobuf rpc: ReorderUnits
110
+ */
111
+ reorderUnits(input: ReorderUnitsRequest, options?: RpcOptions): UnaryCall<ReorderUnitsRequest, ReorderUnitsResponse> {
112
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
113
+ return stackIntercept<ReorderUnitsRequest, ReorderUnitsResponse>("unary", this._transport, method, opt, input);
114
+ }
102
115
  /**
103
116
  * @generated from protobuf rpc: AssignUnit
104
117
  */
105
118
  assignUnit(input: AssignUnitRequest, options?: RpcOptions): UnaryCall<AssignUnitRequest, AssignUnitResponse> {
106
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
119
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
107
120
  return stackIntercept<AssignUnitRequest, AssignUnitResponse>("unary", this._transport, method, opt, input);
108
121
  }
109
122
  /**
110
123
  * @generated from protobuf rpc: UpdateUnitStatus
111
124
  */
112
125
  updateUnitStatus(input: UpdateUnitStatusRequest, options?: RpcOptions): UnaryCall<UpdateUnitStatusRequest, UpdateUnitStatusResponse> {
113
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
126
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
114
127
  return stackIntercept<UpdateUnitStatusRequest, UpdateUnitStatusResponse>("unary", this._transport, method, opt, input);
115
128
  }
116
129
  }