@fivenet-app/gen 0.9.3 → 0.9.4-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.
Files changed (77) hide show
  1. package/package.json +5 -1
  2. package/perms.ts +4 -0
  3. package/resources/accounts/accounts.ts +8 -8
  4. package/resources/accounts/oauth2.ts +16 -16
  5. package/resources/calendar/access.ts +32 -32
  6. package/resources/calendar/calendar.ts +48 -48
  7. package/resources/centrum/access.ts +40 -40
  8. package/resources/centrum/dispatches.ts +62 -62
  9. package/resources/centrum/general.ts +8 -8
  10. package/resources/centrum/units.ts +40 -40
  11. package/resources/documents/access.ts +32 -32
  12. package/resources/documents/activity.ts +16 -16
  13. package/resources/documents/category.ts +8 -8
  14. package/resources/documents/comment.ts +16 -16
  15. package/resources/documents/documents.ts +86 -86
  16. package/resources/documents/requests.ts +16 -16
  17. package/resources/documents/templates.ts +32 -32
  18. package/resources/internet/access.ts +358 -0
  19. package/resources/internet/ads.ts +8 -8
  20. package/resources/internet/domain.ts +182 -23
  21. package/resources/internet/page.ts +22 -20
  22. package/resources/internet/search.ts +8 -8
  23. package/resources/jobs/activity.ts +8 -8
  24. package/resources/jobs/conduct.ts +8 -8
  25. package/resources/jobs/labels.ts +8 -8
  26. package/resources/jobs/timeclock.ts +6 -2
  27. package/resources/laws/laws.ts +24 -24
  28. package/resources/livemap/livemap.ts +14 -14
  29. package/resources/mailer/access.ts +56 -56
  30. package/resources/mailer/email.ts +8 -8
  31. package/resources/mailer/events.ts +18 -18
  32. package/resources/mailer/message.ts +24 -24
  33. package/resources/mailer/settings.ts +8 -8
  34. package/resources/mailer/template.ts +16 -16
  35. package/resources/mailer/thread.ts +56 -56
  36. package/resources/notifications/events.ts +39 -2
  37. package/resources/notifications/notifications.ts +20 -20
  38. package/resources/permissions/permissions.ts +64 -64
  39. package/resources/qualifications/access.ts +16 -16
  40. package/resources/qualifications/exam.ts +40 -40
  41. package/resources/qualifications/qualifications.ts +64 -64
  42. package/resources/rector/audit.ts +16 -16
  43. package/resources/sync/activity.ts +92 -14
  44. package/resources/sync/data.ts +142 -10
  45. package/resources/users/activity.ts +992 -36
  46. package/resources/users/job_props.ts +3 -708
  47. package/resources/users/job_settings.ts +721 -0
  48. package/resources/users/labels.ts +8 -8
  49. package/resources/users/licenses.ts +148 -0
  50. package/resources/users/users.ts +1 -136
  51. package/resources/wiki/access.ts +32 -32
  52. package/resources/wiki/activity.ts +16 -16
  53. package/resources/wiki/page.ts +28 -28
  54. package/services/auth/auth.ts +16 -16
  55. package/services/calendar/calendar.ts +55 -55
  56. package/services/centrum/centrum.ts +112 -112
  57. package/services/citizenstore/citizenstore.ts +24 -1
  58. package/services/docstore/docstore.ts +280 -280
  59. package/services/internet/domain.client.ts +126 -0
  60. package/services/internet/domain.ts +695 -0
  61. package/services/internet/internet.ts +3 -3
  62. package/services/jobs/conduct.ts +15 -15
  63. package/services/jobs/jobs.ts +14 -14
  64. package/services/jobs/timeclock.ts +1 -1
  65. package/services/livemapper/livemap.ts +8 -8
  66. package/services/mailer/mailer.ts +159 -159
  67. package/services/notificator/notificator.ts +15 -15
  68. package/services/qualifications/qualifications.ts +108 -108
  69. package/services/rector/laws.ts +16 -16
  70. package/services/rector/rector.ts +63 -63
  71. package/services/sync/sync.client.ts +36 -2
  72. package/services/sync/sync.ts +259 -44
  73. package/services/wiki/wiki.ts +24 -24
  74. package/svcs.ts +13 -0
  75. package/resources/common/access/dummy.ts +0 -309
  76. package/resources/internet/internet.ts +0 -344
  77. package/resources/mailer/user.ts +0 -93
@@ -1,93 +0,0 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
- // @generated from protobuf file "resources/mailer/user.proto" (package "resources.mailer", 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.mailer.UserStatus
16
- */
17
- export interface UserStatus {
18
- /**
19
- * @generated from protobuf field: int32 user_id = 1;
20
- */
21
- userId: number;
22
- /**
23
- * @generated from protobuf field: resources.timestamp.Timestamp last_seen = 2;
24
- */
25
- lastSeen?: Timestamp;
26
- /**
27
- * @sanitize: method=StripTags
28
- *
29
- * @generated from protobuf field: optional string status = 3;
30
- */
31
- status?: string;
32
- }
33
- // @generated message type with reflection information, may provide speed optimized methods
34
- class UserStatus$Type extends MessageType<UserStatus> {
35
- constructor() {
36
- super("resources.mailer.UserStatus", [
37
- { no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
38
- { no: 2, name: "last_seen", kind: "message", T: () => Timestamp },
39
- { no: 3, name: "status", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "40" } } } }
40
- ]);
41
- }
42
- create(value?: PartialMessage<UserStatus>): UserStatus {
43
- const message = globalThis.Object.create((this.messagePrototype!));
44
- message.userId = 0;
45
- if (value !== undefined)
46
- reflectionMergePartial<UserStatus>(this, message, value);
47
- return message;
48
- }
49
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserStatus): UserStatus {
50
- let message = target ?? this.create(), end = reader.pos + length;
51
- while (reader.pos < end) {
52
- let [fieldNo, wireType] = reader.tag();
53
- switch (fieldNo) {
54
- case /* int32 user_id */ 1:
55
- message.userId = reader.int32();
56
- break;
57
- case /* resources.timestamp.Timestamp last_seen */ 2:
58
- message.lastSeen = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSeen);
59
- break;
60
- case /* optional string status */ 3:
61
- message.status = reader.string();
62
- break;
63
- default:
64
- let u = options.readUnknownField;
65
- if (u === "throw")
66
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
67
- let d = reader.skip(wireType);
68
- if (u !== false)
69
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
70
- }
71
- }
72
- return message;
73
- }
74
- internalBinaryWrite(message: UserStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
75
- /* int32 user_id = 1; */
76
- if (message.userId !== 0)
77
- writer.tag(1, WireType.Varint).int32(message.userId);
78
- /* resources.timestamp.Timestamp last_seen = 2; */
79
- if (message.lastSeen)
80
- Timestamp.internalBinaryWrite(message.lastSeen, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
81
- /* optional string status = 3; */
82
- if (message.status !== undefined)
83
- writer.tag(3, WireType.LengthDelimited).string(message.status);
84
- let u = options.writeUnknownFields;
85
- if (u !== false)
86
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
87
- return writer;
88
- }
89
- }
90
- /**
91
- * @generated MessageType for protobuf message resources.mailer.UserStatus
92
- */
93
- export const UserStatus = new UserStatus$Type();