@fivenet-app/gen 2025.5.2 → 2025.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/internet/page.proto" (package "resources.internet", syntax proto3)
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { NodeType } from "../common/content/content";
|
|
14
|
-
import { Timestamp } from "../timestamp/timestamp";
|
|
15
|
-
/**
|
|
16
|
-
* @generated from protobuf message resources.internet.Page
|
|
17
|
-
*/
|
|
18
|
-
export interface Page {
|
|
19
|
-
/**
|
|
20
|
-
* @generated from protobuf field: uint64 id = 1;
|
|
21
|
-
*/
|
|
22
|
-
id: number;
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
25
|
-
*/
|
|
26
|
-
createdAt?: Timestamp;
|
|
27
|
-
/**
|
|
28
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
29
|
-
*/
|
|
30
|
-
updatedAt?: Timestamp;
|
|
31
|
-
/**
|
|
32
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
33
|
-
*/
|
|
34
|
-
deletedAt?: Timestamp;
|
|
35
|
-
/**
|
|
36
|
-
* @generated from protobuf field: uint64 domain_id = 5;
|
|
37
|
-
*/
|
|
38
|
-
domainId: number;
|
|
39
|
-
/**
|
|
40
|
-
* @sanitize: method=StripTags
|
|
41
|
-
*
|
|
42
|
-
* @generated from protobuf field: string path = 6;
|
|
43
|
-
*/
|
|
44
|
-
path: string;
|
|
45
|
-
/**
|
|
46
|
-
* @sanitize: method=StripTags
|
|
47
|
-
*
|
|
48
|
-
* @generated from protobuf field: string title = 7;
|
|
49
|
-
*/
|
|
50
|
-
title: string;
|
|
51
|
-
/**
|
|
52
|
-
* @sanitize: method=StripTags
|
|
53
|
-
*
|
|
54
|
-
* @generated from protobuf field: string description = 8;
|
|
55
|
-
*/
|
|
56
|
-
description: string;
|
|
57
|
-
/**
|
|
58
|
-
* @generated from protobuf field: resources.internet.PageData data = 9;
|
|
59
|
-
*/
|
|
60
|
-
data?: PageData;
|
|
61
|
-
/**
|
|
62
|
-
* @generated from protobuf field: optional string creator_job = 10;
|
|
63
|
-
*/
|
|
64
|
-
creatorJob?: string;
|
|
65
|
-
/**
|
|
66
|
-
* @generated from protobuf field: optional int32 creator_id = 11;
|
|
67
|
-
*/
|
|
68
|
-
creatorId?: number;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* @dbscanner: json
|
|
72
|
-
*
|
|
73
|
-
* @generated from protobuf message resources.internet.PageData
|
|
74
|
-
*/
|
|
75
|
-
export interface PageData {
|
|
76
|
-
/**
|
|
77
|
-
* @generated from protobuf field: resources.internet.PageLayoutType layout_type = 1;
|
|
78
|
-
*/
|
|
79
|
-
layoutType: PageLayoutType;
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf field: optional resources.internet.ContentNode node = 2;
|
|
82
|
-
*/
|
|
83
|
-
node?: ContentNode;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf message resources.internet.ContentNode
|
|
87
|
-
*/
|
|
88
|
-
export interface ContentNode {
|
|
89
|
-
/**
|
|
90
|
-
* @generated from protobuf field: resources.common.content.NodeType type = 1;
|
|
91
|
-
*/
|
|
92
|
-
type: NodeType;
|
|
93
|
-
/**
|
|
94
|
-
* @sanitize: method=StripTags
|
|
95
|
-
*
|
|
96
|
-
* @generated from protobuf field: optional string id = 2;
|
|
97
|
-
*/
|
|
98
|
-
id?: string;
|
|
99
|
-
/**
|
|
100
|
-
* @sanitize: method=StripTags
|
|
101
|
-
*
|
|
102
|
-
* @generated from protobuf field: string tag = 3;
|
|
103
|
-
*/
|
|
104
|
-
tag: string;
|
|
105
|
-
/**
|
|
106
|
-
* @sanitize: method=StripTags
|
|
107
|
-
*
|
|
108
|
-
* @generated from protobuf field: map<string, string> attrs = 4;
|
|
109
|
-
*/
|
|
110
|
-
attrs: {
|
|
111
|
-
[key: string]: string;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* @sanitize: method=StripTags
|
|
115
|
-
*
|
|
116
|
-
* @generated from protobuf field: optional string text = 5;
|
|
117
|
-
*/
|
|
118
|
-
text?: string;
|
|
119
|
-
/**
|
|
120
|
-
* @generated from protobuf field: repeated resources.internet.ContentNode content = 6;
|
|
121
|
-
*/
|
|
122
|
-
content: ContentNode[];
|
|
123
|
-
/**
|
|
124
|
-
* @generated from protobuf field: repeated resources.internet.ContentNode slots = 7;
|
|
125
|
-
*/
|
|
126
|
-
slots: ContentNode[];
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* @generated from protobuf enum resources.internet.PageLayoutType
|
|
130
|
-
*/
|
|
131
|
-
export enum PageLayoutType {
|
|
132
|
-
/**
|
|
133
|
-
* @generated from protobuf enum value: PAGE_LAYOUT_TYPE_UNSPECIFIED = 0;
|
|
134
|
-
*/
|
|
135
|
-
UNSPECIFIED = 0,
|
|
136
|
-
/**
|
|
137
|
-
* @generated from protobuf enum value: PAGE_LAYOUT_TYPE_BASIC_PAGE = 1;
|
|
138
|
-
*/
|
|
139
|
-
BASIC_PAGE = 1,
|
|
140
|
-
/**
|
|
141
|
-
* @generated from protobuf enum value: PAGE_LAYOUT_TYPE_LANDING_PAGE = 2;
|
|
142
|
-
*/
|
|
143
|
-
LANDING_PAGE = 2
|
|
144
|
-
}
|
|
145
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
146
|
-
class Page$Type extends MessageType<Page> {
|
|
147
|
-
constructor() {
|
|
148
|
-
super("resources.internet.Page", [
|
|
149
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
150
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
151
|
-
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
152
|
-
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
153
|
-
{ no: 5, name: "domain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
154
|
-
{ no: 6, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
155
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } } } },
|
|
156
|
-
{ no: 8, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
157
|
-
{ no: 9, name: "data", kind: "message", T: () => PageData, options: { "validate.rules": { message: { required: true } } } },
|
|
158
|
-
{ no: 10, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
159
|
-
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
160
|
-
]);
|
|
161
|
-
}
|
|
162
|
-
create(value?: PartialMessage<Page>): Page {
|
|
163
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
164
|
-
message.id = 0;
|
|
165
|
-
message.domainId = 0;
|
|
166
|
-
message.path = "";
|
|
167
|
-
message.title = "";
|
|
168
|
-
message.description = "";
|
|
169
|
-
if (value !== undefined)
|
|
170
|
-
reflectionMergePartial<Page>(this, message, value);
|
|
171
|
-
return message;
|
|
172
|
-
}
|
|
173
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Page): Page {
|
|
174
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
175
|
-
while (reader.pos < end) {
|
|
176
|
-
let [fieldNo, wireType] = reader.tag();
|
|
177
|
-
switch (fieldNo) {
|
|
178
|
-
case /* uint64 id */ 1:
|
|
179
|
-
message.id = reader.uint64().toNumber();
|
|
180
|
-
break;
|
|
181
|
-
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
182
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
183
|
-
break;
|
|
184
|
-
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
185
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
186
|
-
break;
|
|
187
|
-
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
188
|
-
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
189
|
-
break;
|
|
190
|
-
case /* uint64 domain_id */ 5:
|
|
191
|
-
message.domainId = reader.uint64().toNumber();
|
|
192
|
-
break;
|
|
193
|
-
case /* string path */ 6:
|
|
194
|
-
message.path = reader.string();
|
|
195
|
-
break;
|
|
196
|
-
case /* string title */ 7:
|
|
197
|
-
message.title = reader.string();
|
|
198
|
-
break;
|
|
199
|
-
case /* string description */ 8:
|
|
200
|
-
message.description = reader.string();
|
|
201
|
-
break;
|
|
202
|
-
case /* resources.internet.PageData data */ 9:
|
|
203
|
-
message.data = PageData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
204
|
-
break;
|
|
205
|
-
case /* optional string creator_job */ 10:
|
|
206
|
-
message.creatorJob = reader.string();
|
|
207
|
-
break;
|
|
208
|
-
case /* optional int32 creator_id */ 11:
|
|
209
|
-
message.creatorId = reader.int32();
|
|
210
|
-
break;
|
|
211
|
-
default:
|
|
212
|
-
let u = options.readUnknownField;
|
|
213
|
-
if (u === "throw")
|
|
214
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
215
|
-
let d = reader.skip(wireType);
|
|
216
|
-
if (u !== false)
|
|
217
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
return message;
|
|
221
|
-
}
|
|
222
|
-
internalBinaryWrite(message: Page, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
223
|
-
/* uint64 id = 1; */
|
|
224
|
-
if (message.id !== 0)
|
|
225
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
226
|
-
/* resources.timestamp.Timestamp created_at = 2; */
|
|
227
|
-
if (message.createdAt)
|
|
228
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
229
|
-
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
230
|
-
if (message.updatedAt)
|
|
231
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
-
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
233
|
-
if (message.deletedAt)
|
|
234
|
-
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
235
|
-
/* uint64 domain_id = 5; */
|
|
236
|
-
if (message.domainId !== 0)
|
|
237
|
-
writer.tag(5, WireType.Varint).uint64(message.domainId);
|
|
238
|
-
/* string path = 6; */
|
|
239
|
-
if (message.path !== "")
|
|
240
|
-
writer.tag(6, WireType.LengthDelimited).string(message.path);
|
|
241
|
-
/* string title = 7; */
|
|
242
|
-
if (message.title !== "")
|
|
243
|
-
writer.tag(7, WireType.LengthDelimited).string(message.title);
|
|
244
|
-
/* string description = 8; */
|
|
245
|
-
if (message.description !== "")
|
|
246
|
-
writer.tag(8, WireType.LengthDelimited).string(message.description);
|
|
247
|
-
/* resources.internet.PageData data = 9; */
|
|
248
|
-
if (message.data)
|
|
249
|
-
PageData.internalBinaryWrite(message.data, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
250
|
-
/* optional string creator_job = 10; */
|
|
251
|
-
if (message.creatorJob !== undefined)
|
|
252
|
-
writer.tag(10, WireType.LengthDelimited).string(message.creatorJob);
|
|
253
|
-
/* optional int32 creator_id = 11; */
|
|
254
|
-
if (message.creatorId !== undefined)
|
|
255
|
-
writer.tag(11, WireType.Varint).int32(message.creatorId);
|
|
256
|
-
let u = options.writeUnknownFields;
|
|
257
|
-
if (u !== false)
|
|
258
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
259
|
-
return writer;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* @generated MessageType for protobuf message resources.internet.Page
|
|
264
|
-
*/
|
|
265
|
-
export const Page = new Page$Type();
|
|
266
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
267
|
-
class PageData$Type extends MessageType<PageData> {
|
|
268
|
-
constructor() {
|
|
269
|
-
super("resources.internet.PageData", [
|
|
270
|
-
{ no: 1, name: "layout_type", kind: "enum", T: () => ["resources.internet.PageLayoutType", PageLayoutType, "PAGE_LAYOUT_TYPE_"] },
|
|
271
|
-
{ no: 2, name: "node", kind: "message", T: () => ContentNode }
|
|
272
|
-
]);
|
|
273
|
-
}
|
|
274
|
-
create(value?: PartialMessage<PageData>): PageData {
|
|
275
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
276
|
-
message.layoutType = 0;
|
|
277
|
-
if (value !== undefined)
|
|
278
|
-
reflectionMergePartial<PageData>(this, message, value);
|
|
279
|
-
return message;
|
|
280
|
-
}
|
|
281
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageData): PageData {
|
|
282
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
283
|
-
while (reader.pos < end) {
|
|
284
|
-
let [fieldNo, wireType] = reader.tag();
|
|
285
|
-
switch (fieldNo) {
|
|
286
|
-
case /* resources.internet.PageLayoutType layout_type */ 1:
|
|
287
|
-
message.layoutType = reader.int32();
|
|
288
|
-
break;
|
|
289
|
-
case /* optional resources.internet.ContentNode node */ 2:
|
|
290
|
-
message.node = ContentNode.internalBinaryRead(reader, reader.uint32(), options, message.node);
|
|
291
|
-
break;
|
|
292
|
-
default:
|
|
293
|
-
let u = options.readUnknownField;
|
|
294
|
-
if (u === "throw")
|
|
295
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
296
|
-
let d = reader.skip(wireType);
|
|
297
|
-
if (u !== false)
|
|
298
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return message;
|
|
302
|
-
}
|
|
303
|
-
internalBinaryWrite(message: PageData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
304
|
-
/* resources.internet.PageLayoutType layout_type = 1; */
|
|
305
|
-
if (message.layoutType !== 0)
|
|
306
|
-
writer.tag(1, WireType.Varint).int32(message.layoutType);
|
|
307
|
-
/* optional resources.internet.ContentNode node = 2; */
|
|
308
|
-
if (message.node)
|
|
309
|
-
ContentNode.internalBinaryWrite(message.node, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
310
|
-
let u = options.writeUnknownFields;
|
|
311
|
-
if (u !== false)
|
|
312
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
313
|
-
return writer;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @generated MessageType for protobuf message resources.internet.PageData
|
|
318
|
-
*/
|
|
319
|
-
export const PageData = new PageData$Type();
|
|
320
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
321
|
-
class ContentNode$Type extends MessageType<ContentNode> {
|
|
322
|
-
constructor() {
|
|
323
|
-
super("resources.internet.ContentNode", [
|
|
324
|
-
{ no: 1, name: "type", kind: "enum", T: () => ["resources.common.content.NodeType", NodeType, "NODE_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
325
|
-
{ no: 2, name: "id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
326
|
-
{ no: 3, name: "tag", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
327
|
-
{ no: 4, name: "attrs", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
328
|
-
{ no: 5, name: "text", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
329
|
-
{ no: 6, name: "content", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ContentNode },
|
|
330
|
-
{ no: 7, name: "slots", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ContentNode }
|
|
331
|
-
]);
|
|
332
|
-
}
|
|
333
|
-
create(value?: PartialMessage<ContentNode>): ContentNode {
|
|
334
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
335
|
-
message.type = 0;
|
|
336
|
-
message.tag = "";
|
|
337
|
-
message.attrs = {};
|
|
338
|
-
message.content = [];
|
|
339
|
-
message.slots = [];
|
|
340
|
-
if (value !== undefined)
|
|
341
|
-
reflectionMergePartial<ContentNode>(this, message, value);
|
|
342
|
-
return message;
|
|
343
|
-
}
|
|
344
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ContentNode): ContentNode {
|
|
345
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
346
|
-
while (reader.pos < end) {
|
|
347
|
-
let [fieldNo, wireType] = reader.tag();
|
|
348
|
-
switch (fieldNo) {
|
|
349
|
-
case /* resources.common.content.NodeType type */ 1:
|
|
350
|
-
message.type = reader.int32();
|
|
351
|
-
break;
|
|
352
|
-
case /* optional string id */ 2:
|
|
353
|
-
message.id = reader.string();
|
|
354
|
-
break;
|
|
355
|
-
case /* string tag */ 3:
|
|
356
|
-
message.tag = reader.string();
|
|
357
|
-
break;
|
|
358
|
-
case /* map<string, string> attrs */ 4:
|
|
359
|
-
this.binaryReadMap4(message.attrs, reader, options);
|
|
360
|
-
break;
|
|
361
|
-
case /* optional string text */ 5:
|
|
362
|
-
message.text = reader.string();
|
|
363
|
-
break;
|
|
364
|
-
case /* repeated resources.internet.ContentNode content */ 6:
|
|
365
|
-
message.content.push(ContentNode.internalBinaryRead(reader, reader.uint32(), options));
|
|
366
|
-
break;
|
|
367
|
-
case /* repeated resources.internet.ContentNode slots */ 7:
|
|
368
|
-
message.slots.push(ContentNode.internalBinaryRead(reader, reader.uint32(), options));
|
|
369
|
-
break;
|
|
370
|
-
default:
|
|
371
|
-
let u = options.readUnknownField;
|
|
372
|
-
if (u === "throw")
|
|
373
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
374
|
-
let d = reader.skip(wireType);
|
|
375
|
-
if (u !== false)
|
|
376
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
return message;
|
|
380
|
-
}
|
|
381
|
-
private binaryReadMap4(map: ContentNode["attrs"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
382
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof ContentNode["attrs"] | undefined, val: ContentNode["attrs"][any] | undefined;
|
|
383
|
-
while (reader.pos < end) {
|
|
384
|
-
let [fieldNo, wireType] = reader.tag();
|
|
385
|
-
switch (fieldNo) {
|
|
386
|
-
case 1:
|
|
387
|
-
key = reader.string();
|
|
388
|
-
break;
|
|
389
|
-
case 2:
|
|
390
|
-
val = reader.string();
|
|
391
|
-
break;
|
|
392
|
-
default: throw new globalThis.Error("unknown map entry field for field resources.internet.ContentNode.attrs");
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
map[key ?? ""] = val ?? "";
|
|
396
|
-
}
|
|
397
|
-
internalBinaryWrite(message: ContentNode, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
398
|
-
/* resources.common.content.NodeType type = 1; */
|
|
399
|
-
if (message.type !== 0)
|
|
400
|
-
writer.tag(1, WireType.Varint).int32(message.type);
|
|
401
|
-
/* optional string id = 2; */
|
|
402
|
-
if (message.id !== undefined)
|
|
403
|
-
writer.tag(2, WireType.LengthDelimited).string(message.id);
|
|
404
|
-
/* string tag = 3; */
|
|
405
|
-
if (message.tag !== "")
|
|
406
|
-
writer.tag(3, WireType.LengthDelimited).string(message.tag);
|
|
407
|
-
/* map<string, string> attrs = 4; */
|
|
408
|
-
for (let k of globalThis.Object.keys(message.attrs))
|
|
409
|
-
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.attrs[k]).join();
|
|
410
|
-
/* optional string text = 5; */
|
|
411
|
-
if (message.text !== undefined)
|
|
412
|
-
writer.tag(5, WireType.LengthDelimited).string(message.text);
|
|
413
|
-
/* repeated resources.internet.ContentNode content = 6; */
|
|
414
|
-
for (let i = 0; i < message.content.length; i++)
|
|
415
|
-
ContentNode.internalBinaryWrite(message.content[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
416
|
-
/* repeated resources.internet.ContentNode slots = 7; */
|
|
417
|
-
for (let i = 0; i < message.slots.length; i++)
|
|
418
|
-
ContentNode.internalBinaryWrite(message.slots[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
419
|
-
let u = options.writeUnknownFields;
|
|
420
|
-
if (u !== false)
|
|
421
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
422
|
-
return writer;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* @generated MessageType for protobuf message resources.internet.ContentNode
|
|
427
|
-
*/
|
|
428
|
-
export const ContentNode = new ContentNode$Type();
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/internet/search.proto" (package "resources.internet", syntax proto3)
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { Domain } from "./domain";
|
|
14
|
-
/**
|
|
15
|
-
* @generated from protobuf message resources.internet.SearchResult
|
|
16
|
-
*/
|
|
17
|
-
export interface SearchResult {
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf field: uint64 id = 1;
|
|
20
|
-
*/
|
|
21
|
-
id: number;
|
|
22
|
-
/**
|
|
23
|
-
* @generated from protobuf field: string title = 2;
|
|
24
|
-
*/
|
|
25
|
-
title: string;
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf field: string description = 3;
|
|
28
|
-
*/
|
|
29
|
-
description: string;
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf field: uint64 domain_id = 4;
|
|
32
|
-
*/
|
|
33
|
-
domainId: number;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf field: optional resources.internet.Domain domain = 5;
|
|
36
|
-
*/
|
|
37
|
-
domain?: Domain;
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf field: string path = 6;
|
|
40
|
-
*/
|
|
41
|
-
path: string;
|
|
42
|
-
}
|
|
43
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
44
|
-
class SearchResult$Type extends MessageType<SearchResult> {
|
|
45
|
-
constructor() {
|
|
46
|
-
super("resources.internet.SearchResult", [
|
|
47
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
48
|
-
{ no: 2, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
49
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
50
|
-
{ no: 4, name: "domain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
51
|
-
{ no: 5, name: "domain", kind: "message", T: () => Domain },
|
|
52
|
-
{ no: 6, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
53
|
-
]);
|
|
54
|
-
}
|
|
55
|
-
create(value?: PartialMessage<SearchResult>): SearchResult {
|
|
56
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
57
|
-
message.id = 0;
|
|
58
|
-
message.title = "";
|
|
59
|
-
message.description = "";
|
|
60
|
-
message.domainId = 0;
|
|
61
|
-
message.path = "";
|
|
62
|
-
if (value !== undefined)
|
|
63
|
-
reflectionMergePartial<SearchResult>(this, message, value);
|
|
64
|
-
return message;
|
|
65
|
-
}
|
|
66
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SearchResult): SearchResult {
|
|
67
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
68
|
-
while (reader.pos < end) {
|
|
69
|
-
let [fieldNo, wireType] = reader.tag();
|
|
70
|
-
switch (fieldNo) {
|
|
71
|
-
case /* uint64 id */ 1:
|
|
72
|
-
message.id = reader.uint64().toNumber();
|
|
73
|
-
break;
|
|
74
|
-
case /* string title */ 2:
|
|
75
|
-
message.title = reader.string();
|
|
76
|
-
break;
|
|
77
|
-
case /* string description */ 3:
|
|
78
|
-
message.description = reader.string();
|
|
79
|
-
break;
|
|
80
|
-
case /* uint64 domain_id */ 4:
|
|
81
|
-
message.domainId = reader.uint64().toNumber();
|
|
82
|
-
break;
|
|
83
|
-
case /* optional resources.internet.Domain domain */ 5:
|
|
84
|
-
message.domain = Domain.internalBinaryRead(reader, reader.uint32(), options, message.domain);
|
|
85
|
-
break;
|
|
86
|
-
case /* string path */ 6:
|
|
87
|
-
message.path = reader.string();
|
|
88
|
-
break;
|
|
89
|
-
default:
|
|
90
|
-
let u = options.readUnknownField;
|
|
91
|
-
if (u === "throw")
|
|
92
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
93
|
-
let d = reader.skip(wireType);
|
|
94
|
-
if (u !== false)
|
|
95
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return message;
|
|
99
|
-
}
|
|
100
|
-
internalBinaryWrite(message: SearchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
101
|
-
/* uint64 id = 1; */
|
|
102
|
-
if (message.id !== 0)
|
|
103
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
104
|
-
/* string title = 2; */
|
|
105
|
-
if (message.title !== "")
|
|
106
|
-
writer.tag(2, WireType.LengthDelimited).string(message.title);
|
|
107
|
-
/* string description = 3; */
|
|
108
|
-
if (message.description !== "")
|
|
109
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
110
|
-
/* uint64 domain_id = 4; */
|
|
111
|
-
if (message.domainId !== 0)
|
|
112
|
-
writer.tag(4, WireType.Varint).uint64(message.domainId);
|
|
113
|
-
/* optional resources.internet.Domain domain = 5; */
|
|
114
|
-
if (message.domain)
|
|
115
|
-
Domain.internalBinaryWrite(message.domain, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
116
|
-
/* string path = 6; */
|
|
117
|
-
if (message.path !== "")
|
|
118
|
-
writer.tag(6, WireType.LengthDelimited).string(message.path);
|
|
119
|
-
let u = options.writeUnknownFields;
|
|
120
|
-
if (u !== false)
|
|
121
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
122
|
-
return writer;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @generated MessageType for protobuf message resources.internet.SearchResult
|
|
127
|
-
*/
|
|
128
|
-
export const SearchResult = new SearchResult$Type();
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/livemap/tracker.proto" (package "resources.livemap", syntax proto3)
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { UserMarker } from "./livemap";
|
|
14
|
-
/**
|
|
15
|
-
* @generated from protobuf message resources.livemap.UsersUpdateEvent
|
|
16
|
-
*/
|
|
17
|
-
export interface UsersUpdateEvent {
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf field: repeated resources.livemap.UserMarker added = 1;
|
|
20
|
-
*/
|
|
21
|
-
added: UserMarker[];
|
|
22
|
-
/**
|
|
23
|
-
* @generated from protobuf field: repeated resources.livemap.UserMarker removed = 2;
|
|
24
|
-
*/
|
|
25
|
-
removed: UserMarker[];
|
|
26
|
-
}
|
|
27
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
28
|
-
class UsersUpdateEvent$Type extends MessageType<UsersUpdateEvent> {
|
|
29
|
-
constructor() {
|
|
30
|
-
super("resources.livemap.UsersUpdateEvent", [
|
|
31
|
-
{ no: 1, name: "added", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserMarker },
|
|
32
|
-
{ no: 2, name: "removed", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserMarker }
|
|
33
|
-
]);
|
|
34
|
-
}
|
|
35
|
-
create(value?: PartialMessage<UsersUpdateEvent>): UsersUpdateEvent {
|
|
36
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
37
|
-
message.added = [];
|
|
38
|
-
message.removed = [];
|
|
39
|
-
if (value !== undefined)
|
|
40
|
-
reflectionMergePartial<UsersUpdateEvent>(this, message, value);
|
|
41
|
-
return message;
|
|
42
|
-
}
|
|
43
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UsersUpdateEvent): UsersUpdateEvent {
|
|
44
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
45
|
-
while (reader.pos < end) {
|
|
46
|
-
let [fieldNo, wireType] = reader.tag();
|
|
47
|
-
switch (fieldNo) {
|
|
48
|
-
case /* repeated resources.livemap.UserMarker added */ 1:
|
|
49
|
-
message.added.push(UserMarker.internalBinaryRead(reader, reader.uint32(), options));
|
|
50
|
-
break;
|
|
51
|
-
case /* repeated resources.livemap.UserMarker removed */ 2:
|
|
52
|
-
message.removed.push(UserMarker.internalBinaryRead(reader, reader.uint32(), options));
|
|
53
|
-
break;
|
|
54
|
-
default:
|
|
55
|
-
let u = options.readUnknownField;
|
|
56
|
-
if (u === "throw")
|
|
57
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
58
|
-
let d = reader.skip(wireType);
|
|
59
|
-
if (u !== false)
|
|
60
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return message;
|
|
64
|
-
}
|
|
65
|
-
internalBinaryWrite(message: UsersUpdateEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
66
|
-
/* repeated resources.livemap.UserMarker added = 1; */
|
|
67
|
-
for (let i = 0; i < message.added.length; i++)
|
|
68
|
-
UserMarker.internalBinaryWrite(message.added[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
69
|
-
/* repeated resources.livemap.UserMarker removed = 2; */
|
|
70
|
-
for (let i = 0; i < message.removed.length; i++)
|
|
71
|
-
UserMarker.internalBinaryWrite(message.removed[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
72
|
-
let u = options.writeUnknownFields;
|
|
73
|
-
if (u !== false)
|
|
74
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
75
|
-
return writer;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @generated MessageType for protobuf message resources.livemap.UsersUpdateEvent
|
|
80
|
-
*/
|
|
81
|
-
export const UsersUpdateEvent = new UsersUpdateEvent$Type();
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "services/internet/ads.proto" (package "services.internet", syntax proto3)
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
-
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import { AdsService } from "./ads";
|
|
7
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
-
import type { GetAdsResponse } from "./ads";
|
|
9
|
-
import type { GetAdsRequest } from "./ads";
|
|
10
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
11
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf service services.internet.AdsService
|
|
14
|
-
*/
|
|
15
|
-
export interface IAdsServiceClient {
|
|
16
|
-
/**
|
|
17
|
-
* @perm: Name=Any
|
|
18
|
-
*
|
|
19
|
-
* @generated from protobuf rpc: GetAds(services.internet.GetAdsRequest) returns (services.internet.GetAdsResponse);
|
|
20
|
-
*/
|
|
21
|
-
getAds(input: GetAdsRequest, options?: RpcOptions): UnaryCall<GetAdsRequest, GetAdsResponse>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf service services.internet.AdsService
|
|
25
|
-
*/
|
|
26
|
-
export class AdsServiceClient implements IAdsServiceClient, ServiceInfo {
|
|
27
|
-
typeName = AdsService.typeName;
|
|
28
|
-
methods = AdsService.methods;
|
|
29
|
-
options = AdsService.options;
|
|
30
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @perm: Name=Any
|
|
34
|
-
*
|
|
35
|
-
* @generated from protobuf rpc: GetAds(services.internet.GetAdsRequest) returns (services.internet.GetAdsResponse);
|
|
36
|
-
*/
|
|
37
|
-
getAds(input: GetAdsRequest, options?: RpcOptions): UnaryCall<GetAdsRequest, GetAdsResponse> {
|
|
38
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
39
|
-
return stackIntercept<GetAdsRequest, GetAdsResponse>("unary", this._transport, method, opt, input);
|
|
40
|
-
}
|
|
41
|
-
}
|