@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
|
@@ -19,9 +19,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
19
19
|
*/
|
|
20
20
|
export interface Unit {
|
|
21
21
|
/**
|
|
22
|
-
* @generated from protobuf field: uint64 id = 1
|
|
22
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
23
23
|
*/
|
|
24
|
-
id:
|
|
24
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
25
25
|
/**
|
|
26
26
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
27
27
|
*/
|
|
@@ -84,9 +84,9 @@ export interface Unit {
|
|
|
84
84
|
*/
|
|
85
85
|
export interface UnitAssignments {
|
|
86
86
|
/**
|
|
87
|
-
* @generated from protobuf field: uint64 unit_id = 1
|
|
87
|
+
* @generated from protobuf field: uint64 unit_id = 1;
|
|
88
88
|
*/
|
|
89
|
-
unitId:
|
|
89
|
+
unitId: number;
|
|
90
90
|
/**
|
|
91
91
|
* @generated from protobuf field: string job = 2;
|
|
92
92
|
*/
|
|
@@ -101,9 +101,9 @@ export interface UnitAssignments {
|
|
|
101
101
|
*/
|
|
102
102
|
export interface UnitAssignment {
|
|
103
103
|
/**
|
|
104
|
-
* @generated from protobuf field: uint64 unit_id = 1
|
|
104
|
+
* @generated from protobuf field: uint64 unit_id = 1;
|
|
105
105
|
*/
|
|
106
|
-
unitId:
|
|
106
|
+
unitId: number; // @gotags: sql:"primary_key" alias:"unit_id"
|
|
107
107
|
/**
|
|
108
108
|
* @generated from protobuf field: int32 user_id = 2;
|
|
109
109
|
*/
|
|
@@ -118,17 +118,17 @@ export interface UnitAssignment {
|
|
|
118
118
|
*/
|
|
119
119
|
export interface UnitStatus {
|
|
120
120
|
/**
|
|
121
|
-
* @generated from protobuf field: uint64 id = 1
|
|
121
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
122
122
|
*/
|
|
123
|
-
id:
|
|
123
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
124
124
|
/**
|
|
125
125
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
126
126
|
*/
|
|
127
127
|
createdAt?: Timestamp;
|
|
128
128
|
/**
|
|
129
|
-
* @generated from protobuf field: uint64 unit_id = 3
|
|
129
|
+
* @generated from protobuf field: uint64 unit_id = 3;
|
|
130
130
|
*/
|
|
131
|
-
unitId:
|
|
131
|
+
unitId: number;
|
|
132
132
|
/**
|
|
133
133
|
* @generated from protobuf field: optional resources.centrum.Unit unit = 4;
|
|
134
134
|
*/
|
|
@@ -221,7 +221,7 @@ export enum StatusUnit {
|
|
|
221
221
|
class Unit$Type extends MessageType<Unit> {
|
|
222
222
|
constructor() {
|
|
223
223
|
super("resources.centrum.Unit", [
|
|
224
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
224
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
225
225
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
226
226
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
227
227
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
@@ -238,7 +238,7 @@ class Unit$Type extends MessageType<Unit> {
|
|
|
238
238
|
}
|
|
239
239
|
create(value?: PartialMessage<Unit>): Unit {
|
|
240
240
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
241
|
-
message.id =
|
|
241
|
+
message.id = 0;
|
|
242
242
|
message.job = "";
|
|
243
243
|
message.name = "";
|
|
244
244
|
message.initials = "";
|
|
@@ -253,8 +253,8 @@ class Unit$Type extends MessageType<Unit> {
|
|
|
253
253
|
while (reader.pos < end) {
|
|
254
254
|
let [fieldNo, wireType] = reader.tag();
|
|
255
255
|
switch (fieldNo) {
|
|
256
|
-
case /* uint64 id
|
|
257
|
-
message.id = reader.uint64().
|
|
256
|
+
case /* uint64 id */ 1:
|
|
257
|
+
message.id = reader.uint64().toNumber();
|
|
258
258
|
break;
|
|
259
259
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
260
260
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -304,8 +304,8 @@ class Unit$Type extends MessageType<Unit> {
|
|
|
304
304
|
return message;
|
|
305
305
|
}
|
|
306
306
|
internalBinaryWrite(message: Unit, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
307
|
-
/* uint64 id = 1
|
|
308
|
-
if (message.id !==
|
|
307
|
+
/* uint64 id = 1; */
|
|
308
|
+
if (message.id !== 0)
|
|
309
309
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
310
310
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
311
311
|
if (message.createdAt)
|
|
@@ -357,14 +357,14 @@ export const Unit = new Unit$Type();
|
|
|
357
357
|
class UnitAssignments$Type extends MessageType<UnitAssignments> {
|
|
358
358
|
constructor() {
|
|
359
359
|
super("resources.centrum.UnitAssignments", [
|
|
360
|
-
{ no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
360
|
+
{ no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
361
361
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
362
362
|
{ no: 3, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => UnitAssignment }
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
create(value?: PartialMessage<UnitAssignments>): UnitAssignments {
|
|
366
366
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
367
|
-
message.unitId =
|
|
367
|
+
message.unitId = 0;
|
|
368
368
|
message.job = "";
|
|
369
369
|
message.users = [];
|
|
370
370
|
if (value !== undefined)
|
|
@@ -376,8 +376,8 @@ class UnitAssignments$Type extends MessageType<UnitAssignments> {
|
|
|
376
376
|
while (reader.pos < end) {
|
|
377
377
|
let [fieldNo, wireType] = reader.tag();
|
|
378
378
|
switch (fieldNo) {
|
|
379
|
-
case /* uint64 unit_id
|
|
380
|
-
message.unitId = reader.uint64().
|
|
379
|
+
case /* uint64 unit_id */ 1:
|
|
380
|
+
message.unitId = reader.uint64().toNumber();
|
|
381
381
|
break;
|
|
382
382
|
case /* string job */ 2:
|
|
383
383
|
message.job = reader.string();
|
|
@@ -397,8 +397,8 @@ class UnitAssignments$Type extends MessageType<UnitAssignments> {
|
|
|
397
397
|
return message;
|
|
398
398
|
}
|
|
399
399
|
internalBinaryWrite(message: UnitAssignments, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
400
|
-
/* uint64 unit_id = 1
|
|
401
|
-
if (message.unitId !==
|
|
400
|
+
/* uint64 unit_id = 1; */
|
|
401
|
+
if (message.unitId !== 0)
|
|
402
402
|
writer.tag(1, WireType.Varint).uint64(message.unitId);
|
|
403
403
|
/* string job = 2; */
|
|
404
404
|
if (message.job !== "")
|
|
@@ -420,14 +420,14 @@ export const UnitAssignments = new UnitAssignments$Type();
|
|
|
420
420
|
class UnitAssignment$Type extends MessageType<UnitAssignment> {
|
|
421
421
|
constructor() {
|
|
422
422
|
super("resources.centrum.UnitAssignment", [
|
|
423
|
-
{ no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
423
|
+
{ no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
424
424
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
425
425
|
{ no: 3, name: "user", kind: "message", T: () => Colleague }
|
|
426
426
|
]);
|
|
427
427
|
}
|
|
428
428
|
create(value?: PartialMessage<UnitAssignment>): UnitAssignment {
|
|
429
429
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
430
|
-
message.unitId =
|
|
430
|
+
message.unitId = 0;
|
|
431
431
|
message.userId = 0;
|
|
432
432
|
if (value !== undefined)
|
|
433
433
|
reflectionMergePartial<UnitAssignment>(this, message, value);
|
|
@@ -438,8 +438,8 @@ class UnitAssignment$Type extends MessageType<UnitAssignment> {
|
|
|
438
438
|
while (reader.pos < end) {
|
|
439
439
|
let [fieldNo, wireType] = reader.tag();
|
|
440
440
|
switch (fieldNo) {
|
|
441
|
-
case /* uint64 unit_id
|
|
442
|
-
message.unitId = reader.uint64().
|
|
441
|
+
case /* uint64 unit_id */ 1:
|
|
442
|
+
message.unitId = reader.uint64().toNumber();
|
|
443
443
|
break;
|
|
444
444
|
case /* int32 user_id */ 2:
|
|
445
445
|
message.userId = reader.int32();
|
|
@@ -459,8 +459,8 @@ class UnitAssignment$Type extends MessageType<UnitAssignment> {
|
|
|
459
459
|
return message;
|
|
460
460
|
}
|
|
461
461
|
internalBinaryWrite(message: UnitAssignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
462
|
-
/* uint64 unit_id = 1
|
|
463
|
-
if (message.unitId !==
|
|
462
|
+
/* uint64 unit_id = 1; */
|
|
463
|
+
if (message.unitId !== 0)
|
|
464
464
|
writer.tag(1, WireType.Varint).uint64(message.unitId);
|
|
465
465
|
/* int32 user_id = 2; */
|
|
466
466
|
if (message.userId !== 0)
|
|
@@ -482,9 +482,9 @@ export const UnitAssignment = new UnitAssignment$Type();
|
|
|
482
482
|
class UnitStatus$Type extends MessageType<UnitStatus> {
|
|
483
483
|
constructor() {
|
|
484
484
|
super("resources.centrum.UnitStatus", [
|
|
485
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
485
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
486
486
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
487
|
-
{ no: 3, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
487
|
+
{ no: 3, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
488
488
|
{ no: 4, name: "unit", kind: "message", T: () => Unit },
|
|
489
489
|
{ no: 5, name: "status", kind: "enum", T: () => ["resources.centrum.StatusUnit", StatusUnit, "STATUS_UNIT_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
490
490
|
{ no: 6, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
@@ -500,8 +500,8 @@ class UnitStatus$Type extends MessageType<UnitStatus> {
|
|
|
500
500
|
}
|
|
501
501
|
create(value?: PartialMessage<UnitStatus>): UnitStatus {
|
|
502
502
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
503
|
-
message.id =
|
|
504
|
-
message.unitId =
|
|
503
|
+
message.id = 0;
|
|
504
|
+
message.unitId = 0;
|
|
505
505
|
message.status = 0;
|
|
506
506
|
if (value !== undefined)
|
|
507
507
|
reflectionMergePartial<UnitStatus>(this, message, value);
|
|
@@ -512,14 +512,14 @@ class UnitStatus$Type extends MessageType<UnitStatus> {
|
|
|
512
512
|
while (reader.pos < end) {
|
|
513
513
|
let [fieldNo, wireType] = reader.tag();
|
|
514
514
|
switch (fieldNo) {
|
|
515
|
-
case /* uint64 id
|
|
516
|
-
message.id = reader.uint64().
|
|
515
|
+
case /* uint64 id */ 1:
|
|
516
|
+
message.id = reader.uint64().toNumber();
|
|
517
517
|
break;
|
|
518
518
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
519
519
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
520
520
|
break;
|
|
521
|
-
case /* uint64 unit_id
|
|
522
|
-
message.unitId = reader.uint64().
|
|
521
|
+
case /* uint64 unit_id */ 3:
|
|
522
|
+
message.unitId = reader.uint64().toNumber();
|
|
523
523
|
break;
|
|
524
524
|
case /* optional resources.centrum.Unit unit */ 4:
|
|
525
525
|
message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
|
|
@@ -566,14 +566,14 @@ class UnitStatus$Type extends MessageType<UnitStatus> {
|
|
|
566
566
|
return message;
|
|
567
567
|
}
|
|
568
568
|
internalBinaryWrite(message: UnitStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
569
|
-
/* uint64 id = 1
|
|
570
|
-
if (message.id !==
|
|
569
|
+
/* uint64 id = 1; */
|
|
570
|
+
if (message.id !== 0)
|
|
571
571
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
572
572
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
573
573
|
if (message.createdAt)
|
|
574
574
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
575
|
-
/* uint64 unit_id = 3
|
|
576
|
-
if (message.unitId !==
|
|
575
|
+
/* uint64 unit_id = 3; */
|
|
576
|
+
if (message.unitId !== 0)
|
|
577
577
|
writer.tag(3, WireType.Varint).uint64(message.unitId);
|
|
578
578
|
/* optional resources.centrum.Unit unit = 4; */
|
|
579
579
|
if (message.unit)
|
|
@@ -30,17 +30,17 @@ export interface DocumentAccess {
|
|
|
30
30
|
*/
|
|
31
31
|
export interface DocumentJobAccess {
|
|
32
32
|
/**
|
|
33
|
-
* @generated from protobuf field: uint64 id = 1
|
|
33
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
34
34
|
*/
|
|
35
|
-
id:
|
|
35
|
+
id: number;
|
|
36
36
|
/**
|
|
37
37
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
38
38
|
*/
|
|
39
39
|
createdAt?: Timestamp;
|
|
40
40
|
/**
|
|
41
|
-
* @generated from protobuf field: uint64 target_id = 3
|
|
41
|
+
* @generated from protobuf field: uint64 target_id = 3;
|
|
42
42
|
*/
|
|
43
|
-
targetId:
|
|
43
|
+
targetId: number; // @gotags: alias:"document_id"
|
|
44
44
|
/**
|
|
45
45
|
* @generated from protobuf field: string job = 4;
|
|
46
46
|
*/
|
|
@@ -71,17 +71,17 @@ export interface DocumentJobAccess {
|
|
|
71
71
|
*/
|
|
72
72
|
export interface DocumentUserAccess {
|
|
73
73
|
/**
|
|
74
|
-
* @generated from protobuf field: uint64 id = 1
|
|
74
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
75
75
|
*/
|
|
76
|
-
id:
|
|
76
|
+
id: number;
|
|
77
77
|
/**
|
|
78
78
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
79
79
|
*/
|
|
80
80
|
createdAt?: Timestamp;
|
|
81
81
|
/**
|
|
82
|
-
* @generated from protobuf field: uint64 target_id = 3
|
|
82
|
+
* @generated from protobuf field: uint64 target_id = 3;
|
|
83
83
|
*/
|
|
84
|
-
targetId:
|
|
84
|
+
targetId: number; // @gotags: alias:"document_id"
|
|
85
85
|
/**
|
|
86
86
|
* @generated from protobuf field: int32 user_id = 4;
|
|
87
87
|
*/
|
|
@@ -191,9 +191,9 @@ export const DocumentAccess = new DocumentAccess$Type();
|
|
|
191
191
|
class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
192
192
|
constructor() {
|
|
193
193
|
super("resources.documents.DocumentJobAccess", [
|
|
194
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
194
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
195
195
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
196
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
196
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
197
197
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
198
198
|
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
199
199
|
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
@@ -204,8 +204,8 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
|
204
204
|
}
|
|
205
205
|
create(value?: PartialMessage<DocumentJobAccess>): DocumentJobAccess {
|
|
206
206
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
207
|
-
message.id =
|
|
208
|
-
message.targetId =
|
|
207
|
+
message.id = 0;
|
|
208
|
+
message.targetId = 0;
|
|
209
209
|
message.job = "";
|
|
210
210
|
message.minimumGrade = 0;
|
|
211
211
|
message.access = 0;
|
|
@@ -218,14 +218,14 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
|
218
218
|
while (reader.pos < end) {
|
|
219
219
|
let [fieldNo, wireType] = reader.tag();
|
|
220
220
|
switch (fieldNo) {
|
|
221
|
-
case /* uint64 id
|
|
222
|
-
message.id = reader.uint64().
|
|
221
|
+
case /* uint64 id */ 1:
|
|
222
|
+
message.id = reader.uint64().toNumber();
|
|
223
223
|
break;
|
|
224
224
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
225
225
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
226
226
|
break;
|
|
227
|
-
case /* uint64 target_id
|
|
228
|
-
message.targetId = reader.uint64().
|
|
227
|
+
case /* uint64 target_id */ 3:
|
|
228
|
+
message.targetId = reader.uint64().toNumber();
|
|
229
229
|
break;
|
|
230
230
|
case /* string job */ 4:
|
|
231
231
|
message.job = reader.string();
|
|
@@ -257,14 +257,14 @@ class DocumentJobAccess$Type extends MessageType<DocumentJobAccess> {
|
|
|
257
257
|
return message;
|
|
258
258
|
}
|
|
259
259
|
internalBinaryWrite(message: DocumentJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
260
|
-
/* uint64 id = 1
|
|
261
|
-
if (message.id !==
|
|
260
|
+
/* uint64 id = 1; */
|
|
261
|
+
if (message.id !== 0)
|
|
262
262
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
263
263
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
264
264
|
if (message.createdAt)
|
|
265
265
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
266
|
-
/* uint64 target_id = 3
|
|
267
|
-
if (message.targetId !==
|
|
266
|
+
/* uint64 target_id = 3; */
|
|
267
|
+
if (message.targetId !== 0)
|
|
268
268
|
writer.tag(3, WireType.Varint).uint64(message.targetId);
|
|
269
269
|
/* string job = 4; */
|
|
270
270
|
if (message.job !== "")
|
|
@@ -298,9 +298,9 @@ export const DocumentJobAccess = new DocumentJobAccess$Type();
|
|
|
298
298
|
class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
299
299
|
constructor() {
|
|
300
300
|
super("resources.documents.DocumentUserAccess", [
|
|
301
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
301
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
302
302
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
303
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
303
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
304
304
|
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
305
305
|
{ no: 5, name: "user", kind: "message", T: () => UserShort },
|
|
306
306
|
{ no: 6, name: "access", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
@@ -309,8 +309,8 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
|
309
309
|
}
|
|
310
310
|
create(value?: PartialMessage<DocumentUserAccess>): DocumentUserAccess {
|
|
311
311
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
312
|
-
message.id =
|
|
313
|
-
message.targetId =
|
|
312
|
+
message.id = 0;
|
|
313
|
+
message.targetId = 0;
|
|
314
314
|
message.userId = 0;
|
|
315
315
|
message.access = 0;
|
|
316
316
|
if (value !== undefined)
|
|
@@ -322,14 +322,14 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
|
322
322
|
while (reader.pos < end) {
|
|
323
323
|
let [fieldNo, wireType] = reader.tag();
|
|
324
324
|
switch (fieldNo) {
|
|
325
|
-
case /* uint64 id
|
|
326
|
-
message.id = reader.uint64().
|
|
325
|
+
case /* uint64 id */ 1:
|
|
326
|
+
message.id = reader.uint64().toNumber();
|
|
327
327
|
break;
|
|
328
328
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
329
329
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
330
330
|
break;
|
|
331
|
-
case /* uint64 target_id
|
|
332
|
-
message.targetId = reader.uint64().
|
|
331
|
+
case /* uint64 target_id */ 3:
|
|
332
|
+
message.targetId = reader.uint64().toNumber();
|
|
333
333
|
break;
|
|
334
334
|
case /* int32 user_id */ 4:
|
|
335
335
|
message.userId = reader.int32();
|
|
@@ -355,14 +355,14 @@ class DocumentUserAccess$Type extends MessageType<DocumentUserAccess> {
|
|
|
355
355
|
return message;
|
|
356
356
|
}
|
|
357
357
|
internalBinaryWrite(message: DocumentUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
358
|
-
/* uint64 id = 1
|
|
359
|
-
if (message.id !==
|
|
358
|
+
/* uint64 id = 1; */
|
|
359
|
+
if (message.id !== 0)
|
|
360
360
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
361
361
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
362
362
|
if (message.createdAt)
|
|
363
363
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
364
|
-
/* uint64 target_id = 3
|
|
365
|
-
if (message.targetId !==
|
|
364
|
+
/* uint64 target_id = 3; */
|
|
365
|
+
if (message.targetId !== 0)
|
|
366
366
|
writer.tag(3, WireType.Varint).uint64(message.targetId);
|
|
367
367
|
/* int32 user_id = 4; */
|
|
368
368
|
if (message.userId !== 0)
|
|
@@ -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
|
*/
|
|
@@ -272,9 +272,9 @@ export enum DocActivityType {
|
|
|
272
272
|
class DocActivity$Type extends MessageType<DocActivity> {
|
|
273
273
|
constructor() {
|
|
274
274
|
super("resources.documents.DocActivity", [
|
|
275
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
275
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
276
276
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
277
|
-
{ no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
277
|
+
{ no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
278
278
|
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
|
|
279
279
|
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
280
280
|
{ no: 6, name: "creator", kind: "message", T: () => UserShort },
|
|
@@ -286,8 +286,8 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
286
286
|
}
|
|
287
287
|
create(value?: PartialMessage<DocActivity>): DocActivity {
|
|
288
288
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
289
|
-
message.id =
|
|
290
|
-
message.documentId =
|
|
289
|
+
message.id = 0;
|
|
290
|
+
message.documentId = 0;
|
|
291
291
|
message.activityType = 0;
|
|
292
292
|
message.creatorJob = "";
|
|
293
293
|
if (value !== undefined)
|
|
@@ -299,14 +299,14 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
299
299
|
while (reader.pos < end) {
|
|
300
300
|
let [fieldNo, wireType] = reader.tag();
|
|
301
301
|
switch (fieldNo) {
|
|
302
|
-
case /* uint64 id
|
|
303
|
-
message.id = reader.uint64().
|
|
302
|
+
case /* uint64 id */ 1:
|
|
303
|
+
message.id = reader.uint64().toNumber();
|
|
304
304
|
break;
|
|
305
305
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
306
306
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
307
307
|
break;
|
|
308
|
-
case /* uint64 document_id
|
|
309
|
-
message.documentId = reader.uint64().
|
|
308
|
+
case /* uint64 document_id */ 3:
|
|
309
|
+
message.documentId = reader.uint64().toNumber();
|
|
310
310
|
break;
|
|
311
311
|
case /* resources.documents.DocActivityType activity_type */ 4:
|
|
312
312
|
message.activityType = reader.int32();
|
|
@@ -341,14 +341,14 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
341
341
|
return message;
|
|
342
342
|
}
|
|
343
343
|
internalBinaryWrite(message: DocActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
344
|
-
/* uint64 id = 1
|
|
345
|
-
if (message.id !==
|
|
344
|
+
/* uint64 id = 1; */
|
|
345
|
+
if (message.id !== 0)
|
|
346
346
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
347
347
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
348
348
|
if (message.createdAt)
|
|
349
349
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
350
|
-
/* uint64 document_id = 3
|
|
351
|
-
if (message.documentId !==
|
|
350
|
+
/* uint64 document_id = 3; */
|
|
351
|
+
if (message.documentId !== 0)
|
|
352
352
|
writer.tag(3, WireType.Varint).uint64(message.documentId);
|
|
353
353
|
/* resources.documents.DocActivityType activity_type = 4; */
|
|
354
354
|
if (message.activityType !== 0)
|
|
@@ -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 !== "")
|
|
@@ -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)
|