@fivenet-app/gen 2026.8.0 → 2026.10.2

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 (83) hide show
  1. package/LICENSE +201 -0
  2. package/clients.ts +12 -0
  3. package/codegen/perms/perms.ts +331 -2
  4. package/google/protobuf/any.ts +47 -103
  5. package/google/protobuf/descriptor.ts +28 -29
  6. package/google/protobuf/struct.ts +33 -22
  7. package/google/protobuf/timestamp.ts +3 -3
  8. package/package.json +2 -2
  9. package/perms.ts +58 -17
  10. package/resources/calendar/calendar.ts +11 -0
  11. package/resources/calendar/entries/entries.ts +23 -0
  12. package/resources/centrum/dispatches/dispatches.ts +214 -21
  13. package/resources/centrum/units/units.ts +212 -5
  14. package/resources/citizens/labels/access.ts +10 -6
  15. package/resources/cron/cron.ts +44 -3
  16. package/resources/dbsync/state.ts +192 -0
  17. package/resources/documents/stamps/access.ts +25 -0
  18. package/resources/documents/stamps/stamp.ts +0 -21
  19. package/resources/documents/templates/templates.ts +63 -61
  20. package/resources/documents/workflow/workflow.ts +61 -1
  21. package/resources/file/file.ts +3 -3
  22. package/resources/file/filestore.ts +26 -10
  23. package/resources/jobs/colleagues/activity/activity.ts +50 -8
  24. package/resources/jobs/colleagues/colleagues.ts +14 -1
  25. package/resources/jobs/groups/access/access.ts +29 -0
  26. package/resources/jobs/groups/activity.ts +332 -0
  27. package/resources/jobs/groups/group.ts +1666 -0
  28. package/resources/jobs/groups/short/group_member_short.ts +129 -0
  29. package/resources/jobs/job_asset.ts +116 -0
  30. package/resources/jobs/user_selector.ts +170 -0
  31. package/resources/notifications/clientview/clientview.ts +5 -1
  32. package/resources/notifications/events/events.ts +35 -1
  33. package/resources/notifications/notifications.ts +322 -2
  34. package/resources/permissions/attributes/attributes.ts +164 -2
  35. package/resources/permissions/authorization/authorization.ts +86 -0
  36. package/resources/permissions/permissions/permissions.ts +16 -1
  37. package/resources/properties/properties.ts +1648 -0
  38. package/resources/qualifications/activity/activity.ts +328 -0
  39. package/resources/qualifications/exam/exam.ts +108 -4
  40. package/resources/qualifications/qualifications.ts +36 -2
  41. package/resources/settings/config.ts +3 -3
  42. package/resources/settings/status.ts +197 -105
  43. package/resources/sync/activity/activity.ts +4 -4
  44. package/resources/sync/data/data.ts +16 -4
  45. package/resources/users/activity/activity.ts +220 -3
  46. package/resources/users/props/props.ts +13 -1
  47. package/resources/users/user.ts +13 -1
  48. package/resources/vehicles/activity/activity.ts +222 -3
  49. package/resources/vehicles/props/props.ts +13 -1
  50. package/resources/vehicles/vehicles.ts +13 -1
  51. package/services/auth/auth.ts +61 -67
  52. package/services/calendar/calendar.ts +1 -1
  53. package/services/calendar/entries.ts +3 -3
  54. package/services/centrum/centrum.ts +103 -1
  55. package/services/centrum/dispatches.ts +25 -1
  56. package/services/centrum/units.ts +28 -4
  57. package/services/citizens/citizens.client.ts +49 -0
  58. package/services/citizens/citizens.ts +384 -7
  59. package/services/completor/completor.ts +2 -2
  60. package/services/documents/approval.ts +2 -2
  61. package/services/documents/documents.ts +10 -9
  62. package/services/documents/templates.ts +24 -13
  63. package/services/jobs/colleagues.client.ts +34 -8
  64. package/services/jobs/colleagues.ts +289 -75
  65. package/services/jobs/conduct.ts +12 -19
  66. package/services/jobs/groups.client.ts +311 -0
  67. package/services/jobs/groups.ts +3654 -1
  68. package/services/jobs/timeclock.ts +30 -27
  69. package/services/notifications/notifications.client.ts +40 -1
  70. package/services/notifications/notifications.ts +483 -3
  71. package/services/qualifications/qualifications.client.ts +20 -7
  72. package/services/qualifications/qualifications.ts +291 -8
  73. package/services/settings/job_assets.client.ts +105 -0
  74. package/services/settings/job_assets.ts +373 -0
  75. package/services/settings/properties.client.ts +194 -0
  76. package/services/settings/properties.ts +1555 -0
  77. package/services/settings/settings.ts +1 -1
  78. package/services/settings/system.ts +29 -9
  79. package/services/sync/sync.client.ts +69 -33
  80. package/services/sync/sync.ts +557 -18
  81. package/services/vehicles/vehicles.client.ts +52 -0
  82. package/services/vehicles/vehicles.ts +386 -8
  83. package/svcs.ts +87 -1
