@fivenet-app/gen 2025.4.8 → 2025.5.2
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/README.md +7 -1
- package/clients.ts +48 -42
- package/google/protobuf/any.ts +1 -1
- package/google/protobuf/descriptor.ts +108 -50
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +3 -2
- package/perms.ts +96 -91
- package/resources/accounts/accounts.ts +39 -3
- package/resources/accounts/oauth2.ts +6 -6
- package/resources/{rector → audit}/audit.ts +22 -23
- package/resources/calendar/access.ts +4 -4
- package/resources/calendar/calendar.ts +1 -1
- package/resources/centrum/attributes.ts +6 -2
- package/resources/centrum/dispatches.ts +4 -4
- package/resources/centrum/disponents.ts +2 -2
- package/resources/centrum/settings.ts +3 -3
- package/resources/centrum/units.ts +4 -4
- package/resources/centrum/{access.ts → units_access.ts} +4 -4
- package/resources/centrum/user_unit.ts +2 -2
- package/resources/common/content/content.ts +2 -2
- package/resources/common/cron/cron.ts +53 -12
- package/resources/common/database/database.ts +1 -1
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +1 -1
- package/resources/common/i18n.ts +1 -1
- package/resources/common/tests/objects.ts +1 -1
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +4 -4
- package/resources/documents/activity.ts +7 -7
- package/resources/documents/category.ts +49 -26
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +5 -5
- package/resources/documents/workflow.ts +2 -2
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +4 -4
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +1 -1
- package/resources/internet/page.ts +3 -3
- package/resources/internet/search.ts +1 -1
- package/resources/jobs/activity.ts +114 -114
- package/resources/jobs/colleagues.ts +59 -48
- package/resources/jobs/conduct.ts +52 -41
- package/resources/{users → jobs}/job_props.ts +28 -29
- package/resources/{users → jobs}/job_settings.ts +54 -54
- package/resources/{users → jobs}/jobs.ts +12 -12
- package/resources/jobs/labels.ts +29 -17
- package/resources/jobs/timeclock.ts +7 -7
- package/resources/laws/laws.ts +2 -2
- package/resources/livemap/livemap.ts +1 -1
- package/resources/livemap/tracker.ts +3 -3
- package/resources/mailer/access.ts +5 -5
- package/resources/mailer/email.ts +11 -23
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +2 -2
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +2 -2
- package/resources/notifications/events.ts +9 -9
- package/resources/notifications/notifications.ts +1 -1
- package/resources/permissions/attributes.ts +689 -0
- package/resources/permissions/permissions.ts +4 -727
- package/resources/qualifications/access.ts +2 -2
- package/resources/qualifications/exam.ts +7 -7
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/{rector → settings}/banner.ts +5 -5
- package/resources/{rector → settings}/config.ts +83 -83
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +20 -20
- package/resources/sync/data.ts +26 -26
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +196 -196
- package/resources/users/labels.ts +28 -28
- package/resources/users/licenses.ts +12 -12
- package/resources/users/props.ts +28 -17
- package/resources/users/users.ts +2 -2
- package/resources/vehicles/vehicles.ts +4 -4
- package/resources/wiki/access.ts +4 -4
- package/resources/wiki/activity.ts +7 -7
- package/resources/wiki/page.ts +2 -2
- package/services/auth/auth.client.ts +8 -8
- package/services/auth/auth.ts +32 -32
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +6 -6
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +8 -8
- package/services/{citizenstore/citizenstore.client.ts → citizens/citizens.client.ts} +37 -37
- package/services/{citizenstore/citizenstore.ts → citizens/citizens.ts} +72 -72
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +17 -17
- package/services/{docstore/docstore.client.ts → documents/documents.client.ts} +163 -180
- package/services/{docstore/docstore.ts → documents/documents.ts} +280 -377
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +2 -2
- package/services/internet/domain.client.ts +1 -1
- package/services/internet/domain.ts +3 -3
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +2 -2
- package/services/jobs/conduct.client.ts +9 -9
- package/services/jobs/conduct.ts +4 -4
- package/services/jobs/jobs.client.ts +15 -15
- package/services/jobs/jobs.ts +77 -77
- package/services/jobs/timeclock.client.ts +9 -9
- package/services/jobs/timeclock.ts +15 -15
- package/services/{livemapper → livemap}/livemap.client.ts +16 -16
- package/services/{livemapper → livemap}/livemap.ts +63 -52
- package/services/mailer/mailer.client.ts +5 -5
- package/services/mailer/mailer.ts +6 -6
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +5 -5
- package/services/qualifications/qualifications.client.ts +1 -1
- package/services/qualifications/qualifications.ts +4 -4
- package/services/settings/accounts.client.ts +92 -0
- package/services/settings/accounts.ts +526 -0
- package/services/{rector → settings}/config.client.ts +18 -18
- package/services/{rector → settings}/config.ts +26 -26
- package/services/settings/cron.client.ts +41 -0
- package/services/settings/cron.ts +119 -0
- package/services/{rector → settings}/filestore.client.ts +22 -22
- package/services/{rector → settings}/filestore.ts +23 -23
- package/services/{rector → settings}/laws.client.ts +26 -26
- package/services/{rector → settings}/laws.ts +28 -28
- package/services/settings/settings.client.ts +262 -0
- package/services/{rector/rector.ts → settings/settings.ts} +558 -149
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +1 -1
- package/services/sync/sync.client.ts +1 -1
- package/services/sync/sync.ts +33 -33
- package/services/{dmv → vehicles}/vehicles.client.ts +12 -12
- package/services/{dmv → vehicles}/vehicles.ts +11 -11
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +3 -3
- package/svcs.ts +247 -235
- package/services/rector/rector.client.ts +0 -211
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/qualifications/access.proto" (package "resources.qualifications", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -101,7 +101,7 @@ export enum AccessLevel {
|
|
|
101
101
|
class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
102
102
|
constructor() {
|
|
103
103
|
super("resources.qualifications.QualificationAccess", [
|
|
104
|
-
{ no: 1, name: "jobs", kind: "message", repeat:
|
|
104
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationJobAccess }
|
|
105
105
|
]);
|
|
106
106
|
}
|
|
107
107
|
create(value?: PartialMessage<QualificationAccess>): QualificationAccess {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 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";
|
|
@@ -381,7 +381,7 @@ export interface ExamGradingResponse {
|
|
|
381
381
|
class ExamQuestions$Type extends MessageType<ExamQuestions> {
|
|
382
382
|
constructor() {
|
|
383
383
|
super("resources.qualifications.ExamQuestions", [
|
|
384
|
-
{ no: 1, name: "questions", kind: "message", repeat:
|
|
384
|
+
{ no: 1, name: "questions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExamQuestion, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
|
|
385
385
|
]);
|
|
386
386
|
}
|
|
387
387
|
create(value?: PartialMessage<ExamQuestions>): ExamQuestions {
|
|
@@ -604,9 +604,6 @@ class ExamQuestionData$Type extends MessageType<ExamQuestionData> {
|
|
|
604
604
|
/* resources.qualifications.ExamQuestionSeparator separator = 1; */
|
|
605
605
|
if (message.data.oneofKind === "separator")
|
|
606
606
|
ExamQuestionSeparator.internalBinaryWrite(message.data.separator, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
607
|
-
/* resources.qualifications.ExamQuestionImage image = 6; */
|
|
608
|
-
if (message.data.oneofKind === "image")
|
|
609
|
-
ExamQuestionImage.internalBinaryWrite(message.data.image, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
610
607
|
/* resources.qualifications.ExamQuestionYesNo yesno = 2; */
|
|
611
608
|
if (message.data.oneofKind === "yesno")
|
|
612
609
|
ExamQuestionYesNo.internalBinaryWrite(message.data.yesno, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -619,6 +616,9 @@ class ExamQuestionData$Type extends MessageType<ExamQuestionData> {
|
|
|
619
616
|
/* resources.qualifications.ExamQuestionMultipleChoice multiple_choice = 5; */
|
|
620
617
|
if (message.data.oneofKind === "multipleChoice")
|
|
621
618
|
ExamQuestionMultipleChoice.internalBinaryWrite(message.data.multipleChoice, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
619
|
+
/* resources.qualifications.ExamQuestionImage image = 6; */
|
|
620
|
+
if (message.data.oneofKind === "image")
|
|
621
|
+
ExamQuestionImage.internalBinaryWrite(message.data.image, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
622
622
|
let u = options.writeUnknownFields;
|
|
623
623
|
if (u !== false)
|
|
624
624
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1050,7 +1050,7 @@ class ExamResponses$Type extends MessageType<ExamResponses> {
|
|
|
1050
1050
|
super("resources.qualifications.ExamResponses", [
|
|
1051
1051
|
{ no: 1, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1052
1052
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1053
|
-
{ no: 3, name: "responses", kind: "message", repeat:
|
|
1053
|
+
{ no: 3, name: "responses", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExamResponse, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
|
|
1054
1054
|
]);
|
|
1055
1055
|
}
|
|
1056
1056
|
create(value?: PartialMessage<ExamResponses>): ExamResponses {
|
|
@@ -1496,7 +1496,7 @@ export const ExamResponseMultipleChoice = new ExamResponseMultipleChoice$Type();
|
|
|
1496
1496
|
class ExamGrading$Type extends MessageType<ExamGrading> {
|
|
1497
1497
|
constructor() {
|
|
1498
1498
|
super("resources.qualifications.ExamGrading", [
|
|
1499
|
-
{ no: 1, name: "responses", kind: "message", repeat:
|
|
1499
|
+
{ no: 1, name: "responses", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExamGradingResponse, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
|
|
1500
1500
|
]);
|
|
1501
1501
|
}
|
|
1502
1502
|
create(value?: PartialMessage<ExamGrading>): ExamGrading {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 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";
|
|
@@ -482,7 +482,7 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
482
482
|
{ no: 13, name: "creator", kind: "message", T: () => UserShort },
|
|
483
483
|
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
484
484
|
{ no: 15, name: "access", kind: "message", T: () => QualificationAccess },
|
|
485
|
-
{ no: 16, name: "requirements", kind: "message", repeat:
|
|
485
|
+
{ no: 16, name: "requirements", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationRequirement },
|
|
486
486
|
{ no: 17, name: "discord_sync_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
487
487
|
{ no: 18, name: "discord_settings", kind: "message", T: () => QualificationDiscordSettings },
|
|
488
488
|
{ no: 19, name: "exam_mode", kind: "enum", T: () => ["resources.qualifications.QualificationExamMode", QualificationExamMode, "QUALIFICATION_EXAM_MODE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
@@ -628,9 +628,6 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
628
628
|
/* bool closed = 7; */
|
|
629
629
|
if (message.closed !== false)
|
|
630
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);
|
|
634
631
|
/* string abbreviation = 8; */
|
|
635
632
|
if (message.abbreviation !== "")
|
|
636
633
|
writer.tag(8, WireType.LengthDelimited).string(message.abbreviation);
|
|
@@ -685,6 +682,9 @@ class Qualification$Type extends MessageType<Qualification> {
|
|
|
685
682
|
/* optional string label_sync_format = 25; */
|
|
686
683
|
if (message.labelSyncFormat !== undefined)
|
|
687
684
|
writer.tag(25, WireType.LengthDelimited).string(message.labelSyncFormat);
|
|
685
|
+
/* bool public = 26; */
|
|
686
|
+
if (message.public !== false)
|
|
687
|
+
writer.tag(26, WireType.Varint).bool(message.public);
|
|
688
688
|
let u = options.writeUnknownFields;
|
|
689
689
|
if (u !== false)
|
|
690
690
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -713,7 +713,7 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
713
713
|
{ no: 12, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
714
714
|
{ no: 13, name: "creator", kind: "message", T: () => UserShort },
|
|
715
715
|
{ no: 14, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
716
|
-
{ no: 16, name: "requirements", kind: "message", repeat:
|
|
716
|
+
{ no: 16, name: "requirements", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationRequirement },
|
|
717
717
|
{ no: 18, name: "exam_mode", kind: "enum", T: () => ["resources.qualifications.QualificationExamMode", QualificationExamMode, "QUALIFICATION_EXAM_MODE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
718
718
|
{ no: 19, name: "exam_settings", kind: "message", T: () => QualificationExamSettings },
|
|
719
719
|
{ no: 21, name: "result", kind: "message", T: () => QualificationResult }
|
|
@@ -827,9 +827,6 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
827
827
|
/* bool closed = 7; */
|
|
828
828
|
if (message.closed !== false)
|
|
829
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);
|
|
833
830
|
/* string abbreviation = 8; */
|
|
834
831
|
if (message.abbreviation !== "")
|
|
835
832
|
writer.tag(8, WireType.LengthDelimited).string(message.abbreviation);
|
|
@@ -860,6 +857,9 @@ class QualificationShort$Type extends MessageType<QualificationShort> {
|
|
|
860
857
|
/* optional resources.qualifications.QualificationResult result = 21; */
|
|
861
858
|
if (message.result)
|
|
862
859
|
QualificationResult.internalBinaryWrite(message.result, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
860
|
+
/* bool public = 22; */
|
|
861
|
+
if (message.public !== false)
|
|
862
|
+
writer.tag(22, WireType.Varint).bool(message.public);
|
|
863
863
|
let u = options.writeUnknownFields;
|
|
864
864
|
if (u !== false)
|
|
865
865
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "resources/
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/settings/banner.proto" (package "resources.settings", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
5
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -12,7 +12,7 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Timestamp } from "../timestamp/timestamp";
|
|
14
14
|
/**
|
|
15
|
-
* @generated from protobuf message resources.
|
|
15
|
+
* @generated from protobuf message resources.settings.BannerMessage
|
|
16
16
|
*/
|
|
17
17
|
export interface BannerMessage {
|
|
18
18
|
/**
|
|
@@ -51,7 +51,7 @@ export interface BannerMessage {
|
|
|
51
51
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
52
52
|
class BannerMessage$Type extends MessageType<BannerMessage> {
|
|
53
53
|
constructor() {
|
|
54
|
-
super("resources.
|
|
54
|
+
super("resources.settings.BannerMessage", [
|
|
55
55
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
56
56
|
{ no: 2, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
57
57
|
{ no: 3, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
@@ -128,6 +128,6 @@ class BannerMessage$Type extends MessageType<BannerMessage> {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
* @generated MessageType for protobuf message resources.
|
|
131
|
+
* @generated MessageType for protobuf message resources.settings.BannerMessage
|
|
132
132
|
*/
|
|
133
133
|
export const BannerMessage = new BannerMessage$Type();
|