@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
package/clients.ts CHANGED
@@ -14,12 +14,30 @@ export async function getCalendarCalendarClient() {
14
14
  return new CalendarServiceClient(useGRPCTransport());
15
15
  }
16
16
 
17
+ // Factory for calendar.entries client.
18
+ export async function getCalendarEntriesClient() {
19
+ const { EntriesServiceClient } = await import('~~/gen/ts/services/calendar/entries.client');
20
+ return new EntriesServiceClient(useGRPCTransport());
21
+ }
22
+
17
23
  // Factory for centrum.centrum client.
18
24
  export async function getCentrumCentrumClient() {
19
25
  const { CentrumServiceClient } = await import('~~/gen/ts/services/centrum/centrum.client');
20
26
  return new CentrumServiceClient(useGRPCTransport());
21
27
  }
22
28
 
29
+ // Factory for centrum.dispatches client.
30
+ export async function getCentrumDispatchesClient() {
31
+ const { DispatchesServiceClient } = await import('~~/gen/ts/services/centrum/dispatches.client');
32
+ return new DispatchesServiceClient(useGRPCTransport());
33
+ }
34
+
35
+ // Factory for centrum.units client.
36
+ export async function getCentrumUnitsClient() {
37
+ const { UnitsServiceClient } = await import('~~/gen/ts/services/centrum/units.client');
38
+ return new UnitsServiceClient(useGRPCTransport());
39
+ }
40
+
23
41
  // Factory for citizens.citizens client.
