@fivenet-app/gen 2025.5.3 → 2026.3.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/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- 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/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "resources/notifications/events.proto" (package "resources.notifications", syntax proto3)
|
|
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/notifications/events/events.proto" (package "resources.notifications.events", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -10,13 +11,14 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import {
|
|
14
|
-
import { JobProps } from "
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
import { ClientConfig } from "../../clientconfig/clientconfig";
|
|
15
|
+
import { JobProps } from "../../jobs/props/props";
|
|
16
|
+
import { UserInfoChanged } from "../../userinfo/userinfo";
|
|
17
|
+
import { Notification } from "../notifications";
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* User related events
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf message resources.notifications.events.UserEvent
|
|
20
22
|
*/
|
|
21
23
|
export interface UserEvent {
|
|
22
24
|
/**
|
|
@@ -25,7 +27,7 @@ export interface UserEvent {
|
|
|
25
27
|
data: {
|
|
26
28
|
oneofKind: "refreshToken";
|
|
27
29
|
/**
|
|
28
|
-
* @generated from protobuf field: bool refresh_token = 1
|
|
30
|
+
* @generated from protobuf field: bool refresh_token = 1
|
|
29
31
|
*/
|
|
30
32
|
refreshToken: boolean;
|
|
31
33
|
} | {
|
|
@@ -33,23 +35,29 @@ export interface UserEvent {
|
|
|
33
35
|
/**
|
|
34
36
|
* Notifications
|
|
35
37
|
*
|
|
36
|
-
* @generated from protobuf field: resources.notifications.Notification notification = 2
|
|
38
|
+
* @generated from protobuf field: resources.notifications.Notification notification = 2
|
|
37
39
|
*/
|
|
38
40
|
notification: Notification;
|
|
39
41
|
} | {
|
|
40
42
|
oneofKind: "notificationsReadCount";
|
|
41
43
|
/**
|
|
42
|
-
* @generated from protobuf field:
|
|
44
|
+
* @generated from protobuf field: int64 notifications_read_count = 3
|
|
43
45
|
*/
|
|
44
46
|
notificationsReadCount: number;
|
|
47
|
+
} | {
|
|
48
|
+
oneofKind: "userInfoChanged";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: resources.userinfo.UserInfoChanged user_info_changed = 4
|
|
51
|
+
*/
|
|
52
|
+
userInfoChanged: UserInfoChanged;
|
|
45
53
|
} | {
|
|
46
54
|
oneofKind: undefined;
|
|
47
55
|
};
|
|
48
56
|
}
|
|
49
|
-
// Job Events
|
|
50
|
-
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* Job related events
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf message resources.notifications.events.JobEvent
|
|
53
61
|
*/
|
|
54
62
|
export interface JobEvent {
|
|
55
63
|
/**
|
|
@@ -58,17 +66,17 @@ export interface JobEvent {
|
|
|
58
66
|
data: {
|
|
59
67
|
oneofKind: "jobProps";
|
|
60
68
|
/**
|
|
61
|
-
* @generated from protobuf field: resources.jobs.JobProps job_props = 1
|
|
69
|
+
* @generated from protobuf field: resources.jobs.props.JobProps job_props = 1
|
|
62
70
|
*/
|
|
63
71
|
jobProps: JobProps;
|
|
64
72
|
} | {
|
|
65
73
|
oneofKind: undefined;
|
|
66
74
|
};
|
|
67
75
|
}
|
|
68
|
-
// Job Grade Events
|
|
69
|
-
|
|
70
76
|
/**
|
|
71
|
-
*
|
|
77
|
+
* Job grade events
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf message resources.notifications.events.JobGradeEvent
|
|
72
80
|
*/
|
|
73
81
|
export interface JobGradeEvent {
|
|
74
82
|
/**
|
|
@@ -77,58 +85,42 @@ export interface JobGradeEvent {
|
|
|
77
85
|
data: {
|
|
78
86
|
oneofKind: "refreshToken";
|
|
79
87
|
/**
|
|
80
|
-
* @generated from protobuf field: bool refresh_token = 1
|
|
88
|
+
* @generated from protobuf field: bool refresh_token = 1
|
|
81
89
|
*/
|
|
82
90
|
refreshToken: boolean;
|
|
83
91
|
} | {
|
|
84
92
|
oneofKind: undefined;
|
|
85
93
|
};
|
|
86
94
|
}
|
|
87
|
-
// System Events
|
|
88
|
-
|
|
89
95
|
/**
|
|
90
|
-
*
|
|
96
|
+
* System related events
|
|
97
|
+
*
|
|
98
|
+
* @generated from protobuf message resources.notifications.events.SystemEvent
|
|
91
99
|
*/
|
|
92
100
|
export interface SystemEvent {
|
|
93
101
|
/**
|
|
94
102
|
* @generated from protobuf oneof: data
|
|
95
103
|
*/
|
|
96
104
|
data: {
|
|
97
|
-
oneofKind: "
|
|
105
|
+
oneofKind: "clientConfig";
|
|
98
106
|
/**
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} | {
|
|
103
|
-
oneofKind: "bannerMessage";
|
|
104
|
-
/**
|
|
105
|
-
* @generated from protobuf field: resources.notifications.BannerMessageWrapper banner_message = 2;
|
|
107
|
+
* Client configuration update (e.g., feature gates, game settings, banner message)
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: resources.clientconfig.ClientConfig client_config = 1
|
|
106
110
|
*/
|
|
107
|
-
|
|
111
|
+
clientConfig: ClientConfig;
|
|
108
112
|
} | {
|
|
109
113
|
oneofKind: undefined;
|
|
110
114
|
};
|
|
111
115
|
}
|
|
112
|
-
/**
|
|
113
|
-
* @generated from protobuf message resources.notifications.BannerMessageWrapper
|
|
114
|
-
*/
|
|
115
|
-
export interface BannerMessageWrapper {
|
|
116
|
-
/**
|
|
117
|
-
* @generated from protobuf field: bool banner_message_enabled = 1;
|
|
118
|
-
*/
|
|
119
|
-
bannerMessageEnabled: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* @generated from protobuf field: optional resources.settings.BannerMessage banner_message = 2;
|
|
122
|
-
*/
|
|
123
|
-
bannerMessage?: BannerMessage;
|
|
124
|
-
}
|
|
125
116
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
126
117
|
class UserEvent$Type extends MessageType<UserEvent> {
|
|
127
118
|
constructor() {
|
|
128
|
-
super("resources.notifications.UserEvent", [
|
|
119
|
+
super("resources.notifications.events.UserEvent", [
|
|
129
120
|
{ no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ },
|
|
130
121
|
{ no: 2, name: "notification", kind: "message", oneof: "data", T: () => Notification },
|
|
131
|
-
{ no: 3, name: "notifications_read_count", kind: "scalar", oneof: "data", T:
|
|
122
|
+
{ no: 3, name: "notifications_read_count", kind: "scalar", oneof: "data", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
123
|
+
{ no: 4, name: "user_info_changed", kind: "message", oneof: "data", T: () => UserInfoChanged }
|
|
132
124
|
]);
|
|
133
125
|
}
|
|
134
126
|
create(value?: PartialMessage<UserEvent>): UserEvent {
|
|
@@ -155,10 +147,16 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
155
147
|
notification: Notification.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).notification)
|
|
156
148
|
};
|
|
157
149
|
break;
|
|
158
|
-
case /*
|
|
150
|
+
case /* int64 notifications_read_count */ 3:
|
|
159
151
|
message.data = {
|
|
160
152
|
oneofKind: "notificationsReadCount",
|
|
161
|
-
notificationsReadCount: reader.
|
|
153
|
+
notificationsReadCount: reader.int64().toNumber()
|
|
154
|
+
};
|
|
155
|
+
break;
|
|
156
|
+
case /* resources.userinfo.UserInfoChanged user_info_changed */ 4:
|
|
157
|
+
message.data = {
|
|
158
|
+
oneofKind: "userInfoChanged",
|
|
159
|
+
userInfoChanged: UserInfoChanged.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).userInfoChanged)
|
|
162
160
|
};
|
|
163
161
|
break;
|
|
164
162
|
default:
|
|
@@ -179,9 +177,12 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
179
177
|
/* resources.notifications.Notification notification = 2; */
|
|
180
178
|
if (message.data.oneofKind === "notification")
|
|
181
179
|
Notification.internalBinaryWrite(message.data.notification, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
182
|
-
/*
|
|
180
|
+
/* int64 notifications_read_count = 3; */
|
|
183
181
|
if (message.data.oneofKind === "notificationsReadCount")
|
|
184
|
-
writer.tag(3, WireType.Varint).
|
|
182
|
+
writer.tag(3, WireType.Varint).int64(message.data.notificationsReadCount);
|
|
183
|
+
/* resources.userinfo.UserInfoChanged user_info_changed = 4; */
|
|
184
|
+
if (message.data.oneofKind === "userInfoChanged")
|
|
185
|
+
UserInfoChanged.internalBinaryWrite(message.data.userInfoChanged, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
185
186
|
let u = options.writeUnknownFields;
|
|
186
187
|
if (u !== false)
|
|
187
188
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -189,13 +190,13 @@ class UserEvent$Type extends MessageType<UserEvent> {
|
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
/**
|
|
192
|
-
* @generated MessageType for protobuf message resources.notifications.UserEvent
|
|
193
|
+
* @generated MessageType for protobuf message resources.notifications.events.UserEvent
|
|
193
194
|
*/
|
|
194
195
|
export const UserEvent = new UserEvent$Type();
|
|
195
196
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
196
197
|
class JobEvent$Type extends MessageType<JobEvent> {
|
|
197
198
|
constructor() {
|
|
198
|
-
super("resources.notifications.JobEvent", [
|
|
199
|
+
super("resources.notifications.events.JobEvent", [
|
|
199
200
|
{ no: 1, name: "job_props", kind: "message", oneof: "data", T: () => JobProps }
|
|
200
201
|
]);
|
|
201
202
|
}
|
|
@@ -211,7 +212,7 @@ class JobEvent$Type extends MessageType<JobEvent> {
|
|
|
211
212
|
while (reader.pos < end) {
|
|
212
213
|
let [fieldNo, wireType] = reader.tag();
|
|
213
214
|
switch (fieldNo) {
|
|
214
|
-
case /* resources.jobs.JobProps job_props */ 1:
|
|
215
|
+
case /* resources.jobs.props.JobProps job_props */ 1:
|
|
215
216
|
message.data = {
|
|
216
217
|
oneofKind: "jobProps",
|
|
217
218
|
jobProps: JobProps.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).jobProps)
|
|
@@ -229,7 +230,7 @@ class JobEvent$Type extends MessageType<JobEvent> {
|
|
|
229
230
|
return message;
|
|
230
231
|
}
|
|
231
232
|
internalBinaryWrite(message: JobEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
232
|
-
/* resources.jobs.JobProps job_props = 1; */
|
|
233
|
+
/* resources.jobs.props.JobProps job_props = 1; */
|
|
233
234
|
if (message.data.oneofKind === "jobProps")
|
|
234
235
|
JobProps.internalBinaryWrite(message.data.jobProps, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
235
236
|
let u = options.writeUnknownFields;
|
|
@@ -239,13 +240,13 @@ class JobEvent$Type extends MessageType<JobEvent> {
|
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
242
|
/**
|
|
242
|
-
* @generated MessageType for protobuf message resources.notifications.JobEvent
|
|
243
|
+
* @generated MessageType for protobuf message resources.notifications.events.JobEvent
|
|
243
244
|
*/
|
|
244
245
|
export const JobEvent = new JobEvent$Type();
|
|
245
246
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
246
247
|
class JobGradeEvent$Type extends MessageType<JobGradeEvent> {
|
|
247
248
|
constructor() {
|
|
248
|
-
super("resources.notifications.JobGradeEvent", [
|
|
249
|
+
super("resources.notifications.events.JobGradeEvent", [
|
|
249
250
|
{ no: 1, name: "refresh_token", kind: "scalar", oneof: "data", T: 8 /*ScalarType.BOOL*/ }
|
|
250
251
|
]);
|
|
251
252
|
}
|
|
@@ -289,15 +290,14 @@ class JobGradeEvent$Type extends MessageType<JobGradeEvent> {
|
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
292
|
/**
|
|
292
|
-
* @generated MessageType for protobuf message resources.notifications.JobGradeEvent
|
|
293
|
+
* @generated MessageType for protobuf message resources.notifications.events.JobGradeEvent
|
|
293
294
|
*/
|
|
294
295
|
export const JobGradeEvent = new JobGradeEvent$Type();
|
|
295
296
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
296
297
|
class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
297
298
|
constructor() {
|
|
298
|
-
super("resources.notifications.SystemEvent", [
|
|
299
|
-
{ no: 1, name: "
|
|
300
|
-
{ no: 2, name: "banner_message", kind: "message", oneof: "data", T: () => BannerMessageWrapper }
|
|
299
|
+
super("resources.notifications.events.SystemEvent", [
|
|
300
|
+
{ no: 1, name: "client_config", kind: "message", oneof: "data", T: () => ClientConfig }
|
|
301
301
|
]);
|
|
302
302
|
}
|
|
303
303
|
create(value?: PartialMessage<SystemEvent>): SystemEvent {
|
|
@@ -312,16 +312,10 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
312
312
|
while (reader.pos < end) {
|
|
313
313
|
let [fieldNo, wireType] = reader.tag();
|
|
314
314
|
switch (fieldNo) {
|
|
315
|
-
case /*
|
|
315
|
+
case /* resources.clientconfig.ClientConfig client_config */ 1:
|
|
316
316
|
message.data = {
|
|
317
|
-
oneofKind: "
|
|
318
|
-
|
|
319
|
-
};
|
|
320
|
-
break;
|
|
321
|
-
case /* resources.notifications.BannerMessageWrapper banner_message */ 2:
|
|
322
|
-
message.data = {
|
|
323
|
-
oneofKind: "bannerMessage",
|
|
324
|
-
bannerMessage: BannerMessageWrapper.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).bannerMessage)
|
|
317
|
+
oneofKind: "clientConfig",
|
|
318
|
+
clientConfig: ClientConfig.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).clientConfig)
|
|
325
319
|
};
|
|
326
320
|
break;
|
|
327
321
|
default:
|
|
@@ -336,12 +330,9 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
336
330
|
return message;
|
|
337
331
|
}
|
|
338
332
|
internalBinaryWrite(message: SystemEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
339
|
-
/*
|
|
340
|
-
if (message.data.oneofKind === "
|
|
341
|
-
writer.tag(1, WireType.
|
|
342
|
-
/* resources.notifications.BannerMessageWrapper banner_message = 2; */
|
|
343
|
-
if (message.data.oneofKind === "bannerMessage")
|
|
344
|
-
BannerMessageWrapper.internalBinaryWrite(message.data.bannerMessage, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
333
|
+
/* resources.clientconfig.ClientConfig client_config = 1; */
|
|
334
|
+
if (message.data.oneofKind === "clientConfig")
|
|
335
|
+
ClientConfig.internalBinaryWrite(message.data.clientConfig, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
345
336
|
let u = options.writeUnknownFields;
|
|
346
337
|
if (u !== false)
|
|
347
338
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -349,60 +340,6 @@ class SystemEvent$Type extends MessageType<SystemEvent> {
|
|
|
349
340
|
}
|
|
350
341
|
}
|
|
351
342
|
/**
|
|
352
|
-
* @generated MessageType for protobuf message resources.notifications.SystemEvent
|
|
343
|
+
* @generated MessageType for protobuf message resources.notifications.events.SystemEvent
|
|
353
344
|
*/
|
|
354
345
|
export const SystemEvent = new SystemEvent$Type();
|
|
355
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
356
|
-
class BannerMessageWrapper$Type extends MessageType<BannerMessageWrapper> {
|
|
357
|
-
constructor() {
|
|
358
|
-
super("resources.notifications.BannerMessageWrapper", [
|
|
359
|
-
{ no: 1, name: "banner_message_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
360
|
-
{ no: 2, name: "banner_message", kind: "message", T: () => BannerMessage }
|
|
361
|
-
]);
|
|
362
|
-
}
|
|
363
|
-
create(value?: PartialMessage<BannerMessageWrapper>): BannerMessageWrapper {
|
|
364
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
365
|
-
message.bannerMessageEnabled = false;
|
|
366
|
-
if (value !== undefined)
|
|
367
|
-
reflectionMergePartial<BannerMessageWrapper>(this, message, value);
|
|
368
|
-
return message;
|
|
369
|
-
}
|
|
370
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BannerMessageWrapper): BannerMessageWrapper {
|
|
371
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
372
|
-
while (reader.pos < end) {
|
|
373
|
-
let [fieldNo, wireType] = reader.tag();
|
|
374
|
-
switch (fieldNo) {
|
|
375
|
-
case /* bool banner_message_enabled */ 1:
|
|
376
|
-
message.bannerMessageEnabled = reader.bool();
|
|
377
|
-
break;
|
|
378
|
-
case /* optional resources.settings.BannerMessage banner_message */ 2:
|
|
379
|
-
message.bannerMessage = BannerMessage.internalBinaryRead(reader, reader.uint32(), options, message.bannerMessage);
|
|
380
|
-
break;
|
|
381
|
-
default:
|
|
382
|
-
let u = options.readUnknownField;
|
|
383
|
-
if (u === "throw")
|
|
384
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
385
|
-
let d = reader.skip(wireType);
|
|
386
|
-
if (u !== false)
|
|
387
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
return message;
|
|
391
|
-
}
|
|
392
|
-
internalBinaryWrite(message: BannerMessageWrapper, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
393
|
-
/* bool banner_message_enabled = 1; */
|
|
394
|
-
if (message.bannerMessageEnabled !== false)
|
|
395
|
-
writer.tag(1, WireType.Varint).bool(message.bannerMessageEnabled);
|
|
396
|
-
/* optional resources.settings.BannerMessage banner_message = 2; */
|
|
397
|
-
if (message.bannerMessage)
|
|
398
|
-
BannerMessage.internalBinaryWrite(message.bannerMessage, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
399
|
-
let u = options.writeUnknownFields;
|
|
400
|
-
if (u !== false)
|
|
401
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
402
|
-
return writer;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* @generated MessageType for protobuf message resources.notifications.BannerMessageWrapper
|
|
407
|
-
*/
|
|
408
|
-
export const BannerMessageWrapper = new BannerMessageWrapper$Type();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/notifications/notifications.proto" (package "resources.notifications", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -10,74 +11,68 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { UserShort } from "../users/
|
|
14
|
-
import {
|
|
14
|
+
import { UserShort } from "../users/short/user";
|
|
15
|
+
import { I18NItem } from "../common/i18n";
|
|
15
16
|
import { Timestamp } from "../timestamp/timestamp";
|
|
16
17
|
/**
|
|
17
18
|
* @generated from protobuf message resources.notifications.Notification
|
|
18
19
|
*/
|
|
19
20
|
export interface Notification {
|
|
20
21
|
/**
|
|
21
|
-
* @generated from protobuf field:
|
|
22
|
+
* @generated from protobuf field: int64 id = 1
|
|
22
23
|
*/
|
|
23
24
|
id: number;
|
|
24
25
|
/**
|
|
25
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
|
|
26
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
|
|
26
27
|
*/
|
|
27
28
|
createdAt?: Timestamp;
|
|
28
29
|
/**
|
|
29
|
-
* @generated from protobuf field: resources.timestamp.Timestamp read_at = 3
|
|
30
|
+
* @generated from protobuf field: resources.timestamp.Timestamp read_at = 3
|
|
30
31
|
*/
|
|
31
32
|
readAt?: Timestamp;
|
|
32
33
|
/**
|
|
33
|
-
* @generated from protobuf field: int32 user_id = 4
|
|
34
|
+
* @generated from protobuf field: int32 user_id = 4
|
|
34
35
|
*/
|
|
35
36
|
userId: number;
|
|
36
37
|
/**
|
|
37
|
-
* @
|
|
38
|
-
*
|
|
39
|
-
* @generated from protobuf field: resources.common.TranslateItem title = 5;
|
|
38
|
+
* @generated from protobuf field: resources.common.I18NItem title = 5
|
|
40
39
|
*/
|
|
41
|
-
title?:
|
|
40
|
+
title?: I18NItem;
|
|
42
41
|
/**
|
|
43
|
-
* @generated from protobuf field: resources.notifications.NotificationType type = 6
|
|
42
|
+
* @generated from protobuf field: resources.notifications.NotificationType type = 6
|
|
44
43
|
*/
|
|
45
44
|
type: NotificationType;
|
|
46
45
|
/**
|
|
47
|
-
* @
|
|
48
|
-
*
|
|
49
|
-
* @generated from protobuf field: resources.common.TranslateItem content = 7;
|
|
46
|
+
* @generated from protobuf field: resources.common.I18NItem content = 7
|
|
50
47
|
*/
|
|
51
|
-
content?:
|
|
48
|
+
content?: I18NItem;
|
|
52
49
|
/**
|
|
53
|
-
* @generated from protobuf field: resources.notifications.NotificationCategory category = 8
|
|
50
|
+
* @generated from protobuf field: resources.notifications.NotificationCategory category = 8
|
|
54
51
|
*/
|
|
55
52
|
category: NotificationCategory;
|
|
56
53
|
/**
|
|
57
|
-
* @generated from protobuf field: optional resources.notifications.Data data = 9
|
|
54
|
+
* @generated from protobuf field: optional resources.notifications.Data data = 9
|
|
58
55
|
*/
|
|
59
56
|
data?: Data;
|
|
60
57
|
/**
|
|
61
|
-
* @generated from protobuf field: optional bool starred = 10
|
|
58
|
+
* @generated from protobuf field: optional bool starred = 10
|
|
62
59
|
*/
|
|
63
60
|
starred?: boolean;
|
|
64
61
|
}
|
|
65
62
|
/**
|
|
66
|
-
* @dbscanner: json
|
|
67
|
-
*
|
|
68
63
|
* @generated from protobuf message resources.notifications.Data
|
|
69
64
|
*/
|
|
70
65
|
export interface Data {
|
|
71
66
|
/**
|
|
72
|
-
* @generated from protobuf field: optional resources.notifications.Link link = 1
|
|
67
|
+
* @generated from protobuf field: optional resources.notifications.Link link = 1
|
|
73
68
|
*/
|
|
74
69
|
link?: Link;
|
|
75
70
|
/**
|
|
76
|
-
* @generated from protobuf field: optional resources.users.UserShort caused_by = 2
|
|
71
|
+
* @generated from protobuf field: optional resources.users.short.UserShort caused_by = 2
|
|
77
72
|
*/
|
|
78
73
|
causedBy?: UserShort;
|
|
79
74
|
/**
|
|
80
|
-
* @generated from protobuf field: optional resources.notifications.CalendarData calendar = 3
|
|
75
|
+
* @generated from protobuf field: optional resources.notifications.CalendarData calendar = 3
|
|
81
76
|
*/
|
|
82
77
|
calendar?: CalendarData;
|
|
83
78
|
}
|
|
@@ -86,15 +81,15 @@ export interface Data {
|
|
|
86
81
|
*/
|
|
87
82
|
export interface Link {
|
|
88
83
|
/**
|
|
89
|
-
* @generated from protobuf field: string to = 1
|
|
84
|
+
* @generated from protobuf field: string to = 1
|
|
90
85
|
*/
|
|
91
86
|
to: string;
|
|
92
87
|
/**
|
|
93
|
-
* @generated from protobuf field: optional string title = 2
|
|
88
|
+
* @generated from protobuf field: optional string title = 2
|
|
94
89
|
*/
|
|
95
90
|
title?: string;
|
|
96
91
|
/**
|
|
97
|
-
* @generated from protobuf field: optional bool external = 3
|
|
92
|
+
* @generated from protobuf field: optional bool external = 3
|
|
98
93
|
*/
|
|
99
94
|
external?: boolean;
|
|
100
95
|
}
|
|
@@ -103,11 +98,11 @@ export interface Link {
|
|
|
103
98
|
*/
|
|
104
99
|
export interface CalendarData {
|
|
105
100
|
/**
|
|
106
|
-
* @generated from protobuf field: optional
|
|
101
|
+
* @generated from protobuf field: optional int64 calendar_id = 1
|
|
107
102
|
*/
|
|
108
103
|
calendarId?: number;
|
|
109
104
|
/**
|
|
110
|
-
* @generated from protobuf field: optional
|
|
105
|
+
* @generated from protobuf field: optional int64 calendar_entry_id = 2
|
|
111
106
|
*/
|
|
112
107
|
calendarEntryId?: number;
|
|
113
108
|
}
|
|
@@ -161,14 +156,14 @@ export enum NotificationCategory {
|
|
|
161
156
|
class Notification$Type extends MessageType<Notification> {
|
|
162
157
|
constructor() {
|
|
163
158
|
super("resources.notifications.Notification", [
|
|
164
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
159
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
165
160
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
166
161
|
{ no: 3, name: "read_at", kind: "message", T: () => Timestamp },
|
|
167
|
-
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
168
|
-
{ no: 5, name: "title", kind: "message", T: () =>
|
|
169
|
-
{ no: 6, name: "type", kind: "enum", T: () => ["resources.notifications.NotificationType", NotificationType, "NOTIFICATION_TYPE_"], options: { "validate.
|
|
170
|
-
{ no: 7, name: "content", kind: "message", T: () =>
|
|
171
|
-
{ no: 8, name: "category", kind: "enum", T: () => ["resources.notifications.NotificationCategory", NotificationCategory, "NOTIFICATION_CATEGORY_"], options: { "validate.
|
|
162
|
+
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
163
|
+
{ no: 5, name: "title", kind: "message", T: () => I18NItem, options: { "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
164
|
+
{ no: 6, name: "type", kind: "enum", T: () => ["resources.notifications.NotificationType", NotificationType, "NOTIFICATION_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
165
|
+
{ no: 7, name: "content", kind: "message", T: () => I18NItem, options: { "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
166
|
+
{ no: 8, name: "category", kind: "enum", T: () => ["resources.notifications.NotificationCategory", NotificationCategory, "NOTIFICATION_CATEGORY_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
172
167
|
{ no: 9, name: "data", kind: "message", T: () => Data },
|
|
173
168
|
{ no: 10, name: "starred", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
174
169
|
]);
|
|
@@ -188,8 +183,8 @@ class Notification$Type extends MessageType<Notification> {
|
|
|
188
183
|
while (reader.pos < end) {
|
|
189
184
|
let [fieldNo, wireType] = reader.tag();
|
|
190
185
|
switch (fieldNo) {
|
|
191
|
-
case /*
|
|
192
|
-
message.id = reader.
|
|
186
|
+
case /* int64 id */ 1:
|
|
187
|
+
message.id = reader.int64().toNumber();
|
|
193
188
|
break;
|
|
194
189
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
195
190
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -200,14 +195,14 @@ class Notification$Type extends MessageType<Notification> {
|
|
|
200
195
|
case /* int32 user_id */ 4:
|
|
201
196
|
message.userId = reader.int32();
|
|
202
197
|
break;
|
|
203
|
-
case /* resources.common.
|
|
204
|
-
message.title =
|
|
198
|
+
case /* resources.common.I18NItem title */ 5:
|
|
199
|
+
message.title = I18NItem.internalBinaryRead(reader, reader.uint32(), options, message.title);
|
|
205
200
|
break;
|
|
206
201
|
case /* resources.notifications.NotificationType type */ 6:
|
|
207
202
|
message.type = reader.int32();
|
|
208
203
|
break;
|
|
209
|
-
case /* resources.common.
|
|
210
|
-
message.content =
|
|
204
|
+
case /* resources.common.I18NItem content */ 7:
|
|
205
|
+
message.content = I18NItem.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
211
206
|
break;
|
|
212
207
|
case /* resources.notifications.NotificationCategory category */ 8:
|
|
213
208
|
message.category = reader.int32();
|
|
@@ -230,9 +225,9 @@ class Notification$Type extends MessageType<Notification> {
|
|
|
230
225
|
return message;
|
|
231
226
|
}
|
|
232
227
|
internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
233
|
-
/*
|
|
228
|
+
/* int64 id = 1; */
|
|
234
229
|
if (message.id !== 0)
|
|
235
|
-
writer.tag(1, WireType.Varint).
|
|
230
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
236
231
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
237
232
|
if (message.createdAt)
|
|
238
233
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -242,15 +237,15 @@ class Notification$Type extends MessageType<Notification> {
|
|
|
242
237
|
/* int32 user_id = 4; */
|
|
243
238
|
if (message.userId !== 0)
|
|
244
239
|
writer.tag(4, WireType.Varint).int32(message.userId);
|
|
245
|
-
/* resources.common.
|
|
240
|
+
/* resources.common.I18NItem title = 5; */
|
|
246
241
|
if (message.title)
|
|
247
|
-
|
|
242
|
+
I18NItem.internalBinaryWrite(message.title, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
248
243
|
/* resources.notifications.NotificationType type = 6; */
|
|
249
244
|
if (message.type !== 0)
|
|
250
245
|
writer.tag(6, WireType.Varint).int32(message.type);
|
|
251
|
-
/* resources.common.
|
|
246
|
+
/* resources.common.I18NItem content = 7; */
|
|
252
247
|
if (message.content)
|
|
253
|
-
|
|
248
|
+
I18NItem.internalBinaryWrite(message.content, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
254
249
|
/* resources.notifications.NotificationCategory category = 8; */
|
|
255
250
|
if (message.category !== 0)
|
|
256
251
|
writer.tag(8, WireType.Varint).int32(message.category);
|
|
@@ -277,7 +272,7 @@ class Data$Type extends MessageType<Data> {
|
|
|
277
272
|
{ no: 1, name: "link", kind: "message", T: () => Link },
|
|
278
273
|
{ no: 2, name: "caused_by", kind: "message", T: () => UserShort },
|
|
279
274
|
{ no: 3, name: "calendar", kind: "message", T: () => CalendarData }
|
|
280
|
-
]);
|
|
275
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
281
276
|
}
|
|
282
277
|
create(value?: PartialMessage<Data>): Data {
|
|
283
278
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -293,7 +288,7 @@ class Data$Type extends MessageType<Data> {
|
|
|
293
288
|
case /* optional resources.notifications.Link link */ 1:
|
|
294
289
|
message.link = Link.internalBinaryRead(reader, reader.uint32(), options, message.link);
|
|
295
290
|
break;
|
|
296
|
-
case /* optional resources.users.UserShort caused_by */ 2:
|
|
291
|
+
case /* optional resources.users.short.UserShort caused_by */ 2:
|
|
297
292
|
message.causedBy = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.causedBy);
|
|
298
293
|
break;
|
|
299
294
|
case /* optional resources.notifications.CalendarData calendar */ 3:
|
|
@@ -314,7 +309,7 @@ class Data$Type extends MessageType<Data> {
|
|
|
314
309
|
/* optional resources.notifications.Link link = 1; */
|
|
315
310
|
if (message.link)
|
|
316
311
|
Link.internalBinaryWrite(message.link, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
317
|
-
/* optional resources.users.UserShort caused_by = 2; */
|
|
312
|
+
/* optional resources.users.short.UserShort caused_by = 2; */
|
|
318
313
|
if (message.causedBy)
|
|
319
314
|
UserShort.internalBinaryWrite(message.causedBy, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
320
315
|
/* optional resources.notifications.CalendarData calendar = 3; */
|
|
@@ -395,8 +390,8 @@ export const Link = new Link$Type();
|
|
|
395
390
|
class CalendarData$Type extends MessageType<CalendarData> {
|
|
396
391
|
constructor() {
|
|
397
392
|
super("resources.notifications.CalendarData", [
|
|
398
|
-
{ no: 1, name: "calendar_id", kind: "scalar", opt: true, T:
|
|
399
|
-
{ no: 2, name: "calendar_entry_id", kind: "scalar", opt: true, T:
|
|
393
|
+
{ no: 1, name: "calendar_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
394
|
+
{ no: 2, name: "calendar_entry_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
400
395
|
]);
|
|
401
396
|
}
|
|
402
397
|
create(value?: PartialMessage<CalendarData>): CalendarData {
|
|
@@ -410,11 +405,11 @@ class CalendarData$Type extends MessageType<CalendarData> {
|
|
|
410
405
|
while (reader.pos < end) {
|
|
411
406
|
let [fieldNo, wireType] = reader.tag();
|
|
412
407
|
switch (fieldNo) {
|
|
413
|
-
case /* optional
|
|
414
|
-
message.calendarId = reader.
|
|
408
|
+
case /* optional int64 calendar_id */ 1:
|
|
409
|
+
message.calendarId = reader.int64().toNumber();
|
|
415
410
|
break;
|
|
416
|
-
case /* optional
|
|
417
|
-
message.calendarEntryId = reader.
|
|
411
|
+
case /* optional int64 calendar_entry_id */ 2:
|
|
412
|
+
message.calendarEntryId = reader.int64().toNumber();
|
|
418
413
|
break;
|
|
419
414
|
default:
|
|
420
415
|
let u = options.readUnknownField;
|
|
@@ -428,12 +423,12 @@ class CalendarData$Type extends MessageType<CalendarData> {
|
|
|
428
423
|
return message;
|
|
429
424
|
}
|
|
430
425
|
internalBinaryWrite(message: CalendarData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
431
|
-
/* optional
|
|
426
|
+
/* optional int64 calendar_id = 1; */
|
|
432
427
|
if (message.calendarId !== undefined)
|
|
433
|
-
writer.tag(1, WireType.Varint).
|
|
434
|
-
/* optional
|
|
428
|
+
writer.tag(1, WireType.Varint).int64(message.calendarId);
|
|
429
|
+
/* optional int64 calendar_entry_id = 2; */
|
|
435
430
|
if (message.calendarEntryId !== undefined)
|
|
436
|
-
writer.tag(2, WireType.Varint).
|
|
431
|
+
writer.tag(2, WireType.Varint).int64(message.calendarEntryId);
|
|
437
432
|
let u = options.writeUnknownFields;
|
|
438
433
|
if (u !== false)
|
|
439
434
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|