@fivenet-app/gen 2025.5.3 → 2026.3.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 (195) hide show
  1. package/README.md +1 -1
  2. package/buf/validate/validate.ts +11301 -0
  3. package/clients.ts +193 -154
  4. package/codegen/dbscanner/dbscanner.ts +91 -0
  5. package/codegen/perms/perms.ts +287 -0
  6. package/codegen/sanitizer/sanitizer.ts +113 -0
  7. package/google/protobuf/any.ts +4 -3
  8. package/google/protobuf/descriptor.ts +393 -239
  9. package/google/protobuf/duration.ts +4 -3
  10. package/google/protobuf/struct.ts +485 -0
  11. package/google/protobuf/timestamp.ts +4 -3
  12. package/package.json +3 -3
  13. package/perms.ts +217 -160
  14. package/resources/accounts/accounts.ts +115 -47
  15. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
  16. package/resources/audit/audit.ts +172 -53
  17. package/resources/calendar/{access.ts → access/access.ts} +72 -71
  18. package/resources/calendar/calendar.ts +79 -543
  19. package/resources/calendar/entries/entries.ts +474 -0
  20. package/resources/centrum/access/access.ts +345 -0
  21. package/resources/centrum/dispatchers/dispatchers.ts +149 -0
  22. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
  23. package/resources/centrum/joblist.ts +136 -0
  24. package/resources/centrum/settings/settings.ts +657 -0
  25. package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
  26. package/resources/centrum/{units.ts → units/units.ts} +230 -130
  27. package/resources/clientconfig/clientconfig.ts +1015 -0
  28. package/resources/collab/collab.ts +805 -0
  29. package/resources/common/content/content.ts +169 -63
  30. package/resources/common/content/diff_activity.ts +267 -0
  31. package/resources/common/database/database.ts +92 -35
  32. package/resources/common/error.ts +17 -16
  33. package/resources/common/i18n.ts +20 -24
  34. package/resources/common/id_mapping.ts +69 -0
  35. package/resources/common/tests/objects.ts +4 -3
  36. package/resources/{common/cron → cron}/cron.ts +77 -65
  37. package/resources/discord/discord.ts +209 -0
  38. package/resources/documents/{access.ts → access/access.ts} +75 -76
  39. package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
  40. package/resources/documents/approval/approval.ts +945 -0
  41. package/resources/documents/{category.ts → category/category.ts} +25 -32
  42. package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
  43. package/resources/documents/data/data.ts +303 -0
  44. package/resources/documents/documents.ts +374 -686
  45. package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
  46. package/resources/documents/pins/pins.ts +127 -0
  47. package/resources/documents/references/references.ts +187 -0
  48. package/resources/documents/relations/relations.ts +184 -0
  49. package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
  50. package/resources/documents/stamps/stamp.ts +355 -0
  51. package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
  52. package/resources/documents/workflow/workflow.ts +600 -0
  53. package/resources/file/file.ts +152 -0
  54. package/{services/settings → resources/file}/filestore.ts +179 -165
  55. package/resources/file/meta.ts +148 -0
  56. package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
  57. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
  58. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
  59. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
  60. package/resources/jobs/jobs.ts +14 -13
  61. package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
  62. package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
  63. package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
  64. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
  65. package/resources/laws/laws.ts +40 -49
  66. package/resources/livemap/coords.ts +81 -0
  67. package/resources/livemap/heatmap/heatmap.ts +93 -0
  68. package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
  69. package/resources/livemap/markers/user_marker.ts +377 -0
  70. package/resources/mailer/{access.ts → access/access.ts} +119 -118
  71. package/resources/mailer/{email.ts → emails/email.ts} +38 -41
  72. package/resources/mailer/{events.ts → events/events.ts} +44 -43
  73. package/resources/mailer/{message.ts → messages/message.ts} +69 -74
  74. package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
  75. package/resources/mailer/{template.ts → templates/template.ts} +37 -40
  76. package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
  77. package/resources/notifications/clientview/clientview.ts +239 -0
  78. package/resources/notifications/{events.ts → events/events.ts} +67 -130
  79. package/resources/notifications/notifications.ts +55 -60
  80. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
  81. package/resources/permissions/events/events.ts +149 -0
  82. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
  83. package/resources/qualifications/{access.ts → access/access.ts} +43 -42
  84. package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
  85. package/resources/qualifications/qualifications.ts +327 -388
  86. package/resources/settings/banner.ts +14 -21
  87. package/resources/settings/config.ts +663 -79
  88. package/resources/settings/data.ts +90 -0
  89. package/resources/settings/perms.ts +151 -0
  90. package/resources/settings/status.ts +533 -0
  91. package/resources/stats/stats.ts +382 -2
  92. package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
  93. package/resources/sync/data/data.ts +1001 -0
  94. package/resources/sync/data/v2/data.ts +220 -0
  95. package/resources/timestamp/timestamp.ts +3 -2
  96. package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
  97. package/resources/userinfo/userinfo.ts +442 -0
  98. package/resources/users/{activity.ts → activity/activity.ts} +182 -166
  99. package/resources/users/{labels.ts → labels/labels.ts} +27 -30
  100. package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
  101. package/resources/users/{props.ts → props/props.ts} +109 -77
  102. package/resources/users/short/user.ts +184 -0
  103. package/resources/users/user.ts +528 -0
  104. package/resources/vehicles/activity/activity.ts +231 -0
  105. package/resources/vehicles/props/props.ts +125 -0
  106. package/resources/vehicles/vehicles.ts +43 -18
  107. package/resources/wiki/{access.ts → access/access.ts} +72 -71
  108. package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
  109. package/resources/wiki/page.ts +164 -93
  110. package/services/auth/auth.client.ts +45 -35
  111. package/services/auth/auth.ts +498 -288
  112. package/services/calendar/calendar.client.ts +32 -91
  113. package/services/calendar/calendar.ts +157 -134
  114. package/services/centrum/centrum.client.ts +97 -137
  115. package/services/centrum/centrum.ts +755 -352
  116. package/services/citizens/citizens.client.ts +70 -39
  117. package/services/citizens/citizens.ts +226 -112
  118. package/services/completor/completor.client.ts +16 -35
  119. package/services/completor/completor.ts +95 -54
  120. package/services/documents/approval.client.ts +188 -0
  121. package/services/documents/approval.ts +1776 -0
  122. package/services/documents/collab.client.ts +46 -0
  123. package/services/documents/collab.ts +13 -0
  124. package/services/documents/documents.client.ts +88 -217
  125. package/services/documents/documents.ts +579 -619
  126. package/services/documents/forms.client.ts +51 -0
  127. package/services/documents/forms.ts +232 -0
  128. package/services/documents/stamps.client.ts +77 -0
  129. package/services/documents/stamps.ts +481 -0
  130. package/services/documents/stats.client.ts +38 -0
  131. package/services/documents/stats.ts +245 -0
  132. package/services/filestore/filestore.client.ts +86 -0
  133. package/services/filestore/filestore.ts +262 -0
  134. package/services/jobs/conduct.client.ts +40 -28
  135. package/services/jobs/conduct.ts +183 -56
  136. package/services/jobs/jobs.client.ts +22 -61
  137. package/services/jobs/jobs.ts +138 -121
  138. package/services/jobs/stats.client.ts +38 -0
  139. package/services/jobs/stats.ts +207 -0
  140. package/services/jobs/timeclock.client.ts +8 -19
  141. package/services/jobs/timeclock.ts +76 -75
  142. package/services/livemap/livemap.client.ts +8 -19
  143. package/services/livemap/livemap.ts +297 -126
  144. package/services/mailer/mailer.client.ts +44 -127
  145. package/services/mailer/mailer.ts +266 -269
  146. package/services/notifications/notifications.client.ts +65 -0
  147. package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
  148. package/services/qualifications/qualifications.client.ts +46 -91
  149. package/services/qualifications/qualifications.ts +250 -209
  150. package/services/settings/accounts.client.ts +31 -33
  151. package/services/settings/accounts.ts +251 -67
  152. package/services/settings/config.client.ts +6 -13
  153. package/services/settings/config.ts +8 -7
  154. package/services/settings/cron.client.ts +4 -7
  155. package/services/settings/cron.ts +7 -6
  156. package/services/settings/laws.client.ts +10 -25
  157. package/services/settings/laws.ts +30 -29
  158. package/services/settings/settings.client.ts +57 -103
  159. package/services/settings/settings.ts +237 -633
  160. package/services/settings/system.client.ts +103 -0
  161. package/services/settings/system.ts +718 -0
  162. package/services/stats/stats.client.ts +9 -8
  163. package/services/stats/stats.ts +27 -26
  164. package/services/sync/sync.client.ts +16 -15
  165. package/services/sync/sync.ts +174 -97
  166. package/services/sync/v2/sync.client.ts +331 -0
  167. package/services/sync/v2/sync.ts +1766 -0
  168. package/services/vehicles/vehicles.client.ts +17 -7
  169. package/services/vehicles/vehicles.ts +170 -25
  170. package/services/wiki/collab.client.ts +46 -0
  171. package/services/wiki/collab.ts +13 -0
  172. package/services/wiki/wiki.client.ts +28 -37
  173. package/services/wiki/wiki.ts +97 -67
  174. package/svcs.ts +174 -106
  175. package/resources/centrum/attributes.ts +0 -186
  176. package/resources/centrum/disponents.ts +0 -81
  177. package/resources/centrum/settings.ts +0 -307
  178. package/resources/documents/workflow.ts +0 -351
  179. package/resources/filestore/file.ts +0 -204
  180. package/resources/internet/access.ts +0 -358
  181. package/resources/internet/ads.ts +0 -257
  182. package/resources/internet/domain.ts +0 -328
  183. package/resources/internet/page.ts +0 -428
  184. package/resources/internet/search.ts +0 -128
  185. package/resources/livemap/tracker.ts +0 -81
  186. package/resources/sync/data.ts +0 -587
  187. package/resources/users/users.ts +0 -435
  188. package/services/internet/ads.client.ts +0 -41
  189. package/services/internet/ads.ts +0 -145
  190. package/services/internet/domain.client.ts +0 -109
  191. package/services/internet/domain.ts +0 -658
  192. package/services/internet/internet.client.ts +0 -58
  193. package/services/internet/internet.ts +0 -268
  194. package/services/notificator/notificator.client.ts +0 -76
  195. package/services/settings/filestore.client.ts +0 -75
