@fivenet-app/gen 0.9.4-0 → 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 +2 -2
- package/perms.ts +5 -1
- 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 +3 -1
- 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 +1 -1
- package/services/calendar/calendar.ts +43 -4
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +6 -3
- 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/exam.proto" (package "resources.qualifications", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -69,6 +69,8 @@ export interface ExamQuestion {
|
|
|
69
69
|
points?: number;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
+
* @dbscanner: json
|
|
73
|
+
*
|
|
72
74
|
* @generated from protobuf message resources.qualifications.ExamQuestionData
|
|
73
75
|
*/
|
|
74
76
|
export interface ExamQuestionData {
|
|
@@ -178,6 +180,8 @@ export interface ExamQuestionMultipleChoice {
|
|
|
178
180
|
limit?: number;
|
|
179
181
|
}
|
|
180
182
|
/**
|
|
183
|
+
* @dbscanner: json
|
|
184
|
+
*
|
|
181
185
|
* @generated from protobuf message resources.qualifications.ExamQuestionAnswerData
|
|
182
186
|
*/
|
|
183
187
|
export interface ExamQuestionAnswerData {
|
|
@@ -218,6 +222,8 @@ export interface ExamUser {
|
|
|
218
222
|
endedAt?: Timestamp;
|
|
219
223
|
}
|
|
220
224
|
/**
|
|
225
|
+
* @dbscanner: json
|
|
226
|
+
*
|
|
221
227
|
* @generated from protobuf message resources.qualifications.ExamResponses
|
|
222
228
|
*/
|
|
223
229
|
export interface ExamResponses {
|
|
@@ -343,6 +349,34 @@ export interface ExamResponseMultipleChoice {
|
|
|
343
349
|
*/
|
|
344
350
|
choices: string[];
|
|
345
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* @dbscanner: json
|
|
354
|
+
*
|
|
355
|
+
* @generated from protobuf message resources.qualifications.ExamGrading
|
|
356
|
+
*/
|
|
357
|
+
export interface ExamGrading {
|
|
358
|
+
/**
|
|
359
|
+
* @generated from protobuf field: repeated resources.qualifications.ExamGradingResponse responses = 1;
|
|
360
|
+
*/
|
|
361
|
+
responses: ExamGradingResponse[];
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @generated from protobuf message resources.qualifications.ExamGradingResponse
|
|
365
|
+
*/
|
|
366
|
+
export interface ExamGradingResponse {
|
|
367
|
+
/**
|
|
368
|
+
* @generated from protobuf field: uint64 question_id = 1;
|
|
369
|
+
*/
|
|
370
|
+
questionId: number;
|
|
371
|
+
/**
|
|
372
|
+
* @generated from protobuf field: float points = 2;
|
|
373
|
+
*/
|
|
374
|
+
points: number;
|
|
375
|
+
/**
|
|
376
|
+
* @generated from protobuf field: optional bool checked = 3;
|
|
377
|
+
*/
|
|
378
|
+
checked?: boolean;
|
|
379
|
+
}
|
|
346
380
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
347
381
|
class ExamQuestions$Type extends MessageType<ExamQuestions> {
|
|
348
382
|
constructor() {
|
|
@@ -607,7 +641,20 @@ class ExamQuestionSeparator$Type extends MessageType<ExamQuestionSeparator> {
|
|
|
607
641
|
return message;
|
|
608
642
|
}
|
|
609
643
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExamQuestionSeparator): ExamQuestionSeparator {
|
|
610
|
-
|
|
644
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
645
|
+
while (reader.pos < end) {
|
|
646
|
+
let [fieldNo, wireType] = reader.tag();
|
|
647
|
+
switch (fieldNo) {
|
|
648
|
+
default:
|
|
649
|
+
let u = options.readUnknownField;
|
|
650
|
+
if (u === "throw")
|
|
651
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
652
|
+
let d = reader.skip(wireType);
|
|
653
|
+
if (u !== false)
|
|
654
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return message;
|
|
611
658
|
}
|
|
612
659
|
internalBinaryWrite(message: ExamQuestionSeparator, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
613
660
|
let u = options.writeUnknownFields;
|
|
@@ -685,7 +732,20 @@ class ExamQuestionYesNo$Type extends MessageType<ExamQuestionYesNo> {
|
|
|
685
732
|
return message;
|
|
686
733
|
}
|
|
687
734
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExamQuestionYesNo): ExamQuestionYesNo {
|
|
688
|
-
|
|
735
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
736
|
+
while (reader.pos < end) {
|
|
737
|
+
let [fieldNo, wireType] = reader.tag();
|
|
738
|
+
switch (fieldNo) {
|
|
739
|
+
default:
|
|
740
|
+
let u = options.readUnknownField;
|
|
741
|
+
if (u === "throw")
|
|
742
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
743
|
+
let d = reader.skip(wireType);
|
|
744
|
+
if (u !== false)
|
|
745
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
return message;
|
|
689
749
|
}
|
|
690
750
|
internalBinaryWrite(message: ExamQuestionYesNo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
691
751
|
let u = options.writeUnknownFields;
|
|
@@ -1218,7 +1278,20 @@ class ExamResponseSeparator$Type extends MessageType<ExamResponseSeparator> {
|
|
|
1218
1278
|
return message;
|
|
1219
1279
|
}
|
|
1220
1280
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExamResponseSeparator): ExamResponseSeparator {
|
|
1221
|
-
|
|
1281
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1282
|
+
while (reader.pos < end) {
|
|
1283
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1284
|
+
switch (fieldNo) {
|
|
1285
|
+
default:
|
|
1286
|
+
let u = options.readUnknownField;
|
|
1287
|
+
if (u === "throw")
|
|
1288
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1289
|
+
let d = reader.skip(wireType);
|
|
1290
|
+
if (u !== false)
|
|
1291
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
return message;
|
|
1222
1295
|
}
|
|
1223
1296
|
internalBinaryWrite(message: ExamResponseSeparator, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1224
1297
|
let u = options.writeUnknownFields;
|
|
@@ -1419,3 +1492,112 @@ class ExamResponseMultipleChoice$Type extends MessageType<ExamResponseMultipleCh
|
|
|
1419
1492
|
* @generated MessageType for protobuf message resources.qualifications.ExamResponseMultipleChoice
|
|
1420
1493
|
*/
|
|
1421
1494
|
export const ExamResponseMultipleChoice = new ExamResponseMultipleChoice$Type();
|
|
1495
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1496
|
+
class ExamGrading$Type extends MessageType<ExamGrading> {
|
|
1497
|
+
constructor() {
|
|
1498
|
+
super("resources.qualifications.ExamGrading", [
|
|
1499
|
+
{ no: 1, name: "responses", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ExamGradingResponse, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
|
|
1500
|
+
]);
|
|
1501
|
+
}
|
|
1502
|
+
create(value?: PartialMessage<ExamGrading>): ExamGrading {
|
|
1503
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1504
|
+
message.responses = [];
|
|
1505
|
+
if (value !== undefined)
|
|
1506
|
+
reflectionMergePartial<ExamGrading>(this, message, value);
|
|
1507
|
+
return message;
|
|
1508
|
+
}
|
|
1509
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExamGrading): ExamGrading {
|
|
1510
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1511
|
+
while (reader.pos < end) {
|
|
1512
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1513
|
+
switch (fieldNo) {
|
|
1514
|
+
case /* repeated resources.qualifications.ExamGradingResponse responses */ 1:
|
|
1515
|
+
message.responses.push(ExamGradingResponse.internalBinaryRead(reader, reader.uint32(), options));
|
|
1516
|
+
break;
|
|
1517
|
+
default:
|
|
1518
|
+
let u = options.readUnknownField;
|
|
1519
|
+
if (u === "throw")
|
|
1520
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1521
|
+
let d = reader.skip(wireType);
|
|
1522
|
+
if (u !== false)
|
|
1523
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
return message;
|
|
1527
|
+
}
|
|
1528
|
+
internalBinaryWrite(message: ExamGrading, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1529
|
+
/* repeated resources.qualifications.ExamGradingResponse responses = 1; */
|
|
1530
|
+
for (let i = 0; i < message.responses.length; i++)
|
|
1531
|
+
ExamGradingResponse.internalBinaryWrite(message.responses[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1532
|
+
let u = options.writeUnknownFields;
|
|
1533
|
+
if (u !== false)
|
|
1534
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1535
|
+
return writer;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* @generated MessageType for protobuf message resources.qualifications.ExamGrading
|
|
1540
|
+
*/
|
|
1541
|
+
export const ExamGrading = new ExamGrading$Type();
|
|
1542
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1543
|
+
class ExamGradingResponse$Type extends MessageType<ExamGradingResponse> {
|
|
1544
|
+
constructor() {
|
|
1545
|
+
super("resources.qualifications.ExamGradingResponse", [
|
|
1546
|
+
{ no: 1, name: "question_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1547
|
+
{ no: 2, name: "points", kind: "scalar", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { lte: 1000, gte: 0 } } } },
|
|
1548
|
+
{ no: 3, name: "checked", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1549
|
+
]);
|
|
1550
|
+
}
|
|
1551
|
+
create(value?: PartialMessage<ExamGradingResponse>): ExamGradingResponse {
|
|
1552
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1553
|
+
message.questionId = 0;
|
|
1554
|
+
message.points = 0;
|
|
1555
|
+
if (value !== undefined)
|
|
1556
|
+
reflectionMergePartial<ExamGradingResponse>(this, message, value);
|
|
1557
|
+
return message;
|
|
1558
|
+
}
|
|
1559
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExamGradingResponse): ExamGradingResponse {
|
|
1560
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1561
|
+
while (reader.pos < end) {
|
|
1562
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1563
|
+
switch (fieldNo) {
|
|
1564
|
+
case /* uint64 question_id */ 1:
|
|
1565
|
+
message.questionId = reader.uint64().toNumber();
|
|
1566
|
+
break;
|
|
1567
|
+
case /* float points */ 2:
|
|
1568
|
+
message.points = reader.float();
|
|
1569
|
+
break;
|
|
1570
|
+
case /* optional bool checked */ 3:
|
|
1571
|
+
message.checked = reader.bool();
|
|
1572
|
+
break;
|
|
1573
|
+
default:
|
|
1574
|
+
let u = options.readUnknownField;
|
|
1575
|
+
if (u === "throw")
|
|
1576
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1577
|
+
let d = reader.skip(wireType);
|
|
1578
|
+
if (u !== false)
|
|
1579
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
return message;
|
|
1583
|
+
}
|
|
1584
|
+
internalBinaryWrite(message: ExamGradingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1585
|
+
/* uint64 question_id = 1; */
|
|
1586
|
+
if (message.questionId !== 0)
|
|
1587
|
+
writer.tag(1, WireType.Varint).uint64(message.questionId);
|
|
1588
|
+
/* float points = 2; */
|
|
1589
|
+
if (message.points !== 0)
|
|
1590
|
+
writer.tag(2, WireType.Bit32).float(message.points);
|
|
1591
|
+
/* optional bool checked = 3; */
|
|
1592
|
+
if (message.checked !== undefined)
|
|
1593
|
+
writer.tag(3, WireType.Varint).bool(message.checked);
|
|
1594
|
+
let u = options.writeUnknownFields;
|
|
1595
|
+
if (u !== false)
|
|
1596
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1597
|
+
return writer;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* @generated MessageType for protobuf message resources.qualifications.ExamGradingResponse
|
|
1602
|
+
*/
|
|
1603
|
+
export const ExamGradingResponse = new ExamGradingResponse$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/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();
|