@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/rector/config.proto" (package "services.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -1,13 +1,13 @@
|
|
|
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/rector/config.proto" (package "services.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
import { WireType } from "@protobuf-ts/runtime";
|
|
6
6
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
7
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
8
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
9
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
@@ -56,7 +56,20 @@ class GetAppConfigRequest$Type extends MessageType<GetAppConfigRequest> {
|
|
|
56
56
|
return message;
|
|
57
57
|
}
|
|
58
58
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAppConfigRequest): GetAppConfigRequest {
|
|
59
|
-
|
|
59
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
60
|
+
while (reader.pos < end) {
|
|
61
|
+
let [fieldNo, wireType] = reader.tag();
|
|
62
|
+
switch (fieldNo) {
|
|
63
|
+
default:
|
|
64
|
+
let u = options.readUnknownField;
|
|
65
|
+
if (u === "throw")
|
|
66
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
67
|
+
let d = reader.skip(wireType);
|
|
68
|
+
if (u !== false)
|
|
69
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
60
73
|
}
|
|
61
74
|
internalBinaryWrite(message: GetAppConfigRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
62
75
|
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/rector/filestore.proto" (package "services.rector", 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/rector/filestore.proto" (package "services.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -355,7 +355,20 @@ class DeleteFileResponse$Type extends MessageType<DeleteFileResponse> {
|
|
|
355
355
|
return message;
|
|
356
356
|
}
|
|
357
357
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFileResponse): DeleteFileResponse {
|
|
358
|
-
|
|
358
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
359
|
+
while (reader.pos < end) {
|
|
360
|
+
let [fieldNo, wireType] = reader.tag();
|
|
361
|
+
switch (fieldNo) {
|
|
362
|
+
default:
|
|
363
|
+
let u = options.readUnknownField;
|
|
364
|
+
if (u === "throw")
|
|
365
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
366
|
+
let d = reader.skip(wireType);
|
|
367
|
+
if (u !== false)
|
|
368
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return message;
|
|
359
372
|
}
|
|
360
373
|
internalBinaryWrite(message: DeleteFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
361
374
|
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/rector/laws.proto" (package "services.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
package/services/rector/laws.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/rector/laws.proto" (package "services.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -36,9 +36,9 @@ export interface CreateOrUpdateLawBookResponse {
|
|
|
36
36
|
*/
|
|
37
37
|
export interface DeleteLawBookRequest {
|
|
38
38
|
/**
|
|
39
|
-
* @generated from protobuf field: uint64 id = 1
|
|
39
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
40
40
|
*/
|
|
41
|
-
id:
|
|
41
|
+
id: number;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @generated from protobuf message services.rector.DeleteLawBookResponse
|
|
@@ -68,9 +68,9 @@ export interface CreateOrUpdateLawResponse {
|
|
|
68
68
|
*/
|
|
69
69
|
export interface DeleteLawRequest {
|
|
70
70
|
/**
|
|
71
|
-
* @generated from protobuf field: uint64 id = 1
|
|
71
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
72
72
|
*/
|
|
73
|
-
id:
|
|
73
|
+
id: number;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @generated from protobuf message services.rector.DeleteLawResponse
|
|
@@ -173,12 +173,12 @@ export const CreateOrUpdateLawBookResponse = new CreateOrUpdateLawBookResponse$T
|
|
|
173
173
|
class DeleteLawBookRequest$Type extends MessageType<DeleteLawBookRequest> {
|
|
174
174
|
constructor() {
|
|
175
175
|
super("services.rector.DeleteLawBookRequest", [
|
|
176
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
176
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
177
177
|
]);
|
|
178
178
|
}
|
|
179
179
|
create(value?: PartialMessage<DeleteLawBookRequest>): DeleteLawBookRequest {
|
|
180
180
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
181
|
-
message.id =
|
|
181
|
+
message.id = 0;
|
|
182
182
|
if (value !== undefined)
|
|
183
183
|
reflectionMergePartial<DeleteLawBookRequest>(this, message, value);
|
|
184
184
|
return message;
|
|
@@ -188,8 +188,8 @@ class DeleteLawBookRequest$Type extends MessageType<DeleteLawBookRequest> {
|
|
|
188
188
|
while (reader.pos < end) {
|
|
189
189
|
let [fieldNo, wireType] = reader.tag();
|
|
190
190
|
switch (fieldNo) {
|
|
191
|
-
case /* uint64 id
|
|
192
|
-
message.id = reader.uint64().
|
|
191
|
+
case /* uint64 id */ 1:
|
|
192
|
+
message.id = reader.uint64().toNumber();
|
|
193
193
|
break;
|
|
194
194
|
default:
|
|
195
195
|
let u = options.readUnknownField;
|
|
@@ -203,8 +203,8 @@ class DeleteLawBookRequest$Type extends MessageType<DeleteLawBookRequest> {
|
|
|
203
203
|
return message;
|
|
204
204
|
}
|
|
205
205
|
internalBinaryWrite(message: DeleteLawBookRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
206
|
-
/* uint64 id = 1
|
|
207
|
-
if (message.id !==
|
|
206
|
+
/* uint64 id = 1; */
|
|
207
|
+
if (message.id !== 0)
|
|
208
208
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
209
209
|
let u = options.writeUnknownFields;
|
|
210
210
|
if (u !== false)
|
|
@@ -228,7 +228,20 @@ class DeleteLawBookResponse$Type extends MessageType<DeleteLawBookResponse> {
|
|
|
228
228
|
return message;
|
|
229
229
|
}
|
|
230
230
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteLawBookResponse): DeleteLawBookResponse {
|
|
231
|
-
|
|
231
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
232
|
+
while (reader.pos < end) {
|
|
233
|
+
let [fieldNo, wireType] = reader.tag();
|
|
234
|
+
switch (fieldNo) {
|
|
235
|
+
default:
|
|
236
|
+
let u = options.readUnknownField;
|
|
237
|
+
if (u === "throw")
|
|
238
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
239
|
+
let d = reader.skip(wireType);
|
|
240
|
+
if (u !== false)
|
|
241
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return message;
|
|
232
245
|
}
|
|
233
246
|
internalBinaryWrite(message: DeleteLawBookResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
234
247
|
let u = options.writeUnknownFields;
|
|
@@ -337,12 +350,12 @@ export const CreateOrUpdateLawResponse = new CreateOrUpdateLawResponse$Type();
|
|
|
337
350
|
class DeleteLawRequest$Type extends MessageType<DeleteLawRequest> {
|
|
338
351
|
constructor() {
|
|
339
352
|
super("services.rector.DeleteLawRequest", [
|
|
340
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
|
353
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
341
354
|
]);
|
|
342
355
|
}
|
|
343
356
|
create(value?: PartialMessage<DeleteLawRequest>): DeleteLawRequest {
|
|
344
357
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
345
|
-
message.id =
|
|
358
|
+
message.id = 0;
|
|
346
359
|
if (value !== undefined)
|
|
347
360
|
reflectionMergePartial<DeleteLawRequest>(this, message, value);
|
|
348
361
|
return message;
|
|
@@ -352,8 +365,8 @@ class DeleteLawRequest$Type extends MessageType<DeleteLawRequest> {
|
|
|
352
365
|
while (reader.pos < end) {
|
|
353
366
|
let [fieldNo, wireType] = reader.tag();
|
|
354
367
|
switch (fieldNo) {
|
|
355
|
-
case /* uint64 id
|
|
356
|
-
message.id = reader.uint64().
|
|
368
|
+
case /* uint64 id */ 1:
|
|
369
|
+
message.id = reader.uint64().toNumber();
|
|
357
370
|
break;
|
|
358
371
|
default:
|
|
359
372
|
let u = options.readUnknownField;
|
|
@@ -367,8 +380,8 @@ class DeleteLawRequest$Type extends MessageType<DeleteLawRequest> {
|
|
|
367
380
|
return message;
|
|
368
381
|
}
|
|
369
382
|
internalBinaryWrite(message: DeleteLawRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
370
|
-
/* uint64 id = 1
|
|
371
|
-
if (message.id !==
|
|
383
|
+
/* uint64 id = 1; */
|
|
384
|
+
if (message.id !== 0)
|
|
372
385
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
373
386
|
let u = options.writeUnknownFields;
|
|
374
387
|
if (u !== false)
|
|
@@ -392,7 +405,20 @@ class DeleteLawResponse$Type extends MessageType<DeleteLawResponse> {
|
|
|
392
405
|
return message;
|
|
393
406
|
}
|
|
394
407
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteLawResponse): DeleteLawResponse {
|
|
395
|
-
|
|
408
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
409
|
+
while (reader.pos < end) {
|
|
410
|
+
let [fieldNo, wireType] = reader.tag();
|
|
411
|
+
switch (fieldNo) {
|
|
412
|
+
default:
|
|
413
|
+
let u = options.readUnknownField;
|
|
414
|
+
if (u === "throw")
|
|
415
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
416
|
+
let d = reader.skip(wireType);
|
|
417
|
+
if (u !== false)
|
|
418
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return message;
|
|
396
422
|
}
|
|
397
423
|
internalBinaryWrite(message: DeleteLawResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
398
424
|
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/rector/rector.proto" (package "services.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|