@fivenet-app/gen 2025.5.3 → 2026.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "resources/livemap/
|
|
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/markers/marker_marker.proto" (package "resources.livemap.markers", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -10,152 +11,83 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { UserShort } from "
|
|
14
|
-
import {
|
|
15
|
-
import { Colleague } from "../jobs/colleagues";
|
|
16
|
-
import { Timestamp } from "../timestamp/timestamp";
|
|
14
|
+
import { UserShort } from "../../users/short/user";
|
|
15
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
17
16
|
/**
|
|
18
|
-
* @generated from protobuf message resources.livemap.
|
|
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
|
-
* @sanitize: method=StripTags
|
|
39
|
-
*
|
|
40
|
-
* @generated from protobuf field: optional string postal = 5;
|
|
41
|
-
*/
|
|
42
|
-
postal?: string;
|
|
43
|
-
/**
|
|
44
|
-
* @sanitize: method=StripTags
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf field: optional string color = 6;
|
|
47
|
-
*/
|
|
48
|
-
color?: string;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf field: string job = 7;
|
|
51
|
-
*/
|
|
52
|
-
job: string;
|
|
53
|
-
/**
|
|
54
|
-
* @generated from protobuf field: string job_label = 8;
|
|
55
|
-
*/
|
|
56
|
-
jobLabel: string;
|
|
57
|
-
/**
|
|
58
|
-
* @generated from protobuf field: resources.jobs.Colleague user = 9;
|
|
59
|
-
*/
|
|
60
|
-
user?: Colleague; // @gotags: alias:"user"
|
|
61
|
-
/**
|
|
62
|
-
* @generated from protobuf field: optional uint64 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
|
-
/**
|
|
75
|
-
* @generated from protobuf message resources.livemap.MarkerMarker
|
|
17
|
+
* @generated from protobuf message resources.livemap.markers.MarkerMarker
|
|
76
18
|
*/
|
|
77
19
|
export interface MarkerMarker {
|
|
78
20
|
/**
|
|
79
|
-
* @generated from protobuf field:
|
|
21
|
+
* @generated from protobuf field: int64 id = 1
|
|
80
22
|
*/
|
|
81
23
|
id: number;
|
|
82
24
|
/**
|
|
83
|
-
* @generated from protobuf field: double x = 2
|
|
25
|
+
* @generated from protobuf field: double x = 2
|
|
84
26
|
*/
|
|
85
27
|
x: number;
|
|
86
28
|
/**
|
|
87
|
-
* @generated from protobuf field: double y = 3
|
|
29
|
+
* @generated from protobuf field: double y = 3
|
|
88
30
|
*/
|
|
89
31
|
y: number;
|
|
90
32
|
/**
|
|
91
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
|
|
33
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4
|
|
92
34
|
*/
|
|
93
35
|
createdAt?: Timestamp;
|
|
94
36
|
/**
|
|
95
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 5
|
|
37
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 5
|
|
96
38
|
*/
|
|
97
39
|
updatedAt?: Timestamp;
|
|
98
40
|
/**
|
|
99
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 6
|
|
41
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 6
|
|
100
42
|
*/
|
|
101
43
|
expiresAt?: Timestamp;
|
|
102
44
|
/**
|
|
103
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 7
|
|
45
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 7
|
|
104
46
|
*/
|
|
105
47
|
deletedAt?: Timestamp;
|
|
106
48
|
/**
|
|
107
|
-
* @
|
|
108
|
-
*
|
|
109
|
-
* @generated from protobuf field: string name = 8;
|
|
49
|
+
* @generated from protobuf field: string name = 8
|
|
110
50
|
*/
|
|
111
51
|
name: string;
|
|
112
52
|
/**
|
|
113
|
-
* @
|
|
114
|
-
*
|
|
115
|
-
* @generated from protobuf field: optional string description = 9;
|
|
53
|
+
* @generated from protobuf field: optional string description = 9
|
|
116
54
|
*/
|
|
117
55
|
description?: string;
|
|
118
56
|
/**
|
|
119
|
-
* @
|
|
120
|
-
*
|
|
121
|
-
* @generated from protobuf field: optional string postal = 10;
|
|
57
|
+
* @generated from protobuf field: optional string postal = 10
|
|
122
58
|
*/
|
|
123
59
|
postal?: string;
|
|
124
60
|
/**
|
|
125
|
-
* @
|
|
126
|
-
*
|
|
127
|
-
* @generated from protobuf field: optional string color = 11;
|
|
61
|
+
* @generated from protobuf field: optional string color = 11
|
|
128
62
|
*/
|
|
129
63
|
color?: string;
|
|
130
64
|
/**
|
|
131
|
-
* @generated from protobuf field: string job = 12
|
|
65
|
+
* @generated from protobuf field: string job = 12
|
|
132
66
|
*/
|
|
133
67
|
job: string;
|
|
134
68
|
/**
|
|
135
|
-
* @generated from protobuf field: string job_label = 13
|
|
69
|
+
* @generated from protobuf field: string job_label = 13
|
|
136
70
|
*/
|
|
137
71
|
jobLabel: string;
|
|
138
72
|
/**
|
|
139
|
-
* @generated from protobuf field: resources.livemap.MarkerType type = 14
|
|
73
|
+
* @generated from protobuf field: resources.livemap.markers.MarkerType type = 14
|
|
140
74
|
*/
|
|
141
|
-
type: MarkerType;
|
|
75
|
+
type: MarkerType;
|
|
142
76
|
/**
|
|
143
|
-
* @generated from protobuf field: resources.livemap.MarkerData data = 15
|
|
77
|
+
* @generated from protobuf field: resources.livemap.markers.MarkerData data = 15
|
|
144
78
|
*/
|
|
145
|
-
data?: MarkerData;
|
|
79
|
+
data?: MarkerData;
|
|
146
80
|
/**
|
|
147
|
-
* @generated from protobuf field: optional int32 creator_id = 16
|
|
81
|
+
* @generated from protobuf field: optional int32 creator_id = 16
|
|
148
82
|
*/
|
|
149
83
|
creatorId?: number;
|
|
150
84
|
/**
|
|
151
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 17
|
|
85
|
+
* @generated from protobuf field: optional resources.users.short.UserShort creator = 17
|
|
152
86
|
*/
|
|
153
87
|
creator?: UserShort;
|
|
154
88
|
}
|
|
155
89
|
/**
|
|
156
|
-
* @
|
|
157
|
-
*
|
|
158
|
-
* @generated from protobuf message resources.livemap.MarkerData
|
|
90
|
+
* @generated from protobuf message resources.livemap.markers.MarkerData
|
|
159
91
|
*/
|
|
160
92
|
export interface MarkerData {
|
|
161
93
|
/**
|
|
@@ -164,13 +96,13 @@ export interface MarkerData {
|
|
|
164
96
|
data: {
|
|
165
97
|
oneofKind: "circle";
|
|
166
98
|
/**
|
|
167
|
-
* @generated from protobuf field: resources.livemap.CircleMarker circle = 3
|
|
99
|
+
* @generated from protobuf field: resources.livemap.markers.CircleMarker circle = 3
|
|
168
100
|
*/
|
|
169
101
|
circle: CircleMarker;
|
|
170
102
|
} | {
|
|
171
103
|
oneofKind: "icon";
|
|
172
104
|
/**
|
|
173
|
-
* @generated from protobuf field: resources.livemap.IconMarker icon = 4
|
|
105
|
+
* @generated from protobuf field: resources.livemap.markers.IconMarker icon = 4
|
|
174
106
|
*/
|
|
175
107
|
icon: IconMarker;
|
|
176
108
|
} | {
|
|
@@ -178,44 +110,29 @@ export interface MarkerData {
|
|
|
178
110
|
};
|
|
179
111
|
}
|
|
180
112
|
/**
|
|
181
|
-
* @generated from protobuf message resources.livemap.CircleMarker
|
|
113
|
+
* @generated from protobuf message resources.livemap.markers.CircleMarker
|
|
182
114
|
*/
|
|
183
115
|
export interface CircleMarker {
|
|
184
116
|
/**
|
|
185
|
-
* @generated from protobuf field: int32 radius = 1
|
|
117
|
+
* @generated from protobuf field: int32 radius = 1
|
|
186
118
|
*/
|
|
187
119
|
radius: number;
|
|
188
120
|
/**
|
|
189
|
-
* @generated from protobuf field: optional float opacity = 2
|
|
121
|
+
* @generated from protobuf field: optional float opacity = 2
|
|
190
122
|
*/
|
|
191
123
|
opacity?: number;
|
|
192
124
|
}
|
|
193
125
|
/**
|
|
194
|
-
* @generated from protobuf message resources.livemap.IconMarker
|
|
126
|
+
* @generated from protobuf message resources.livemap.markers.IconMarker
|
|
195
127
|
*/
|
|
196
128
|
export interface IconMarker {
|
|
197
129
|
/**
|
|
198
|
-
* @
|
|
199
|
-
*
|
|
200
|
-
* @generated from protobuf field: string icon = 1;
|
|
130
|
+
* @generated from protobuf field: string icon = 1
|
|
201
131
|
*/
|
|
202
132
|
icon: string;
|
|
203
133
|
}
|
|
204
134
|
/**
|
|
205
|
-
* @generated from protobuf
|
|
206
|
-
*/
|
|
207
|
-
export interface Coords {
|
|
208
|
-
/**
|
|
209
|
-
* @generated from protobuf field: double x = 1;
|
|
210
|
-
*/
|
|
211
|
-
x: number;
|
|
212
|
-
/**
|
|
213
|
-
* @generated from protobuf field: double y = 2;
|
|
214
|
-
*/
|
|
215
|
-
y: number;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* @generated from protobuf enum resources.livemap.MarkerType
|
|
135
|
+
* @generated from protobuf enum resources.livemap.markers.MarkerType
|
|
219
136
|
*/
|
|
220
137
|
export enum MarkerType {
|
|
221
138
|
/**
|
|
@@ -236,154 +153,25 @@ export enum MarkerType {
|
|
|
236
153
|
ICON = 3
|
|
237
154
|
}
|
|
238
155
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
239
|
-
class UserMarker$Type extends MessageType<UserMarker> {
|
|
240
|
-
constructor() {
|
|
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*/ }
|
|
254
|
-
]);
|
|
255
|
-
}
|
|
256
|
-
create(value?: PartialMessage<UserMarker>): UserMarker {
|
|
257
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
258
|
-
message.userId = 0;
|
|
259
|
-
message.x = 0;
|
|
260
|
-
message.y = 0;
|
|
261
|
-
message.job = "";
|
|
262
|
-
message.jobLabel = "";
|
|
263
|
-
message.hidden = false;
|
|
264
|
-
if (value !== undefined)
|
|
265
|
-
reflectionMergePartial<UserMarker>(this, message, value);
|
|
266
|
-
return message;
|
|
267
|
-
}
|
|
268
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserMarker): UserMarker {
|
|
269
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
270
|
-
while (reader.pos < end) {
|
|
271
|
-
let [fieldNo, wireType] = reader.tag();
|
|
272
|
-
switch (fieldNo) {
|
|
273
|
-
case /* int32 user_id */ 1:
|
|
274
|
-
message.userId = reader.int32();
|
|
275
|
-
break;
|
|
276
|
-
case /* double x */ 2:
|
|
277
|
-
message.x = reader.double();
|
|
278
|
-
break;
|
|
279
|
-
case /* double y */ 3:
|
|
280
|
-
message.y = reader.double();
|
|
281
|
-
break;
|
|
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:
|
|
286
|
-
message.postal = reader.string();
|
|
287
|
-
break;
|
|
288
|
-
case /* optional string color */ 6:
|
|
289
|
-
message.color = reader.string();
|
|
290
|
-
break;
|
|
291
|
-
case /* string job */ 7:
|
|
292
|
-
message.job = reader.string();
|
|
293
|
-
break;
|
|
294
|
-
case /* string job_label */ 8:
|
|
295
|
-
message.jobLabel = reader.string();
|
|
296
|
-
break;
|
|
297
|
-
case /* resources.jobs.Colleague user */ 9:
|
|
298
|
-
message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
299
|
-
break;
|
|
300
|
-
case /* optional uint64 unit_id */ 10:
|
|
301
|
-
message.unitId = reader.uint64().toNumber();
|
|
302
|
-
break;
|
|
303
|
-
case /* optional resources.centrum.Unit unit */ 11:
|
|
304
|
-
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
305
|
-
break;
|
|
306
|
-
case /* bool hidden */ 12:
|
|
307
|
-
message.hidden = reader.bool();
|
|
308
|
-
break;
|
|
309
|
-
default:
|
|
310
|
-
let u = options.readUnknownField;
|
|
311
|
-
if (u === "throw")
|
|
312
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
313
|
-
let d = reader.skip(wireType);
|
|
314
|
-
if (u !== false)
|
|
315
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return message;
|
|
319
|
-
}
|
|
320
|
-
internalBinaryWrite(message: UserMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
321
|
-
/* int32 user_id = 1; */
|
|
322
|
-
if (message.userId !== 0)
|
|
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; */
|
|
346
|
-
if (message.user)
|
|
347
|
-
Colleague.internalBinaryWrite(message.user, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
348
|
-
/* optional uint64 unit_id = 10; */
|
|
349
|
-
if (message.unitId !== undefined)
|
|
350
|
-
writer.tag(10, WireType.Varint).uint64(message.unitId);
|
|
351
|
-
/* optional resources.centrum.Unit unit = 11; */
|
|
352
|
-
if (message.unit)
|
|
353
|
-
Unit.internalBinaryWrite(message.unit, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
354
|
-
/* bool hidden = 12; */
|
|
355
|
-
if (message.hidden !== false)
|
|
356
|
-
writer.tag(12, WireType.Varint).bool(message.hidden);
|
|
357
|
-
let u = options.writeUnknownFields;
|
|
358
|
-
if (u !== false)
|
|
359
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
360
|
-
return writer;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* @generated MessageType for protobuf message resources.livemap.UserMarker
|
|
365
|
-
*/
|
|
366
|
-
export const UserMarker = new UserMarker$Type();
|
|
367
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
368
156
|
class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
369
157
|
constructor() {
|
|
370
|
-
super("resources.livemap.MarkerMarker", [
|
|
371
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
158
|
+
super("resources.livemap.markers.MarkerMarker", [
|
|
159
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
372
160
|
{ no: 2, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
373
161
|
{ no: 3, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
374
162
|
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
375
163
|
{ no: 5, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
376
164
|
{ no: 6, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
377
165
|
{ no: 7, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
378
|
-
{ no: 8, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
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.
|
|
381
|
-
{ no: 11, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
382
|
-
{ no: 12, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
166
|
+
{ no: 8, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
167
|
+
{ no: 9, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
168
|
+
{ no: 10, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "48" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
169
|
+
{ 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
|
+
{ no: 12, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
383
171
|
{ 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.
|
|
172
|
+
{ no: 14, name: "type", kind: "enum", T: () => ["resources.livemap.markers.MarkerType", MarkerType, "MARKER_TYPE_"], options: { "tagger.tags": "alias:\"markerType\"" } },
|
|
173
|
+
{ no: 15, name: "data", kind: "message", T: () => MarkerData, options: { "tagger.tags": "alias:\"markerData\"" } },
|
|
174
|
+
{ no: 16, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
387
175
|
{ no: 17, name: "creator", kind: "message", T: () => UserShort }
|
|
388
176
|
]);
|
|
389
177
|
}
|
|
@@ -405,8 +193,8 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
405
193
|
while (reader.pos < end) {
|
|
406
194
|
let [fieldNo, wireType] = reader.tag();
|
|
407
195
|
switch (fieldNo) {
|
|
408
|
-
case /*
|
|
409
|
-
message.id = reader.
|
|
196
|
+
case /* int64 id */ 1:
|
|
197
|
+
message.id = reader.int64().toNumber();
|
|
410
198
|
break;
|
|
411
199
|
case /* double x */ 2:
|
|
412
200
|
message.x = reader.double();
|
|
@@ -444,16 +232,16 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
444
232
|
case /* string job_label */ 13:
|
|
445
233
|
message.jobLabel = reader.string();
|
|
446
234
|
break;
|
|
447
|
-
case /* resources.livemap.MarkerType type */ 14:
|
|
235
|
+
case /* resources.livemap.markers.MarkerType type */ 14:
|
|
448
236
|
message.type = reader.int32();
|
|
449
237
|
break;
|
|
450
|
-
case /* resources.livemap.MarkerData data */ 15:
|
|
238
|
+
case /* resources.livemap.markers.MarkerData data */ 15:
|
|
451
239
|
message.data = MarkerData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
452
240
|
break;
|
|
453
241
|
case /* optional int32 creator_id */ 16:
|
|
454
242
|
message.creatorId = reader.int32();
|
|
455
243
|
break;
|
|
456
|
-
case /* optional resources.users.UserShort creator */ 17:
|
|
244
|
+
case /* optional resources.users.short.UserShort creator */ 17:
|
|
457
245
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
458
246
|
break;
|
|
459
247
|
default:
|
|
@@ -468,9 +256,9 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
468
256
|
return message;
|
|
469
257
|
}
|
|
470
258
|
internalBinaryWrite(message: MarkerMarker, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
471
|
-
/*
|
|
259
|
+
/* int64 id = 1; */
|
|
472
260
|
if (message.id !== 0)
|
|
473
|
-
writer.tag(1, WireType.Varint).
|
|
261
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
474
262
|
/* double x = 2; */
|
|
475
263
|
if (message.x !== 0)
|
|
476
264
|
writer.tag(2, WireType.Bit64).double(message.x);
|
|
@@ -507,16 +295,16 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
507
295
|
/* string job_label = 13; */
|
|
508
296
|
if (message.jobLabel !== "")
|
|
509
297
|
writer.tag(13, WireType.LengthDelimited).string(message.jobLabel);
|
|
510
|
-
/* resources.livemap.MarkerType type = 14; */
|
|
298
|
+
/* resources.livemap.markers.MarkerType type = 14; */
|
|
511
299
|
if (message.type !== 0)
|
|
512
300
|
writer.tag(14, WireType.Varint).int32(message.type);
|
|
513
|
-
/* resources.livemap.MarkerData data = 15; */
|
|
301
|
+
/* resources.livemap.markers.MarkerData data = 15; */
|
|
514
302
|
if (message.data)
|
|
515
303
|
MarkerData.internalBinaryWrite(message.data, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
516
304
|
/* optional int32 creator_id = 16; */
|
|
517
305
|
if (message.creatorId !== undefined)
|
|
518
306
|
writer.tag(16, WireType.Varint).int32(message.creatorId);
|
|
519
|
-
/* optional resources.users.UserShort creator = 17; */
|
|
307
|
+
/* optional resources.users.short.UserShort creator = 17; */
|
|
520
308
|
if (message.creator)
|
|
521
309
|
UserShort.internalBinaryWrite(message.creator, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
522
310
|
let u = options.writeUnknownFields;
|
|
@@ -526,16 +314,16 @@ class MarkerMarker$Type extends MessageType<MarkerMarker> {
|
|
|
526
314
|
}
|
|
527
315
|
}
|
|
528
316
|
/**
|
|
529
|
-
* @generated MessageType for protobuf message resources.livemap.MarkerMarker
|
|
317
|
+
* @generated MessageType for protobuf message resources.livemap.markers.MarkerMarker
|
|
530
318
|
*/
|
|
531
319
|
export const MarkerMarker = new MarkerMarker$Type();
|
|
532
320
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
533
321
|
class MarkerData$Type extends MessageType<MarkerData> {
|
|
534
322
|
constructor() {
|
|
535
|
-
super("resources.livemap.MarkerData", [
|
|
323
|
+
super("resources.livemap.markers.MarkerData", [
|
|
536
324
|
{ no: 3, name: "circle", kind: "message", oneof: "data", T: () => CircleMarker },
|
|
537
325
|
{ no: 4, name: "icon", kind: "message", oneof: "data", T: () => IconMarker }
|
|
538
|
-
]);
|
|
326
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true, notJson: true } });
|
|
539
327
|
}
|
|
540
328
|
create(value?: PartialMessage<MarkerData>): MarkerData {
|
|
541
329
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -549,13 +337,13 @@ class MarkerData$Type extends MessageType<MarkerData> {
|
|
|
549
337
|
while (reader.pos < end) {
|
|
550
338
|
let [fieldNo, wireType] = reader.tag();
|
|
551
339
|
switch (fieldNo) {
|
|
552
|
-
case /* resources.livemap.CircleMarker circle */ 3:
|
|
340
|
+
case /* resources.livemap.markers.CircleMarker circle */ 3:
|
|
553
341
|
message.data = {
|
|
554
342
|
oneofKind: "circle",
|
|
555
343
|
circle: CircleMarker.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).circle)
|
|
556
344
|
};
|
|
557
345
|
break;
|
|
558
|
-
case /* resources.livemap.IconMarker icon */ 4:
|
|
346
|
+
case /* resources.livemap.markers.IconMarker icon */ 4:
|
|
559
347
|
message.data = {
|
|
560
348
|
oneofKind: "icon",
|
|
561
349
|
icon: IconMarker.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).icon)
|
|
@@ -573,10 +361,10 @@ class MarkerData$Type extends MessageType<MarkerData> {
|
|
|
573
361
|
return message;
|
|
574
362
|
}
|
|
575
363
|
internalBinaryWrite(message: MarkerData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
576
|
-
/* resources.livemap.CircleMarker circle = 3; */
|
|
364
|
+
/* resources.livemap.markers.CircleMarker circle = 3; */
|
|
577
365
|
if (message.data.oneofKind === "circle")
|
|
578
366
|
CircleMarker.internalBinaryWrite(message.data.circle, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
579
|
-
/* resources.livemap.IconMarker icon = 4; */
|
|
367
|
+
/* resources.livemap.markers.IconMarker icon = 4; */
|
|
580
368
|
if (message.data.oneofKind === "icon")
|
|
581
369
|
IconMarker.internalBinaryWrite(message.data.icon, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
582
370
|
let u = options.writeUnknownFields;
|
|
@@ -586,15 +374,15 @@ class MarkerData$Type extends MessageType<MarkerData> {
|
|
|
586
374
|
}
|
|
587
375
|
}
|
|
588
376
|
/**
|
|
589
|
-
* @generated MessageType for protobuf message resources.livemap.MarkerData
|
|
377
|
+
* @generated MessageType for protobuf message resources.livemap.markers.MarkerData
|
|
590
378
|
*/
|
|
591
379
|
export const MarkerData = new MarkerData$Type();
|
|
592
380
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
593
381
|
class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
594
382
|
constructor() {
|
|
595
|
-
super("resources.livemap.CircleMarker", [
|
|
383
|
+
super("resources.livemap.markers.CircleMarker", [
|
|
596
384
|
{ no: 1, name: "radius", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
597
|
-
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "validate.
|
|
385
|
+
{ no: 2, name: "opacity", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { float: { lte: 75, gte: 1 } } } }
|
|
598
386
|
]);
|
|
599
387
|
}
|
|
600
388
|
create(value?: PartialMessage<CircleMarker>): CircleMarker {
|
|
@@ -640,14 +428,14 @@ class CircleMarker$Type extends MessageType<CircleMarker> {
|
|
|
640
428
|
}
|
|
641
429
|
}
|
|
642
430
|
/**
|
|
643
|
-
* @generated MessageType for protobuf message resources.livemap.CircleMarker
|
|
431
|
+
* @generated MessageType for protobuf message resources.livemap.markers.CircleMarker
|
|
644
432
|
*/
|
|
645
433
|
export const CircleMarker = new CircleMarker$Type();
|
|
646
434
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
647
435
|
class IconMarker$Type extends MessageType<IconMarker> {
|
|
648
436
|
constructor() {
|
|
649
|
-
super("resources.livemap.IconMarker", [
|
|
650
|
-
{ no: 1, name: "icon", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
437
|
+
super("resources.livemap.markers.IconMarker", [
|
|
438
|
+
{ no: 1, name: "icon", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128", suffix: "Icon" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
651
439
|
]);
|
|
652
440
|
}
|
|
653
441
|
create(value?: PartialMessage<IconMarker>): IconMarker {
|
|
@@ -687,61 +475,6 @@ class IconMarker$Type extends MessageType<IconMarker> {
|
|
|
687
475
|
}
|
|
688
476
|
}
|
|
689
477
|
/**
|
|
690
|
-
* @generated MessageType for protobuf message resources.livemap.IconMarker
|
|
478
|
+
* @generated MessageType for protobuf message resources.livemap.markers.IconMarker
|
|
691
479
|
*/
|
|
692
480
|
export const IconMarker = new IconMarker$Type();
|
|
693
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
694
|
-
class Coords$Type extends MessageType<Coords> {
|
|
695
|
-
constructor() {
|
|
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*/ }
|
|
699
|
-
]);
|
|
700
|
-
}
|
|
701
|
-
create(value?: PartialMessage<Coords>): Coords {
|
|
702
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
703
|
-
message.x = 0;
|
|
704
|
-
message.y = 0;
|
|
705
|
-
if (value !== undefined)
|
|
706
|
-
reflectionMergePartial<Coords>(this, message, value);
|
|
707
|
-
return message;
|
|
708
|
-
}
|
|
709
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Coords): Coords {
|
|
710
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
711
|
-
while (reader.pos < end) {
|
|
712
|
-
let [fieldNo, wireType] = reader.tag();
|
|
713
|
-
switch (fieldNo) {
|
|
714
|
-
case /* double x */ 1:
|
|
715
|
-
message.x = reader.double();
|
|
716
|
-
break;
|
|
717
|
-
case /* double y */ 2:
|
|
718
|
-
message.y = reader.double();
|
|
719
|
-
break;
|
|
720
|
-
default:
|
|
721
|
-
let u = options.readUnknownField;
|
|
722
|
-
if (u === "throw")
|
|
723
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
724
|
-
let d = reader.skip(wireType);
|
|
725
|
-
if (u !== false)
|
|
726
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
return message;
|
|
730
|
-
}
|
|
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);
|
|
738
|
-
let u = options.writeUnknownFields;
|
|
739
|
-
if (u !== false)
|
|
740
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
741
|
-
return writer;
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
/**
|
|
745
|
-
* @generated MessageType for protobuf message resources.livemap.Coords
|
|
746
|
-
*/
|
|
747
|
-
export const Coords = new Coords$Type();
|