@fivenet-app/gen 0.9.3-1

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 (123) hide show
  1. package/README.md +1 -0
  2. package/google/protobuf/any.ts +322 -0
  3. package/google/protobuf/descriptor.ts +3475 -0
  4. package/google/protobuf/duration.ts +231 -0
  5. package/google/protobuf/timestamp.ts +290 -0
  6. package/package.json +15 -0
  7. package/perms.ts +178 -0
  8. package/resources/accounts/accounts.ts +195 -0
  9. package/resources/accounts/oauth2.ts +230 -0
  10. package/resources/calendar/access.ts +362 -0
  11. package/resources/calendar/calendar.ts +955 -0
  12. package/resources/centrum/access.ts +380 -0
  13. package/resources/centrum/dispatches.ts +854 -0
  14. package/resources/centrum/general.ts +231 -0
  15. package/resources/centrum/settings.ts +303 -0
  16. package/resources/centrum/units.ts +620 -0
  17. package/resources/common/access/dummy.ts +309 -0
  18. package/resources/common/content/content.ts +252 -0
  19. package/resources/common/cron/cron.ts +536 -0
  20. package/resources/common/database/database.ts +306 -0
  21. package/resources/common/error.ts +79 -0
  22. package/resources/common/grpcws/grpcws.ts +615 -0
  23. package/resources/common/i18n.ts +102 -0
  24. package/resources/common/uuid.ts +68 -0
  25. package/resources/documents/access.ts +388 -0
  26. package/resources/documents/activity.ts +803 -0
  27. package/resources/documents/category.ts +132 -0
  28. package/resources/documents/comment.ts +161 -0
  29. package/resources/documents/documents.ts +1124 -0
  30. package/resources/documents/requests.ts +196 -0
  31. package/resources/documents/templates.ts +949 -0
  32. package/resources/documents/workflow.ts +349 -0
  33. package/resources/filestore/file.ts +204 -0
  34. package/resources/internet/ads.ts +257 -0
  35. package/resources/internet/domain.ts +136 -0
  36. package/resources/internet/internet.ts +344 -0
  37. package/resources/internet/page.ts +236 -0
  38. package/resources/internet/search.ts +104 -0
  39. package/resources/jobs/activity.ts +600 -0
  40. package/resources/jobs/colleagues.ts +346 -0
  41. package/resources/jobs/conduct.ts +220 -0
  42. package/resources/jobs/labels.ts +240 -0
  43. package/resources/jobs/timeclock.ts +372 -0
  44. package/resources/laws/laws.ts +293 -0
  45. package/resources/livemap/livemap.ts +728 -0
  46. package/resources/livemap/tracker.ts +81 -0
  47. package/resources/mailer/access.ts +485 -0
  48. package/resources/mailer/email.ts +222 -0
  49. package/resources/mailer/events.ts +196 -0
  50. package/resources/mailer/message.ts +285 -0
  51. package/resources/mailer/settings.ts +95 -0
  52. package/resources/mailer/template.ts +164 -0
  53. package/resources/mailer/thread.ts +422 -0
  54. package/resources/mailer/user.ts +93 -0
  55. package/resources/notifications/events.ts +287 -0
  56. package/resources/notifications/notifications.ts +444 -0
  57. package/resources/permissions/permissions.ts +829 -0
  58. package/resources/qualifications/access.ts +275 -0
  59. package/resources/qualifications/exam.ts +1421 -0
  60. package/resources/qualifications/qualifications.ts +1289 -0
  61. package/resources/rector/audit.ts +226 -0
  62. package/resources/rector/config.ts +922 -0
  63. package/resources/stats/stats.ts +67 -0
  64. package/resources/sync/activity.ts +356 -0
  65. package/resources/sync/data.ts +455 -0
  66. package/resources/timestamp/timestamp.ts +78 -0
  67. package/resources/users/activity.ts +211 -0
  68. package/resources/users/job_props.ts +992 -0
  69. package/resources/users/jobs.ts +171 -0
  70. package/resources/users/labels.ts +161 -0
  71. package/resources/users/props.ts +207 -0
  72. package/resources/users/users.ts +570 -0
  73. package/resources/vehicles/vehicles.ts +114 -0
  74. package/resources/wiki/access.ts +362 -0
  75. package/resources/wiki/activity.ts +591 -0
  76. package/resources/wiki/page.ts +548 -0
  77. package/services/auth/auth.client.ts +171 -0
  78. package/services/auth/auth.ts +1331 -0
  79. package/services/calendar/calendar.client.ts +262 -0
  80. package/services/calendar/calendar.ts +1733 -0
  81. package/services/centrum/centrum.client.ts +365 -0
  82. package/services/centrum/centrum.ts +2619 -0
  83. package/services/citizenstore/citizenstore.client.ts +126 -0
  84. package/services/citizenstore/citizenstore.ts +847 -0
  85. package/services/completor/completor.client.ts +109 -0
  86. package/services/completor/completor.ts +616 -0
  87. package/services/dmv/vehicles.client.ts +41 -0
  88. package/services/dmv/vehicles.ts +191 -0
  89. package/services/docstore/docstore.client.ts +653 -0
  90. package/services/docstore/docstore.ts +4571 -0
  91. package/services/internet/ads.client.ts +41 -0
  92. package/services/internet/ads.ts +145 -0
  93. package/services/internet/internet.client.ts +58 -0
  94. package/services/internet/internet.ts +257 -0
  95. package/services/jobs/conduct.client.ts +92 -0
  96. package/services/jobs/conduct.ts +541 -0
  97. package/services/jobs/jobs.client.ts +194 -0
  98. package/services/jobs/jobs.ts +1301 -0
  99. package/services/jobs/timeclock.client.ts +75 -0
  100. package/services/jobs/timeclock.ts +808 -0
  101. package/services/livemapper/livemap.client.ts +76 -0
  102. package/services/livemapper/livemap.ts +552 -0
  103. package/services/mailer/mailer.client.ts +381 -0
  104. package/services/mailer/mailer.ts +2590 -0
  105. package/services/notificator/notificator.client.ts +76 -0
  106. package/services/notificator/notificator.ts +510 -0
  107. package/services/qualifications/qualifications.client.ts +279 -0
  108. package/services/qualifications/qualifications.ts +2142 -0
  109. package/services/rector/config.client.ts +58 -0
  110. package/services/rector/config.ts +216 -0
  111. package/services/rector/filestore.client.ts +75 -0
  112. package/services/rector/filestore.ts +378 -0
  113. package/services/rector/laws.client.ts +92 -0
  114. package/services/rector/laws.ts +416 -0
  115. package/services/rector/rector.client.ts +211 -0
  116. package/services/rector/rector.ts +1540 -0
  117. package/services/stats/stats.client.ts +37 -0
  118. package/services/stats/stats.ts +128 -0
  119. package/services/sync/sync.client.ts +110 -0
  120. package/services/sync/sync.ts +831 -0
  121. package/services/wiki/wiki.client.ts +126 -0
  122. package/services/wiki/wiki.ts +749 -0
  123. package/svcs.ts +307 -0
