@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,275 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/qualifications/access.proto" (package "resources.qualifications", 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.qualifications.QualificationAccess
16
+ */
17
+ export interface QualificationAccess {
18
+ /**
19
+ * @generated from protobuf field: repeated resources.qualifications.QualificationJobAccess jobs = 1;
20
+ */
21
+ jobs: QualificationJobAccess[];
22
+ }
23
+ /**
24
+ * @generated from protobuf message resources.qualifications.QualificationJobAccess
25
+ */
26
+ export interface QualificationJobAccess {
27
+ /**
28
+ * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
29
+ */
30
+ id: string; // @gotags: sql:"primary_key" alias:"id"
31
+ /**
32
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
33
+ */
34
+ createdAt?: Timestamp;
35
+ /**
36
+ * @generated from protobuf field: uint64 target_id = 4 [jstype = JS_STRING];
37
+ */
38
+ targetId: string; // @gotags: alias:"qualification_id"
39
+ /**
40
+ * @generated from protobuf field: string job = 5;
41
+ */
42
+ job: string;
43
+ /**
44
+ * @generated from protobuf field: optional string job_label = 6;
45
+ */
46
+ jobLabel?: string;
47
+ /**
48
+ * @generated from protobuf field: int32 minimum_grade = 7;
49
+ */
50
+ minimumGrade: number;
51
+ /**
52
+ * @generated from protobuf field: optional string job_grade_label = 8;
53
+ */
54
+ jobGradeLabel?: string;
55
+ /**
56
+ * @generated from protobuf field: resources.qualifications.AccessLevel access = 9;
57
+ */
58
+ access: AccessLevel;
59
+ }
60
+ /**
61
+ * Dummy - DO NOT USE!
62
+ *
63
+ * @generated from protobuf message resources.qualifications.QualificationUserAccess
64
+ */
65
+ export interface QualificationUserAccess {
66
+ }
67
+ /**
68
+ * @generated from protobuf enum resources.qualifications.AccessLevel
69
+ */
70
+ export enum AccessLevel {
71
+ /**
72
+ * @generated from protobuf enum value: ACCESS_LEVEL_UNSPECIFIED = 0;
73
+ */
74
+ UNSPECIFIED = 0,
75
+ /**
76
+ * @generated from protobuf enum value: ACCESS_LEVEL_BLOCKED = 1;
77
+ */
78
+ BLOCKED = 1,
79
+ /**
80
+ * @generated from protobuf enum value: ACCESS_LEVEL_VIEW = 2;
81
+ */
82
+ VIEW = 2,
83
+ /**
84
+ * @generated from protobuf enum value: ACCESS_LEVEL_REQUEST = 3;
85
+ */
86
+ REQUEST = 3,
87
+ /**
88
+ * @generated from protobuf enum value: ACCESS_LEVEL_TAKE = 4;
89
+ */
90
+ TAKE = 4,
91
+ /**
92
+ * @generated from protobuf enum value: ACCESS_LEVEL_GRADE = 5;
93
+ */
94
+ GRADE = 5,
95
+ /**
96
+ * @generated from protobuf enum value: ACCESS_LEVEL_MANAGE = 6;
97
+ */
98
+ MANAGE = 6,
99
+ /**
100
+ * @generated from protobuf enum value: ACCESS_LEVEL_EDIT = 7;
101
+ */
102
+ EDIT = 7
103
+ }
104
+ // @generated message type with reflection information, may provide speed optimized methods
105
+ class QualificationAccess$Type extends MessageType<QualificationAccess> {
106
+ constructor() {
107
+ super("resources.qualifications.QualificationAccess", [
108
+ { no: 1, name: "jobs", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => QualificationJobAccess }
109
+ ]);
110
+ }
111
+ create(value?: PartialMessage<QualificationAccess>): QualificationAccess {
112
+ const message = globalThis.Object.create((this.messagePrototype!));
113
+ message.jobs = [];
114
+ if (value !== undefined)
115
+ reflectionMergePartial<QualificationAccess>(this, message, value);
116
+ return message;
117
+ }
118
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationAccess): QualificationAccess {
119
+ let message = target ?? this.create(), end = reader.pos + length;
120
+ while (reader.pos < end) {
121
+ let [fieldNo, wireType] = reader.tag();
122
+ switch (fieldNo) {
123
+ case /* repeated resources.qualifications.QualificationJobAccess jobs */ 1:
124
+ message.jobs.push(QualificationJobAccess.internalBinaryRead(reader, reader.uint32(), options));
125
+ break;
126
+ default:
127
+ let u = options.readUnknownField;
128
+ if (u === "throw")
129
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
130
+ let d = reader.skip(wireType);
131
+ if (u !== false)
132
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
133
+ }
134
+ }
135
+ return message;
136
+ }
137
+ internalBinaryWrite(message: QualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
138
+ /* repeated resources.qualifications.QualificationJobAccess jobs = 1; */
139
+ for (let i = 0; i < message.jobs.length; i++)
140
+ QualificationJobAccess.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
141
+ let u = options.writeUnknownFields;
142
+ if (u !== false)
143
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
144
+ return writer;
145
+ }
146
+ }
147
+ /**
148
+ * @generated MessageType for protobuf message resources.qualifications.QualificationAccess
149
+ */
150
+ export const QualificationAccess = new QualificationAccess$Type();
151
+ // @generated message type with reflection information, may provide speed optimized methods
152
+ class QualificationJobAccess$Type extends MessageType<QualificationJobAccess> {
153
+ constructor() {
154
+ super("resources.qualifications.QualificationJobAccess", [
155
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
156
+ { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
157
+ { no: 4, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
158
+ { no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
159
+ { no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
160
+ { no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
161
+ { no: 8, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
162
+ { no: 9, name: "access", kind: "enum", T: () => ["resources.qualifications.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
163
+ ]);
164
+ }
165
+ create(value?: PartialMessage<QualificationJobAccess>): QualificationJobAccess {
166
+ const message = globalThis.Object.create((this.messagePrototype!));
167
+ message.id = "0";
168
+ message.targetId = "0";
169
+ message.job = "";
170
+ message.minimumGrade = 0;
171
+ message.access = 0;
172
+ if (value !== undefined)
173
+ reflectionMergePartial<QualificationJobAccess>(this, message, value);
174
+ return message;
175
+ }
176
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationJobAccess): QualificationJobAccess {
177
+ let message = target ?? this.create(), end = reader.pos + length;
178
+ while (reader.pos < end) {
179
+ let [fieldNo, wireType] = reader.tag();
180
+ switch (fieldNo) {
181
+ case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
182
+ message.id = reader.uint64().toString();
183
+ break;
184
+ case /* optional resources.timestamp.Timestamp created_at */ 2:
185
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
186
+ break;
187
+ case /* uint64 target_id = 4 [jstype = JS_STRING];*/ 4:
188
+ message.targetId = reader.uint64().toString();
189
+ break;
190
+ case /* string job */ 5:
191
+ message.job = reader.string();
192
+ break;
193
+ case /* optional string job_label */ 6:
194
+ message.jobLabel = reader.string();
195
+ break;
196
+ case /* int32 minimum_grade */ 7:
197
+ message.minimumGrade = reader.int32();
198
+ break;
199
+ case /* optional string job_grade_label */ 8:
200
+ message.jobGradeLabel = reader.string();
201
+ break;
202
+ case /* resources.qualifications.AccessLevel access */ 9:
203
+ message.access = reader.int32();
204
+ break;
205
+ default:
206
+ let u = options.readUnknownField;
207
+ if (u === "throw")
208
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
209
+ let d = reader.skip(wireType);
210
+ if (u !== false)
211
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
212
+ }
213
+ }
214
+ return message;
215
+ }
216
+ internalBinaryWrite(message: QualificationJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
217
+ /* uint64 id = 1 [jstype = JS_STRING]; */
218
+ if (message.id !== "0")
219
+ writer.tag(1, WireType.Varint).uint64(message.id);
220
+ /* optional resources.timestamp.Timestamp created_at = 2; */
221
+ if (message.createdAt)
222
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
223
+ /* uint64 target_id = 4 [jstype = JS_STRING]; */
224
+ if (message.targetId !== "0")
225
+ writer.tag(4, WireType.Varint).uint64(message.targetId);
226
+ /* string job = 5; */
227
+ if (message.job !== "")
228
+ writer.tag(5, WireType.LengthDelimited).string(message.job);
229
+ /* optional string job_label = 6; */
230
+ if (message.jobLabel !== undefined)
231
+ writer.tag(6, WireType.LengthDelimited).string(message.jobLabel);
232
+ /* int32 minimum_grade = 7; */
233
+ if (message.minimumGrade !== 0)
234
+ writer.tag(7, WireType.Varint).int32(message.minimumGrade);
235
+ /* optional string job_grade_label = 8; */
236
+ if (message.jobGradeLabel !== undefined)
237
+ writer.tag(8, WireType.LengthDelimited).string(message.jobGradeLabel);
238
+ /* resources.qualifications.AccessLevel access = 9; */
239
+ if (message.access !== 0)
240
+ writer.tag(9, WireType.Varint).int32(message.access);
241
+ let u = options.writeUnknownFields;
242
+ if (u !== false)
243
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
244
+ return writer;
245
+ }
246
+ }
247
+ /**
248
+ * @generated MessageType for protobuf message resources.qualifications.QualificationJobAccess
249
+ */
250
+ export const QualificationJobAccess = new QualificationJobAccess$Type();
251
+ // @generated message type with reflection information, may provide speed optimized methods
252
+ class QualificationUserAccess$Type extends MessageType<QualificationUserAccess> {
253
+ constructor() {
254
+ super("resources.qualifications.QualificationUserAccess", []);
255
+ }
256
+ create(value?: PartialMessage<QualificationUserAccess>): QualificationUserAccess {
257
+ const message = globalThis.Object.create((this.messagePrototype!));
258
+ if (value !== undefined)
259
+ reflectionMergePartial<QualificationUserAccess>(this, message, value);
260
+ return message;
261
+ }
262
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationUserAccess): QualificationUserAccess {
263
+ return target ?? this.create();
264
+ }
265
+ internalBinaryWrite(message: QualificationUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
266
+ let u = options.writeUnknownFields;
267
+ if (u !== false)
268
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
269
+ return writer;
270
+ }
271
+ }
272
+ /**
273
+ * @generated MessageType for protobuf message resources.qualifications.QualificationUserAccess
274
+ */
275
+ export const QualificationUserAccess = new QualificationUserAccess$Type();