@@ -24,7 +24,7 @@ import { File } from "../../resources/file/file";
24
24
  import { DocumentMeta } from "../../resources/documents/documents";
25
25
  import { DocumentData } from "../../resources/documents/data/data";
26
26
  import { Content } from "../../resources/common/content/content";
27
- import { TemplateData } from "../../resources/documents/templates/templates";
27
+ import { TemplateSelection } from "../../resources/documents/templates/templates";
28
28
  import { ContentType } from "../../resources/common/content/content";
29
29
  import { DocumentRelation } from "../../resources/documents/relations/relations";
30
30
  import { DocumentReference } from "../../resources/documents/references/references";
@@ -304,9 +304,9 @@ export interface CreateDocumentRequest {
304
304
  */
305
305
  templateId?: number;
306
306
  /**
307
- * @generated from protobuf field: optional resources.documents.templates.TemplateData template_data = 3
307
+ * @generated from protobuf field: optional resources.documents.templates.TemplateSelection template_selection = 4
308
308
  */
309
- templateData?: TemplateData;
309
+ templateSelection?: TemplateSelection;
310
310
  }
311
311
  /**
312
312
  * @generated from protobuf message services.documents.CreateDocumentResponse
@@ -374,6 +374,7 @@ export interface ListDocumentActivityRequest {
374
374
  documentId: number;
375
375
  /**
376
376
  * Search params
377
+ * Activity types to filter by. If empty, all activity types will be returned.
377
378
  *
378
379
  * @generated from protobuf field: repeated resources.documents.activity.DocActivityType activity_types = 3
379
380
  */