@@ -0,0 +1,287 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/notifications/events.proto" (package "resources.notifications", 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 { JobProps } from "../users/job_props";
14
+ import { Notification } from "./notifications";
15
+ // User Events
16
+
17
+ /**
18
+ * @generated from protobuf message resources.notifications.UserEvent
19
+ */
20
+ export interface UserEvent {
21
+ /**
22
+ * @generated from protobuf oneof: data
23
+ */
24
+ data: {
25
+ oneofKind: "refreshToken";
26
+ /**
27
+ * @generated from protobuf field: bool refresh_token = 1;
28
+ */
29
+ refreshToken: boolean;
30
+ } | {
31
+ oneofKind: "notification";
32
+ /**
33
+ * Notifications
34
+ *
35
+ * @generated from protobuf field: resources.notifications.Notification notification = 2;
36
+ */
37
+ notification: Notification;
38
+ } | {
39
+ oneofKind: "notificationsReadCount";
40
+ /**
41
+ * @generated from protobuf field: int32 notifications_read_count = 3;
42
+ */
43
+ notificationsReadCount: number;
44
+ } | {
45
+ oneofKind: undefined;
46
+ };
47
+ }
48
+ // Job Events
49
+
50
+ /**
51
+ * @generated from protobuf message resources.notifications.JobEvent
52
+ */
53
+ export interface JobEvent {
54
+ /**
55
+ * @generated from protobuf oneof: data
56
+ */
57
+ data: {
58
+ oneofKind: "jobProps";
59
+ /**
60
+ * @generated from protobuf field: resources.users.JobProps job_props = 1;
61
+ */
62
+ jobProps: JobProps;
63
+ } | {
64
+ oneofKind: undefined;
65
+ };
66
+ }
67
+ // Job Grade Events
68
+
69
+ /**
70
+ * @generated from protobuf message resources.notifications.JobGradeEvent
71
+ */
72
+ export interface JobGradeEvent {
73
+ /**
74
+ * @generated from protobuf oneof: data
75
+ */
76
+ data: {
77
+ oneofKind: "refreshToken";
78
+ /**
79
+ * @generated from protobuf field: bool refresh_token = 1;
80
+ */
81
+ refreshToken: boolean;
82
+ } | {
83
+ oneofKind: undefined;
84
+ };
85
+ }
86
+ // System Events
87
+
88
+ /**
89
+ * @generated from protobuf message resources.notifications.SystemEvent
90
+ */
91
+ export interface SystemEvent {
92
+ }
93
+ // @generated message type with reflection information, may provide speed optimized methods
94
+ class UserEvent$Type extends MessageType<UserEvent> {
95
+ constructor() {
96
+ super("resources.notifications.UserEvent", [
97
+ { no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ },
98
+ { no: 2, name: "notification", kind: "message", oneof: "data", T: () => Notification },
99
+ { no: 3, name: "notifications_read_count", kind: "scalar", oneof: "data", T: 5 /*ScalarType.INT32*/ }
100
+ ]);
101
+ }
102
+ create(value?: PartialMessage<UserEvent>): UserEvent {
103
+ const message = globalThis.Object.create((this.messagePrototype!));
104
+ message.data = { oneofKind: undefined };
105
+ if (value !== undefined)
106
+ reflectionMergePartial<UserEvent>(this, message, value);
107
+ return message;
108
+ }
109
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserEvent): UserEvent {
110
+ let message = target ?? this.create(), end = reader.pos + length;
111
+ while (reader.pos < end) {
112
+ let [fieldNo, wireType] = reader.tag();
113
+ switch (fieldNo) {
114
+ case /* bool refresh_token */ 1:
115
+ message.data = {
116
+ oneofKind: "refreshToken",
117
+ refreshToken: reader.bool()
118
+ };
119
+ break;
120
+ case /* resources.notifications.Notification notification */ 2:
121
+ message.data = {
122
+ oneofKind: "notification",
123
+ notification: Notification.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).notification)
124
+ };
125
+ break;
126
+ case /* int32 notifications_read_count */ 3:
127
+ message.data = {
128
+ oneofKind: "notificationsReadCount",
129
+ notificationsReadCount: reader.int32()
130
+ };
131
+ break;
132
+ default:
133
+ let u = options.readUnknownField;
134
+ if (u === "throw")
135
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
136
+ let d = reader.skip(wireType);
137
+ if (u !== false)
138
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
139
+ }
140
+ }
141
+ return message;
142
+ }
143
+ internalBinaryWrite(message: UserEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
144
+ /* bool refresh_token = 1; */
145
+ if (message.data.oneofKind === "refreshToken")
146
+ writer.tag(1, WireType.Varint).bool(message.data.refreshToken);
147
+ /* resources.notifications.Notification notification = 2; */
148
+ if (message.data.oneofKind === "notification")
149
+ Notification.internalBinaryWrite(message.data.notification, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
150
+ /* int32 notifications_read_count = 3; */
151
+ if (message.data.oneofKind === "notificationsReadCount")
152
+ writer.tag(3, WireType.Varint).int32(message.data.notificationsReadCount);
153
+ let u = options.writeUnknownFields;
154
+ if (u !== false)
155
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
156
+ return writer;
157
+ }
158
+ }
159
+ /**
160
+ * @generated MessageType for protobuf message resources.notifications.UserEvent
161
+ */
162
+ export const UserEvent = new UserEvent$Type();
163
+ // @generated message type with reflection information, may provide speed optimized methods
164
+ class JobEvent$Type extends MessageType<JobEvent> {
165
+ constructor() {
166
+ super("resources.notifications.JobEvent", [
167
+ { no: 1, name: "job_props", kind: "message", oneof: "data", T: () => JobProps }
168
+ ]);
169
+ }
170
+ create(value?: PartialMessage<JobEvent>): JobEvent {
171
+ const message = globalThis.Object.create((this.messagePrototype!));
172
+ message.data = { oneofKind: undefined };
173
+ if (value !== undefined)
174
+ reflectionMergePartial<JobEvent>(this, message, value);
175
+ return message;
176
+ }
177
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobEvent): JobEvent {
178
+ let message = target ?? this.create(), end = reader.pos + length;
179
+ while (reader.pos < end) {
180
+ let [fieldNo, wireType] = reader.tag();
181
+ switch (fieldNo) {
182
+ case /* resources.users.JobProps job_props */ 1:
183
+ message.data = {
184
+ oneofKind: "jobProps",
185
+ jobProps: JobProps.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).jobProps)
186
+ };
187
+ break;
188
+ default:
189
+ let u = options.readUnknownField;
190
+ if (u === "throw")
191
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
192
+ let d = reader.skip(wireType);
193
+ if (u !== false)
194
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
195
+ }
196
+ }
197
+ return message;
198
+ }
199
+ internalBinaryWrite(message: JobEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
200
+ /* resources.users.JobProps job_props = 1; */
201
+ if (message.data.oneofKind === "jobProps")
202
+ JobProps.internalBinaryWrite(message.data.jobProps, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
203
+ let u = options.writeUnknownFields;
204
+ if (u !== false)
205
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
206
+ return writer;
207
+ }
208
+ }
209
+ /**
210
+ * @generated MessageType for protobuf message resources.notifications.JobEvent
211
+ */
212
+ export const JobEvent = new JobEvent$Type();
213
+ // @generated message type with reflection information, may provide speed optimized methods
214
+ class JobGradeEvent$Type extends MessageType<JobGradeEvent> {
215
+ constructor() {
216
+ super("resources.notifications.JobGradeEvent", [
217
+ { no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ }
218
+ ]);
219
+ }
220
+ create(value?: PartialMessage<JobGradeEvent>): JobGradeEvent {
221
+ const message = globalThis.Object.create((this.messagePrototype!));
222
+ message.data = { oneofKind: undefined };
223
+ if (value !== undefined)
224
+ reflectionMergePartial<JobGradeEvent>(this, message, value);
225
+ return message;
226
+ }
227
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobGradeEvent): JobGradeEvent {
228
+ let message = target ?? this.create(), end = reader.pos + length;
229
+ while (reader.pos < end) {
230
+ let [fieldNo, wireType] = reader.tag();
231
+ switch (fieldNo) {
232
+ case /* bool refresh_token */ 1:
233
+ message.data = {
234
+ oneofKind: "refreshToken",
235
+ refreshToken: reader.bool()
236
+ };
237
+ break;
238
+ default:
239
+ let u = options.readUnknownField;
240
+ if (u === "throw")
241
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
242
+ let d = reader.skip(wireType);
243
+ if (u !== false)
244
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
245
+ }
246
+ }
247
+ return message;
248
+ }
249
+ internalBinaryWrite(message: JobGradeEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
250
+ /* bool refresh_token = 1; */
251
+ if (message.data.oneofKind === "refreshToken")
252
+ writer.tag(1, WireType.Varint).bool(message.data.refreshToken);
253
+ let u = options.writeUnknownFields;
254
+ if (u !== false)
255
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
256
+ return writer;
257
+ }
258
+ }
259
+ /**
260
+ * @generated MessageType for protobuf message resources.notifications.JobGradeEvent
261
+ */
262
+ export const JobGradeEvent = new JobGradeEvent$Type();
263
+ // @generated message type with reflection information, may provide speed optimized methods
264
+ class SystemEvent$Type extends MessageType<SystemEvent> {
265
+ constructor() {
266
+ super("resources.notifications.SystemEvent", []);
267
+ }
268
+ create(value?: PartialMessage<SystemEvent>): SystemEvent {
269
+ const message = globalThis.Object.create((this.messagePrototype!));
270
+ if (value !== undefined)
271
+ reflectionMergePartial<SystemEvent>(this, message, value);
272
+ return message;
273
+ }
274
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SystemEvent): SystemEvent {
275
+ return target ?? this.create();
276
+ }
277
+ internalBinaryWrite(message: SystemEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
278
+ let u = options.writeUnknownFields;
279
+ if (u !== false)
280
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
281
+ return writer;
282
+ }
283
+ }
284
+ /**
285
+ * @generated MessageType for protobuf message resources.notifications.SystemEvent
286
+ */
287
+ export const SystemEvent = new SystemEvent$Type();