@fivenet-app/gen 0.9.4-0 → 0.9.5-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 +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +2 -2
- package/perms.ts +5 -1
- package/resources/accounts/accounts.ts +1 -1
- package/resources/accounts/oauth2.ts +1 -1
- package/resources/calendar/access.ts +3 -3
- package/resources/calendar/calendar.ts +3 -1
- package/resources/centrum/access.ts +19 -4
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +11 -9
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +9 -9
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +7 -5
- package/resources/documents/activity.ts +3 -1
- package/resources/documents/category.ts +1 -1
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +3 -3
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +18 -3
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +47 -47
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +44 -11
- package/resources/internet/page.ts +194 -4
- package/resources/internet/search.ts +34 -10
- package/resources/jobs/activity.ts +3 -1
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +1 -1
- package/resources/jobs/labels.ts +1 -1
- package/resources/jobs/timeclock.ts +1 -1
- package/resources/laws/laws.ts +1 -1
- package/resources/livemap/livemap.ts +313 -294
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +4 -4
- package/resources/mailer/email.ts +1 -1
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +127 -21
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +1 -1
- package/resources/notifications/events.ts +74 -2
- package/resources/notifications/notifications.ts +3 -1
- package/resources/permissions/permissions.ts +3 -1
- package/resources/qualifications/access.ts +18 -9
- package/resources/qualifications/exam.ts +186 -4
- package/resources/qualifications/qualifications.ts +35 -7
- package/resources/rector/audit.ts +1 -1
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +1 -1
- package/resources/sync/data.ts +1 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +3 -1
- package/resources/users/job_props.ts +3 -1
- package/resources/users/job_settings.ts +47 -3
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +3 -1
- package/resources/users/licenses.ts +3 -3
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +1 -1
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +4 -8
- package/resources/wiki/activity.ts +3 -1
- package/resources/wiki/page.ts +1 -1
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +94 -17
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +43 -4
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +156 -13
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +1 -1
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +212 -17
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +13 -30
- package/services/internet/domain.ts +159 -196
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +13 -2
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +15 -2
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +29 -3
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +19 -19
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +129 -27
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +57 -5
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +15 -2
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +82 -7
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +29 -3
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +72 -7
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +7 -1
- package/services/sync/sync.ts +58 -6
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +6 -3
- package/resources/centrum/general.ts +0 -231
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/livemap/tracker.proto" (package "resources.livemap", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/access.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -45,7 +45,7 @@ export interface JobAccess {
|
|
|
45
45
|
/**
|
|
46
46
|
* @generated from protobuf field: uint64 target_id = 4;
|
|
47
47
|
*/
|
|
48
|
-
targetId: number;
|
|
48
|
+
targetId: number;
|
|
49
49
|
/**
|
|
50
50
|
* @generated from protobuf field: string job = 5;
|
|
51
51
|
*/
|
|
@@ -82,7 +82,7 @@ export interface UserAccess {
|
|
|
82
82
|
/**
|
|
83
83
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
84
84
|
*/
|
|
85
|
-
targetId: number;
|
|
85
|
+
targetId: number;
|
|
86
86
|
/**
|
|
87
87
|
* @generated from protobuf field: int32 user_id = 4;
|
|
88
88
|
*/
|
|
@@ -111,7 +111,7 @@ export interface QualificationAccess {
|
|
|
111
111
|
/**
|
|
112
112
|
* @generated from protobuf field: uint64 target_id = 3;
|
|
113
113
|
*/
|
|
114
|
-
targetId: number;
|
|
114
|
+
targetId: number;
|
|
115
115
|
/**
|
|
116
116
|
* @generated from protobuf field: uint64 qualification_id = 4;
|
|
117
117
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/email.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/events.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/message.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -71,18 +71,45 @@ export interface Message {
|
|
|
71
71
|
creatorJob?: string;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
+
* @dbscanner: json
|
|
75
|
+
*
|
|
74
76
|
* @generated from protobuf message resources.mailer.MessageData
|
|
75
77
|
*/
|
|
76
78
|
export interface MessageData {
|
|
77
79
|
/**
|
|
78
|
-
* @generated from protobuf field: repeated resources.mailer.
|
|
80
|
+
* @generated from protobuf field: repeated resources.mailer.MessageAttachment attachments = 1;
|
|
79
81
|
*/
|
|
80
|
-
|
|
82
|
+
attachments: MessageAttachment[];
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
83
|
-
* @generated from protobuf message resources.mailer.
|
|
85
|
+
* @generated from protobuf message resources.mailer.MessageAttachment
|
|
84
86
|
*/
|
|
85
|
-
export interface
|
|
87
|
+
export interface MessageAttachment {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf oneof: data
|
|
90
|
+
*/
|
|
91
|
+
data: {
|
|
92
|
+
oneofKind: "document";
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: resources.mailer.MessageAttachmentDocument document = 1;
|
|
95
|
+
*/
|
|
96
|
+
document: MessageAttachmentDocument;
|
|
97
|
+
} | {
|
|
98
|
+
oneofKind: undefined;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf message resources.mailer.MessageAttachmentDocument
|
|
103
|
+
*/
|
|
104
|
+
export interface MessageAttachmentDocument {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
107
|
+
*/
|
|
108
|
+
id: number;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf field: optional string title = 2;
|
|
111
|
+
*/
|
|
112
|
+
title?: string;
|
|
86
113
|
}
|
|
87
114
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
88
115
|
class Message$Type extends MessageType<Message> {
|
|
@@ -215,12 +242,12 @@ export const Message = new Message$Type();
|
|
|
215
242
|
class MessageData$Type extends MessageType<MessageData> {
|
|
216
243
|
constructor() {
|
|
217
244
|
super("resources.mailer.MessageData", [
|
|
218
|
-
{ no: 1, name: "
|
|
245
|
+
{ no: 1, name: "attachments", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MessageAttachment, options: { "validate.rules": { repeated: { maxItems: "3" } } } }
|
|
219
246
|
]);
|
|
220
247
|
}
|
|
221
248
|
create(value?: PartialMessage<MessageData>): MessageData {
|
|
222
249
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
223
|
-
message.
|
|
250
|
+
message.attachments = [];
|
|
224
251
|
if (value !== undefined)
|
|
225
252
|
reflectionMergePartial<MessageData>(this, message, value);
|
|
226
253
|
return message;
|
|
@@ -230,8 +257,8 @@ class MessageData$Type extends MessageType<MessageData> {
|
|
|
230
257
|
while (reader.pos < end) {
|
|
231
258
|
let [fieldNo, wireType] = reader.tag();
|
|
232
259
|
switch (fieldNo) {
|
|
233
|
-
case /* repeated resources.mailer.
|
|
234
|
-
message.
|
|
260
|
+
case /* repeated resources.mailer.MessageAttachment attachments */ 1:
|
|
261
|
+
message.attachments.push(MessageAttachment.internalBinaryRead(reader, reader.uint32(), options));
|
|
235
262
|
break;
|
|
236
263
|
default:
|
|
237
264
|
let u = options.readUnknownField;
|
|
@@ -245,9 +272,9 @@ class MessageData$Type extends MessageType<MessageData> {
|
|
|
245
272
|
return message;
|
|
246
273
|
}
|
|
247
274
|
internalBinaryWrite(message: MessageData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
248
|
-
/* repeated resources.mailer.
|
|
249
|
-
for (let i = 0; i < message.
|
|
250
|
-
|
|
275
|
+
/* repeated resources.mailer.MessageAttachment attachments = 1; */
|
|
276
|
+
for (let i = 0; i < message.attachments.length; i++)
|
|
277
|
+
MessageAttachment.internalBinaryWrite(message.attachments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
251
278
|
let u = options.writeUnknownFields;
|
|
252
279
|
if (u !== false)
|
|
253
280
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -259,20 +286,99 @@ class MessageData$Type extends MessageType<MessageData> {
|
|
|
259
286
|
*/
|
|
260
287
|
export const MessageData = new MessageData$Type();
|
|
261
288
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
262
|
-
class
|
|
289
|
+
class MessageAttachment$Type extends MessageType<MessageAttachment> {
|
|
290
|
+
constructor() {
|
|
291
|
+
super("resources.mailer.MessageAttachment", [
|
|
292
|
+
{ no: 1, name: "document", kind: "message", oneof: "data", T: () => MessageAttachmentDocument }
|
|
293
|
+
]);
|
|
294
|
+
}
|
|
295
|
+
create(value?: PartialMessage<MessageAttachment>): MessageAttachment {
|
|
296
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
297
|
+
message.data = { oneofKind: undefined };
|
|
298
|
+
if (value !== undefined)
|
|
299
|
+
reflectionMergePartial<MessageAttachment>(this, message, value);
|
|
300
|
+
return message;
|
|
301
|
+
}
|
|
302
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageAttachment): MessageAttachment {
|
|
303
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
304
|
+
while (reader.pos < end) {
|
|
305
|
+
let [fieldNo, wireType] = reader.tag();
|
|
306
|
+
switch (fieldNo) {
|
|
307
|
+
case /* resources.mailer.MessageAttachmentDocument document */ 1:
|
|
308
|
+
message.data = {
|
|
309
|
+
oneofKind: "document",
|
|
310
|
+
document: MessageAttachmentDocument.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).document)
|
|
311
|
+
};
|
|
312
|
+
break;
|
|
313
|
+
default:
|
|
314
|
+
let u = options.readUnknownField;
|
|
315
|
+
if (u === "throw")
|
|
316
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
317
|
+
let d = reader.skip(wireType);
|
|
318
|
+
if (u !== false)
|
|
319
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return message;
|
|
323
|
+
}
|
|
324
|
+
internalBinaryWrite(message: MessageAttachment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
325
|
+
/* resources.mailer.MessageAttachmentDocument document = 1; */
|
|
326
|
+
if (message.data.oneofKind === "document")
|
|
327
|
+
MessageAttachmentDocument.internalBinaryWrite(message.data.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
328
|
+
let u = options.writeUnknownFields;
|
|
329
|
+
if (u !== false)
|
|
330
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
331
|
+
return writer;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @generated MessageType for protobuf message resources.mailer.MessageAttachment
|
|
336
|
+
*/
|
|
337
|
+
export const MessageAttachment = new MessageAttachment$Type();
|
|
338
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
339
|
+
class MessageAttachmentDocument$Type extends MessageType<MessageAttachmentDocument> {
|
|
263
340
|
constructor() {
|
|
264
|
-
super("resources.mailer.
|
|
341
|
+
super("resources.mailer.MessageAttachmentDocument", [
|
|
342
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
343
|
+
{ no: 2, name: "title", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "768" } } } }
|
|
344
|
+
]);
|
|
265
345
|
}
|
|
266
|
-
create(value?: PartialMessage<
|
|
346
|
+
create(value?: PartialMessage<MessageAttachmentDocument>): MessageAttachmentDocument {
|
|
267
347
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
348
|
+
message.id = 0;
|
|
268
349
|
if (value !== undefined)
|
|
269
|
-
reflectionMergePartial<
|
|
350
|
+
reflectionMergePartial<MessageAttachmentDocument>(this, message, value);
|
|
270
351
|
return message;
|
|
271
352
|
}
|
|
272
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
273
|
-
|
|
353
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageAttachmentDocument): MessageAttachmentDocument {
|
|
354
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
355
|
+
while (reader.pos < end) {
|
|
356
|
+
let [fieldNo, wireType] = reader.tag();
|
|
357
|
+
switch (fieldNo) {
|
|
358
|
+
case /* uint64 id */ 1:
|
|
359
|
+
message.id = reader.uint64().toNumber();
|
|
360
|
+
break;
|
|
361
|
+
case /* optional string title */ 2:
|
|
362
|
+
message.title = reader.string();
|
|
363
|
+
break;
|
|
364
|
+
default:
|
|
365
|
+
let u = options.readUnknownField;
|
|
366
|
+
if (u === "throw")
|
|
367
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
368
|
+
let d = reader.skip(wireType);
|
|
369
|
+
if (u !== false)
|
|
370
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return message;
|
|
274
374
|
}
|
|
275
|
-
internalBinaryWrite(message:
|
|
375
|
+
internalBinaryWrite(message: MessageAttachmentDocument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
376
|
+
/* uint64 id = 1; */
|
|
377
|
+
if (message.id !== 0)
|
|
378
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
379
|
+
/* optional string title = 2; */
|
|
380
|
+
if (message.title !== undefined)
|
|
381
|
+
writer.tag(2, WireType.LengthDelimited).string(message.title);
|
|
276
382
|
let u = options.writeUnknownFields;
|
|
277
383
|
if (u !== false)
|
|
278
384
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -280,6 +386,6 @@ class MessageDataEntry$Type extends MessageType<MessageDataEntry> {
|
|
|
280
386
|
}
|
|
281
387
|
}
|
|
282
388
|
/**
|
|
283
|
-
* @generated MessageType for protobuf message resources.mailer.
|
|
389
|
+
* @generated MessageType for protobuf message resources.mailer.MessageAttachmentDocument
|
|
284
390
|
*/
|
|
285
|
-
export const
|
|
391
|
+
export const MessageAttachmentDocument = new MessageAttachmentDocument$Type();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/settings.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/template.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/mailer/thread.proto" (package "resources.mailer", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/notifications/events.proto" (package "resources.notifications", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -10,6 +10,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
10
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { BannerMessage } from "../rector/banner";
|
|
13
14
|
import { JobProps } from "../users/job_props";
|
|
14
15
|
import { Notification } from "./notifications";
|
|
15
16
|
// User Events
|
|
@@ -98,10 +99,25 @@ export interface SystemEvent {
|
|
|
98
99
|
* @generated from protobuf field: bool ping = 1;
|
|
99
100
|
*/
|
|
100
101
|
ping: boolean;
|
|
102
|
+
} | {
|
|
103
|
+
oneofKind: "bannerMessage";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf field: resources.notifications.BannerMessageWrapper banner_message = 2;
|
|
106
|
+
*/
|
|
107
|
+
bannerMessage: BannerMessageWrapper;
|
|
101
108
|
} | {
|
|
102
109
|
oneofKind: undefined;
|
|
103
110
|
};
|
|
104
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf message resources.notifications.BannerMessageWrapper
|
|
114
|
+
*/
|
|
115
|
+
export interface BannerMessageWrapper {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf field: optional resources.rector.BannerMessage banner_message = 1;
|
|
118
|
+
*/
|
|
119
|
+
bannerMessage?: BannerMessage;
|
|
120
|
+
}
|
|
105
121
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
106
122
|
class UserEvent$Type extends MessageType<UserEvent> {
|
|
107
123
|
constructor() {
|
|
@@ -276,7 +292,8 @@ export const JobGradeEvent = new JobGradeEvent$Type();
|
|
|
276
292
|
class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
277
293
|
constructor() {
|
|
278
294
|
super("resources.notifications.SystemEvent", [
|
|
279
|
-
{ no: 1, name: "ping", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ }
|
|
295
|
+
{ no: 1, name: "ping", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ },
|
|
296
|
+
{ no: 2, name: "banner_message", kind: "message", oneof: "data", T: () => BannerMessageWrapper }
|
|
280
297
|
]);
|
|
281
298
|
}
|
|
282
299
|
create(value?: PartialMessage<SystemEvent>): SystemEvent {
|
|
@@ -297,6 +314,12 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
297
314
|
ping: reader.bool()
|
|
298
315
|
};
|
|
299
316
|
break;
|
|
317
|
+
case /* resources.notifications.BannerMessageWrapper banner_message */ 2:
|
|
318
|
+
message.data = {
|
|
319
|
+
oneofKind: "bannerMessage",
|
|
320
|
+
bannerMessage: BannerMessageWrapper.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).bannerMessage)
|
|
321
|
+
};
|
|
322
|
+
break;
|
|
300
323
|
default:
|
|
301
324
|
let u = options.readUnknownField;
|
|
302
325
|
if (u === "throw")
|
|
@@ -312,6 +335,9 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
312
335
|
/* bool ping = 1; */
|
|
313
336
|
if (message.data.oneofKind === "ping")
|
|
314
337
|
writer.tag(1, WireType.Varint).bool(message.data.ping);
|
|
338
|
+
/* resources.notifications.BannerMessageWrapper banner_message = 2; */
|
|
339
|
+
if (message.data.oneofKind === "bannerMessage")
|
|
340
|
+
BannerMessageWrapper.internalBinaryWrite(message.data.bannerMessage, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
315
341
|
let u = options.writeUnknownFields;
|
|
316
342
|
if (u !== false)
|
|
317
343
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -322,3 +348,49 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
322
348
|
* @generated MessageType for protobuf message resources.notifications.SystemEvent
|
|
323
349
|
*/
|
|
324
350
|
export const SystemEvent = new SystemEvent$Type();
|
|
351
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
352
|
+
class BannerMessageWrapper$Type extends MessageType<BannerMessageWrapper> {
|
|
353
|
+
constructor() {
|
|
354
|
+
super("resources.notifications.BannerMessageWrapper", [
|
|
355
|
+
{ no: 1, name: "banner_message", kind: "message", T: () => BannerMessage }
|
|
356
|
+
]);
|
|
357
|
+
}
|
|
358
|
+
create(value?: PartialMessage<BannerMessageWrapper>): BannerMessageWrapper {
|
|
359
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
360
|
+
if (value !== undefined)
|
|
361
|
+
reflectionMergePartial<BannerMessageWrapper>(this, message, value);
|
|
362
|
+
return message;
|
|
363
|
+
}
|
|
364
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BannerMessageWrapper): BannerMessageWrapper {
|
|
365
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
366
|
+
while (reader.pos < end) {
|
|
367
|
+
let [fieldNo, wireType] = reader.tag();
|
|
368
|
+
switch (fieldNo) {
|
|
369
|
+
case /* optional resources.rector.BannerMessage banner_message */ 1:
|
|
370
|
+
message.bannerMessage = BannerMessage.internalBinaryRead(reader, reader.uint32(), options, message.bannerMessage);
|
|
371
|
+
break;
|
|
372
|
+
default:
|
|
373
|
+
let u = options.readUnknownField;
|
|
374
|
+
if (u === "throw")
|
|
375
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
376
|
+
let d = reader.skip(wireType);
|
|
377
|
+
if (u !== false)
|
|
378
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return message;
|
|
382
|
+
}
|
|
383
|
+
internalBinaryWrite(message: BannerMessageWrapper, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
384
|
+
/* optional resources.rector.BannerMessage banner_message = 1; */
|
|
385
|
+
if (message.bannerMessage)
|
|
386
|
+
BannerMessage.internalBinaryWrite(message.bannerMessage, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
387
|
+
let u = options.writeUnknownFields;
|
|
388
|
+
if (u !== false)
|
|
389
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
390
|
+
return writer;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @generated MessageType for protobuf message resources.notifications.BannerMessageWrapper
|
|
395
|
+
*/
|
|
396
|
+
export const BannerMessageWrapper = new BannerMessageWrapper$Type();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/notifications/notifications.proto" (package "resources.notifications", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -63,6 +63,8 @@ export interface Notification {
|
|
|
63
63
|
starred?: boolean;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
+
* @dbscanner: json
|
|
67
|
+
*
|
|
66
68
|
* @generated from protobuf message resources.notifications.Data
|
|
67
69
|
*/
|
|
68
70
|
export interface Data {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/permissions/permissions.proto" (package "resources.permissions", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -172,6 +172,8 @@ export interface RoleAttribute {
|
|
|
172
172
|
maxValues?: AttributeValues;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
+
* @dbscanner: json
|
|
176
|
+
*
|
|
175
177
|
* @generated from protobuf message resources.permissions.AttributeValues
|
|
176
178
|
*/
|
|
177
179
|
export interface AttributeValues {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 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";
|
|
@@ -35,7 +35,7 @@ export interface QualificationJobAccess {
|
|
|
35
35
|
/**
|
|
36
36
|
* @generated from protobuf field: uint64 target_id = 4;
|
|
37
37
|
*/
|
|
38
|
-
targetId: number;
|
|
38
|
+
targetId: number;
|
|
39
39
|
/**
|
|
40
40
|
* @generated from protobuf field: string job = 5;
|
|
41
41
|
*/
|
|
@@ -93,13 +93,9 @@ export enum AccessLevel {
|
|
|
93
93
|
*/
|
|
94
94
|
GRADE = 5,
|
|
95
95
|
/**
|
|
96
|
-
* @generated from protobuf enum value:
|
|
96
|
+
* @generated from protobuf enum value: ACCESS_LEVEL_EDIT = 6;
|
|
97
97
|
*/
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @generated from protobuf enum value: ACCESS_LEVEL_EDIT = 7;
|
|
101
|
-
*/
|
|
102
|
-
EDIT = 7
|
|
98
|
+
EDIT = 6
|
|
103
99
|
}
|
|
104
100
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
105
101
|
class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
@@ -260,7 +256,20 @@ class QualificationUserAccess$Type extends MessageType<QualificationUserAccess>
|
|
|
260
256
|
return message;
|
|
261
257
|
}
|
|
262
258
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QualificationUserAccess): QualificationUserAccess {
|
|
263
|
-
|
|
259
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
260
|
+
while (reader.pos < end) {
|
|
261
|
+
let [fieldNo, wireType] = reader.tag();
|
|
262
|
+
switch (fieldNo) {
|
|
263
|
+
default:
|
|
264
|
+
let u = options.readUnknownField;
|
|
265
|
+
if (u === "throw")
|
|
266
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
267
|
+
let d = reader.skip(wireType);
|
|
268
|
+
if (u !== false)
|
|
269
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return message;
|
|
264
273
|
}
|
|
265
274
|
internalBinaryWrite(message: QualificationUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
266
275
|
let u = options.writeUnknownFields;
|