@fivenet-app/gen 0.9.3 → 0.9.5-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients.ts +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/internet/domain.proto" (package "resources.internet", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,14 +11,47 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
13
|
import { Timestamp } from "../timestamp/timestamp";
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message resources.internet.TLD
|
|
16
|
+
*/
|
|
17
|
+
export interface TLD {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
20
|
+
*/
|
|
21
|
+
id: number;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
24
|
+
*/
|
|
25
|
+
createdAt?: Timestamp;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
28
|
+
*/
|
|
29
|
+
updatedAt?: Timestamp;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
32
|
+
*/
|
|
33
|
+
deletedAt?: Timestamp;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: string name = 5;
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: bool internal = 6;
|
|
40
|
+
*/
|
|
41
|
+
internal: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: optional int32 creator_id = 7;
|
|
44
|
+
*/
|
|
45
|
+
creatorId?: number;
|
|
46
|
+
}
|
|
14
47
|
/**
|
|
15
48
|
* @generated from protobuf message resources.internet.Domain
|
|
16
49
|
*/
|
|
17
50
|
export interface Domain {
|
|
18
51
|
/**
|
|
19
|
-
* @generated from protobuf field: uint64 id = 1
|
|
52
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
20
53
|
*/
|
|
21
|
-
id:
|
|
54
|
+
id: number;
|
|
22
55
|
/**
|
|
23
56
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
24
57
|
*/
|
|
@@ -32,34 +65,157 @@ export interface Domain {
|
|
|
32
65
|
*/
|
|
33
66
|
deletedAt?: Timestamp;
|
|
34
67
|
/**
|
|
35
|
-
* @generated from protobuf field:
|
|
68
|
+
* @generated from protobuf field: uint64 tld_id = 5;
|
|
69
|
+
*/
|
|
70
|
+
tldId: number;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: optional resources.internet.TLD tld = 6;
|
|
73
|
+
*/
|
|
74
|
+
tld?: TLD;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: bool active = 7;
|
|
77
|
+
*/
|
|
78
|
+
active: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: string name = 8;
|
|
36
81
|
*/
|
|
37
82
|
name: string;
|
|
38
83
|
/**
|
|
39
|
-
* @generated from protobuf field: optional string
|
|
84
|
+
* @generated from protobuf field: optional string transfer_code = 9;
|
|
85
|
+
*/
|
|
86
|
+
transferCode?: string;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: optional string approver_job = 10;
|
|
89
|
+
*/
|
|
90
|
+
approverJob?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf field: optional int32 approver_id = 11;
|
|
93
|
+
*/
|
|
94
|
+
approverId?: number;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: optional string creator_job = 12;
|
|
40
97
|
*/
|
|
41
98
|
creatorJob?: string;
|
|
42
99
|
/**
|
|
43
|
-
* @generated from protobuf field: optional int32 creator_id =
|
|
100
|
+
* @generated from protobuf field: optional int32 creator_id = 13;
|
|
44
101
|
*/
|
|
45
102
|
creatorId?: number;
|
|
46
103
|
}
|
|
47
104
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
105
|
+
class TLD$Type extends MessageType<TLD> {
|
|
106
|
+
constructor() {
|
|
107
|
+
super("resources.internet.TLD", [
|
|
108
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
109
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
110
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
111
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
112
|
+
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "24" } } } },
|
|
113
|
+
{ no: 6, name: "internal", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
114
|
+
{ no: 7, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
115
|
+
]);
|
|
116
|
+
}
|
|
117
|
+
create(value?: PartialMessage<TLD>): TLD {
|
|
118
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
119
|
+
message.id = 0;
|
|
120
|
+
message.name = "";
|
|
121
|
+
message.internal = false;
|
|
122
|
+
if (value !== undefined)
|
|
123
|
+
reflectionMergePartial<TLD>(this, message, value);
|
|
124
|
+
return message;
|
|
125
|
+
}
|
|
126
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TLD): TLD {
|
|
127
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
let [fieldNo, wireType] = reader.tag();
|
|
130
|
+
switch (fieldNo) {
|
|
131
|
+
case /* uint64 id */ 1:
|
|
132
|
+
message.id = reader.uint64().toNumber();
|
|
133
|
+
break;
|
|
134
|
+
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
135
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
136
|
+
break;
|
|
137
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
138
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
139
|
+
break;
|
|
140
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
141
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
142
|
+
break;
|
|
143
|
+
case /* string name */ 5:
|
|
144
|
+
message.name = reader.string();
|
|
145
|
+
break;
|
|
146
|
+
case /* bool internal */ 6:
|
|
147
|
+
message.internal = reader.bool();
|
|
148
|
+
break;
|
|
149
|
+
case /* optional int32 creator_id */ 7:
|
|
150
|
+
message.creatorId = reader.int32();
|
|
151
|
+
break;
|
|
152
|
+
default:
|
|
153
|
+
let u = options.readUnknownField;
|
|
154
|
+
if (u === "throw")
|
|
155
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
156
|
+
let d = reader.skip(wireType);
|
|
157
|
+
if (u !== false)
|
|
158
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return message;
|
|
162
|
+
}
|
|
163
|
+
internalBinaryWrite(message: TLD, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
164
|
+
/* uint64 id = 1; */
|
|
165
|
+
if (message.id !== 0)
|
|
166
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
167
|
+
/* resources.timestamp.Timestamp created_at = 2; */
|
|
168
|
+
if (message.createdAt)
|
|
169
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
170
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
171
|
+
if (message.updatedAt)
|
|
172
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
173
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
174
|
+
if (message.deletedAt)
|
|
175
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
176
|
+
/* string name = 5; */
|
|
177
|
+
if (message.name !== "")
|
|
178
|
+
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
179
|
+
/* bool internal = 6; */
|
|
180
|
+
if (message.internal !== false)
|
|
181
|
+
writer.tag(6, WireType.Varint).bool(message.internal);
|
|
182
|
+
/* optional int32 creator_id = 7; */
|
|
183
|
+
if (message.creatorId !== undefined)
|
|
184
|
+
writer.tag(7, WireType.Varint).int32(message.creatorId);
|
|
185
|
+
let u = options.writeUnknownFields;
|
|
186
|
+
if (u !== false)
|
|
187
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
188
|
+
return writer;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @generated MessageType for protobuf message resources.internet.TLD
|
|
193
|
+
*/
|
|
194
|
+
export const TLD = new TLD$Type();
|
|
195
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
48
196
|
class Domain$Type extends MessageType<Domain> {
|
|
49
197
|
constructor() {
|
|
50
198
|
super("resources.internet.Domain", [
|
|
51
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
199
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
52
200
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
53
201
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
54
202
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
55
|
-
{ no: 5, name: "
|
|
56
|
-
{ no: 6, name: "
|
|
57
|
-
{ no: 7, name: "
|
|
203
|
+
{ no: 5, name: "tld_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
204
|
+
{ no: 6, name: "tld", kind: "message", T: () => TLD },
|
|
205
|
+
{ no: 7, name: "active", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
206
|
+
{ no: 8, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
207
|
+
{ no: 9, name: "transfer_code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { len: "10", pattern: "^[0-9A-Z]{6}$" } } } },
|
|
208
|
+
{ no: 10, name: "approver_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
209
|
+
{ no: 11, name: "approver_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
210
|
+
{ no: 12, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
211
|
+
{ no: 13, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
58
212
|
]);
|
|
59
213
|
}
|
|
60
214
|
create(value?: PartialMessage<Domain>): Domain {
|
|
61
215
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
62
|
-
message.id =
|
|
216
|
+
message.id = 0;
|
|
217
|
+
message.tldId = 0;
|
|
218
|
+
message.active = false;
|
|
63
219
|
message.name = "";
|
|
64
220
|
if (value !== undefined)
|
|
65
221
|
reflectionMergePartial<Domain>(this, message, value);
|
|
@@ -70,8 +226,8 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
70
226
|
while (reader.pos < end) {
|
|
71
227
|
let [fieldNo, wireType] = reader.tag();
|
|
72
228
|
switch (fieldNo) {
|
|
73
|
-
case /* uint64 id
|
|
74
|
-
message.id = reader.uint64().
|
|
229
|
+
case /* uint64 id */ 1:
|
|
230
|
+
message.id = reader.uint64().toNumber();
|
|
75
231
|
break;
|
|
76
232
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
77
233
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -82,13 +238,31 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
82
238
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
83
239
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
84
240
|
break;
|
|
85
|
-
case /*
|
|
241
|
+
case /* uint64 tld_id */ 5:
|
|
242
|
+
message.tldId = reader.uint64().toNumber();
|
|
243
|
+
break;
|
|
244
|
+
case /* optional resources.internet.TLD tld */ 6:
|
|
245
|
+
message.tld = TLD.internalBinaryRead(reader, reader.uint32(), options, message.tld);
|
|
246
|
+
break;
|
|
247
|
+
case /* bool active */ 7:
|
|
248
|
+
message.active = reader.bool();
|
|
249
|
+
break;
|
|
250
|
+
case /* string name */ 8:
|
|
86
251
|
message.name = reader.string();
|
|
87
252
|
break;
|
|
88
|
-
case /* optional string
|
|
253
|
+
case /* optional string transfer_code */ 9:
|
|
254
|
+
message.transferCode = reader.string();
|
|
255
|
+
break;
|
|
256
|
+
case /* optional string approver_job */ 10:
|
|
257
|
+
message.approverJob = reader.string();
|
|
258
|
+
break;
|
|
259
|
+
case /* optional int32 approver_id */ 11:
|
|
260
|
+
message.approverId = reader.int32();
|
|
261
|
+
break;
|
|
262
|
+
case /* optional string creator_job */ 12:
|
|
89
263
|
message.creatorJob = reader.string();
|
|
90
264
|
break;
|
|
91
|
-
case /* optional int32 creator_id */
|
|
265
|
+
case /* optional int32 creator_id */ 13:
|
|
92
266
|
message.creatorId = reader.int32();
|
|
93
267
|
break;
|
|
94
268
|
default:
|
|
@@ -103,8 +277,8 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
103
277
|
return message;
|
|
104
278
|
}
|
|
105
279
|
internalBinaryWrite(message: Domain, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
106
|
-
/* uint64 id = 1
|
|
107
|
-
if (message.id !==
|
|
280
|
+
/* uint64 id = 1; */
|
|
281
|
+
if (message.id !== 0)
|
|
108
282
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
109
283
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
110
284
|
if (message.createdAt)
|
|
@@ -115,15 +289,33 @@ class Domain$Type extends MessageType<Domain> {
|
|
|
115
289
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
116
290
|
if (message.deletedAt)
|
|
117
291
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
118
|
-
/*
|
|
292
|
+
/* uint64 tld_id = 5; */
|
|
293
|
+
if (message.tldId !== 0)
|
|
294
|
+
writer.tag(5, WireType.Varint).uint64(message.tldId);
|
|
295
|
+
/* optional resources.internet.TLD tld = 6; */
|
|
296
|
+
if (message.tld)
|
|
297
|
+
TLD.internalBinaryWrite(message.tld, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
298
|
+
/* bool active = 7; */
|
|
299
|
+
if (message.active !== false)
|
|
300
|
+
writer.tag(7, WireType.Varint).bool(message.active);
|
|
301
|
+
/* string name = 8; */
|
|
119
302
|
if (message.name !== "")
|
|
120
|
-
writer.tag(
|
|
121
|
-
/* optional string
|
|
303
|
+
writer.tag(8, WireType.LengthDelimited).string(message.name);
|
|
304
|
+
/* optional string transfer_code = 9; */
|
|
305
|
+
if (message.transferCode !== undefined)
|
|
306
|
+
writer.tag(9, WireType.LengthDelimited).string(message.transferCode);
|
|
307
|
+
/* optional string approver_job = 10; */
|
|
308
|
+
if (message.approverJob !== undefined)
|
|
309
|
+
writer.tag(10, WireType.LengthDelimited).string(message.approverJob);
|
|
310
|
+
/* optional int32 approver_id = 11; */
|
|
311
|
+
if (message.approverId !== undefined)
|
|
312
|
+
writer.tag(11, WireType.Varint).int32(message.approverId);
|
|
313
|
+
/* optional string creator_job = 12; */
|
|
122
314
|
if (message.creatorJob !== undefined)
|
|
123
|
-
writer.tag(
|
|
124
|
-
/* optional int32 creator_id =
|
|
315
|
+
writer.tag(12, WireType.LengthDelimited).string(message.creatorJob);
|
|
316
|
+
/* optional int32 creator_id = 13; */
|
|
125
317
|
if (message.creatorId !== undefined)
|
|
126
|
-
writer.tag(
|
|
318
|
+
writer.tag(13, WireType.Varint).int32(message.creatorId);
|
|
127
319
|
let u = options.writeUnknownFields;
|
|
128
320
|
if (u !== false)
|
|
129
321
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/internet/page.proto" (package "resources.internet", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -10,15 +10,16 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
10
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
11
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
12
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { NodeType } from "../common/content/content";
|
|
13
14
|
import { Timestamp } from "../timestamp/timestamp";
|
|
14
15
|
/**
|
|
15
16
|
* @generated from protobuf message resources.internet.Page
|
|
16
17
|
*/
|
|
17
18
|
export interface Page {
|
|
18
19
|
/**
|
|
19
|
-
* @generated from protobuf field: uint64 id = 1
|
|
20
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
20
21
|
*/
|
|
21
|
-
id:
|
|
22
|
+
id: number;
|
|
22
23
|
/**
|
|
23
24
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
24
25
|
*/
|
|
@@ -32,9 +33,9 @@ export interface Page {
|
|
|
32
33
|
*/
|
|
33
34
|
deletedAt?: Timestamp;
|
|
34
35
|
/**
|
|
35
|
-
* @generated from protobuf field: uint64 domain_id = 5
|
|
36
|
+
* @generated from protobuf field: uint64 domain_id = 5;
|
|
36
37
|
*/
|
|
37
|
-
domainId:
|
|
38
|
+
domainId: number;
|
|
38
39
|
/**
|
|
39
40
|
* @sanitize: method=StripTags
|
|
40
41
|
*
|
|
@@ -67,9 +68,62 @@ export interface Page {
|
|
|
67
68
|
creatorId?: number;
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
71
|
+
* @dbscanner: json
|
|
72
|
+
*
|
|
70
73
|
* @generated from protobuf message resources.internet.PageData
|
|
71
74
|
*/
|
|
72
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[];
|
|
73
127
|
}
|
|
74
128
|
/**
|
|
75
129
|
* @generated from protobuf enum resources.internet.PageLayoutType
|
|
@@ -80,23 +134,23 @@ export enum PageLayoutType {
|
|
|
80
134
|
*/
|
|
81
135
|
UNSPECIFIED = 0,
|
|
82
136
|
/**
|
|
83
|
-
* @generated from protobuf enum value:
|
|
137
|
+
* @generated from protobuf enum value: PAGE_LAYOUT_TYPE_BASIC_PAGE = 1;
|
|
84
138
|
*/
|
|
85
|
-
|
|
139
|
+
BASIC_PAGE = 1,
|
|
86
140
|
/**
|
|
87
|
-
* @generated from protobuf enum value:
|
|
141
|
+
* @generated from protobuf enum value: PAGE_LAYOUT_TYPE_LANDING_PAGE = 2;
|
|
88
142
|
*/
|
|
89
|
-
|
|
143
|
+
LANDING_PAGE = 2
|
|
90
144
|
}
|
|
91
145
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
92
146
|
class Page$Type extends MessageType<Page> {
|
|
93
147
|
constructor() {
|
|
94
148
|
super("resources.internet.Page", [
|
|
95
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
149
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
96
150
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
97
151
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
98
152
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
99
|
-
{ no: 5, name: "domain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
153
|
+
{ no: 5, name: "domain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
100
154
|
{ no: 6, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
101
155
|
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } } } },
|
|
102
156
|
{ no: 8, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
@@ -107,8 +161,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
107
161
|
}
|
|
108
162
|
create(value?: PartialMessage<Page>): Page {
|
|
109
163
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
110
|
-
message.id =
|
|
111
|
-
message.domainId =
|
|
164
|
+
message.id = 0;
|
|
165
|
+
message.domainId = 0;
|
|
112
166
|
message.path = "";
|
|
113
167
|
message.title = "";
|
|
114
168
|
message.description = "";
|
|
@@ -121,8 +175,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
121
175
|
while (reader.pos < end) {
|
|
122
176
|
let [fieldNo, wireType] = reader.tag();
|
|
123
177
|
switch (fieldNo) {
|
|
124
|
-
case /* uint64 id
|
|
125
|
-
message.id = reader.uint64().
|
|
178
|
+
case /* uint64 id */ 1:
|
|
179
|
+
message.id = reader.uint64().toNumber();
|
|
126
180
|
break;
|
|
127
181
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
128
182
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -133,8 +187,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
133
187
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
134
188
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
135
189
|
break;
|
|
136
|
-
case /* uint64 domain_id
|
|
137
|
-
message.domainId = reader.uint64().
|
|
190
|
+
case /* uint64 domain_id */ 5:
|
|
191
|
+
message.domainId = reader.uint64().toNumber();
|
|
138
192
|
break;
|
|
139
193
|
case /* string path */ 6:
|
|
140
194
|
message.path = reader.string();
|
|
@@ -166,8 +220,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
166
220
|
return message;
|
|
167
221
|
}
|
|
168
222
|
internalBinaryWrite(message: Page, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
169
|
-
/* uint64 id = 1
|
|
170
|
-
if (message.id !==
|
|
223
|
+
/* uint64 id = 1; */
|
|
224
|
+
if (message.id !== 0)
|
|
171
225
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
172
226
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
173
227
|
if (message.createdAt)
|
|
@@ -178,8 +232,8 @@ class Page$Type extends MessageType<Page> {
|
|
|
178
232
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
179
233
|
if (message.deletedAt)
|
|
180
234
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
181
|
-
/* uint64 domain_id = 5
|
|
182
|
-
if (message.domainId !==
|
|
235
|
+
/* uint64 domain_id = 5; */
|
|
236
|
+
if (message.domainId !== 0)
|
|
183
237
|
writer.tag(5, WireType.Varint).uint64(message.domainId);
|
|
184
238
|
/* string path = 6; */
|
|
185
239
|
if (message.path !== "")
|
|
@@ -212,18 +266,47 @@ export const Page = new Page$Type();
|
|
|
212
266
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
213
267
|
class PageData$Type extends MessageType<PageData> {
|
|
214
268
|
constructor() {
|
|
215
|
-
super("resources.internet.PageData", [
|
|
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
|
+
]);
|
|
216
273
|
}
|
|
217
274
|
create(value?: PartialMessage<PageData>): PageData {
|
|
218
275
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
276
|
+
message.layoutType = 0;
|
|
219
277
|
if (value !== undefined)
|
|
220
278
|
reflectionMergePartial<PageData>(this, message, value);
|
|
221
279
|
return message;
|
|
222
280
|
}
|
|
223
281
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageData): PageData {
|
|
224
|
-
|
|
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;
|
|
225
302
|
}
|
|
226
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();
|
|
227
310
|
let u = options.writeUnknownFields;
|
|
228
311
|
if (u !== false)
|
|
229
312
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -234,3 +317,112 @@ class PageData$Type extends MessageType<PageData> {
|
|
|
234
317
|
* @generated MessageType for protobuf message resources.internet.PageData
|
|
235
318
|
*/
|
|
236
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: 1 /*RepeatType.PACKED*/, T: () => ContentNode },
|
|
330
|
+
{ no: 7, name: "slots", kind: "message", repeat: 1 /*RepeatType.PACKED*/, 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();
|