@fivenet-app/gen 0.9.3 → 0.9.5-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/livemap/livemap.proto" (package "resources.livemap", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -15,127 +15,146 @@ import { Unit } from "../centrum/units";
|
|
|
15
15
|
import { Colleague } from "../jobs/colleagues";
|
|
16
16
|
import { Timestamp } from "../timestamp/timestamp";
|
|
17
17
|
/**
|
|
18
|
-
* @generated from protobuf message resources.livemap.
|
|
18
|
+
* @generated from protobuf message resources.livemap.UserMarker
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface UserMarker {
|
|
21
21
|
/**
|
|
22
|
-
* @generated from protobuf field:
|
|
22
|
+
* @generated from protobuf field: int32 user_id = 1;
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
userId: number;
|
|
25
25
|
/**
|
|
26
|
-
* @generated from protobuf field:
|
|
26
|
+
* @generated from protobuf field: double x = 2;
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
x: number;
|
|
29
29
|
/**
|
|
30
|
-
* @generated from protobuf field:
|
|
30
|
+
* @generated from protobuf field: double y = 3;
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
y: number;
|
|
33
33
|
/**
|
|
34
|
-
* @generated from protobuf field:
|
|
34
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 4;
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
updatedAt?: Timestamp;
|
|
37
37
|
/**
|
|
38
|
-
* @
|
|
38
|
+
* @sanitize: method=StripTags
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: optional string postal = 5;
|
|
39
41
|
*/
|
|
40
|
-
|
|
42
|
+
postal?: string;
|
|
41
43
|
/**
|
|
42
|
-
* @sanitize
|
|
44
|
+
* @sanitize: method=StripTags
|
|
43
45
|
*
|
|
44
|
-
* @generated from protobuf field: string
|
|
46
|
+
* @generated from protobuf field: optional string color = 6;
|
|
45
47
|
*/
|
|
46
|
-
|
|
48
|
+
color?: string;
|
|
47
49
|
/**
|
|
48
|
-
* @
|
|
49
|
-
*
|
|
50
|
-
* @generated from protobuf field: optional string description = 6;
|
|
50
|
+
* @generated from protobuf field: string job = 7;
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
job: string;
|
|
53
53
|
/**
|
|
54
|
-
* @generated from protobuf field:
|
|
54
|
+
* @generated from protobuf field: string job_label = 8;
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
jobLabel: string;
|
|
57
57
|
/**
|
|
58
|
-
* @generated from protobuf field:
|
|
58
|
+
* @generated from protobuf field: resources.jobs.Colleague user = 9;
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
user?: Colleague; // @gotags: alias:"user"
|
|
61
61
|
/**
|
|
62
|
-
* @
|
|
63
|
-
*
|
|
64
|
-
* @generated from protobuf field: optional string postal = 9;
|
|
62
|
+
* @generated from protobuf field: optional uint64 unit_id = 10;
|
|
65
63
|
*/
|
|
66
|
-
|
|
64
|
+
unitId?: number;
|
|
67
65
|
/**
|
|
68
|
-
* @
|
|
69
|
-
*
|
|
70
|
-
* @generated from protobuf field: optional string color = 10;
|
|
66
|
+
* @generated from protobuf field: optional resources.centrum.Unit unit = 11;
|
|
71
67
|
*/
|
|
72
|
-
|
|
68
|
+
unit?: Unit;
|
|
73
69
|
/**
|
|
74
|
-
* @
|
|
75
|
-
*
|
|
76
|
-
* @generated from protobuf field: optional string icon = 11;
|
|
70
|
+
* @generated from protobuf field: bool hidden = 12;
|
|
77
71
|
*/
|
|
78
|
-
|
|
72
|
+
hidden: boolean;
|
|
79
73
|
}
|
|
80
74
|
/**
|
|
81
|
-
* @generated from protobuf message resources.livemap.
|
|
75
|
+
* @generated from protobuf message resources.livemap.MarkerMarker
|
|
82
76
|
*/
|
|
83
|
-
export interface
|
|
77
|
+
export interface MarkerMarker {
|
|
84
78
|
/**
|
|
85
|
-
* @generated from protobuf field:
|
|
79
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
86
80
|
*/
|
|
87
|
-
|
|
81
|
+
id: number;
|
|
88
82
|
/**
|
|
89
|
-
* @generated from protobuf field:
|
|
83
|
+
* @generated from protobuf field: double x = 2;
|
|
90
84
|
*/
|
|
91
|
-
|
|
85
|
+
x: number;
|
|
92
86
|
/**
|
|
93
|
-
* @generated from protobuf field:
|
|
87
|
+
* @generated from protobuf field: double y = 3;
|
|
94
88
|
*/
|
|
95
|
-
|
|
89
|
+
y: number;
|
|
96
90
|
/**
|
|
97
|
-
* @generated from protobuf field: optional
|
|
91
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4;
|
|
98
92
|
*/
|
|
99
|
-
|
|
93
|
+
createdAt?: Timestamp;
|
|
100
94
|
/**
|
|
101
|
-
* @generated from protobuf field: optional resources.
|
|
95
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 5;
|
|
102
96
|
*/
|
|
103
|
-
|
|
97
|
+
updatedAt?: Timestamp;
|
|
104
98
|
/**
|
|
105
|
-
* @generated from protobuf field:
|
|
99
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 6;
|
|
106
100
|
*/
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @generated from protobuf message resources.livemap.MarkerMarker
|
|
111
|
-
*/
|
|
112
|
-
export interface MarkerMarker {
|
|
101
|
+
expiresAt?: Timestamp;
|
|
113
102
|
/**
|
|
114
|
-
* @generated from protobuf field: resources.
|
|
103
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 7;
|
|
115
104
|
*/
|
|
116
|
-
|
|
105
|
+
deletedAt?: Timestamp;
|
|
117
106
|
/**
|
|
118
|
-
* @
|
|
107
|
+
* @sanitize
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: string name = 8;
|
|
119
110
|
*/
|
|
120
|
-
|
|
111
|
+
name: string;
|
|
112
|
+
/**
|
|
113
|
+
* @sanitize
|
|
114
|
+
*
|
|
115
|
+
* @generated from protobuf field: optional string description = 9;
|
|
116
|
+
*/
|
|
117
|
+
description?: string;
|
|
121
118
|
/**
|
|
122
|
-
* @
|
|
119
|
+
* @sanitize: method=StripTags
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf field: optional string postal = 10;
|
|
123
122
|
*/
|
|
124
|
-
|
|
123
|
+
postal?: string;
|
|
124
|
+
/**
|
|
125
|
+
* @sanitize: method=StripTags
|
|
126
|
+
*
|
|
127
|
+
* @generated from protobuf field: optional string color = 11;
|
|
128
|
+
*/
|
|
129
|
+
color?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf field: string job = 12;
|
|
132
|
+
*/
|
|
133
|
+
job: string;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf field: string job_label = 13;
|
|
136
|
+
*/
|
|
137
|
+
jobLabel: string;
|
|
125
138
|
/**
|
|
126
|
-
* @generated from protobuf field: resources.livemap.
|
|
139
|
+
* @generated from protobuf field: resources.livemap.MarkerType type = 14;
|
|
140
|
+
*/
|
|
141
|
+
type: MarkerType; // @gotags: alias:"markerType"
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf field: resources.livemap.MarkerData data = 15;
|
|
127
144
|
*/
|
|
128
145
|
data?: MarkerData; // @gotags: alias:"markerData"
|
|
129
146
|
/**
|
|
130
|
-
* @generated from protobuf field: optional int32 creator_id =
|
|
147
|
+
* @generated from protobuf field: optional int32 creator_id = 16;
|
|
131
148
|
*/
|
|
132
149
|
creatorId?: number;
|
|
133
150
|
/**
|
|
134
|
-
* @generated from protobuf field: optional resources.users.UserShort creator =
|
|
151
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 17;
|
|
135
152
|
*/
|
|
136
153
|
creator?: UserShort;
|
|
137
154
|
}
|
|
138
155
|
/**
|
|
156
|
+
* @dbscanner
|
|
157
|
+
*
|
|
139
158
|
* @generated from protobuf message resources.livemap.MarkerData
|
|
140
159
|
*/
|
|
141
160
|
export interface MarkerData {
|
|
@@ -171,6 +190,17 @@ export interface CircleMarker {
|
|
|
171
190
|
*/
|
|
172
191
|
opacity?: number;
|
|
173
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* @generated from protobuf message resources.livemap.IconMarker
|
|
195
|
+
*/
|
|
196
|
+
export interface IconMarker {
|
|
197
|
+
/**
|
|
198
|
+
* @sanitize: method=StripTags
|
|
199
|
+
*
|
|
200
|
+
* @generated from protobuf field: string icon = 1;
|
|
201
|
+
*/
|
|
202
|
+
icon: string;
|
|
203
|
+
}
|
|
174
204
|
/**
|
|
175
205
|
* @generated from protobuf message resources.livemap.Coords
|
|
176
206
|
*/
|
|
@@ -184,17 +214,6 @@ export interface Coords {
|
|
|
184
214
|
*/
|
|
185
215
|
y: number;
|
|
186
216
|
}
|
|
187
|
-
/**
|
|
188
|
-
* @generated from protobuf message resources.livemap.IconMarker
|
|
189
|
-
*/
|
|
190
|
-
export interface IconMarker {
|
|
191
|
-
/**
|
|
192
|
-
* @sanitize: method=StripTags
|
|
193
|
-
*
|
|
194
|
-
* @generated from protobuf field: string icon = 1;
|
|
195
|
-
*/
|
|
196
|
-
icon: string;
|
|
197
|
-
}
|
|
198
217
|
/**
|
|
199
218
|
* @generated from protobuf enum resources.livemap.MarkerType
|
|
200
219
|
*/
|
|
@@ -217,175 +236,74 @@ export enum MarkerType {
|
|
|
217
236
|
ICON = 3
|
|
218
237
|
}
|
|
219
238
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
220
|
-
class
|
|
239
|
+
class UserMarker$Type extends MessageType<UserMarker> {
|
|
221
240
|
constructor() {
|
|
222
|
-
super("resources.livemap.
|
|
223
|
-
{ no: 1, name: "
|
|
224
|
-
{ no: 2, name: "
|
|
225
|
-
{ no: 3, name: "
|
|
226
|
-
{ no: 4, name: "
|
|
227
|
-
{ no:
|
|
228
|
-
{ no:
|
|
229
|
-
{ no:
|
|
230
|
-
{ no:
|
|
231
|
-
{ no:
|
|
232
|
-
{ no:
|
|
233
|
-
{ no:
|
|
234
|
-
{ no:
|
|
241
|
+
super("resources.livemap.UserMarker", [
|
|
242
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
243
|
+
{ no: 2, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
244
|
+
{ no: 3, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
245
|
+
{ no: 4, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
246
|
+
{ no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
|
|
247
|
+
{ no: 6, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } } } },
|
|
248
|
+
{ no: 7, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
249
|
+
{ no: 8, name: "job_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
250
|
+
{ no: 9, name: "user", kind: "message", T: () => Colleague },
|
|
251
|
+
{ no: 10, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
252
|
+
{ no: 11, name: "unit", kind: "message", T: () => Unit },
|
|
253
|
+
{ no: 12, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
235
254
|
]);
|
|
236
255
|
}
|
|
237
|
-
create(value?: PartialMessage<
|
|
256
|
+
create(value?: PartialMessage<UserMarker>): UserMarker {
|
|
238
257
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
239
|
-
message.
|
|
240
|
-
message.job = "";
|
|
241
|
-
message.jobLabel = "";
|
|
242
|
-
message.name = "";
|
|
258
|
+
message.userId = 0;
|
|
243
259
|
message.x = 0;
|
|
244
260
|
message.y = 0;
|
|
261
|
+
message.job = "";
|
|
262
|
+
message.jobLabel = "";
|
|
263
|
+
message.hidden = false;
|
|
245
264
|
if (value !== undefined)
|
|
246
|
-
reflectionMergePartial<
|
|
265
|
+
reflectionMergePartial<UserMarker>(this, message, value);
|
|
247
266
|
return message;
|
|
248
267
|
}
|
|
249
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
268
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserMarker): UserMarker {
|
|
250
269
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
251
270
|
while (reader.pos < end) {
|
|
252
271
|
let [fieldNo, wireType] = reader.tag();
|
|
253
272
|
switch (fieldNo) {
|
|
254
|
-
case /*
|
|
255
|
-
message.
|
|
256
|
-
break;
|
|
257
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
258
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
259
|
-
break;
|
|
260
|
-
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
261
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
262
|
-
break;
|
|
263
|
-
case /* string job */ 4:
|
|
264
|
-
message.job = reader.string();
|
|
265
|
-
break;
|
|
266
|
-
case /* string job_label */ 12:
|
|
267
|
-
message.jobLabel = reader.string();
|
|
268
|
-
break;
|
|
269
|
-
case /* string name */ 5:
|
|
270
|
-
message.name = reader.string();
|
|
271
|
-
break;
|
|
272
|
-
case /* optional string description */ 6:
|
|
273
|
-
message.description = reader.string();
|
|
273
|
+
case /* int32 user_id */ 1:
|
|
274
|
+
message.userId = reader.int32();
|
|
274
275
|
break;
|
|
275
|
-
case /* double x */
|
|
276
|
+
case /* double x */ 2:
|
|
276
277
|
message.x = reader.double();
|
|
277
278
|
break;
|
|
278
|
-
case /* double y */
|
|
279
|
+
case /* double y */ 3:
|
|
279
280
|
message.y = reader.double();
|
|
280
281
|
break;
|
|
281
|
-
case /* optional
|
|
282
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 4:
|
|
283
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
284
|
+
break;
|
|
285
|
+
case /* optional string postal */ 5:
|
|
282
286
|
message.postal = reader.string();
|
|
283
287
|
break;
|
|
284
|
-
case /* optional string color */
|
|
288
|
+
case /* optional string color */ 6:
|
|
285
289
|
message.color = reader.string();
|
|
286
290
|
break;
|
|
287
|
-
case /*
|
|
288
|
-
message.
|
|
289
|
-
break;
|
|
290
|
-
default:
|
|
291
|
-
let u = options.readUnknownField;
|
|
292
|
-
if (u === "throw")
|
|
293
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
294
|
-
let d = reader.skip(wireType);
|
|
295
|
-
if (u !== false)
|
|
296
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
return message;
|
|
300
|
-
}
|
|
301
|
-
internalBinaryWrite(message: MarkerInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
302
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
303
|
-
if (message.id !== "0")
|
|
304
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
305
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
306
|
-
if (message.createdAt)
|
|
307
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
308
|
-
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
309
|
-
if (message.updatedAt)
|
|
310
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
311
|
-
/* string job = 4; */
|
|
312
|
-
if (message.job !== "")
|
|
313
|
-
writer.tag(4, WireType.LengthDelimited).string(message.job);
|
|
314
|
-
/* string job_label = 12; */
|
|
315
|
-
if (message.jobLabel !== "")
|
|
316
|
-
writer.tag(12, WireType.LengthDelimited).string(message.jobLabel);
|
|
317
|
-
/* string name = 5; */
|
|
318
|
-
if (message.name !== "")
|
|
319
|
-
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
320
|
-
/* optional string description = 6; */
|
|
321
|
-
if (message.description !== undefined)
|
|
322
|
-
writer.tag(6, WireType.LengthDelimited).string(message.description);
|
|
323
|
-
/* double x = 7; */
|
|
324
|
-
if (message.x !== 0)
|
|
325
|
-
writer.tag(7, WireType.Bit64).double(message.x);
|
|
326
|
-
/* double y = 8; */
|
|
327
|
-
if (message.y !== 0)
|
|
328
|
-
writer.tag(8, WireType.Bit64).double(message.y);
|
|
329
|
-
/* optional string postal = 9; */
|
|
330
|
-
if (message.postal !== undefined)
|
|
331
|
-
writer.tag(9, WireType.LengthDelimited).string(message.postal);
|
|
332
|
-
/* optional string color = 10; */
|
|
333
|
-
if (message.color !== undefined)
|
|
334
|
-
writer.tag(10, WireType.LengthDelimited).string(message.color);
|
|
335
|
-
/* optional string icon = 11; */
|
|
336
|
-
if (message.icon !== undefined)
|
|
337
|
-
writer.tag(11, WireType.LengthDelimited).string(message.icon);
|
|
338
|
-
let u = options.writeUnknownFields;
|
|
339
|
-
if (u !== false)
|
|
340
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
341
|
-
return writer;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* @generated MessageType for protobuf message resources.livemap.MarkerInfo
|
|
346
|
-
*/
|
|
347
|
-
export const MarkerInfo = new MarkerInfo$Type();
|
|
348
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
349
|
-
class UserMarker$Type extends MessageType<UserMarker> {
|
|
350
|
-
constructor() {
|
|
351
|
-
super("resources.livemap.UserMarker", [
|
|
352
|
-
{ no: 1, name: "info", kind: "message", T: () => MarkerInfo },
|
|
353
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
354
|
-
{ no: 3, name: "user", kind: "message", T: () => Colleague },
|
|
355
|
-
{ no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
356
|
-
{ no: 5, name: "unit", kind: "message", T: () => Unit },
|
|
357
|
-
{ no: 6, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
358
|
-
]);
|
|
359
|
-
}
|
|
360
|
-
create(value?: PartialMessage<UserMarker>): UserMarker {
|
|
361
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
362
|
-
message.userId = 0;
|
|
363
|
-
message.hidden = false;
|
|
364
|
-
if (value !== undefined)
|
|
365
|
-
reflectionMergePartial<UserMarker>(this, message, value);
|
|
366
|
-
return message;
|
|
367
|
-
}
|
|
368
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserMarker): UserMarker {
|
|
369
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
370
|
-
while (reader.pos < end) {
|
|
371
|
-
let [fieldNo, wireType] = reader.tag();
|
|
372
|
-
switch (fieldNo) {
|
|
373
|
-
case /* resources.livemap.MarkerInfo info */ 1:
|
|
374
|
-
message.info = MarkerInfo.internalBinaryRead(reader, reader.uint32(), options, message.info);
|
|
291
|
+
case /* string job */ 7:
|
|
292
|
+
message.job = reader.string();
|
|
375
293
|
break;
|
|
376
|
-
case /*
|
|
377
|
-
message.
|
|
294
|
+
case /* string job_label */ 8:
|
|
295
|
+
message.jobLabel = reader.string();
|
|
378
296
|
break;
|
|
379
|
-
case /* resources.jobs.Colleague user */
|
|
297
|
+
case /* resources.jobs.Colleague user */ 9:
|
|
380
298
|
message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
381
299
|
break;
|
|
382
|
-
case /* optional uint64 unit_id
|
|
383
|
-
message.unitId = reader.uint64().
|
|
300
|
+
case /* optional uint64 unit_id */ 10:
|
|
301
|
+
message.unitId = reader.uint64().toNumber();
|
|
384
302
|
break;
|
|
385
|
-
case /* optional resources.centrum.Unit unit */
|
|
303
|
+
case /* optional resources.centrum.Unit unit */ 11:
|
|
386
304
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
387
305
|
break;
|
|
388
|
-
case /* bool hidden */
|
|
306
|
+
case /* bool hidden */ 12:
|
|
389
307
|
message.hidden = reader.bool();
|
|
390
308
|
break;
|
|
391
309
|
default:
|
|
@@ -400,24 +318,42 @@ class UserMarker$Type extends MessageType<UserMarker> {
|
|
|
400
318
|
return message;
|
|
401
319
|
}
|
|
402
320
|
internalBinaryWrite(message: UserMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
403
|
-
/*
|
|
404
|
-
if (message.info)
|
|
405
|
-
MarkerInfo.internalBinaryWrite(message.info, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
406
|
-
/* int32 user_id = 2; */
|
|
321
|
+
/* int32 user_id = 1; */
|
|
407
322
|
if (message.userId !== 0)
|
|
408
|
-
writer.tag(
|
|
409
|
-
/*
|
|
323
|
+
writer.tag(1, WireType.Varint).int32(message.userId);
|
|
324
|
+
/* double x = 2; */
|
|
325
|
+
if (message.x !== 0)
|
|
326
|
+
writer.tag(2, WireType.Bit64).double(message.x);
|
|
327
|
+
/* double y = 3; */
|
|
328
|
+
if (message.y !== 0)
|
|
329
|
+
writer.tag(3, WireType.Bit64).double(message.y);
|
|
330
|
+
/* optional resources.timestamp.Timestamp updated_at = 4; */
|
|
331
|
+
if (message.updatedAt)
|
|
332
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
333
|
+
/* optional string postal = 5; */
|
|
334
|
+
if (message.postal !== undefined)
|
|
335
|
+
writer.tag(5, WireType.LengthDelimited).string(message.postal);
|
|
336
|
+
/* optional string color = 6; */
|
|
337
|
+
if (message.color !== undefined)
|
|
338
|
+
writer.tag(6, WireType.LengthDelimited).string(message.color);
|
|
339
|
+
/* string job = 7; */
|
|
340
|
+
if (message.job !== "")
|
|
341
|
+
writer.tag(7, WireType.LengthDelimited).string(message.job);
|
|
342
|
+
/* string job_label = 8; */
|
|
343
|
+
if (message.jobLabel !== "")
|
|
344
|
+
writer.tag(8, WireType.LengthDelimited).string(message.jobLabel);
|
|
345
|
+
/* resources.jobs.Colleague user = 9; */
|
|
410
346
|
if (message.user)
|
|
411
|
-
Colleague.internalBinaryWrite(message.user, writer.tag(
|
|
412
|
-
/* optional uint64 unit_id =
|
|
347
|
+
Colleague.internalBinaryWrite(message.user, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
348
|
+
/* optional uint64 unit_id = 10; */
|
|
413
349
|
if (message.unitId !== undefined)
|
|
414
|
-
writer.tag(
|
|
415
|
-
/* optional resources.centrum.Unit unit =
|
|
350
|
+
writer.tag(10, WireType.Varint).uint64(message.unitId);
|
|
351
|
+
/* optional resources.centrum.Unit unit = 11; */
|
|
416
352
|
if (message.unit)
|
|
417
|
-
Unit.internalBinaryWrite(message.unit, writer.tag(
|
|
418
|
-
/* bool hidden =
|
|
353
|
+
Unit.internalBinaryWrite(message.unit, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
354
|
+
/* bool hidden = 12; */
|
|
419
355
|
if (message.hidden !== false)
|
|
420
|
-
writer.tag(
|
|
356
|
+
writer.tag(12, WireType.Varint).bool(message.hidden);
|
|
421
357
|
let u = options.writeUnknownFields;
|
|
422
358
|
if (u !== false)
|
|
423
359
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -432,16 +368,33 @@ export const UserMarker = new UserMarker$Type();
|
|
|
432
368
|
class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
433
369
|
constructor() {
|
|
434
370
|
super("resources.livemap.MarkerMarker", [
|
|
435
|
-
{ no: 1, name: "
|
|
436
|
-
{ no: 2, name: "
|
|
437
|
-
{ no: 3, name: "
|
|
438
|
-
{ no: 4, name: "
|
|
439
|
-
{ no: 5, name: "
|
|
440
|
-
{ no: 6, name: "
|
|
371
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
372
|
+
{ no: 2, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
373
|
+
{ no: 3, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
374
|
+
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
375
|
+
{ no: 5, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
376
|
+
{ no: 6, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
377
|
+
{ no: 7, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
378
|
+
{ no: 8, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } } } },
|
|
379
|
+
{ no: 9, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
380
|
+
{ no: 10, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
|
|
381
|
+
{ no: 11, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "7", pattern: "^#[A-Fa-f0-9]{6}$" } } } },
|
|
382
|
+
{ no: 12, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
383
|
+
{ no: 13, name: "job_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
384
|
+
{ no: 14, name: "type", kind: "enum", T: () => ["resources.livemap.MarkerType", MarkerType, "MARKER_TYPE_"] },
|
|
385
|
+
{ no: 15, name: "data", kind: "message", T: () => MarkerData },
|
|
386
|
+
{ no: 16, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
387
|
+
{ no: 17, name: "creator", kind: "message", T: () => UserShort }
|
|
441
388
|
]);
|
|
442
389
|
}
|
|
443
390
|
create(value?: PartialMessage<MarkerMarker>): MarkerMarker {
|
|
444
391
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
392
|
+
message.id = 0;
|
|
393
|
+
message.x = 0;
|
|
394
|
+
message.y = 0;
|
|
395
|
+
message.name = "";
|
|
396
|
+
message.job = "";
|
|
397
|
+
message.jobLabel = "";
|
|
445
398
|
message.type = 0;
|
|
446
399
|
if (value !== undefined)
|
|
447
400
|
reflectionMergePartial<MarkerMarker>(this, message, value);
|
|
@@ -452,22 +405,55 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
452
405
|
while (reader.pos < end) {
|
|
453
406
|
let [fieldNo, wireType] = reader.tag();
|
|
454
407
|
switch (fieldNo) {
|
|
455
|
-
case /*
|
|
456
|
-
message.
|
|
408
|
+
case /* uint64 id */ 1:
|
|
409
|
+
message.id = reader.uint64().toNumber();
|
|
457
410
|
break;
|
|
458
|
-
case /*
|
|
459
|
-
message.
|
|
411
|
+
case /* double x */ 2:
|
|
412
|
+
message.x = reader.double();
|
|
413
|
+
break;
|
|
414
|
+
case /* double y */ 3:
|
|
415
|
+
message.y = reader.double();
|
|
416
|
+
break;
|
|
417
|
+
case /* optional resources.timestamp.Timestamp created_at */ 4:
|
|
418
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
419
|
+
break;
|
|
420
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 5:
|
|
421
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
460
422
|
break;
|
|
461
|
-
case /* optional resources.timestamp.Timestamp expires_at */
|
|
423
|
+
case /* optional resources.timestamp.Timestamp expires_at */ 6:
|
|
462
424
|
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
463
425
|
break;
|
|
464
|
-
case /* resources.
|
|
426
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 7:
|
|
427
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
428
|
+
break;
|
|
429
|
+
case /* string name */ 8:
|
|
430
|
+
message.name = reader.string();
|
|
431
|
+
break;
|
|
432
|
+
case /* optional string description */ 9:
|
|
433
|
+
message.description = reader.string();
|
|
434
|
+
break;
|
|
435
|
+
case /* optional string postal */ 10:
|
|
436
|
+
message.postal = reader.string();
|
|
437
|
+
break;
|
|
438
|
+
case /* optional string color */ 11:
|
|
439
|
+
message.color = reader.string();
|
|
440
|
+
break;
|
|
441
|
+
case /* string job */ 12:
|
|
442
|
+
message.job = reader.string();
|
|
443
|
+
break;
|
|
444
|
+
case /* string job_label */ 13:
|
|
445
|
+
message.jobLabel = reader.string();
|
|
446
|
+
break;
|
|
447
|
+
case /* resources.livemap.MarkerType type */ 14:
|
|
448
|
+
message.type = reader.int32();
|
|
449
|
+
break;
|
|
450
|
+
case /* resources.livemap.MarkerData data */ 15:
|
|
465
451
|
message.data = MarkerData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
466
452
|
break;
|
|
467
|
-
case /* optional int32 creator_id */
|
|
453
|
+
case /* optional int32 creator_id */ 16:
|
|
468
454
|
message.creatorId = reader.int32();
|
|
469
455
|
break;
|
|
470
|
-
case /* optional resources.users.UserShort creator */
|
|
456
|
+
case /* optional resources.users.UserShort creator */ 17:
|
|
471
457
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
472
458
|
break;
|
|
473
459
|
default:
|
|
@@ -482,24 +468,57 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
482
468
|
return message;
|
|
483
469
|
}
|
|
484
470
|
internalBinaryWrite(message: MarkerMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
485
|
-
/*
|
|
486
|
-
if (message.
|
|
487
|
-
|
|
488
|
-
/*
|
|
489
|
-
if (message.
|
|
490
|
-
writer.tag(2, WireType.
|
|
491
|
-
/*
|
|
471
|
+
/* uint64 id = 1; */
|
|
472
|
+
if (message.id !== 0)
|
|
473
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
474
|
+
/* double x = 2; */
|
|
475
|
+
if (message.x !== 0)
|
|
476
|
+
writer.tag(2, WireType.Bit64).double(message.x);
|
|
477
|
+
/* double y = 3; */
|
|
478
|
+
if (message.y !== 0)
|
|
479
|
+
writer.tag(3, WireType.Bit64).double(message.y);
|
|
480
|
+
/* optional resources.timestamp.Timestamp created_at = 4; */
|
|
481
|
+
if (message.createdAt)
|
|
482
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
483
|
+
/* optional resources.timestamp.Timestamp updated_at = 5; */
|
|
484
|
+
if (message.updatedAt)
|
|
485
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
486
|
+
/* optional resources.timestamp.Timestamp expires_at = 6; */
|
|
492
487
|
if (message.expiresAt)
|
|
493
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(
|
|
494
|
-
/* resources.
|
|
488
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
489
|
+
/* optional resources.timestamp.Timestamp deleted_at = 7; */
|
|
490
|
+
if (message.deletedAt)
|
|
491
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
492
|
+
/* string name = 8; */
|
|
493
|
+
if (message.name !== "")
|
|
494
|
+
writer.tag(8, WireType.LengthDelimited).string(message.name);
|
|
495
|
+
/* optional string description = 9; */
|
|
496
|
+
if (message.description !== undefined)
|
|
497
|
+
writer.tag(9, WireType.LengthDelimited).string(message.description);
|
|
498
|
+
/* optional string postal = 10; */
|
|
499
|
+
if (message.postal !== undefined)
|
|
500
|
+
writer.tag(10, WireType.LengthDelimited).string(message.postal);
|
|
501
|
+
/* optional string color = 11; */
|
|
502
|
+
if (message.color !== undefined)
|
|
503
|
+
writer.tag(11, WireType.LengthDelimited).string(message.color);
|
|
504
|
+
/* string job = 12; */
|
|
505
|
+
if (message.job !== "")
|
|
506
|
+
writer.tag(12, WireType.LengthDelimited).string(message.job);
|
|
507
|
+
/* string job_label = 13; */
|
|
508
|
+
if (message.jobLabel !== "")
|
|
509
|
+
writer.tag(13, WireType.LengthDelimited).string(message.jobLabel);
|
|
510
|
+
/* resources.livemap.MarkerType type = 14; */
|
|
511
|
+
if (message.type !== 0)
|
|
512
|
+
writer.tag(14, WireType.Varint).int32(message.type);
|
|
513
|
+
/* resources.livemap.MarkerData data = 15; */
|
|
495
514
|
if (message.data)
|
|
496
|
-
MarkerData.internalBinaryWrite(message.data, writer.tag(
|
|
497
|
-
/* optional int32 creator_id =
|
|
515
|
+
MarkerData.internalBinaryWrite(message.data, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
516
|
+
/* optional int32 creator_id = 16; */
|
|
498
517
|
if (message.creatorId !== undefined)
|
|
499
|
-
writer.tag(
|
|
500
|
-
/* optional resources.users.UserShort creator =
|
|
518
|
+
writer.tag(16, WireType.Varint).int32(message.creatorId);
|
|
519
|
+
/* optional resources.users.UserShort creator = 17; */
|
|
501
520
|
if (message.creator)
|
|
502
|
-
UserShort.internalBinaryWrite(message.creator, writer.tag(
|
|
521
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
503
522
|
let u = options.writeUnknownFields;
|
|
504
523
|
if (u !== false)
|
|
505
524
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -575,7 +594,7 @@ class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
|
575
594
|
constructor() {
|
|
576
595
|
super("resources.livemap.CircleMarker", [
|
|
577
596
|
{ no: 1, name: "radius", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
578
|
-
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT
|
|
597
|
+
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { lte: 75, gte: 1 } } } }
|
|
579
598
|
]);
|
|
580
599
|
}
|
|
581
600
|
create(value?: PartialMessage<CircleMarker>): CircleMarker {
|
|
@@ -625,31 +644,26 @@ class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
|
625
644
|
*/
|
|
626
645
|
export const CircleMarker = new CircleMarker$Type();
|
|
627
646
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
628
|
-
class
|
|
647
|
+
class IconMarker$Type extends MessageType<IconMarker> {
|
|
629
648
|
constructor() {
|
|
630
|
-
super("resources.livemap.
|
|
631
|
-
{ no: 1, name: "
|
|
632
|
-
{ no: 2, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
649
|
+
super("resources.livemap.IconMarker", [
|
|
650
|
+
{ no: 1, name: "icon", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } }
|
|
633
651
|
]);
|
|
634
652
|
}
|
|
635
|
-
create(value?: PartialMessage<
|
|
653
|
+
create(value?: PartialMessage<IconMarker>): IconMarker {
|
|
636
654
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
637
|
-
message.
|
|
638
|
-
message.y = 0;
|
|
655
|
+
message.icon = "";
|
|
639
656
|
if (value !== undefined)
|
|
640
|
-
reflectionMergePartial<
|
|
657
|
+
reflectionMergePartial<IconMarker>(this, message, value);
|
|
641
658
|
return message;
|
|
642
659
|
}
|
|
643
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
660
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IconMarker): IconMarker {
|
|
644
661
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
645
662
|
while (reader.pos < end) {
|
|
646
663
|
let [fieldNo, wireType] = reader.tag();
|
|
647
664
|
switch (fieldNo) {
|
|
648
|
-
case /*
|
|
649
|
-
message.
|
|
650
|
-
break;
|
|
651
|
-
case /* double y */ 2:
|
|
652
|
-
message.y = reader.double();
|
|
665
|
+
case /* string icon */ 1:
|
|
666
|
+
message.icon = reader.string();
|
|
653
667
|
break;
|
|
654
668
|
default:
|
|
655
669
|
let u = options.readUnknownField;
|
|
@@ -662,13 +676,10 @@ class Coords$Type extends MessageType<Coords> {
|
|
|
662
676
|
}
|
|
663
677
|
return message;
|
|
664
678
|
}
|
|
665
|
-
internalBinaryWrite(message:
|
|
666
|
-
/*
|
|
667
|
-
if (message.
|
|
668
|
-
writer.tag(1, WireType.
|
|
669
|
-
/* double y = 2; */
|
|
670
|
-
if (message.y !== 0)
|
|
671
|
-
writer.tag(2, WireType.Bit64).double(message.y);
|
|
679
|
+
internalBinaryWrite(message: IconMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
680
|
+
/* string icon = 1; */
|
|
681
|
+
if (message.icon !== "")
|
|
682
|
+
writer.tag(1, WireType.LengthDelimited).string(message.icon);
|
|
672
683
|
let u = options.writeUnknownFields;
|
|
673
684
|
if (u !== false)
|
|
674
685
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -676,30 +687,35 @@ class Coords$Type extends MessageType<Coords> {
|
|
|
676
687
|
}
|
|
677
688
|
}
|
|
678
689
|
/**
|
|
679
|
-
* @generated MessageType for protobuf message resources.livemap.
|
|
690
|
+
* @generated MessageType for protobuf message resources.livemap.IconMarker
|
|
680
691
|
*/
|
|
681
|
-
export const
|
|
692
|
+
export const IconMarker = new IconMarker$Type();
|
|
682
693
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
683
|
-
class
|
|
694
|
+
class Coords$Type extends MessageType<Coords> {
|
|
684
695
|
constructor() {
|
|
685
|
-
super("resources.livemap.
|
|
686
|
-
{ no: 1, name: "
|
|
696
|
+
super("resources.livemap.Coords", [
|
|
697
|
+
{ no: 1, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
698
|
+
{ no: 2, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
687
699
|
]);
|
|
688
700
|
}
|
|
689
|
-
create(value?: PartialMessage<
|
|
701
|
+
create(value?: PartialMessage<Coords>): Coords {
|
|
690
702
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
691
|
-
message.
|
|
703
|
+
message.x = 0;
|
|
704
|
+
message.y = 0;
|
|
692
705
|
if (value !== undefined)
|
|
693
|
-
reflectionMergePartial<
|
|
706
|
+
reflectionMergePartial<Coords>(this, message, value);
|
|
694
707
|
return message;
|
|
695
708
|
}
|
|
696
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
709
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Coords): Coords {
|
|
697
710
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
698
711
|
while (reader.pos < end) {
|
|
699
712
|
let [fieldNo, wireType] = reader.tag();
|
|
700
713
|
switch (fieldNo) {
|
|
701
|
-
case /*
|
|
702
|
-
message.
|
|
714
|
+
case /* double x */ 1:
|
|
715
|
+
message.x = reader.double();
|
|
716
|
+
break;
|
|
717
|
+
case /* double y */ 2:
|
|
718
|
+
message.y = reader.double();
|
|
703
719
|
break;
|
|
704
720
|
default:
|
|
705
721
|
let u = options.readUnknownField;
|
|
@@ -712,10 +728,13 @@ class IconMarker$Type extends MessageType<IconMarker> {
|
|
|
712
728
|
}
|
|
713
729
|
return message;
|
|
714
730
|
}
|
|
715
|
-
internalBinaryWrite(message:
|
|
716
|
-
/*
|
|
717
|
-
if (message.
|
|
718
|
-
writer.tag(1, WireType.
|
|
731
|
+
internalBinaryWrite(message: Coords, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
732
|
+
/* double x = 1; */
|
|
733
|
+
if (message.x !== 0)
|
|
734
|
+
writer.tag(1, WireType.Bit64).double(message.x);
|
|
735
|
+
/* double y = 2; */
|
|
736
|
+
if (message.y !== 0)
|
|
737
|
+
writer.tag(2, WireType.Bit64).double(message.y);
|
|
719
738
|
let u = options.writeUnknownFields;
|
|
720
739
|
if (u !== false)
|
|
721
740
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -723,6 +742,6 @@ class IconMarker$Type extends MessageType<IconMarker> {
|
|
|
723
742
|
}
|
|
724
743
|
}
|
|
725
744
|
/**
|
|
726
|
-
* @generated MessageType for protobuf message resources.livemap.
|
|
745
|
+
* @generated MessageType for protobuf message resources.livemap.Coords
|
|
727
746
|
*/
|
|
728
|
-
export const
|
|
747
|
+
export const Coords = new Coords$Type();
|