@fivenet-app/gen 2025.9.1 → 2026.4.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/README.md +1 -1
- package/clients.ts +36 -0
- package/codegen/perms/perms.ts +186 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +140 -8
- package/resources/accounts/accounts.ts +98 -31
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
- package/resources/audit/audit.ts +156 -38
- package/resources/calendar/{access.ts → access/access.ts} +30 -30
- package/resources/calendar/calendar.ts +17 -477
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/{access.ts → access/access.ts} +22 -22
- package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/citizens/labels/labels.ts +526 -0
- package/resources/{users → citizens/licenses}/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +126 -258
- package/resources/collab/collab.ts +4 -16
- package/resources/common/content/content.ts +108 -85
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/i18n.ts +2 -2
- package/resources/{common/cron → cron}/cron.ts +43 -43
- package/resources/documents/{access.ts → access/access.ts} +29 -52
- package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +7 -7
- package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +282 -667
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
- package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
- package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
- package/resources/file/filestore.ts +1 -1
- package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
- package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
- package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
- package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
- package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
- package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
- package/resources/mailer/{access.ts → access/access.ts} +67 -67
- package/resources/mailer/{email.ts → emails/email.ts} +19 -19
- package/resources/mailer/{events.ts → events/events.ts} +24 -24
- package/resources/mailer/{message.ts → messages/message.ts} +29 -29
- package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
- package/resources/mailer/{template.ts → templates/template.ts} +15 -15
- package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
- package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
- package/resources/notifications/{events.ts → events/events.ts} +20 -20
- package/resources/notifications/notifications.ts +4 -4
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
- package/resources/permissions/{events.ts → events/events.ts} +7 -7
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
- package/resources/qualifications/{access.ts → access/access.ts} +19 -19
- package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
- package/resources/qualifications/qualifications.ts +51 -179
- package/resources/settings/banner.ts +3 -3
- package/resources/settings/config.ts +527 -25
- package/resources/{documents/state.ts → settings/data.ts} +41 -20
- package/resources/settings/perms.ts +14 -14
- package/resources/stats/stats.ts +379 -0
- package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
- package/resources/sync/{data.ts → data/data.ts} +405 -59
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +242 -101
- package/resources/users/{props.ts → props/props.ts} +91 -69
- package/resources/users/short/user.ts +184 -0
- package/resources/users/{users.ts → user.ts} +266 -195
- package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
- package/resources/vehicles/{props.ts → props/props.ts} +28 -6
- package/resources/vehicles/vehicles.ts +20 -8
- package/resources/wiki/{access.ts → access/access.ts} +30 -30
- package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
- package/resources/wiki/page.ts +39 -15
- package/services/auth/auth.client.ts +23 -10
- package/services/auth/auth.ts +445 -262
- package/services/calendar/calendar.ts +56 -34
- package/services/centrum/centrum.ts +127 -127
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +44 -134
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +36 -16
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +164 -186
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/jobs/conduct.client.ts +30 -3
- package/services/jobs/conduct.ts +159 -33
- package/services/jobs/jobs.ts +43 -43
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.ts +39 -39
- package/services/livemap/livemap.ts +18 -18
- package/services/mailer/mailer.ts +78 -78
- package/services/notifications/notifications.ts +35 -35
- package/services/qualifications/qualifications.ts +81 -46
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +118 -5
- package/services/settings/laws.ts +1 -1
- package/services/settings/settings.ts +73 -52
- package/services/settings/system.client.ts +13 -0
- package/services/settings/system.ts +115 -15
- package/services/stats/stats.client.ts +7 -7
- package/services/stats/stats.ts +24 -24
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1525 -421
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +100 -6
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
- package/resources/users/labels.ts +0 -160
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
-
// @generated from protobuf file "resources/mailer/message.proto" (package "resources.mailer", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/mailer/messages/message.proto" (package "resources.mailer.messages", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,11 +11,11 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import { Content } from "
|
|
15
|
-
import { Timestamp } from "
|
|
16
|
-
import { Email } from "
|
|
14
|
+
import { Content } from "../../common/content/content";
|
|
15
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
16
|
+
import { Email } from "../emails/email";
|
|
17
17
|
/**
|
|
18
|
-
* @generated from protobuf message resources.mailer.Message
|
|
18
|
+
* @generated from protobuf message resources.mailer.messages.Message
|
|
19
19
|
*/
|
|
20
20
|
export interface Message {
|
|
21
21
|
/**
|
|
@@ -31,7 +31,7 @@ export interface Message {
|
|
|
31
31
|
*/
|
|
32
32
|
senderId: number;
|
|
33
33
|
/**
|
|
34
|
-
* @generated from protobuf field: optional resources.mailer.Email sender = 4
|
|
34
|
+
* @generated from protobuf field: optional resources.mailer.emails.Email sender = 4
|
|
35
35
|
*/
|
|
36
36
|
sender?: Email;
|
|
37
37
|
/**
|
|
@@ -55,7 +55,7 @@ export interface Message {
|
|
|
55
55
|
*/
|
|
56
56
|
content?: Content;
|
|
57
57
|
/**
|
|
58
|
-
* @generated from protobuf field: optional resources.mailer.MessageData data = 10
|
|
58
|
+
* @generated from protobuf field: optional resources.mailer.messages.MessageData data = 10
|
|
59
59
|
*/
|
|
60
60
|
data?: MessageData;
|
|
61
61
|
/**
|
|
@@ -68,16 +68,16 @@ export interface Message {
|
|
|
68
68
|
creatorJob?: string;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* @generated from protobuf message resources.mailer.MessageData
|
|
71
|
+
* @generated from protobuf message resources.mailer.messages.MessageData
|
|
72
72
|
*/
|
|
73
73
|
export interface MessageData {
|
|
74
74
|
/**
|
|
75
|
-
* @generated from protobuf field: repeated resources.mailer.MessageAttachment attachments = 1
|
|
75
|
+
* @generated from protobuf field: repeated resources.mailer.messages.MessageAttachment attachments = 1
|
|
76
76
|
*/
|
|
77
77
|
attachments: MessageAttachment[];
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
* @generated from protobuf message resources.mailer.MessageAttachment
|
|
80
|
+
* @generated from protobuf message resources.mailer.messages.MessageAttachment
|
|
81
81
|
*/
|
|
82
82
|
export interface MessageAttachment {
|
|
83
83
|
/**
|
|
@@ -86,7 +86,7 @@ export interface MessageAttachment {
|
|
|
86
86
|
data: {
|
|
87
87
|
oneofKind: "document";
|
|
88
88
|
/**
|
|
89
|
-
* @generated from protobuf field: resources.mailer.MessageAttachmentDocument document = 1
|
|
89
|
+
* @generated from protobuf field: resources.mailer.messages.MessageAttachmentDocument document = 1
|
|
90
90
|
*/
|
|
91
91
|
document: MessageAttachmentDocument;
|
|
92
92
|
} | {
|
|
@@ -94,7 +94,7 @@ export interface MessageAttachment {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* @generated from protobuf message resources.mailer.MessageAttachmentDocument
|
|
97
|
+
* @generated from protobuf message resources.mailer.messages.MessageAttachmentDocument
|
|
98
98
|
*/
|
|
99
99
|
export interface MessageAttachmentDocument {
|
|
100
100
|
/**
|
|
@@ -109,7 +109,7 @@ export interface MessageAttachmentDocument {
|
|
|
109
109
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
110
110
|
class Message$Type extends MessageType<Message> {
|
|
111
111
|
constructor() {
|
|
112
|
-
super("resources.mailer.Message", [
|
|
112
|
+
super("resources.mailer.messages.Message", [
|
|
113
113
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
114
114
|
{ no: 2, name: "thread_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
115
115
|
{ no: 3, name: "sender_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
@@ -117,7 +117,7 @@ class Message$Type extends MessageType<Message> {
|
|
|
117
117
|
{ no: 5, name: "created_at", kind: "message", T: () => Timestamp },
|
|
118
118
|
{ no: 6, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
119
119
|
{ no: 7, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
120
|
-
{ no: 8, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true,
|
|
120
|
+
{ no: 8, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
121
121
|
{ no: 9, name: "content", kind: "message", T: () => Content, options: { "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
122
122
|
{ no: 10, name: "data", kind: "message", T: () => MessageData },
|
|
123
123
|
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
@@ -148,7 +148,7 @@ class Message$Type extends MessageType<Message> {
|
|
|
148
148
|
case /* int64 sender_id */ 3:
|
|
149
149
|
message.senderId = reader.int64().toNumber();
|
|
150
150
|
break;
|
|
151
|
-
case /* optional resources.mailer.Email sender */ 4:
|
|
151
|
+
case /* optional resources.mailer.emails.Email sender */ 4:
|
|
152
152
|
message.sender = Email.internalBinaryRead(reader, reader.uint32(), options, message.sender);
|
|
153
153
|
break;
|
|
154
154
|
case /* resources.timestamp.Timestamp created_at */ 5:
|
|
@@ -166,7 +166,7 @@ class Message$Type extends MessageType<Message> {
|
|
|
166
166
|
case /* resources.common.content.Content content */ 9:
|
|
167
167
|
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
168
168
|
break;
|
|
169
|
-
case /* optional resources.mailer.MessageData data */ 10:
|
|
169
|
+
case /* optional resources.mailer.messages.MessageData data */ 10:
|
|
170
170
|
message.data = MessageData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
171
171
|
break;
|
|
172
172
|
case /* optional int32 creator_id */ 11:
|
|
@@ -196,7 +196,7 @@ class Message$Type extends MessageType<Message> {
|
|
|
196
196
|
/* int64 sender_id = 3; */
|
|
197
197
|
if (message.senderId !== 0)
|
|
198
198
|
writer.tag(3, WireType.Varint).int64(message.senderId);
|
|
199
|
-
/* optional resources.mailer.Email sender = 4; */
|
|
199
|
+
/* optional resources.mailer.emails.Email sender = 4; */
|
|
200
200
|
if (message.sender)
|
|
201
201
|
Email.internalBinaryWrite(message.sender, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
202
202
|
/* resources.timestamp.Timestamp created_at = 5; */
|
|
@@ -214,7 +214,7 @@ class Message$Type extends MessageType<Message> {
|
|
|
214
214
|
/* resources.common.content.Content content = 9; */
|
|
215
215
|
if (message.content)
|
|
216
216
|
Content.internalBinaryWrite(message.content, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
217
|
-
/* optional resources.mailer.MessageData data = 10; */
|
|
217
|
+
/* optional resources.mailer.messages.MessageData data = 10; */
|
|
218
218
|
if (message.data)
|
|
219
219
|
MessageData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
220
220
|
/* optional int32 creator_id = 11; */
|
|
@@ -230,13 +230,13 @@ class Message$Type extends MessageType<Message> {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* @generated MessageType for protobuf message resources.mailer.Message
|
|
233
|
+
* @generated MessageType for protobuf message resources.mailer.messages.Message
|
|
234
234
|
*/
|
|
235
235
|
export const Message = new Message$Type();
|
|
236
236
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
237
237
|
class MessageData$Type extends MessageType<MessageData> {
|
|
238
238
|
constructor() {
|
|
239
|
-
super("resources.mailer.MessageData", [
|
|
239
|
+
super("resources.mailer.messages.MessageData", [
|
|
240
240
|
{ no: 1, name: "attachments", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MessageAttachment, options: { "buf.validate.field": { repeated: { maxItems: "3" } } } }
|
|
241
241
|
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
242
242
|
}
|
|
@@ -252,7 +252,7 @@ class MessageData$Type extends MessageType<MessageData> {
|
|
|
252
252
|
while (reader.pos < end) {
|
|
253
253
|
let [fieldNo, wireType] = reader.tag();
|
|
254
254
|
switch (fieldNo) {
|
|
255
|
-
case /* repeated resources.mailer.MessageAttachment attachments */ 1:
|
|
255
|
+
case /* repeated resources.mailer.messages.MessageAttachment attachments */ 1:
|
|
256
256
|
message.attachments.push(MessageAttachment.internalBinaryRead(reader, reader.uint32(), options));
|
|
257
257
|
break;
|
|
258
258
|
default:
|
|
@@ -267,7 +267,7 @@ class MessageData$Type extends MessageType<MessageData> {
|
|
|
267
267
|
return message;
|
|
268
268
|
}
|
|
269
269
|
internalBinaryWrite(message: MessageData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
270
|
-
/* repeated resources.mailer.MessageAttachment attachments = 1; */
|
|
270
|
+
/* repeated resources.mailer.messages.MessageAttachment attachments = 1; */
|
|
271
271
|
for (let i = 0; i < message.attachments.length; i++)
|
|
272
272
|
MessageAttachment.internalBinaryWrite(message.attachments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
273
273
|
let u = options.writeUnknownFields;
|
|
@@ -277,13 +277,13 @@ class MessageData$Type extends MessageType<MessageData> {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
|
-
* @generated MessageType for protobuf message resources.mailer.MessageData
|
|
280
|
+
* @generated MessageType for protobuf message resources.mailer.messages.MessageData
|
|
281
281
|
*/
|
|
282
282
|
export const MessageData = new MessageData$Type();
|
|
283
283
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
284
284
|
class MessageAttachment$Type extends MessageType<MessageAttachment> {
|
|
285
285
|
constructor() {
|
|
286
|
-
super("resources.mailer.MessageAttachment", [
|
|
286
|
+
super("resources.mailer.messages.MessageAttachment", [
|
|
287
287
|
{ no: 1, name: "document", kind: "message", oneof: "data", T: () => MessageAttachmentDocument }
|
|
288
288
|
]);
|
|
289
289
|
}
|
|
@@ -299,7 +299,7 @@ class MessageAttachment$Type extends MessageType<MessageAttachment> {
|
|
|
299
299
|
while (reader.pos < end) {
|
|
300
300
|
let [fieldNo, wireType] = reader.tag();
|
|
301
301
|
switch (fieldNo) {
|
|
302
|
-
case /* resources.mailer.MessageAttachmentDocument document */ 1:
|
|
302
|
+
case /* resources.mailer.messages.MessageAttachmentDocument document */ 1:
|
|
303
303
|
message.data = {
|
|
304
304
|
oneofKind: "document",
|
|
305
305
|
document: MessageAttachmentDocument.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).document)
|
|
@@ -317,7 +317,7 @@ class MessageAttachment$Type extends MessageType<MessageAttachment> {
|
|
|
317
317
|
return message;
|
|
318
318
|
}
|
|
319
319
|
internalBinaryWrite(message: MessageAttachment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
320
|
-
/* resources.mailer.MessageAttachmentDocument document = 1; */
|
|
320
|
+
/* resources.mailer.messages.MessageAttachmentDocument document = 1; */
|
|
321
321
|
if (message.data.oneofKind === "document")
|
|
322
322
|
MessageAttachmentDocument.internalBinaryWrite(message.data.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
323
323
|
let u = options.writeUnknownFields;
|
|
@@ -327,13 +327,13 @@ class MessageAttachment$Type extends MessageType<MessageAttachment> {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
|
-
* @generated MessageType for protobuf message resources.mailer.MessageAttachment
|
|
330
|
+
* @generated MessageType for protobuf message resources.mailer.messages.MessageAttachment
|
|
331
331
|
*/
|
|
332
332
|
export const MessageAttachment = new MessageAttachment$Type();
|
|
333
333
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
334
334
|
class MessageAttachmentDocument$Type extends MessageType<MessageAttachmentDocument> {
|
|
335
335
|
constructor() {
|
|
336
|
-
super("resources.mailer.MessageAttachmentDocument", [
|
|
336
|
+
super("resources.mailer.messages.MessageAttachmentDocument", [
|
|
337
337
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
338
338
|
{ no: 2, name: "title", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "768" } } } }
|
|
339
339
|
]);
|
|
@@ -381,6 +381,6 @@ class MessageAttachmentDocument$Type extends MessageType<MessageAttachmentDocume
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
|
-
* @generated MessageType for protobuf message resources.mailer.MessageAttachmentDocument
|
|
384
|
+
* @generated MessageType for protobuf message resources.mailer.messages.MessageAttachmentDocument
|
|
385
385
|
*/
|
|
386
386
|
export const MessageAttachmentDocument = new MessageAttachmentDocument$Type();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
-
// @generated from protobuf file "resources/mailer/settings.proto" (package "resources.mailer", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/mailer/settings/settings.proto" (package "resources.mailer.settings", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,8 +11,9 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Content } from "../../common/content/content";
|
|
14
15
|
/**
|
|
15
|
-
* @generated from protobuf message resources.mailer.EmailSettings
|
|
16
|
+
* @generated from protobuf message resources.mailer.settings.EmailSettings
|
|
16
17
|
*/
|
|
17
18
|
export interface EmailSettings {
|
|
18
19
|
/**
|
|
@@ -20,9 +21,9 @@ export interface EmailSettings {
|
|
|
20
21
|
*/
|
|
21
22
|
emailId: number;
|
|
22
23
|
/**
|
|
23
|
-
* @generated from protobuf field: optional
|
|
24
|
+
* @generated from protobuf field: optional resources.common.content.Content signature = 2
|
|
24
25
|
*/
|
|
25
|
-
signature?:
|
|
26
|
+
signature?: Content;
|
|
26
27
|
/**
|
|
27
28
|
* @generated from protobuf field: repeated string blocked_emails = 3
|
|
28
29
|
*/
|
|
@@ -31,10 +32,10 @@ export interface EmailSettings {
|
|
|
31
32
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
32
33
|
class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
33
34
|
constructor() {
|
|
34
|
-
super("resources.mailer.EmailSettings", [
|
|
35
|
+
super("resources.mailer.settings.EmailSettings", [
|
|
35
36
|
{ no: 1, name: "email_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
36
|
-
{ no: 2, name: "signature", kind: "
|
|
37
|
-
{ no: 3, name: "blocked_emails", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "25" } }, "codegen.sanitizer.sanitizer": { enabled: true,
|
|
37
|
+
{ no: 2, name: "signature", kind: "message", T: () => Content },
|
|
38
|
+
{ no: 3, name: "blocked_emails", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "25" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
38
39
|
]);
|
|
39
40
|
}
|
|
40
41
|
create(value?: PartialMessage<EmailSettings>): EmailSettings {
|
|
@@ -53,8 +54,8 @@ class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
|
53
54
|
case /* int64 email_id */ 1:
|
|
54
55
|
message.emailId = reader.int64().toNumber();
|
|
55
56
|
break;
|
|
56
|
-
case /* optional
|
|
57
|
-
message.signature = reader.
|
|
57
|
+
case /* optional resources.common.content.Content signature */ 2:
|
|
58
|
+
message.signature = Content.internalBinaryRead(reader, reader.uint32(), options, message.signature);
|
|
58
59
|
break;
|
|
59
60
|
case /* repeated string blocked_emails */ 3:
|
|
60
61
|
message.blockedEmails.push(reader.string());
|
|
@@ -74,9 +75,9 @@ class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
|
74
75
|
/* int64 email_id = 1; */
|
|
75
76
|
if (message.emailId !== 0)
|
|
76
77
|
writer.tag(1, WireType.Varint).int64(message.emailId);
|
|
77
|
-
/* optional
|
|
78
|
-
if (message.signature
|
|
79
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
78
|
+
/* optional resources.common.content.Content signature = 2; */
|
|
79
|
+
if (message.signature)
|
|
80
|
+
Content.internalBinaryWrite(message.signature, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
80
81
|
/* repeated string blocked_emails = 3; */
|
|
81
82
|
for (let i = 0; i < message.blockedEmails.length; i++)
|
|
82
83
|
writer.tag(3, WireType.LengthDelimited).string(message.blockedEmails[i]);
|
|
@@ -87,6 +88,6 @@ class EmailSettings$Type extends MessageType<EmailSettings> {
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
90
|
-
* @generated MessageType for protobuf message resources.mailer.EmailSettings
|
|
91
|
+
* @generated MessageType for protobuf message resources.mailer.settings.EmailSettings
|
|
91
92
|
*/
|
|
92
93
|
export const EmailSettings = new EmailSettings$Type();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
-
// @generated from protobuf file "resources/mailer/template.proto" (package "resources.mailer", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/mailer/templates/template.proto" (package "resources.mailer.templates", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,9 +11,10 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import {
|
|
14
|
+
import { Content } from "../../common/content/content";
|
|
15
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
15
16
|
/**
|
|
16
|
-
* @generated from protobuf message resources.mailer.Template
|
|
17
|
+
* @generated from protobuf message resources.mailer.templates.Template
|
|
17
18
|
*/
|
|
18
19
|
export interface Template {
|
|
19
20
|
/**
|
|
@@ -41,9 +42,9 @@ export interface Template {
|
|
|
41
42
|
*/
|
|
42
43
|
title: string;
|
|
43
44
|
/**
|
|
44
|
-
* @generated from protobuf field:
|
|
45
|
+
* @generated from protobuf field: resources.common.content.Content content = 8
|
|
45
46
|
*/
|
|
46
|
-
content
|
|
47
|
+
content?: Content;
|
|
47
48
|
/**
|
|
48
49
|
* @generated from protobuf field: optional string creator_job = 9
|
|
49
50
|
*/
|
|
@@ -56,14 +57,14 @@ export interface Template {
|
|
|
56
57
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
57
58
|
class Template$Type extends MessageType<Template> {
|
|
58
59
|
constructor() {
|
|
59
|
-
super("resources.mailer.Template", [
|
|
60
|
+
super("resources.mailer.templates.Template", [
|
|
60
61
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
61
62
|
{ no: 3, name: "created_at", kind: "message", T: () => Timestamp },
|
|
62
63
|
{ no: 4, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
63
64
|
{ no: 5, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
64
65
|
{ no: 6, name: "email_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
65
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true,
|
|
66
|
-
{ no: 8, name: "content", kind: "
|
|
66
|
+
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
67
|
+
{ no: 8, name: "content", kind: "message", T: () => Content },
|
|
67
68
|
{ no: 9, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "40" } } } },
|
|
68
69
|
{ no: 10, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } }
|
|
69
70
|
]);
|
|
@@ -73,7 +74,6 @@ class Template$Type extends MessageType<Template> {
|
|
|
73
74
|
message.id = 0;
|
|
74
75
|
message.emailId = 0;
|
|
75
76
|
message.title = "";
|
|
76
|
-
message.content = "";
|
|
77
77
|
if (value !== undefined)
|
|
78
78
|
reflectionMergePartial<Template>(this, message, value);
|
|
79
79
|
return message;
|
|
@@ -101,8 +101,8 @@ class Template$Type extends MessageType<Template> {
|
|
|
101
101
|
case /* string title */ 7:
|
|
102
102
|
message.title = reader.string();
|
|
103
103
|
break;
|
|
104
|
-
case /*
|
|
105
|
-
message.content = reader.
|
|
104
|
+
case /* resources.common.content.Content content */ 8:
|
|
105
|
+
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
106
106
|
break;
|
|
107
107
|
case /* optional string creator_job */ 9:
|
|
108
108
|
message.creatorJob = reader.string();
|
|
@@ -140,9 +140,9 @@ class Template$Type extends MessageType<Template> {
|
|
|
140
140
|
/* string title = 7; */
|
|
141
141
|
if (message.title !== "")
|
|
142
142
|
writer.tag(7, WireType.LengthDelimited).string(message.title);
|
|
143
|
-
/*
|
|
144
|
-
if (message.content
|
|
145
|
-
writer.tag(8, WireType.LengthDelimited).
|
|
143
|
+
/* resources.common.content.Content content = 8; */
|
|
144
|
+
if (message.content)
|
|
145
|
+
Content.internalBinaryWrite(message.content, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
146
146
|
/* optional string creator_job = 9; */
|
|
147
147
|
if (message.creatorJob !== undefined)
|
|
148
148
|
writer.tag(9, WireType.LengthDelimited).string(message.creatorJob);
|
|
@@ -156,6 +156,6 @@ class Template$Type extends MessageType<Template> {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
* @generated MessageType for protobuf message resources.mailer.Template
|
|
159
|
+
* @generated MessageType for protobuf message resources.mailer.templates.Template
|
|
160
160
|
*/
|
|
161
161
|
export const Template = new Template$Type();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
-
// @generated from protobuf file "resources/mailer/thread.proto" (package "resources.mailer", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/mailer/threads/thread.proto" (package "resources.mailer.threads", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,11 +11,11 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import { UserShort } from "
|
|
15
|
-
import { Email } from "
|
|
16
|
-
import { Timestamp } from "
|
|
14
|
+
import { UserShort } from "../../users/short/user";
|
|
15
|
+
import { Email } from "../emails/email";
|
|
16
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
17
17
|
/**
|
|
18
|
-
* @generated from protobuf message resources.mailer.Thread
|
|
18
|
+
* @generated from protobuf message resources.mailer.threads.Thread
|
|
19
19
|
*/
|
|
20
20
|
export interface Thread {
|
|
21
21
|
/**
|
|
@@ -39,7 +39,7 @@ export interface Thread {
|
|
|
39
39
|
*/
|
|
40
40
|
creatorEmailId: number;
|
|
41
41
|
/**
|
|
42
|
-
* @generated from protobuf field: optional resources.mailer.Email creator_email = 6
|
|
42
|
+
* @generated from protobuf field: optional resources.mailer.emails.Email creator_email = 6
|
|
43
43
|
*/
|
|
44
44
|
creatorEmail?: Email;
|
|
45
45
|
/**
|
|
@@ -47,7 +47,7 @@ export interface Thread {
|
|
|
47
47
|
*/
|
|
48
48
|
creatorId?: number;
|
|
49
49
|
/**
|
|
50
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 8
|
|
50
|
+
* @generated from protobuf field: optional resources.users.short.UserShort creator = 8
|
|
51
51
|
*/
|
|
52
52
|
creator?: UserShort;
|
|
53
53
|
/**
|
|
@@ -55,16 +55,16 @@ export interface Thread {
|
|
|
55
55
|
*/
|
|
56
56
|
title: string;
|
|
57
57
|
/**
|
|
58
|
-
* @generated from protobuf field: repeated resources.mailer.ThreadRecipientEmail recipients = 10
|
|
58
|
+
* @generated from protobuf field: repeated resources.mailer.threads.ThreadRecipientEmail recipients = 10
|
|
59
59
|
*/
|
|
60
60
|
recipients: ThreadRecipientEmail[];
|
|
61
61
|
/**
|
|
62
|
-
* @generated from protobuf field: optional resources.mailer.ThreadState state = 11
|
|
62
|
+
* @generated from protobuf field: optional resources.mailer.threads.ThreadState state = 11
|
|
63
63
|
*/
|
|
64
64
|
state?: ThreadState;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* @generated from protobuf message resources.mailer.ThreadRecipientEmail
|
|
67
|
+
* @generated from protobuf message resources.mailer.threads.ThreadRecipientEmail
|
|
68
68
|
*/
|
|
69
69
|
export interface ThreadRecipientEmail {
|
|
70
70
|
/**
|
|
@@ -84,12 +84,12 @@ export interface ThreadRecipientEmail {
|
|
|
84
84
|
*/
|
|
85
85
|
emailId: number;
|
|
86
86
|
/**
|
|
87
|
-
* @generated from protobuf field: optional resources.mailer.Email email = 6
|
|
87
|
+
* @generated from protobuf field: optional resources.mailer.emails.Email email = 6
|
|
88
88
|
*/
|
|
89
89
|
email?: Email;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* @generated from protobuf message resources.mailer.ThreadState
|
|
92
|
+
* @generated from protobuf message resources.mailer.threads.ThreadState
|
|
93
93
|
*/
|
|
94
94
|
export interface ThreadState {
|
|
95
95
|
/**
|
|
@@ -128,7 +128,7 @@ export interface ThreadState {
|
|
|
128
128
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
129
129
|
class Thread$Type extends MessageType<Thread> {
|
|
130
130
|
constructor() {
|
|
131
|
-
super("resources.mailer.Thread", [
|
|
131
|
+
super("resources.mailer.threads.Thread", [
|
|
132
132
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
133
133
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
134
134
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
@@ -137,7 +137,7 @@ class Thread$Type extends MessageType<Thread> {
|
|
|
137
137
|
{ no: 6, name: "creator_email", kind: "message", T: () => Email },
|
|
138
138
|
{ no: 7, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
139
139
|
{ no: 8, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
140
|
-
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true,
|
|
140
|
+
{ no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
141
141
|
{ no: 10, name: "recipients", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ThreadRecipientEmail, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
142
142
|
{ no: 11, name: "state", kind: "message", T: () => ThreadState, options: { "tagger.tags": "alias:\"thread_state\"" } }
|
|
143
143
|
]);
|
|
@@ -172,22 +172,22 @@ class Thread$Type extends MessageType<Thread> {
|
|
|
172
172
|
case /* int64 creator_email_id */ 5:
|
|
173
173
|
message.creatorEmailId = reader.int64().toNumber();
|
|
174
174
|
break;
|
|
175
|
-
case /* optional resources.mailer.Email creator_email */ 6:
|
|
175
|
+
case /* optional resources.mailer.emails.Email creator_email */ 6:
|
|
176
176
|
message.creatorEmail = Email.internalBinaryRead(reader, reader.uint32(), options, message.creatorEmail);
|
|
177
177
|
break;
|
|
178
178
|
case /* optional int32 creator_id */ 7:
|
|
179
179
|
message.creatorId = reader.int32();
|
|
180
180
|
break;
|
|
181
|
-
case /* optional resources.users.UserShort creator */ 8:
|
|
181
|
+
case /* optional resources.users.short.UserShort creator */ 8:
|
|
182
182
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
183
183
|
break;
|
|
184
184
|
case /* string title */ 9:
|
|
185
185
|
message.title = reader.string();
|
|
186
186
|
break;
|
|
187
|
-
case /* repeated resources.mailer.ThreadRecipientEmail recipients */ 10:
|
|
187
|
+
case /* repeated resources.mailer.threads.ThreadRecipientEmail recipients */ 10:
|
|
188
188
|
message.recipients.push(ThreadRecipientEmail.internalBinaryRead(reader, reader.uint32(), options));
|
|
189
189
|
break;
|
|
190
|
-
case /* optional resources.mailer.ThreadState state */ 11:
|
|
190
|
+
case /* optional resources.mailer.threads.ThreadState state */ 11:
|
|
191
191
|
message.state = ThreadState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
192
192
|
break;
|
|
193
193
|
default:
|
|
@@ -217,22 +217,22 @@ class Thread$Type extends MessageType<Thread> {
|
|
|
217
217
|
/* int64 creator_email_id = 5; */
|
|
218
218
|
if (message.creatorEmailId !== 0)
|
|
219
219
|
writer.tag(5, WireType.Varint).int64(message.creatorEmailId);
|
|
220
|
-
/* optional resources.mailer.Email creator_email = 6; */
|
|
220
|
+
/* optional resources.mailer.emails.Email creator_email = 6; */
|
|
221
221
|
if (message.creatorEmail)
|
|
222
222
|
Email.internalBinaryWrite(message.creatorEmail, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
223
223
|
/* optional int32 creator_id = 7; */
|
|
224
224
|
if (message.creatorId !== undefined)
|
|
225
225
|
writer.tag(7, WireType.Varint).int32(message.creatorId);
|
|
226
|
-
/* optional resources.users.UserShort creator = 8; */
|
|
226
|
+
/* optional resources.users.short.UserShort creator = 8; */
|
|
227
227
|
if (message.creator)
|
|
228
228
|
UserShort.internalBinaryWrite(message.creator, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
229
229
|
/* string title = 9; */
|
|
230
230
|
if (message.title !== "")
|
|
231
231
|
writer.tag(9, WireType.LengthDelimited).string(message.title);
|
|
232
|
-
/* repeated resources.mailer.ThreadRecipientEmail recipients = 10; */
|
|
232
|
+
/* repeated resources.mailer.threads.ThreadRecipientEmail recipients = 10; */
|
|
233
233
|
for (let i = 0; i < message.recipients.length; i++)
|
|
234
234
|
ThreadRecipientEmail.internalBinaryWrite(message.recipients[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
-
/* optional resources.mailer.ThreadState state = 11; */
|
|
235
|
+
/* optional resources.mailer.threads.ThreadState state = 11; */
|
|
236
236
|
if (message.state)
|
|
237
237
|
ThreadState.internalBinaryWrite(message.state, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
238
238
|
let u = options.writeUnknownFields;
|
|
@@ -242,13 +242,13 @@ class Thread$Type extends MessageType<Thread> {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
/**
|
|
245
|
-
* @generated MessageType for protobuf message resources.mailer.Thread
|
|
245
|
+
* @generated MessageType for protobuf message resources.mailer.threads.Thread
|
|
246
246
|
*/
|
|
247
247
|
export const Thread = new Thread$Type();
|
|
248
248
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
249
249
|
class ThreadRecipientEmail$Type extends MessageType<ThreadRecipientEmail> {
|
|
250
250
|
constructor() {
|
|
251
|
-
super("resources.mailer.ThreadRecipientEmail", [
|
|
251
|
+
super("resources.mailer.threads.ThreadRecipientEmail", [
|
|
252
252
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
253
253
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
254
254
|
{ no: 4, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"thread_id\"" } },
|
|
@@ -282,7 +282,7 @@ class ThreadRecipientEmail$Type extends MessageType<ThreadRecipientEmail> {
|
|
|
282
282
|
case /* int64 email_id */ 5:
|
|
283
283
|
message.emailId = reader.int64().toNumber();
|
|
284
284
|
break;
|
|
285
|
-
case /* optional resources.mailer.Email email */ 6:
|
|
285
|
+
case /* optional resources.mailer.emails.Email email */ 6:
|
|
286
286
|
message.email = Email.internalBinaryRead(reader, reader.uint32(), options, message.email);
|
|
287
287
|
break;
|
|
288
288
|
default:
|
|
@@ -309,7 +309,7 @@ class ThreadRecipientEmail$Type extends MessageType<ThreadRecipientEmail> {
|
|
|
309
309
|
/* int64 email_id = 5; */
|
|
310
310
|
if (message.emailId !== 0)
|
|
311
311
|
writer.tag(5, WireType.Varint).int64(message.emailId);
|
|
312
|
-
/* optional resources.mailer.Email email = 6; */
|
|
312
|
+
/* optional resources.mailer.emails.Email email = 6; */
|
|
313
313
|
if (message.email)
|
|
314
314
|
Email.internalBinaryWrite(message.email, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
315
315
|
let u = options.writeUnknownFields;
|
|
@@ -319,13 +319,13 @@ class ThreadRecipientEmail$Type extends MessageType<ThreadRecipientEmail> {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
322
|
-
* @generated MessageType for protobuf message resources.mailer.ThreadRecipientEmail
|
|
322
|
+
* @generated MessageType for protobuf message resources.mailer.threads.ThreadRecipientEmail
|
|
323
323
|
*/
|
|
324
324
|
export const ThreadRecipientEmail = new ThreadRecipientEmail$Type();
|
|
325
325
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
326
326
|
class ThreadState$Type extends MessageType<ThreadState> {
|
|
327
327
|
constructor() {
|
|
328
|
-
super("resources.mailer.ThreadState", [
|
|
328
|
+
super("resources.mailer.threads.ThreadState", [
|
|
329
329
|
{ no: 1, name: "thread_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
330
330
|
{ no: 2, name: "email_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
331
331
|
{ no: 3, name: "last_read", kind: "message", T: () => Timestamp },
|
|
@@ -416,6 +416,6 @@ class ThreadState$Type extends MessageType<ThreadState> {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
|
-
* @generated MessageType for protobuf message resources.mailer.ThreadState
|
|
419
|
+
* @generated MessageType for protobuf message resources.mailer.threads.ThreadState
|
|
420
420
|
*/
|
|
421
421
|
export const ThreadState = new ThreadState$Type();
|