@fivenet-app/gen 2025.4.8 → 2025.5.3

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.
Files changed (136) hide show
  1. package/README.md +7 -1
  2. package/clients.ts +48 -42
  3. package/google/protobuf/any.ts +1 -1
  4. package/google/protobuf/descriptor.ts +108 -50
  5. package/google/protobuf/duration.ts +1 -1
  6. package/google/protobuf/timestamp.ts +1 -1
  7. package/package.json +3 -2
  8. package/perms.ts +96 -91
  9. package/resources/accounts/accounts.ts +39 -3
  10. package/resources/accounts/oauth2.ts +6 -6
  11. package/resources/{rector → audit}/audit.ts +22 -23
  12. package/resources/calendar/access.ts +4 -4
  13. package/resources/calendar/calendar.ts +1 -1
  14. package/resources/centrum/attributes.ts +6 -2
  15. package/resources/centrum/dispatches.ts +4 -4
  16. package/resources/centrum/disponents.ts +2 -2
  17. package/resources/centrum/settings.ts +3 -3
  18. package/resources/centrum/units.ts +4 -4
  19. package/resources/centrum/{access.ts → units_access.ts} +4 -4
  20. package/resources/centrum/user_unit.ts +2 -2
  21. package/resources/common/content/content.ts +2 -2
  22. package/resources/common/cron/cron.ts +53 -12
  23. package/resources/common/database/database.ts +1 -1
  24. package/resources/common/error.ts +1 -1
  25. package/resources/common/grpcws/grpcws.ts +1 -1
  26. package/resources/common/i18n.ts +1 -1
  27. package/resources/common/tests/objects.ts +1 -1
  28. package/resources/common/uuid.ts +1 -1
  29. package/resources/documents/access.ts +4 -4
  30. package/resources/documents/activity.ts +7 -7
  31. package/resources/documents/category.ts +49 -26
  32. package/resources/documents/comment.ts +1 -1
  33. package/resources/documents/documents.ts +1 -1
  34. package/resources/documents/requests.ts +1 -1
  35. package/resources/documents/templates.ts +5 -5
  36. package/resources/documents/workflow.ts +2 -2
  37. package/resources/filestore/file.ts +1 -1
  38. package/resources/internet/access.ts +4 -4
  39. package/resources/internet/ads.ts +1 -1
  40. package/resources/internet/domain.ts +1 -1
  41. package/resources/internet/page.ts +3 -3
  42. package/resources/internet/search.ts +1 -1
  43. package/resources/jobs/activity.ts +114 -114
  44. package/resources/jobs/colleagues.ts +59 -48
  45. package/resources/jobs/conduct.ts +52 -41
  46. package/resources/{users → jobs}/job_props.ts +28 -41
  47. package/resources/{users → jobs}/job_settings.ts +54 -54
  48. package/resources/{users → jobs}/jobs.ts +12 -12
  49. package/resources/jobs/labels.ts +29 -17
  50. package/resources/jobs/timeclock.ts +7 -7
  51. package/resources/laws/laws.ts +2 -2
  52. package/resources/livemap/livemap.ts +1 -1
  53. package/resources/livemap/tracker.ts +3 -3
  54. package/resources/mailer/access.ts +5 -5
  55. package/resources/mailer/email.ts +11 -23
  56. package/resources/mailer/events.ts +1 -1
  57. package/resources/mailer/message.ts +2 -2
  58. package/resources/mailer/settings.ts +1 -1
  59. package/resources/mailer/template.ts +1 -1
  60. package/resources/mailer/thread.ts +2 -2
  61. package/resources/notifications/events.ts +23 -11
  62. package/resources/notifications/notifications.ts +1 -1
  63. package/resources/permissions/attributes.ts +689 -0
  64. package/resources/permissions/permissions.ts +4 -727
  65. package/resources/qualifications/access.ts +2 -2
  66. package/resources/qualifications/exam.ts +7 -7
  67. package/resources/qualifications/qualifications.ts +9 -9
  68. package/resources/{rector → settings}/banner.ts +5 -5
  69. package/resources/{rector → settings}/config.ts +83 -83
  70. package/resources/stats/stats.ts +1 -1
  71. package/resources/sync/activity.ts +20 -20
  72. package/resources/sync/data.ts +26 -26
  73. package/resources/timestamp/timestamp.ts +1 -1
  74. package/resources/users/activity.ts +196 -196
  75. package/resources/users/labels.ts +28 -28
  76. package/resources/users/licenses.ts +12 -12
  77. package/resources/users/props.ts +28 -17
  78. package/resources/users/users.ts +2 -2
  79. package/resources/vehicles/vehicles.ts +4 -4
  80. package/resources/wiki/access.ts +4 -4
  81. package/resources/wiki/activity.ts +7 -7
  82. package/resources/wiki/page.ts +2 -2
  83. package/services/auth/auth.client.ts +8 -8
  84. package/services/auth/auth.ts +32 -32
  85. package/services/calendar/calendar.client.ts +1 -1
  86. package/services/calendar/calendar.ts +6 -6
  87. package/services/centrum/centrum.client.ts +1 -1
  88. package/services/centrum/centrum.ts +8 -8
  89. package/services/{citizenstore/citizenstore.client.ts → citizens/citizens.client.ts} +37 -37
  90. package/services/{citizenstore/citizenstore.ts → citizens/citizens.ts} +72 -72
  91. package/services/completor/completor.client.ts +1 -1
  92. package/services/completor/completor.ts +17 -17
  93. package/services/{docstore/docstore.client.ts → documents/documents.client.ts} +163 -180
  94. package/services/{docstore/docstore.ts → documents/documents.ts} +280 -377
  95. package/services/internet/ads.client.ts +1 -1
  96. package/services/internet/ads.ts +2 -2
  97. package/services/internet/domain.client.ts +1 -1
  98. package/services/internet/domain.ts +3 -3
  99. package/services/internet/internet.client.ts +1 -1
  100. package/services/internet/internet.ts +2 -2
  101. package/services/jobs/conduct.client.ts +9 -9
  102. package/services/jobs/conduct.ts +4 -4
  103. package/services/jobs/jobs.client.ts +15 -15
  104. package/services/jobs/jobs.ts +77 -77
  105. package/services/jobs/timeclock.client.ts +9 -9
  106. package/services/jobs/timeclock.ts +15 -15
  107. package/services/{livemapper → livemap}/livemap.client.ts +16 -16
  108. package/services/{livemapper → livemap}/livemap.ts +63 -52
  109. package/services/mailer/mailer.client.ts +5 -5
  110. package/services/mailer/mailer.ts +6 -6
  111. package/services/notificator/notificator.client.ts +1 -1
  112. package/services/notificator/notificator.ts +5 -5
  113. package/services/qualifications/qualifications.client.ts +1 -1
  114. package/services/qualifications/qualifications.ts +4 -4
  115. package/services/settings/accounts.client.ts +92 -0
  116. package/services/settings/accounts.ts +526 -0
  117. package/services/{rector → settings}/config.client.ts +18 -18
  118. package/services/{rector → settings}/config.ts +26 -26
  119. package/services/settings/cron.client.ts +41 -0
  120. package/services/settings/cron.ts +119 -0
  121. package/services/{rector → settings}/filestore.client.ts +22 -22
  122. package/services/{rector → settings}/filestore.ts +23 -23
  123. package/services/{rector → settings}/laws.client.ts +26 -26
  124. package/services/{rector → settings}/laws.ts +28 -28
  125. package/services/settings/settings.client.ts +262 -0
  126. package/services/{rector/rector.ts → settings/settings.ts} +558 -149
  127. package/services/stats/stats.client.ts +1 -1
  128. package/services/stats/stats.ts +1 -1
  129. package/services/sync/sync.client.ts +1 -1
  130. package/services/sync/sync.ts +33 -33
  131. package/services/{dmv → vehicles}/vehicles.client.ts +12 -12
  132. package/services/{dmv → vehicles}/vehicles.ts +11 -11
  133. package/services/wiki/wiki.client.ts +1 -1
  134. package/services/wiki/wiki.ts +3 -3
  135. package/svcs.ts +247 -235
  136. package/services/rector/rector.client.ts +0 -211
@@ -1,4 +1,4 @@
1
- // @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
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: 1 /*RepeatType.PACKED*/, T: () => QualificationJobAccess }
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.9.6 with parameter optimize_speed,long_type_number,force_server_none
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: 1 /*RepeatType.PACKED*/, T: () => ExamQuestion, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
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: 1 /*RepeatType.PACKED*/, T: () => ExamResponse, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
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: 1 /*RepeatType.PACKED*/, T: () => ExamGradingResponse, options: { "validate.rules": { repeated: { maxItems: "50" } } } }
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.9.6 with parameter optimize_speed,long_type_number,force_server_none
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: 1 /*RepeatType.PACKED*/, T: () => QualificationRequirement },
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: 1 /*RepeatType.PACKED*/, T: () => QualificationRequirement },
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.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)
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.rector.BannerMessage
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.rector.BannerMessage", [
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.rector.BannerMessage
131
+ * @generated MessageType for protobuf message resources.settings.BannerMessage
132
132
  */
133
133
  export const BannerMessage = new BannerMessage$Type();