@@ -1,5 +1,6 @@
1
- // @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
2
- // @generated from protobuf file "resources/sync/activity.proto" (package "resources.sync", syntax proto3)
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 "resources/sync/activity/activity.proto" (package "resources.sync.activity", syntax proto3)
3
+ // tslint:disable
3
4
  // @ts-nocheck
4
5
  import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
6
  import type { IBinaryWriter } from "@protobuf-ts/runtime";
@@ -10,110 +11,128 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
11
  import type { PartialMessage } from "@protobuf-ts/runtime";
11
12
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
13
  import { MessageType } from "@protobuf-ts/runtime";
13
- import { ColleagueProps as ColleagueProps$ } from "../jobs/colleagues";
14
- import { UserProps as UserProps$ } from "../users/props";
14
+ import { AccountGroups } from "../../accounts/accounts";
15
+ import { ColleagueProps as ColleagueProps$ } from "../../jobs/colleagues/colleagues";
16
+ import { UserProps as UserProps$ } from "../../users/props/props";
15
17
  /**
16
18
  * Connect an identifier/license to the provider with the specified external id
17
19
  * (e.g., auto discord social connect on server join)
18
20
  *
19
- * @generated from protobuf message resources.sync.UserOAuth2Conn
21
+ * @generated from protobuf message resources.sync.activity.UserOAuth2Conn
20
22
  */
