@fivenet-app/gen 2026.5.0 → 2026.7.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.
- package/clients.ts +6 -0
- package/codegen/perms/perms.ts +74 -40
- package/codegen/sanitizer/sanitizer.ts +6 -0
- package/google/protobuf/descriptor.ts +11 -3
- package/google/protobuf/timestamp.ts +7 -6
- package/package.json +1 -1
- package/perms.ts +387 -41
- package/resources/access/access.ts +481 -0
- package/resources/accounts/accounts.ts +41 -30
- package/resources/audit/audit.ts +5 -1
- package/resources/calendar/access/access.ts +0 -330
- package/resources/calendar/calendar.ts +307 -25
- package/resources/calendar/entries/entries.ts +204 -11
- package/resources/centrum/units/access/access.ts +0 -373
- package/resources/centrum/units/units.ts +20 -8
- package/resources/citizens/labels/access.ts +0 -191
- package/resources/citizens/labels/labels.ts +20 -8
- package/resources/common/content/diff_activity.ts +1 -1
- package/resources/cron/cron.ts +1 -1
- package/resources/documents/access/access.ts +0 -329
- package/resources/documents/activity/activity.ts +49 -45
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests/requests.ts +1 -1
- package/resources/documents/stamps/stamp.ts +40 -210
- package/resources/documents/templates/templates.ts +158 -318
- package/resources/jobs/colleagues/activity/activity.ts +2 -2
- package/resources/jobs/conduct/conduct.ts +2 -2
- package/resources/jobs/jobs.ts +22 -0
- package/resources/jobs/labels/labels.ts +9 -9
- package/resources/laws/laws.ts +96 -50
- package/resources/livemap/markers/marker_marker.ts +311 -4
- package/resources/mailer/access/access.ts +0 -457
- package/resources/mailer/emails/email.ts +4 -4
- package/resources/notifications/events/events.ts +18 -1
- package/resources/permissions/attributes/attributes.ts +51 -39
- package/resources/permissions/permissions/permissions.ts +46 -34
- package/resources/qualifications/access/access.ts +0 -248
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/settings/config.ts +53 -5
- package/resources/settings/data.ts +1 -1
- package/resources/stats/stats.ts +32 -20
- package/resources/sync/data/data.ts +22 -10
- package/resources/userinfo/userinfo.ts +202 -51
- package/resources/users/activity/activity.ts +70 -77
- package/resources/wiki/access/access.ts +0 -330
- package/resources/wiki/activity/activity.ts +45 -45
- package/resources/wiki/page.ts +9 -9
- package/services/auth/auth.ts +1 -1
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +13 -2
- package/services/centrum/dispatches.ts +32 -12
- package/services/centrum/units.client.ts +15 -2
- package/services/centrum/units.ts +237 -129
- package/services/citizens/citizens.ts +1 -1
- package/services/citizens/labels.client.ts +13 -0
- package/services/citizens/labels.ts +135 -4
- package/services/completor/completor.client.ts +0 -13
- package/services/completor/completor.ts +2 -116
- package/services/documents/approval.ts +20 -9
- package/services/documents/categories.ts +1 -1
- package/services/documents/collab.ts +1 -1
- package/services/documents/comments.ts +4 -4
- package/services/documents/documents.ts +38 -38
- package/services/documents/stats.ts +14 -2
- package/services/documents/templates.ts +1 -1
- package/services/filestore/filestore.ts +4 -4
- package/services/jobs/colleagues.ts +4 -4
- package/services/jobs/conduct.ts +2 -2
- package/services/jobs/groups.client.ts +22 -0
- package/services/jobs/groups.ts +9 -0
- package/services/jobs/timeclock.ts +2 -2
- package/services/mailer/settings.ts +1 -1
- package/services/mailer/thread.ts +3 -3
- package/services/qualifications/exam.ts +5 -5
- package/services/qualifications/qualifications.ts +52 -34
- package/services/settings/accounts.ts +19 -6
- package/services/settings/config.ts +2 -2
- package/services/settings/cron.ts +2 -2
- package/services/settings/laws.client.ts +44 -5
- package/services/settings/laws.ts +357 -4
- package/services/settings/system.ts +6 -6
- package/services/sync/sync.client.ts +42 -14
- package/services/sync/sync.ts +162 -13
- package/services/wiki/collab.ts +1 -1
- package/services/wiki/wiki.client.ts +15 -2
- package/services/wiki/wiki.ts +122 -0
- package/svcs.ts +19 -1
|
@@ -2,130 +2,6 @@
|
|
|
2
2
|
// @generated from protobuf file "resources/mailer/access/access.proto" (package "resources.mailer.access", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import { QualificationShort } from "../../qualifications/qualifications";
|
|
15
|
-
import { UserShort } from "../../users/short/user";
|
|
16
|
-
import { Timestamp } from "../../timestamp/timestamp";
|
|
17
|
-
/**
|
|
18
|
-
* @generated from protobuf message resources.mailer.access.Access
|
|
19
|
-
*/
|
|
20
|
-
export interface Access {
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf field: repeated resources.mailer.access.JobAccess jobs = 1
|
|
23
|
-
*/
|
|
24
|
-
jobs: JobAccess[];
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: repeated resources.mailer.access.UserAccess users = 2
|
|
27
|
-
*/
|
|
28
|
-
users: UserAccess[];
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: repeated resources.mailer.access.QualificationAccess qualifications = 3
|
|
31
|
-
*/
|
|
32
|
-
qualifications: QualificationAccess[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf message resources.mailer.access.JobAccess
|
|
36
|
-
*/
|
|
37
|
-
export interface JobAccess {
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf field: int64 id = 1
|
|
40
|
-
*/
|
|
41
|
-
id: number;
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
44
|
-
*/
|
|
45
|
-
createdAt?: Timestamp;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf field: int64 target_id = 3
|
|
48
|
-
*/
|
|
49
|
-
targetId: number;
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf field: string job = 4
|
|
52
|
-
*/
|
|
53
|
-
job: string;
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf field: optional string job_label = 5
|
|
56
|
-
*/
|
|
57
|
-
jobLabel?: string;
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf field: int32 minimum_grade = 6
|
|
60
|
-
*/
|
|
61
|
-
minimumGrade: number;
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf field: optional string job_grade_label = 7
|
|
64
|
-
*/
|
|
65
|
-
jobGradeLabel?: string;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: resources.mailer.access.AccessLevel access = 8
|
|
68
|
-
*/
|
|
69
|
-
access: AccessLevel;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf message resources.mailer.access.UserAccess
|
|
73
|
-
*/
|
|
74
|
-
export interface UserAccess {
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf field: int64 id = 1
|
|
77
|
-
*/
|
|
78
|
-
id: number;
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
81
|
-
*/
|
|
82
|
-
createdAt?: Timestamp;
|
|
83
|
-
/**
|
|
84
|
-
* @generated from protobuf field: int64 target_id = 3
|
|
85
|
-
*/
|
|
86
|
-
targetId: number;
|
|
87
|
-
/**
|
|
88
|
-
* @generated from protobuf field: int32 user_id = 4
|
|
89
|
-
*/
|
|
90
|
-
userId: number;
|
|
91
|
-
/**
|
|
92
|
-
* @generated from protobuf field: optional resources.users.short.UserShort user = 5
|
|
93
|
-
*/
|
|
94
|
-
user?: UserShort;
|
|
95
|
-
/**
|
|
96
|
-
* @generated from protobuf field: resources.mailer.access.AccessLevel access = 6
|
|
97
|
-
*/
|
|
98
|
-
access: AccessLevel;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @generated from protobuf message resources.mailer.access.QualificationAccess
|
|
102
|
-
*/
|
|
103
|
-
export interface QualificationAccess {
|
|
104
|
-
/**
|
|
105
|
-
* @generated from protobuf field: int64 id = 1
|
|
106
|
-
*/
|
|
107
|
-
id: number;
|
|
108
|
-
/**
|
|
109
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
110
|
-
*/
|
|
111
|
-
createdAt?: Timestamp;
|
|
112
|
-
/**
|
|
113
|
-
* @generated from protobuf field: int64 target_id = 3
|
|
114
|
-
*/
|
|
115
|
-
targetId: number;
|
|
116
|
-
/**
|
|
117
|
-
* @generated from protobuf field: int64 qualification_id = 4
|
|
118
|
-
*/
|
|
119
|
-
qualificationId: number;
|
|
120
|
-
/**
|
|
121
|
-
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5
|
|
122
|
-
*/
|
|
123
|
-
qualification?: QualificationShort;
|
|
124
|
-
/**
|
|
125
|
-
* @generated from protobuf field: resources.mailer.access.AccessLevel access = 6
|
|
126
|
-
*/
|
|
127
|
-
access: AccessLevel;
|
|
128
|
-
}
|
|
129
5
|
/**
|
|
130
6
|
* @generated from protobuf enum resources.mailer.access.AccessLevel
|
|
131
7
|
*/
|
|
@@ -151,336 +27,3 @@ export enum AccessLevel {
|
|
|
151
27
|
*/
|
|
152
28
|
MANAGE = 4
|
|
153
29
|
}
|
|
154
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
155
|
-
class Access$Type extends MessageType<Access> {
|
|
156
|
-
constructor() {
|
|
157
|
-
super("resources.mailer.access.Access", [
|
|
158
|
-
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"job_access\"" } },
|
|
159
|
-
{ no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"user_access\"" } },
|
|
160
|
-
{ no: 3, name: "qualifications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"qualification_access\"" } }
|
|
161
|
-
]);
|
|
162
|
-
}
|
|
163
|
-
create(value?: PartialMessage<Access>): Access {
|
|
164
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
165
|
-
message.jobs = [];
|
|
166
|
-
message.users = [];
|
|
167
|
-
message.qualifications = [];
|
|
168
|
-
if (value !== undefined)
|
|
169
|
-
reflectionMergePartial<Access>(this, message, value);
|
|
170
|
-
return message;
|
|
171
|
-
}
|
|
172
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Access): Access {
|
|
173
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
174
|
-
while (reader.pos < end) {
|
|
175
|
-
let [fieldNo, wireType] = reader.tag();
|
|
176
|
-
switch (fieldNo) {
|
|
177
|
-
case /* repeated resources.mailer.access.JobAccess jobs */ 1:
|
|
178
|
-
message.jobs.push(JobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
179
|
-
break;
|
|
180
|
-
case /* repeated resources.mailer.access.UserAccess users */ 2:
|
|
181
|
-
message.users.push(UserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
182
|
-
break;
|
|
183
|
-
case /* repeated resources.mailer.access.QualificationAccess qualifications */ 3:
|
|
184
|
-
message.qualifications.push(QualificationAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
185
|
-
break;
|
|
186
|
-
default:
|
|
187
|
-
let u = options.readUnknownField;
|
|
188
|
-
if (u === "throw")
|
|
189
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
190
|
-
let d = reader.skip(wireType);
|
|
191
|
-
if (u !== false)
|
|
192
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return message;
|
|
196
|
-
}
|
|
197
|
-
internalBinaryWrite(message: Access, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
198
|
-
/* repeated resources.mailer.access.JobAccess jobs = 1; */
|
|
199
|
-
for (let i = 0; i < message.jobs.length; i++)
|
|
200
|
-
JobAccess.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
201
|
-
/* repeated resources.mailer.access.UserAccess users = 2; */
|
|
202
|
-
for (let i = 0; i < message.users.length; i++)
|
|
203
|
-
UserAccess.internalBinaryWrite(message.users[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
204
|
-
/* repeated resources.mailer.access.QualificationAccess qualifications = 3; */
|
|
205
|
-
for (let i = 0; i < message.qualifications.length; i++)
|
|
206
|
-
QualificationAccess.internalBinaryWrite(message.qualifications[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
207
|
-
let u = options.writeUnknownFields;
|
|
208
|
-
if (u !== false)
|
|
209
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
210
|
-
return writer;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @generated MessageType for protobuf message resources.mailer.access.Access
|
|
215
|
-
*/
|
|
216
|
-
export const Access = new Access$Type();
|
|
217
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
218
|
-
class JobAccess$Type extends MessageType<JobAccess> {
|
|
219
|
-
constructor() {
|
|
220
|
-
super("resources.mailer.access.JobAccess", [
|
|
221
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
222
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
223
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
224
|
-
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
225
|
-
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
226
|
-
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
227
|
-
{ no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
228
|
-
{ no: 8, name: "access", kind: "enum", T: () => ["resources.mailer.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
229
|
-
]);
|
|
230
|
-
}
|
|
231
|
-
create(value?: PartialMessage<JobAccess>): JobAccess {
|
|
232
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
233
|
-
message.id = 0;
|
|
234
|
-
message.targetId = 0;
|
|
235
|
-
message.job = "";
|
|
236
|
-
message.minimumGrade = 0;
|
|
237
|
-
message.access = 0;
|
|
238
|
-
if (value !== undefined)
|
|
239
|
-
reflectionMergePartial<JobAccess>(this, message, value);
|
|
240
|
-
return message;
|
|
241
|
-
}
|
|
242
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobAccess): JobAccess {
|
|
243
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
244
|
-
while (reader.pos < end) {
|
|
245
|
-
let [fieldNo, wireType] = reader.tag();
|
|
246
|
-
switch (fieldNo) {
|
|
247
|
-
case /* int64 id */ 1:
|
|
248
|
-
message.id = reader.int64().toNumber();
|
|
249
|
-
break;
|
|
250
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
251
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
252
|
-
break;
|
|
253
|
-
case /* int64 target_id */ 3:
|
|
254
|
-
message.targetId = reader.int64().toNumber();
|
|
255
|
-
break;
|
|
256
|
-
case /* string job */ 4:
|
|
257
|
-
message.job = reader.string();
|
|
258
|
-
break;
|
|
259
|
-
case /* optional string job_label */ 5:
|
|
260
|
-
message.jobLabel = reader.string();
|
|
261
|
-
break;
|
|
262
|
-
case /* int32 minimum_grade */ 6:
|
|
263
|
-
message.minimumGrade = reader.int32();
|
|
264
|
-
break;
|
|
265
|
-
case /* optional string job_grade_label */ 7:
|
|
266
|
-
message.jobGradeLabel = reader.string();
|
|
267
|
-
break;
|
|
268
|
-
case /* resources.mailer.access.AccessLevel access */ 8:
|
|
269
|
-
message.access = reader.int32();
|
|
270
|
-
break;
|
|
271
|
-
default:
|
|
272
|
-
let u = options.readUnknownField;
|
|
273
|
-
if (u === "throw")
|
|
274
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
275
|
-
let d = reader.skip(wireType);
|
|
276
|
-
if (u !== false)
|
|
277
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
return message;
|
|
281
|
-
}
|
|
282
|
-
internalBinaryWrite(message: JobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
283
|
-
/* int64 id = 1; */
|
|
284
|
-
if (message.id !== 0)
|
|
285
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
286
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
287
|
-
if (message.createdAt)
|
|
288
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
289
|
-
/* int64 target_id = 3; */
|
|
290
|
-
if (message.targetId !== 0)
|
|
291
|
-
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
292
|
-
/* string job = 4; */
|
|
293
|
-
if (message.job !== "")
|
|
294
|
-
writer.tag(4, WireType.LengthDelimited).string(message.job);
|
|
295
|
-
/* optional string job_label = 5; */
|
|
296
|
-
if (message.jobLabel !== undefined)
|
|
297
|
-
writer.tag(5, WireType.LengthDelimited).string(message.jobLabel);
|
|
298
|
-
/* int32 minimum_grade = 6; */
|
|
299
|
-
if (message.minimumGrade !== 0)
|
|
300
|
-
writer.tag(6, WireType.Varint).int32(message.minimumGrade);
|
|
301
|
-
/* optional string job_grade_label = 7; */
|
|
302
|
-
if (message.jobGradeLabel !== undefined)
|
|
303
|
-
writer.tag(7, WireType.LengthDelimited).string(message.jobGradeLabel);
|
|
304
|
-
/* resources.mailer.access.AccessLevel access = 8; */
|
|
305
|
-
if (message.access !== 0)
|
|
306
|
-
writer.tag(8, WireType.Varint).int32(message.access);
|
|
307
|
-
let u = options.writeUnknownFields;
|
|
308
|
-
if (u !== false)
|
|
309
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
310
|
-
return writer;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* @generated MessageType for protobuf message resources.mailer.access.JobAccess
|
|
315
|
-
*/
|
|
316
|
-
export const JobAccess = new JobAccess$Type();
|
|
317
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
318
|
-
class UserAccess$Type extends MessageType<UserAccess> {
|
|
319
|
-
constructor() {
|
|
320
|
-
super("resources.mailer.access.UserAccess", [
|
|
321
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
322
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
323
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
324
|
-
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
325
|
-
{ no: 5, name: "user", kind: "message", T: () => UserShort },
|
|
326
|
-
{ no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
327
|
-
]);
|
|
328
|
-
}
|
|
329
|
-
create(value?: PartialMessage<UserAccess>): UserAccess {
|
|
330
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
331
|
-
message.id = 0;
|
|
332
|
-
message.targetId = 0;
|
|
333
|
-
message.userId = 0;
|
|
334
|
-
message.access = 0;
|
|
335
|
-
if (value !== undefined)
|
|
336
|
-
reflectionMergePartial<UserAccess>(this, message, value);
|
|
337
|
-
return message;
|
|
338
|
-
}
|
|
339
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserAccess): UserAccess {
|
|
340
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
341
|
-
while (reader.pos < end) {
|
|
342
|
-
let [fieldNo, wireType] = reader.tag();
|
|
343
|
-
switch (fieldNo) {
|
|
344
|
-
case /* int64 id */ 1:
|
|
345
|
-
message.id = reader.int64().toNumber();
|
|
346
|
-
break;
|
|
347
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
348
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
349
|
-
break;
|
|
350
|
-
case /* int64 target_id */ 3:
|
|
351
|
-
message.targetId = reader.int64().toNumber();
|
|
352
|
-
break;
|
|
353
|
-
case /* int32 user_id */ 4:
|
|
354
|
-
message.userId = reader.int32();
|
|
355
|
-
break;
|
|
356
|
-
case /* optional resources.users.short.UserShort user */ 5:
|
|
357
|
-
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
358
|
-
break;
|
|
359
|
-
case /* resources.mailer.access.AccessLevel access */ 6:
|
|
360
|
-
message.access = reader.int32();
|
|
361
|
-
break;
|
|
362
|
-
default:
|
|
363
|
-
let u = options.readUnknownField;
|
|
364
|
-
if (u === "throw")
|
|
365
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
366
|
-
let d = reader.skip(wireType);
|
|
367
|
-
if (u !== false)
|
|
368
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return message;
|
|
372
|
-
}
|
|
373
|
-
internalBinaryWrite(message: UserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
374
|
-
/* int64 id = 1; */
|
|
375
|
-
if (message.id !== 0)
|
|
376
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
377
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
378
|
-
if (message.createdAt)
|
|
379
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
380
|
-
/* int64 target_id = 3; */
|
|
381
|
-
if (message.targetId !== 0)
|
|
382
|
-
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
383
|
-
/* int32 user_id = 4; */
|
|
384
|
-
if (message.userId !== 0)
|
|
385
|
-
writer.tag(4, WireType.Varint).int32(message.userId);
|
|
386
|
-
/* optional resources.users.short.UserShort user = 5; */
|
|
387
|
-
if (message.user)
|
|
388
|
-
UserShort.internalBinaryWrite(message.user, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
389
|
-
/* resources.mailer.access.AccessLevel access = 6; */
|
|
390
|
-
if (message.access !== 0)
|
|
391
|
-
writer.tag(6, WireType.Varint).int32(message.access);
|
|
392
|
-
let u = options.writeUnknownFields;
|
|
393
|
-
if (u !== false)
|
|
394
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
395
|
-
return writer;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* @generated MessageType for protobuf message resources.mailer.access.UserAccess
|
|
400
|
-
*/
|
|
401
|
-
export const UserAccess = new UserAccess$Type();
|
|
402
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
403
|
-
class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
404
|
-
constructor() {
|
|
405
|
-
super("resources.mailer.access.QualificationAccess", [
|
|
406
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
407
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
408
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
409
|
-
{ no: 4, name: "qualification_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
410
|
-
{ no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
411
|
-
{ no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
412
|
-
]);
|
|
413
|
-
}
|
|
414
|
-
create(value?: PartialMessage<QualificationAccess>): QualificationAccess {
|
|
415
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
416
|
-
message.id = 0;
|
|
417
|
-
message.targetId = 0;
|
|
418
|
-
message.qualificationId = 0;
|
|
419
|
-
message.access = 0;
|
|
420
|
-
if (value !== undefined)
|
|
421
|
-
reflectionMergePartial<QualificationAccess>(this, message, value);
|
|
422
|
-
return message;
|
|
423
|
-
}
|
|
424
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationAccess): QualificationAccess {
|
|
425
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
426
|
-
while (reader.pos < end) {
|
|
427
|
-
let [fieldNo, wireType] = reader.tag();
|
|
428
|
-
switch (fieldNo) {
|
|
429
|
-
case /* int64 id */ 1:
|
|
430
|
-
message.id = reader.int64().toNumber();
|
|
431
|
-
break;
|
|
432
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
433
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
434
|
-
break;
|
|
435
|
-
case /* int64 target_id */ 3:
|
|
436
|
-
message.targetId = reader.int64().toNumber();
|
|
437
|
-
break;
|
|
438
|
-
case /* int64 qualification_id */ 4:
|
|
439
|
-
message.qualificationId = reader.int64().toNumber();
|
|
440
|
-
break;
|
|
441
|
-
case /* optional resources.qualifications.QualificationShort qualification */ 5:
|
|
442
|
-
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
443
|
-
break;
|
|
444
|
-
case /* resources.mailer.access.AccessLevel access */ 6:
|
|
445
|
-
message.access = reader.int32();
|
|
446
|
-
break;
|
|
447
|
-
default:
|
|
448
|
-
let u = options.readUnknownField;
|
|
449
|
-
if (u === "throw")
|
|
450
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
451
|
-
let d = reader.skip(wireType);
|
|
452
|
-
if (u !== false)
|
|
453
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
return message;
|
|
457
|
-
}
|
|
458
|
-
internalBinaryWrite(message: QualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
459
|
-
/* int64 id = 1; */
|
|
460
|
-
if (message.id !== 0)
|
|
461
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
462
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
463
|
-
if (message.createdAt)
|
|
464
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
465
|
-
/* int64 target_id = 3; */
|
|
466
|
-
if (message.targetId !== 0)
|
|
467
|
-
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
468
|
-
/* int64 qualification_id = 4; */
|
|
469
|
-
if (message.qualificationId !== 0)
|
|
470
|
-
writer.tag(4, WireType.Varint).int64(message.qualificationId);
|
|
471
|
-
/* optional resources.qualifications.QualificationShort qualification = 5; */
|
|
472
|
-
if (message.qualification)
|
|
473
|
-
QualificationShort.internalBinaryWrite(message.qualification, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
474
|
-
/* resources.mailer.access.AccessLevel access = 6; */
|
|
475
|
-
if (message.access !== 0)
|
|
476
|
-
writer.tag(6, WireType.Varint).int32(message.access);
|
|
477
|
-
let u = options.writeUnknownFields;
|
|
478
|
-
if (u !== false)
|
|
479
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
480
|
-
return writer;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* @generated MessageType for protobuf message resources.mailer.access.QualificationAccess
|
|
485
|
-
*/
|
|
486
|
-
export const QualificationAccess = new QualificationAccess$Type();
|
|
@@ -12,7 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
14
|
import { EmailSettings } from "../settings/settings";
|
|
15
|
-
import { Access } from "
|
|
15
|
+
import { Access } from "../../access/access";
|
|
16
16
|
import { UserShort } from "../../users/short/user";
|
|
17
17
|
import { Timestamp } from "../../timestamp/timestamp";
|
|
18
18
|
/**
|
|
@@ -64,7 +64,7 @@ export interface Email {
|
|
|
64
64
|
*/
|
|
65
65
|
label?: string;
|
|
66
66
|
/**
|
|
67
|
-
* @generated from protobuf field: resources.
|
|
67
|
+
* @generated from protobuf field: resources.access.Access access = 12
|
|
68
68
|
*/
|
|
69
69
|
access?: Access;
|
|
70
70
|
/**
|
|
@@ -138,7 +138,7 @@ class Email$Type extends MessageType<Email> {
|
|
|
138
138
|
case /* optional string label */ 11:
|
|
139
139
|
message.label = reader.string();
|
|
140
140
|
break;
|
|
141
|
-
case /* resources.
|
|
141
|
+
case /* resources.access.Access access */ 12:
|
|
142
142
|
message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
143
143
|
break;
|
|
144
144
|
case /* optional resources.mailer.settings.EmailSettings settings */ 13:
|
|
@@ -189,7 +189,7 @@ class Email$Type extends MessageType<Email> {
|
|
|
189
189
|
/* optional string label = 11; */
|
|
190
190
|
if (message.label !== undefined)
|
|
191
191
|
writer.tag(11, WireType.LengthDelimited).string(message.label);
|
|
192
|
-
/* resources.
|
|
192
|
+
/* resources.access.Access access = 12; */
|
|
193
193
|
if (message.access)
|
|
194
194
|
Access.internalBinaryWrite(message.access, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
195
195
|
/* optional resources.mailer.settings.EmailSettings settings = 13; */
|
|
@@ -13,6 +13,7 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
14
|
import { ClientConfig } from "../../clientconfig/clientconfig";
|
|
15
15
|
import { JobProps } from "../../jobs/props/props";
|
|
16
|
+
import { AccountGroupsChanged } from "../../userinfo/userinfo";
|
|
16
17
|
import { UserInfoChanged } from "../../userinfo/userinfo";
|
|
17
18
|
import { Notification } from "../notifications";
|
|
18
19
|
/**
|
|
@@ -50,6 +51,12 @@ export interface UserEvent {
|
|
|
50
51
|
* @generated from protobuf field: resources.userinfo.UserInfoChanged user_info_changed = 4
|
|
51
52
|
*/
|
|
52
53
|
userInfoChanged: UserInfoChanged;
|
|
54
|
+
} | {
|
|
55
|
+
oneofKind: "accountGroupsChanged";
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: resources.userinfo.AccountGroupsChanged account_groups_changed = 5
|
|
58
|
+
*/
|
|
59
|
+
accountGroupsChanged: AccountGroupsChanged;
|
|
53
60
|
} | {
|
|
54
61
|
oneofKind: undefined;
|
|
55
62
|
};
|
|
@@ -120,7 +127,8 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
120
127
|
{ no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ },
|
|
121
128
|
{ no: 2, name: "notification", kind: "message", oneof: "data", T: () => Notification },
|
|
122
129
|
{ no: 3, name: "notifications_read_count", kind: "scalar", oneof: "data", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
123
|
-
{ no: 4, name: "user_info_changed", kind: "message", oneof: "data", T: () => UserInfoChanged }
|
|
130
|
+
{ no: 4, name: "user_info_changed", kind: "message", oneof: "data", T: () => UserInfoChanged },
|
|
131
|
+
{ no: 5, name: "account_groups_changed", kind: "message", oneof: "data", T: () => AccountGroupsChanged }
|
|
124
132
|
]);
|
|
125
133
|
}
|
|
126
134
|
create(value?: PartialMessage<UserEvent>): UserEvent {
|
|
@@ -159,6 +167,12 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
159
167
|
userInfoChanged: UserInfoChanged.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).userInfoChanged)
|
|
160
168
|
};
|
|
161
169
|
break;
|
|
170
|
+
case /* resources.userinfo.AccountGroupsChanged account_groups_changed */ 5:
|
|
171
|
+
message.data = {
|
|
172
|
+
oneofKind: "accountGroupsChanged",
|
|
173
|
+
accountGroupsChanged: AccountGroupsChanged.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accountGroupsChanged)
|
|
174
|
+
};
|
|
175
|
+
break;
|
|
162
176
|
default:
|
|
163
177
|
let u = options.readUnknownField;
|
|
164
178
|
if (u === "throw")
|
|
@@ -183,6 +197,9 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
183
197
|
/* resources.userinfo.UserInfoChanged user_info_changed = 4; */
|
|
184
198
|
if (message.data.oneofKind === "userInfoChanged")
|
|
185
199
|
UserInfoChanged.internalBinaryWrite(message.data.userInfoChanged, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
200
|
+
/* resources.userinfo.AccountGroupsChanged account_groups_changed = 5; */
|
|
201
|
+
if (message.data.oneofKind === "accountGroupsChanged")
|
|
202
|
+
AccountGroupsChanged.internalBinaryWrite(message.data.accountGroupsChanged, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
186
203
|
let u = options.writeUnknownFields;
|
|
187
204
|
if (u !== false)
|
|
188
205
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|