@fivenet-app/gen 2025.5.2 → 2025.9.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/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -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 +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- 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/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- 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/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- 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 +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- 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 +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- 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 +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- 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/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
|
@@ -0,0 +1,298 @@
|
|
|
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/livemap/user_marker.proto" (package "resources.livemap", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Unit } from "../centrum/units";
|
|
15
|
+
import { Colleague } from "../jobs/colleagues";
|
|
16
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf message resources.livemap.UserMarker
|
|
19
|
+
*/
|
|
20
|
+
export interface UserMarker {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf field: int32 user_id = 1
|
|
23
|
+
*/
|
|
24
|
+
userId: number;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: double x = 2
|
|
27
|
+
*/
|
|
28
|
+
x: number;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf field: double y = 3
|
|
31
|
+
*/
|
|
32
|
+
y: number;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 4
|
|
35
|
+
*/
|
|
36
|
+
updatedAt?: Timestamp;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: optional string postal = 5
|
|
39
|
+
*/
|
|
40
|
+
postal?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf field: optional string color = 6
|
|
43
|
+
*/
|
|
44
|
+
color?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: string job = 7
|
|
47
|
+
*/
|
|
48
|
+
job: string;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: string job_label = 8
|
|
51
|
+
*/
|
|
52
|
+
jobLabel: string;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: optional int32 job_grade = 13
|
|
55
|
+
*/
|
|
56
|
+
jobGrade?: number;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: resources.jobs.Colleague user = 9
|
|
59
|
+
*/
|
|
60
|
+
user?: Colleague;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: optional int64 unit_id = 10
|
|
63
|
+
*/
|
|
64
|
+
unitId?: number;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: optional resources.centrum.Unit unit = 11
|
|
67
|
+
*/
|
|
68
|
+
unit?: Unit;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: bool hidden = 12
|
|
71
|
+
*/
|
|
72
|
+
hidden: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: optional resources.livemap.UserMarkerData data = 14
|
|
75
|
+
*/
|
|
76
|
+
data?: UserMarkerData;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf message resources.livemap.UserMarkerData
|
|
80
|
+
*/
|
|
81
|
+
export interface UserMarkerData {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: bool is_in_vehicle = 1
|
|
84
|
+
*/
|
|
85
|
+
isInVehicle: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: optional string vehicle_plate = 2
|
|
88
|
+
*/
|
|
89
|
+
vehiclePlate?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp vehicle_updated_at = 3
|
|
92
|
+
*/
|
|
93
|
+
vehicleUpdatedAt?: Timestamp;
|
|
94
|
+
}
|
|
95
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
96
|
+
class UserMarker$Type extends MessageType<UserMarker> {
|
|
97
|
+
constructor() {
|
|
98
|
+
super("resources.livemap.UserMarker", [
|
|
99
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
100
|
+
{ no: 2, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
101
|
+
{ no: 3, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
102
|
+
{ no: 4, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
103
|
+
{ no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
104
|
+
{ no: 6, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
105
|
+
{ no: 7, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
106
|
+
{ no: 8, name: "job_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
107
|
+
{ no: 13, name: "job_grade", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
108
|
+
{ no: 9, name: "user", kind: "message", T: () => Colleague, options: { "tagger.tags": "alias:\"user\"" } },
|
|
109
|
+
{ no: 10, name: "unit_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
110
|
+
{ no: 11, name: "unit", kind: "message", T: () => Unit },
|
|
111
|
+
{ no: 12, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
112
|
+
{ no: 14, name: "data", kind: "message", T: () => UserMarkerData, options: { "tagger.tags": "alias:\"data\"" } }
|
|
113
|
+
]);
|
|
114
|
+
}
|
|
115
|
+
create(value?: PartialMessage<UserMarker>): UserMarker {
|
|
116
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
117
|
+
message.userId = 0;
|
|
118
|
+
message.x = 0;
|
|
119
|
+
message.y = 0;
|
|
120
|
+
message.job = "";
|
|
121
|
+
message.jobLabel = "";
|
|
122
|
+
message.hidden = false;
|
|
123
|
+
if (value !== undefined)
|
|
124
|
+
reflectionMergePartial<UserMarker>(this, message, value);
|
|
125
|
+
return message;
|
|
126
|
+
}
|
|
127
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserMarker): UserMarker {
|
|
128
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
129
|
+
while (reader.pos < end) {
|
|
130
|
+
let [fieldNo, wireType] = reader.tag();
|
|
131
|
+
switch (fieldNo) {
|
|
132
|
+
case /* int32 user_id */ 1:
|
|
133
|
+
message.userId = reader.int32();
|
|
134
|
+
break;
|
|
135
|
+
case /* double x */ 2:
|
|
136
|
+
message.x = reader.double();
|
|
137
|
+
break;
|
|
138
|
+
case /* double y */ 3:
|
|
139
|
+
message.y = reader.double();
|
|
140
|
+
break;
|
|
141
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 4:
|
|
142
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
143
|
+
break;
|
|
144
|
+
case /* optional string postal */ 5:
|
|
145
|
+
message.postal = reader.string();
|
|
146
|
+
break;
|
|
147
|
+
case /* optional string color */ 6:
|
|
148
|
+
message.color = reader.string();
|
|
149
|
+
break;
|
|
150
|
+
case /* string job */ 7:
|
|
151
|
+
message.job = reader.string();
|
|
152
|
+
break;
|
|
153
|
+
case /* string job_label */ 8:
|
|
154
|
+
message.jobLabel = reader.string();
|
|
155
|
+
break;
|
|
156
|
+
case /* optional int32 job_grade */ 13:
|
|
157
|
+
message.jobGrade = reader.int32();
|
|
158
|
+
break;
|
|
159
|
+
case /* resources.jobs.Colleague user */ 9:
|
|
160
|
+
message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
161
|
+
break;
|
|
162
|
+
case /* optional int64 unit_id */ 10:
|
|
163
|
+
message.unitId = reader.int64().toNumber();
|
|
164
|
+
break;
|
|
165
|
+
case /* optional resources.centrum.Unit unit */ 11:
|
|
166
|
+
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
167
|
+
break;
|
|
168
|
+
case /* bool hidden */ 12:
|
|
169
|
+
message.hidden = reader.bool();
|
|
170
|
+
break;
|
|
171
|
+
case /* optional resources.livemap.UserMarkerData data */ 14:
|
|
172
|
+
message.data = UserMarkerData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
173
|
+
break;
|
|
174
|
+
default:
|
|
175
|
+
let u = options.readUnknownField;
|
|
176
|
+
if (u === "throw")
|
|
177
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
178
|
+
let d = reader.skip(wireType);
|
|
179
|
+
if (u !== false)
|
|
180
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return message;
|
|
184
|
+
}
|
|
185
|
+
internalBinaryWrite(message: UserMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
186
|
+
/* int32 user_id = 1; */
|
|
187
|
+
if (message.userId !== 0)
|
|
188
|
+
writer.tag(1, WireType.Varint).int32(message.userId);
|
|
189
|
+
/* double x = 2; */
|
|
190
|
+
if (message.x !== 0)
|
|
191
|
+
writer.tag(2, WireType.Bit64).double(message.x);
|
|
192
|
+
/* double y = 3; */
|
|
193
|
+
if (message.y !== 0)
|
|
194
|
+
writer.tag(3, WireType.Bit64).double(message.y);
|
|
195
|
+
/* optional resources.timestamp.Timestamp updated_at = 4; */
|
|
196
|
+
if (message.updatedAt)
|
|
197
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
198
|
+
/* optional string postal = 5; */
|
|
199
|
+
if (message.postal !== undefined)
|
|
200
|
+
writer.tag(5, WireType.LengthDelimited).string(message.postal);
|
|
201
|
+
/* optional string color = 6; */
|
|
202
|
+
if (message.color !== undefined)
|
|
203
|
+
writer.tag(6, WireType.LengthDelimited).string(message.color);
|
|
204
|
+
/* string job = 7; */
|
|
205
|
+
if (message.job !== "")
|
|
206
|
+
writer.tag(7, WireType.LengthDelimited).string(message.job);
|
|
207
|
+
/* string job_label = 8; */
|
|
208
|
+
if (message.jobLabel !== "")
|
|
209
|
+
writer.tag(8, WireType.LengthDelimited).string(message.jobLabel);
|
|
210
|
+
/* resources.jobs.Colleague user = 9; */
|
|
211
|
+
if (message.user)
|
|
212
|
+
Colleague.internalBinaryWrite(message.user, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
213
|
+
/* optional int64 unit_id = 10; */
|
|
214
|
+
if (message.unitId !== undefined)
|
|
215
|
+
writer.tag(10, WireType.Varint).int64(message.unitId);
|
|
216
|
+
/* optional resources.centrum.Unit unit = 11; */
|
|
217
|
+
if (message.unit)
|
|
218
|
+
Unit.internalBinaryWrite(message.unit, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
219
|
+
/* bool hidden = 12; */
|
|
220
|
+
if (message.hidden !== false)
|
|
221
|
+
writer.tag(12, WireType.Varint).bool(message.hidden);
|
|
222
|
+
/* optional int32 job_grade = 13; */
|
|
223
|
+
if (message.jobGrade !== undefined)
|
|
224
|
+
writer.tag(13, WireType.Varint).int32(message.jobGrade);
|
|
225
|
+
/* optional resources.livemap.UserMarkerData data = 14; */
|
|
226
|
+
if (message.data)
|
|
227
|
+
UserMarkerData.internalBinaryWrite(message.data, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
228
|
+
let u = options.writeUnknownFields;
|
|
229
|
+
if (u !== false)
|
|
230
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
231
|
+
return writer;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @generated MessageType for protobuf message resources.livemap.UserMarker
|
|
236
|
+
*/
|
|
237
|
+
export const UserMarker = new UserMarker$Type();
|
|
238
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
239
|
+
class UserMarkerData$Type extends MessageType<UserMarkerData> {
|
|
240
|
+
constructor() {
|
|
241
|
+
super("resources.livemap.UserMarkerData", [
|
|
242
|
+
{ no: 1, name: "is_in_vehicle", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
243
|
+
{ no: 2, name: "vehicle_plate", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } } } },
|
|
244
|
+
{ no: 3, name: "vehicle_updated_at", kind: "message", T: () => Timestamp }
|
|
245
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
246
|
+
}
|
|
247
|
+
create(value?: PartialMessage<UserMarkerData>): UserMarkerData {
|
|
248
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
249
|
+
message.isInVehicle = false;
|
|
250
|
+
if (value !== undefined)
|
|
251
|
+
reflectionMergePartial<UserMarkerData>(this, message, value);
|
|
252
|
+
return message;
|
|
253
|
+
}
|
|
254
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserMarkerData): UserMarkerData {
|
|
255
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
256
|
+
while (reader.pos < end) {
|
|
257
|
+
let [fieldNo, wireType] = reader.tag();
|
|
258
|
+
switch (fieldNo) {
|
|
259
|
+
case /* bool is_in_vehicle */ 1:
|
|
260
|
+
message.isInVehicle = reader.bool();
|
|
261
|
+
break;
|
|
262
|
+
case /* optional string vehicle_plate */ 2:
|
|
263
|
+
message.vehiclePlate = reader.string();
|
|
264
|
+
break;
|
|
265
|
+
case /* optional resources.timestamp.Timestamp vehicle_updated_at */ 3:
|
|
266
|
+
message.vehicleUpdatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.vehicleUpdatedAt);
|
|
267
|
+
break;
|
|
268
|
+
default:
|
|
269
|
+
let u = options.readUnknownField;
|
|
270
|
+
if (u === "throw")
|
|
271
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
272
|
+
let d = reader.skip(wireType);
|
|
273
|
+
if (u !== false)
|
|
274
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return message;
|
|
278
|
+
}
|
|
279
|
+
internalBinaryWrite(message: UserMarkerData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
280
|
+
/* bool is_in_vehicle = 1; */
|
|
281
|
+
if (message.isInVehicle !== false)
|
|
282
|
+
writer.tag(1, WireType.Varint).bool(message.isInVehicle);
|
|
283
|
+
/* optional string vehicle_plate = 2; */
|
|
284
|
+
if (message.vehiclePlate !== undefined)
|
|
285
|
+
writer.tag(2, WireType.LengthDelimited).string(message.vehiclePlate);
|
|
286
|
+
/* optional resources.timestamp.Timestamp vehicle_updated_at = 3; */
|
|
287
|
+
if (message.vehicleUpdatedAt)
|
|
288
|
+
Timestamp.internalBinaryWrite(message.vehicleUpdatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
289
|
+
let u = options.writeUnknownFields;
|
|
290
|
+
if (u !== false)
|
|
291
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
292
|
+
return writer;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* @generated MessageType for protobuf message resources.livemap.UserMarkerData
|
|
297
|
+
*/
|
|
298
|
+
export const UserMarkerData = new UserMarkerData$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/mailer/access.proto" (package "resources.mailer", 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";
|
|
@@ -18,52 +19,52 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
18
19
|
*/
|
|
19
20
|
export interface Access {
|
|
20
21
|
/**
|
|
21
|
-
* @generated from protobuf field: repeated resources.mailer.JobAccess jobs = 1
|
|
22
|
+
* @generated from protobuf field: repeated resources.mailer.JobAccess jobs = 1
|
|
22
23
|
*/
|
|
23
|
-
jobs: JobAccess[];
|
|
24
|
+
jobs: JobAccess[];
|
|
24
25
|
/**
|
|
25
|
-
* @generated from protobuf field: repeated resources.mailer.UserAccess users = 2
|
|
26
|
+
* @generated from protobuf field: repeated resources.mailer.UserAccess users = 2
|
|
26
27
|
*/
|
|
27
|
-
users: UserAccess[];
|
|
28
|
+
users: UserAccess[];
|
|
28
29
|
/**
|
|
29
|
-
* @generated from protobuf field: repeated resources.mailer.QualificationAccess qualifications = 3
|
|
30
|
+
* @generated from protobuf field: repeated resources.mailer.QualificationAccess qualifications = 3
|
|
30
31
|
*/
|
|
31
|
-
qualifications: QualificationAccess[];
|
|
32
|
+
qualifications: QualificationAccess[];
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* @generated from protobuf message resources.mailer.JobAccess
|
|
35
36
|
*/
|
|
36
37
|
export interface JobAccess {
|
|
37
38
|
/**
|
|
38
|
-
* @generated from protobuf field:
|
|
39
|
+
* @generated from protobuf field: int64 id = 1
|
|
39
40
|
*/
|
|
40
|
-
id: number;
|
|
41
|
+
id: number;
|
|
41
42
|
/**
|
|
42
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
43
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
43
44
|
*/
|
|
44
45
|
createdAt?: Timestamp;
|
|
45
46
|
/**
|
|
46
|
-
* @generated from protobuf field:
|
|
47
|
+
* @generated from protobuf field: int64 target_id = 4
|
|
47
48
|
*/
|
|
48
49
|
targetId: number;
|
|
49
50
|
/**
|
|
50
|
-
* @generated from protobuf field: string job = 5
|
|
51
|
+
* @generated from protobuf field: string job = 5
|
|
51
52
|
*/
|
|
52
53
|
job: string;
|
|
53
54
|
/**
|
|
54
|
-
* @generated from protobuf field: optional string job_label = 6
|
|
55
|
+
* @generated from protobuf field: optional string job_label = 6
|
|
55
56
|
*/
|
|
56
57
|
jobLabel?: string;
|
|
57
58
|
/**
|
|
58
|
-
* @generated from protobuf field: int32 minimum_grade = 7
|
|
59
|
+
* @generated from protobuf field: int32 minimum_grade = 7
|
|
59
60
|
*/
|
|
60
61
|
minimumGrade: number;
|
|
61
62
|
/**
|
|
62
|
-
* @generated from protobuf field: optional string job_grade_label = 8
|
|
63
|
+
* @generated from protobuf field: optional string job_grade_label = 8
|
|
63
64
|
*/
|
|
64
65
|
jobGradeLabel?: string;
|
|
65
66
|
/**
|
|
66
|
-
* @generated from protobuf field: resources.mailer.AccessLevel access = 9
|
|
67
|
+
* @generated from protobuf field: resources.mailer.AccessLevel access = 9
|
|
67
68
|
*/
|
|
68
69
|
access: AccessLevel;
|
|
69
70
|
}
|
|
@@ -72,27 +73,27 @@ export interface JobAccess {
|
|
|
72
73
|
*/
|
|
73
74
|
export interface UserAccess {
|
|
74
75
|
/**
|
|
75
|
-
* @generated from protobuf field:
|
|
76
|
+
* @generated from protobuf field: int64 id = 1
|
|
76
77
|
*/
|
|
77
78
|
id: number;
|
|
78
79
|
/**
|
|
79
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
80
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
80
81
|
*/
|
|
81
82
|
createdAt?: Timestamp;
|
|
82
83
|
/**
|
|
83
|
-
* @generated from protobuf field:
|
|
84
|
+
* @generated from protobuf field: int64 target_id = 3
|
|
84
85
|
*/
|
|
85
86
|
targetId: number;
|
|
86
87
|
/**
|
|
87
|
-
* @generated from protobuf field: int32 user_id = 4
|
|
88
|
+
* @generated from protobuf field: int32 user_id = 4
|
|
88
89
|
*/
|
|
89
90
|
userId: number;
|
|
90
91
|
/**
|
|
91
|
-
* @generated from protobuf field: optional resources.users.UserShort user = 5
|
|
92
|
+
* @generated from protobuf field: optional resources.users.UserShort user = 5
|
|
92
93
|
*/
|
|
93
94
|
user?: UserShort;
|
|
94
95
|
/**
|
|
95
|
-
* @generated from protobuf field: resources.mailer.AccessLevel access = 6
|
|
96
|
+
* @generated from protobuf field: resources.mailer.AccessLevel access = 6
|
|
96
97
|
*/
|
|
97
98
|
access: AccessLevel;
|
|
98
99
|
}
|
|
@@ -101,27 +102,27 @@ export interface UserAccess {
|
|
|
101
102
|
*/
|
|
102
103
|
export interface QualificationAccess {
|
|
103
104
|
/**
|
|
104
|
-
* @generated from protobuf field:
|
|
105
|
+
* @generated from protobuf field: int64 id = 1
|
|
105
106
|
*/
|
|
106
107
|
id: number;
|
|
107
108
|
/**
|
|
108
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
109
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
109
110
|
*/
|
|
110
111
|
createdAt?: Timestamp;
|
|
111
112
|
/**
|
|
112
|
-
* @generated from protobuf field:
|
|
113
|
+
* @generated from protobuf field: int64 target_id = 3
|
|
113
114
|
*/
|
|
114
115
|
targetId: number;
|
|
115
116
|
/**
|
|
116
|
-
* @generated from protobuf field:
|
|
117
|
+
* @generated from protobuf field: int64 qualification_id = 4
|
|
117
118
|
*/
|
|
118
119
|
qualificationId: number;
|
|
119
120
|
/**
|
|
120
|
-
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5
|
|
121
|
+
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5
|
|
121
122
|
*/
|
|
122
123
|
qualification?: QualificationShort;
|
|
123
124
|
/**
|
|
124
|
-
* @generated from protobuf field: resources.mailer.AccessLevel access = 6
|
|
125
|
+
* @generated from protobuf field: resources.mailer.AccessLevel access = 6
|
|
125
126
|
*/
|
|
126
127
|
access: AccessLevel;
|
|
127
128
|
}
|
|
@@ -154,9 +155,9 @@ export enum AccessLevel {
|
|
|
154
155
|
class Access$Type extends MessageType<Access> {
|
|
155
156
|
constructor() {
|
|
156
157
|
super("resources.mailer.Access", [
|
|
157
|
-
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "validate.
|
|
158
|
-
{ no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "validate.
|
|
159
|
-
{ no: 3, name: "qualifications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationAccess, options: { "validate.
|
|
158
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"job_access\"" } },
|
|
159
|
+
{ no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"user_access\"" } },
|
|
160
|
+
{ no: 3, name: "qualifications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QualificationAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"qualification_access\"" } }
|
|
160
161
|
]);
|
|
161
162
|
}
|
|
162
163
|
create(value?: PartialMessage<Access>): Access {
|
|
@@ -217,14 +218,14 @@ export const Access = new Access$Type();
|
|
|
217
218
|
class JobAccess$Type extends MessageType<JobAccess> {
|
|
218
219
|
constructor() {
|
|
219
220
|
super("resources.mailer.JobAccess", [
|
|
220
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
221
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "sql:\"primary_key\" alias:\"id\"" } },
|
|
221
222
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
222
|
-
{ no: 4, name: "target_id", kind: "scalar", T:
|
|
223
|
-
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
224
|
-
{ no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
225
|
-
{ no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
226
|
-
{ no: 8, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
227
|
-
{ no: 9, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
223
|
+
{ no: 4, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
224
|
+
{ no: 5, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
225
|
+
{ no: 6, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
226
|
+
{ no: 7, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
227
|
+
{ no: 8, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
228
|
+
{ no: 9, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
228
229
|
]);
|
|
229
230
|
}
|
|
230
231
|
create(value?: PartialMessage<JobAccess>): JobAccess {
|
|
@@ -243,14 +244,14 @@ class JobAccess$Type extends MessageType<JobAccess> {
|
|
|
243
244
|
while (reader.pos < end) {
|
|
244
245
|
let [fieldNo, wireType] = reader.tag();
|
|
245
246
|
switch (fieldNo) {
|
|
246
|
-
case /*
|
|
247
|
-
message.id = reader.
|
|
247
|
+
case /* int64 id */ 1:
|
|
248
|
+
message.id = reader.int64().toNumber();
|
|
248
249
|
break;
|
|
249
250
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
250
251
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
251
252
|
break;
|
|
252
|
-
case /*
|
|
253
|
-
message.targetId = reader.
|
|
253
|
+
case /* int64 target_id */ 4:
|
|
254
|
+
message.targetId = reader.int64().toNumber();
|
|
254
255
|
break;
|
|
255
256
|
case /* string job */ 5:
|
|
256
257
|
message.job = reader.string();
|
|
@@ -279,15 +280,15 @@ class JobAccess$Type extends MessageType<JobAccess> {
|
|
|
279
280
|
return message;
|
|
280
281
|
}
|
|
281
282
|
internalBinaryWrite(message: JobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
282
|
-
/*
|
|
283
|
+
/* int64 id = 1; */
|
|
283
284
|
if (message.id !== 0)
|
|
284
|
-
writer.tag(1, WireType.Varint).
|
|
285
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
285
286
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
286
287
|
if (message.createdAt)
|
|
287
288
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
288
|
-
/*
|
|
289
|
+
/* int64 target_id = 4; */
|
|
289
290
|
if (message.targetId !== 0)
|
|
290
|
-
writer.tag(4, WireType.Varint).
|
|
291
|
+
writer.tag(4, WireType.Varint).int64(message.targetId);
|
|
291
292
|
/* string job = 5; */
|
|
292
293
|
if (message.job !== "")
|
|
293
294
|
writer.tag(5, WireType.LengthDelimited).string(message.job);
|
|
@@ -317,12 +318,12 @@ export const JobAccess = new JobAccess$Type();
|
|
|
317
318
|
class UserAccess$Type extends MessageType<UserAccess> {
|
|
318
319
|
constructor() {
|
|
319
320
|
super("resources.mailer.UserAccess", [
|
|
320
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
321
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
321
322
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
322
|
-
{ no: 3, name: "target_id", kind: "scalar", T:
|
|
323
|
-
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
323
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
324
|
+
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
324
325
|
{ no: 5, name: "user", kind: "message", T: () => UserShort },
|
|
325
|
-
{ no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
326
|
+
{ no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
326
327
|
]);
|
|
327
328
|
}
|
|
328
329
|
create(value?: PartialMessage<UserAccess>): UserAccess {
|
|
@@ -340,14 +341,14 @@ class UserAccess$Type extends MessageType<UserAccess> {
|
|
|
340
341
|
while (reader.pos < end) {
|
|
341
342
|
let [fieldNo, wireType] = reader.tag();
|
|
342
343
|
switch (fieldNo) {
|
|
343
|
-
case /*
|
|
344
|
-
message.id = reader.
|
|
344
|
+
case /* int64 id */ 1:
|
|
345
|
+
message.id = reader.int64().toNumber();
|
|
345
346
|
break;
|
|
346
347
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
347
348
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
348
349
|
break;
|
|
349
|
-
case /*
|
|
350
|
-
message.targetId = reader.
|
|
350
|
+
case /* int64 target_id */ 3:
|
|
351
|
+
message.targetId = reader.int64().toNumber();
|
|
351
352
|
break;
|
|
352
353
|
case /* int32 user_id */ 4:
|
|
353
354
|
message.userId = reader.int32();
|
|
@@ -370,15 +371,15 @@ class UserAccess$Type extends MessageType<UserAccess> {
|
|
|
370
371
|
return message;
|
|
371
372
|
}
|
|
372
373
|
internalBinaryWrite(message: UserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
373
|
-
/*
|
|
374
|
+
/* int64 id = 1; */
|
|
374
375
|
if (message.id !== 0)
|
|
375
|
-
writer.tag(1, WireType.Varint).
|
|
376
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
376
377
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
377
378
|
if (message.createdAt)
|
|
378
379
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
379
|
-
/*
|
|
380
|
+
/* int64 target_id = 3; */
|
|
380
381
|
if (message.targetId !== 0)
|
|
381
|
-
writer.tag(3, WireType.Varint).
|
|
382
|
+
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
382
383
|
/* int32 user_id = 4; */
|
|
383
384
|
if (message.userId !== 0)
|
|
384
385
|
writer.tag(4, WireType.Varint).int32(message.userId);
|
|
@@ -402,12 +403,12 @@ export const UserAccess = new UserAccess$Type();
|
|
|
402
403
|
class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
403
404
|
constructor() {
|
|
404
405
|
super("resources.mailer.QualificationAccess", [
|
|
405
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
406
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
406
407
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
407
|
-
{ no: 3, name: "target_id", kind: "scalar", T:
|
|
408
|
-
{ no: 4, name: "qualification_id", kind: "scalar", T:
|
|
408
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
409
|
+
{ no: 4, name: "qualification_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
409
410
|
{ no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
410
|
-
{ no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
411
|
+
{ no: 6, name: "access", kind: "enum", T: () => ["resources.mailer.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
411
412
|
]);
|
|
412
413
|
}
|
|
413
414
|
create(value?: PartialMessage<QualificationAccess>): QualificationAccess {
|
|
@@ -425,17 +426,17 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
|
425
426
|
while (reader.pos < end) {
|
|
426
427
|
let [fieldNo, wireType] = reader.tag();
|
|
427
428
|
switch (fieldNo) {
|
|
428
|
-
case /*
|
|
429
|
-
message.id = reader.
|
|
429
|
+
case /* int64 id */ 1:
|
|
430
|
+
message.id = reader.int64().toNumber();
|
|
430
431
|
break;
|
|
431
432
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
432
433
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
433
434
|
break;
|
|
434
|
-
case /*
|
|
435
|
-
message.targetId = reader.
|
|
435
|
+
case /* int64 target_id */ 3:
|
|
436
|
+
message.targetId = reader.int64().toNumber();
|
|
436
437
|
break;
|
|
437
|
-
case /*
|
|
438
|
-
message.qualificationId = reader.
|
|
438
|
+
case /* int64 qualification_id */ 4:
|
|
439
|
+
message.qualificationId = reader.int64().toNumber();
|
|
439
440
|
break;
|
|
440
441
|
case /* optional resources.qualifications.QualificationShort qualification */ 5:
|
|
441
442
|
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
@@ -455,18 +456,18 @@ class QualificationAccess$Type extends MessageType<QualificationAccess> {
|
|
|
455
456
|
return message;
|
|
456
457
|
}
|
|
457
458
|
internalBinaryWrite(message: QualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
458
|
-
/*
|
|
459
|
+
/* int64 id = 1; */
|
|
459
460
|
if (message.id !== 0)
|
|
460
|
-
writer.tag(1, WireType.Varint).
|
|
461
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
461
462
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
462
463
|
if (message.createdAt)
|
|
463
464
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
464
|
-
/*
|
|
465
|
+
/* int64 target_id = 3; */
|
|
465
466
|
if (message.targetId !== 0)
|
|
466
|
-
writer.tag(3, WireType.Varint).
|
|
467
|
-
/*
|
|
467
|
+
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
468
|
+
/* int64 qualification_id = 4; */
|
|
468
469
|
if (message.qualificationId !== 0)
|
|
469
|
-
writer.tag(4, WireType.Varint).
|
|
470
|
+
writer.tag(4, WireType.Varint).int64(message.qualificationId);
|
|
470
471
|
/* optional resources.qualifications.QualificationShort qualification = 5; */
|
|
471
472
|
if (message.qualification)
|
|
472
473
|
QualificationShort.internalBinaryWrite(message.qualification, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|