21
23
  export interface UserOAuth2Conn {
22
24
  /**
23
- * @generated from protobuf field: string provider_name = 1;
25
+ * @generated from protobuf field: string provider_name = 1
24
26
  */
25
27
  providerName: string;
26
28
  /**
27
- * @generated from protobuf field: string identifier = 2;
29
+ * @generated from protobuf field: string identifier = 2
28
30
  */
29
31
  identifier: string;
30
32
  /**
31
- * @generated from protobuf field: string external_id = 3;
33
+ * @generated from protobuf field: string external_id = 3
32
34
  */
33
35
  externalId: string;
34
36
  /**
35
- * @generated from protobuf field: string username = 4;
37
+ * @generated from protobuf field: string username = 4
36
38
  */
37
39
  username: string;
38
40
  }
39
41
  /**
40
- * @generated from protobuf message resources.sync.UserProps
42
+ * @generated from protobuf message resources.sync.activity.UserProps
41
43
  */
42
44
  export interface UserProps {
43
45
  /**
44
- * @generated from protobuf field: optional string reason = 1;
46
+ * @generated from protobuf field: optional string reason = 1
45
47
  */
46
48
  reason?: string;
47
49
  /**
48
- * @generated from protobuf field: resources.users.UserProps props = 2;
50
+ * @generated from protobuf field: resources.users.props.UserProps props = 2
49
51
  */
50
52
  props?: UserProps$;
51
53
  }
