@fivenet-app/gen 0.9.3 → 0.9.5-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.
- package/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
package/resources/sync/data.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/sync/data.proto" (package "resources.sync", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,7 +11,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Coords } from "../livemap/livemap";
|
|
14
|
-
import { License } from "../users/
|
|
14
|
+
import { License } from "../users/licenses";
|
|
15
15
|
import { Vehicle } from "../vehicles/vehicles";
|
|
16
16
|
import { User } from "../users/users";
|
|
17
17
|
import { Job } from "../users/jobs";
|
|
@@ -69,9 +69,9 @@ export interface DataUserLocations {
|
|
|
69
69
|
*/
|
|
70
70
|
users: UserLocation[];
|
|
71
71
|
/**
|
|
72
|
-
* @generated from protobuf field: optional bool
|
|
72
|
+
* @generated from protobuf field: optional bool clear_all = 2;
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
clearAll?: boolean;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* @generated from protobuf message resources.sync.UserLocation
|
|
@@ -93,6 +93,28 @@ export interface UserLocation {
|
|
|
93
93
|
* @generated from protobuf field: bool hidden = 4;
|
|
94
94
|
*/
|
|
95
95
|
hidden: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf field: bool remove = 5;
|
|
98
|
+
*/
|
|
99
|
+
remove: boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf message resources.sync.DeleteUsers
|
|
103
|
+
*/
|
|
104
|
+
export interface DeleteUsers {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf field: repeated int32 user_ids = 1;
|
|
107
|
+
*/
|
|
108
|
+
userIds: number[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @generated from protobuf message resources.sync.DeleteVehicles
|
|
112
|
+
*/
|
|
113
|
+
export interface DeleteVehicles {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf field: repeated string plates = 1;
|
|
116
|
+
*/
|
|
117
|
+
plates: string[];
|
|
96
118
|
}
|
|
97
119
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
98
120
|
class DataStatus$Type extends MessageType<DataStatus> {
|
|
@@ -334,7 +356,7 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
334
356
|
constructor() {
|
|
335
357
|
super("resources.sync.DataUserLocations", [
|
|
336
358
|
{ no: 1, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => UserLocation, options: { "validate.rules": { repeated: { maxItems: "2000" } } } },
|
|
337
|
-
{ no: 2, name: "
|
|
359
|
+
{ no: 2, name: "clear_all", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
338
360
|
]);
|
|
339
361
|
}
|
|
340
362
|
create(value?: PartialMessage<DataUserLocations>): DataUserLocations {
|
|
@@ -352,8 +374,8 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
352
374
|
case /* repeated resources.sync.UserLocation users */ 1:
|
|
353
375
|
message.users.push(UserLocation.internalBinaryRead(reader, reader.uint32(), options));
|
|
354
376
|
break;
|
|
355
|
-
case /* optional bool
|
|
356
|
-
message.
|
|
377
|
+
case /* optional bool clear_all */ 2:
|
|
378
|
+
message.clearAll = reader.bool();
|
|
357
379
|
break;
|
|
358
380
|
default:
|
|
359
381
|
let u = options.readUnknownField;
|
|
@@ -370,9 +392,9 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
370
392
|
/* repeated resources.sync.UserLocation users = 1; */
|
|
371
393
|
for (let i = 0; i < message.users.length; i++)
|
|
372
394
|
UserLocation.internalBinaryWrite(message.users[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
373
|
-
/* optional bool
|
|
374
|
-
if (message.
|
|
375
|
-
writer.tag(2, WireType.Varint).bool(message.
|
|
395
|
+
/* optional bool clear_all = 2; */
|
|
396
|
+
if (message.clearAll !== undefined)
|
|
397
|
+
writer.tag(2, WireType.Varint).bool(message.clearAll);
|
|
376
398
|
let u = options.writeUnknownFields;
|
|
377
399
|
if (u !== false)
|
|
378
400
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -390,7 +412,8 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
390
412
|
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
391
413
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
392
414
|
{ no: 3, name: "coords", kind: "message", T: () => Coords, options: { "validate.rules": { message: { required: true } } } },
|
|
393
|
-
{ no: 4, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
415
|
+
{ no: 4, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
416
|
+
{ no: 5, name: "remove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
394
417
|
]);
|
|
395
418
|
}
|
|
396
419
|
create(value?: PartialMessage<UserLocation>): UserLocation {
|
|
@@ -398,6 +421,7 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
398
421
|
message.identifier = "";
|
|
399
422
|
message.job = "";
|
|
400
423
|
message.hidden = false;
|
|
424
|
+
message.remove = false;
|
|
401
425
|
if (value !== undefined)
|
|
402
426
|
reflectionMergePartial<UserLocation>(this, message, value);
|
|
403
427
|
return message;
|
|
@@ -419,6 +443,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
419
443
|
case /* bool hidden */ 4:
|
|
420
444
|
message.hidden = reader.bool();
|
|
421
445
|
break;
|
|
446
|
+
case /* bool remove */ 5:
|
|
447
|
+
message.remove = reader.bool();
|
|
448
|
+
break;
|
|
422
449
|
default:
|
|
423
450
|
let u = options.readUnknownField;
|
|
424
451
|
if (u === "throw")
|
|
@@ -443,6 +470,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
443
470
|
/* bool hidden = 4; */
|
|
444
471
|
if (message.hidden !== false)
|
|
445
472
|
writer.tag(4, WireType.Varint).bool(message.hidden);
|
|
473
|
+
/* bool remove = 5; */
|
|
474
|
+
if (message.remove !== false)
|
|
475
|
+
writer.tag(5, WireType.Varint).bool(message.remove);
|
|
446
476
|
let u = options.writeUnknownFields;
|
|
447
477
|
if (u !== false)
|
|
448
478
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -453,3 +483,105 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
453
483
|
* @generated MessageType for protobuf message resources.sync.UserLocation
|
|
454
484
|
*/
|
|
455
485
|
export const UserLocation = new UserLocation$Type();
|
|
486
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
487
|
+
class DeleteUsers$Type extends MessageType<DeleteUsers> {
|
|
488
|
+
constructor() {
|
|
489
|
+
super("resources.sync.DeleteUsers", [
|
|
490
|
+
{ no: 1, name: "user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { repeated: { maxItems: "100" } } } }
|
|
491
|
+
]);
|
|
492
|
+
}
|
|
493
|
+
create(value?: PartialMessage<DeleteUsers>): DeleteUsers {
|
|
494
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
495
|
+
message.userIds = [];
|
|
496
|
+
if (value !== undefined)
|
|
497
|
+
reflectionMergePartial<DeleteUsers>(this, message, value);
|
|
498
|
+
return message;
|
|
499
|
+
}
|
|
500
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteUsers): DeleteUsers {
|
|
501
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
502
|
+
while (reader.pos < end) {
|
|
503
|
+
let [fieldNo, wireType] = reader.tag();
|
|
504
|
+
switch (fieldNo) {
|
|
505
|
+
case /* repeated int32 user_ids */ 1:
|
|
506
|
+
if (wireType === WireType.LengthDelimited)
|
|
507
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
508
|
+
message.userIds.push(reader.int32());
|
|
509
|
+
else
|
|
510
|
+
message.userIds.push(reader.int32());
|
|
511
|
+
break;
|
|
512
|
+
default:
|
|
513
|
+
let u = options.readUnknownField;
|
|
514
|
+
if (u === "throw")
|
|
515
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
516
|
+
let d = reader.skip(wireType);
|
|
517
|
+
if (u !== false)
|
|
518
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return message;
|
|
522
|
+
}
|
|
523
|
+
internalBinaryWrite(message: DeleteUsers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
524
|
+
/* repeated int32 user_ids = 1; */
|
|
525
|
+
if (message.userIds.length) {
|
|
526
|
+
writer.tag(1, WireType.LengthDelimited).fork();
|
|
527
|
+
for (let i = 0; i < message.userIds.length; i++)
|
|
528
|
+
writer.int32(message.userIds[i]);
|
|
529
|
+
writer.join();
|
|
530
|
+
}
|
|
531
|
+
let u = options.writeUnknownFields;
|
|
532
|
+
if (u !== false)
|
|
533
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
534
|
+
return writer;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* @generated MessageType for protobuf message resources.sync.DeleteUsers
|
|
539
|
+
*/
|
|
540
|
+
export const DeleteUsers = new DeleteUsers$Type();
|
|
541
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
542
|
+
class DeleteVehicles$Type extends MessageType<DeleteVehicles> {
|
|
543
|
+
constructor() {
|
|
544
|
+
super("resources.sync.DeleteVehicles", [
|
|
545
|
+
{ no: 1, name: "plates", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "100" } } } }
|
|
546
|
+
]);
|
|
547
|
+
}
|
|
548
|
+
create(value?: PartialMessage<DeleteVehicles>): DeleteVehicles {
|
|
549
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
550
|
+
message.plates = [];
|
|
551
|
+
if (value !== undefined)
|
|
552
|
+
reflectionMergePartial<DeleteVehicles>(this, message, value);
|
|
553
|
+
return message;
|
|
554
|
+
}
|
|
555
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteVehicles): DeleteVehicles {
|
|
556
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
557
|
+
while (reader.pos < end) {
|
|
558
|
+
let [fieldNo, wireType] = reader.tag();
|
|
559
|
+
switch (fieldNo) {
|
|
560
|
+
case /* repeated string plates */ 1:
|
|
561
|
+
message.plates.push(reader.string());
|
|
562
|
+
break;
|
|
563
|
+
default:
|
|
564
|
+
let u = options.readUnknownField;
|
|
565
|
+
if (u === "throw")
|
|
566
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
567
|
+
let d = reader.skip(wireType);
|
|
568
|
+
if (u !== false)
|
|
569
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return message;
|
|
573
|
+
}
|
|
574
|
+
internalBinaryWrite(message: DeleteVehicles, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
575
|
+
/* repeated string plates = 1; */
|
|
576
|
+
for (let i = 0; i < message.plates.length; i++)
|
|
577
|
+
writer.tag(1, WireType.LengthDelimited).string(message.plates[i]);
|
|
578
|
+
let u = options.writeUnknownFields;
|
|
579
|
+
if (u !== false)
|
|
580
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
581
|
+
return writer;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* @generated MessageType for protobuf message resources.sync.DeleteVehicles
|
|
586
|
+
*/
|
|
587
|
+
export const DeleteVehicles = new DeleteVehicles$Type();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/timestamp/timestamp.proto" (package "resources.timestamp", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
//
|