@fivenet-app/gen 2025.9.1 → 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 (131) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +94 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +137 -6
  7. package/resources/accounts/accounts.ts +98 -31
  8. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
  9. package/resources/audit/audit.ts +156 -38
  10. package/resources/calendar/{access.ts → access/access.ts} +30 -30
  11. package/resources/calendar/calendar.ts +17 -477
  12. package/resources/calendar/entries/entries.ts +474 -0
  13. package/resources/centrum/{access.ts → access/access.ts} +22 -22
  14. package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
  15. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
  16. package/resources/centrum/joblist.ts +136 -0
  17. package/resources/centrum/{settings.ts → settings/settings.ts} +69 -69
  18. package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
  19. package/resources/centrum/{units.ts → units/units.ts} +131 -51
  20. package/resources/clientconfig/clientconfig.ts +159 -34
  21. package/resources/collab/collab.ts +4 -16
  22. package/resources/common/content/content.ts +108 -85
  23. package/resources/common/content/diff_activity.ts +267 -0
  24. package/resources/common/i18n.ts +2 -2
  25. package/resources/{common/cron → cron}/cron.ts +41 -41
  26. package/resources/documents/{access.ts → access/access.ts} +30 -30
  27. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  28. package/resources/documents/approval/approval.ts +945 -0
  29. package/resources/documents/{category.ts → category/category.ts} +7 -7
  30. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  31. package/resources/documents/data/data.ts +303 -0
  32. package/resources/documents/documents.ts +282 -667
  33. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  34. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  35. package/resources/documents/references/references.ts +187 -0
  36. package/resources/documents/relations/relations.ts +184 -0
  37. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  38. package/resources/documents/stamps/stamp.ts +355 -0
  39. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  40. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  41. package/resources/file/filestore.ts +1 -1
  42. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  43. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  44. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  45. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  46. package/resources/jobs/{labels.ts → labels/labels.ts} +18 -18
  47. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  48. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  49. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  50. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  51. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  52. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  53. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  54. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  55. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  56. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  57. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  58. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  59. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  60. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  61. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  62. package/resources/notifications/notifications.ts +4 -4
  63. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  64. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  65. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  66. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  67. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  68. package/resources/qualifications/qualifications.ts +51 -179
  69. package/resources/settings/banner.ts +3 -3
  70. package/resources/settings/config.ts +514 -14
  71. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  72. package/resources/settings/perms.ts +14 -14
  73. package/resources/stats/stats.ts +379 -0
  74. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  75. package/resources/sync/{data.ts → data/data.ts} +404 -58
  76. package/resources/sync/data/v2/data.ts +220 -0
  77. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  78. package/resources/users/{activity.ts → activity/activity.ts} +121 -100
  79. package/resources/users/{labels.ts → labels/labels.ts} +12 -12
  80. package/resources/users/{licenses.ts → licenses/licenses.ts} +10 -10
  81. package/resources/users/{props.ts → props/props.ts} +91 -69
  82. package/resources/users/short/user.ts +184 -0
  83. package/resources/users/{users.ts → user.ts} +266 -195
  84. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  85. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  86. package/resources/vehicles/vehicles.ts +20 -8
  87. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  88. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  89. package/resources/wiki/page.ts +39 -15
  90. package/services/auth/auth.client.ts +23 -10
  91. package/services/auth/auth.ts +445 -262
  92. package/services/calendar/calendar.ts +56 -34
  93. package/services/centrum/centrum.ts +127 -127
  94. package/services/citizens/citizens.ts +51 -27
  95. package/services/completor/completor.ts +35 -15
  96. package/services/documents/approval.client.ts +188 -0
  97. package/services/documents/approval.ts +1776 -0
  98. package/services/documents/documents.ts +163 -185
  99. package/services/documents/forms.client.ts +51 -0
  100. package/services/documents/forms.ts +232 -0
  101. package/services/documents/stamps.client.ts +77 -0
  102. package/services/documents/stamps.ts +481 -0
  103. package/services/documents/stats.client.ts +38 -0
  104. package/services/documents/stats.ts +245 -0
  105. package/services/jobs/conduct.client.ts +30 -3
  106. package/services/jobs/conduct.ts +159 -33
  107. package/services/jobs/jobs.ts +43 -43
  108. package/services/jobs/stats.client.ts +38 -0
  109. package/services/jobs/stats.ts +207 -0
  110. package/services/jobs/timeclock.ts +39 -39
  111. package/services/livemap/livemap.ts +18 -18
  112. package/services/mailer/mailer.ts +78 -78
  113. package/services/notifications/notifications.ts +35 -35
  114. package/services/qualifications/qualifications.ts +80 -45
  115. package/services/settings/accounts.client.ts +23 -10
  116. package/services/settings/accounts.ts +191 -30
  117. package/services/settings/cron.ts +4 -4
  118. package/services/settings/laws.ts +1 -1
  119. package/services/settings/settings.ts +73 -52
  120. package/services/settings/system.client.ts +13 -0
  121. package/services/settings/system.ts +115 -15
  122. package/services/stats/stats.client.ts +7 -7
  123. package/services/stats/stats.ts +24 -24
  124. package/services/sync/sync.ts +124 -77
  125. package/services/sync/v2/sync.client.ts +331 -0
  126. package/services/sync/v2/sync.ts +1766 -0
  127. package/services/vehicles/vehicles.ts +8 -8
  128. package/services/wiki/wiki.ts +8 -8
  129. package/svcs.ts +95 -3
  130. package/resources/centrum/attributes.ts +0 -183
  131. package/resources/documents/signoff.ts +0 -55