24
42
  export async function getCitizensCitizensClient() {
25
43
  const { CitizensServiceClient } = await import('~~/gen/ts/services/citizens/citizens.client');
@@ -44,12 +62,24 @@ export async function getDocumentsApprovalClient() {
44
62
  return new ApprovalServiceClient(useGRPCTransport());
45
63
  }
46
64
 
65
+ // Factory for documents.categories client.
66
+ export async function getDocumentsCategoriesClient() {
67
+ const { CategoriesServiceClient } = await import('~~/gen/ts/services/documents/categories.client');
68
+ return new CategoriesServiceClient(useGRPCTransport());
69
+ }
70
+
47
71
  // Factory for documents.collab client.
48
72
  export async function getDocumentsCollabClient() {
49
73
  const { CollabServiceClient } = await import('~~/gen/ts/services/documents/collab.client');
50
74
  return new CollabServiceClient(useGRPCTransport());
51
75
  }
52
76
 
77
+ // Factory for documents.comments client.
78
+ export async function getDocumentsCommentsClient() {
79
+ const { CommentsServiceClient } = await import('~~/gen/ts/services/documents/comments.client');
80
+ return new CommentsServiceClient(useGRPCTransport());
81
+ }
82
+
53
83
  // Factory for documents.documents client.
54
84
  export async function getDocumentsDocumentsClient() {
55
85
  const { DocumentsServiceClient } = await import('~~/gen/ts/services/documents/documents.client');
@@ -74,12 +104,24 @@ export async function getDocumentsStatsClient() {
74
104
  return new StatsServiceClient(useGRPCTransport());
75
105
  }
76
106
 
107
+ // Factory for documents.templates client.
108
+ export async function getDocumentsTemplatesClient() {
109
+ const { TemplatesServiceClient } = await import('~~/gen/ts/services/documents/templates.client');
110
+ return new TemplatesServiceClient(useGRPCTransport());
111
+ }
112
+
77
113
  // Factory for filestore.filestore client.
78
114
  export async function getFilestoreFilestoreClient() {
79
115
  const { FilestoreServiceClient } = await import('~~/gen/ts/services/filestore/filestore.client');
80
116
  return new FilestoreServiceClient(useGRPCTransport());
81
117
  }
82
118
 
119
+ // Factory for jobs.colleagues client.
120
+ export async function getJobsColleaguesClient() {
121
+ const { ColleaguesServiceClient } = await import('~~/gen/ts/services/jobs/colleagues.client');
122
+ return new ColleaguesServiceClient(useGRPCTransport());
123
+ }
124
+
83
125
  // Factory for jobs.conduct client.
84
126
  export async function getJobsConductClient() {
85
127
  const { ConductServiceClient } = await import('~~/gen/ts/services/jobs/conduct.client');
@@ -116,12 +158,30 @@ export async function getMailerMailerClient() {
116
158
  return new MailerServiceClient(useGRPCTransport());
117
159
  }
118
160
 
161
+ // Factory for mailer.settings client.
162
+ export async function getMailerSettingsClient() {
163
+ const { SettingsServiceClient } = await import('~~/gen/ts/services/mailer/settings.client');
164
+ return new SettingsServiceClient(useGRPCTransport());
165
+ }
166
+
167
+ // Factory for mailer.thread client.
168
+ export async function getMailerThreadClient() {
169
+ const { ThreadServiceClient } = await import('~~/gen/ts/services/mailer/thread.client');
170
+ return new ThreadServiceClient(useGRPCTransport());
171
+ }
172
+
119
173
  // Factory for notifications.notifications client.
120
174
  export async function getNotificationsNotificationsClient() {
121
175
  const { NotificationsServiceClient } = await import('~~/gen/ts/services/notifications/notifications.client');
122
176
  return new NotificationsServiceClient(useGRPCTransport());
123
177
  }
124
178
 
179
+ // Factory for qualifications.exam client.
180
+ export async function getQualificationsExamClient() {
181
+ const { ExamServiceClient } = await import('~~/gen/ts/services/qualifications/exam.client');
182
+ return new ExamServiceClient(useGRPCTransport());
183
+ }
184
+
125
185
  // Factory for qualifications.qualifications client.
126
186
  export async function getQualificationsQualificationsClient() {
127
187
  const { QualificationsServiceClient } = await import('~~/gen/ts/services/qualifications/qualifications.client');
@@ -21,23 +21,27 @@ export interface PermsOptions {
21
21
  */
22
22
  enabled: boolean;
23
23
  /**
24
- * @generated from protobuf field: optional string service = 2
24
+ * @generated from protobuf field: optional string namespace = 2
25
+ */
26
+ namespace?: string;
27
+ /**
28
+ * @generated from protobuf field: optional string service = 3
25
29
  */
26
30
  service?: string;
27
31
  /**
28
- * @generated from protobuf field: optional string name = 3
32
+ * @generated from protobuf field: optional string name = 4
29
33
  */
30
34
  name?: string;
31
35
  /**
32
- * @generated from protobuf field: repeated string names = 6
36
+ * @generated from protobuf field: repeated string names = 5
33
37
  */
34
38
  names: string[];
35
39
  /**
36
- * @generated from protobuf field: int32 order = 4
40
+ * @generated from protobuf field: int32 order = 6
37
41
  */
38
42
  order: number;
39
43
  /**
40
- * @generated from protobuf field: repeated codegen.perms.Attr attrs = 5
44
+ * @generated from protobuf field: repeated codegen.perms.Attr attrs = 7
41
45
  */
42
46
  attrs: Attr[];
43
47
  }
@@ -75,7 +79,15 @@ export interface ServiceOptions {
75
79
  */
76
80
  icon?: string;
77
81
  /**
78
- * @generated from protobuf field: repeated codegen.perms.AdditionalServicePerm additional_perms = 3
82
+ * @generated from protobuf field: optional string namespace = 3
83
+ */
84
+ namespace?: string;
85
+ /**
86
+ * @generated from protobuf field: optional string service = 4
87
+ */
88
+ service?: string;
89
+ /**
90
+ * @generated from protobuf field: repeated codegen.perms.AdditionalServicePerm additional_perms = 5
79
91
  */
80
92
  additionalPerms: AdditionalServicePerm[];
81
93
  }
@@ -101,11 +113,12 @@ class PermsOptions$Type extends MessageType<PermsOptions> {
101
113
  constructor() {
102
114
  super("codegen.perms.PermsOptions", [
103
115
  { no: 1, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
104
- { no: 2, name: "service", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
105
- { no: 3, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
106
- { no: 6, name: "names", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
107
- { no: 4, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
108
- { no: 5, name: "attrs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Attr }
116
+ { no: 2, name: "namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
117
+ { no: 3, name: "service", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
118
+ { no: 4, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
119
+ { no: 5, name: "names", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
120
+ { no: 6, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
121
+ { no: 7, name: "attrs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Attr }
109
122
  ]);
110
123
  }
111
124
  create(value?: PartialMessage<PermsOptions>): PermsOptions {
@@ -126,19 +139,22 @@ class PermsOptions$Type extends MessageType<PermsOptions> {
126
139
  case /* bool enabled */ 1:
127
140
  message.enabled = reader.bool();
128
141
  break;
129
- case /* optional string service */ 2:
142
+ case /* optional string namespace */ 2:
143
+ message.namespace = reader.string();
144
+ break;
145
+ case /* optional string service */ 3:
130
146
  message.service = reader.string();
131
147
  break;
132
- case /* optional string name */ 3:
148
+ case /* optional string name */ 4:
133
149
  message.name = reader.string();
134
150
  break;
135
- case /* repeated string names */ 6:
151
+ case /* repeated string names */ 5:
136
152
  message.names.push(reader.string());
137
153
  break;
138
- case /* int32 order */ 4:
154
+ case /* int32 order */ 6:
139
155
  message.order = reader.int32();
140
156
  break;
141
- case /* repeated codegen.perms.Attr attrs */ 5:
157
+ case /* repeated codegen.perms.Attr attrs */ 7:
142
158
  message.attrs.push(Attr.internalBinaryRead(reader, reader.uint32(), options));
143
159
  break;
144
160
  default:
@@ -156,21 +172,24 @@ class PermsOptions$Type extends MessageType<PermsOptions> {
156
172
  /* bool enabled = 1; */
157
173
  if (message.enabled !== false)
158
174
  writer.tag(1, WireType.Varint).bool(message.enabled);
159
- /* optional string service = 2; */
175
+ /* optional string namespace = 2; */
176
+ if (message.namespace !== undefined)
177
+ writer.tag(2, WireType.LengthDelimited).string(message.namespace);
178
+ /* optional string service = 3; */
160
179
  if (message.service !== undefined)
161
- writer.tag(2, WireType.LengthDelimited).string(message.service);
162
- /* optional string name = 3; */
180
+ writer.tag(3, WireType.LengthDelimited).string(message.service);
181
+ /* optional string name = 4; */
163
182
  if (message.name !== undefined)
164
- writer.tag(3, WireType.LengthDelimited).string(message.name);
165
- /* int32 order = 4; */
183
+ writer.tag(4, WireType.LengthDelimited).string(message.name);
184
+ /* repeated string names = 5; */
185
+ for (let i = 0; i < message.names.length; i++)
186
+ writer.tag(5, WireType.LengthDelimited).string(message.names[i]);
187
+ /* int32 order = 6; */
166
188
  if (message.order !== 0)
167
- writer.tag(4, WireType.Varint).int32(message.order);
168
- /* repeated codegen.perms.Attr attrs = 5; */
189
+ writer.tag(6, WireType.Varint).int32(message.order);
190
+ /* repeated codegen.perms.Attr attrs = 7; */
169
191
  for (let i = 0; i < message.attrs.length; i++)
170
- Attr.internalBinaryWrite(message.attrs[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
171
- /* repeated string names = 6; */
172
- for (let i = 0; i < message.names.length; i++)
173
- writer.tag(6, WireType.LengthDelimited).string(message.names[i]);
192
+ Attr.internalBinaryWrite(message.attrs[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
174
193
  let u = options.writeUnknownFields;
175
194
  if (u !== false)
176
195
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -258,7 +277,9 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
258
277
  super("codegen.perms.ServiceOptions", [
259
278
  { no: 1, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
260
279
  { no: 2, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
261
- { no: 3, name: "additional_perms", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdditionalServicePerm }
280
+ { no: 3, name: "namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
281
+ { no: 4, name: "service", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
282
+ { no: 5, name: "additional_perms", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdditionalServicePerm }
262
283
  ]);
263
284
  }
264
285
  create(value?: PartialMessage<ServiceOptions>): ServiceOptions {
@@ -280,7 +301,13 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
280
301
  case /* optional string icon */ 2:
281
302
  message.icon = reader.string();
282
303
  break;
283
- case /* repeated codegen.perms.AdditionalServicePerm additional_perms */ 3:
304
+ case /* optional string namespace */ 3:
305
+ message.namespace = reader.string();
306
+ break;
307
+ case /* optional string service */ 4:
308
+ message.service = reader.string();
309
+ break;
310
+ case /* repeated codegen.perms.AdditionalServicePerm additional_perms */ 5:
284
311
  message.additionalPerms.push(AdditionalServicePerm.internalBinaryRead(reader, reader.uint32(), options));
285
312
  break;
286
313
  default:
@@ -301,9 +328,15 @@ class ServiceOptions$Type extends MessageType<ServiceOptions> {
301
328
  /* optional string icon = 2; */
302
329
  if (message.icon !== undefined)
303
330
  writer.tag(2, WireType.LengthDelimited).string(message.icon);
304
- /* repeated codegen.perms.AdditionalServicePerm additional_perms = 3; */
331
+ /* optional string namespace = 3; */
332
+ if (message.namespace !== undefined)
333
+ writer.tag(3, WireType.LengthDelimited).string(message.namespace);
334
+ /* optional string service = 4; */
335
+ if (message.service !== undefined)
336
+ writer.tag(4, WireType.LengthDelimited).string(message.service);
337
+ /* repeated codegen.perms.AdditionalServicePerm additional_perms = 5; */
305
338
  for (let i = 0; i < message.additionalPerms.length; i++)
306
- AdditionalServicePerm.internalBinaryWrite(message.additionalPerms[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
339
+ AdditionalServicePerm.internalBinaryWrite(message.additionalPerms[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
307
340
  let u = options.writeUnknownFields;
308
341
  if (u !== false)
309
342
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fivenet-app/gen",
3
3
  "private": false,
4
- "version": "2026.4.0",
4
+ "version": "2026.5.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "homepage": "https://fivenet.app",
package/perms.ts CHANGED
@@ -1,24 +1,34 @@
1
1
  // Code generated by protoc-gen-fronthelper. DO NOT EDIT.
2
2
  // source: services/auth/auth.proto
3
3
  // source: services/calendar/calendar.proto
4
+ // source: services/calendar/entries.proto
4
5
  // source: services/centrum/centrum.proto
6
+ // source: services/centrum/dispatches.proto
7
+ // source: services/centrum/units.proto
5
8
  // source: services/citizens/citizens.proto
6
9
  // source: services/citizens/labels.proto
7
10
  // source: services/completor/completor.proto
8
11
  // source: services/documents/approval.proto
12
+ // source: services/documents/categories.proto
9
13
  // source: services/documents/collab.proto
14
+ // source: services/documents/comments.proto
10
15
  // source: services/documents/documents.proto
11
16
  // source: services/documents/forms.proto
12
17
  // source: services/documents/stamps.proto
13
18
  // source: services/documents/stats.proto
19
+ // source: services/documents/templates.proto
14
20
  // source: services/filestore/filestore.proto
21
+ // source: services/jobs/colleagues.proto
15
22
  // source: services/jobs/conduct.proto
16
23
  // source: services/jobs/jobs.proto
17
24
  // source: services/jobs/stats.proto
18
25
  // source: services/jobs/timeclock.proto
19
26
  // source: services/livemap/livemap.proto
20
27
  // source: services/mailer/mailer.proto
28
+ // source: services/mailer/settings.proto
29
+ // source: services/mailer/thread.proto
21
30
  // source: services/notifications/notifications.proto
31
+ // source: services/qualifications/exam.proto
22
32
  // source: services/qualifications/qualifications.proto
23
33
  // source: services/settings/accounts.proto
24
34
  // source: services/settings/config.proto
@@ -34,48 +44,45 @@
34
44
 
35
45
  export type Perms = SystemPerms | GRPCServicePerms;
36
46
 
37
- export type SystemPerms = 'Superuser/CanBeSuperuser' | 'Superuser/Superuser' | 'TODOService/TODOMethod';
47
+ export type SystemPerms = 'internal.Superuser/CanBeSuperuser' | 'internal.Superuser/Superuser' | 'TODOService/TODOMethod';
38
48
 
39
49
  export type GRPCServicePerms =
40
50
  | 'auth.AuthService/ChooseCharacter'
41
51
  | 'calendar.CalendarService/CreateCalendar'
42
- | 'centrum.CentrumService/CreateDispatch'
43
- | 'centrum.CentrumService/CreateOrUpdateUnit'
44
- | 'centrum.CentrumService/DeleteDispatch'
45
- | 'centrum.CentrumService/DeleteUnit'
46
52
  | 'centrum.CentrumService/Stream'
47
53
  | 'centrum.CentrumService/TakeControl'
48
- | 'centrum.CentrumService/TakeDispatch'
49
- | 'centrum.CentrumService/UpdateDispatch'
50
54
  | 'centrum.CentrumService/UpdateDispatchers'
51
55
  | 'centrum.CentrumService/UpdateSettings'
56
+ | 'centrum.DispatchesService/CreateDispatch'
57
+ | 'centrum.DispatchesService/DeleteDispatch'
58
+ | 'centrum.DispatchesService/TakeDispatch'
59
+ | 'centrum.DispatchesService/UpdateDispatch'
60
+ | 'centrum.UnitsService/CreateOrUpdateUnit'
61
+ | 'centrum.UnitsService/DeleteUnit'
52
62
  | 'citizens.CitizensService/GetUser'
53
63
  | 'citizens.CitizensService/ListCitizens'
54
64
  | 'citizens.CitizensService/ListUserActivity'
55
65
  | 'citizens.CitizensService/SetUserProps'
56
66
  | 'citizens.LabelsService/CreateOrUpdateLabel'
57
67
  | 'citizens.LabelsService/DeleteLabel'
58
- | 'completor.CompletorService/CompleteCitizenLabels'
68
+ | 'citizens.LabelsService/ListLabels'
59
69
  | 'documents.ApprovalService/DeleteApprovalTasks'
60
70
  | 'documents.ApprovalService/RevokeApproval'
61
71
  | 'documents.ApprovalService/UpsertApprovalPolicy'
62
72
  | 'documents.ApprovalService/UpsertApprovalTasks'
73
+ | 'documents.CategoriesService/CreateOrUpdateCategory'
74
+ | 'documents.CategoriesService/DeleteCategory'
75
+ | 'documents.CategoriesService/ListCategories'
76
+ | 'documents.CommentsService/DeleteComment'
63
77
  | 'documents.DocumentsService/AddDocumentReference'
64
78
  | 'documents.DocumentsService/AddDocumentRelation'
65
79
  | 'documents.DocumentsService/ChangeDocumentOwner'
66
80
  | 'documents.DocumentsService/CreateDocumentReq'
67
- | 'documents.DocumentsService/CreateOrUpdateCategory'
68
- | 'documents.DocumentsService/CreateTemplate'
69
- | 'documents.DocumentsService/DeleteCategory'
70
- | 'documents.DocumentsService/DeleteComment'
71
81
  | 'documents.DocumentsService/DeleteDocument'
72
82
  | 'documents.DocumentsService/DeleteDocumentReq'
73
- | 'documents.DocumentsService/DeleteTemplate'
74
- | 'documents.DocumentsService/ListCategories'
75
83
  | 'documents.DocumentsService/ListDocumentActivity'
76
84
  | 'documents.DocumentsService/ListDocumentReqs'
77
85
  | 'documents.DocumentsService/ListDocuments'
78
- | 'documents.DocumentsService/ListTemplates'
79
86
  | 'documents.DocumentsService/ListUserDocuments'
80
87
  | 'documents.DocumentsService/SetDocumentReminder'
81
88
  | 'documents.DocumentsService/ToggleDocument'
@@ -85,16 +92,19 @@ export type GRPCServicePerms =
85
92
  | 'documents.StampsService/ListUsableStamps'
86
93
  | 'documents.StampsService/UpsertStamp'
87
94
  | 'documents.StatsService/GetStats'
95
+ | 'documents.TemplatesService/CreateTemplate'
96
+ | 'documents.TemplatesService/DeleteTemplate'
97
+ | 'documents.TemplatesService/ListTemplates'
98
+ | 'jobs.ColleaguesService/GetColleague'
99
+ | 'jobs.ColleaguesService/ListColleagueActivity'
100
+ | 'jobs.ColleaguesService/ListColleagues'
101
+ | 'jobs.ColleaguesService/ManageLabels'
102
+ | 'jobs.ColleaguesService/SetColleagueProps'
88
103
  | 'jobs.ConductService/CreateConductEntry'
89
104
  | 'jobs.ConductService/DeleteConductEntry'
90
105
  | 'jobs.ConductService/ListConductEntries'
91
106
  | 'jobs.ConductService/UpdateConductEntry'
92
107
  | 'jobs.ConductService/UploadFile'
93
- | 'jobs.JobsService/GetColleague'
94
- | 'jobs.JobsService/ListColleagueActivity'
95
- | 'jobs.JobsService/ListColleagues'
96
- | 'jobs.JobsService/ManageLabels'
97
- | 'jobs.JobsService/SetColleagueProps'
98
108
  | 'jobs.JobsService/SetMOTD'
99
109
  | 'jobs.StatsService/GetStats'
100
110
  | 'jobs.TimeclockService/ListInactiveEmployees'
@@ -130,13 +140,18 @@ export const GRPCServices = [
130
140
  'auth.AuthService',
131
141
  'calendar.CalendarService',
132
142
  'centrum.CentrumService',
143
+ 'centrum.DispatchesService',
144
+ 'centrum.UnitsService',
133
145
  'citizens.CitizensService',
134
146
  'citizens.LabelsService',
135
- 'completor.CompletorService',
136
147
  'documents.ApprovalService',
148
+ 'documents.CategoriesService',
149
+ 'documents.CommentsService',
137
150
  'documents.DocumentsService',
138
151
  'documents.StampsService',
139
152
  'documents.StatsService',
153
+ 'documents.TemplatesService',
154
+ 'jobs.ColleaguesService',
140
155
  'jobs.ConductService',
141
156
  'jobs.JobsService',
142
157
  'jobs.StatsService',
@@ -153,43 +168,40 @@ export const GRPCServices = [
153
168
  export const GRPCServiceMethods = [
154
169
  'auth.AuthService/ChooseCharacter',
155
170
  'calendar.CalendarService/CreateCalendar',
156
- 'centrum.CentrumService/CreateDispatch',
157
- 'centrum.CentrumService/CreateOrUpdateUnit',
158
- 'centrum.CentrumService/DeleteDispatch',
159
- 'centrum.CentrumService/DeleteUnit',
160
171
  'centrum.CentrumService/Stream',
161
172
  'centrum.CentrumService/TakeControl',
162
- 'centrum.CentrumService/TakeDispatch',
163
- 'centrum.CentrumService/UpdateDispatch',
164
173
  'centrum.CentrumService/UpdateDispatchers',
165
174
  'centrum.CentrumService/UpdateSettings',
175
+ 'centrum.DispatchesService/CreateDispatch',
176
+ 'centrum.DispatchesService/DeleteDispatch',
177
+ 'centrum.DispatchesService/TakeDispatch',
178
+ 'centrum.DispatchesService/UpdateDispatch',
179
+ 'centrum.UnitsService/CreateOrUpdateUnit',
180
+ 'centrum.UnitsService/DeleteUnit',
166
181
  'citizens.CitizensService/GetUser',
167
182
  'citizens.CitizensService/ListCitizens',
168
183
  'citizens.CitizensService/ListUserActivity',
169
184
  'citizens.CitizensService/SetUserProps',
170
185
  'citizens.LabelsService/CreateOrUpdateLabel',
171
186
  'citizens.LabelsService/DeleteLabel',
172
- 'completor.CompletorService/CompleteCitizenLabels',
187
+ 'citizens.LabelsService/ListLabels',
173
188
  'documents.ApprovalService/DeleteApprovalTasks',
174
189
  'documents.ApprovalService/RevokeApproval',
175
190
  'documents.ApprovalService/UpsertApprovalPolicy',
176
191
  'documents.ApprovalService/UpsertApprovalTasks',
192
+ 'documents.CategoriesService/CreateOrUpdateCategory',
193
+ 'documents.CategoriesService/DeleteCategory',
194
+ 'documents.CategoriesService/ListCategories',
195
+ 'documents.CommentsService/DeleteComment',
177
196
  'documents.DocumentsService/AddDocumentReference',
178
197
  'documents.DocumentsService/AddDocumentRelation',
179
198
  'documents.DocumentsService/ChangeDocumentOwner',
180
199
  'documents.DocumentsService/CreateDocumentReq',
181
- 'documents.DocumentsService/CreateOrUpdateCategory',
182
- 'documents.DocumentsService/CreateTemplate',
183
- 'documents.DocumentsService/DeleteCategory',
184
- 'documents.DocumentsService/DeleteComment',
185
200
  'documents.DocumentsService/DeleteDocument',
186
201
  'documents.DocumentsService/DeleteDocumentReq',
187
- 'documents.DocumentsService/DeleteTemplate',
188
- 'documents.DocumentsService/ListCategories',
189
202
  'documents.DocumentsService/ListDocumentActivity',
190
203
  'documents.DocumentsService/ListDocumentReqs',
191
204
  'documents.DocumentsService/ListDocuments',
192
- 'documents.DocumentsService/ListTemplates',
193
205
  'documents.DocumentsService/ListUserDocuments',
194
206
  'documents.DocumentsService/SetDocumentReminder',
195
207
  'documents.DocumentsService/ToggleDocument',
@@ -199,16 +211,19 @@ export const GRPCServiceMethods = [
199
211
  'documents.StampsService/ListUsableStamps',
200
212
  'documents.StampsService/UpsertStamp',
201
213
  'documents.StatsService/GetStats',
214
+ 'documents.TemplatesService/CreateTemplate',
215
+ 'documents.TemplatesService/DeleteTemplate',
216
+ 'documents.TemplatesService/ListTemplates',
217
+ 'jobs.ColleaguesService/GetColleague',
218
+ 'jobs.ColleaguesService/ListColleagueActivity',
219
+ 'jobs.ColleaguesService/ListColleagues',
220
+ 'jobs.ColleaguesService/ManageLabels',
221
+ 'jobs.ColleaguesService/SetColleagueProps',
202
222
  'jobs.ConductService/CreateConductEntry',
203
223
  'jobs.ConductService/DeleteConductEntry',
204
224
  'jobs.ConductService/ListConductEntries',
205
225
  'jobs.ConductService/UpdateConductEntry',
206
226
  'jobs.ConductService/UploadFile',
207
- 'jobs.JobsService/GetColleague',
208
- 'jobs.JobsService/ListColleagueActivity',
209
- 'jobs.JobsService/ListColleagues',
210
- 'jobs.JobsService/ManageLabels',
211
- 'jobs.JobsService/SetColleagueProps',
212
227
  'jobs.JobsService/SetMOTD',
213
228
  'jobs.StatsService/GetStats',
214
229
  'jobs.TimeclockService/ListInactiveEmployees',
@@ -238,4 +253,5 @@ export const GRPCServiceMethods = [
238
253
  'wiki.WikiService/ListPageActivity',
239
254
  'wiki.WikiService/ListPages',
240
255
  'wiki.WikiService/UpdatePage',
241
- 'wiki.WikiService/UploadFile',];
256
+ 'wiki.WikiService/UploadFile',
257
+ ];
@@ -31,27 +31,31 @@ export interface Account {
31
31
  */
32
32
  updatedAt?: Timestamp;
33
33
  /**
34
- * @generated from protobuf field: bool enabled = 4
34
+ * @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4
35
+ */
36
+ deletedAt?: Timestamp;
37
+ /**
38
+ * @generated from protobuf field: bool enabled = 5
35
39
  */
36
40
  enabled: boolean;
37
41
  /**
38
- * @generated from protobuf field: string username = 5
42
+ * @generated from protobuf field: string username = 6
39
43
  */
40
44
  username: string;
41
45
  /**
42
- * @generated from protobuf field: string license = 6
46
+ * @generated from protobuf field: string license = 7
43
47
  */
44
48
  license: string;
45
49
  /**
46
- * @generated from protobuf field: optional resources.accounts.AccountGroups groups = 7
50
+ * @generated from protobuf field: optional resources.accounts.AccountGroups groups = 8
47
51
  */
48
52
  groups?: AccountGroups;
49
53
  /**
50
- * @generated from protobuf field: optional int32 last_char = 8
54
+ * @generated from protobuf field: optional int32 last_char = 9
51
55
  */
52
56
  lastChar?: number;
53
57
  /**
54
- * @generated from protobuf field: repeated resources.accounts.oauth2.OAuth2Account oauth2_accounts = 9
58
+ * @generated from protobuf field: repeated resources.accounts.oauth2.OAuth2Account oauth2_accounts = 10
55
59
  */
56
60
  oauth2Accounts: OAuth2Account[];
57
61
  }
@@ -88,12 +92,13 @@ class Account$Type extends MessageType<Account> {
88
92
  { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\"" } },
89
93
  { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
90
94
  { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
91
- { no: 4, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
92
- { no: 5, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } } } },
93
- { no: 6, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
94
- { no: 7, name: "groups", kind: "message", T: () => AccountGroups },
95
- { no: 8, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
96
- { no: 9, name: "oauth2_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account, options: { "buf.validate.field": { repeated: { maxItems: "10" } }, "tagger.tags": "alias:\"oauth2_account\"" } }
95
+ { no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
96
+ { no: 5, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
97
+ { no: 6, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } } } },
98
+ { no: 7, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
99
+ { no: 8, name: "groups", kind: "message", T: () => AccountGroups },
100
+ { no: 9, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
101
+ { no: 10, name: "oauth2_accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account, options: { "buf.validate.field": { repeated: { maxItems: "10" } }, "tagger.tags": "alias:\"oauth2_account\"" } }
97
102
  ]);
98
103
  }
99
104
  create(value?: PartialMessage<Account>): Account {
@@ -121,22 +126,25 @@ class Account$Type extends MessageType<Account> {
121
126
  case /* optional resources.timestamp.Timestamp updated_at */ 3:
122
127
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
123
128
  break;
124
- case /* bool enabled */ 4:
129
+ case /* optional resources.timestamp.Timestamp deleted_at */ 4:
130
+ message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
131
+ break;
132
+ case /* bool enabled */ 5:
125
133
  message.enabled = reader.bool();
126
134
  break;
127
- case /* string username */ 5:
135
+ case /* string username */ 6:
128
136
  message.username = reader.string();
129
137
  break;
130
- case /* string license */ 6:
138
+ case /* string license */ 7:
131
139
  message.license = reader.string();
132
140
  break;
133
- case /* optional resources.accounts.AccountGroups groups */ 7:
141
+ case /* optional resources.accounts.AccountGroups groups */ 8:
134
142
  message.groups = AccountGroups.internalBinaryRead(reader, reader.uint32(), options, message.groups);
135
143
  break;
136
- case /* optional int32 last_char */ 8:
144
+ case /* optional int32 last_char */ 9:
137
145
  message.lastChar = reader.int32();
138
146
  break;
139
- case /* repeated resources.accounts.oauth2.OAuth2Account oauth2_accounts */ 9:
147
+ case /* repeated resources.accounts.oauth2.OAuth2Account oauth2_accounts */ 10:
140
148
  message.oauth2Accounts.push(OAuth2Account.internalBinaryRead(reader, reader.uint32(), options));
141
149
  break;
142
150
  default:
@@ -160,24 +168,27 @@ class Account$Type extends MessageType<Account> {
160
168
  /* optional resources.timestamp.Timestamp updated_at = 3; */
161
169
  if (message.updatedAt)
162
170
  Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
163
- /* bool enabled = 4; */
171
+ /* optional resources.timestamp.Timestamp deleted_at = 4; */
172
+ if (message.deletedAt)
173
+ Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
174
+ /* bool enabled = 5; */
164
175
  if (message.enabled !== false)
165
- writer.tag(4, WireType.Varint).bool(message.enabled);
166
- /* string username = 5; */
176
+ writer.tag(5, WireType.Varint).bool(message.enabled);
177
+ /* string username = 6; */
167
178
  if (message.username !== "")
168
- writer.tag(5, WireType.LengthDelimited).string(message.username);
169
- /* string license = 6; */
179
+ writer.tag(6, WireType.LengthDelimited).string(message.username);
180
+ /* string license = 7; */
170
181
  if (message.license !== "")
171
- writer.tag(6, WireType.LengthDelimited).string(message.license);
172
- /* optional resources.accounts.AccountGroups groups = 7; */
182
+ writer.tag(7, WireType.LengthDelimited).string(message.license);
183
+ /* optional resources.accounts.AccountGroups groups = 8; */
173
184
  if (message.groups)
174
- AccountGroups.internalBinaryWrite(message.groups, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
175
- /* optional int32 last_char = 8; */
185
+ AccountGroups.internalBinaryWrite(message.groups, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
186
+ /* optional int32 last_char = 9; */
176
187
  if (message.lastChar !== undefined)
177
- writer.tag(8, WireType.Varint).int32(message.lastChar);
178
- /* repeated resources.accounts.oauth2.OAuth2Account oauth2_accounts = 9; */
188
+ writer.tag(9, WireType.Varint).int32(message.lastChar);
189
+ /* repeated resources.accounts.oauth2.OAuth2Account oauth2_accounts = 10; */
179
190
  for (let i = 0; i < message.oauth2Accounts.length; i++)
180
- OAuth2Account.internalBinaryWrite(message.oauth2Accounts[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
191
+ OAuth2Account.internalBinaryWrite(message.oauth2Accounts[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
181
192
  let u = options.writeUnknownFields;
182
193
  if (u !== false)
183
194
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);