52
54
  /**
53
- * @generated from protobuf message resources.sync.ColleagueProps
55
+ * @generated from protobuf message resources.sync.activity.ColleagueProps
54
56
  */
55
57
  export interface ColleagueProps {
56
58
  /**
57
- * @generated from protobuf field: optional string reason = 1;
59
+ * @generated from protobuf field: optional string reason = 1
58
60
  */
59
61
  reason?: string;
60
62
  /**
61
- * @generated from protobuf field: resources.jobs.ColleagueProps props = 2;
63
+ * @generated from protobuf field: resources.jobs.colleagues.ColleagueProps props = 2
62
64
  */
63
65
  props?: ColleagueProps$;
64
66
  }
65
67
  /**
66
- * @generated from protobuf message resources.sync.UserUpdate
68
+ * @generated from protobuf message resources.sync.activity.UserUpdate
67
69
  */
68
70
  export interface UserUpdate {
69
71
  /**
70
- * @generated from protobuf field: int32 user_id = 1;
72
+ * @generated from protobuf field: int32 user_id = 1
71
73
  */
72
74
  userId: number;
73
75
  /**
74
- * @generated from protobuf field: optional string group = 2;
76
+ * @generated from protobuf field: optional string group = 2
75
77
  */
76
78
  group?: string;
77
79
  /**
78
80
  * Char details
79
81
  *
80
- * @generated from protobuf field: optional string job = 3;
82
+ * @generated from protobuf field: optional string job = 3
81
83
  */
82
84
  job?: string;
83
85
  /**
84
- * @generated from protobuf field: optional int32 job_grade = 4;
86
+ * @generated from protobuf field: optional int32 job_grade = 4
85
87
  */
86
88
  jobGrade?: number;
87
89
  /**
88
- * @generated from protobuf field: optional string firstname = 5;
90
+ * @generated from protobuf field: optional string firstname = 5
89
91
  */
90
92
  firstname?: string;
91
93
  /**
92
- * @generated from protobuf field: optional string lastname = 6;
94
+ * @generated from protobuf field: optional string lastname = 6
93
95
  */
94
96
  lastname?: string;
95
97
  }
96
98
  /**
97
- * @generated from protobuf message resources.sync.TimeclockUpdate
99
+ * @generated from protobuf message resources.sync.activity.TimeclockUpdate
98
100
  */
99
101
  export interface TimeclockUpdate {
100
102
  /**
101
- * @generated from protobuf field: string job = 1;
103
+ * @generated from protobuf field: string job = 1
102
104
  */
103
105
  job: string;
104
106
  /**
105
- * @generated from protobuf field: int32 user_id = 2;
107
+ * @generated from protobuf field: int32 user_id = 2
106
108
  */
107
109
  userId: number;
108
110
  /**
109
- * @generated from protobuf field: bool start = 3;
111
+ * @generated from protobuf field: bool start = 3
110
112
  */
111
113
  start: boolean;
112
114
  }
115
+ /**
116
+ * @generated from protobuf message resources.sync.activity.AccountUpdate
117
+ */
118
+ export interface AccountUpdate {
119
+ /**
120
+ * @generated from protobuf field: string license = 1
121
+ */
122
+ license: string;
123
+ /**
124
+ * @generated from protobuf field: optional string group = 2
125
+ */
126
+ group?: string;
127
+ /**
128
+ * @generated from protobuf field: resources.accounts.AccountGroups groups = 3
129
+ */
130
+ groups?: AccountGroups;
131
+ }
113
132
  // @generated message type with reflection information, may provide speed optimized methods
