@fivenet-app/gen 0.9.3 → 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 +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- 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 +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- 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 +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- 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 +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- 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 +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -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";
|
|
@@ -18,17 +18,17 @@ import { Email } from "./email";
|
|
|
18
18
|
*/
|
|
19
19
|
export interface Message {
|
|
20
20
|
/**
|
|
21
|
-
* @generated from protobuf field: uint64 id = 1
|
|
21
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
22
22
|
*/
|
|
23
|
-
id:
|
|
23
|
+
id: number;
|
|
24
24
|
/**
|
|
25
|
-
* @generated from protobuf field: uint64 thread_id = 2
|
|
25
|
+
* @generated from protobuf field: uint64 thread_id = 2;
|
|
26
26
|
*/
|
|
27
|
-
threadId:
|
|
27
|
+
threadId: number;
|
|
28
28
|
/**
|
|
29
|
-
* @generated from protobuf field: uint64 sender_id = 3
|
|
29
|
+
* @generated from protobuf field: uint64 sender_id = 3;
|
|
30
30
|
*/
|
|
31
|
-
senderId:
|
|
31
|
+
senderId: number;
|
|
32
32
|
/**
|
|
33
33
|
* @generated from protobuf field: optional resources.mailer.Email sender = 4;
|
|
34
34
|
*/
|
|
@@ -71,26 +71,53 @@ 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> {
|
|
89
116
|
constructor() {
|
|
90
117
|
super("resources.mailer.Message", [
|
|
91
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
92
|
-
{ no: 2, name: "thread_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
93
|
-
{ no: 3, name: "sender_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
118
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
119
|
+
{ no: 2, name: "thread_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
120
|
+
{ no: 3, name: "sender_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
94
121
|
{ no: 4, name: "sender", kind: "message", T: () => Email },
|
|
95
122
|
{ no: 5, name: "created_at", kind: "message", T: () => Timestamp },
|
|
96
123
|
{ no: 6, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
@@ -104,9 +131,9 @@ class Message$Type extends MessageType<Message> {
|
|
|
104
131
|
}
|
|
105
132
|
create(value?: PartialMessage<Message>): Message {
|
|
106
133
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
107
|
-
message.id =
|
|
108
|
-
message.threadId =
|
|
109
|
-
message.senderId =
|
|
134
|
+
message.id = 0;
|
|
135
|
+
message.threadId = 0;
|
|
136
|
+
message.senderId = 0;
|
|
110
137
|
message.title = "";
|
|
111
138
|
if (value !== undefined)
|
|
112
139
|
reflectionMergePartial<Message>(this, message, value);
|
|
@@ -117,14 +144,14 @@ class Message$Type extends MessageType<Message> {
|
|
|
117
144
|
while (reader.pos < end) {
|
|
118
145
|
let [fieldNo, wireType] = reader.tag();
|
|
119
146
|
switch (fieldNo) {
|
|
120
|
-
case /* uint64 id
|
|
121
|
-
message.id = reader.uint64().
|
|
147
|
+
case /* uint64 id */ 1:
|
|
148
|
+
message.id = reader.uint64().toNumber();
|
|
122
149
|
break;
|
|
123
|
-
case /* uint64 thread_id
|
|
124
|
-
message.threadId = reader.uint64().
|
|
150
|
+
case /* uint64 thread_id */ 2:
|
|
151
|
+
message.threadId = reader.uint64().toNumber();
|
|
125
152
|
break;
|
|
126
|
-
case /* uint64 sender_id
|
|
127
|
-
message.senderId = reader.uint64().
|
|
153
|
+
case /* uint64 sender_id */ 3:
|
|
154
|
+
message.senderId = reader.uint64().toNumber();
|
|
128
155
|
break;
|
|
129
156
|
case /* optional resources.mailer.Email sender */ 4:
|
|
130
157
|
message.sender = Email.internalBinaryRead(reader, reader.uint32(), options, message.sender);
|
|
@@ -165,14 +192,14 @@ class Message$Type extends MessageType<Message> {
|
|
|
165
192
|
return message;
|
|
166
193
|
}
|
|
167
194
|
internalBinaryWrite(message: Message, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
168
|
-
/* uint64 id = 1
|
|
169
|
-
if (message.id !==
|
|
195
|
+
/* uint64 id = 1; */
|
|
196
|
+
if (message.id !== 0)
|
|
170
197
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
171
|
-
/* uint64 thread_id = 2
|
|
172
|
-
if (message.threadId !==
|
|
198
|
+
/* uint64 thread_id = 2; */
|
|
199
|
+
if (message.threadId !== 0)
|
|
173
200
|
writer.tag(2, WireType.Varint).uint64(message.threadId);
|
|
174
|
-
/* uint64 sender_id = 3
|
|
175
|
-
if (message.senderId !==
|
|
201
|
+
/* uint64 sender_id = 3; */
|
|
202
|
+
if (message.senderId !== 0)
|
|
176
203
|
writer.tag(3, WireType.Varint).uint64(message.senderId);
|
|
177
204
|
/* optional resources.mailer.Email sender = 4; */
|
|
178
205
|
if (message.sender)
|
|
@@ -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";
|
|
@@ -15,9 +15,9 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
15
15
|
*/
|
|
16
16
|
export interface EmailSettings {
|
|
17
17
|
/**
|
|
18
|
-
* @generated from protobuf field: uint64 email_id = 1
|
|
18
|
+
* @generated from protobuf field: uint64 email_id = 1;
|
|
19
19
|
*/
|
|
20
|
-
emailId:
|
|
20
|
+
emailId: number;
|
|
21
21
|
/**
|
|
22
22
|
* @sanitize
|
|
23
23
|
*
|
|
@@ -35,14 +35,14 @@ export interface EmailSettings {
|
|
|
35
35
|
class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
36
36
|
constructor() {
|
|
37
37
|
super("resources.mailer.EmailSettings", [
|
|
38
|
-
{ no: 1, name: "email_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
38
|
+
{ no: 1, name: "email_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
39
39
|
{ no: 2, name: "signature", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "1024" } } } },
|
|
40
40
|
{ no: 3, name: "blocked_emails", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "25" } } } }
|
|
41
41
|
]);
|
|
42
42
|
}
|
|
43
43
|
create(value?: PartialMessage<EmailSettings>): EmailSettings {
|
|
44
44
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
45
|
-
message.emailId =
|
|
45
|
+
message.emailId = 0;
|
|
46
46
|
message.blockedEmails = [];
|
|
47
47
|
if (value !== undefined)
|
|
48
48
|
reflectionMergePartial<EmailSettings>(this, message, value);
|
|
@@ -53,8 +53,8 @@ class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
|
53
53
|
while (reader.pos < end) {
|
|
54
54
|
let [fieldNo, wireType] = reader.tag();
|
|
55
55
|
switch (fieldNo) {
|
|
56
|
-
case /* uint64 email_id
|
|
57
|
-
message.emailId = reader.uint64().
|
|
56
|
+
case /* uint64 email_id */ 1:
|
|
57
|
+
message.emailId = reader.uint64().toNumber();
|
|
58
58
|
break;
|
|
59
59
|
case /* optional string signature */ 2:
|
|
60
60
|
message.signature = reader.string();
|
|
@@ -74,8 +74,8 @@ class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
|
74
74
|
return message;
|
|
75
75
|
}
|
|
76
76
|
internalBinaryWrite(message: EmailSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
77
|
-
/* uint64 email_id = 1
|
|
78
|
-
if (message.emailId !==
|
|
77
|
+
/* uint64 email_id = 1; */
|
|
78
|
+
if (message.emailId !== 0)
|
|
79
79
|
writer.tag(1, WireType.Varint).uint64(message.emailId);
|
|
80
80
|
/* optional string signature = 2; */
|
|
81
81
|
if (message.signature !== undefined)
|
|
@@ -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";
|
|
@@ -16,9 +16,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
16
16
|
*/
|
|
17
17
|
export interface Template {
|
|
18
18
|
/**
|
|
19
|
-
* @generated from protobuf field: uint64 id = 1
|
|
19
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
20
20
|
*/
|
|
21
|
-
id:
|
|
21
|
+
id: number;
|
|
22
22
|
/**
|
|
23
23
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 3;
|
|
24
24
|
*/
|
|
@@ -32,9 +32,9 @@ export interface Template {
|
|
|
32
32
|
*/
|
|
33
33
|
deletedAt?: Timestamp;
|
|
34
34
|
/**
|
|
35
|
-
* @generated from protobuf field: uint64 email_id = 6
|
|
35
|
+
* @generated from protobuf field: uint64 email_id = 6;
|
|
36
36
|
*/
|
|
37
|
-
emailId:
|
|
37
|
+
emailId: number;
|
|
38
38
|
/**
|
|
39
39
|
* @sanitize: method=StripTags
|
|
40
40
|
*
|
|
@@ -60,11 +60,11 @@ export interface Template {
|
|
|
60
60
|
class Template$Type extends MessageType<Template> {
|
|
61
61
|
constructor() {
|
|
62
62
|
super("resources.mailer.Template", [
|
|
63
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
63
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
64
64
|
{ no: 3, name: "created_at", kind: "message", T: () => Timestamp },
|
|
65
65
|
{ no: 4, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
66
66
|
{ no: 5, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
67
|
-
{ no: 6, name: "email_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
67
|
+
{ no: 6, name: "email_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
68
68
|
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "255" } } } },
|
|
69
69
|
{ no: 8, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "10240" } } } },
|
|
70
70
|
{ no: 9, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "40" } } } },
|
|
@@ -73,8 +73,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
73
73
|
}
|
|
74
74
|
create(value?: PartialMessage<Template>): Template {
|
|
75
75
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
76
|
-
message.id =
|
|
77
|
-
message.emailId =
|
|
76
|
+
message.id = 0;
|
|
77
|
+
message.emailId = 0;
|
|
78
78
|
message.title = "";
|
|
79
79
|
message.content = "";
|
|
80
80
|
if (value !== undefined)
|
|
@@ -86,8 +86,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
86
86
|
while (reader.pos < end) {
|
|
87
87
|
let [fieldNo, wireType] = reader.tag();
|
|
88
88
|
switch (fieldNo) {
|
|
89
|
-
case /* uint64 id
|
|
90
|
-
message.id = reader.uint64().
|
|
89
|
+
case /* uint64 id */ 1:
|
|
90
|
+
message.id = reader.uint64().toNumber();
|
|
91
91
|
break;
|
|
92
92
|
case /* resources.timestamp.Timestamp created_at */ 3:
|
|
93
93
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -98,8 +98,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
98
98
|
case /* optional resources.timestamp.Timestamp deleted_at */ 5:
|
|
99
99
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
100
100
|
break;
|
|
101
|
-
case /* uint64 email_id
|
|
102
|
-
message.emailId = reader.uint64().
|
|
101
|
+
case /* uint64 email_id */ 6:
|
|
102
|
+
message.emailId = reader.uint64().toNumber();
|
|
103
103
|
break;
|
|
104
104
|
case /* string title */ 7:
|
|
105
105
|
message.title = reader.string();
|
|
@@ -125,8 +125,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
125
125
|
return message;
|
|
126
126
|
}
|
|
127
127
|
internalBinaryWrite(message: Template, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
128
|
-
/* uint64 id = 1
|
|
129
|
-
if (message.id !==
|
|
128
|
+
/* uint64 id = 1; */
|
|
129
|
+
if (message.id !== 0)
|
|
130
130
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
131
131
|
/* resources.timestamp.Timestamp created_at = 3; */
|
|
132
132
|
if (message.createdAt)
|
|
@@ -137,8 +137,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
137
137
|
/* optional resources.timestamp.Timestamp deleted_at = 5; */
|
|
138
138
|
if (message.deletedAt)
|
|
139
139
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
140
|
-
/* uint64 email_id = 6
|
|
141
|
-
if (message.emailId !==
|
|
140
|
+
/* uint64 email_id = 6; */
|
|
141
|
+
if (message.emailId !== 0)
|
|
142
142
|
writer.tag(6, WireType.Varint).uint64(message.emailId);
|
|
143
143
|
/* string title = 7; */
|
|
144
144
|
if (message.title !== "")
|