@fivenet-app/gen 2026.5.0 → 2026.7.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 +6 -0
- package/codegen/perms/perms.ts +74 -40
- package/codegen/sanitizer/sanitizer.ts +6 -0
- package/google/protobuf/descriptor.ts +11 -3
- package/google/protobuf/timestamp.ts +7 -6
- package/package.json +1 -1
- package/perms.ts +387 -41
- package/resources/access/access.ts +481 -0
- package/resources/accounts/accounts.ts +41 -30
- package/resources/audit/audit.ts +5 -1
- package/resources/calendar/access/access.ts +0 -330
- package/resources/calendar/calendar.ts +307 -25
- package/resources/calendar/entries/entries.ts +204 -11
- package/resources/centrum/units/access/access.ts +0 -373
- package/resources/centrum/units/units.ts +20 -8
- package/resources/citizens/labels/access.ts +0 -191
- package/resources/citizens/labels/labels.ts +20 -8
- package/resources/common/content/diff_activity.ts +1 -1
- package/resources/cron/cron.ts +1 -1
- package/resources/documents/access/access.ts +0 -329
- package/resources/documents/activity/activity.ts +49 -45
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests/requests.ts +1 -1
- package/resources/documents/stamps/stamp.ts +40 -210
- package/resources/documents/templates/templates.ts +158 -318
- package/resources/jobs/colleagues/activity/activity.ts +2 -2
- package/resources/jobs/conduct/conduct.ts +2 -2
- package/resources/jobs/jobs.ts +22 -0
- package/resources/jobs/labels/labels.ts +9 -9
- package/resources/laws/laws.ts +96 -50
- package/resources/livemap/markers/marker_marker.ts +311 -4
- package/resources/mailer/access/access.ts +0 -457
- package/resources/mailer/emails/email.ts +4 -4
- package/resources/notifications/events/events.ts +18 -1
- package/resources/permissions/attributes/attributes.ts +51 -39
- package/resources/permissions/permissions/permissions.ts +46 -34
- package/resources/qualifications/access/access.ts +0 -248
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/settings/config.ts +53 -5
- package/resources/settings/data.ts +1 -1
- package/resources/stats/stats.ts +32 -20
- package/resources/sync/data/data.ts +22 -10
- package/resources/userinfo/userinfo.ts +202 -51
- package/resources/users/activity/activity.ts +70 -77
- package/resources/wiki/access/access.ts +0 -330
- package/resources/wiki/activity/activity.ts +45 -45
- package/resources/wiki/page.ts +9 -9
- package/services/auth/auth.ts +1 -1
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +13 -2
- package/services/centrum/dispatches.ts +32 -12
- package/services/centrum/units.client.ts +15 -2
- package/services/centrum/units.ts +237 -129
- package/services/citizens/citizens.ts +1 -1
- package/services/citizens/labels.client.ts +13 -0
- package/services/citizens/labels.ts +135 -4
- package/services/completor/completor.client.ts +0 -13
- package/services/completor/completor.ts +2 -116
- package/services/documents/approval.ts +20 -9
- package/services/documents/categories.ts +1 -1
- package/services/documents/collab.ts +1 -1
- package/services/documents/comments.ts +4 -4
- package/services/documents/documents.ts +38 -38
- package/services/documents/stats.ts +14 -2
- package/services/documents/templates.ts +1 -1
- package/services/filestore/filestore.ts +4 -4
- package/services/jobs/colleagues.ts +4 -4
- package/services/jobs/conduct.ts +2 -2
- package/services/jobs/groups.client.ts +22 -0
- package/services/jobs/groups.ts +9 -0
- package/services/jobs/timeclock.ts +2 -2
- package/services/mailer/settings.ts +1 -1
- package/services/mailer/thread.ts +3 -3
- package/services/qualifications/exam.ts +5 -5
- package/services/qualifications/qualifications.ts +52 -34
- package/services/settings/accounts.ts +19 -6
- package/services/settings/config.ts +2 -2
- package/services/settings/cron.ts +2 -2
- package/services/settings/laws.client.ts +44 -5
- package/services/settings/laws.ts +357 -4
- package/services/settings/system.ts +6 -6
- package/services/sync/sync.client.ts +42 -14
- package/services/sync/sync.ts +162 -13
- package/services/wiki/collab.ts +1 -1
- package/services/wiki/wiki.client.ts +15 -2
- package/services/wiki/wiki.ts +122 -0
- package/svcs.ts +19 -1
|
@@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Coords } from "../coords";
|
|
14
15
|
import { UserShort } from "../../users/short/user";
|
|
15
16
|
import { Timestamp } from "../../timestamp/timestamp";
|
|
16
17
|
/**
|
|
@@ -69,6 +70,10 @@ export interface MarkerMarker {
|
|
|
69
70
|
* @generated from protobuf field: string job_label = 13
|
|
70
71
|
*/
|
|
71
72
|
jobLabel: string;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: optional bool public = 18
|
|
75
|
+
*/
|
|
76
|
+
public?: boolean;
|
|
72
77
|
/**
|
|
73
78
|
* @generated from protobuf field: resources.livemap.markers.MarkerType type = 14
|
|
74
79
|
*/
|
|
@@ -105,6 +110,24 @@ export interface MarkerData {
|
|
|
105
110
|
* @generated from protobuf field: resources.livemap.markers.IconMarker icon = 4
|
|
106
111
|
*/
|
|
107
112
|
icon: IconMarker;
|
|
113
|
+
} | {
|
|
114
|
+
oneofKind: "rectangle";
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf field: resources.livemap.markers.RectangleMarker rectangle = 5
|
|
117
|
+
*/
|
|
118
|
+
rectangle: RectangleMarker;
|
|
119
|
+
} | {
|
|
120
|
+
oneofKind: "polygon";
|
|
121
|
+
/**
|
|
122
|
+
* @generated from protobuf field: resources.livemap.markers.PolygonMarker polygon = 6
|
|
123
|
+
*/
|
|
124
|
+
polygon: PolygonMarker;
|
|
125
|
+
} | {
|
|
126
|
+
oneofKind: "polyline";
|
|
127
|
+
/**
|
|
128
|
+
* @generated from protobuf field: resources.livemap.markers.PolylineMarker polyline = 7
|
|
129
|
+
*/
|
|
130
|
+
polyline: PolylineMarker;
|
|
108
131
|
} | {
|
|
109
132
|
oneofKind: undefined;
|
|
110
133
|
};
|
|
@@ -121,6 +144,18 @@ export interface CircleMarker {
|
|
|
121
144
|
* @generated from protobuf field: optional float opacity = 2
|
|
122
145
|
*/
|
|
123
146
|
opacity?: number;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf field: optional bool stroke = 3
|
|
149
|
+
*/
|
|
150
|
+
stroke?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf field: optional int32 stroke_width = 4
|
|
153
|
+
*/
|
|
154
|
+
strokeWidth?: number;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf field: optional bool blink = 5
|
|
157
|
+
*/
|
|
158
|
+
blink?: boolean;
|
|
124
159
|
}
|
|
125
160
|
/**
|
|
126
161
|
* @generated from protobuf message resources.livemap.markers.IconMarker
|
|
@@ -131,6 +166,45 @@ export interface IconMarker {
|
|
|
131
166
|
*/
|
|
132
167
|
icon: string;
|
|
133
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* @generated from protobuf message resources.livemap.markers.RectangleMarker
|
|
171
|
+
*/
|
|
172
|
+
export interface RectangleMarker {
|
|
173
|
+
/**
|
|
174
|
+
* @generated from protobuf field: double end_x = 1
|
|
175
|
+
*/
|
|
176
|
+
endX: number;
|
|
177
|
+
/**
|
|
178
|
+
* @generated from protobuf field: double end_y = 2
|
|
179
|
+
*/
|
|
180
|
+
endY: number;
|
|
181
|
+
/**
|
|
182
|
+
* @generated from protobuf field: optional float opacity = 3
|
|
183
|
+
*/
|
|
184
|
+
opacity?: number;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @generated from protobuf message resources.livemap.markers.PolygonMarker
|
|
188
|
+
*/
|
|
189
|
+
export interface PolygonMarker {
|
|
190
|
+
/**
|
|
191
|
+
* @generated from protobuf field: repeated resources.livemap.Coords points = 1
|
|
192
|
+
*/
|
|
193
|
+
points: Coords[];
|
|
194
|
+
/**
|
|
195
|
+
* @generated from protobuf field: optional float opacity = 2
|
|
196
|
+
*/
|
|
197
|
+
opacity?: number;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @generated from protobuf message resources.livemap.markers.PolylineMarker
|
|
201
|
+
*/
|
|
202
|
+
export interface PolylineMarker {
|
|
203
|
+
/**
|
|
204
|
+
* @generated from protobuf field: repeated resources.livemap.Coords points = 1
|
|
205
|
+
*/
|
|
206
|
+
points: Coords[];
|
|
207
|
+
}
|
|
134
208
|
/**
|
|
135
209
|
* @generated from protobuf enum resources.livemap.markers.MarkerType
|
|
136
210
|
*/
|
|
@@ -150,7 +224,19 @@ export enum MarkerType {
|
|
|
150
224
|
/**
|
|
151
225
|
* @generated from protobuf enum value: MARKER_TYPE_ICON = 3;
|
|
152
226
|
*/
|
|
153
|
-
ICON = 3
|
|
227
|
+
ICON = 3,
|
|
228
|
+
/**
|
|
229
|
+
* @generated from protobuf enum value: MARKER_TYPE_RECTANGLE = 4;
|
|
230
|
+
*/
|
|
231
|
+
RECTANGLE = 4,
|
|
232
|
+
/**
|
|
233
|
+
* @generated from protobuf enum value: MARKER_TYPE_POLYGON = 5;
|
|
234
|
+
*/
|
|
235
|
+
POLYGON = 5,
|
|
236
|
+
/**
|
|
237
|
+
* @generated from protobuf enum value: MARKER_TYPE_POLYLINE = 6;
|
|
238
|
+
*/
|
|
239
|
+
POLYLINE = 6
|
|
154
240
|
}
|
|
155
241
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
156
242
|
class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
@@ -169,7 +255,8 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
169
255
|
{ no: 11, 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, stripHtmlTags: true } } },
|
|
170
256
|
{ no: 12, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
171
257
|
{ no: 13, name: "job_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
172
|
-
{ no:
|
|
258
|
+
{ no: 18, name: "public", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
259
|
+
{ no: 14, name: "type", kind: "enum", T: () => ["resources.livemap.markers.MarkerType", MarkerType, "MARKER_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } }, "tagger.tags": "alias:\"markerType\"" } },
|
|
173
260
|
{ no: 15, name: "data", kind: "message", T: () => MarkerData, options: { "tagger.tags": "alias:\"markerData\"" } },
|
|
174
261
|
{ no: 16, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
175
262
|
{ no: 17, name: "creator", kind: "message", T: () => UserShort }
|
|
@@ -232,6 +319,9 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
232
319
|
case /* string job_label */ 13:
|
|
233
320
|
message.jobLabel = reader.string();
|
|
234
321
|
break;
|
|
322
|
+
case /* optional bool public */ 18:
|
|
323
|
+
message.public = reader.bool();
|
|
324
|
+
break;
|
|
235
325
|
case /* resources.livemap.markers.MarkerType type */ 14:
|
|
236
326
|
message.type = reader.int32();
|
|
237
327
|
break;
|
|
@@ -307,6 +397,9 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
307
397
|
/* optional resources.users.short.UserShort creator = 17; */
|
|
308
398
|
if (message.creator)
|
|
309
399
|
UserShort.internalBinaryWrite(message.creator, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
400
|
+
/* optional bool public = 18; */
|
|
401
|
+
if (message.public !== undefined)
|
|
402
|
+
writer.tag(18, WireType.Varint).bool(message.public);
|
|
310
403
|
let u = options.writeUnknownFields;
|
|
311
404
|
if (u !== false)
|
|
312
405
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -322,7 +415,10 @@ class MarkerData$Type extends MessageType<MarkerData> {
|
|
|
322
415
|
constructor() {
|
|
323
416
|
super("resources.livemap.markers.MarkerData", [
|
|
324
417
|
{ no: 3, name: "circle", kind: "message", oneof: "data", T: () => CircleMarker },
|
|
325
|
-
{ no: 4, name: "icon", kind: "message", oneof: "data", T: () => IconMarker }
|
|
418
|
+
{ no: 4, name: "icon", kind: "message", oneof: "data", T: () => IconMarker },
|
|
419
|
+
{ no: 5, name: "rectangle", kind: "message", oneof: "data", T: () => RectangleMarker },
|
|
420
|
+
{ no: 6, name: "polygon", kind: "message", oneof: "data", T: () => PolygonMarker },
|
|
421
|
+
{ no: 7, name: "polyline", kind: "message", oneof: "data", T: () => PolylineMarker }
|
|
326
422
|
], { "codegen.dbscanner.dbscanner": { enabled: true, notJson: true } });
|
|
327
423
|
}
|
|
328
424
|
create(value?: PartialMessage<MarkerData>): MarkerData {
|
|
@@ -349,6 +445,24 @@ class MarkerData$Type extends MessageType<MarkerData> {
|
|
|
349
445
|
icon: IconMarker.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).icon)
|
|
350
446
|
};
|
|
351
447
|
break;
|
|
448
|
+
case /* resources.livemap.markers.RectangleMarker rectangle */ 5:
|
|
449
|
+
message.data = {
|
|
450
|
+
oneofKind: "rectangle",
|
|
451
|
+
rectangle: RectangleMarker.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).rectangle)
|
|
452
|
+
};
|
|
453
|
+
break;
|
|
454
|
+
case /* resources.livemap.markers.PolygonMarker polygon */ 6:
|
|
455
|
+
message.data = {
|
|
456
|
+
oneofKind: "polygon",
|
|
457
|
+
polygon: PolygonMarker.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).polygon)
|
|
458
|
+
};
|
|
459
|
+
break;
|
|
460
|
+
case /* resources.livemap.markers.PolylineMarker polyline */ 7:
|
|
461
|
+
message.data = {
|
|
462
|
+
oneofKind: "polyline",
|
|
463
|
+
polyline: PolylineMarker.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).polyline)
|
|
464
|
+
};
|
|
465
|
+
break;
|
|
352
466
|
default:
|
|
353
467
|
let u = options.readUnknownField;
|
|
354
468
|
if (u === "throw")
|
|
@@ -367,6 +481,15 @@ class MarkerData$Type extends MessageType<MarkerData> {
|
|
|
367
481
|
/* resources.livemap.markers.IconMarker icon = 4; */
|
|
368
482
|
if (message.data.oneofKind === "icon")
|
|
369
483
|
IconMarker.internalBinaryWrite(message.data.icon, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
484
|
+
/* resources.livemap.markers.RectangleMarker rectangle = 5; */
|
|
485
|
+
if (message.data.oneofKind === "rectangle")
|
|
486
|
+
RectangleMarker.internalBinaryWrite(message.data.rectangle, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
487
|
+
/* resources.livemap.markers.PolygonMarker polygon = 6; */
|
|
488
|
+
if (message.data.oneofKind === "polygon")
|
|
489
|
+
PolygonMarker.internalBinaryWrite(message.data.polygon, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
490
|
+
/* resources.livemap.markers.PolylineMarker polyline = 7; */
|
|
491
|
+
if (message.data.oneofKind === "polyline")
|
|
492
|
+
PolylineMarker.internalBinaryWrite(message.data.polyline, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
370
493
|
let u = options.writeUnknownFields;
|
|
371
494
|
if (u !== false)
|
|
372
495
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -382,7 +505,10 @@ class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
|
382
505
|
constructor() {
|
|
383
506
|
super("resources.livemap.markers.CircleMarker", [
|
|
384
507
|
{ no: 1, name: "radius", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
385
|
-
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { float: { lte: 75, gte: 1 } } } }
|
|
508
|
+
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { float: { lte: 75, gte: 1 } } } },
|
|
509
|
+
{ no: 3, name: "stroke", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
510
|
+
{ no: 4, name: "stroke_width", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { lte: 12, gte: 0 } } } },
|
|
511
|
+
{ no: 5, name: "blink", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
386
512
|
]);
|
|
387
513
|
}
|
|
388
514
|
create(value?: PartialMessage<CircleMarker>): CircleMarker {
|
|
@@ -403,6 +529,15 @@ class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
|
403
529
|
case /* optional float opacity */ 2:
|
|
404
530
|
message.opacity = reader.float();
|
|
405
531
|
break;
|
|
532
|
+
case /* optional bool stroke */ 3:
|
|
533
|
+
message.stroke = reader.bool();
|
|
534
|
+
break;
|
|
535
|
+
case /* optional int32 stroke_width */ 4:
|
|
536
|
+
message.strokeWidth = reader.int32();
|
|
537
|
+
break;
|
|
538
|
+
case /* optional bool blink */ 5:
|
|
539
|
+
message.blink = reader.bool();
|
|
540
|
+
break;
|
|
406
541
|
default:
|
|
407
542
|
let u = options.readUnknownField;
|
|
408
543
|
if (u === "throw")
|
|
@@ -421,6 +556,15 @@ class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
|
421
556
|
/* optional float opacity = 2; */
|
|
422
557
|
if (message.opacity !== undefined)
|
|
423
558
|
writer.tag(2, WireType.Bit32).float(message.opacity);
|
|
559
|
+
/* optional bool stroke = 3; */
|
|
560
|
+
if (message.stroke !== undefined)
|
|
561
|
+
writer.tag(3, WireType.Varint).bool(message.stroke);
|
|
562
|
+
/* optional int32 stroke_width = 4; */
|
|
563
|
+
if (message.strokeWidth !== undefined)
|
|
564
|
+
writer.tag(4, WireType.Varint).int32(message.strokeWidth);
|
|
565
|
+
/* optional bool blink = 5; */
|
|
566
|
+
if (message.blink !== undefined)
|
|
567
|
+
writer.tag(5, WireType.Varint).bool(message.blink);
|
|
424
568
|
let u = options.writeUnknownFields;
|
|
425
569
|
if (u !== false)
|
|
426
570
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -478,3 +622,166 @@ class IconMarker$Type extends MessageType<IconMarker> {
|
|
|
478
622
|
* @generated MessageType for protobuf message resources.livemap.markers.IconMarker
|
|
479
623
|
*/
|
|
480
624
|
export const IconMarker = new IconMarker$Type();
|
|
625
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
626
|
+
class RectangleMarker$Type extends MessageType<RectangleMarker> {
|
|
627
|
+
constructor() {
|
|
628
|
+
super("resources.livemap.markers.RectangleMarker", [
|
|
629
|
+
{ no: 1, name: "end_x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
630
|
+
{ no: 2, name: "end_y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
631
|
+
{ no: 3, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { float: { lte: 75, gte: 1 } } } }
|
|
632
|
+
]);
|
|
633
|
+
}
|
|
634
|
+
create(value?: PartialMessage<RectangleMarker>): RectangleMarker {
|
|
635
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
636
|
+
message.endX = 0;
|
|
637
|
+
message.endY = 0;
|
|
638
|
+
if (value !== undefined)
|
|
639
|
+
reflectionMergePartial<RectangleMarker>(this, message, value);
|
|
640
|
+
return message;
|
|
641
|
+
}
|
|
642
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RectangleMarker): RectangleMarker {
|
|
643
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
644
|
+
while (reader.pos < end) {
|
|
645
|
+
let [fieldNo, wireType] = reader.tag();
|
|
646
|
+
switch (fieldNo) {
|
|
647
|
+
case /* double end_x */ 1:
|
|
648
|
+
message.endX = reader.double();
|
|
649
|
+
break;
|
|
650
|
+
case /* double end_y */ 2:
|
|
651
|
+
message.endY = reader.double();
|
|
652
|
+
break;
|
|
653
|
+
case /* optional float opacity */ 3:
|
|
654
|
+
message.opacity = reader.float();
|
|
655
|
+
break;
|
|
656
|
+
default:
|
|
657
|
+
let u = options.readUnknownField;
|
|
658
|
+
if (u === "throw")
|
|
659
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
660
|
+
let d = reader.skip(wireType);
|
|
661
|
+
if (u !== false)
|
|
662
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return message;
|
|
666
|
+
}
|
|
667
|
+
internalBinaryWrite(message: RectangleMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
668
|
+
/* double end_x = 1; */
|
|
669
|
+
if (message.endX !== 0)
|
|
670
|
+
writer.tag(1, WireType.Bit64).double(message.endX);
|
|
671
|
+
/* double end_y = 2; */
|
|
672
|
+
if (message.endY !== 0)
|
|
673
|
+
writer.tag(2, WireType.Bit64).double(message.endY);
|
|
674
|
+
/* optional float opacity = 3; */
|
|
675
|
+
if (message.opacity !== undefined)
|
|
676
|
+
writer.tag(3, WireType.Bit32).float(message.opacity);
|
|
677
|
+
let u = options.writeUnknownFields;
|
|
678
|
+
if (u !== false)
|
|
679
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
680
|
+
return writer;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* @generated MessageType for protobuf message resources.livemap.markers.RectangleMarker
|
|
685
|
+
*/
|
|
686
|
+
export const RectangleMarker = new RectangleMarker$Type();
|
|
687
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
688
|
+
class PolygonMarker$Type extends MessageType<PolygonMarker> {
|
|
689
|
+
constructor() {
|
|
690
|
+
super("resources.livemap.markers.PolygonMarker", [
|
|
691
|
+
{ no: 1, name: "points", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Coords, options: { "buf.validate.field": { repeated: { minItems: "2", maxItems: "18" } } } },
|
|
692
|
+
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { float: { lte: 75, gte: 1 } } } }
|
|
693
|
+
]);
|
|
694
|
+
}
|
|
695
|
+
create(value?: PartialMessage<PolygonMarker>): PolygonMarker {
|
|
696
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
697
|
+
message.points = [];
|
|
698
|
+
if (value !== undefined)
|
|
699
|
+
reflectionMergePartial<PolygonMarker>(this, message, value);
|
|
700
|
+
return message;
|
|
701
|
+
}
|
|
702
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PolygonMarker): PolygonMarker {
|
|
703
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
704
|
+
while (reader.pos < end) {
|
|
705
|
+
let [fieldNo, wireType] = reader.tag();
|
|
706
|
+
switch (fieldNo) {
|
|
707
|
+
case /* repeated resources.livemap.Coords points */ 1:
|
|
708
|
+
message.points.push(Coords.internalBinaryRead(reader, reader.uint32(), options));
|
|
709
|
+
break;
|
|
710
|
+
case /* optional float opacity */ 2:
|
|
711
|
+
message.opacity = reader.float();
|
|
712
|
+
break;
|
|
713
|
+
default:
|
|
714
|
+
let u = options.readUnknownField;
|
|
715
|
+
if (u === "throw")
|
|
716
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
717
|
+
let d = reader.skip(wireType);
|
|
718
|
+
if (u !== false)
|
|
719
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return message;
|
|
723
|
+
}
|
|
724
|
+
internalBinaryWrite(message: PolygonMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
725
|
+
/* repeated resources.livemap.Coords points = 1; */
|
|
726
|
+
for (let i = 0; i < message.points.length; i++)
|
|
727
|
+
Coords.internalBinaryWrite(message.points[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
728
|
+
/* optional float opacity = 2; */
|
|
729
|
+
if (message.opacity !== undefined)
|
|
730
|
+
writer.tag(2, WireType.Bit32).float(message.opacity);
|
|
731
|
+
let u = options.writeUnknownFields;
|
|
732
|
+
if (u !== false)
|
|
733
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
734
|
+
return writer;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* @generated MessageType for protobuf message resources.livemap.markers.PolygonMarker
|
|
739
|
+
*/
|
|
740
|
+
export const PolygonMarker = new PolygonMarker$Type();
|
|
741
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
742
|
+
class PolylineMarker$Type extends MessageType<PolylineMarker> {
|
|
743
|
+
constructor() {
|
|
744
|
+
super("resources.livemap.markers.PolylineMarker", [
|
|
745
|
+
{ no: 1, name: "points", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Coords, options: { "buf.validate.field": { repeated: { minItems: "2", maxItems: "18" } } } }
|
|
746
|
+
]);
|
|
747
|
+
}
|
|
748
|
+
create(value?: PartialMessage<PolylineMarker>): PolylineMarker {
|
|
749
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
750
|
+
message.points = [];
|
|
751
|
+
if (value !== undefined)
|
|
752
|
+
reflectionMergePartial<PolylineMarker>(this, message, value);
|
|
753
|
+
return message;
|
|
754
|
+
}
|
|
755
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PolylineMarker): PolylineMarker {
|
|
756
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
757
|
+
while (reader.pos < end) {
|
|
758
|
+
let [fieldNo, wireType] = reader.tag();
|
|
759
|
+
switch (fieldNo) {
|
|
760
|
+
case /* repeated resources.livemap.Coords points */ 1:
|
|
761
|
+
message.points.push(Coords.internalBinaryRead(reader, reader.uint32(), options));
|
|
762
|
+
break;
|
|
763
|
+
default:
|
|
764
|
+
let u = options.readUnknownField;
|
|
765
|
+
if (u === "throw")
|
|
766
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
767
|
+
let d = reader.skip(wireType);
|
|
768
|
+
if (u !== false)
|
|
769
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
return message;
|
|
773
|
+
}
|
|
774
|
+
internalBinaryWrite(message: PolylineMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
775
|
+
/* repeated resources.livemap.Coords points = 1; */
|
|
776
|
+
for (let i = 0; i < message.points.length; i++)
|
|
777
|
+
Coords.internalBinaryWrite(message.points[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
778
|
+
let u = options.writeUnknownFields;
|
|
779
|
+
if (u !== false)
|
|
780
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
781
|
+
return writer;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* @generated MessageType for protobuf message resources.livemap.markers.PolylineMarker
|
|
786
|
+
*/
|
|
787
|
+
export const PolylineMarker = new PolylineMarker$Type();
|