@fivenet-app/gen 2026.5.1 → 2026.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients.ts +6 -0
- package/codegen/perms/perms.ts +14 -2
- package/codegen/sanitizer/sanitizer.ts +6 -0
- package/google/protobuf/descriptor.ts +11 -3
- package/google/protobuf/timestamp.ts +7 -6
- package/package.json +1 -1
- package/perms.ts +352 -8
- package/resources/access/access.ts +481 -0
- package/resources/calendar/access/access.ts +0 -330
- package/resources/calendar/calendar.ts +307 -25
- package/resources/calendar/entries/entries.ts +204 -11
- package/resources/centrum/units/access/access.ts +0 -373
- package/resources/centrum/units/units.ts +20 -8
- package/resources/citizens/labels/access.ts +0 -191
- package/resources/citizens/labels/labels.ts +20 -8
- package/resources/clientconfig/clientconfig.ts +11 -0
- package/resources/common/content/diff_activity.ts +1 -1
- package/resources/cron/cron.ts +1 -1
- package/resources/documents/access/access.ts +0 -329
- package/resources/documents/activity/activity.ts +49 -45
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests/requests.ts +1 -1
- package/resources/documents/stamps/stamp.ts +40 -210
- package/resources/documents/templates/templates.ts +158 -318
- package/resources/jobs/colleagues/activity/activity.ts +1 -1
- package/resources/jobs/conduct/conduct.ts +2 -2
- package/resources/jobs/labels/labels.ts +9 -9
- package/resources/laws/laws.ts +24 -0
- package/resources/livemap/markers/marker_marker.ts +311 -4
- package/resources/mailer/access/access.ts +0 -457
- package/resources/mailer/emails/email.ts +4 -4
- package/resources/notifications/events/events.ts +37 -2
- package/resources/qualifications/access/access.ts +0 -248
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/settings/config.ts +64 -5
- package/resources/settings/data.ts +1 -1
- package/resources/stats/stats.ts +32 -20
- package/resources/sync/data/data.ts +26 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/userinfo/userinfo.ts +202 -51
- package/resources/users/activity/activity.ts +1 -1
- package/resources/vehicles/activity/activity.ts +146 -10
- package/resources/wiki/access/access.ts +0 -330
- package/resources/wiki/activity/activity.ts +45 -45
- package/resources/wiki/page.ts +9 -9
- package/services/auth/auth.client.ts +15 -2
- package/services/auth/auth.ts +135 -0
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +12 -1
- package/services/centrum/dispatches.ts +27 -7
- package/services/centrum/units.client.ts +15 -2
- package/services/centrum/units.ts +231 -123
- package/services/citizens/citizens.ts +1 -1
- package/services/citizens/labels.client.ts +7 -20
- package/services/citizens/labels.ts +35 -183
- package/services/documents/approval.ts +15 -4
- package/services/documents/collab.ts +1 -1
- package/services/documents/documents.ts +38 -38
- package/services/documents/stats.ts +14 -2
- package/services/filestore/filestore.ts +4 -4
- package/services/jobs/colleagues.ts +3 -3
- package/services/jobs/conduct.ts +15 -4
- package/services/jobs/groups.client.ts +22 -0
- package/services/jobs/groups.ts +9 -0
- package/services/jobs/timeclock.ts +2 -2
- package/services/mailer/thread.ts +2 -2
- package/services/qualifications/qualifications.ts +52 -34
- package/services/settings/accounts.ts +5 -5
- package/services/settings/config.ts +2 -2
- package/services/settings/cron.ts +2 -2
- package/services/settings/laws.client.ts +28 -2
- package/services/settings/laws.ts +229 -1
- package/services/settings/system.ts +6 -6
- package/services/sync/sync.client.ts +129 -20
- package/services/sync/sync.ts +262 -19
- package/services/vehicles/vehicles.client.ts +13 -0
- package/services/vehicles/vehicles.ts +181 -13
- package/services/wiki/wiki.client.ts +15 -2
- package/services/wiki/wiki.ts +122 -0
- package/svcs.ts +21 -2
|
@@ -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:
|
|
97
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
87
98
|
*/
|
|
88
|
-
|
|
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" } });
|
|
@@ -10,6 +10,8 @@ import type { UploadFileRequest } from "../../resources/file/filestore";
|
|
|
10
10
|
import type { ClientStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
11
11
|
import type { ListPageActivityResponse } from "./wiki";
|
|
12
12
|
import type { ListPageActivityRequest } from "./wiki";
|
|
13
|
+
import type { MovePageResponse } from "./wiki";
|
|
14
|
+
import type { MovePageRequest } from "./wiki";
|
|
13
15
|
import type { DeletePageResponse } from "./wiki";
|
|
14
16
|
import type { DeletePageRequest } from "./wiki";
|
|
15
17
|
import type { UpdatePageResponse } from "./wiki";
|
|
@@ -47,6 +49,10 @@ export interface IWikiServiceClient {
|
|
|
47
49
|
* @generated from protobuf rpc: DeletePage
|
|
48
50
|
*/
|
|
49
51
|
deletePage(input: DeletePageRequest, options?: RpcOptions): UnaryCall<DeletePageRequest, DeletePageResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf rpc: MovePage
|
|
54
|
+
*/
|
|
55
|
+
movePage(input: MovePageRequest, options?: RpcOptions): UnaryCall<MovePageRequest, MovePageResponse>;
|
|
50
56
|
/**
|
|
51
57
|
* @generated from protobuf rpc: ListPageActivity
|
|
52
58
|
*/
|
|
@@ -100,18 +106,25 @@ export class WikiServiceClient implements IWikiServiceClient, ServiceInfo {
|
|
|
100
106
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
101
107
|
return stackIntercept<DeletePageRequest, DeletePageResponse>("unary", this._transport, method, opt, input);
|
|
102
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf rpc: MovePage
|
|
111
|
+
*/
|
|
112
|
+
movePage(input: MovePageRequest, options?: RpcOptions): UnaryCall<MovePageRequest, MovePageResponse> {
|
|
113
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
114
|
+
return stackIntercept<MovePageRequest, MovePageResponse>("unary", this._transport, method, opt, input);
|
|
115
|
+
}
|
|
103
116
|
/**
|
|
104
117
|
* @generated from protobuf rpc: ListPageActivity
|
|
105
118
|
*/
|
|
106
119
|
listPageActivity(input: ListPageActivityRequest, options?: RpcOptions): UnaryCall<ListPageActivityRequest, ListPageActivityResponse> {
|
|
107
|
-
const method = this.methods[
|
|
120
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
108
121
|
return stackIntercept<ListPageActivityRequest, ListPageActivityResponse>("unary", this._transport, method, opt, input);
|
|
109
122
|
}
|
|
110
123
|
/**
|
|
111
124
|
* @generated from protobuf rpc: UploadFile
|
|
112
125
|
*/
|
|
113
126
|
uploadFile(options?: RpcOptions): ClientStreamingCall<UploadFileRequest, UploadFileResponse> {
|
|
114
|
-
const method = this.methods[
|
|
127
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
115
128
|
return stackIntercept<UploadFileRequest, UploadFileResponse>("clientStreaming", this._transport, method, opt);
|
|
116
129
|
}
|
|
117
130
|
}
|
package/services/wiki/wiki.ts
CHANGED
|
@@ -137,6 +137,28 @@ export interface DeletePageRequest {
|
|
|
137
137
|
*/
|
|
138
138
|
export interface DeletePageResponse {
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from protobuf message services.wiki.MovePageRequest
|
|
142
|
+
*/
|
|
143
|
+
export interface MovePageRequest {
|
|
144
|
+
/**
|
|
145
|
+
* @generated from protobuf field: int64 page_id = 1
|
|
146
|
+
*/
|
|
147
|
+
pageId: number;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from protobuf field: optional int64 before_id = 2
|
|
150
|
+
*/
|
|
151
|
+
beforeId?: number;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf field: optional int64 after_id = 3
|
|
154
|
+
*/
|
|
155
|
+
afterId?: number;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @generated from protobuf message services.wiki.MovePageResponse
|
|
159
|
+
*/
|
|
160
|
+
export interface MovePageResponse {
|
|
161
|
+
}
|
|
140
162
|
/**
|
|
141
163
|
* @generated from protobuf message services.wiki.ListPageActivityRequest
|
|
142
164
|
*/
|
|
@@ -671,6 +693,105 @@ class DeletePageResponse$Type extends MessageType<DeletePageResponse> {
|
|
|
671
693
|
*/
|
|
672
694
|
export const DeletePageResponse = new DeletePageResponse$Type();
|
|
673
695
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
696
|
+
class MovePageRequest$Type extends MessageType<MovePageRequest> {
|
|
697
|
+
constructor() {
|
|
698
|
+
super("services.wiki.MovePageRequest", [
|
|
699
|
+
{ no: 1, name: "page_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
700
|
+
{ no: 2, name: "before_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
701
|
+
{ no: 3, name: "after_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } }
|
|
702
|
+
]);
|
|
703
|
+
}
|
|
704
|
+
create(value?: PartialMessage<MovePageRequest>): MovePageRequest {
|
|
705
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
706
|
+
message.pageId = 0;
|
|
707
|
+
if (value !== undefined)
|
|
708
|
+
reflectionMergePartial<MovePageRequest>(this, message, value);
|
|
709
|
+
return message;
|
|
710
|
+
}
|
|
711
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MovePageRequest): MovePageRequest {
|
|
712
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
713
|
+
while (reader.pos < end) {
|
|
714
|
+
let [fieldNo, wireType] = reader.tag();
|
|
715
|
+
switch (fieldNo) {
|
|
716
|
+
case /* int64 page_id */ 1:
|
|
717
|
+
message.pageId = reader.int64().toNumber();
|
|
718
|
+
break;
|
|
719
|
+
case /* optional int64 before_id */ 2:
|
|
720
|
+
message.beforeId = reader.int64().toNumber();
|
|
721
|
+
break;
|
|
722
|
+
case /* optional int64 after_id */ 3:
|
|
723
|
+
message.afterId = reader.int64().toNumber();
|
|
724
|
+
break;
|
|
725
|
+
default:
|
|
726
|
+
let u = options.readUnknownField;
|
|
727
|
+
if (u === "throw")
|
|
728
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
729
|
+
let d = reader.skip(wireType);
|
|
730
|
+
if (u !== false)
|
|
731
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return message;
|
|
735
|
+
}
|
|
736
|
+
internalBinaryWrite(message: MovePageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
737
|
+
/* int64 page_id = 1; */
|
|
738
|
+
if (message.pageId !== 0)
|
|
739
|
+
writer.tag(1, WireType.Varint).int64(message.pageId);
|
|
740
|
+
/* optional int64 before_id = 2; */
|
|
741
|
+
if (message.beforeId !== undefined)
|
|
742
|
+
writer.tag(2, WireType.Varint).int64(message.beforeId);
|
|
743
|
+
/* optional int64 after_id = 3; */
|
|
744
|
+
if (message.afterId !== undefined)
|
|
745
|
+
writer.tag(3, WireType.Varint).int64(message.afterId);
|
|
746
|
+
let u = options.writeUnknownFields;
|
|
747
|
+
if (u !== false)
|
|
748
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
749
|
+
return writer;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @generated MessageType for protobuf message services.wiki.MovePageRequest
|
|
754
|
+
*/
|
|
755
|
+
export const MovePageRequest = new MovePageRequest$Type();
|
|
756
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
757
|
+
class MovePageResponse$Type extends MessageType<MovePageResponse> {
|
|
758
|
+
constructor() {
|
|
759
|
+
super("services.wiki.MovePageResponse", []);
|
|
760
|
+
}
|
|
761
|
+
create(value?: PartialMessage<MovePageResponse>): MovePageResponse {
|
|
762
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
763
|
+
if (value !== undefined)
|
|
764
|
+
reflectionMergePartial<MovePageResponse>(this, message, value);
|
|
765
|
+
return message;
|
|
766
|
+
}
|
|
767
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MovePageResponse): MovePageResponse {
|
|
768
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
769
|
+
while (reader.pos < end) {
|
|
770
|
+
let [fieldNo, wireType] = reader.tag();
|
|
771
|
+
switch (fieldNo) {
|
|
772
|
+
default:
|
|
773
|
+
let u = options.readUnknownField;
|
|
774
|
+
if (u === "throw")
|
|
775
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
776
|
+
let d = reader.skip(wireType);
|
|
777
|
+
if (u !== false)
|
|
778
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
return message;
|
|
782
|
+
}
|
|
783
|
+
internalBinaryWrite(message: MovePageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
784
|
+
let u = options.writeUnknownFields;
|
|
785
|
+
if (u !== false)
|
|
786
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
787
|
+
return writer;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* @generated MessageType for protobuf message services.wiki.MovePageResponse
|
|
792
|
+
*/
|
|
793
|
+
export const MovePageResponse = new MovePageResponse$Type();
|
|
794
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
674
795
|
class ListPageActivityRequest$Type extends MessageType<ListPageActivityRequest> {
|
|
675
796
|
constructor() {
|
|
676
797
|
super("services.wiki.ListPageActivityRequest", [
|
|
@@ -787,6 +908,7 @@ export const WikiService = new ServiceType("services.wiki.WikiService", [
|
|
|
787
908
|
{ name: "CreatePage", options: { "codegen.perms.perms": { enabled: true } }, I: CreatePageRequest, O: CreatePageResponse },
|
|
788
909
|
{ name: "UpdatePage", options: { "codegen.perms.perms": { enabled: true, names: ["UpdatePage", "CreatePage"], attrs: [{ key: "Fields", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Public"] }] } }, I: UpdatePageRequest, O: UpdatePageResponse },
|
|
789
910
|
{ name: "DeletePage", options: { "codegen.perms.perms": { enabled: true } }, I: DeletePageRequest, O: DeletePageResponse },
|
|
911
|
+
{ name: "MovePage", options: { "codegen.perms.perms": { enabled: true } }, I: MovePageRequest, O: MovePageResponse },
|
|
790
912
|
{ name: "ListPageActivity", options: { "codegen.perms.perms": { enabled: true } }, I: ListPageActivityRequest, O: ListPageActivityResponse },
|
|
791
913
|
{ name: "UploadFile", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, names: ["CreatePage", "UpdatePage"] } }, I: UploadFileRequest, O: UploadFileResponse }
|
|
792
914
|
], { "codegen.perms.perms_svc": { order: 110, icon: "i-mdi-brain" } });
|
package/svcs.ts
CHANGED
|
@@ -102,26 +102,37 @@
|
|
|
102
102
|
// source: services/filestore/filestore.proto
|
|
103
103
|
// source: services/jobs/colleagues.proto
|
|
104
104
|
// source: services/jobs/conduct.proto
|
|
105
|
+
// source: services/jobs/groups.proto
|
|
105
106
|
// source: services/jobs/jobs.proto
|
|
106
107
|
// source: services/jobs/stats.proto
|
|
107
108
|
// source: services/jobs/timeclock.proto
|
|
108
109
|
// source: services/jobs/colleagues.proto
|
|
109
110
|
// source: services/jobs/conduct.proto
|
|
111
|
+
// source: services/jobs/groups.proto
|
|
110
112
|
// source: services/jobs/jobs.proto
|
|
111
113
|
// source: services/jobs/stats.proto
|
|
112
114
|
// source: services/jobs/timeclock.proto
|
|
113
115
|
// source: services/jobs/colleagues.proto
|
|
114
116
|
// source: services/jobs/conduct.proto
|
|
117
|
+
// source: services/jobs/groups.proto
|
|
115
118
|
// source: services/jobs/jobs.proto
|
|
116
119
|
// source: services/jobs/stats.proto
|
|
117
120
|
// source: services/jobs/timeclock.proto
|
|
118
121
|
// source: services/jobs/colleagues.proto
|
|
119
122
|
// source: services/jobs/conduct.proto
|
|
123
|
+
// source: services/jobs/groups.proto
|
|
120
124
|
// source: services/jobs/jobs.proto
|
|
121
125
|
// source: services/jobs/stats.proto
|
|
122
126
|
// source: services/jobs/timeclock.proto
|
|
123
127
|
// source: services/jobs/colleagues.proto
|
|
124
128
|
// source: services/jobs/conduct.proto
|
|
129
|
+
// source: services/jobs/groups.proto
|
|
130
|
+
// source: services/jobs/jobs.proto
|
|
131
|
+
// source: services/jobs/stats.proto
|
|
132
|
+
// source: services/jobs/timeclock.proto
|
|
133
|
+
// source: services/jobs/colleagues.proto
|
|
134
|
+
// source: services/jobs/conduct.proto
|
|
135
|
+
// source: services/jobs/groups.proto
|
|
125
136
|
// source: services/jobs/jobs.proto
|
|
126
137
|
// source: services/jobs/stats.proto
|
|
127
138
|
// source: services/jobs/timeclock.proto
|
|
@@ -240,6 +251,7 @@ export const grpcMethods = [
|
|
|
240
251
|
'auth.AuthService/ChooseCharacter',
|
|
241
252
|
'auth.AuthService/ImpersonateJob',
|
|
242
253
|
'auth.AuthService/GetAccountInfo',
|
|
254
|
+
'auth.AuthService/RefreshAccountSession',
|
|
243
255
|
'auth.AuthService/DeleteSocialLogin',
|
|
244
256
|
'auth.AuthService/SetSuperuserMode',
|
|
245
257
|
'calendar.CalendarService/ListCalendars',
|
|
@@ -278,6 +290,7 @@ export const grpcMethods = [
|
|
|
278
290
|
'centrum.UnitsService/ListUnitActivity',
|
|
279
291
|
'centrum.UnitsService/CreateOrUpdateUnit',
|
|
280
292
|
'centrum.UnitsService/DeleteUnit',
|
|
293
|
+
'centrum.UnitsService/ReorderUnits',
|
|
281
294
|
'centrum.UnitsService/AssignUnit',
|
|
282
295
|
'centrum.UnitsService/UpdateUnitStatus',
|
|
283
296
|
'citizens.CitizensService/ListCitizens',
|
|
@@ -292,8 +305,7 @@ export const grpcMethods = [
|
|
|
292
305
|
'citizens.LabelsService/GetLabel',
|
|
293
306
|
'citizens.LabelsService/CreateOrUpdateLabel',
|
|
294
307
|
'citizens.LabelsService/DeleteLabel',
|
|
295
|
-
'citizens.LabelsService/
|
|
296
|
-
'citizens.LabelsService/RemoveCitizenLabels',
|
|
308
|
+
'citizens.LabelsService/ReorderLabels',
|
|
297
309
|
'completor.CompletorService/CompleteCitizens',
|
|
298
310
|
'completor.CompletorService/CompleteJobs',
|
|
299
311
|
'completor.CompletorService/CompleteDocumentCategories',
|
|
@@ -433,8 +445,10 @@ export const grpcMethods = [
|
|
|
433
445
|
'settings.LawsService/ListLawBooks',
|
|
434
446
|
'settings.LawsService/CreateOrUpdateLawBook',
|
|
435
447
|
'settings.LawsService/DeleteLawBook',
|
|
448
|
+
'settings.LawsService/ReorderLawBooks',
|
|
436
449
|
'settings.LawsService/CreateOrUpdateLaw',
|
|
437
450
|
'settings.LawsService/DeleteLaw',
|
|
451
|
+
'settings.LawsService/ReorderLaws',
|
|
438
452
|
'settings.SettingsService/GetJobProps',
|
|
439
453
|
'settings.SettingsService/SetJobProps',
|
|
440
454
|
'settings.SettingsService/GetRoles',
|
|
@@ -468,6 +482,9 @@ export const grpcMethods = [
|
|
|
468
482
|
'sync.SyncService/AddColleagueProps',
|
|
469
483
|
'sync.SyncService/AddJobTimeclock',
|
|
470
484
|
'sync.SyncService/AddDispatch',
|
|
485
|
+
'sync.SyncService/AddMarker',
|
|
486
|
+
'sync.SyncService/DeleteMarker',
|
|
487
|
+
'sync.SyncService/EndActiveJobTimeclocks',
|
|
471
488
|
'sync.SyncService/SendJobs',
|
|
472
489
|
'sync.SyncService/SendLicenses',
|
|
473
490
|
'sync.SyncService/SendAccounts',
|
|
@@ -483,12 +500,14 @@ export const grpcMethods = [
|
|
|
483
500
|
'sync.SyncService/DeleteData',
|
|
484
501
|
'vehicles.VehiclesService/ListVehicles',
|
|
485
502
|
'vehicles.VehiclesService/SetVehicleProps',
|
|
503
|
+
'vehicles.VehiclesService/ListVehicleActivity',
|
|
486
504
|
'wiki.CollabService/JoinRoom',
|
|
487
505
|
'wiki.WikiService/ListPages',
|
|
488
506
|
'wiki.WikiService/GetPage',
|
|
489
507
|
'wiki.WikiService/CreatePage',
|
|
490
508
|
'wiki.WikiService/UpdatePage',
|
|
491
509
|
'wiki.WikiService/DeletePage',
|
|
510
|
+
'wiki.WikiService/MovePage',
|
|
492
511
|
'wiki.WikiService/ListPageActivity',
|
|
493
512
|
'wiki.WikiService/UploadFile',
|
|
494
513
|
];
|