@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 "resources/qualifications/qualifications.proto" (package "resources.qualifications", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -21,9 +21,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
21
21
|
*/
|
|
22
22
|
export interface Qualification {
|
|
23
23
|
/**
|
|
24
|
-
* @generated from protobuf field: uint64 id = 1
|
|
24
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
25
25
|
*/
|
|
26
|
-
id:
|
|
26
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
27
27
|
/**
|
|
28
28
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
29
29
|
*/
|
|
@@ -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
|
*
|
|
@@ -134,9 +138,9 @@ export interface Qualification {
|
|
|
134
138
|
*/
|
|
135
139
|
export interface QualificationShort {
|
|
136
140
|
/**
|
|
137
|
-
* @generated from protobuf field: uint64 id = 1
|
|
141
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
138
142
|
*/
|
|
139
|
-
id:
|
|
143
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
140
144
|
/**
|
|
141
145
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
142
146
|
*/
|
|
@@ -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
|
*
|
|
@@ -213,27 +221,29 @@ export interface QualificationShort {
|
|
|
213
221
|
*/
|
|
214
222
|
export interface QualificationRequirement {
|
|
215
223
|
/**
|
|
216
|
-
* @generated from protobuf field: uint64 id = 1
|
|
224
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
217
225
|
*/
|
|
218
|
-
id:
|
|
226
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
219
227
|
/**
|
|
220
228
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
221
229
|
*/
|
|
222
230
|
createdAt?: Timestamp;
|
|
223
231
|
/**
|
|
224
|
-
* @generated from protobuf field: uint64 qualification_id = 3
|
|
232
|
+
* @generated from protobuf field: uint64 qualification_id = 3;
|
|
225
233
|
*/
|
|
226
|
-
qualificationId:
|
|
234
|
+
qualificationId: number;
|
|
227
235
|
/**
|
|
228
|
-
* @generated from protobuf field: uint64 target_qualification_id = 4
|
|
236
|
+
* @generated from protobuf field: uint64 target_qualification_id = 4;
|
|
229
237
|
*/
|
|
230
|
-
targetQualificationId:
|
|
238
|
+
targetQualificationId: number;
|
|
231
239
|
/**
|
|
232
240
|
* @generated from protobuf field: optional resources.qualifications.QualificationShort target_qualification = 5;
|
|
233
241
|
*/
|
|
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 {
|
|
@@ -268,9 +280,9 @@ export interface QualificationRequest {
|
|
|
268
280
|
*/
|
|
269
281
|
deletedAt?: Timestamp;
|
|
270
282
|
/**
|
|
271
|
-
* @generated from protobuf field: uint64 qualification_id = 3
|
|
283
|
+
* @generated from protobuf field: uint64 qualification_id = 3;
|
|
272
284
|
*/
|
|
273
|
-
qualificationId:
|
|
285
|
+
qualificationId: number; // @gotags: sql:"primary_key" alias:"qualification_id"
|
|
274
286
|
/**
|
|
275
287
|
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 4;
|
|
276
288
|
*/
|
|
@@ -321,9 +333,9 @@ export interface QualificationRequest {
|
|
|
321
333
|
*/
|
|
322
334
|
export interface QualificationResult {
|
|
323
335
|
/**
|
|
324
|
-
* @generated from protobuf field: uint64 id = 1
|
|
336
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
325
337
|
*/
|
|
326
|
-
id:
|
|
338
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
327
339
|
/**
|
|
328
340
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
329
341
|
*/
|
|
@@ -333,9 +345,9 @@ export interface QualificationResult {
|
|
|
333
345
|
*/
|
|
334
346
|
deletedAt?: Timestamp;
|
|
335
347
|
/**
|
|
336
|
-
* @generated from protobuf field: uint64 qualification_id = 4
|
|
348
|
+
* @generated from protobuf field: uint64 qualification_id = 4;
|
|
337
349
|
*/
|
|
338
|
-
qualificationId:
|
|
350
|
+
qualificationId: number;
|
|
339
351
|
/**
|
|
340
352
|
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5;
|
|
341
353
|
*/
|
|
@@ -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
|
/**
|
|
@@ -454,13 +466,14 @@ export enum ResultStatus {
|
|
|
454
466
|
class Qualification$Type extends MessageType<Qualification> {
|
|
455
467
|
constructor() {
|
|
456
468
|
super("resources.qualifications.Qualification", [
|
|
457
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
469
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
458
470
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
459
471
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
460
472
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
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" } } } },
|
|
@@ -483,10 +496,11 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
483
496
|
}
|
|
484
497
|
create(value?: PartialMessage<Qualification>): Qualification {
|
|
485
498
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
486
|
-
message.id =
|
|
499
|
+
message.id = 0;
|
|
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 = "";
|
|
@@ -503,8 +517,8 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
503
517
|
while (reader.pos < end) {
|
|
504
518
|
let [fieldNo, wireType] = reader.tag();
|
|
505
519
|
switch (fieldNo) {
|
|
506
|
-
case /* uint64 id
|
|
507
|
-
message.id = reader.uint64().
|
|
520
|
+
case /* uint64 id */ 1:
|
|
521
|
+
message.id = reader.uint64().toNumber();
|
|
508
522
|
break;
|
|
509
523
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
510
524
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -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;
|
|
@@ -590,8 +607,8 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
590
607
|
return message;
|
|
591
608
|
}
|
|
592
609
|
internalBinaryWrite(message: Qualification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
593
|
-
/* uint64 id = 1
|
|
594
|
-
if (message.id !==
|
|
610
|
+
/* uint64 id = 1; */
|
|
611
|
+
if (message.id !== 0)
|
|
595
612
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
596
613
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
597
614
|
if (message.createdAt)
|
|
@@ -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);
|
|
@@ -679,13 +699,14 @@ export const Qualification = new Qualification$Type();
|
|
|
679
699
|
class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
680
700
|
constructor() {
|
|
681
701
|
super("resources.qualifications.QualificationShort", [
|
|
682
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
702
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
683
703
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
684
704
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
685
705
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
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" } } } },
|
|
@@ -700,10 +721,11 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
700
721
|
}
|
|
701
722
|
create(value?: PartialMessage<QualificationShort>): QualificationShort {
|
|
702
723
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
703
|
-
message.id =
|
|
724
|
+
message.id = 0;
|
|
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 = "";
|
|
@@ -718,8 +740,8 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
718
740
|
while (reader.pos < end) {
|
|
719
741
|
let [fieldNo, wireType] = reader.tag();
|
|
720
742
|
switch (fieldNo) {
|
|
721
|
-
case /* uint64 id
|
|
722
|
-
message.id = reader.uint64().
|
|
743
|
+
case /* uint64 id */ 1:
|
|
744
|
+
message.id = reader.uint64().toNumber();
|
|
723
745
|
break;
|
|
724
746
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
725
747
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -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;
|
|
@@ -781,8 +806,8 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
781
806
|
return message;
|
|
782
807
|
}
|
|
783
808
|
internalBinaryWrite(message: QualificationShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
784
|
-
/* uint64 id = 1
|
|
785
|
-
if (message.id !==
|
|
809
|
+
/* uint64 id = 1; */
|
|
810
|
+
if (message.id !== 0)
|
|
786
811
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
787
812
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
788
813
|
if (message.createdAt)
|
|
@@ -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);
|
|
@@ -846,18 +874,18 @@ export const QualificationShort = new QualificationShort$Type();
|
|
|
846
874
|
class QualificationRequirement$Type extends MessageType<QualificationRequirement> {
|
|
847
875
|
constructor() {
|
|
848
876
|
super("resources.qualifications.QualificationRequirement", [
|
|
849
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
877
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
850
878
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
851
|
-
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
852
|
-
{ no: 4, name: "target_qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
879
|
+
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
880
|
+
{ no: 4, name: "target_qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
853
881
|
{ no: 5, name: "target_qualification", kind: "message", T: () => QualificationShort }
|
|
854
882
|
]);
|
|
855
883
|
}
|
|
856
884
|
create(value?: PartialMessage<QualificationRequirement>): QualificationRequirement {
|
|
857
885
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
858
|
-
message.id =
|
|
859
|
-
message.qualificationId =
|
|
860
|
-
message.targetQualificationId =
|
|
886
|
+
message.id = 0;
|
|
887
|
+
message.qualificationId = 0;
|
|
888
|
+
message.targetQualificationId = 0;
|
|
861
889
|
if (value !== undefined)
|
|
862
890
|
reflectionMergePartial<QualificationRequirement>(this, message, value);
|
|
863
891
|
return message;
|
|
@@ -867,17 +895,17 @@ class QualificationRequirement$Type extends MessageType<QualificationRequirement
|
|
|
867
895
|
while (reader.pos < end) {
|
|
868
896
|
let [fieldNo, wireType] = reader.tag();
|
|
869
897
|
switch (fieldNo) {
|
|
870
|
-
case /* uint64 id
|
|
871
|
-
message.id = reader.uint64().
|
|
898
|
+
case /* uint64 id */ 1:
|
|
899
|
+
message.id = reader.uint64().toNumber();
|
|
872
900
|
break;
|
|
873
901
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
874
902
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
875
903
|
break;
|
|
876
|
-
case /* uint64 qualification_id
|
|
877
|
-
message.qualificationId = reader.uint64().
|
|
904
|
+
case /* uint64 qualification_id */ 3:
|
|
905
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
878
906
|
break;
|
|
879
|
-
case /* uint64 target_qualification_id
|
|
880
|
-
message.targetQualificationId = reader.uint64().
|
|
907
|
+
case /* uint64 target_qualification_id */ 4:
|
|
908
|
+
message.targetQualificationId = reader.uint64().toNumber();
|
|
881
909
|
break;
|
|
882
910
|
case /* optional resources.qualifications.QualificationShort target_qualification */ 5:
|
|
883
911
|
message.targetQualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.targetQualification);
|
|
@@ -894,17 +922,17 @@ class QualificationRequirement$Type extends MessageType<QualificationRequirement
|
|
|
894
922
|
return message;
|
|
895
923
|
}
|
|
896
924
|
internalBinaryWrite(message: QualificationRequirement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
897
|
-
/* uint64 id = 1
|
|
898
|
-
if (message.id !==
|
|
925
|
+
/* uint64 id = 1; */
|
|
926
|
+
if (message.id !== 0)
|
|
899
927
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
900
928
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
901
929
|
if (message.createdAt)
|
|
902
930
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
903
|
-
/* uint64 qualification_id = 3
|
|
904
|
-
if (message.qualificationId !==
|
|
931
|
+
/* uint64 qualification_id = 3; */
|
|
932
|
+
if (message.qualificationId !== 0)
|
|
905
933
|
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
906
|
-
/* uint64 target_qualification_id = 4
|
|
907
|
-
if (message.targetQualificationId !==
|
|
934
|
+
/* uint64 target_qualification_id = 4; */
|
|
935
|
+
if (message.targetQualificationId !== 0)
|
|
908
936
|
writer.tag(4, WireType.Varint).uint64(message.targetQualificationId);
|
|
909
937
|
/* optional resources.qualifications.QualificationShort target_qualification = 5; */
|
|
910
938
|
if (message.targetQualification)
|
|
@@ -1024,7 +1052,7 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
|
|
|
1024
1052
|
super("resources.qualifications.QualificationRequest", [
|
|
1025
1053
|
{ no: 1, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1026
1054
|
{ no: 2, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
1027
|
-
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1055
|
+
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1028
1056
|
{ no: 4, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
1029
1057
|
{ no: 5, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
1030
1058
|
{ no: 6, name: "user", kind: "message", T: () => UserShort },
|
|
@@ -1039,7 +1067,7 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
|
|
|
1039
1067
|
}
|
|
1040
1068
|
create(value?: PartialMessage<QualificationRequest>): QualificationRequest {
|
|
1041
1069
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1042
|
-
message.qualificationId =
|
|
1070
|
+
message.qualificationId = 0;
|
|
1043
1071
|
message.userId = 0;
|
|
1044
1072
|
if (value !== undefined)
|
|
1045
1073
|
reflectionMergePartial<QualificationRequest>(this, message, value);
|
|
@@ -1056,8 +1084,8 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
|
|
|
1056
1084
|
case /* optional resources.timestamp.Timestamp deleted_at */ 2:
|
|
1057
1085
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
1058
1086
|
break;
|
|
1059
|
-
case /* uint64 qualification_id
|
|
1060
|
-
message.qualificationId = reader.uint64().
|
|
1087
|
+
case /* uint64 qualification_id */ 3:
|
|
1088
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1061
1089
|
break;
|
|
1062
1090
|
case /* optional resources.qualifications.QualificationShort qualification */ 4:
|
|
1063
1091
|
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
@@ -1107,8 +1135,8 @@ class QualificationRequest$Type extends MessageType<QualificationRequest> {
|
|
|
1107
1135
|
/* optional resources.timestamp.Timestamp deleted_at = 2; */
|
|
1108
1136
|
if (message.deletedAt)
|
|
1109
1137
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1110
|
-
/* uint64 qualification_id = 3
|
|
1111
|
-
if (message.qualificationId !==
|
|
1138
|
+
/* uint64 qualification_id = 3; */
|
|
1139
|
+
if (message.qualificationId !== 0)
|
|
1112
1140
|
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
1113
1141
|
/* optional resources.qualifications.QualificationShort qualification = 4; */
|
|
1114
1142
|
if (message.qualification)
|
|
@@ -1154,15 +1182,15 @@ export const QualificationRequest = new QualificationRequest$Type();
|
|
|
1154
1182
|
class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
1155
1183
|
constructor() {
|
|
1156
1184
|
super("resources.qualifications.QualificationResult", [
|
|
1157
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1185
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1158
1186
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
1159
1187
|
{ no: 3, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
1160
|
-
{ no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1188
|
+
{ no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1161
1189
|
{ no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
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 },
|
|
@@ -1171,8 +1199,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1171
1199
|
}
|
|
1172
1200
|
create(value?: PartialMessage<QualificationResult>): QualificationResult {
|
|
1173
1201
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1174
|
-
message.id =
|
|
1175
|
-
message.qualificationId =
|
|
1202
|
+
message.id = 0;
|
|
1203
|
+
message.qualificationId = 0;
|
|
1176
1204
|
message.userId = 0;
|
|
1177
1205
|
message.status = 0;
|
|
1178
1206
|
message.summary = "";
|
|
@@ -1187,8 +1215,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1187
1215
|
while (reader.pos < end) {
|
|
1188
1216
|
let [fieldNo, wireType] = reader.tag();
|
|
1189
1217
|
switch (fieldNo) {
|
|
1190
|
-
case /* uint64 id
|
|
1191
|
-
message.id = reader.uint64().
|
|
1218
|
+
case /* uint64 id */ 1:
|
|
1219
|
+
message.id = reader.uint64().toNumber();
|
|
1192
1220
|
break;
|
|
1193
1221
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
1194
1222
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -1196,8 +1224,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1196
1224
|
case /* optional resources.timestamp.Timestamp deleted_at */ 3:
|
|
1197
1225
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
1198
1226
|
break;
|
|
1199
|
-
case /* uint64 qualification_id
|
|
1200
|
-
message.qualificationId = reader.uint64().
|
|
1227
|
+
case /* uint64 qualification_id */ 4:
|
|
1228
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
1201
1229
|
break;
|
|
1202
1230
|
case /* optional resources.qualifications.QualificationShort qualification */ 5:
|
|
1203
1231
|
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
@@ -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();
|
|
@@ -1238,8 +1266,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1238
1266
|
return message;
|
|
1239
1267
|
}
|
|
1240
1268
|
internalBinaryWrite(message: QualificationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1241
|
-
/* uint64 id = 1
|
|
1242
|
-
if (message.id !==
|
|
1269
|
+
/* uint64 id = 1; */
|
|
1270
|
+
if (message.id !== 0)
|
|
1243
1271
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
1244
1272
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
1245
1273
|
if (message.createdAt)
|
|
@@ -1247,8 +1275,8 @@ class QualificationResult$Type extends MessageType<QualificationResult> {
|
|
|
1247
1275
|
/* optional resources.timestamp.Timestamp deleted_at = 3; */
|
|
1248
1276
|
if (message.deletedAt)
|
|
1249
1277
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1250
|
-
/* uint64 qualification_id = 4
|
|
1251
|
-
if (message.qualificationId !==
|
|
1278
|
+
/* uint64 qualification_id = 4; */
|
|
1279
|
+
if (message.qualificationId !== 0)
|
|
1252
1280
|
writer.tag(4, WireType.Varint).uint64(message.qualificationId);
|
|
1253
1281
|
/* optional resources.qualifications.QualificationShort qualification = 5; */
|
|
1254
1282
|
if (message.qualification)
|
|
@@ -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";
|
|
@@ -17,17 +17,17 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
17
17
|
*/
|
|
18
18
|
export interface AuditEntry {
|
|
19
19
|
/**
|
|
20
|
-
* @generated from protobuf field: uint64 id = 1
|
|
20
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
21
21
|
*/
|
|
22
|
-
id:
|
|
22
|
+
id: number; // @gotags: alias:"id"
|
|
23
23
|
/**
|
|
24
24
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
25
25
|
*/
|
|
26
26
|
createdAt?: Timestamp;
|
|
27
27
|
/**
|
|
28
|
-
* @generated from protobuf field: uint64 user_id = 3
|
|
28
|
+
* @generated from protobuf field: uint64 user_id = 3;
|
|
29
29
|
*/
|
|
30
|
-
userId:
|
|
30
|
+
userId: number; // @gotags: alias:"user_id"
|
|
31
31
|
/**
|
|
32
32
|
* @generated from protobuf field: optional resources.users.UserShort user = 4;
|
|
33
33
|
*/
|
|
@@ -98,9 +98,9 @@ export enum EventType {
|
|
|
98
98
|
class AuditEntry$Type extends MessageType<AuditEntry> {
|
|
99
99
|
constructor() {
|
|
100
100
|
super("resources.rector.AuditEntry", [
|
|
101
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
101
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
102
102
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
103
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
103
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
104
104
|
{ no: 4, name: "user", kind: "message", T: () => UserShort },
|
|
105
105
|
{ no: 5, name: "user_job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
106
106
|
{ no: 6, name: "target_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
@@ -114,8 +114,8 @@ class AuditEntry$Type extends MessageType<AuditEntry> {
|
|
|
114
114
|
}
|
|
115
115
|
create(value?: PartialMessage<AuditEntry>): AuditEntry {
|
|
116
116
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
117
|
-
message.id =
|
|
118
|
-
message.userId =
|
|
117
|
+
message.id = 0;
|
|
118
|
+
message.userId = 0;
|
|
119
119
|
message.userJob = "";
|
|
120
120
|
message.targetUserJob = "";
|
|
121
121
|
message.service = "";
|
|
@@ -130,14 +130,14 @@ class AuditEntry$Type extends MessageType<AuditEntry> {
|
|
|
130
130
|
while (reader.pos < end) {
|
|
131
131
|
let [fieldNo, wireType] = reader.tag();
|
|
132
132
|
switch (fieldNo) {
|
|
133
|
-
case /* uint64 id
|
|
134
|
-
message.id = reader.uint64().
|
|
133
|
+
case /* uint64 id */ 1:
|
|
134
|
+
message.id = reader.uint64().toNumber();
|
|
135
135
|
break;
|
|
136
136
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
137
137
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
138
138
|
break;
|
|
139
|
-
case /* uint64 user_id
|
|
140
|
-
message.userId = reader.uint64().
|
|
139
|
+
case /* uint64 user_id */ 3:
|
|
140
|
+
message.userId = reader.uint64().toNumber();
|
|
141
141
|
break;
|
|
142
142
|
case /* optional resources.users.UserShort user */ 4:
|
|
143
143
|
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
@@ -178,14 +178,14 @@ class AuditEntry$Type extends MessageType<AuditEntry> {
|
|
|
178
178
|
return message;
|
|
179
179
|
}
|
|
180
180
|
internalBinaryWrite(message: AuditEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
181
|
-
/* uint64 id = 1
|
|
182
|
-
if (message.id !==
|
|
181
|
+
/* uint64 id = 1; */
|
|
182
|
+
if (message.id !== 0)
|
|
183
183
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
184
184
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
185
185
|
if (message.createdAt)
|
|
186
186
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
187
|
-
/* uint64 user_id = 3
|
|
188
|
-
if (message.userId !==
|
|
187
|
+
/* uint64 user_id = 3; */
|
|
188
|
+
if (message.userId !== 0)
|
|
189
189
|
writer.tag(3, WireType.Varint).uint64(message.userId);
|
|
190
190
|
/* optional resources.users.UserShort user = 4; */
|
|
191
191
|
if (message.user)
|