@fivenet-app/gen 0.9.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/package.json +15 -0
- package/perms.ts +178 -0
- package/resources/accounts/accounts.ts +195 -0
- package/resources/accounts/oauth2.ts +230 -0
- package/resources/calendar/access.ts +362 -0
- package/resources/calendar/calendar.ts +955 -0
- package/resources/centrum/access.ts +380 -0
- package/resources/centrum/dispatches.ts +854 -0
- package/resources/centrum/general.ts +231 -0
- package/resources/centrum/settings.ts +303 -0
- package/resources/centrum/units.ts +620 -0
- package/resources/common/access/dummy.ts +309 -0
- package/resources/common/content/content.ts +252 -0
- package/resources/common/cron/cron.ts +536 -0
- package/resources/common/database/database.ts +306 -0
- package/resources/common/error.ts +79 -0
- package/resources/common/grpcws/grpcws.ts +615 -0
- package/resources/common/i18n.ts +102 -0
- package/resources/common/uuid.ts +68 -0
- package/resources/documents/access.ts +388 -0
- package/resources/documents/activity.ts +803 -0
- package/resources/documents/category.ts +132 -0
- package/resources/documents/comment.ts +161 -0
- package/resources/documents/documents.ts +1124 -0
- package/resources/documents/requests.ts +196 -0
- package/resources/documents/templates.ts +949 -0
- package/resources/documents/workflow.ts +349 -0
- package/resources/filestore/file.ts +204 -0
- package/resources/internet/ads.ts +257 -0
- package/resources/internet/domain.ts +136 -0
- package/resources/internet/internet.ts +344 -0
- package/resources/internet/page.ts +236 -0
- package/resources/internet/search.ts +104 -0
- package/resources/jobs/activity.ts +600 -0
- package/resources/jobs/colleagues.ts +346 -0
- package/resources/jobs/conduct.ts +220 -0
- package/resources/jobs/labels.ts +240 -0
- package/resources/jobs/timeclock.ts +372 -0
- package/resources/laws/laws.ts +293 -0
- package/resources/livemap/livemap.ts +728 -0
- package/resources/livemap/tracker.ts +81 -0
- package/resources/mailer/access.ts +485 -0
- package/resources/mailer/email.ts +222 -0
- package/resources/mailer/events.ts +196 -0
- package/resources/mailer/message.ts +285 -0
- package/resources/mailer/settings.ts +95 -0
- package/resources/mailer/template.ts +164 -0
- package/resources/mailer/thread.ts +422 -0
- package/resources/mailer/user.ts +93 -0
- package/resources/notifications/events.ts +287 -0
- package/resources/notifications/notifications.ts +444 -0
- package/resources/permissions/permissions.ts +829 -0
- package/resources/qualifications/access.ts +275 -0
- package/resources/qualifications/exam.ts +1421 -0
- package/resources/qualifications/qualifications.ts +1289 -0
- package/resources/rector/audit.ts +226 -0
- package/resources/rector/config.ts +922 -0
- package/resources/stats/stats.ts +67 -0
- package/resources/sync/activity.ts +356 -0
- package/resources/sync/data.ts +455 -0
- package/resources/timestamp/timestamp.ts +78 -0
- package/resources/users/activity.ts +211 -0
- package/resources/users/job_props.ts +992 -0
- package/resources/users/jobs.ts +171 -0
- package/resources/users/labels.ts +161 -0
- package/resources/users/props.ts +207 -0
- package/resources/users/users.ts +570 -0
- package/resources/vehicles/vehicles.ts +114 -0
- package/resources/wiki/access.ts +362 -0
- package/resources/wiki/activity.ts +591 -0
- package/resources/wiki/page.ts +548 -0
- package/services/auth/auth.client.ts +171 -0
- package/services/auth/auth.ts +1331 -0
- package/services/calendar/calendar.client.ts +262 -0
- package/services/calendar/calendar.ts +1733 -0
- package/services/centrum/centrum.client.ts +365 -0
- package/services/centrum/centrum.ts +2619 -0
- package/services/citizenstore/citizenstore.client.ts +126 -0
- package/services/citizenstore/citizenstore.ts +847 -0
- package/services/completor/completor.client.ts +109 -0
- package/services/completor/completor.ts +616 -0
- package/services/dmv/vehicles.client.ts +41 -0
- package/services/dmv/vehicles.ts +191 -0
- package/services/docstore/docstore.client.ts +653 -0
- package/services/docstore/docstore.ts +4571 -0
- package/services/internet/ads.client.ts +41 -0
- package/services/internet/ads.ts +145 -0
- package/services/internet/internet.client.ts +58 -0
- package/services/internet/internet.ts +257 -0
- package/services/jobs/conduct.client.ts +92 -0
- package/services/jobs/conduct.ts +541 -0
- package/services/jobs/jobs.client.ts +194 -0
- package/services/jobs/jobs.ts +1301 -0
- package/services/jobs/timeclock.client.ts +75 -0
- package/services/jobs/timeclock.ts +808 -0
- package/services/livemapper/livemap.client.ts +76 -0
- package/services/livemapper/livemap.ts +552 -0
- package/services/mailer/mailer.client.ts +381 -0
- package/services/mailer/mailer.ts +2590 -0
- package/services/notificator/notificator.client.ts +76 -0
- package/services/notificator/notificator.ts +510 -0
- package/services/qualifications/qualifications.client.ts +279 -0
- package/services/qualifications/qualifications.ts +2142 -0
- package/services/rector/config.client.ts +58 -0
- package/services/rector/config.ts +216 -0
- package/services/rector/filestore.client.ts +75 -0
- package/services/rector/filestore.ts +378 -0
- package/services/rector/laws.client.ts +92 -0
- package/services/rector/laws.ts +416 -0
- package/services/rector/rector.client.ts +211 -0
- package/services/rector/rector.ts +1540 -0
- package/services/stats/stats.client.ts +37 -0
- package/services/stats/stats.ts +128 -0
- package/services/sync/sync.client.ts +110 -0
- package/services/sync/sync.ts +831 -0
- package/services/wiki/wiki.client.ts +126 -0
- package/services/wiki/wiki.ts +749 -0
- package/svcs.ts +307 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/notifications/notifications.proto" (package "resources.notifications", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { UserShort } from "../users/users";
|
|
14
|
+
import { TranslateItem } from "../common/i18n";
|
|
15
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf message resources.notifications.Notification
|
|
18
|
+
*/
|
|
19
|
+
export interface Notification {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
26
|
+
*/
|
|
27
|
+
createdAt?: Timestamp;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: resources.timestamp.Timestamp read_at = 3;
|
|
30
|
+
*/
|
|
31
|
+
readAt?: Timestamp;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: int32 user_id = 4;
|
|
34
|
+
*/
|
|
35
|
+
userId: number;
|
|
36
|
+
/**
|
|
37
|
+
* @sanitize
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf field: resources.common.TranslateItem title = 5;
|
|
40
|
+
*/
|
|
41
|
+
title?: TranslateItem;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: resources.notifications.NotificationType type = 6;
|
|
44
|
+
*/
|
|
45
|
+
type: NotificationType;
|
|
46
|
+
/**
|
|
47
|
+
* @sanitize
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf field: resources.common.TranslateItem content = 7;
|
|
50
|
+
*/
|
|
51
|
+
content?: TranslateItem;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: resources.notifications.NotificationCategory category = 8;
|
|
54
|
+
*/
|
|
55
|
+
category: NotificationCategory;
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: optional resources.notifications.Data data = 9;
|
|
58
|
+
*/
|
|
59
|
+
data?: Data;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf field: optional bool starred = 10;
|
|
62
|
+
*/
|
|
63
|
+
starred?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf message resources.notifications.Data
|
|
67
|
+
*/
|
|
68
|
+
export interface Data {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: optional resources.notifications.Link link = 1;
|
|
71
|
+
*/
|
|
72
|
+
link?: Link;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: optional resources.users.UserShort caused_by = 2;
|
|
75
|
+
*/
|
|
76
|
+
causedBy?: UserShort;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf field: optional resources.notifications.CalendarData calendar = 3;
|
|
79
|
+
*/
|
|
80
|
+
calendar?: CalendarData;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf message resources.notifications.Link
|
|
84
|
+
*/
|
|
85
|
+
export interface Link {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: string to = 1;
|
|
88
|
+
*/
|
|
89
|
+
to: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: optional string title = 2;
|
|
92
|
+
*/
|
|
93
|
+
title?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf field: optional bool external = 3;
|
|
96
|
+
*/
|
|
97
|
+
external?: boolean;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf message resources.notifications.CalendarData
|
|
101
|
+
*/
|
|
102
|
+
export interface CalendarData {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: optional uint64 calendar_id = 1 [jstype = JS_STRING];
|
|
105
|
+
*/
|
|
106
|
+
calendarId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf field: optional uint64 calendar_entry_id = 2 [jstype = JS_STRING];
|
|
109
|
+
*/
|
|
110
|
+
calendarEntryId?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf enum resources.notifications.NotificationType
|
|
114
|
+
*/
|
|
115
|
+
export enum NotificationType {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf enum value: NOTIFICATION_TYPE_UNSPECIFIED = 0;
|
|
118
|
+
*/
|
|
119
|
+
UNSPECIFIED = 0,
|
|
120
|
+
/**
|
|
121
|
+
* @generated from protobuf enum value: NOTIFICATION_TYPE_ERROR = 1;
|
|
122
|
+
*/
|
|
123
|
+
ERROR = 1,
|
|
124
|
+
/**
|
|
125
|
+
* @generated from protobuf enum value: NOTIFICATION_TYPE_WARNING = 2;
|
|
126
|
+
*/
|
|
127
|
+
WARNING = 2,
|
|
128
|
+
/**
|
|
129
|
+
* @generated from protobuf enum value: NOTIFICATION_TYPE_INFO = 3;
|
|
130
|
+
*/
|
|
131
|
+
INFO = 3,
|
|
132
|
+
/**
|
|
133
|
+
* @generated from protobuf enum value: NOTIFICATION_TYPE_SUCCESS = 4;
|
|
134
|
+
*/
|
|
135
|
+
SUCCESS = 4
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @generated from protobuf enum resources.notifications.NotificationCategory
|
|
139
|
+
*/
|
|
140
|
+
export enum NotificationCategory {
|
|
141
|
+
/**
|
|
142
|
+
* @generated from protobuf enum value: NOTIFICATION_CATEGORY_UNSPECIFIED = 0;
|
|
143
|
+
*/
|
|
144
|
+
UNSPECIFIED = 0,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from protobuf enum value: NOTIFICATION_CATEGORY_GENERAL = 1;
|
|
147
|
+
*/
|
|
148
|
+
GENERAL = 1,
|
|
149
|
+
/**
|
|
150
|
+
* @generated from protobuf enum value: NOTIFICATION_CATEGORY_DOCUMENT = 2;
|
|
151
|
+
*/
|
|
152
|
+
DOCUMENT = 2,
|
|
153
|
+
/**
|
|
154
|
+
* @generated from protobuf enum value: NOTIFICATION_CATEGORY_CALENDAR = 3;
|
|
155
|
+
*/
|
|
156
|
+
CALENDAR = 3
|
|
157
|
+
}
|
|
158
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
159
|
+
class Notification$Type extends MessageType<Notification> {
|
|
160
|
+
constructor() {
|
|
161
|
+
super("resources.notifications.Notification", [
|
|
162
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
163
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
164
|
+
{ no: 3, name: "read_at", kind: "message", T: () => Timestamp },
|
|
165
|
+
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
166
|
+
{ no: 5, name: "title", kind: "message", T: () => TranslateItem },
|
|
167
|
+
{ no: 6, name: "type", kind: "enum", T: () => ["resources.notifications.NotificationType", NotificationType, "NOTIFICATION_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
168
|
+
{ no: 7, name: "content", kind: "message", T: () => TranslateItem },
|
|
169
|
+
{ no: 8, name: "category", kind: "enum", T: () => ["resources.notifications.NotificationCategory", NotificationCategory, "NOTIFICATION_CATEGORY_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
170
|
+
{ no: 9, name: "data", kind: "message", T: () => Data },
|
|
171
|
+
{ no: 10, name: "starred", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
172
|
+
]);
|
|
173
|
+
}
|
|
174
|
+
create(value?: PartialMessage<Notification>): Notification {
|
|
175
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
176
|
+
message.id = "0";
|
|
177
|
+
message.userId = 0;
|
|
178
|
+
message.type = 0;
|
|
179
|
+
message.category = 0;
|
|
180
|
+
if (value !== undefined)
|
|
181
|
+
reflectionMergePartial<Notification>(this, message, value);
|
|
182
|
+
return message;
|
|
183
|
+
}
|
|
184
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification): Notification {
|
|
185
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
186
|
+
while (reader.pos < end) {
|
|
187
|
+
let [fieldNo, wireType] = reader.tag();
|
|
188
|
+
switch (fieldNo) {
|
|
189
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
190
|
+
message.id = reader.uint64().toString();
|
|
191
|
+
break;
|
|
192
|
+
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
193
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
194
|
+
break;
|
|
195
|
+
case /* resources.timestamp.Timestamp read_at */ 3:
|
|
196
|
+
message.readAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.readAt);
|
|
197
|
+
break;
|
|
198
|
+
case /* int32 user_id */ 4:
|
|
199
|
+
message.userId = reader.int32();
|
|
200
|
+
break;
|
|
201
|
+
case /* resources.common.TranslateItem title */ 5:
|
|
202
|
+
message.title = TranslateItem.internalBinaryRead(reader, reader.uint32(), options, message.title);
|
|
203
|
+
break;
|
|
204
|
+
case /* resources.notifications.NotificationType type */ 6:
|
|
205
|
+
message.type = reader.int32();
|
|
206
|
+
break;
|
|
207
|
+
case /* resources.common.TranslateItem content */ 7:
|
|
208
|
+
message.content = TranslateItem.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
209
|
+
break;
|
|
210
|
+
case /* resources.notifications.NotificationCategory category */ 8:
|
|
211
|
+
message.category = reader.int32();
|
|
212
|
+
break;
|
|
213
|
+
case /* optional resources.notifications.Data data */ 9:
|
|
214
|
+
message.data = Data.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
215
|
+
break;
|
|
216
|
+
case /* optional bool starred */ 10:
|
|
217
|
+
message.starred = reader.bool();
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
let u = options.readUnknownField;
|
|
221
|
+
if (u === "throw")
|
|
222
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
223
|
+
let d = reader.skip(wireType);
|
|
224
|
+
if (u !== false)
|
|
225
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return message;
|
|
229
|
+
}
|
|
230
|
+
internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
231
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
232
|
+
if (message.id !== "0")
|
|
233
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
234
|
+
/* resources.timestamp.Timestamp created_at = 2; */
|
|
235
|
+
if (message.createdAt)
|
|
236
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
237
|
+
/* resources.timestamp.Timestamp read_at = 3; */
|
|
238
|
+
if (message.readAt)
|
|
239
|
+
Timestamp.internalBinaryWrite(message.readAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
240
|
+
/* int32 user_id = 4; */
|
|
241
|
+
if (message.userId !== 0)
|
|
242
|
+
writer.tag(4, WireType.Varint).int32(message.userId);
|
|
243
|
+
/* resources.common.TranslateItem title = 5; */
|
|
244
|
+
if (message.title)
|
|
245
|
+
TranslateItem.internalBinaryWrite(message.title, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
246
|
+
/* resources.notifications.NotificationType type = 6; */
|
|
247
|
+
if (message.type !== 0)
|
|
248
|
+
writer.tag(6, WireType.Varint).int32(message.type);
|
|
249
|
+
/* resources.common.TranslateItem content = 7; */
|
|
250
|
+
if (message.content)
|
|
251
|
+
TranslateItem.internalBinaryWrite(message.content, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
252
|
+
/* resources.notifications.NotificationCategory category = 8; */
|
|
253
|
+
if (message.category !== 0)
|
|
254
|
+
writer.tag(8, WireType.Varint).int32(message.category);
|
|
255
|
+
/* optional resources.notifications.Data data = 9; */
|
|
256
|
+
if (message.data)
|
|
257
|
+
Data.internalBinaryWrite(message.data, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
258
|
+
/* optional bool starred = 10; */
|
|
259
|
+
if (message.starred !== undefined)
|
|
260
|
+
writer.tag(10, WireType.Varint).bool(message.starred);
|
|
261
|
+
let u = options.writeUnknownFields;
|
|
262
|
+
if (u !== false)
|
|
263
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
264
|
+
return writer;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @generated MessageType for protobuf message resources.notifications.Notification
|
|
269
|
+
*/
|
|
270
|
+
export const Notification = new Notification$Type();
|
|
271
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
272
|
+
class Data$Type extends MessageType<Data> {
|
|
273
|
+
constructor() {
|
|
274
|
+
super("resources.notifications.Data", [
|
|
275
|
+
{ no: 1, name: "link", kind: "message", T: () => Link },
|
|
276
|
+
{ no: 2, name: "caused_by", kind: "message", T: () => UserShort },
|
|
277
|
+
{ no: 3, name: "calendar", kind: "message", T: () => CalendarData }
|
|
278
|
+
]);
|
|
279
|
+
}
|
|
280
|
+
create(value?: PartialMessage<Data>): Data {
|
|
281
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
282
|
+
if (value !== undefined)
|
|
283
|
+
reflectionMergePartial<Data>(this, message, value);
|
|
284
|
+
return message;
|
|
285
|
+
}
|
|
286
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Data): Data {
|
|
287
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
288
|
+
while (reader.pos < end) {
|
|
289
|
+
let [fieldNo, wireType] = reader.tag();
|
|
290
|
+
switch (fieldNo) {
|
|
291
|
+
case /* optional resources.notifications.Link link */ 1:
|
|
292
|
+
message.link = Link.internalBinaryRead(reader, reader.uint32(), options, message.link);
|
|
293
|
+
break;
|
|
294
|
+
case /* optional resources.users.UserShort caused_by */ 2:
|
|
295
|
+
message.causedBy = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.causedBy);
|
|
296
|
+
break;
|
|
297
|
+
case /* optional resources.notifications.CalendarData calendar */ 3:
|
|
298
|
+
message.calendar = CalendarData.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
299
|
+
break;
|
|
300
|
+
default:
|
|
301
|
+
let u = options.readUnknownField;
|
|
302
|
+
if (u === "throw")
|
|
303
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
304
|
+
let d = reader.skip(wireType);
|
|
305
|
+
if (u !== false)
|
|
306
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return message;
|
|
310
|
+
}
|
|
311
|
+
internalBinaryWrite(message: Data, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
312
|
+
/* optional resources.notifications.Link link = 1; */
|
|
313
|
+
if (message.link)
|
|
314
|
+
Link.internalBinaryWrite(message.link, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
315
|
+
/* optional resources.users.UserShort caused_by = 2; */
|
|
316
|
+
if (message.causedBy)
|
|
317
|
+
UserShort.internalBinaryWrite(message.causedBy, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
318
|
+
/* optional resources.notifications.CalendarData calendar = 3; */
|
|
319
|
+
if (message.calendar)
|
|
320
|
+
CalendarData.internalBinaryWrite(message.calendar, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
321
|
+
let u = options.writeUnknownFields;
|
|
322
|
+
if (u !== false)
|
|
323
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
324
|
+
return writer;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* @generated MessageType for protobuf message resources.notifications.Data
|
|
329
|
+
*/
|
|
330
|
+
export const Data = new Data$Type();
|
|
331
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
332
|
+
class Link$Type extends MessageType<Link> {
|
|
333
|
+
constructor() {
|
|
334
|
+
super("resources.notifications.Link", [
|
|
335
|
+
{ no: 1, name: "to", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
336
|
+
{ no: 2, name: "title", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
337
|
+
{ no: 3, name: "external", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
338
|
+
]);
|
|
339
|
+
}
|
|
340
|
+
create(value?: PartialMessage<Link>): Link {
|
|
341
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
342
|
+
message.to = "";
|
|
343
|
+
if (value !== undefined)
|
|
344
|
+
reflectionMergePartial<Link>(this, message, value);
|
|
345
|
+
return message;
|
|
346
|
+
}
|
|
347
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Link): Link {
|
|
348
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
let [fieldNo, wireType] = reader.tag();
|
|
351
|
+
switch (fieldNo) {
|
|
352
|
+
case /* string to */ 1:
|
|
353
|
+
message.to = reader.string();
|
|
354
|
+
break;
|
|
355
|
+
case /* optional string title */ 2:
|
|
356
|
+
message.title = reader.string();
|
|
357
|
+
break;
|
|
358
|
+
case /* optional bool external */ 3:
|
|
359
|
+
message.external = reader.bool();
|
|
360
|
+
break;
|
|
361
|
+
default:
|
|
362
|
+
let u = options.readUnknownField;
|
|
363
|
+
if (u === "throw")
|
|
364
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
365
|
+
let d = reader.skip(wireType);
|
|
366
|
+
if (u !== false)
|
|
367
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return message;
|
|
371
|
+
}
|
|
372
|
+
internalBinaryWrite(message: Link, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
373
|
+
/* string to = 1; */
|
|
374
|
+
if (message.to !== "")
|
|
375
|
+
writer.tag(1, WireType.LengthDelimited).string(message.to);
|
|
376
|
+
/* optional string title = 2; */
|
|
377
|
+
if (message.title !== undefined)
|
|
378
|
+
writer.tag(2, WireType.LengthDelimited).string(message.title);
|
|
379
|
+
/* optional bool external = 3; */
|
|
380
|
+
if (message.external !== undefined)
|
|
381
|
+
writer.tag(3, WireType.Varint).bool(message.external);
|
|
382
|
+
let u = options.writeUnknownFields;
|
|
383
|
+
if (u !== false)
|
|
384
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
385
|
+
return writer;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @generated MessageType for protobuf message resources.notifications.Link
|
|
390
|
+
*/
|
|
391
|
+
export const Link = new Link$Type();
|
|
392
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
393
|
+
class CalendarData$Type extends MessageType<CalendarData> {
|
|
394
|
+
constructor() {
|
|
395
|
+
super("resources.notifications.CalendarData", [
|
|
396
|
+
{ no: 1, name: "calendar_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
397
|
+
{ no: 2, name: "calendar_entry_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ }
|
|
398
|
+
]);
|
|
399
|
+
}
|
|
400
|
+
create(value?: PartialMessage<CalendarData>): CalendarData {
|
|
401
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
402
|
+
if (value !== undefined)
|
|
403
|
+
reflectionMergePartial<CalendarData>(this, message, value);
|
|
404
|
+
return message;
|
|
405
|
+
}
|
|
406
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarData): CalendarData {
|
|
407
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
408
|
+
while (reader.pos < end) {
|
|
409
|
+
let [fieldNo, wireType] = reader.tag();
|
|
410
|
+
switch (fieldNo) {
|
|
411
|
+
case /* optional uint64 calendar_id = 1 [jstype = JS_STRING];*/ 1:
|
|
412
|
+
message.calendarId = reader.uint64().toString();
|
|
413
|
+
break;
|
|
414
|
+
case /* optional uint64 calendar_entry_id = 2 [jstype = JS_STRING];*/ 2:
|
|
415
|
+
message.calendarEntryId = reader.uint64().toString();
|
|
416
|
+
break;
|
|
417
|
+
default:
|
|
418
|
+
let u = options.readUnknownField;
|
|
419
|
+
if (u === "throw")
|
|
420
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
421
|
+
let d = reader.skip(wireType);
|
|
422
|
+
if (u !== false)
|
|
423
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return message;
|
|
427
|
+
}
|
|
428
|
+
internalBinaryWrite(message: CalendarData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
429
|
+
/* optional uint64 calendar_id = 1 [jstype = JS_STRING]; */
|
|
430
|
+
if (message.calendarId !== undefined)
|
|
431
|
+
writer.tag(1, WireType.Varint).uint64(message.calendarId);
|
|
432
|
+
/* optional uint64 calendar_entry_id = 2 [jstype = JS_STRING]; */
|
|
433
|
+
if (message.calendarEntryId !== undefined)
|
|
434
|
+
writer.tag(2, WireType.Varint).uint64(message.calendarEntryId);
|
|
435
|
+
let u = options.writeUnknownFields;
|
|
436
|
+
if (u !== false)
|
|
437
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
438
|
+
return writer;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @generated MessageType for protobuf message resources.notifications.CalendarData
|
|
443
|
+
*/
|
|
444
|
+
export const CalendarData = new CalendarData$Type();
|