@@ -1835,7 +1836,7 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
1835
1836
  super("services.documents.CreateDocumentRequest", [
1836
1837
  { no: 1, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1837
1838
  { no: 2, name: "template_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1838
- { no: 3, name: "template_data", kind: "message", T: () => TemplateData }
1839
+ { no: 4, name: "template_selection", kind: "message", T: () => TemplateSelection }
1839
1840
  ]);
1840
1841
  }
1841
1842
  create(value?: PartialMessage<CreateDocumentRequest>): CreateDocumentRequest {
@@ -1856,8 +1857,8 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
1856
1857
  case /* optional int64 template_id */ 2:
1857
1858
  message.templateId = reader.int64().toNumber();
1858
1859
  break;
1859
- case /* optional resources.documents.templates.TemplateData template_data */ 3:
1860
- message.templateData = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.templateData);
1860
+ case /* optional resources.documents.templates.TemplateSelection template_selection */ 4:
1861
+ message.templateSelection = TemplateSelection.internalBinaryRead(reader, reader.uint32(), options, message.templateSelection);
1861
1862
  break;
1862
1863
  default:
1863
1864
  let u = options.readUnknownField;
@@ -1877,9 +1878,9 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
1877
1878
  /* optional int64 template_id = 2; */
1878
1879
  if (message.templateId !== undefined)
1879
1880
  writer.tag(2, WireType.Varint).int64(message.templateId);
1880
- /* optional resources.documents.templates.TemplateData template_data = 3; */
1881
- if (message.templateData)
1882
- TemplateData.internalBinaryWrite(message.templateData, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1881
+ /* optional resources.documents.templates.TemplateSelection template_selection = 4; */
1882
+ if (message.templateSelection)
1883
+ TemplateSelection.internalBinaryWrite(message.templateSelection, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1883
1884
  let u = options.writeUnknownFields;
1884
1885
  if (u !== false)
1885
1886
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -13,7 +13,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
13
13
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
14
14
  import { MessageType } from "@protobuf-ts/runtime";
15
15
  import { Template } from "../../resources/documents/templates/templates";
16
- import { TemplateData } from "../../resources/documents/templates/templates";
16
+ import { TemplateSelection } from "../../resources/documents/templates/templates";
17
17
  import { TemplateShort } from "../../resources/documents/templates/templates";
18
18
  /**
19
19
  * @generated from protobuf message services.documents.ListTemplatesRequest
@@ -37,14 +37,18 @@ export interface GetTemplateRequest {
37
37
  * @generated from protobuf field: int64 template_id = 1
38
38
  */
39
39
  templateId: number;
40
- /**
41
- * @generated from protobuf field: optional resources.documents.templates.TemplateData data = 2
42
- */
43
- data?: TemplateData;
44
40
  /**
45
41
  * @generated from protobuf field: optional bool render = 3
46
42
  */
47
43
  render?: boolean;
44
+ /**
45
+ * @generated from protobuf field: optional resources.documents.templates.TemplateSelection selection = 4
46
+ */
47
+ selection?: TemplateSelection;
48
+ /**
49
+ * @generated from protobuf field: optional bool allow_missing = 5
50
+ */
51
+ allowMissing?: boolean;
48
52
  }
49
53
  /**
50
54
  * @generated from protobuf message services.documents.GetTemplateResponse
@@ -221,8 +225,9 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
221
225
  constructor() {
222
226
  super("services.documents.GetTemplateRequest", [
223
227
  { no: 1, name: "template_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
224
- { no: 2, name: "data", kind: "message", T: () => TemplateData },
225
- { no: 3, name: "render", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
228
+ { no: 3, name: "render", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
229
+ { no: 4, name: "selection", kind: "message", T: () => TemplateSelection },
230
+ { no: 5, name: "allow_missing", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
226
231
  ]);
227
232
  }
228
233
  create(value?: PartialMessage<GetTemplateRequest>): GetTemplateRequest {
@@ -240,12 +245,15 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
240
245
  case /* int64 template_id */ 1:
241
246
  message.templateId = reader.int64().toNumber();
242
247
  break;
243
- case /* optional resources.documents.templates.TemplateData data */ 2:
244
- message.data = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.data);
245
- break;
246
248
  case /* optional bool render */ 3:
247
249
  message.render = reader.bool();
248
250
  break;
251
+ case /* optional resources.documents.templates.TemplateSelection selection */ 4:
252
+ message.selection = TemplateSelection.internalBinaryRead(reader, reader.uint32(), options, message.selection);
253
+ break;
254
+ case /* optional bool allow_missing */ 5:
255
+ message.allowMissing = reader.bool();
256
+ break;
249
257
  default:
250
258
  let u = options.readUnknownField;
251
259
  if (u === "throw")
@@ -261,12 +269,15 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
261
269
  /* int64 template_id = 1; */
262
270
  if (message.templateId !== 0)
263
271
  writer.tag(1, WireType.Varint).int64(message.templateId);
264
- /* optional resources.documents.templates.TemplateData data = 2; */
265
- if (message.data)
266
- TemplateData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
267
272
  /* optional bool render = 3; */
268
273
  if (message.render !== undefined)
269
274
  writer.tag(3, WireType.Varint).bool(message.render);
275
+ /* optional resources.documents.templates.TemplateSelection selection = 4; */
276
+ if (message.selection)
277
+ TemplateSelection.internalBinaryWrite(message.selection, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
278
+ /* optional bool allow_missing = 5; */
279
+ if (message.allowMissing !== undefined)
280
+ writer.tag(5, WireType.Varint).bool(message.allowMissing);
270
281
  let u = options.writeUnknownFields;
271
282
  if (u !== false)
272
283
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -7,8 +7,12 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
7
  import { ColleaguesService } from "./colleagues";
8
8
  import type { GetColleagueLabelsStatsResponse } from "./colleagues";
9
9
  import type { GetColleagueLabelsStatsRequest } from "./colleagues";
10
- import type { ManageLabelsResponse } from "./colleagues";
11
- import type { ManageLabelsRequest } from "./colleagues";
10
+ import type { ReorderLabelsResponse } from "./colleagues";
11
+ import type { ReorderLabelsRequest } from "./colleagues";
12
+ import type { DeleteLabelResponse } from "./colleagues";
13
+ import type { DeleteLabelRequest } from "./colleagues";
14
+ import type { CreateOrUpdateLabelResponse } from "./colleagues";
15
+ import type { CreateOrUpdateLabelRequest } from "./colleagues";
12
16
  import type { GetColleagueLabelsResponse } from "./colleagues";
13
17
  import type { GetColleagueLabelsRequest } from "./colleagues";
14
18
  import type { SetColleaguePropsResponse } from "./colleagues";
@@ -53,9 +57,17 @@ export interface IColleaguesServiceClient {
53
57
  */
54
58
  getColleagueLabels(input: GetColleagueLabelsRequest, options?: RpcOptions): UnaryCall<GetColleagueLabelsRequest, GetColleagueLabelsResponse>;
55
59
  /**
56
- * @generated from protobuf rpc: ManageLabels
60
+ * @generated from protobuf rpc: CreateOrUpdateLabel
57
61
  */
58
- manageLabels(input: ManageLabelsRequest, options?: RpcOptions): UnaryCall<ManageLabelsRequest, ManageLabelsResponse>;
62
+ createOrUpdateLabel(input: CreateOrUpdateLabelRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse>;
63
+ /**
64
+ * @generated from protobuf rpc: DeleteLabel
65
+ */
66
+ deleteLabel(input: DeleteLabelRequest, options?: RpcOptions): UnaryCall<DeleteLabelRequest, DeleteLabelResponse>;
67
+ /**
68
+ * @generated from protobuf rpc: ReorderLabels
69
+ */
70
+ reorderLabels(input: ReorderLabelsRequest, options?: RpcOptions): UnaryCall<ReorderLabelsRequest, ReorderLabelsResponse>;
59
71
  /**
60
72
  * @generated from protobuf rpc: GetColleagueLabelsStats
61
73
  */
@@ -113,17 +125,31 @@ export class ColleaguesServiceClient implements IColleaguesServiceClient, Servic
113
125
  return stackIntercept<GetColleagueLabelsRequest, GetColleagueLabelsResponse>("unary", this._transport, method, opt, input);
114
126
  }
115
127
  /**
116
- * @generated from protobuf rpc: ManageLabels
128
+ * @generated from protobuf rpc: CreateOrUpdateLabel
117
129
  */
118
- manageLabels(input: ManageLabelsRequest, options?: RpcOptions): UnaryCall<ManageLabelsRequest, ManageLabelsResponse> {
130
+ createOrUpdateLabel(input: CreateOrUpdateLabelRequest, options?: RpcOptions): UnaryCall<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse> {
119
131
  const method = this.methods[6], opt = this._transport.mergeOptions(options);
120
- return stackIntercept<ManageLabelsRequest, ManageLabelsResponse>("unary", this._transport, method, opt, input);
132
+ return stackIntercept<CreateOrUpdateLabelRequest, CreateOrUpdateLabelResponse>("unary", this._transport, method, opt, input);
133
+ }
134
+ /**
135
+ * @generated from protobuf rpc: DeleteLabel
136
+ */
137
+ deleteLabel(input: DeleteLabelRequest, options?: RpcOptions): UnaryCall<DeleteLabelRequest, DeleteLabelResponse> {
138
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
139
+ return stackIntercept<DeleteLabelRequest, DeleteLabelResponse>("unary", this._transport, method, opt, input);
140
+ }
141
+ /**
142
+ * @generated from protobuf rpc: ReorderLabels
143
+ */
144
+ reorderLabels(input: ReorderLabelsRequest, options?: RpcOptions): UnaryCall<ReorderLabelsRequest, ReorderLabelsResponse> {
145
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
146
+ return stackIntercept<ReorderLabelsRequest, ReorderLabelsResponse>("unary", this._transport, method, opt, input);
121
147
  }
122
148
  /**
123
149
  * @generated from protobuf rpc: GetColleagueLabelsStats
124
150
  */
125
151
  getColleagueLabelsStats(input: GetColleagueLabelsStatsRequest, options?: RpcOptions): UnaryCall<GetColleagueLabelsStatsRequest, GetColleagueLabelsStatsResponse> {
126
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
152
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
127
153
  return stackIntercept<GetColleagueLabelsStatsRequest, GetColleagueLabelsStatsResponse>("unary", this._transport, method, opt, input);
128
154
  }
129
155
  }