@fivenet-app/gen 0.9.3 → 0.9.4-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/package.json +5 -1
- package/perms.ts +4 -0
- package/resources/accounts/accounts.ts +8 -8
- package/resources/accounts/oauth2.ts +16 -16
- package/resources/calendar/access.ts +32 -32
- package/resources/calendar/calendar.ts +48 -48
- package/resources/centrum/access.ts +40 -40
- package/resources/centrum/dispatches.ts +62 -62
- package/resources/centrum/general.ts +8 -8
- package/resources/centrum/units.ts +40 -40
- package/resources/documents/access.ts +32 -32
- package/resources/documents/activity.ts +16 -16
- package/resources/documents/category.ts +8 -8
- package/resources/documents/comment.ts +16 -16
- package/resources/documents/documents.ts +86 -86
- package/resources/documents/requests.ts +16 -16
- package/resources/documents/templates.ts +32 -32
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +8 -8
- package/resources/internet/domain.ts +182 -23
- package/resources/internet/page.ts +22 -20
- package/resources/internet/search.ts +8 -8
- package/resources/jobs/activity.ts +8 -8
- package/resources/jobs/conduct.ts +8 -8
- package/resources/jobs/labels.ts +8 -8
- package/resources/jobs/timeclock.ts +6 -2
- package/resources/laws/laws.ts +24 -24
- package/resources/livemap/livemap.ts +14 -14
- package/resources/mailer/access.ts +56 -56
- package/resources/mailer/email.ts +8 -8
- package/resources/mailer/events.ts +18 -18
- package/resources/mailer/message.ts +24 -24
- package/resources/mailer/settings.ts +8 -8
- package/resources/mailer/template.ts +16 -16
- package/resources/mailer/thread.ts +56 -56
- package/resources/notifications/events.ts +39 -2
- package/resources/notifications/notifications.ts +20 -20
- package/resources/permissions/permissions.ts +64 -64
- package/resources/qualifications/access.ts +16 -16
- package/resources/qualifications/exam.ts +40 -40
- package/resources/qualifications/qualifications.ts +64 -64
- package/resources/rector/audit.ts +16 -16
- package/resources/sync/activity.ts +92 -14
- package/resources/sync/data.ts +142 -10
- package/resources/users/activity.ts +992 -36
- package/resources/users/job_props.ts +3 -708
- package/resources/users/job_settings.ts +721 -0
- package/resources/users/labels.ts +8 -8
- package/resources/users/licenses.ts +148 -0
- package/resources/users/users.ts +1 -136
- package/resources/wiki/access.ts +32 -32
- package/resources/wiki/activity.ts +16 -16
- package/resources/wiki/page.ts +28 -28
- package/services/auth/auth.ts +16 -16
- package/services/calendar/calendar.ts +55 -55
- package/services/centrum/centrum.ts +112 -112
- package/services/citizenstore/citizenstore.ts +24 -1
- package/services/docstore/docstore.ts +280 -280
- package/services/internet/domain.client.ts +126 -0
- package/services/internet/domain.ts +695 -0
- package/services/internet/internet.ts +3 -3
- package/services/jobs/conduct.ts +15 -15
- package/services/jobs/jobs.ts +14 -14
- package/services/jobs/timeclock.ts +1 -1
- package/services/livemapper/livemap.ts +8 -8
- package/services/mailer/mailer.ts +159 -159
- package/services/notificator/notificator.ts +15 -15
- package/services/qualifications/qualifications.ts +108 -108
- package/services/rector/laws.ts +16 -16
- package/services/rector/rector.ts +63 -63
- package/services/sync/sync.client.ts +36 -2
- package/services/sync/sync.ts +259 -44
- package/services/wiki/wiki.ts +24 -24
- package/svcs.ts +13 -0
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/common/access/dummy.proto" (package "resources.common.access", 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
|
-
/**
|
|
14
|
-
* @generated from protobuf message resources.common.access.DummyJobAccess
|
|
15
|
-
*/
|
|
16
|
-
export interface DummyJobAccess {
|
|
17
|
-
/**
|
|
18
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf field: uint64 target_id = 2 [jstype = JS_STRING];
|
|
23
|
-
*/
|
|
24
|
-
targetId: string;
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: string job = 3;
|
|
27
|
-
*/
|
|
28
|
-
job: string;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: int32 minimum_grade = 4;
|
|
31
|
-
*/
|
|
32
|
-
minimumGrade: number;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: resources.common.access.AccessLevel access = 5;
|
|
35
|
-
*/
|
|
36
|
-
access: AccessLevel;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf message resources.common.access.DummyUserAccess
|
|
40
|
-
*/
|
|
41
|
-
export interface DummyUserAccess {
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
44
|
-
*/
|
|
45
|
-
id: string;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf field: uint64 target_id = 2 [jstype = JS_STRING];
|
|
48
|
-
*/
|
|
49
|
-
targetId: string;
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf field: int32 user_id = 3;
|
|
52
|
-
*/
|
|
53
|
-
userId: number;
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf field: resources.common.access.AccessLevel access = 4;
|
|
56
|
-
*/
|
|
57
|
-
access: AccessLevel;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @generated from protobuf message resources.common.access.DummyQualificationAccess
|
|
61
|
-
*/
|
|
62
|
-
export interface DummyQualificationAccess {
|
|
63
|
-
/**
|
|
64
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
65
|
-
*/
|
|
66
|
-
id: string;
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf field: uint64 target_id = 2 [jstype = JS_STRING];
|
|
69
|
-
*/
|
|
70
|
-
targetId: string;
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf field: uint64 qualification_id = 3 [jstype = JS_STRING];
|
|
73
|
-
*/
|
|
74
|
-
qualificationId: string;
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf field: resources.common.access.AccessLevel access = 4;
|
|
77
|
-
*/
|
|
78
|
-
access: AccessLevel;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf enum resources.common.access.AccessLevel
|
|
82
|
-
*/
|
|
83
|
-
export enum AccessLevel {
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf enum value: ACCESS_LEVEL_UNSPECIFIED = 0;
|
|
86
|
-
*/
|
|
87
|
-
UNSPECIFIED = 0
|
|
88
|
-
}
|
|
89
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
90
|
-
class DummyJobAccess$Type extends MessageType<DummyJobAccess> {
|
|
91
|
-
constructor() {
|
|
92
|
-
super("resources.common.access.DummyJobAccess", [
|
|
93
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
94
|
-
{ no: 2, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
95
|
-
{ no: 3, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
96
|
-
{ no: 4, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
97
|
-
{ no: 5, name: "access", kind: "enum", T: () => ["resources.common.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
98
|
-
]);
|
|
99
|
-
}
|
|
100
|
-
create(value?: PartialMessage<DummyJobAccess>): DummyJobAccess {
|
|
101
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
102
|
-
message.id = "0";
|
|
103
|
-
message.targetId = "0";
|
|
104
|
-
message.job = "";
|
|
105
|
-
message.minimumGrade = 0;
|
|
106
|
-
message.access = 0;
|
|
107
|
-
if (value !== undefined)
|
|
108
|
-
reflectionMergePartial<DummyJobAccess>(this, message, value);
|
|
109
|
-
return message;
|
|
110
|
-
}
|
|
111
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DummyJobAccess): DummyJobAccess {
|
|
112
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
113
|
-
while (reader.pos < end) {
|
|
114
|
-
let [fieldNo, wireType] = reader.tag();
|
|
115
|
-
switch (fieldNo) {
|
|
116
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
117
|
-
message.id = reader.uint64().toString();
|
|
118
|
-
break;
|
|
119
|
-
case /* uint64 target_id = 2 [jstype = JS_STRING];*/ 2:
|
|
120
|
-
message.targetId = reader.uint64().toString();
|
|
121
|
-
break;
|
|
122
|
-
case /* string job */ 3:
|
|
123
|
-
message.job = reader.string();
|
|
124
|
-
break;
|
|
125
|
-
case /* int32 minimum_grade */ 4:
|
|
126
|
-
message.minimumGrade = reader.int32();
|
|
127
|
-
break;
|
|
128
|
-
case /* resources.common.access.AccessLevel access */ 5:
|
|
129
|
-
message.access = reader.int32();
|
|
130
|
-
break;
|
|
131
|
-
default:
|
|
132
|
-
let u = options.readUnknownField;
|
|
133
|
-
if (u === "throw")
|
|
134
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
135
|
-
let d = reader.skip(wireType);
|
|
136
|
-
if (u !== false)
|
|
137
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return message;
|
|
141
|
-
}
|
|
142
|
-
internalBinaryWrite(message: DummyJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
143
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
144
|
-
if (message.id !== "0")
|
|
145
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
146
|
-
/* uint64 target_id = 2 [jstype = JS_STRING]; */
|
|
147
|
-
if (message.targetId !== "0")
|
|
148
|
-
writer.tag(2, WireType.Varint).uint64(message.targetId);
|
|
149
|
-
/* string job = 3; */
|
|
150
|
-
if (message.job !== "")
|
|
151
|
-
writer.tag(3, WireType.LengthDelimited).string(message.job);
|
|
152
|
-
/* int32 minimum_grade = 4; */
|
|
153
|
-
if (message.minimumGrade !== 0)
|
|
154
|
-
writer.tag(4, WireType.Varint).int32(message.minimumGrade);
|
|
155
|
-
/* resources.common.access.AccessLevel access = 5; */
|
|
156
|
-
if (message.access !== 0)
|
|
157
|
-
writer.tag(5, WireType.Varint).int32(message.access);
|
|
158
|
-
let u = options.writeUnknownFields;
|
|
159
|
-
if (u !== false)
|
|
160
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
161
|
-
return writer;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @generated MessageType for protobuf message resources.common.access.DummyJobAccess
|
|
166
|
-
*/
|
|
167
|
-
export const DummyJobAccess = new DummyJobAccess$Type();
|
|
168
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
169
|
-
class DummyUserAccess$Type extends MessageType<DummyUserAccess> {
|
|
170
|
-
constructor() {
|
|
171
|
-
super("resources.common.access.DummyUserAccess", [
|
|
172
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
173
|
-
{ no: 2, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
174
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
175
|
-
{ no: 4, name: "access", kind: "enum", T: () => ["resources.common.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
176
|
-
]);
|
|
177
|
-
}
|
|
178
|
-
create(value?: PartialMessage<DummyUserAccess>): DummyUserAccess {
|
|
179
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
180
|
-
message.id = "0";
|
|
181
|
-
message.targetId = "0";
|
|
182
|
-
message.userId = 0;
|
|
183
|
-
message.access = 0;
|
|
184
|
-
if (value !== undefined)
|
|
185
|
-
reflectionMergePartial<DummyUserAccess>(this, message, value);
|
|
186
|
-
return message;
|
|
187
|
-
}
|
|
188
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DummyUserAccess): DummyUserAccess {
|
|
189
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
190
|
-
while (reader.pos < end) {
|
|
191
|
-
let [fieldNo, wireType] = reader.tag();
|
|
192
|
-
switch (fieldNo) {
|
|
193
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
194
|
-
message.id = reader.uint64().toString();
|
|
195
|
-
break;
|
|
196
|
-
case /* uint64 target_id = 2 [jstype = JS_STRING];*/ 2:
|
|
197
|
-
message.targetId = reader.uint64().toString();
|
|
198
|
-
break;
|
|
199
|
-
case /* int32 user_id */ 3:
|
|
200
|
-
message.userId = reader.int32();
|
|
201
|
-
break;
|
|
202
|
-
case /* resources.common.access.AccessLevel access */ 4:
|
|
203
|
-
message.access = reader.int32();
|
|
204
|
-
break;
|
|
205
|
-
default:
|
|
206
|
-
let u = options.readUnknownField;
|
|
207
|
-
if (u === "throw")
|
|
208
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
209
|
-
let d = reader.skip(wireType);
|
|
210
|
-
if (u !== false)
|
|
211
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return message;
|
|
215
|
-
}
|
|
216
|
-
internalBinaryWrite(message: DummyUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
217
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
218
|
-
if (message.id !== "0")
|
|
219
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
220
|
-
/* uint64 target_id = 2 [jstype = JS_STRING]; */
|
|
221
|
-
if (message.targetId !== "0")
|
|
222
|
-
writer.tag(2, WireType.Varint).uint64(message.targetId);
|
|
223
|
-
/* int32 user_id = 3; */
|
|
224
|
-
if (message.userId !== 0)
|
|
225
|
-
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
226
|
-
/* resources.common.access.AccessLevel access = 4; */
|
|
227
|
-
if (message.access !== 0)
|
|
228
|
-
writer.tag(4, WireType.Varint).int32(message.access);
|
|
229
|
-
let u = options.writeUnknownFields;
|
|
230
|
-
if (u !== false)
|
|
231
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
232
|
-
return writer;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* @generated MessageType for protobuf message resources.common.access.DummyUserAccess
|
|
237
|
-
*/
|
|
238
|
-
export const DummyUserAccess = new DummyUserAccess$Type();
|
|
239
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
240
|
-
class DummyQualificationAccess$Type extends MessageType<DummyQualificationAccess> {
|
|
241
|
-
constructor() {
|
|
242
|
-
super("resources.common.access.DummyQualificationAccess", [
|
|
243
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
244
|
-
{ no: 2, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
245
|
-
{ no: 3, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
246
|
-
{ no: 4, name: "access", kind: "enum", T: () => ["resources.common.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
247
|
-
]);
|
|
248
|
-
}
|
|
249
|
-
create(value?: PartialMessage<DummyQualificationAccess>): DummyQualificationAccess {
|
|
250
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
251
|
-
message.id = "0";
|
|
252
|
-
message.targetId = "0";
|
|
253
|
-
message.qualificationId = "0";
|
|
254
|
-
message.access = 0;
|
|
255
|
-
if (value !== undefined)
|
|
256
|
-
reflectionMergePartial<DummyQualificationAccess>(this, message, value);
|
|
257
|
-
return message;
|
|
258
|
-
}
|
|
259
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DummyQualificationAccess): DummyQualificationAccess {
|
|
260
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
261
|
-
while (reader.pos < end) {
|
|
262
|
-
let [fieldNo, wireType] = reader.tag();
|
|
263
|
-
switch (fieldNo) {
|
|
264
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
265
|
-
message.id = reader.uint64().toString();
|
|
266
|
-
break;
|
|
267
|
-
case /* uint64 target_id = 2 [jstype = JS_STRING];*/ 2:
|
|
268
|
-
message.targetId = reader.uint64().toString();
|
|
269
|
-
break;
|
|
270
|
-
case /* uint64 qualification_id = 3 [jstype = JS_STRING];*/ 3:
|
|
271
|
-
message.qualificationId = reader.uint64().toString();
|
|
272
|
-
break;
|
|
273
|
-
case /* resources.common.access.AccessLevel access */ 4:
|
|
274
|
-
message.access = reader.int32();
|
|
275
|
-
break;
|
|
276
|
-
default:
|
|
277
|
-
let u = options.readUnknownField;
|
|
278
|
-
if (u === "throw")
|
|
279
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
280
|
-
let d = reader.skip(wireType);
|
|
281
|
-
if (u !== false)
|
|
282
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return message;
|
|
286
|
-
}
|
|
287
|
-
internalBinaryWrite(message: DummyQualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
288
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
289
|
-
if (message.id !== "0")
|
|
290
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
291
|
-
/* uint64 target_id = 2 [jstype = JS_STRING]; */
|
|
292
|
-
if (message.targetId !== "0")
|
|
293
|
-
writer.tag(2, WireType.Varint).uint64(message.targetId);
|
|
294
|
-
/* uint64 qualification_id = 3 [jstype = JS_STRING]; */
|
|
295
|
-
if (message.qualificationId !== "0")
|
|
296
|
-
writer.tag(3, WireType.Varint).uint64(message.qualificationId);
|
|
297
|
-
/* resources.common.access.AccessLevel access = 4; */
|
|
298
|
-
if (message.access !== 0)
|
|
299
|
-
writer.tag(4, WireType.Varint).int32(message.access);
|
|
300
|
-
let u = options.writeUnknownFields;
|
|
301
|
-
if (u !== false)
|
|
302
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
303
|
-
return writer;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* @generated MessageType for protobuf message resources.common.access.DummyQualificationAccess
|
|
308
|
-
*/
|
|
309
|
-
export const DummyQualificationAccess = new DummyQualificationAccess$Type();
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/internet/internet.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 { Timestamp } from "../timestamp/timestamp";
|
|
14
|
-
/**
|
|
15
|
-
* @generated from protobuf message resources.internet.Domain
|
|
16
|
-
*/
|
|
17
|
-
export interface Domain {
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
20
|
-
*/
|
|
21
|
-
id: string;
|
|
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: optional string creator_job = 6;
|
|
40
|
-
*/
|
|
41
|
-
creatorJob?: string;
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf field: optional int32 creator_id = 7;
|
|
44
|
-
*/
|
|
45
|
-
creatorId?: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf message resources.internet.Page
|
|
49
|
-
*/
|
|
50
|
-
export interface Page {
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
53
|
-
*/
|
|
54
|
-
id: string;
|
|
55
|
-
/**
|
|
56
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
57
|
-
*/
|
|
58
|
-
createdAt?: Timestamp;
|
|
59
|
-
/**
|
|
60
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
61
|
-
*/
|
|
62
|
-
updatedAt?: Timestamp;
|
|
63
|
-
/**
|
|
64
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
65
|
-
*/
|
|
66
|
-
deletedAt?: Timestamp;
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf field: uint64 domain_id = 5 [jstype = JS_STRING];
|
|
69
|
-
*/
|
|
70
|
-
domainId: string;
|
|
71
|
-
/**
|
|
72
|
-
* @sanitize: method=StripTags
|
|
73
|
-
*
|
|
74
|
-
* @generated from protobuf field: string path = 6;
|
|
75
|
-
*/
|
|
76
|
-
path: string;
|
|
77
|
-
/**
|
|
78
|
-
* @sanitize: method=StripTags
|
|
79
|
-
*
|
|
80
|
-
* @generated from protobuf field: string title = 7;
|
|
81
|
-
*/
|
|
82
|
-
title: string;
|
|
83
|
-
/**
|
|
84
|
-
* @sanitize: method=StripTags
|
|
85
|
-
*
|
|
86
|
-
* @generated from protobuf field: string description = 8;
|
|
87
|
-
*/
|
|
88
|
-
description: string;
|
|
89
|
-
/**
|
|
90
|
-
* @generated from protobuf field: resources.internet.PageData data = 9;
|
|
91
|
-
*/
|
|
92
|
-
data?: PageData;
|
|
93
|
-
/**
|
|
94
|
-
* @generated from protobuf field: optional string creator_job = 10;
|
|
95
|
-
*/
|
|
96
|
-
creatorJob?: string;
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf field: optional int32 creator_id = 11;
|
|
99
|
-
*/
|
|
100
|
-
creatorId?: number;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* TODO
|
|
104
|
-
*
|
|
105
|
-
* @generated from protobuf message resources.internet.PageData
|
|
106
|
-
*/
|
|
107
|
-
export interface PageData {
|
|
108
|
-
}
|
|
109
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
110
|
-
class Domain$Type extends MessageType<Domain> {
|
|
111
|
-
constructor() {
|
|
112
|
-
super("resources.internet.Domain", [
|
|
113
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
114
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
115
|
-
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
116
|
-
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
117
|
-
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
118
|
-
{ no: 6, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
119
|
-
{ no: 7, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
create(value?: PartialMessage<Domain>): Domain {
|
|
123
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
124
|
-
message.id = "0";
|
|
125
|
-
message.name = "";
|
|
126
|
-
if (value !== undefined)
|
|
127
|
-
reflectionMergePartial<Domain>(this, message, value);
|
|
128
|
-
return message;
|
|
129
|
-
}
|
|
130
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Domain): Domain {
|
|
131
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
132
|
-
while (reader.pos < end) {
|
|
133
|
-
let [fieldNo, wireType] = reader.tag();
|
|
134
|
-
switch (fieldNo) {
|
|
135
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
136
|
-
message.id = reader.uint64().toString();
|
|
137
|
-
break;
|
|
138
|
-
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
139
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
140
|
-
break;
|
|
141
|
-
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
142
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
143
|
-
break;
|
|
144
|
-
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
145
|
-
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
146
|
-
break;
|
|
147
|
-
case /* string name */ 5:
|
|
148
|
-
message.name = reader.string();
|
|
149
|
-
break;
|
|
150
|
-
case /* optional string creator_job */ 6:
|
|
151
|
-
message.creatorJob = reader.string();
|
|
152
|
-
break;
|
|
153
|
-
case /* optional int32 creator_id */ 7:
|
|
154
|
-
message.creatorId = reader.int32();
|
|
155
|
-
break;
|
|
156
|
-
default:
|
|
157
|
-
let u = options.readUnknownField;
|
|
158
|
-
if (u === "throw")
|
|
159
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
160
|
-
let d = reader.skip(wireType);
|
|
161
|
-
if (u !== false)
|
|
162
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return message;
|
|
166
|
-
}
|
|
167
|
-
internalBinaryWrite(message: Domain, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
168
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
169
|
-
if (message.id !== "0")
|
|
170
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
171
|
-
/* resources.timestamp.Timestamp created_at = 2; */
|
|
172
|
-
if (message.createdAt)
|
|
173
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
174
|
-
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
175
|
-
if (message.updatedAt)
|
|
176
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
177
|
-
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
178
|
-
if (message.deletedAt)
|
|
179
|
-
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
180
|
-
/* string name = 5; */
|
|
181
|
-
if (message.name !== "")
|
|
182
|
-
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
183
|
-
/* optional string creator_job = 6; */
|
|
184
|
-
if (message.creatorJob !== undefined)
|
|
185
|
-
writer.tag(6, WireType.LengthDelimited).string(message.creatorJob);
|
|
186
|
-
/* optional int32 creator_id = 7; */
|
|
187
|
-
if (message.creatorId !== undefined)
|
|
188
|
-
writer.tag(7, WireType.Varint).int32(message.creatorId);
|
|
189
|
-
let u = options.writeUnknownFields;
|
|
190
|
-
if (u !== false)
|
|
191
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
192
|
-
return writer;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* @generated MessageType for protobuf message resources.internet.Domain
|
|
197
|
-
*/
|
|
198
|
-
export const Domain = new Domain$Type();
|
|
199
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
200
|
-
class Page$Type extends MessageType<Page> {
|
|
201
|
-
constructor() {
|
|
202
|
-
super("resources.internet.Page", [
|
|
203
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
204
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
205
|
-
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
206
|
-
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
207
|
-
{ no: 5, name: "domain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
208
|
-
{ no: 6, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } },
|
|
209
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } } } },
|
|
210
|
-
{ no: 8, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
211
|
-
{ no: 9, name: "data", kind: "message", T: () => PageData },
|
|
212
|
-
{ no: 10, name: "creator_job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
213
|
-
{ no: 11, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
214
|
-
]);
|
|
215
|
-
}
|
|
216
|
-
create(value?: PartialMessage<Page>): Page {
|
|
217
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
218
|
-
message.id = "0";
|
|
219
|
-
message.domainId = "0";
|
|
220
|
-
message.path = "";
|
|
221
|
-
message.title = "";
|
|
222
|
-
message.description = "";
|
|
223
|
-
if (value !== undefined)
|
|
224
|
-
reflectionMergePartial<Page>(this, message, value);
|
|
225
|
-
return message;
|
|
226
|
-
}
|
|
227
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Page): Page {
|
|
228
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
229
|
-
while (reader.pos < end) {
|
|
230
|
-
let [fieldNo, wireType] = reader.tag();
|
|
231
|
-
switch (fieldNo) {
|
|
232
|
-
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
233
|
-
message.id = reader.uint64().toString();
|
|
234
|
-
break;
|
|
235
|
-
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
236
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
237
|
-
break;
|
|
238
|
-
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
239
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
240
|
-
break;
|
|
241
|
-
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
242
|
-
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
243
|
-
break;
|
|
244
|
-
case /* uint64 domain_id = 5 [jstype = JS_STRING];*/ 5:
|
|
245
|
-
message.domainId = reader.uint64().toString();
|
|
246
|
-
break;
|
|
247
|
-
case /* string path */ 6:
|
|
248
|
-
message.path = reader.string();
|
|
249
|
-
break;
|
|
250
|
-
case /* string title */ 7:
|
|
251
|
-
message.title = reader.string();
|
|
252
|
-
break;
|
|
253
|
-
case /* string description */ 8:
|
|
254
|
-
message.description = reader.string();
|
|
255
|
-
break;
|
|
256
|
-
case /* resources.internet.PageData data */ 9:
|
|
257
|
-
message.data = PageData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
258
|
-
break;
|
|
259
|
-
case /* optional string creator_job */ 10:
|
|
260
|
-
message.creatorJob = reader.string();
|
|
261
|
-
break;
|
|
262
|
-
case /* optional int32 creator_id */ 11:
|
|
263
|
-
message.creatorId = reader.int32();
|
|
264
|
-
break;
|
|
265
|
-
default:
|
|
266
|
-
let u = options.readUnknownField;
|
|
267
|
-
if (u === "throw")
|
|
268
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
269
|
-
let d = reader.skip(wireType);
|
|
270
|
-
if (u !== false)
|
|
271
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return message;
|
|
275
|
-
}
|
|
276
|
-
internalBinaryWrite(message: Page, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
277
|
-
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
278
|
-
if (message.id !== "0")
|
|
279
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
280
|
-
/* resources.timestamp.Timestamp created_at = 2; */
|
|
281
|
-
if (message.createdAt)
|
|
282
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
283
|
-
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
284
|
-
if (message.updatedAt)
|
|
285
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
286
|
-
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
287
|
-
if (message.deletedAt)
|
|
288
|
-
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
289
|
-
/* uint64 domain_id = 5 [jstype = JS_STRING]; */
|
|
290
|
-
if (message.domainId !== "0")
|
|
291
|
-
writer.tag(5, WireType.Varint).uint64(message.domainId);
|
|
292
|
-
/* string path = 6; */
|
|
293
|
-
if (message.path !== "")
|
|
294
|
-
writer.tag(6, WireType.LengthDelimited).string(message.path);
|
|
295
|
-
/* string title = 7; */
|
|
296
|
-
if (message.title !== "")
|
|
297
|
-
writer.tag(7, WireType.LengthDelimited).string(message.title);
|
|
298
|
-
/* string description = 8; */
|
|
299
|
-
if (message.description !== "")
|
|
300
|
-
writer.tag(8, WireType.LengthDelimited).string(message.description);
|
|
301
|
-
/* resources.internet.PageData data = 9; */
|
|
302
|
-
if (message.data)
|
|
303
|
-
PageData.internalBinaryWrite(message.data, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
304
|
-
/* optional string creator_job = 10; */
|
|
305
|
-
if (message.creatorJob !== undefined)
|
|
306
|
-
writer.tag(10, WireType.LengthDelimited).string(message.creatorJob);
|
|
307
|
-
/* optional int32 creator_id = 11; */
|
|
308
|
-
if (message.creatorId !== undefined)
|
|
309
|
-
writer.tag(11, WireType.Varint).int32(message.creatorId);
|
|
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.Page
|
|
318
|
-
*/
|
|
319
|
-
export const Page = new Page$Type();
|
|
320
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
321
|
-
class PageData$Type extends MessageType<PageData> {
|
|
322
|
-
constructor() {
|
|
323
|
-
super("resources.internet.PageData", []);
|
|
324
|
-
}
|
|
325
|
-
create(value?: PartialMessage<PageData>): PageData {
|
|
326
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
327
|
-
if (value !== undefined)
|
|
328
|
-
reflectionMergePartial<PageData>(this, message, value);
|
|
329
|
-
return message;
|
|
330
|
-
}
|
|
331
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageData): PageData {
|
|
332
|
-
return target ?? this.create();
|
|
333
|
-
}
|
|
334
|
-
internalBinaryWrite(message: PageData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
335
|
-
let u = options.writeUnknownFields;
|
|
336
|
-
if (u !== false)
|
|
337
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
338
|
-
return writer;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* @generated MessageType for protobuf message resources.internet.PageData
|
|
343
|
-
*/
|
|
344
|
-
export const PageData = new PageData$Type();
|