@@ -14,14 +14,14 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
14
14
  import { MessageType } from "@protobuf-ts/runtime";
15
15
  import { Stat } from "../../resources/stats/stats";
16
16
  /**
17
- * @generated from protobuf message services.stats.GetStatsRequest
17
+ * @generated from protobuf message services.stats.GetPublicStatsRequest
18
18
  */
19
- export interface GetStatsRequest {
19
+ export interface GetPublicStatsRequest {
20
20
  }
21
21
  /**
22
- * @generated from protobuf message services.stats.GetStatsResponse
22
+ * @generated from protobuf message services.stats.GetPublicStatsResponse
23
23
  */
24
- export interface GetStatsResponse {
24
+ export interface GetPublicStatsResponse {
25
25
  /**
26
26
  * @generated from protobuf field: map<string, resources.stats.Stat> stats = 1
27
27
  */
@@ -30,17 +30,17 @@ export interface GetStatsResponse {
30
30
  };
31
31
  }
32
32
  // @generated message type with reflection information, may provide speed optimized methods
33
- class GetStatsRequest$Type extends MessageType<GetStatsRequest> {
33
+ class GetPublicStatsRequest$Type extends MessageType<GetPublicStatsRequest> {
34
34
  constructor() {
35
- super("services.stats.GetStatsRequest", []);
35
+ super("services.stats.GetPublicStatsRequest", []);
36
36
  }
37
- create(value?: PartialMessage<GetStatsRequest>): GetStatsRequest {
37
+ create(value?: PartialMessage<GetPublicStatsRequest>): GetPublicStatsRequest {
38
38
  const message = globalThis.Object.create((this.messagePrototype!));
39
39
  if (value !== undefined)
40
- reflectionMergePartial<GetStatsRequest>(this, message, value);
40
+ reflectionMergePartial<GetPublicStatsRequest>(this, message, value);
41
41
  return message;
42
42
  }
43
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStatsRequest): GetStatsRequest {
43
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPublicStatsRequest): GetPublicStatsRequest {
44
44
  let message = target ?? this.create(), end = reader.pos + length;
45
45
  while (reader.pos < end) {
46
46
  let [fieldNo, wireType] = reader.tag();
@@ -56,7 +56,7 @@ class GetStatsRequest$Type extends MessageType<GetStatsRequest> {
56
56
  }
57
57
  return message;
58
58
  }
59
- internalBinaryWrite(message: GetStatsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
59
+ internalBinaryWrite(message: GetPublicStatsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
60
60
  let u = options.writeUnknownFields;
61
61
  if (u !== false)
62
62
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -64,24 +64,24 @@ class GetStatsRequest$Type extends MessageType<GetStatsRequest> {
64
64
  }
65
65
  }
66
66
  /**
67
- * @generated MessageType for protobuf message services.stats.GetStatsRequest
67
+ * @generated MessageType for protobuf message services.stats.GetPublicStatsRequest
68
68
  */
69
- export const GetStatsRequest = new GetStatsRequest$Type();
69
+ export const GetPublicStatsRequest = new GetPublicStatsRequest$Type();
70
70
  // @generated message type with reflection information, may provide speed optimized methods
71
- class GetStatsResponse$Type extends MessageType<GetStatsResponse> {
71
+ class GetPublicStatsResponse$Type extends MessageType<GetPublicStatsResponse> {
72
72
  constructor() {
73
- super("services.stats.GetStatsResponse", [
73
+ super("services.stats.GetPublicStatsResponse", [
74
74
  { no: 1, name: "stats", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Stat } }
75
75
  ]);
76
76
  }
77
- create(value?: PartialMessage<GetStatsResponse>): GetStatsResponse {
77
+ create(value?: PartialMessage<GetPublicStatsResponse>): GetPublicStatsResponse {
78
78
  const message = globalThis.Object.create((this.messagePrototype!));
79
79
  message.stats = {};
80
80
  if (value !== undefined)
81
- reflectionMergePartial<GetStatsResponse>(this, message, value);
81
+ reflectionMergePartial<GetPublicStatsResponse>(this, message, value);
82
82
  return message;
83
83
  }
84
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStatsResponse): GetStatsResponse {
84
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPublicStatsResponse): GetPublicStatsResponse {
85
85
  let message = target ?? this.create(), end = reader.pos + length;
86
86
  while (reader.pos < end) {
87
87
  let [fieldNo, wireType] = reader.tag();
@@ -100,8 +100,8 @@ class GetStatsResponse$Type extends MessageType<GetStatsResponse> {
100
100
  }
101
101
  return message;
102
102
  }
103
- private binaryReadMap1(map: GetStatsResponse["stats"], reader: IBinaryReader, options: BinaryReadOptions): void {
104
- let len = reader.uint32(), end = reader.pos + len, key: keyof GetStatsResponse["stats"] | undefined, val: GetStatsResponse["stats"][any] | undefined;
103
+ private binaryReadMap1(map: GetPublicStatsResponse["stats"], reader: IBinaryReader, options: BinaryReadOptions): void {
104
+ let len = reader.uint32(), end = reader.pos + len, key: keyof GetPublicStatsResponse["stats"] | undefined, val: GetPublicStatsResponse["stats"][any] | undefined;
105
105
  while (reader.pos < end) {
106
106
  let [fieldNo, wireType] = reader.tag();
107
107
  switch (fieldNo) {
@@ -111,12 +111,12 @@ class GetStatsResponse$Type extends MessageType<GetStatsResponse> {
111
111
  case 2:
112
112
  val = Stat.internalBinaryRead(reader, reader.uint32(), options);
113
113
  break;
114
- default: throw new globalThis.Error("unknown map entry field for services.stats.GetStatsResponse.stats");
114
+ default: throw new globalThis.Error("unknown map entry field for services.stats.GetPublicStatsResponse.stats");
115
115
  }
116
116
  }
117
117
  map[key ?? ""] = val ?? Stat.create();
118
118
  }
119
- internalBinaryWrite(message: GetStatsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
119
+ internalBinaryWrite(message: GetPublicStatsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
120
120
  /* map<string, resources.stats.Stat> stats = 1; */
121
121
  for (let k of globalThis.Object.keys(message.stats)) {
122
122
  writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
@@ -131,12 +131,12 @@ class GetStatsResponse$Type extends MessageType<GetStatsResponse> {
131
131
  }
132
132
  }
133
133
  /**
134
- * @generated MessageType for protobuf message services.stats.GetStatsResponse
134
+ * @generated MessageType for protobuf message services.stats.GetPublicStatsResponse
135
135
  */
136
- export const GetStatsResponse = new GetStatsResponse$Type();
136
+ export const GetPublicStatsResponse = new GetPublicStatsResponse$Type();
137
137
  /**
138
138
  * @generated ServiceType for protobuf service services.stats.StatsService
139
139
  */
140
140
  export const StatsService = new ServiceType("services.stats.StatsService", [
141
- { name: "GetStats", options: {}, I: GetStatsRequest, O: GetStatsResponse }
141
+ { name: "GetPublicStats", options: {}, I: GetPublicStatsRequest, O: GetPublicStatsResponse }
142
142
  ]);
@@ -12,23 +12,25 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
12
12
  import type { PartialMessage } from "@protobuf-ts/runtime";
13
13
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
14
14
  import { MessageType } from "@protobuf-ts/runtime";
15
- import { DeleteVehicles } from "../../resources/sync/data";
16
- import { DeleteUsers } from "../../resources/sync/data";
17
- import { LastCharID } from "../../resources/sync/data";
18
- import { DataUserLocations } from "../../resources/sync/data";
19
- import { DataVehicles } from "../../resources/sync/data";
20
- import { DataUsers } from "../../resources/sync/data";
21
- import { DataLicenses } from "../../resources/sync/data";
22
- import { DataJobs } from "../../resources/sync/data";
23
- import { UserUpdate } from "../../resources/sync/activity";
24
- import { TimeclockUpdate } from "../../resources/sync/activity";
25
- import { ColleagueProps } from "../../resources/sync/activity";
26
- import { ColleagueActivity } from "../../resources/jobs/activity";
27
- import { UserProps } from "../../resources/sync/activity";
28
- import { UserActivity } from "../../resources/users/activity";
29
- import { Dispatch } from "../../resources/centrum/dispatches";
30
- import { UserOAuth2Conn } from "../../resources/sync/activity";
31
- import { DataStatus } from "../../resources/sync/data";
15
+ import { DeleteVehicles } from "../../resources/sync/data/data";
16
+ import { DeleteUsers } from "../../resources/sync/data/data";
17
+ import { LastCharID } from "../../resources/sync/data/data";
18
+ import { DataUserLocations } from "../../resources/sync/data/data";
19
+ import { DataVehicles } from "../../resources/sync/data/data";
20
+ import { DataUsers } from "../../resources/sync/data/data";
21
+ import { DataAccounts } from "../../resources/sync/data/data";
22
+ import { DataLicenses } from "../../resources/sync/data/data";
23
+ import { DataJobs } from "../../resources/sync/data/data";
24
+ import { UserUpdate } from "../../resources/sync/activity/activity";
25
+ import { AccountUpdate } from "../../resources/sync/activity/activity";
26
+ import { TimeclockUpdate } from "../../resources/sync/activity/activity";
27
+ import { ColleagueProps } from "../../resources/sync/activity/activity";
28
+ import { ColleagueActivity } from "../../resources/jobs/colleagues/activity/activity";
29
+ import { UserProps } from "../../resources/sync/activity/activity";
30
+ import { UserActivity } from "../../resources/users/activity/activity";
31
+ import { Dispatch } from "../../resources/centrum/dispatches/dispatches";
32
+ import { UserOAuth2Conn } from "../../resources/sync/activity/activity";
33
+ import { DataStatus } from "../../resources/sync/data/data";
32
34
  /**
33
35
  * @generated from protobuf message services.sync.GetStatusRequest
34
36
  */
@@ -39,19 +41,23 @@ export interface GetStatusRequest {
39
41
  */
40
42
  export interface GetStatusResponse {
41
43
  /**
42
- * @generated from protobuf field: resources.sync.DataStatus jobs = 1
44
+ * @generated from protobuf field: resources.sync.data.DataStatus jobs = 1
43
45
  */
44
46
  jobs?: DataStatus;
45
47
  /**
46
- * @generated from protobuf field: resources.sync.DataStatus licenses = 2
48
+ * @generated from protobuf field: resources.sync.data.DataStatus licenses = 2
47
49
  */
48
50
  licenses?: DataStatus;
49
51
  /**
50
- * @generated from protobuf field: resources.sync.DataStatus users = 3
52
+ * @generated from protobuf field: resources.sync.data.DataStatus accounts = 5
53
+ */
54
+ accounts?: DataStatus;
55
+ /**
56
+ * @generated from protobuf field: resources.sync.data.DataStatus users = 3
51
57
  */
52
58
  users?: DataStatus;
53
59
  /**
54
- * @generated from protobuf field: resources.sync.DataStatus vehicles = 4
60
+ * @generated from protobuf field: resources.sync.data.DataStatus vehicles = 4
55
61
  */
56
62
  vehicles?: DataStatus;
57
63
  }
@@ -65,13 +71,13 @@ export interface AddActivityRequest {
65
71
  activity: {
66
72
  oneofKind: "userOauth2";
67
73
  /**
68
- * @generated from protobuf field: resources.sync.UserOAuth2Conn user_oauth2 = 1
74
+ * @generated from protobuf field: resources.sync.activity.UserOAuth2Conn user_oauth2 = 1
69
75
  */
70
76
  userOauth2: UserOAuth2Conn;
71
77
  } | {
72
78
  oneofKind: "dispatch";
73
79
  /**
74
- * @generated from protobuf field: resources.centrum.Dispatch dispatch = 2
80
+ * @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 2
75
81
  */
76
82
  dispatch: Dispatch;
77
83
  } | {
@@ -79,7 +85,7 @@ export interface AddActivityRequest {
79
85
  /**
80
86
  * User activity
81
87
  *
82
- * @generated from protobuf field: resources.users.UserActivity user_activity = 3
88
+ * @generated from protobuf field: resources.users.activity.UserActivity user_activity = 3
83
89
  */
84
90
  userActivity: UserActivity;
85
91
  } | {
@@ -87,7 +93,7 @@ export interface AddActivityRequest {
87
93
  /**
88
94
  * Setting props will cause activity to be created automtically
89
95
  *
90
- * @generated from protobuf field: resources.sync.UserProps user_props = 4
96
+ * @generated from protobuf field: resources.sync.activity.UserProps user_props = 4
91
97
  */
92
98
  userProps: UserProps;
93
99
  } | {
@@ -95,7 +101,7 @@ export interface AddActivityRequest {
95
101
  /**
96
102
  * Jobs user activity
97
103
  *
98
- * @generated from protobuf field: resources.jobs.ColleagueActivity colleague_activity = 5
104
+ * @generated from protobuf field: resources.jobs.colleagues.activity.ColleagueActivity colleague_activity = 5
99
105
  */
100
106
  colleagueActivity: ColleagueActivity;
101
107
  } | {
@@ -103,7 +109,7 @@ export interface AddActivityRequest {
103
109
  /**
104
110
  * Setting props will cause activity to be created automtically
105
111
  *
106
- * @generated from protobuf field: resources.sync.ColleagueProps colleague_props = 6
112
+ * @generated from protobuf field: resources.sync.activity.ColleagueProps colleague_props = 6
107
113
  */
108
114
  colleagueProps: ColleagueProps;
109
115
  } | {
@@ -111,15 +117,23 @@ export interface AddActivityRequest {
111
117
  /**
112
118
  * Timeclock user entry
113
119
  *
114
- * @generated from protobuf field: resources.sync.TimeclockUpdate job_timeclock = 7
120
+ * @generated from protobuf field: resources.sync.activity.TimeclockUpdate job_timeclock = 7
115
121
  */
116
122
  jobTimeclock: TimeclockUpdate;
123
+ } | {
124
+ oneofKind: "accountUpdate";
125
+ /**
126
+ * Account update for a signle account to update the group(s).
127
+ *
128
+ * @generated from protobuf field: resources.sync.activity.AccountUpdate account_update = 9
129
+ */
130
+ accountUpdate: AccountUpdate;
117
131
  } | {
118
132
  oneofKind: "userUpdate";
119
133
  /**
120
134
  * User/Char info updates that aren't tracked by activity (yet)
121
135
  *
122
- * @generated from protobuf field: resources.sync.UserUpdate user_update = 8
136
+ * @generated from protobuf field: resources.sync.activity.UserUpdate user_update = 8
123
137
  */
124
138
  userUpdate: UserUpdate;
125
139
  } | {
@@ -193,37 +207,43 @@ export interface SendDataRequest {
193
207
  data: {
194
208
  oneofKind: "jobs";
195
209
  /**
196
- * @generated from protobuf field: resources.sync.DataJobs jobs = 1
210
+ * @generated from protobuf field: resources.sync.data.DataJobs jobs = 1
197
211
  */
198
212
  jobs: DataJobs;
199
213
  } | {
200
214
  oneofKind: "licenses";
201
215
  /**
202
- * @generated from protobuf field: resources.sync.DataLicenses licenses = 2
216
+ * @generated from protobuf field: resources.sync.data.DataLicenses licenses = 2
203
217
  */
204
218
  licenses: DataLicenses;
219
+ } | {
220
+ oneofKind: "accounts";
221
+ /**
222
+ * @generated from protobuf field: resources.sync.data.DataAccounts accounts = 9
223
+ */
224
+ accounts: DataAccounts;
205
225
  } | {
206
226
  oneofKind: "users";
207
227
  /**
208
- * @generated from protobuf field: resources.sync.DataUsers users = 3
228
+ * @generated from protobuf field: resources.sync.data.DataUsers users = 3
209
229
  */
210
230
  users: DataUsers;
211
231
  } | {
212
232
  oneofKind: "vehicles";
213
233
  /**
214
- * @generated from protobuf field: resources.sync.DataVehicles vehicles = 4
234
+ * @generated from protobuf field: resources.sync.data.DataVehicles vehicles = 4
215
235
  */
216
236
  vehicles: DataVehicles;
217
237
  } | {
218
238
  oneofKind: "userLocations";
219
239
  /**
220
- * @generated from protobuf field: resources.sync.DataUserLocations user_locations = 5
240
+ * @generated from protobuf field: resources.sync.data.DataUserLocations user_locations = 5
221
241
  */
222
242
  userLocations: DataUserLocations;
223
243
  } | {
224
244
  oneofKind: "lastCharId";
225
245
  /**
226
- * @generated from protobuf field: resources.sync.LastCharID last_char_id = 6
246
+ * @generated from protobuf field: resources.sync.data.LastCharID last_char_id = 6
227
247
  */
228
248
  lastCharId: LastCharID;
229
249
  } | {
@@ -249,13 +269,13 @@ export interface DeleteDataRequest {
249
269
  data: {
250
270
  oneofKind: "users";
251
271
  /**
252
- * @generated from protobuf field: resources.sync.DeleteUsers users = 1
272
+ * @generated from protobuf field: resources.sync.data.DeleteUsers users = 1
253
273
  */
254
274
  users: DeleteUsers;
255
275
  } | {
256
276
  oneofKind: "vehicles";
257
277
  /**
258
- * @generated from protobuf field: resources.sync.DeleteVehicles vehicles = 2
278
+ * @generated from protobuf field: resources.sync.data.DeleteVehicles vehicles = 2
259
279
  */
260
280
  vehicles: DeleteVehicles;
261
281
  } | {
@@ -333,6 +353,7 @@ class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
333
353
  super("services.sync.GetStatusResponse", [
334
354
  { no: 1, name: "jobs", kind: "message", T: () => DataStatus },
335
355
  { no: 2, name: "licenses", kind: "message", T: () => DataStatus },
356
+ { no: 5, name: "accounts", kind: "message", T: () => DataStatus },
336
357
  { no: 3, name: "users", kind: "message", T: () => DataStatus },
337
358
  { no: 4, name: "vehicles", kind: "message", T: () => DataStatus }
338
359
  ]);
@@ -348,16 +369,19 @@ class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
348
369
  while (reader.pos < end) {
349
370
  let [fieldNo, wireType] = reader.tag();
350
371
  switch (fieldNo) {
351
- case /* resources.sync.DataStatus jobs */ 1:
372
+ case /* resources.sync.data.DataStatus jobs */ 1:
352
373
  message.jobs = DataStatus.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
353
374
  break;
354
- case /* resources.sync.DataStatus licenses */ 2:
375
+ case /* resources.sync.data.DataStatus licenses */ 2:
355
376
  message.licenses = DataStatus.internalBinaryRead(reader, reader.uint32(), options, message.licenses);
356
377
  break;
357
- case /* resources.sync.DataStatus users */ 3:
378
+ case /* resources.sync.data.DataStatus accounts */ 5:
379
+ message.accounts = DataStatus.internalBinaryRead(reader, reader.uint32(), options, message.accounts);
380
+ break;
381
+ case /* resources.sync.data.DataStatus users */ 3:
358
382
  message.users = DataStatus.internalBinaryRead(reader, reader.uint32(), options, message.users);
359
383
  break;
360
- case /* resources.sync.DataStatus vehicles */ 4:
384
+ case /* resources.sync.data.DataStatus vehicles */ 4:
361
385
  message.vehicles = DataStatus.internalBinaryRead(reader, reader.uint32(), options, message.vehicles);
362
386
  break;
363
387
  default:
@@ -372,18 +396,21 @@ class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
372
396
  return message;
373
397
  }
374
398
  internalBinaryWrite(message: GetStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
375
- /* resources.sync.DataStatus jobs = 1; */
399
+ /* resources.sync.data.DataStatus jobs = 1; */
376
400
  if (message.jobs)
377
401
  DataStatus.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
378
- /* resources.sync.DataStatus licenses = 2; */
402
+ /* resources.sync.data.DataStatus licenses = 2; */
379
403
  if (message.licenses)
380
404
  DataStatus.internalBinaryWrite(message.licenses, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
381
- /* resources.sync.DataStatus users = 3; */
405
+ /* resources.sync.data.DataStatus users = 3; */
382
406
  if (message.users)
383
407
  DataStatus.internalBinaryWrite(message.users, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
384
- /* resources.sync.DataStatus vehicles = 4; */
408
+ /* resources.sync.data.DataStatus vehicles = 4; */
385
409
  if (message.vehicles)
386
410
  DataStatus.internalBinaryWrite(message.vehicles, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
411
+ /* resources.sync.data.DataStatus accounts = 5; */
412
+ if (message.accounts)
413
+ DataStatus.internalBinaryWrite(message.accounts, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
387
414
  let u = options.writeUnknownFields;
388
415
  if (u !== false)
389
416
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -405,6 +432,7 @@ class AddActivityRequest$Type extends MessageType<AddActivityRequest> {
405
432
  { no: 5, name: "colleague_activity", kind: "message", oneof: "activity", T: () => ColleagueActivity },
406
433
  { no: 6, name: "colleague_props", kind: "message", oneof: "activity", T: () => ColleagueProps },
407
434
  { no: 7, name: "job_timeclock", kind: "message", oneof: "activity", T: () => TimeclockUpdate },
435
+ { no: 9, name: "account_update", kind: "message", oneof: "activity", T: () => AccountUpdate },
408
436
  { no: 8, name: "user_update", kind: "message", oneof: "activity", T: () => UserUpdate }
409
437
  ]);
410
438
  }
@@ -420,49 +448,55 @@ class AddActivityRequest$Type extends MessageType<AddActivityRequest> {
420
448
  while (reader.pos < end) {
421
449
  let [fieldNo, wireType] = reader.tag();
422
450
  switch (fieldNo) {
423
- case /* resources.sync.UserOAuth2Conn user_oauth2 */ 1:
451
+ case /* resources.sync.activity.UserOAuth2Conn user_oauth2 */ 1:
424
452
  message.activity = {
425
453
  oneofKind: "userOauth2",
426
454
  userOauth2: UserOAuth2Conn.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).userOauth2)
427
455
  };
428
456
  break;
429
- case /* resources.centrum.Dispatch dispatch */ 2:
457
+ case /* resources.centrum.dispatches.Dispatch dispatch */ 2:
430
458
  message.activity = {
431
459
  oneofKind: "dispatch",
432
460
  dispatch: Dispatch.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).dispatch)
433
461
  };
434
462
  break;
435
- case /* resources.users.UserActivity user_activity */ 3:
463
+ case /* resources.users.activity.UserActivity user_activity */ 3:
436
464
  message.activity = {
437
465
  oneofKind: "userActivity",
438
466
  userActivity: UserActivity.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).userActivity)
439
467
  };
440
468
  break;
441
- case /* resources.sync.UserProps user_props */ 4:
469
+ case /* resources.sync.activity.UserProps user_props */ 4:
442
470
  message.activity = {
443
471
  oneofKind: "userProps",
444
472
  userProps: UserProps.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).userProps)
445
473
  };
446
474
  break;
447
- case /* resources.jobs.ColleagueActivity colleague_activity */ 5:
475
+ case /* resources.jobs.colleagues.activity.ColleagueActivity colleague_activity */ 5:
448
476
  message.activity = {
449
477
  oneofKind: "colleagueActivity",
450
478
  colleagueActivity: ColleagueActivity.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).colleagueActivity)
451
479
  };
452
480
  break;
453
- case /* resources.sync.ColleagueProps colleague_props */ 6:
481
+ case /* resources.sync.activity.ColleagueProps colleague_props */ 6:
454
482
  message.activity = {
455
483
  oneofKind: "colleagueProps",
456
484
  colleagueProps: ColleagueProps.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).colleagueProps)
457
485
  };
458
486
  break;
459
- case /* resources.sync.TimeclockUpdate job_timeclock */ 7:
487
+ case /* resources.sync.activity.TimeclockUpdate job_timeclock */ 7:
460
488
  message.activity = {
461
489
  oneofKind: "jobTimeclock",
462
490
  jobTimeclock: TimeclockUpdate.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).jobTimeclock)
463
491
  };
464
492
  break;
465
- case /* resources.sync.UserUpdate user_update */ 8:
493
+ case /* resources.sync.activity.AccountUpdate account_update */ 9:
494
+ message.activity = {
495
+ oneofKind: "accountUpdate",
496
+ accountUpdate: AccountUpdate.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).accountUpdate)
497
+ };
498
+ break;
499
+ case /* resources.sync.activity.UserUpdate user_update */ 8:
466
500
  message.activity = {
467
501
  oneofKind: "userUpdate",
468
502
  userUpdate: UserUpdate.internalBinaryRead(reader, reader.uint32(), options, (message.activity as any).userUpdate)
@@ -480,30 +514,33 @@ class AddActivityRequest$Type extends MessageType<AddActivityRequest> {
480
514
  return message;
481
515
  }
482
516
  internalBinaryWrite(message: AddActivityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
483
- /* resources.sync.UserOAuth2Conn user_oauth2 = 1; */
517
+ /* resources.sync.activity.UserOAuth2Conn user_oauth2 = 1; */
484
518
  if (message.activity.oneofKind === "userOauth2")
485
519
  UserOAuth2Conn.internalBinaryWrite(message.activity.userOauth2, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
486
- /* resources.centrum.Dispatch dispatch = 2; */
520
+ /* resources.centrum.dispatches.Dispatch dispatch = 2; */
487
521
  if (message.activity.oneofKind === "dispatch")
488
522
  Dispatch.internalBinaryWrite(message.activity.dispatch, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
489
- /* resources.users.UserActivity user_activity = 3; */
523
+ /* resources.users.activity.UserActivity user_activity = 3; */
490
524
  if (message.activity.oneofKind === "userActivity")
491
525
  UserActivity.internalBinaryWrite(message.activity.userActivity, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
492
- /* resources.sync.UserProps user_props = 4; */
526
+ /* resources.sync.activity.UserProps user_props = 4; */
493
527
  if (message.activity.oneofKind === "userProps")
494
528
  UserProps.internalBinaryWrite(message.activity.userProps, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
495
- /* resources.jobs.ColleagueActivity colleague_activity = 5; */
529
+ /* resources.jobs.colleagues.activity.ColleagueActivity colleague_activity = 5; */
496
530
  if (message.activity.oneofKind === "colleagueActivity")
497
531
  ColleagueActivity.internalBinaryWrite(message.activity.colleagueActivity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
498
- /* resources.sync.ColleagueProps colleague_props = 6; */
532
+ /* resources.sync.activity.ColleagueProps colleague_props = 6; */
499
533
  if (message.activity.oneofKind === "colleagueProps")
500
534
  ColleagueProps.internalBinaryWrite(message.activity.colleagueProps, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
501
- /* resources.sync.TimeclockUpdate job_timeclock = 7; */
535
+ /* resources.sync.activity.TimeclockUpdate job_timeclock = 7; */
502
536
  if (message.activity.oneofKind === "jobTimeclock")
503
537
  TimeclockUpdate.internalBinaryWrite(message.activity.jobTimeclock, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
504
- /* resources.sync.UserUpdate user_update = 8; */
538
+ /* resources.sync.activity.UserUpdate user_update = 8; */
505
539
  if (message.activity.oneofKind === "userUpdate")
506
540
  UserUpdate.internalBinaryWrite(message.activity.userUpdate, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
541
+ /* resources.sync.activity.AccountUpdate account_update = 9; */
542
+ if (message.activity.oneofKind === "accountUpdate")
543
+ AccountUpdate.internalBinaryWrite(message.activity.accountUpdate, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
507
544
  let u = options.writeUnknownFields;
508
545
  if (u !== false)
509
546
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -773,6 +810,7 @@ class SendDataRequest$Type extends MessageType<SendDataRequest> {
773
810
  super("services.sync.SendDataRequest", [
774
811
  { no: 1, name: "jobs", kind: "message", oneof: "data", T: () => DataJobs },
775
812
  { no: 2, name: "licenses", kind: "message", oneof: "data", T: () => DataLicenses },
813
+ { no: 9, name: "accounts", kind: "message", oneof: "data", T: () => DataAccounts },
776
814
  { no: 3, name: "users", kind: "message", oneof: "data", T: () => DataUsers },
777
815
  { no: 4, name: "vehicles", kind: "message", oneof: "data", T: () => DataVehicles },
778
816
  { no: 5, name: "user_locations", kind: "message", oneof: "data", T: () => DataUserLocations },
@@ -791,37 +829,43 @@ class SendDataRequest$Type extends MessageType<SendDataRequest> {
791
829
  while (reader.pos < end) {
792
830
  let [fieldNo, wireType] = reader.tag();
793
831
  switch (fieldNo) {
794
- case /* resources.sync.DataJobs jobs */ 1:
832
+ case /* resources.sync.data.DataJobs jobs */ 1:
795
833
  message.data = {
796
834
  oneofKind: "jobs",
797
835
  jobs: DataJobs.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).jobs)
798
836
  };
799
837
  break;
800
- case /* resources.sync.DataLicenses licenses */ 2:
838
+ case /* resources.sync.data.DataLicenses licenses */ 2:
801
839
  message.data = {
802
840
  oneofKind: "licenses",
803
841
  licenses: DataLicenses.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).licenses)
804
842
  };
805
843
  break;
806
- case /* resources.sync.DataUsers users */ 3:
844
+ case /* resources.sync.data.DataAccounts accounts */ 9:
845
+ message.data = {
846
+ oneofKind: "accounts",
847
+ accounts: DataAccounts.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accounts)
848
+ };
849
+ break;
850
+ case /* resources.sync.data.DataUsers users */ 3:
807
851
  message.data = {
808
852
  oneofKind: "users",
809
853
  users: DataUsers.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).users)
810
854
  };
811
855
  break;
812
- case /* resources.sync.DataVehicles vehicles */ 4:
856
+ case /* resources.sync.data.DataVehicles vehicles */ 4:
813
857
  message.data = {
814
858
  oneofKind: "vehicles",
815
859
  vehicles: DataVehicles.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).vehicles)
816
860
  };
817
861
  break;
818
- case /* resources.sync.DataUserLocations user_locations */ 5:
862
+ case /* resources.sync.data.DataUserLocations user_locations */ 5:
819
863
  message.data = {
820
864
  oneofKind: "userLocations",
821
865
  userLocations: DataUserLocations.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).userLocations)
822
866
  };
823
867
  break;
824
- case /* resources.sync.LastCharID last_char_id */ 6:
868
+ case /* resources.sync.data.LastCharID last_char_id */ 6:
825
869
  message.data = {
826
870
  oneofKind: "lastCharId",
827
871
  lastCharId: LastCharID.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).lastCharId)
@@ -839,24 +883,27 @@ class SendDataRequest$Type extends MessageType<SendDataRequest> {
839
883
  return message;
840
884
  }
841
885
  internalBinaryWrite(message: SendDataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
842
- /* resources.sync.DataJobs jobs = 1; */
886
+ /* resources.sync.data.DataJobs jobs = 1; */
843
887
  if (message.data.oneofKind === "jobs")
844
888
  DataJobs.internalBinaryWrite(message.data.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
845
- /* resources.sync.DataLicenses licenses = 2; */
889
+ /* resources.sync.data.DataLicenses licenses = 2; */
846
890
  if (message.data.oneofKind === "licenses")
847
891
  DataLicenses.internalBinaryWrite(message.data.licenses, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
848
- /* resources.sync.DataUsers users = 3; */
892
+ /* resources.sync.data.DataUsers users = 3; */
849
893
  if (message.data.oneofKind === "users")
850
894
  DataUsers.internalBinaryWrite(message.data.users, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
851
- /* resources.sync.DataVehicles vehicles = 4; */
895
+ /* resources.sync.data.DataVehicles vehicles = 4; */
852
896
  if (message.data.oneofKind === "vehicles")
853
897
  DataVehicles.internalBinaryWrite(message.data.vehicles, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
854
- /* resources.sync.DataUserLocations user_locations = 5; */
898
+ /* resources.sync.data.DataUserLocations user_locations = 5; */
855
899
  if (message.data.oneofKind === "userLocations")
856
900
  DataUserLocations.internalBinaryWrite(message.data.userLocations, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
857
- /* resources.sync.LastCharID last_char_id = 6; */
901
+ /* resources.sync.data.LastCharID last_char_id = 6; */
858
902
  if (message.data.oneofKind === "lastCharId")
859
903
  LastCharID.internalBinaryWrite(message.data.lastCharId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
904
+ /* resources.sync.data.DataAccounts accounts = 9; */
905
+ if (message.data.oneofKind === "accounts")
906
+ DataAccounts.internalBinaryWrite(message.data.accounts, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
860
907
  let u = options.writeUnknownFields;
861
908
  if (u !== false)
862
909
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -934,13 +981,13 @@ class DeleteDataRequest$Type extends MessageType<DeleteDataRequest> {
934
981
  while (reader.pos < end) {
935
982
  let [fieldNo, wireType] = reader.tag();
936
983
  switch (fieldNo) {
937
- case /* resources.sync.DeleteUsers users */ 1:
984
+ case /* resources.sync.data.DeleteUsers users */ 1:
938
985
  message.data = {
939
986
  oneofKind: "users",
940
987
  users: DeleteUsers.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).users)
941
988
  };
942
989
  break;
943
- case /* resources.sync.DeleteVehicles vehicles */ 2:
990
+ case /* resources.sync.data.DeleteVehicles vehicles */ 2:
944
991
  message.data = {
945
992
  oneofKind: "vehicles",
946
993
  vehicles: DeleteVehicles.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).vehicles)
@@ -958,10 +1005,10 @@ class DeleteDataRequest$Type extends MessageType<DeleteDataRequest> {
958
1005
  return message;
959
1006
  }
960
1007
  internalBinaryWrite(message: DeleteDataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
961
- /* resources.sync.DeleteUsers users = 1; */
1008
+ /* resources.sync.data.DeleteUsers users = 1; */
962
1009
  if (message.data.oneofKind === "users")
963
1010
  DeleteUsers.internalBinaryWrite(message.data.users, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
964
- /* resources.sync.DeleteVehicles vehicles = 2; */
1011
+ /* resources.sync.data.DeleteVehicles vehicles = 2; */
965
1012
  if (message.data.oneofKind === "vehicles")
966
1013
  DeleteVehicles.internalBinaryWrite(message.data.vehicles, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
967
1014
  let u = options.writeUnknownFields;