@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/documents/access.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -13,6 +13,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { UserShort } from "../users/users";
|
|
14
14
|
import { Timestamp } from "../timestamp/timestamp";
|
|
15
15
|
/**
|
|
16
|
+
* @dbscanner: json
|
|
17
|
+
*
|
|
16
18
|
* @generated from protobuf message resources.documents.DocumentAccess
|
|
17
19
|
*/
|
|
18
20
|
export interface DocumentAccess {
|
|
@@ -30,17 +32,17 @@ export interface DocumentAccess {
|
|
|
30
32
|
*/
|
|
31
33
|
export interface DocumentJobAccess {
|
|
32
34
|
/**
|
|
33
|
-
* @generated from protobuf field: uint64 id = 1
|
|
35
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
34
36
|
*/
|
|
35
|
-
id:
|
|
37
|
+
id: number;
|
|
36
38
|
/**
|
|
37
39
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
38
40
|
*/
|
|
39
41
|
createdAt?: Timestamp;
|
|
40
42
|
/**
|
|
41
|
-
* @generated from protobuf field: uint64 target_id = 3
|
|
43
|
+
* @generated from protobuf field: uint64 target_id = 3;
|
|
42
44
|
*/
|
|
43
|
-
targetId:
|
|
45
|
+
targetId: number;
|
|
44
46
|
/**
|
|
45
47
|
* @generated from protobuf field: string job = 4;
|
|
46
48
|
*/
|
|
@@ -64,24 +66,24 @@ export interface DocumentJobAccess {
|
|
|
64
66
|
/**
|
|
65
67
|
* @generated from protobuf field: optional bool required = 9;
|
|
66
68
|
*/
|
|
67
|
-
required?: boolean;
|
|
69
|
+
required?: boolean;
|
|
68
70
|
}
|
|
69
71
|
/**
|
|
70
72
|
* @generated from protobuf message resources.documents.DocumentUserAccess
|
|
71
73
|
*/
|
|
72
74
|
export interface DocumentUserAccess {
|
|
73
75
|
/**
|
|
74
|
-
* @generated from protobuf field: uint64 id = 1
|
|
76
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
75
77
|
*/
|
|
76
|
-
id:
|
|
78
|
+
id: number;
|
|
77
79
|
/**
|
|
78
80
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
79
81
|
*/
|
|
80
82
|
createdAt?: Timestamp;
|
|
81
83
|
/**
|
|
82
|
-
* @generated from protobuf field: uint64 target_id = 3
|
|
84
|
+
* @generated from protobuf field: uint64 target_id = 3;
|
|
83
85
|
*/
|
|
84
|
-
targetId:
|
|
86
|
+
targetId: number;
|
|
85
87
|
/**
|
|
86
88
|
* @generated from protobuf field: int32 user_id = 4;
|
|
87
89
|
*/
|
|
@@ -97,7 +99,7 @@ export interface DocumentUserAccess {
|
|
|
97
99
|
/**
|
|
98
100
|
* @generated from protobuf field: optional bool required = 7;
|
|
99
101
|
*/
|
|
100
|
-
required?: boolean;
|
|
102
|
+
required?: boolean;
|
|
101
103
|
}
|
|
102
104
|
/**
|
|
103
105
|
* @generated from protobuf enum resources.documents.AccessLevel
|
|
@@ -191,9 +193,9 @@ export const DocumentAccess = new DocumentAccess$Type();
|
|
|
191
193
|
class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
192
194
|
constructor() {
|
|
193
195
|
super("resources.documents.DocumentJobAccess", [
|
|
194
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
196
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
195
197
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
196
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
198
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
197
199
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
198
200
|
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
199
201
|
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
@@ -204,8 +206,8 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
|
204
206
|
}
|
|
205
207
|
create(value?: PartialMessage<DocumentJobAccess>): DocumentJobAccess {
|
|
206
208
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
207
|
-
message.id =
|
|
208
|
-
message.targetId =
|
|
209
|
+
message.id = 0;
|
|
210
|
+
message.targetId = 0;
|
|
209
211
|
message.job = "";
|
|
210
212
|
message.minimumGrade = 0;
|
|
211
213
|
message.access = 0;
|
|
@@ -218,14 +220,14 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
|
218
220
|
while (reader.pos < end) {
|
|
219
221
|
let [fieldNo, wireType] = reader.tag();
|
|
220
222
|
switch (fieldNo) {
|
|
221
|
-
case /* uint64 id
|
|
222
|
-
message.id = reader.uint64().
|
|
223
|
+
case /* uint64 id */ 1:
|
|
224
|
+
message.id = reader.uint64().toNumber();
|
|
223
225
|
break;
|
|
224
226
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
225
227
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
226
228
|
break;
|
|
227
|
-
case /* uint64 target_id
|
|
228
|
-
message.targetId = reader.uint64().
|
|
229
|
+
case /* uint64 target_id */ 3:
|
|
230
|
+
message.targetId = reader.uint64().toNumber();
|
|
229
231
|
break;
|
|
230
232
|
case /* string job */ 4:
|
|
231
233
|
message.job = reader.string();
|
|
@@ -257,14 +259,14 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
|
257
259
|
return message;
|
|
258
260
|
}
|
|
259
261
|
internalBinaryWrite(message: DocumentJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
260
|
-
/* uint64 id = 1
|
|
261
|
-
if (message.id !==
|
|
262
|
+
/* uint64 id = 1; */
|
|
263
|
+
if (message.id !== 0)
|
|
262
264
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
263
265
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
264
266
|
if (message.createdAt)
|
|
265
267
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
266
|
-
/* uint64 target_id = 3
|
|
267
|
-
if (message.targetId !==
|
|
268
|
+
/* uint64 target_id = 3; */
|
|
269
|
+
if (message.targetId !== 0)
|
|
268
270
|
writer.tag(3, WireType.Varint).uint64(message.targetId);
|
|
269
271
|
/* string job = 4; */
|
|
270
272
|
if (message.job !== "")
|
|
@@ -298,9 +300,9 @@ export const DocumentJobAccess = new DocumentJobAccess$Type();
|
|
|
298
300
|
class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
299
301
|
constructor() {
|
|
300
302
|
super("resources.documents.DocumentUserAccess", [
|
|
301
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
303
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
302
304
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
303
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
305
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
304
306
|
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
305
307
|
{ no: 5, name: "user", kind: "message", T: () => UserShort },
|
|
306
308
|
{ no: 6, name: "access", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
@@ -309,8 +311,8 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
|
309
311
|
}
|
|
310
312
|
create(value?: PartialMessage<DocumentUserAccess>): DocumentUserAccess {
|
|
311
313
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
312
|
-
message.id =
|
|
313
|
-
message.targetId =
|
|
314
|
+
message.id = 0;
|
|
315
|
+
message.targetId = 0;
|
|
314
316
|
message.userId = 0;
|
|
315
317
|
message.access = 0;
|
|
316
318
|
if (value !== undefined)
|
|
@@ -322,14 +324,14 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
|
322
324
|
while (reader.pos < end) {
|
|
323
325
|
let [fieldNo, wireType] = reader.tag();
|
|
324
326
|
switch (fieldNo) {
|
|
325
|
-
case /* uint64 id
|
|
326
|
-
message.id = reader.uint64().
|
|
327
|
+
case /* uint64 id */ 1:
|
|
328
|
+
message.id = reader.uint64().toNumber();
|
|
327
329
|
break;
|
|
328
330
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
329
331
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
330
332
|
break;
|
|
331
|
-
case /* uint64 target_id
|
|
332
|
-
message.targetId = reader.uint64().
|
|
333
|
+
case /* uint64 target_id */ 3:
|
|
334
|
+
message.targetId = reader.uint64().toNumber();
|
|
333
335
|
break;
|
|
334
336
|
case /* int32 user_id */ 4:
|
|
335
337
|
message.userId = reader.int32();
|
|
@@ -355,14 +357,14 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
|
355
357
|
return message;
|
|
356
358
|
}
|
|
357
359
|
internalBinaryWrite(message: DocumentUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
358
|
-
/* uint64 id = 1
|
|
359
|
-
if (message.id !==
|
|
360
|
+
/* uint64 id = 1; */
|
|
361
|
+
if (message.id !== 0)
|
|
360
362
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
361
363
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
362
364
|
if (message.createdAt)
|
|
363
365
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
364
|
-
/* uint64 target_id = 3
|
|
365
|
-
if (message.targetId !==
|
|
366
|
+
/* uint64 target_id = 3; */
|
|
367
|
+
if (message.targetId !== 0)
|
|
366
368
|
writer.tag(3, WireType.Varint).uint64(message.targetId);
|
|
367
369
|
/* int32 user_id = 4; */
|
|
368
370
|
if (message.userId !== 0)
|
|
@@ -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/documents/activity.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -20,17 +20,17 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
20
20
|
*/
|
|
21
21
|
export interface DocActivity {
|
|
22
22
|
/**
|
|
23
|
-
* @generated from protobuf field: uint64 id = 1
|
|
23
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
24
24
|
*/
|
|
25
|
-
id:
|
|
25
|
+
id: number;
|
|
26
26
|
/**
|
|
27
27
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
28
28
|
*/
|
|
29
29
|
createdAt?: Timestamp;
|
|
30
30
|
/**
|
|
31
|
-
* @generated from protobuf field: uint64 document_id = 3
|
|
31
|
+
* @generated from protobuf field: uint64 document_id = 3;
|
|
32
32
|
*/
|
|
33
|
-
documentId:
|
|
33
|
+
documentId: number;
|
|
34
34
|
/**
|
|
35
35
|
* @generated from protobuf field: resources.documents.DocActivityType activity_type = 4;
|
|
36
36
|
*/
|
|
@@ -61,6 +61,8 @@ export interface DocActivity {
|
|
|
61
61
|
data?: DocActivityData;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* @dbscanner: json
|
|
65
|
+
*
|
|
64
66
|
* @generated from protobuf message resources.documents.DocActivityData
|
|
65
67
|
*/
|
|
66
68
|
export interface DocActivityData {
|
|
@@ -272,9 +274,9 @@ export enum DocActivityType {
|
|
|
272
274
|
class DocActivity$Type extends MessageType<DocActivity> {
|
|
273
275
|
constructor() {
|
|
274
276
|
super("resources.documents.DocActivity", [
|
|
275
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
277
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
276
278
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
277
|
-
{ no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
279
|
+
{ no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
278
280
|
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
|
|
279
281
|
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
280
282
|
{ no: 6, name: "creator", kind: "message", T: () => UserShort },
|
|
@@ -286,8 +288,8 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
286
288
|
}
|
|
287
289
|
create(value?: PartialMessage<DocActivity>): DocActivity {
|
|
288
290
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
289
|
-
message.id =
|
|
290
|
-
message.documentId =
|
|
291
|
+
message.id = 0;
|
|
292
|
+
message.documentId = 0;
|
|
291
293
|
message.activityType = 0;
|
|
292
294
|
message.creatorJob = "";
|
|
293
295
|
if (value !== undefined)
|
|
@@ -299,14 +301,14 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
299
301
|
while (reader.pos < end) {
|
|
300
302
|
let [fieldNo, wireType] = reader.tag();
|
|
301
303
|
switch (fieldNo) {
|
|
302
|
-
case /* uint64 id
|
|
303
|
-
message.id = reader.uint64().
|
|
304
|
+
case /* uint64 id */ 1:
|
|
305
|
+
message.id = reader.uint64().toNumber();
|
|
304
306
|
break;
|
|
305
307
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
306
308
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
307
309
|
break;
|
|
308
|
-
case /* uint64 document_id
|
|
309
|
-
message.documentId = reader.uint64().
|
|
310
|
+
case /* uint64 document_id */ 3:
|
|
311
|
+
message.documentId = reader.uint64().toNumber();
|
|
310
312
|
break;
|
|
311
313
|
case /* resources.documents.DocActivityType activity_type */ 4:
|
|
312
314
|
message.activityType = reader.int32();
|
|
@@ -341,14 +343,14 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
341
343
|
return message;
|
|
342
344
|
}
|
|
343
345
|
internalBinaryWrite(message: DocActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
344
|
-
/* uint64 id = 1
|
|
345
|
-
if (message.id !==
|
|
346
|
+
/* uint64 id = 1; */
|
|
347
|
+
if (message.id !== 0)
|
|
346
348
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
347
349
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
348
350
|
if (message.createdAt)
|
|
349
351
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
350
|
-
/* uint64 document_id = 3
|
|
351
|
-
if (message.documentId !==
|
|
352
|
+
/* uint64 document_id = 3; */
|
|
353
|
+
if (message.documentId !== 0)
|
|
352
354
|
writer.tag(3, WireType.Varint).uint64(message.documentId);
|
|
353
355
|
/* resources.documents.DocActivityType activity_type = 4; */
|
|
354
356
|
if (message.activityType !== 0)
|
|
@@ -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/documents/category.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -15,9 +15,9 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
15
15
|
*/
|
|
16
16
|
export interface Category {
|
|
17
17
|
/**
|
|
18
|
-
* @generated from protobuf field: uint64 id = 1
|
|
18
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
19
19
|
*/
|
|
20
|
-
id:
|
|
20
|
+
id: number;
|
|
21
21
|
/**
|
|
22
22
|
* @sanitize
|
|
23
23
|
*
|
|
@@ -51,7 +51,7 @@ export interface Category {
|
|
|
51
51
|
class Category$Type extends MessageType<Category> {
|
|
52
52
|
constructor() {
|
|
53
53
|
super("resources.documents.Category", [
|
|
54
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
54
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
55
55
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "128" } } } },
|
|
56
56
|
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
57
57
|
{ no: 4, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
@@ -61,7 +61,7 @@ class Category$Type extends MessageType<Category> {
|
|
|
61
61
|
}
|
|
62
62
|
create(value?: PartialMessage<Category>): Category {
|
|
63
63
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
64
|
-
message.id =
|
|
64
|
+
message.id = 0;
|
|
65
65
|
message.name = "";
|
|
66
66
|
if (value !== undefined)
|
|
67
67
|
reflectionMergePartial<Category>(this, message, value);
|
|
@@ -72,8 +72,8 @@ class Category$Type extends MessageType<Category> {
|
|
|
72
72
|
while (reader.pos < end) {
|
|
73
73
|
let [fieldNo, wireType] = reader.tag();
|
|
74
74
|
switch (fieldNo) {
|
|
75
|
-
case /* uint64 id
|
|
76
|
-
message.id = reader.uint64().
|
|
75
|
+
case /* uint64 id */ 1:
|
|
76
|
+
message.id = reader.uint64().toNumber();
|
|
77
77
|
break;
|
|
78
78
|
case /* string name */ 2:
|
|
79
79
|
message.name = reader.string();
|
|
@@ -102,8 +102,8 @@ class Category$Type extends MessageType<Category> {
|
|
|
102
102
|
return message;
|
|
103
103
|
}
|
|
104
104
|
internalBinaryWrite(message: Category, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
105
|
-
/* uint64 id = 1
|
|
106
|
-
if (message.id !==
|
|
105
|
+
/* uint64 id = 1; */
|
|
106
|
+
if (message.id !== 0)
|
|
107
107
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
108
108
|
/* string name = 2; */
|
|
109
109
|
if (message.name !== "")
|
|
@@ -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/documents/comment.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -18,9 +18,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
18
18
|
*/
|
|
19
19
|
export interface Comment {
|
|
20
20
|
/**
|
|
21
|
-
* @generated from protobuf field: uint64 id = 1
|
|
21
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
22
22
|
*/
|
|
23
|
-
id:
|
|
23
|
+
id: number; // @gotags: alias:"id"
|
|
24
24
|
/**
|
|
25
25
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
26
26
|
*/
|
|
@@ -34,9 +34,9 @@ export interface Comment {
|
|
|
34
34
|
*/
|
|
35
35
|
deletedAt?: Timestamp;
|
|
36
36
|
/**
|
|
37
|
-
* @generated from protobuf field: uint64 document_id = 5
|
|
37
|
+
* @generated from protobuf field: uint64 document_id = 5;
|
|
38
38
|
*/
|
|
39
|
-
documentId:
|
|
39
|
+
documentId: number;
|
|
40
40
|
/**
|
|
41
41
|
* @generated from protobuf field: resources.common.content.Content content = 6;
|
|
42
42
|
*/
|
|
@@ -58,11 +58,11 @@ export interface Comment {
|
|
|
58
58
|
class Comment$Type extends MessageType<Comment> {
|
|
59
59
|
constructor() {
|
|
60
60
|
super("resources.documents.Comment", [
|
|
61
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
61
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
62
62
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
63
63
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
64
64
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
65
|
-
{ no: 5, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
65
|
+
{ no: 5, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
66
66
|
{ no: 6, name: "content", kind: "message", T: () => Content },
|
|
67
67
|
{ no: 7, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
68
68
|
{ no: 8, name: "creator", kind: "message", T: () => UserShort },
|
|
@@ -71,8 +71,8 @@ class Comment$Type extends MessageType<Comment> {
|
|
|
71
71
|
}
|
|
72
72
|
create(value?: PartialMessage<Comment>): Comment {
|
|
73
73
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
74
|
-
message.id =
|
|
75
|
-
message.documentId =
|
|
74
|
+
message.id = 0;
|
|
75
|
+
message.documentId = 0;
|
|
76
76
|
message.creatorJob = "";
|
|
77
77
|
if (value !== undefined)
|
|
78
78
|
reflectionMergePartial<Comment>(this, message, value);
|
|
@@ -83,8 +83,8 @@ class Comment$Type extends MessageType<Comment> {
|
|
|
83
83
|
while (reader.pos < end) {
|
|
84
84
|
let [fieldNo, wireType] = reader.tag();
|
|
85
85
|
switch (fieldNo) {
|
|
86
|
-
case /* uint64 id
|
|
87
|
-
message.id = reader.uint64().
|
|
86
|
+
case /* uint64 id */ 1:
|
|
87
|
+
message.id = reader.uint64().toNumber();
|
|
88
88
|
break;
|
|
89
89
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
90
90
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -95,8 +95,8 @@ class Comment$Type extends MessageType<Comment> {
|
|
|
95
95
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
96
96
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
97
97
|
break;
|
|
98
|
-
case /* uint64 document_id
|
|
99
|
-
message.documentId = reader.uint64().
|
|
98
|
+
case /* uint64 document_id */ 5:
|
|
99
|
+
message.documentId = reader.uint64().toNumber();
|
|
100
100
|
break;
|
|
101
101
|
case /* resources.common.content.Content content */ 6:
|
|
102
102
|
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
@@ -122,8 +122,8 @@ class Comment$Type extends MessageType<Comment> {
|
|
|
122
122
|
return message;
|
|
123
123
|
}
|
|
124
124
|
internalBinaryWrite(message: Comment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
125
|
-
/* uint64 id = 1
|
|
126
|
-
if (message.id !==
|
|
125
|
+
/* uint64 id = 1; */
|
|
126
|
+
if (message.id !== 0)
|
|
127
127
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
128
128
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
129
129
|
if (message.createdAt)
|
|
@@ -134,8 +134,8 @@ class Comment$Type extends MessageType<Comment> {
|
|
|
134
134
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
135
135
|
if (message.deletedAt)
|
|
136
136
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
137
|
-
/* uint64 document_id = 5
|
|
138
|
-
if (message.documentId !==
|
|
137
|
+
/* uint64 document_id = 5; */
|
|
138
|
+
if (message.documentId !== 0)
|
|
139
139
|
writer.tag(5, WireType.Varint).uint64(message.documentId);
|
|
140
140
|
/* resources.common.content.Content content = 6; */
|
|
141
141
|
if (message.content)
|