@fivenet-app/gen 2026.7.0 → 2026.7.3

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.
@@ -33,6 +33,7 @@ import { ColleagueProps } from "../../resources/sync/activity/activity";
33
33
  import { ColleagueActivity } from "../../resources/jobs/colleagues/activity/activity";
34
34
  import { UserProps } from "../../resources/sync/activity/activity";
35
35
  import { UserActivity } from "../../resources/users/activity/activity";
36
+ import { Coords } from "../../resources/livemap/coords";
36
37
  import { MarkerMarker } from "../../resources/livemap/markers/marker_marker";
37
38
  import { Dispatch } from "../../resources/centrum/dispatches/dispatches";
38
39
  import { UserOAuth2Conn } from "../../resources/sync/activity/activity";
@@ -129,8 +130,6 @@ export interface TransferAccountRequest {
129
130
  export interface TransferAccountResponse {
130
131
  }
131
132
  /**
132
- * Individual AddActivity request messages
133
- *
134
133
  * @generated from protobuf message services.sync.AddUserOAuth2ConnRequest
135
134
  */
136
135
  export interface AddUserOAuth2ConnRequest {
@@ -166,6 +165,64 @@ export interface DeleteMarkerRequest {
166
165
  */
167
166
  id: number;
168
167
  }
168
+ /**
169
+ * @generated from protobuf message services.sync.EndActiveJobTimeclocksRequest
170
+ */
171
+ export interface EndActiveJobTimeclocksRequest {
172
+ }
173
+ /**
174
+ * @generated from protobuf message services.sync.EndActiveJobTimeclocksResponse
175
+ */
176
+ export interface EndActiveJobTimeclocksResponse {
177
+ /**
178
+ * @generated from protobuf field: int64 rows_affected = 1
179
+ */
180
+ rowsAffected: number;
181
+ }
182
+ /**
183
+ * Request to close active dispatches created for a specific user.
184
+ *
185
+ * @generated from protobuf message services.sync.CloseUserDispatchesRequest
186
+ */
187
+ export interface CloseUserDispatchesRequest {
188
+ /**
189
+ * User ID whose active dispatches should be closed.
190
+ *
191
+ * @generated from protobuf field: int32 target_user_id = 1
192
+ */
193
+ targetUserId: number;
194
+ /**
195
+ * Optional job list limiting which dispatch jobs are considered.
196
+ *
197
+ * @generated from protobuf field: repeated string limit_jobs = 2
198
+ */
199
+ limitJobs: string[];
200
+ /**
201
+ * Optional coordinates to attach to the closing dispatch status.
202
+ *
203
+ * @generated from protobuf field: optional resources.livemap.Coords coords = 3
204
+ */
205
+ coords?: Coords;
206
+ /**
207
+ * Optional reason to attach to the closing dispatch status.
208
+ *
209
+ * @generated from protobuf field: optional string reason = 4
210
+ */
211
+ reason?: string;
212
+ }
213
+ /**
214
+ * Response containing the number of dispatches closed for the user.
215
+ *
216
+ * @generated from protobuf message services.sync.CloseUserDispatchesResponse
217
+ */
218
+ export interface CloseUserDispatchesResponse {
219
+ /**
220
+ * Number of dispatches whose status was updated to completed.
221
+ *
222
+ * @generated from protobuf field: int64 rows_affected = 1
223
+ */
224
+ rowsAffected: number;
225
+ }
169
226
  /**
170
227
  * @generated from protobuf message services.sync.AddUserActivityRequest
171
228
  */
@@ -243,8 +300,6 @@ export interface AddActivityResponse {
243
300
  createdAt?: Timestamp;
244
301
  }
245
302
  /**
246
- * Individual SendData request messages
247
- *
248
303
  * @generated from protobuf message services.sync.SendJobsRequest
249
304
  */
250
305
  export interface SendJobsRequest {
@@ -325,8 +380,6 @@ export interface SendDataResponse {
325
380
  rowsAffected: number;
326
381
  }
327
382
  /**
328
- * Individual DeleteData request messages
329
- *
330
383
  * @generated from protobuf message services.sync.DeleteUsersRequest
331
384
  */
332
385
  export interface DeleteUsersRequest {
@@ -1061,6 +1114,207 @@ class DeleteMarkerRequest$Type extends MessageType<DeleteMarkerRequest> {
1061
1114
  */
1062
1115
  export const DeleteMarkerRequest = new DeleteMarkerRequest$Type();
1063
1116
  // @generated message type with reflection information, may provide speed optimized methods
1117
+ class EndActiveJobTimeclocksRequest$Type extends MessageType<EndActiveJobTimeclocksRequest> {
1118
+ constructor() {
1119
+ super("services.sync.EndActiveJobTimeclocksRequest", []);
1120
+ }
1121
+ create(value?: PartialMessage<EndActiveJobTimeclocksRequest>): EndActiveJobTimeclocksRequest {
1122
+ const message = globalThis.Object.create((this.messagePrototype!));
1123
+ if (value !== undefined)
1124
+ reflectionMergePartial<EndActiveJobTimeclocksRequest>(this, message, value);
1125
+ return message;
1126
+ }
1127
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndActiveJobTimeclocksRequest): EndActiveJobTimeclocksRequest {
1128
+ let message = target ?? this.create(), end = reader.pos + length;
1129
+ while (reader.pos < end) {
1130
+ let [fieldNo, wireType] = reader.tag();
1131
+ switch (fieldNo) {
1132
+ default:
1133
+ let u = options.readUnknownField;
1134
+ if (u === "throw")
1135
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1136
+ let d = reader.skip(wireType);
1137
+ if (u !== false)
1138
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1139
+ }
1140
+ }
1141
+ return message;
1142
+ }
1143
+ internalBinaryWrite(message: EndActiveJobTimeclocksRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1144
+ let u = options.writeUnknownFields;
1145
+ if (u !== false)
1146
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1147
+ return writer;
1148
+ }
1149
+ }
1150
+ /**
1151
+ * @generated MessageType for protobuf message services.sync.EndActiveJobTimeclocksRequest
1152
+ */
1153
+ export const EndActiveJobTimeclocksRequest = new EndActiveJobTimeclocksRequest$Type();
1154
+ // @generated message type with reflection information, may provide speed optimized methods
1155
+ class EndActiveJobTimeclocksResponse$Type extends MessageType<EndActiveJobTimeclocksResponse> {
1156
+ constructor() {
1157
+ super("services.sync.EndActiveJobTimeclocksResponse", [
1158
+ { no: 1, name: "rows_affected", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1159
+ ]);
1160
+ }
1161
+ create(value?: PartialMessage<EndActiveJobTimeclocksResponse>): EndActiveJobTimeclocksResponse {
1162
+ const message = globalThis.Object.create((this.messagePrototype!));
1163
+ message.rowsAffected = 0;
1164
+ if (value !== undefined)
1165
+ reflectionMergePartial<EndActiveJobTimeclocksResponse>(this, message, value);
1166
+ return message;
1167
+ }
1168
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EndActiveJobTimeclocksResponse): EndActiveJobTimeclocksResponse {
1169
+ let message = target ?? this.create(), end = reader.pos + length;
1170
+ while (reader.pos < end) {
1171
+ let [fieldNo, wireType] = reader.tag();
1172
+ switch (fieldNo) {
1173
+ case /* int64 rows_affected */ 1:
1174
+ message.rowsAffected = reader.int64().toNumber();
1175
+ break;
1176
+ default:
1177
+ let u = options.readUnknownField;
1178
+ if (u === "throw")
1179
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1180
+ let d = reader.skip(wireType);
1181
+ if (u !== false)
1182
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1183
+ }
1184
+ }
1185
+ return message;
1186
+ }
1187
+ internalBinaryWrite(message: EndActiveJobTimeclocksResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1188
+ /* int64 rows_affected = 1; */
1189
+ if (message.rowsAffected !== 0)
1190
+ writer.tag(1, WireType.Varint).int64(message.rowsAffected);
1191
+ let u = options.writeUnknownFields;
1192
+ if (u !== false)
1193
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1194
+ return writer;
1195
+ }
1196
+ }
1197
+ /**
1198
+ * @generated MessageType for protobuf message services.sync.EndActiveJobTimeclocksResponse
1199
+ */
1200
+ export const EndActiveJobTimeclocksResponse = new EndActiveJobTimeclocksResponse$Type();
1201
+ // @generated message type with reflection information, may provide speed optimized methods
1202
+ class CloseUserDispatchesRequest$Type extends MessageType<CloseUserDispatchesRequest> {
1203
+ constructor() {
1204
+ super("services.sync.CloseUserDispatchesRequest", [
1205
+ { no: 1, name: "target_user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
1206
+ { no: 2, name: "limit_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "20" } } } } } },
1207
+ { no: 3, name: "coords", kind: "message", T: () => Coords },
1208
+ { no: 4, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
1209
+ ]);
1210
+ }
1211
+ create(value?: PartialMessage<CloseUserDispatchesRequest>): CloseUserDispatchesRequest {
1212
+ const message = globalThis.Object.create((this.messagePrototype!));
1213
+ message.targetUserId = 0;
1214
+ message.limitJobs = [];
1215
+ if (value !== undefined)
1216
+ reflectionMergePartial<CloseUserDispatchesRequest>(this, message, value);
1217
+ return message;
1218
+ }
1219
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CloseUserDispatchesRequest): CloseUserDispatchesRequest {
1220
+ let message = target ?? this.create(), end = reader.pos + length;
1221
+ while (reader.pos < end) {
1222
+ let [fieldNo, wireType] = reader.tag();
1223
+ switch (fieldNo) {
1224
+ case /* int32 target_user_id */ 1:
1225
+ message.targetUserId = reader.int32();
1226
+ break;
1227
+ case /* repeated string limit_jobs */ 2:
1228
+ message.limitJobs.push(reader.string());
1229
+ break;
1230
+ case /* optional resources.livemap.Coords coords */ 3:
1231
+ message.coords = Coords.internalBinaryRead(reader, reader.uint32(), options, message.coords);
1232
+ break;
1233
+ case /* optional string reason */ 4:
1234
+ message.reason = reader.string();
1235
+ break;
1236
+ default:
1237
+ let u = options.readUnknownField;
1238
+ if (u === "throw")
1239
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1240
+ let d = reader.skip(wireType);
1241
+ if (u !== false)
1242
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1243
+ }
1244
+ }
1245
+ return message;
1246
+ }
1247
+ internalBinaryWrite(message: CloseUserDispatchesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1248
+ /* int32 target_user_id = 1; */
1249
+ if (message.targetUserId !== 0)
1250
+ writer.tag(1, WireType.Varint).int32(message.targetUserId);
1251
+ /* repeated string limit_jobs = 2; */
1252
+ for (let i = 0; i < message.limitJobs.length; i++)
1253
+ writer.tag(2, WireType.LengthDelimited).string(message.limitJobs[i]);
1254
+ /* optional resources.livemap.Coords coords = 3; */
1255
+ if (message.coords)
1256
+ Coords.internalBinaryWrite(message.coords, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1257
+ /* optional string reason = 4; */
1258
+ if (message.reason !== undefined)
1259
+ writer.tag(4, WireType.LengthDelimited).string(message.reason);
1260
+ let u = options.writeUnknownFields;
1261
+ if (u !== false)
1262
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1263
+ return writer;
1264
+ }
1265
+ }
1266
+ /**
1267
+ * @generated MessageType for protobuf message services.sync.CloseUserDispatchesRequest
1268
+ */
1269
+ export const CloseUserDispatchesRequest = new CloseUserDispatchesRequest$Type();
1270
+ // @generated message type with reflection information, may provide speed optimized methods
1271
+ class CloseUserDispatchesResponse$Type extends MessageType<CloseUserDispatchesResponse> {
1272
+ constructor() {
1273
+ super("services.sync.CloseUserDispatchesResponse", [
1274
+ { no: 1, name: "rows_affected", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1275
+ ]);
1276
+ }
1277
+ create(value?: PartialMessage<CloseUserDispatchesResponse>): CloseUserDispatchesResponse {
1278
+ const message = globalThis.Object.create((this.messagePrototype!));
1279
+ message.rowsAffected = 0;
1280
+ if (value !== undefined)
1281
+ reflectionMergePartial<CloseUserDispatchesResponse>(this, message, value);
1282
+ return message;
1283
+ }
1284
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CloseUserDispatchesResponse): CloseUserDispatchesResponse {
1285
+ let message = target ?? this.create(), end = reader.pos + length;
1286
+ while (reader.pos < end) {
1287
+ let [fieldNo, wireType] = reader.tag();
1288
+ switch (fieldNo) {
1289
+ case /* int64 rows_affected */ 1:
1290
+ message.rowsAffected = reader.int64().toNumber();
1291
+ break;
1292
+ default:
1293
+ let u = options.readUnknownField;
1294
+ if (u === "throw")
1295
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1296
+ let d = reader.skip(wireType);
1297
+ if (u !== false)
1298
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1299
+ }
1300
+ }
1301
+ return message;
1302
+ }
1303
+ internalBinaryWrite(message: CloseUserDispatchesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1304
+ /* int64 rows_affected = 1; */
1305
+ if (message.rowsAffected !== 0)
1306
+ writer.tag(1, WireType.Varint).int64(message.rowsAffected);
1307
+ let u = options.writeUnknownFields;
1308
+ if (u !== false)
1309
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1310
+ return writer;
1311
+ }
1312
+ }
1313
+ /**
1314
+ * @generated MessageType for protobuf message services.sync.CloseUserDispatchesResponse
1315
+ */
1316
+ export const CloseUserDispatchesResponse = new CloseUserDispatchesResponse$Type();
1317
+ // @generated message type with reflection information, may provide speed optimized methods
1064
1318
  class AddUserActivityRequest$Type extends MessageType<AddUserActivityRequest> {
1065
1319
  constructor() {
1066
1320
  super("services.sync.AddUserActivityRequest", [
@@ -2388,6 +2642,8 @@ export const SyncService = new ServiceType("services.sync.SyncService", [
2388
2642
  { name: "AddDispatch", options: {}, I: AddDispatchRequest, O: AddActivityResponse },
2389
2643
  { name: "AddMarker", options: {}, I: AddMarkerRequest, O: AddActivityResponse },
2390
2644
  { name: "DeleteMarker", options: {}, I: DeleteMarkerRequest, O: DeleteDataResponse },
2645
+ { name: "EndActiveJobTimeclocks", options: {}, I: EndActiveJobTimeclocksRequest, O: EndActiveJobTimeclocksResponse },
2646
+ { name: "CloseUserDispatches", options: {}, I: CloseUserDispatchesRequest, O: CloseUserDispatchesResponse },
2391
2647
  { name: "SendJobs", options: {}, I: SendJobsRequest, O: SendDataResponse },
2392
2648
  { name: "SendLicenses", options: {}, I: SendLicensesRequest, O: SendDataResponse },
2393
2649
  { name: "SendAccounts", options: {}, I: SendAccountsRequest, O: SendDataResponse },
@@ -5,6 +5,8 @@
5
5
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
6
6
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
7
  import { VehiclesService } from "./vehicles";
8
+ import type { ListVehicleActivityResponse } from "./vehicles";
9
+ import type { ListVehicleActivityRequest } from "./vehicles";
8
10
  import type { SetVehiclePropsResponse } from "./vehicles";
9
11
  import type { SetVehiclePropsRequest } from "./vehicles";
10
12
  import { stackIntercept } from "@protobuf-ts/runtime-rpc";
@@ -24,6 +26,10 @@ export interface IVehiclesServiceClient {
24
26
  * @generated from protobuf rpc: SetVehicleProps
25
27
  */
26
28
  setVehicleProps(input: SetVehiclePropsRequest, options?: RpcOptions): UnaryCall<SetVehiclePropsRequest, SetVehiclePropsResponse>;
29
+ /**
30
+ * @generated from protobuf rpc: ListVehicleActivity
31
+ */
32
+ listVehicleActivity(input: ListVehicleActivityRequest, options?: RpcOptions): UnaryCall<ListVehicleActivityRequest, ListVehicleActivityResponse>;
27
33
  }
28
34
  /**
29
35
  * @generated from protobuf service services.vehicles.VehiclesService
@@ -48,4 +54,11 @@ export class VehiclesServiceClient implements IVehiclesServiceClient, ServiceInf
48
54
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
49
55
  return stackIntercept<SetVehiclePropsRequest, SetVehiclePropsResponse>("unary", this._transport, method, opt, input);
50
56
  }
57
+ /**
58
+ * @generated from protobuf rpc: ListVehicleActivity
59
+ */
60
+ listVehicleActivity(input: ListVehicleActivityRequest, options?: RpcOptions): UnaryCall<ListVehicleActivityRequest, ListVehicleActivityResponse> {
61
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
62
+ return stackIntercept<ListVehicleActivityRequest, ListVehicleActivityResponse>("unary", this._transport, method, opt, input);
63
+ }
51
64
  }
@@ -12,6 +12,8 @@ import { WireType } 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 { VehicleActivity } from "../../resources/vehicles/activity/activity";
16
+ import { VehicleActivityType } from "../../resources/vehicles/activity/activity";
15
17
  import { VehicleProps } from "../../resources/vehicles/props/props";
16
18
  import { Vehicle } from "../../resources/vehicles/vehicles";
17
19
  import { PaginationResponse } from "../../resources/common/database/database";
@@ -73,6 +75,10 @@ export interface SetVehiclePropsRequest {
73
75
  * @generated from protobuf field: resources.vehicles.props.VehicleProps props = 1
74
76
  */
75
77
  props?: VehicleProps;
78
+ /**
79
+ * @generated from protobuf field: string reason = 2
80
+ */
81
+ reason: string;
76
82
  }
77
83
  /**
78
84
  * @generated from protobuf message services.vehicles.SetVehiclePropsResponse
@@ -82,10 +88,40 @@ export interface SetVehiclePropsResponse {
82
88
  * @generated from protobuf field: resources.vehicles.props.VehicleProps props = 1
83
89
  */
84
90
  props?: VehicleProps;
91
+ }
92
+ /**
93
+ * @generated from protobuf message services.vehicles.ListVehicleActivityRequest
94
+ */
95
+ export interface ListVehicleActivityRequest {
85
96
  /**
86
- * @generated from protobuf field: string reason = 2
97
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
87
98
  */
88
- reason: string;
99
+ pagination?: PaginationRequest;
100
+ /**
101
+ * @generated from protobuf field: optional resources.common.database.Sort sort = 2
102
+ */
103
+ sort?: Sort;
104
+ /**
105
+ * @generated from protobuf field: string plate = 3
106
+ */
107
+ plate: string;
108
+ /**
109
+ * @generated from protobuf field: repeated resources.vehicles.activity.VehicleActivityType types = 4
110
+ */
111
+ types: VehicleActivityType[];
112
+ }
113
+ /**
114
+ * @generated from protobuf message services.vehicles.ListVehicleActivityResponse
115
+ */
116
+ export interface ListVehicleActivityResponse {
117
+ /**
118
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
119
+ */
120
+ pagination?: PaginationResponse;
121
+ /**
122
+ * @generated from protobuf field: repeated resources.vehicles.activity.VehicleActivity activity = 2
123
+ */
124
+ activity: VehicleActivity[];
89
125
  }
90
126
  // @generated message type with reflection information, may provide speed optimized methods
91
127
  class ListVehiclesRequest$Type extends MessageType<ListVehiclesRequest> {
@@ -242,11 +278,13 @@ export const ListVehiclesResponse = new ListVehiclesResponse$Type();
242
278
  class SetVehiclePropsRequest$Type extends MessageType<SetVehiclePropsRequest> {
243
279
  constructor() {
244
280
  super("services.vehicles.SetVehiclePropsRequest", [
245
- { no: 1, name: "props", kind: "message", T: () => VehicleProps, options: { "buf.validate.field": { required: true } } }
281
+ { no: 1, name: "props", kind: "message", T: () => VehicleProps, options: { "buf.validate.field": { required: true } } },
282
+ { no: 2, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_IF_ZERO_VALUE", string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
246
283
  ]);
247
284
  }
248
285
  create(value?: PartialMessage<SetVehiclePropsRequest>): SetVehiclePropsRequest {
249
286
  const message = globalThis.Object.create((this.messagePrototype!));
287
+ message.reason = "";
250
288
  if (value !== undefined)
251
289
  reflectionMergePartial<SetVehiclePropsRequest>(this, message, value);
252
290
  return message;
@@ -259,6 +297,9 @@ class SetVehiclePropsRequest$Type extends MessageType<SetVehiclePropsRequest> {
259
297
  case /* resources.vehicles.props.VehicleProps props */ 1:
260
298
  message.props = VehicleProps.internalBinaryRead(reader, reader.uint32(), options, message.props);
261
299
  break;
300
+ case /* string reason */ 2:
301
+ message.reason = reader.string();
302
+ break;
262
303
  default:
263
304
  let u = options.readUnknownField;
264
305
  if (u === "throw")
@@ -274,6 +315,9 @@ class SetVehiclePropsRequest$Type extends MessageType<SetVehiclePropsRequest> {
274
315
  /* resources.vehicles.props.VehicleProps props = 1; */
275
316
  if (message.props)
276
317
  VehicleProps.internalBinaryWrite(message.props, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
318
+ /* string reason = 2; */
319
+ if (message.reason !== "")
320
+ writer.tag(2, WireType.LengthDelimited).string(message.reason);
277
321
  let u = options.writeUnknownFields;
278
322
  if (u !== false)
279
323
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -288,13 +332,11 @@ export const SetVehiclePropsRequest = new SetVehiclePropsRequest$Type();
288
332
  class SetVehiclePropsResponse$Type extends MessageType<SetVehiclePropsResponse> {
289
333
  constructor() {
290
334
  super("services.vehicles.SetVehiclePropsResponse", [
291
- { no: 1, name: "props", kind: "message", T: () => VehicleProps },
292
- { no: 2, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_IF_ZERO_VALUE", string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
335
+ { no: 1, name: "props", kind: "message", T: () => VehicleProps }
293
336
  ]);
294
337
  }
295
338
  create(value?: PartialMessage<SetVehiclePropsResponse>): SetVehiclePropsResponse {
296
339
  const message = globalThis.Object.create((this.messagePrototype!));
297
- message.reason = "";
298
340
  if (value !== undefined)
299
341
  reflectionMergePartial<SetVehiclePropsResponse>(this, message, value);
300
342
  return message;
@@ -307,9 +349,6 @@ class SetVehiclePropsResponse$Type extends MessageType<SetVehiclePropsResponse>
307
349
  case /* resources.vehicles.props.VehicleProps props */ 1:
308
350
  message.props = VehicleProps.internalBinaryRead(reader, reader.uint32(), options, message.props);
309
351
  break;
310
- case /* string reason */ 2:
311
- message.reason = reader.string();
312
- break;
313
352
  default:
314
353
  let u = options.readUnknownField;
315
354
  if (u === "throw")
@@ -325,9 +364,6 @@ class SetVehiclePropsResponse$Type extends MessageType<SetVehiclePropsResponse>
325
364
  /* resources.vehicles.props.VehicleProps props = 1; */
326
365
  if (message.props)
327
366
  VehicleProps.internalBinaryWrite(message.props, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
328
- /* string reason = 2; */
329
- if (message.reason !== "")
330
- writer.tag(2, WireType.LengthDelimited).string(message.reason);
331
367
  let u = options.writeUnknownFields;
332
368
  if (u !== false)
333
369
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -338,10 +374,142 @@ class SetVehiclePropsResponse$Type extends MessageType<SetVehiclePropsResponse>
338
374
  * @generated MessageType for protobuf message services.vehicles.SetVehiclePropsResponse
339
375
  */
340
376
  export const SetVehiclePropsResponse = new SetVehiclePropsResponse$Type();
377
+ // @generated message type with reflection information, may provide speed optimized methods
378
+ class ListVehicleActivityRequest$Type extends MessageType<ListVehicleActivityRequest> {
379
+ constructor() {
380
+ super("services.vehicles.ListVehicleActivityRequest", [
381
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
382
+ { no: 2, name: "sort", kind: "message", T: () => Sort },
383
+ { no: 3, name: "plate", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "32" } } } },
384
+ { no: 4, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.vehicles.activity.VehicleActivityType", VehicleActivityType, "VEHICLE_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "20", items: { enum: { definedOnly: true } } } } } }
385
+ ]);
386
+ }
387
+ create(value?: PartialMessage<ListVehicleActivityRequest>): ListVehicleActivityRequest {
388
+ const message = globalThis.Object.create((this.messagePrototype!));
389
+ message.plate = "";
390
+ message.types = [];
391
+ if (value !== undefined)
392
+ reflectionMergePartial<ListVehicleActivityRequest>(this, message, value);
393
+ return message;
394
+ }
395
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListVehicleActivityRequest): ListVehicleActivityRequest {
396
+ let message = target ?? this.create(), end = reader.pos + length;
397
+ while (reader.pos < end) {
398
+ let [fieldNo, wireType] = reader.tag();
399
+ switch (fieldNo) {
400
+ case /* resources.common.database.PaginationRequest pagination */ 1:
401
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
402
+ break;
403
+ case /* optional resources.common.database.Sort sort */ 2:
404
+ message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
405
+ break;
406
+ case /* string plate */ 3:
407
+ message.plate = reader.string();
408
+ break;
409
+ case /* repeated resources.vehicles.activity.VehicleActivityType types */ 4:
410
+ if (wireType === WireType.LengthDelimited)
411
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
412
+ message.types.push(reader.int32());
413
+ else
414
+ message.types.push(reader.int32());
415
+ break;
416
+ default:
417
+ let u = options.readUnknownField;
418
+ if (u === "throw")
419
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
420
+ let d = reader.skip(wireType);
421
+ if (u !== false)
422
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
423
+ }
424
+ }
425
+ return message;
426
+ }
427
+ internalBinaryWrite(message: ListVehicleActivityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
428
+ /* resources.common.database.PaginationRequest pagination = 1; */
429
+ if (message.pagination)
430
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
431
+ /* optional resources.common.database.Sort sort = 2; */
432
+ if (message.sort)
433
+ Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
434
+ /* string plate = 3; */
435
+ if (message.plate !== "")
436
+ writer.tag(3, WireType.LengthDelimited).string(message.plate);
437
+ /* repeated resources.vehicles.activity.VehicleActivityType types = 4; */
438
+ if (message.types.length) {
439
+ writer.tag(4, WireType.LengthDelimited).fork();
440
+ for (let i = 0; i < message.types.length; i++)
441
+ writer.int32(message.types[i]);
442
+ writer.join();
443
+ }
444
+ let u = options.writeUnknownFields;
445
+ if (u !== false)
446
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
447
+ return writer;
448
+ }
449
+ }
450
+ /**
451
+ * @generated MessageType for protobuf message services.vehicles.ListVehicleActivityRequest
452
+ */
453
+ export const ListVehicleActivityRequest = new ListVehicleActivityRequest$Type();
454
+ // @generated message type with reflection information, may provide speed optimized methods
455
+ class ListVehicleActivityResponse$Type extends MessageType<ListVehicleActivityResponse> {
456
+ constructor() {
457
+ super("services.vehicles.ListVehicleActivityResponse", [
458
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
459
+ { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => VehicleActivity, options: { "codegen.itemslen.enabled": true } }
460
+ ]);
461
+ }
462
+ create(value?: PartialMessage<ListVehicleActivityResponse>): ListVehicleActivityResponse {
463
+ const message = globalThis.Object.create((this.messagePrototype!));
464
+ message.activity = [];
465
+ if (value !== undefined)
466
+ reflectionMergePartial<ListVehicleActivityResponse>(this, message, value);
467
+ return message;
468
+ }
469
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListVehicleActivityResponse): ListVehicleActivityResponse {
470
+ let message = target ?? this.create(), end = reader.pos + length;
471
+ while (reader.pos < end) {
472
+ let [fieldNo, wireType] = reader.tag();
473
+ switch (fieldNo) {
474
+ case /* resources.common.database.PaginationResponse pagination */ 1:
475
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
476
+ break;
477
+ case /* repeated resources.vehicles.activity.VehicleActivity activity */ 2:
478
+ message.activity.push(VehicleActivity.internalBinaryRead(reader, reader.uint32(), options));
479
+ break;
480
+ default:
481
+ let u = options.readUnknownField;
482
+ if (u === "throw")
483
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
484
+ let d = reader.skip(wireType);
485
+ if (u !== false)
486
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
487
+ }
488
+ }
489
+ return message;
490
+ }
491
+ internalBinaryWrite(message: ListVehicleActivityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
492
+ /* resources.common.database.PaginationResponse pagination = 1; */
493
+ if (message.pagination)
494
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
495
+ /* repeated resources.vehicles.activity.VehicleActivity activity = 2; */
496
+ for (let i = 0; i < message.activity.length; i++)
497
+ VehicleActivity.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
498
+ let u = options.writeUnknownFields;
499
+ if (u !== false)
500
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
501
+ return writer;
502
+ }
503
+ }
504
+ /**
505
+ * @generated MessageType for protobuf message services.vehicles.ListVehicleActivityResponse
506
+ */
507
+ export const ListVehicleActivityResponse = new ListVehicleActivityResponse$Type();
341
508
  /**
342
509
  * @generated ServiceType for protobuf service services.vehicles.VehiclesService
343
510
  */
344
511
  export const VehiclesService = new ServiceType("services.vehicles.VehiclesService", [
345
512
  { name: "ListVehicles", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Wanted"] }] } }, I: ListVehiclesRequest, O: ListVehiclesResponse },
346
- { name: "SetVehicleProps", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Wanted"] }] } }, I: SetVehiclePropsRequest, O: SetVehiclePropsResponse }
513
+ { name: "SetVehicleProps", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Wanted"] }] } }, I: SetVehiclePropsRequest, O: SetVehiclePropsResponse },
514
+ { name: "ListVehicleActivity", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Creator", "Own"] }] } }, I: ListVehicleActivityRequest, O: ListVehicleActivityResponse }
347
515
  ], { "codegen.perms.perms_svc": { order: 40, icon: "i-mdi-car-outline" } });
package/svcs.ts CHANGED
@@ -251,6 +251,7 @@ export const grpcMethods = [
251
251
  'auth.AuthService/ChooseCharacter',
252
252
  'auth.AuthService/ImpersonateJob',
253
253
  'auth.AuthService/GetAccountInfo',
254
+ 'auth.AuthService/RefreshAccountSession',
254
255
  'auth.AuthService/DeleteSocialLogin',
255
256
  'auth.AuthService/SetSuperuserMode',
256
257
  'calendar.CalendarService/ListCalendars',
@@ -483,6 +484,8 @@ export const grpcMethods = [
483
484
  'sync.SyncService/AddDispatch',
484
485
  'sync.SyncService/AddMarker',
485
486
  'sync.SyncService/DeleteMarker',
487
+ 'sync.SyncService/EndActiveJobTimeclocks',
488
+ 'sync.SyncService/CloseUserDispatches',
486
489
  'sync.SyncService/SendJobs',
487
490
  'sync.SyncService/SendLicenses',
488
491
  'sync.SyncService/SendAccounts',
@@ -498,6 +501,7 @@ export const grpcMethods = [
498
501
  'sync.SyncService/DeleteData',
499
502
  'vehicles.VehiclesService/ListVehicles',
500
503
  'vehicles.VehiclesService/SetVehicleProps',
504
+ 'vehicles.VehiclesService/ListVehicleActivity',
501
505
  'wiki.CollabService/JoinRoom',
502
506
  'wiki.WikiService/ListPages',
503
507
  'wiki.WikiService/GetPage',