@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
|
@@ -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 "services/citizenstore/citizenstore.proto" (package "services.citizenstore", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -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 "services/citizenstore/citizenstore.proto" (package "services.citizenstore", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -15,6 +15,7 @@ import { CitizenLabel } from "../../resources/users/labels";
|
|
|
15
15
|
import { File } from "../../resources/filestore/file";
|
|
16
16
|
import { UserProps } from "../../resources/users/props";
|
|
17
17
|
import { UserActivity } from "../../resources/users/activity";
|
|
18
|
+
import { UserActivityType } from "../../resources/users/activity";
|
|
18
19
|
import { User } from "../../resources/users/users";
|
|
19
20
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
20
21
|
import { Sort } from "../../resources/common/database/database";
|
|
@@ -106,9 +107,15 @@ export interface ListUserActivityRequest {
|
|
|
106
107
|
*/
|
|
107
108
|
sort?: Sort;
|
|
108
109
|
/**
|
|
110
|
+
* Search params
|
|
111
|
+
*
|
|
109
112
|
* @generated from protobuf field: int32 user_id = 3;
|
|
110
113
|
*/
|
|
111
114
|
userId: number;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf field: repeated resources.users.UserActivityType types = 4;
|
|
117
|
+
*/
|
|
118
|
+
types: UserActivityType[];
|
|
112
119
|
}
|
|
113
120
|
/**
|
|
114
121
|
* @generated from protobuf message services.citizenstore.ListUserActivityResponse
|
|
@@ -439,12 +446,14 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
439
446
|
super("services.citizenstore.ListUserActivityRequest", [
|
|
440
447
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.rules": { message: { required: true } } } },
|
|
441
448
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
442
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } }
|
|
449
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
450
|
+
{ no: 4, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.users.UserActivityType", UserActivityType, "USER_ACTIVITY_TYPE_"], options: { "validate.rules": { repeated: { maxItems: "20" } } } }
|
|
443
451
|
]);
|
|
444
452
|
}
|
|
445
453
|
create(value?: PartialMessage<ListUserActivityRequest>): ListUserActivityRequest {
|
|
446
454
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
447
455
|
message.userId = 0;
|
|
456
|
+
message.types = [];
|
|
448
457
|
if (value !== undefined)
|
|
449
458
|
reflectionMergePartial<ListUserActivityRequest>(this, message, value);
|
|
450
459
|
return message;
|
|
@@ -463,6 +472,13 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
463
472
|
case /* int32 user_id */ 3:
|
|
464
473
|
message.userId = reader.int32();
|
|
465
474
|
break;
|
|
475
|
+
case /* repeated resources.users.UserActivityType types */ 4:
|
|
476
|
+
if (wireType === WireType.LengthDelimited)
|
|
477
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
478
|
+
message.types.push(reader.int32());
|
|
479
|
+
else
|
|
480
|
+
message.types.push(reader.int32());
|
|
481
|
+
break;
|
|
466
482
|
default:
|
|
467
483
|
let u = options.readUnknownField;
|
|
468
484
|
if (u === "throw")
|
|
@@ -484,6 +500,13 @@ class ListUserActivityRequest$Type extends MessageType<ListUserActivityRequest>
|
|
|
484
500
|
/* int32 user_id = 3; */
|
|
485
501
|
if (message.userId !== 0)
|
|
486
502
|
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
503
|
+
/* repeated resources.users.UserActivityType types = 4; */
|
|
504
|
+
if (message.types.length) {
|
|
505
|
+
writer.tag(4, WireType.LengthDelimited).fork();
|
|
506
|
+
for (let i = 0; i < message.types.length; i++)
|
|
507
|
+
writer.int32(message.types[i]);
|
|
508
|
+
writer.join();
|
|
509
|
+
}
|
|
487
510
|
let u = options.writeUnknownFields;
|
|
488
511
|
if (u !== false)
|
|
489
512
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -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 "services/completor/completor.proto" (package "services.completor", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -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 "services/completor/completor.proto" (package "services.completor", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -450,7 +450,20 @@ class ListLawBooksRequest$Type extends MessageType<ListLawBooksRequest> {
|
|
|
450
450
|
return message;
|
|
451
451
|
}
|
|
452
452
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListLawBooksRequest): ListLawBooksRequest {
|
|
453
|
-
|
|
453
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
454
|
+
while (reader.pos < end) {
|
|
455
|
+
let [fieldNo, wireType] = reader.tag();
|
|
456
|
+
switch (fieldNo) {
|
|
457
|
+
default:
|
|
458
|
+
let u = options.readUnknownField;
|
|
459
|
+
if (u === "throw")
|
|
460
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
461
|
+
let d = reader.skip(wireType);
|
|
462
|
+
if (u !== false)
|
|
463
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return message;
|
|
454
467
|
}
|
|
455
468
|
internalBinaryWrite(message: ListLawBooksRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
456
469
|
let u = options.writeUnknownFields;
|
|
@@ -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 "services/dmv/vehicles.proto" (package "services.dmv", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
package/services/dmv/vehicles.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 "services/dmv/vehicles.proto" (package "services.dmv", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -41,6 +41,10 @@ export interface ListVehiclesRequest {
|
|
|
41
41
|
* @generated from protobuf field: optional int32 user_id = 5;
|
|
42
42
|
*/
|
|
43
43
|
userId?: number;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: optional string job = 6;
|
|
46
|
+
*/
|
|
47
|
+
job?: string;
|
|
44
48
|
}
|
|
45
49
|
/**
|
|
46
50
|
* @generated from protobuf message services.dmv.ListVehiclesResponse
|
|
@@ -63,7 +67,8 @@ class ListVehiclesRequest$Type extends MessageType<ListVehiclesRequest> {
|
|
|
63
67
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
64
68
|
{ no: 3, name: "license_plate", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "32" } } } },
|
|
65
69
|
{ no: 4, name: "model", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "32" } } } },
|
|
66
|
-
{ no: 5, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } }
|
|
70
|
+
{ no: 5, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
71
|
+
{ no: 6, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
|
|
67
72
|
]);
|
|
68
73
|
}
|
|
69
74
|
create(value?: PartialMessage<ListVehiclesRequest>): ListVehiclesRequest {
|
|
@@ -92,6 +97,9 @@ class ListVehiclesRequest$Type extends MessageType<ListVehiclesRequest> {
|
|
|
92
97
|
case /* optional int32 user_id */ 5:
|
|
93
98
|
message.userId = reader.int32();
|
|
94
99
|
break;
|
|
100
|
+
case /* optional string job */ 6:
|
|
101
|
+
message.job = reader.string();
|
|
102
|
+
break;
|
|
95
103
|
default:
|
|
96
104
|
let u = options.readUnknownField;
|
|
97
105
|
if (u === "throw")
|
|
@@ -119,6 +127,9 @@ class ListVehiclesRequest$Type extends MessageType<ListVehiclesRequest> {
|
|
|
119
127
|
/* optional int32 user_id = 5; */
|
|
120
128
|
if (message.userId !== undefined)
|
|
121
129
|
writer.tag(5, WireType.Varint).int32(message.userId);
|
|
130
|
+
/* optional string job = 6; */
|
|
131
|
+
if (message.job !== undefined)
|
|
132
|
+
writer.tag(6, WireType.LengthDelimited).string(message.job);
|
|
122
133
|
let u = options.writeUnknownFields;
|
|
123
134
|
if (u !== false)
|
|
124
135
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -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 "services/docstore/docstore.proto" (package "services.docstore", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|