@fivenet-app/gen 0.9.4-0 → 2025.4.8
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 +2 -2
- package/perms.ts +7 -11
- package/resources/accounts/accounts.ts +1 -1
- package/resources/accounts/oauth2.ts +1 -1
- package/resources/calendar/access.ts +3 -3
- package/resources/calendar/calendar.ts +3 -1
- package/resources/centrum/access.ts +19 -4
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +11 -9
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +9 -9
- 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 +7 -5
- package/resources/documents/activity.ts +3 -1
- package/resources/documents/category.ts +1 -1
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +3 -3
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +18 -3
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +47 -47
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +44 -11
- package/resources/internet/page.ts +194 -4
- package/resources/internet/search.ts +34 -10
- package/resources/jobs/activity.ts +3 -1
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +1 -1
- package/resources/jobs/labels.ts +1 -1
- package/resources/jobs/timeclock.ts +1 -1
- package/resources/laws/laws.ts +1 -1
- package/resources/livemap/livemap.ts +313 -294
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +4 -4
- package/resources/mailer/email.ts +1 -1
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +127 -21
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +1 -1
- package/resources/notifications/events.ts +74 -2
- package/resources/notifications/notifications.ts +3 -1
- package/resources/permissions/permissions.ts +174 -3
- package/resources/qualifications/access.ts +18 -9
- package/resources/qualifications/exam.ts +186 -4
- package/resources/qualifications/qualifications.ts +35 -7
- package/resources/rector/audit.ts +1 -1
- 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 +1 -1
- package/resources/sync/data.ts +1 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +3 -1
- package/resources/users/job_props.ts +3 -1
- package/resources/users/job_settings.ts +47 -3
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +3 -1
- package/resources/users/licenses.ts +3 -3
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +1 -1
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +4 -8
- package/resources/wiki/activity.ts +3 -1
- package/resources/wiki/page.ts +1 -1
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +94 -17
- package/services/calendar/calendar.client.ts +44 -27
- package/services/calendar/calendar.ts +175 -25
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +156 -13
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +1 -1
- 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 +3 -3
- package/services/docstore/docstore.ts +212 -17
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +13 -30
- package/services/internet/domain.ts +159 -196
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +13 -2
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +15 -2
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +29 -3
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +19 -19
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +129 -27
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +57 -5
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +15 -2
- package/services/qualifications/qualifications.client.ts +11 -11
- package/services/qualifications/qualifications.ts +82 -7
- 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 +29 -3
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +72 -7
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +7 -1
- package/services/sync/sync.ts +58 -6
- package/services/wiki/wiki.client.ts +3 -3
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +8 -4
- package/resources/centrum/general.ts +0 -231
|
@@ -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/qualifications/qualifications.proto" (package "resources.qualifications", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -48,6 +48,10 @@ export interface Qualification {
|
|
|
48
48
|
* @generated from protobuf field: bool closed = 7;
|
|
49
49
|
*/
|
|
50
50
|
closed: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: bool public = 26;
|
|
53
|
+
*/
|
|
54
|
+
public: boolean;
|
|
51
55
|
/**
|
|
52
56
|
* @sanitize: method=StripTags
|
|
53
57
|
*
|
|
@@ -161,6 +165,10 @@ export interface QualificationShort {
|
|
|
161
165
|
* @generated from protobuf field: bool closed = 7;
|
|
162
166
|
*/
|
|
163
167
|
closed: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* @generated from protobuf field: bool public = 22;
|
|
170
|
+
*/
|
|
171
|
+
public: boolean;
|
|
164
172
|
/**
|
|
165
173
|
* @sanitize: method=StripTags
|
|
166
174
|
*
|
|
@@ -234,6 +242,8 @@ export interface QualificationRequirement {
|
|
|
234
242
|
targetQualification?: QualificationShort; // @gotags: alias:"targetqualification.*"
|
|
235
243
|
}
|
|
236
244
|
/**
|
|
245
|
+
* @dbscanner: json
|
|
246
|
+
*
|
|
237
247
|
* @generated from protobuf message resources.qualifications.QualificationDiscordSettings
|
|
238
248
|
*/
|
|
239
249
|
export interface QualificationDiscordSettings {
|
|
@@ -247,6 +257,8 @@ export interface QualificationDiscordSettings {
|
|
|
247
257
|
roleFormat?: string;
|
|
248
258
|
}
|
|
249
259
|
/**
|
|
260
|
+
* @dbscanner: json
|
|
261
|
+
*
|
|
250
262
|
* @generated from protobuf message resources.qualifications.QualificationExamSettings
|
|
251
263
|
*/
|
|
252
264
|
export interface QualificationExamSettings {
|
|
@@ -353,7 +365,7 @@ export interface QualificationResult {
|
|
|
353
365
|
*/
|
|
354
366
|
status: ResultStatus;
|
|
355
367
|
/**
|
|
356
|
-
* @generated from protobuf field: optional
|
|
368
|
+
* @generated from protobuf field: optional float score = 9;
|
|
357
369
|
*/
|
|
358
370
|
score?: number;
|
|
359
371
|
/**
|
|
@@ -461,6 +473,7 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
461
473
|
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
462
474
|
{ no: 6, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 4294967295 } } } },
|
|
463
475
|
{ no: 7, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
476
|
+
{ no: 26, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
464
477
|
{ no: 8, name: "abbreviation", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
465
478
|
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "1024" } } } },
|
|
466
479
|
{ no: 10, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
@@ -487,6 +500,7 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
487
500
|
message.job = "";
|
|
488
501
|
message.weight = 0;
|
|
489
502
|
message.closed = false;
|
|
503
|
+
message.public = false;
|
|
490
504
|
message.abbreviation = "";
|
|
491
505
|
message.title = "";
|
|
492
506
|
message.creatorJob = "";
|
|
@@ -524,6 +538,9 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
524
538
|
case /* bool closed */ 7:
|
|
525
539
|
message.closed = reader.bool();
|
|
526
540
|
break;
|
|
541
|
+
case /* bool public */ 26:
|
|
542
|
+
message.public = reader.bool();
|
|
543
|
+
break;
|
|
527
544
|
case /* string abbreviation */ 8:
|
|
528
545
|
message.abbreviation = reader.string();
|
|
529
546
|
break;
|
|
@@ -611,6 +628,9 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
611
628
|
/* bool closed = 7; */
|
|
612
629
|
if (message.closed !== false)
|
|
613
630
|
writer.tag(7, WireType.Varint).bool(message.closed);
|
|
631
|
+
/* bool public = 26; */
|
|
632
|
+
if (message.public !== false)
|
|
633
|
+
writer.tag(26, WireType.Varint).bool(message.public);
|
|
614
634
|
/* string abbreviation = 8; */
|
|
615
635
|
if (message.abbreviation !== "")
|
|
616
636
|
writer.tag(8, WireType.LengthDelimited).string(message.abbreviation);
|
|
@@ -686,6 +706,7 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
686
706
|
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
687
707
|
{ no: 6, name: "weight", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 4294967295 } } } },
|
|
688
708
|
{ no: 7, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
709
|
+
{ no: 22, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
689
710
|
{ no: 8, name: "abbreviation", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
690
711
|
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "1024" } } } },
|
|
691
712
|
{ no: 10, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
@@ -704,6 +725,7 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
704
725
|
message.job = "";
|
|
705
726
|
message.weight = 0;
|
|
706
727
|
message.closed = false;
|
|
728
|
+
message.public = false;
|
|
707
729
|
message.abbreviation = "";
|
|
708
730
|
message.title = "";
|
|
709
731
|
message.creatorJob = "";
|
|
@@ -739,6 +761,9 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
739
761
|
case /* bool closed */ 7:
|
|
740
762
|
message.closed = reader.bool();
|
|
741
763
|
break;
|
|
764
|
+
case /* bool public */ 22:
|
|
765
|
+
message.public = reader.bool();
|
|
766
|
+
break;
|
|
742
767
|
case /* string abbreviation */ 8:
|
|
743
768
|
message.abbreviation = reader.string();
|
|
744
769
|
break;
|
|
@@ -802,6 +827,9 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
802
827
|
/* bool closed = 7; */
|
|
803
828
|
if (message.closed !== false)
|
|
804
829
|
writer.tag(7, WireType.Varint).bool(message.closed);
|
|
830
|
+
/* bool public = 22; */
|
|
831
|
+
if (message.public !== false)
|
|
832
|
+
writer.tag(22, WireType.Varint).bool(message.public);
|
|
805
833
|
/* string abbreviation = 8; */
|
|
806
834
|
if (message.abbreviation !== "")
|
|
807
835
|
writer.tag(8, WireType.LengthDelimited).string(message.abbreviation);
|
|
@@ -1162,7 +1190,7 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1162
1190
|
{ no: 6, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
1163
1191
|
{ no: 7, name: "user", kind: "message", T: () => UserShort },
|
|
1164
1192
|
{ no: 8, name: "status", kind: "enum", T: () => ["resources.qualifications.ResultStatus", ResultStatus, "RESULT_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
1165
|
-
{ no: 9, name: "score", kind: "scalar", opt: true, T:
|
|
1193
|
+
{ no: 9, name: "score", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { lte: 1000, gte: 0 } } } },
|
|
1166
1194
|
{ no: 10, name: "summary", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
1167
1195
|
{ no: 11, name: "creator_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
1168
1196
|
{ no: 12, name: "creator", kind: "message", T: () => UserShort },
|
|
@@ -1211,8 +1239,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1211
1239
|
case /* resources.qualifications.ResultStatus status */ 8:
|
|
1212
1240
|
message.status = reader.int32();
|
|
1213
1241
|
break;
|
|
1214
|
-
case /* optional
|
|
1215
|
-
message.score = reader.
|
|
1242
|
+
case /* optional float score */ 9:
|
|
1243
|
+
message.score = reader.float();
|
|
1216
1244
|
break;
|
|
1217
1245
|
case /* string summary */ 10:
|
|
1218
1246
|
message.summary = reader.string();
|
|
@@ -1262,9 +1290,9 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1262
1290
|
/* resources.qualifications.ResultStatus status = 8; */
|
|
1263
1291
|
if (message.status !== 0)
|
|
1264
1292
|
writer.tag(8, WireType.Varint).int32(message.status);
|
|
1265
|
-
/* optional
|
|
1293
|
+
/* optional float score = 9; */
|
|
1266
1294
|
if (message.score !== undefined)
|
|
1267
|
-
writer.tag(9, WireType.
|
|
1295
|
+
writer.tag(9, WireType.Bit32).float(message.score);
|
|
1268
1296
|
/* string summary = 10; */
|
|
1269
1297
|
if (message.summary !== "")
|
|
1270
1298
|
writer.tag(10, WireType.LengthDelimited).string(message.summary);
|
|
@@ -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/rector/audit.proto" (package "resources.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/rector/banner.proto" (package "resources.rector", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message resources.rector.BannerMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface BannerMessage {
|
|
18
|
+
/**
|
|
19
|
+
* @sanitize: method=StripTags
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf field: string id = 1;
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* @sanitize: method
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf field: string title = 2;
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
* @sanitize: method=StripTags
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf field: optional string icon = 3;
|
|
34
|
+
*/
|
|
35
|
+
icon?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @sanitize: method=StripTags
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf field: optional string color = 4;
|
|
40
|
+
*/
|
|
41
|
+
color?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 5;
|
|
44
|
+
*/
|
|
45
|
+
createdAt?: Timestamp;
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 6;
|
|
48
|
+
*/
|
|
49
|
+
expiresAt?: Timestamp;
|
|
50
|
+
}
|
|
51
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
52
|
+
class BannerMessage$Type extends MessageType<BannerMessage> {
|
|
53
|
+
constructor() {
|
|
54
|
+
super("resources.rector.BannerMessage", [
|
|
55
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
56
|
+
{ no: 2, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
57
|
+
{ no: 3, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
58
|
+
{ no: 4, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "12" } } } },
|
|
59
|
+
{ no: 5, name: "created_at", kind: "message", T: () => Timestamp },
|
|
60
|
+
{ no: 6, name: "expires_at", kind: "message", T: () => Timestamp }
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
create(value?: PartialMessage<BannerMessage>): BannerMessage {
|
|
64
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
65
|
+
message.id = "";
|
|
66
|
+
message.title = "";
|
|
67
|
+
if (value !== undefined)
|
|
68
|
+
reflectionMergePartial<BannerMessage>(this, message, value);
|
|
69
|
+
return message;
|
|
70
|
+
}
|
|
71
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BannerMessage): BannerMessage {
|
|
72
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
73
|
+
while (reader.pos < end) {
|
|
74
|
+
let [fieldNo, wireType] = reader.tag();
|
|
75
|
+
switch (fieldNo) {
|
|
76
|
+
case /* string id */ 1:
|
|
77
|
+
message.id = reader.string();
|
|
78
|
+
break;
|
|
79
|
+
case /* string title */ 2:
|
|
80
|
+
message.title = reader.string();
|
|
81
|
+
break;
|
|
82
|
+
case /* optional string icon */ 3:
|
|
83
|
+
message.icon = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
case /* optional string color */ 4:
|
|
86
|
+
message.color = reader.string();
|
|
87
|
+
break;
|
|
88
|
+
case /* resources.timestamp.Timestamp created_at */ 5:
|
|
89
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
90
|
+
break;
|
|
91
|
+
case /* optional resources.timestamp.Timestamp expires_at */ 6:
|
|
92
|
+
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
93
|
+
break;
|
|
94
|
+
default:
|
|
95
|
+
let u = options.readUnknownField;
|
|
96
|
+
if (u === "throw")
|
|
97
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
98
|
+
let d = reader.skip(wireType);
|
|
99
|
+
if (u !== false)
|
|
100
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
}
|
|
105
|
+
internalBinaryWrite(message: BannerMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
106
|
+
/* string id = 1; */
|
|
107
|
+
if (message.id !== "")
|
|
108
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
109
|
+
/* string title = 2; */
|
|
110
|
+
if (message.title !== "")
|
|
111
|
+
writer.tag(2, WireType.LengthDelimited).string(message.title);
|
|
112
|
+
/* optional string icon = 3; */
|
|
113
|
+
if (message.icon !== undefined)
|
|
114
|
+
writer.tag(3, WireType.LengthDelimited).string(message.icon);
|
|
115
|
+
/* optional string color = 4; */
|
|
116
|
+
if (message.color !== undefined)
|
|
117
|
+
writer.tag(4, WireType.LengthDelimited).string(message.color);
|
|
118
|
+
/* resources.timestamp.Timestamp created_at = 5; */
|
|
119
|
+
if (message.createdAt)
|
|
120
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
121
|
+
/* optional resources.timestamp.Timestamp expires_at = 6; */
|
|
122
|
+
if (message.expiresAt)
|
|
123
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
124
|
+
let u = options.writeUnknownFields;
|
|
125
|
+
if (u !== false)
|
|
126
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
127
|
+
return writer;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @generated MessageType for protobuf message resources.rector.BannerMessage
|
|
132
|
+
*/
|
|
133
|
+
export const BannerMessage = new BannerMessage$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/rector/config.proto" (package "resources.rector", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -10,8 +10,11 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
10
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { BannerMessage } from "./banner";
|
|
13
14
|
import { Duration } from "../../google/protobuf/duration";
|
|
14
15
|
/**
|
|
16
|
+
* @dbscanner: json,partial
|
|
17
|
+
*
|
|
15
18
|
* @generated from protobuf message resources.rector.AppConfig
|
|
16
19
|
*/
|
|
17
20
|
export interface AppConfig {
|
|
@@ -47,6 +50,10 @@ export interface AppConfig {
|
|
|
47
50
|
* @generated from protobuf field: resources.rector.Discord discord = 7;
|
|
48
51
|
*/
|
|
49
52
|
discord?: Discord;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: resources.rector.System system = 9;
|
|
55
|
+
*/
|
|
56
|
+
system?: System;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* @generated from protobuf message resources.rector.Auth
|
|
@@ -163,12 +170,6 @@ export interface UserTracker {
|
|
|
163
170
|
* @generated from protobuf field: google.protobuf.Duration db_refresh_time = 2;
|
|
164
171
|
*/
|
|
165
172
|
dbRefreshTime?: Duration;
|
|
166
|
-
/**
|
|
167
|
-
* @sanitize: method=StripTags
|
|
168
|
-
*
|
|
169
|
-
* @generated from protobuf field: repeated string livemap_jobs = 3;
|
|
170
|
-
*/
|
|
171
|
-
livemapJobs: string[];
|
|
172
173
|
}
|
|
173
174
|
/**
|
|
174
175
|
* @generated from protobuf message resources.rector.Discord
|
|
@@ -220,6 +221,19 @@ export interface DiscordBotPresence {
|
|
|
220
221
|
*/
|
|
221
222
|
url?: string;
|
|
222
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* @generated from protobuf message resources.rector.System
|
|
226
|
+
*/
|
|
227
|
+
export interface System {
|
|
228
|
+
/**
|
|
229
|
+
* @generated from protobuf field: bool banner_message_enabled = 1;
|
|
230
|
+
*/
|
|
231
|
+
bannerMessageEnabled: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* @generated from protobuf field: resources.rector.BannerMessage banner_message = 2;
|
|
234
|
+
*/
|
|
235
|
+
bannerMessage?: BannerMessage;
|
|
236
|
+
}
|
|
223
237
|
/**
|
|
224
238
|
* @generated from protobuf enum resources.rector.DiscordBotPresenceType
|
|
225
239
|
*/
|
|
@@ -256,7 +270,8 @@ class AppConfig$Type extends MessageType<AppConfig> {
|
|
|
256
270
|
{ no: 4, name: "website", kind: "message", T: () => Website },
|
|
257
271
|
{ no: 5, name: "job_info", kind: "message", T: () => JobInfo },
|
|
258
272
|
{ no: 6, name: "user_tracker", kind: "message", T: () => UserTracker },
|
|
259
|
-
{ no: 7, name: "discord", kind: "message", T: () => Discord }
|
|
273
|
+
{ no: 7, name: "discord", kind: "message", T: () => Discord },
|
|
274
|
+
{ no: 9, name: "system", kind: "message", T: () => System }
|
|
260
275
|
]);
|
|
261
276
|
}
|
|
262
277
|
create(value?: PartialMessage<AppConfig>): AppConfig {
|
|
@@ -295,6 +310,9 @@ class AppConfig$Type extends MessageType<AppConfig> {
|
|
|
295
310
|
case /* resources.rector.Discord discord */ 7:
|
|
296
311
|
message.discord = Discord.internalBinaryRead(reader, reader.uint32(), options, message.discord);
|
|
297
312
|
break;
|
|
313
|
+
case /* resources.rector.System system */ 9:
|
|
314
|
+
message.system = System.internalBinaryRead(reader, reader.uint32(), options, message.system);
|
|
315
|
+
break;
|
|
298
316
|
default:
|
|
299
317
|
let u = options.readUnknownField;
|
|
300
318
|
if (u === "throw")
|
|
@@ -331,6 +349,9 @@ class AppConfig$Type extends MessageType<AppConfig> {
|
|
|
331
349
|
/* resources.rector.Discord discord = 7; */
|
|
332
350
|
if (message.discord)
|
|
333
351
|
Discord.internalBinaryWrite(message.discord, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
352
|
+
/* resources.rector.System system = 9; */
|
|
353
|
+
if (message.system)
|
|
354
|
+
System.internalBinaryWrite(message.system, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
334
355
|
let u = options.writeUnknownFields;
|
|
335
356
|
if (u !== false)
|
|
336
357
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -727,13 +748,11 @@ class UserTracker$Type extends MessageType<UserTracker> {
|
|
|
727
748
|
constructor() {
|
|
728
749
|
super("resources.rector.UserTracker", [
|
|
729
750
|
{ no: 1, name: "refresh_time", kind: "message", T: () => Duration, options: { "validate.rules": { duration: { required: true, lt: { seconds: "60" }, gte: { nanos: 500000000 } } } } },
|
|
730
|
-
{ no: 2, name: "db_refresh_time", kind: "message", T: () => Duration, options: { "validate.rules": { duration: { required: true, lt: { seconds: "60" }, gte: { nanos: 500000000 } } } } }
|
|
731
|
-
{ no: 3, name: "livemap_jobs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "100" } } } }
|
|
751
|
+
{ no: 2, name: "db_refresh_time", kind: "message", T: () => Duration, options: { "validate.rules": { duration: { required: true, lt: { seconds: "60" }, gte: { nanos: 500000000 } } } } }
|
|
732
752
|
]);
|
|
733
753
|
}
|
|
734
754
|
create(value?: PartialMessage<UserTracker>): UserTracker {
|
|
735
755
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
736
|
-
message.livemapJobs = [];
|
|
737
756
|
if (value !== undefined)
|
|
738
757
|
reflectionMergePartial<UserTracker>(this, message, value);
|
|
739
758
|
return message;
|
|
@@ -749,9 +768,6 @@ class UserTracker$Type extends MessageType<UserTracker> {
|
|
|
749
768
|
case /* google.protobuf.Duration db_refresh_time */ 2:
|
|
750
769
|
message.dbRefreshTime = Duration.internalBinaryRead(reader, reader.uint32(), options, message.dbRefreshTime);
|
|
751
770
|
break;
|
|
752
|
-
case /* repeated string livemap_jobs */ 3:
|
|
753
|
-
message.livemapJobs.push(reader.string());
|
|
754
|
-
break;
|
|
755
771
|
default:
|
|
756
772
|
let u = options.readUnknownField;
|
|
757
773
|
if (u === "throw")
|
|
@@ -770,9 +786,6 @@ class UserTracker$Type extends MessageType<UserTracker> {
|
|
|
770
786
|
/* google.protobuf.Duration db_refresh_time = 2; */
|
|
771
787
|
if (message.dbRefreshTime)
|
|
772
788
|
Duration.internalBinaryWrite(message.dbRefreshTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
773
|
-
/* repeated string livemap_jobs = 3; */
|
|
774
|
-
for (let i = 0; i < message.livemapJobs.length; i++)
|
|
775
|
-
writer.tag(3, WireType.LengthDelimited).string(message.livemapJobs[i]);
|
|
776
789
|
let u = options.writeUnknownFields;
|
|
777
790
|
if (u !== false)
|
|
778
791
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -920,3 +933,57 @@ class DiscordBotPresence$Type extends MessageType<DiscordBotPresence> {
|
|
|
920
933
|
* @generated MessageType for protobuf message resources.rector.DiscordBotPresence
|
|
921
934
|
*/
|
|
922
935
|
export const DiscordBotPresence = new DiscordBotPresence$Type();
|
|
936
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
937
|
+
class System$Type extends MessageType<System> {
|
|
938
|
+
constructor() {
|
|
939
|
+
super("resources.rector.System", [
|
|
940
|
+
{ no: 1, name: "banner_message_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
941
|
+
{ no: 2, name: "banner_message", kind: "message", T: () => BannerMessage }
|
|
942
|
+
]);
|
|
943
|
+
}
|
|
944
|
+
create(value?: PartialMessage<System>): System {
|
|
945
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
946
|
+
message.bannerMessageEnabled = false;
|
|
947
|
+
if (value !== undefined)
|
|
948
|
+
reflectionMergePartial<System>(this, message, value);
|
|
949
|
+
return message;
|
|
950
|
+
}
|
|
951
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: System): System {
|
|
952
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
953
|
+
while (reader.pos < end) {
|
|
954
|
+
let [fieldNo, wireType] = reader.tag();
|
|
955
|
+
switch (fieldNo) {
|
|
956
|
+
case /* bool banner_message_enabled */ 1:
|
|
957
|
+
message.bannerMessageEnabled = reader.bool();
|
|
958
|
+
break;
|
|
959
|
+
case /* resources.rector.BannerMessage banner_message */ 2:
|
|
960
|
+
message.bannerMessage = BannerMessage.internalBinaryRead(reader, reader.uint32(), options, message.bannerMessage);
|
|
961
|
+
break;
|
|
962
|
+
default:
|
|
963
|
+
let u = options.readUnknownField;
|
|
964
|
+
if (u === "throw")
|
|
965
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
966
|
+
let d = reader.skip(wireType);
|
|
967
|
+
if (u !== false)
|
|
968
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
return message;
|
|
972
|
+
}
|
|
973
|
+
internalBinaryWrite(message: System, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
974
|
+
/* bool banner_message_enabled = 1; */
|
|
975
|
+
if (message.bannerMessageEnabled !== false)
|
|
976
|
+
writer.tag(1, WireType.Varint).bool(message.bannerMessageEnabled);
|
|
977
|
+
/* resources.rector.BannerMessage banner_message = 2; */
|
|
978
|
+
if (message.bannerMessage)
|
|
979
|
+
BannerMessage.internalBinaryWrite(message.bannerMessage, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
980
|
+
let u = options.writeUnknownFields;
|
|
981
|
+
if (u !== false)
|
|
982
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
983
|
+
return writer;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* @generated MessageType for protobuf message resources.rector.System
|
|
988
|
+
*/
|
|
989
|
+
export const System = new System$Type();
|
package/resources/stats/stats.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/stats/stats.proto" (package "resources.stats", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -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/activity.proto" (package "resources.sync", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
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";
|
|
@@ -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
|
//
|
|
@@ -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/users/activity.proto" (package "resources.users", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -72,6 +72,8 @@ export interface UserActivity {
|
|
|
72
72
|
newValue: string; // @gotags: alias:"fivenet_user_activity.new_value"
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
+
* @dbscanner: json
|
|
76
|
+
*
|
|
75
77
|
* @generated from protobuf message resources.users.UserActivityData
|
|
76
78
|
*/
|
|
77
79
|
export interface UserActivityData {
|
|
@@ -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/users/job_props.proto" (package "resources.users", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -73,6 +73,8 @@ export interface JobProps {
|
|
|
73
73
|
settings?: JobSettings;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
+
* @dbscanner: json
|
|
77
|
+
*
|
|
76
78
|
* @generated from protobuf message resources.users.QuickButtons
|
|
77
79
|
*/
|
|
78
80
|
export interface QuickButtons {
|
|
@@ -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/users/job_settings.proto" (package "resources.users", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -12,6 +12,8 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Timestamp } from "../timestamp/timestamp";
|
|
14
14
|
/**
|
|
15
|
+
* @dbscanner: json
|
|
16
|
+
*
|
|
15
17
|
* @generated from protobuf message resources.users.DiscordSyncSettings
|
|
16
18
|
*/
|
|
17
19
|
export interface DiscordSyncSettings {
|
|
@@ -53,6 +55,8 @@ export interface DiscordSyncSettings {
|
|
|
53
55
|
qualificationsRoleFormat: string;
|
|
54
56
|
}
|
|
55
57
|
/**
|
|
58
|
+
* @dbscanner: json
|
|
59
|
+
*
|
|
56
60
|
* @generated from protobuf message resources.users.DiscordSyncChanges
|
|
57
61
|
*/
|
|
58
62
|
export interface DiscordSyncChanges {
|
|
@@ -158,9 +162,19 @@ export interface GroupSyncSettings {
|
|
|
158
162
|
ignoredRoleIds: string[];
|
|
159
163
|
}
|
|
160
164
|
/**
|
|
165
|
+
* @dbscanner: json
|
|
166
|
+
*
|
|
161
167
|
* @generated from protobuf message resources.users.JobSettings
|
|
162
168
|
*/
|
|
163
169
|
export interface JobSettings {
|
|
170
|
+
/**
|
|
171
|
+
* @generated from protobuf field: int32 absence_past_days = 1;
|
|
172
|
+
*/
|
|
173
|
+
absencePastDays: number;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf field: int32 absence_future_days = 2;
|
|
176
|
+
*/
|
|
177
|
+
absenceFutureDays: number;
|
|
164
178
|
}
|
|
165
179
|
/**
|
|
166
180
|
* @generated from protobuf enum resources.users.UserInfoSyncUnemployedMode
|
|
@@ -697,18 +711,48 @@ export const GroupSyncSettings = new GroupSyncSettings$Type();
|
|
|
697
711
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
698
712
|
class JobSettings$Type extends MessageType<JobSettings> {
|
|
699
713
|
constructor() {
|
|
700
|
-
super("resources.users.JobSettings", [
|
|
714
|
+
super("resources.users.JobSettings", [
|
|
715
|
+
{ no: 1, name: "absence_past_days", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 31, gte: 0 } } } },
|
|
716
|
+
{ no: 2, name: "absence_future_days", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 186, gte: 3 } } } }
|
|
717
|
+
]);
|
|
701
718
|
}
|
|
702
719
|
create(value?: PartialMessage<JobSettings>): JobSettings {
|
|
703
720
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
721
|
+
message.absencePastDays = 0;
|
|
722
|
+
message.absenceFutureDays = 0;
|
|
704
723
|
if (value !== undefined)
|
|
705
724
|
reflectionMergePartial<JobSettings>(this, message, value);
|
|
706
725
|
return message;
|
|
707
726
|
}
|
|
708
727
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobSettings): JobSettings {
|
|
709
|
-
|
|
728
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
729
|
+
while (reader.pos < end) {
|
|
730
|
+
let [fieldNo, wireType] = reader.tag();
|
|
731
|
+
switch (fieldNo) {
|
|
732
|
+
case /* int32 absence_past_days */ 1:
|
|
733
|
+
message.absencePastDays = reader.int32();
|
|
734
|
+
break;
|
|
735
|
+
case /* int32 absence_future_days */ 2:
|
|
736
|
+
message.absenceFutureDays = reader.int32();
|
|
737
|
+
break;
|
|
738
|
+
default:
|
|
739
|
+
let u = options.readUnknownField;
|
|
740
|
+
if (u === "throw")
|
|
741
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
742
|
+
let d = reader.skip(wireType);
|
|
743
|
+
if (u !== false)
|
|
744
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
return message;
|
|
710
748
|
}
|
|
711
749
|
internalBinaryWrite(message: JobSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
750
|
+
/* int32 absence_past_days = 1; */
|
|
751
|
+
if (message.absencePastDays !== 0)
|
|
752
|
+
writer.tag(1, WireType.Varint).int32(message.absencePastDays);
|
|
753
|
+
/* int32 absence_future_days = 2; */
|
|
754
|
+
if (message.absenceFutureDays !== 0)
|
|
755
|
+
writer.tag(2, WireType.Varint).int32(message.absenceFutureDays);
|
|
712
756
|
let u = options.writeUnknownFields;
|
|
713
757
|
if (u !== false)
|
|
714
758
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/resources/users/jobs.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/users/jobs.proto" (package "resources.users", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -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/users/labels.proto" (package "resources.users", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,6 +11,8 @@ 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
|
/**
|
|
14
|
+
* @dbscanner: json
|
|
15
|
+
*
|
|
14
16
|
* @generated from protobuf message resources.users.CitizenLabels
|
|
15
17
|
*/
|
|
16
18
|
export interface CitizenLabels {
|