114
133
  class UserOAuth2Conn$Type extends MessageType<UserOAuth2Conn> {
115
134
  constructor() {
116
- super("resources.sync.UserOAuth2Conn", [
135
+ super("resources.sync.activity.UserOAuth2Conn", [
117
136
  { no: 1, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
118
137
  { no: 2, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
119
138
  { no: 3, name: "external_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -178,15 +197,15 @@ class UserOAuth2Conn$Type extends MessageType<UserOAuth2Conn> {
178
197
  }
179
198
  }
180
199
  /**
181
- * @generated MessageType for protobuf message resources.sync.UserOAuth2Conn
200
+ * @generated MessageType for protobuf message resources.sync.activity.UserOAuth2Conn
182
201
  */
183
202
  export const UserOAuth2Conn = new UserOAuth2Conn$Type();
184
203
  // @generated message type with reflection information, may provide speed optimized methods
185
204
  class UserProps$Type extends MessageType<UserProps> {
186
205
  constructor() {
187
- super("resources.sync.UserProps", [
188
- { no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
189
- { no: 2, name: "props", kind: "message", T: () => UserProps$, options: { "validate.rules": { message: { required: true } } } }
206
+ super("resources.sync.activity.UserProps", [
207
+ { no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
208
+ { no: 2, name: "props", kind: "message", T: () => UserProps$, options: { "buf.validate.field": { required: true } } }
190
209
  ]);
191
210
  }
192
211
  create(value?: PartialMessage<UserProps>): UserProps {
@@ -203,7 +222,7 @@ class UserProps$Type extends MessageType<UserProps> {
203
222
  case /* optional string reason */ 1:
204
223
  message.reason = reader.string();
205
224
  break;
206
- case /* resources.users.UserProps props */ 2:
225
+ case /* resources.users.props.UserProps props */ 2:
207
226
  message.props = UserProps$.internalBinaryRead(reader, reader.uint32(), options, message.props);
208
227
  break;
209
228
  default:
@@ -221,7 +240,7 @@ class UserProps$Type extends MessageType<UserProps> {
221
240
  /* optional string reason = 1; */
222
241
  if (message.reason !== undefined)
223
242
  writer.tag(1, WireType.LengthDelimited).string(message.reason);
224
- /* resources.users.UserProps props = 2; */
243
+ /* resources.users.props.UserProps props = 2; */
225
244
  if (message.props)
226
245
  UserProps$.internalBinaryWrite(message.props, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
227
246
  let u = options.writeUnknownFields;
@@ -231,15 +250,15 @@ class UserProps$Type extends MessageType<UserProps> {
231
250
  }
232
251
  }
233
252
  /**
234
- * @generated MessageType for protobuf message resources.sync.UserProps
253
+ * @generated MessageType for protobuf message resources.sync.activity.UserProps
235
254
  */
236
255
  export const UserProps = new UserProps$Type();
237
256
  // @generated message type with reflection information, may provide speed optimized methods
238
257
  class ColleagueProps$Type extends MessageType<ColleagueProps> {
239
258
  constructor() {
240
- super("resources.sync.ColleagueProps", [
241
- { no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
242
- { no: 2, name: "props", kind: "message", T: () => ColleagueProps$, options: { "validate.rules": { message: { required: true } } } }
259
+ super("resources.sync.activity.ColleagueProps", [
260
+ { no: 1, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
261
+ { no: 2, name: "props", kind: "message", T: () => ColleagueProps$, options: { "buf.validate.field": { required: true } } }
243
262
  ]);
244
263
  }
245
264
  create(value?: PartialMessage<ColleagueProps>): ColleagueProps {
@@ -256,7 +275,7 @@ class ColleagueProps$Type extends MessageType<ColleagueProps> {
256
275
  case /* optional string reason */ 1:
257
276
  message.reason = reader.string();
258
277
  break;
259
- case /* resources.jobs.ColleagueProps props */ 2:
278
+ case /* resources.jobs.colleagues.ColleagueProps props */ 2:
260
279
  message.props = ColleagueProps$.internalBinaryRead(reader, reader.uint32(), options, message.props);
261
280
  break;
262
281
  default:
@@ -274,7 +293,7 @@ class ColleagueProps$Type extends MessageType<ColleagueProps> {
274
293
  /* optional string reason = 1; */
275
294
  if (message.reason !== undefined)
276
295
  writer.tag(1, WireType.LengthDelimited).string(message.reason);
277
- /* resources.jobs.ColleagueProps props = 2; */
296
+ /* resources.jobs.colleagues.ColleagueProps props = 2; */
278
297
  if (message.props)
279
298
  ColleagueProps$.internalBinaryWrite(message.props, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
280
299
  let u = options.writeUnknownFields;
@@ -284,17 +303,17 @@ class ColleagueProps$Type extends MessageType<ColleagueProps> {
284
303
  }
285
304
  }
286
305
  /**
287
- * @generated MessageType for protobuf message resources.sync.ColleagueProps
306
+ * @generated MessageType for protobuf message resources.sync.activity.ColleagueProps
288
307
  */
289
308
  export const ColleagueProps = new ColleagueProps$Type();
290
309
  // @generated message type with reflection information, may provide speed optimized methods
291
310
  class UserUpdate$Type extends MessageType<UserUpdate> {
292
311
  constructor() {
293
- super("resources.sync.UserUpdate", [
312
+ super("resources.sync.activity.UserUpdate", [
294
313
  { no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
295
314
  { no: 2, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
296
- { no: 3, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
297
- { no: 4, name: "job_grade", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
315
+ { no: 3, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
316
+ { no: 4, name: "job_grade", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
298
317
  { no: 5, name: "firstname", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
299
318
  { no: 6, name: "lastname", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
300
319
  ]);
@@ -366,13 +385,13 @@ class UserUpdate$Type extends MessageType<UserUpdate> {
366
385
  }
367
386
  }
368
387
  /**
369
- * @generated MessageType for protobuf message resources.sync.UserUpdate
388
+ * @generated MessageType for protobuf message resources.sync.activity.UserUpdate
370
389
  */
371
390
  export const UserUpdate = new UserUpdate$Type();
372
391
  // @generated message type with reflection information, may provide speed optimized methods
373
392
  class TimeclockUpdate$Type extends MessageType<TimeclockUpdate> {
374
393
  constructor() {
375
- super("resources.sync.TimeclockUpdate", [
394
+ super("resources.sync.activity.TimeclockUpdate", [
376
395
  { no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
377
396
  { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
378
397
  { no: 3, name: "start", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
@@ -429,6 +448,67 @@ class TimeclockUpdate$Type extends MessageType<TimeclockUpdate> {
429
448
  }
430
449
  }
431
450
  /**
432
- * @generated MessageType for protobuf message resources.sync.TimeclockUpdate
451
+ * @generated MessageType for protobuf message resources.sync.activity.TimeclockUpdate
433
452
  */
434
453
  export const TimeclockUpdate = new TimeclockUpdate$Type();
454
+ // @generated message type with reflection information, may provide speed optimized methods
455
+ class AccountUpdate$Type extends MessageType<AccountUpdate> {
456
+ constructor() {
457
+ super("resources.sync.activity.AccountUpdate", [
458
+ { no: 1, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
459
+ { no: 2, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
460
+ { no: 3, name: "groups", kind: "message", T: () => AccountGroups, options: { "tagger.tags": "alias:\"groups\"" } }
461
+ ]);
462
+ }
463
+ create(value?: PartialMessage<AccountUpdate>): AccountUpdate {
464
+ const message = globalThis.Object.create((this.messagePrototype!));
465
+ message.license = "";
466
+ if (value !== undefined)
467
+ reflectionMergePartial<AccountUpdate>(this, message, value);
468
+ return message;
469
+ }
470
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountUpdate): AccountUpdate {
471
+ let message = target ?? this.create(), end = reader.pos + length;
472
+ while (reader.pos < end) {
473
+ let [fieldNo, wireType] = reader.tag();
474
+ switch (fieldNo) {
475
+ case /* string license */ 1:
476
+ message.license = reader.string();
477
+ break;
478
+ case /* optional string group */ 2:
479
+ message.group = reader.string();
480
+ break;
481
+ case /* resources.accounts.AccountGroups groups */ 3:
482
+ message.groups = AccountGroups.internalBinaryRead(reader, reader.uint32(), options, message.groups);
483
+ break;
484
+ default:
485
+ let u = options.readUnknownField;
486
+ if (u === "throw")
487
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
488
+ let d = reader.skip(wireType);
489
+ if (u !== false)
490
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
491
+ }
492
+ }
493
+ return message;
494
+ }
495
+ internalBinaryWrite(message: AccountUpdate, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
496
+ /* string license = 1; */
497
+ if (message.license !== "")
498
+ writer.tag(1, WireType.LengthDelimited).string(message.license);
499
+ /* optional string group = 2; */
500
+ if (message.group !== undefined)
501
+ writer.tag(2, WireType.LengthDelimited).string(message.group);
502
+ /* resources.accounts.AccountGroups groups = 3; */
503
+ if (message.groups)
504
+ AccountGroups.internalBinaryWrite(message.groups, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
505
+ let u = options.writeUnknownFields;
506
+ if (u !== false)
507
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
508
+ return writer;
509
+ }
510
+ }
511
+ /**
512
+ * @generated MessageType for protobuf message resources.sync.activity.AccountUpdate
513
+ */
514
+ export const AccountUpdate = new AccountUpdate$Type();