@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/documents.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -21,9 +21,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
21
21
|
*/
|
|
22
22
|
export interface Document {
|
|
23
23
|
/**
|
|
24
|
-
* @generated from protobuf field: uint64 id = 1
|
|
24
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
25
25
|
*/
|
|
26
|
-
id:
|
|
26
|
+
id: number;
|
|
27
27
|
/**
|
|
28
28
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
29
29
|
*/
|
|
@@ -37,9 +37,9 @@ export interface Document {
|
|
|
37
37
|
*/
|
|
38
38
|
deletedAt?: Timestamp;
|
|
39
39
|
/**
|
|
40
|
-
* @generated from protobuf field: optional uint64 category_id = 5
|
|
40
|
+
* @generated from protobuf field: optional uint64 category_id = 5;
|
|
41
41
|
*/
|
|
42
|
-
categoryId?:
|
|
42
|
+
categoryId?: number;
|
|
43
43
|
/**
|
|
44
44
|
* @generated from protobuf field: optional resources.documents.Category category = 6;
|
|
45
45
|
*/
|
|
@@ -95,9 +95,9 @@ export interface Document {
|
|
|
95
95
|
*/
|
|
96
96
|
public: boolean;
|
|
97
97
|
/**
|
|
98
|
-
* @generated from protobuf field: optional uint64 template_id = 18
|
|
98
|
+
* @generated from protobuf field: optional uint64 template_id = 18;
|
|
99
99
|
*/
|
|
100
|
-
templateId?:
|
|
100
|
+
templateId?: number;
|
|
101
101
|
/**
|
|
102
102
|
* @generated from protobuf field: bool pinned = 19;
|
|
103
103
|
*/
|
|
@@ -116,9 +116,9 @@ export interface Document {
|
|
|
116
116
|
*/
|
|
117
117
|
export interface DocumentShort {
|
|
118
118
|
/**
|
|
119
|
-
* @generated from protobuf field: uint64 id = 1
|
|
119
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
120
120
|
*/
|
|
121
|
-
id:
|
|
121
|
+
id: number;
|
|
122
122
|
/**
|
|
123
123
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
124
124
|
*/
|
|
@@ -132,9 +132,9 @@ export interface DocumentShort {
|
|
|
132
132
|
*/
|
|
133
133
|
deletedAt?: Timestamp;
|
|
134
134
|
/**
|
|
135
|
-
* @generated from protobuf field: optional uint64 category_id = 5
|
|
135
|
+
* @generated from protobuf field: optional uint64 category_id = 5;
|
|
136
136
|
*/
|
|
137
|
-
categoryId?:
|
|
137
|
+
categoryId?: number;
|
|
138
138
|
/**
|
|
139
139
|
* @generated from protobuf field: optional resources.documents.Category category = 6;
|
|
140
140
|
*/
|
|
@@ -199,17 +199,17 @@ export interface DocumentShort {
|
|
|
199
199
|
*/
|
|
200
200
|
export interface DocumentReference {
|
|
201
201
|
/**
|
|
202
|
-
* @generated from protobuf field: optional uint64 id = 1
|
|
202
|
+
* @generated from protobuf field: optional uint64 id = 1;
|
|
203
203
|
*/
|
|
204
|
-
id?:
|
|
204
|
+
id?: number;
|
|
205
205
|
/**
|
|
206
206
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
207
207
|
*/
|
|
208
208
|
createdAt?: Timestamp;
|
|
209
209
|
/**
|
|
210
|
-
* @generated from protobuf field: uint64 source_document_id = 3
|
|
210
|
+
* @generated from protobuf field: uint64 source_document_id = 3;
|
|
211
211
|
*/
|
|
212
|
-
sourceDocumentId:
|
|
212
|
+
sourceDocumentId: number; // @gotags: alias:"source_document_id"
|
|
213
213
|
/**
|
|
214
214
|
* @generated from protobuf field: optional resources.documents.DocumentShort source_document = 4;
|
|
215
215
|
*/
|
|
@@ -219,9 +219,9 @@ export interface DocumentReference {
|
|
|
219
219
|
*/
|
|
220
220
|
reference: DocReference; // @gotags: alias:"reference"
|
|
221
221
|
/**
|
|
222
|
-
* @generated from protobuf field: uint64 target_document_id = 6
|
|
222
|
+
* @generated from protobuf field: uint64 target_document_id = 6;
|
|
223
223
|
*/
|
|
224
|
-
targetDocumentId:
|
|
224
|
+
targetDocumentId: number; // @gotags: alias:"target_document_id"
|
|
225
225
|
/**
|
|
226
226
|
* @generated from protobuf field: optional resources.documents.DocumentShort target_document = 7;
|
|
227
227
|
*/
|
|
@@ -240,17 +240,17 @@ export interface DocumentReference {
|
|
|
240
240
|
*/
|
|
241
241
|
export interface DocumentRelation {
|
|
242
242
|
/**
|
|
243
|
-
* @generated from protobuf field: optional uint64 id = 1
|
|
243
|
+
* @generated from protobuf field: optional uint64 id = 1;
|
|
244
244
|
*/
|
|
245
|
-
id?:
|
|
245
|
+
id?: number;
|
|
246
246
|
/**
|
|
247
247
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
248
248
|
*/
|
|
249
249
|
createdAt?: Timestamp;
|
|
250
250
|
/**
|
|
251
|
-
* @generated from protobuf field: uint64 document_id = 3
|
|
251
|
+
* @generated from protobuf field: uint64 document_id = 3;
|
|
252
252
|
*/
|
|
253
|
-
documentId:
|
|
253
|
+
documentId: number;
|
|
254
254
|
/**
|
|
255
255
|
* @generated from protobuf field: optional resources.documents.DocumentShort document = 4;
|
|
256
256
|
*/
|
|
@@ -281,9 +281,9 @@ export interface DocumentRelation {
|
|
|
281
281
|
*/
|
|
282
282
|
export interface WorkflowState {
|
|
283
283
|
/**
|
|
284
|
-
* @generated from protobuf field: uint64 document_id = 1
|
|
284
|
+
* @generated from protobuf field: uint64 document_id = 1;
|
|
285
285
|
*/
|
|
286
|
-
documentId:
|
|
286
|
+
documentId: number;
|
|
287
287
|
/**
|
|
288
288
|
* @generated from protobuf field: optional resources.timestamp.Timestamp next_reminder_time = 2;
|
|
289
289
|
*/
|
|
@@ -310,9 +310,9 @@ export interface WorkflowState {
|
|
|
310
310
|
*/
|
|
311
311
|
export interface WorkflowUserState {
|
|
312
312
|
/**
|
|
313
|
-
* @generated from protobuf field: uint64 document_id = 1
|
|
313
|
+
* @generated from protobuf field: uint64 document_id = 1;
|
|
314
314
|
*/
|
|
315
|
-
documentId:
|
|
315
|
+
documentId: number;
|
|
316
316
|
/**
|
|
317
317
|
* @generated from protobuf field: int32 user_id = 2;
|
|
318
318
|
*/
|
|
@@ -384,13 +384,13 @@ export enum DocRelation {
|
|
|
384
384
|
class Document$Type extends MessageType<Document> {
|
|
385
385
|
constructor() {
|
|
386
386
|
super("resources.documents.Document", [
|
|
387
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
387
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
388
388
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
389
389
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
390
390
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
391
|
-
{ no: 5, name: "category_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
391
|
+
{ no: 5, name: "category_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
392
392
|
{ no: 6, name: "category", kind: "message", T: () => Category },
|
|
393
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "
|
|
393
|
+
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
394
394
|
{ no: 8, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
395
395
|
{ no: 9, name: "content", kind: "message", T: () => Content },
|
|
396
396
|
{ no: 10, name: "data", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxBytes: "1000000" } } } },
|
|
@@ -401,7 +401,7 @@ class Document$Type extends MessageType<Document> {
|
|
|
401
401
|
{ no: 15, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "32" } } } },
|
|
402
402
|
{ no: 16, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
403
403
|
{ no: 17, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
404
|
-
{ no: 18, name: "template_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
404
|
+
{ no: 18, name: "template_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
405
405
|
{ no: 19, name: "pinned", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
406
406
|
{ no: 20, name: "workflow_state", kind: "message", T: () => WorkflowState },
|
|
407
407
|
{ no: 21, name: "workflow_user", kind: "message", T: () => WorkflowUserState }
|
|
@@ -409,7 +409,7 @@ class Document$Type extends MessageType<Document> {
|
|
|
409
409
|
}
|
|
410
410
|
create(value?: PartialMessage<Document>): Document {
|
|
411
411
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
412
|
-
message.id =
|
|
412
|
+
message.id = 0;
|
|
413
413
|
message.title = "";
|
|
414
414
|
message.contentType = 0;
|
|
415
415
|
message.creatorJob = "";
|
|
@@ -426,8 +426,8 @@ class Document$Type extends MessageType<Document> {
|
|
|
426
426
|
while (reader.pos < end) {
|
|
427
427
|
let [fieldNo, wireType] = reader.tag();
|
|
428
428
|
switch (fieldNo) {
|
|
429
|
-
case /* uint64 id
|
|
430
|
-
message.id = reader.uint64().
|
|
429
|
+
case /* uint64 id */ 1:
|
|
430
|
+
message.id = reader.uint64().toNumber();
|
|
431
431
|
break;
|
|
432
432
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
433
433
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -438,8 +438,8 @@ class Document$Type extends MessageType<Document> {
|
|
|
438
438
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
439
439
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
440
440
|
break;
|
|
441
|
-
case /* optional uint64 category_id
|
|
442
|
-
message.categoryId = reader.uint64().
|
|
441
|
+
case /* optional uint64 category_id */ 5:
|
|
442
|
+
message.categoryId = reader.uint64().toNumber();
|
|
443
443
|
break;
|
|
444
444
|
case /* optional resources.documents.Category category */ 6:
|
|
445
445
|
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
@@ -477,8 +477,8 @@ class Document$Type extends MessageType<Document> {
|
|
|
477
477
|
case /* bool public */ 17:
|
|
478
478
|
message.public = reader.bool();
|
|
479
479
|
break;
|
|
480
|
-
case /* optional uint64 template_id
|
|
481
|
-
message.templateId = reader.uint64().
|
|
480
|
+
case /* optional uint64 template_id */ 18:
|
|
481
|
+
message.templateId = reader.uint64().toNumber();
|
|
482
482
|
break;
|
|
483
483
|
case /* bool pinned */ 19:
|
|
484
484
|
message.pinned = reader.bool();
|
|
@@ -501,8 +501,8 @@ class Document$Type extends MessageType<Document> {
|
|
|
501
501
|
return message;
|
|
502
502
|
}
|
|
503
503
|
internalBinaryWrite(message: Document, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
504
|
-
/* uint64 id = 1
|
|
505
|
-
if (message.id !==
|
|
504
|
+
/* uint64 id = 1; */
|
|
505
|
+
if (message.id !== 0)
|
|
506
506
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
507
507
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
508
508
|
if (message.createdAt)
|
|
@@ -513,7 +513,7 @@ class Document$Type extends MessageType<Document> {
|
|
|
513
513
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
514
514
|
if (message.deletedAt)
|
|
515
515
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
516
|
-
/* optional uint64 category_id = 5
|
|
516
|
+
/* optional uint64 category_id = 5; */
|
|
517
517
|
if (message.categoryId !== undefined)
|
|
518
518
|
writer.tag(5, WireType.Varint).uint64(message.categoryId);
|
|
519
519
|
/* optional resources.documents.Category category = 6; */
|
|
@@ -552,7 +552,7 @@ class Document$Type extends MessageType<Document> {
|
|
|
552
552
|
/* bool public = 17; */
|
|
553
553
|
if (message.public !== false)
|
|
554
554
|
writer.tag(17, WireType.Varint).bool(message.public);
|
|
555
|
-
/* optional uint64 template_id = 18
|
|
555
|
+
/* optional uint64 template_id = 18; */
|
|
556
556
|
if (message.templateId !== undefined)
|
|
557
557
|
writer.tag(18, WireType.Varint).uint64(message.templateId);
|
|
558
558
|
/* bool pinned = 19; */
|
|
@@ -578,13 +578,13 @@ export const Document = new Document$Type();
|
|
|
578
578
|
class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
579
579
|
constructor() {
|
|
580
580
|
super("resources.documents.DocumentShort", [
|
|
581
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
581
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
582
582
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
583
583
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
584
584
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
585
|
-
{ no: 5, name: "category_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
585
|
+
{ no: 5, name: "category_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
586
586
|
{ no: 6, name: "category", kind: "message", T: () => Category },
|
|
587
|
-
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "
|
|
587
|
+
{ no: 7, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "512" } } } },
|
|
588
588
|
{ no: 8, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
589
589
|
{ no: 9, name: "content", kind: "message", T: () => Content },
|
|
590
590
|
{ no: 10, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
@@ -600,7 +600,7 @@ class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
|
600
600
|
}
|
|
601
601
|
create(value?: PartialMessage<DocumentShort>): DocumentShort {
|
|
602
602
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
603
|
-
message.id =
|
|
603
|
+
message.id = 0;
|
|
604
604
|
message.title = "";
|
|
605
605
|
message.contentType = 0;
|
|
606
606
|
message.creatorJob = "";
|
|
@@ -616,8 +616,8 @@ class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
|
616
616
|
while (reader.pos < end) {
|
|
617
617
|
let [fieldNo, wireType] = reader.tag();
|
|
618
618
|
switch (fieldNo) {
|
|
619
|
-
case /* uint64 id
|
|
620
|
-
message.id = reader.uint64().
|
|
619
|
+
case /* uint64 id */ 1:
|
|
620
|
+
message.id = reader.uint64().toNumber();
|
|
621
621
|
break;
|
|
622
622
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
623
623
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -628,8 +628,8 @@ class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
|
628
628
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
629
629
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
630
630
|
break;
|
|
631
|
-
case /* optional uint64 category_id
|
|
632
|
-
message.categoryId = reader.uint64().
|
|
631
|
+
case /* optional uint64 category_id */ 5:
|
|
632
|
+
message.categoryId = reader.uint64().toNumber();
|
|
633
633
|
break;
|
|
634
634
|
case /* optional resources.documents.Category category */ 6:
|
|
635
635
|
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
@@ -682,8 +682,8 @@ class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
|
682
682
|
return message;
|
|
683
683
|
}
|
|
684
684
|
internalBinaryWrite(message: DocumentShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
685
|
-
/* uint64 id = 1
|
|
686
|
-
if (message.id !==
|
|
685
|
+
/* uint64 id = 1; */
|
|
686
|
+
if (message.id !== 0)
|
|
687
687
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
688
688
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
689
689
|
if (message.createdAt)
|
|
@@ -694,7 +694,7 @@ class DocumentShort$Type extends MessageType<DocumentShort> {
|
|
|
694
694
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
695
695
|
if (message.deletedAt)
|
|
696
696
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
697
|
-
/* optional uint64 category_id = 5
|
|
697
|
+
/* optional uint64 category_id = 5; */
|
|
698
698
|
if (message.categoryId !== undefined)
|
|
699
699
|
writer.tag(5, WireType.Varint).uint64(message.categoryId);
|
|
700
700
|
/* optional resources.documents.Category category = 6; */
|
|
@@ -750,12 +750,12 @@ export const DocumentShort = new DocumentShort$Type();
|
|
|
750
750
|
class DocumentReference$Type extends MessageType<DocumentReference> {
|
|
751
751
|
constructor() {
|
|
752
752
|
super("resources.documents.DocumentReference", [
|
|
753
|
-
{ no: 1, name: "id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
753
|
+
{ no: 1, name: "id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
754
754
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
755
|
-
{ no: 3, name: "source_document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
755
|
+
{ no: 3, name: "source_document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
756
756
|
{ no: 4, name: "source_document", kind: "message", T: () => DocumentShort },
|
|
757
757
|
{ no: 5, name: "reference", kind: "enum", T: () => ["resources.documents.DocReference", DocReference, "DOC_REFERENCE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
758
|
-
{ no: 6, name: "target_document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
758
|
+
{ no: 6, name: "target_document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
759
759
|
{ no: 7, name: "target_document", kind: "message", T: () => DocumentShort },
|
|
760
760
|
{ no: 8, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
761
761
|
{ no: 9, name: "creator", kind: "message", T: () => UserShort }
|
|
@@ -763,9 +763,9 @@ class DocumentReference$Type extends MessageType<DocumentReference> {
|
|
|
763
763
|
}
|
|
764
764
|
create(value?: PartialMessage<DocumentReference>): DocumentReference {
|
|
765
765
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
766
|
-
message.sourceDocumentId =
|
|
766
|
+
message.sourceDocumentId = 0;
|
|
767
767
|
message.reference = 0;
|
|
768
|
-
message.targetDocumentId =
|
|
768
|
+
message.targetDocumentId = 0;
|
|
769
769
|
if (value !== undefined)
|
|
770
770
|
reflectionMergePartial<DocumentReference>(this, message, value);
|
|
771
771
|
return message;
|
|
@@ -775,14 +775,14 @@ class DocumentReference$Type extends MessageType<DocumentReference> {
|
|
|
775
775
|
while (reader.pos < end) {
|
|
776
776
|
let [fieldNo, wireType] = reader.tag();
|
|
777
777
|
switch (fieldNo) {
|
|
778
|
-
case /* optional uint64 id
|
|
779
|
-
message.id = reader.uint64().
|
|
778
|
+
case /* optional uint64 id */ 1:
|
|
779
|
+
message.id = reader.uint64().toNumber();
|
|
780
780
|
break;
|
|
781
781
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
782
782
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
783
783
|
break;
|
|
784
|
-
case /* uint64 source_document_id
|
|
785
|
-
message.sourceDocumentId = reader.uint64().
|
|
784
|
+
case /* uint64 source_document_id */ 3:
|
|
785
|
+
message.sourceDocumentId = reader.uint64().toNumber();
|
|
786
786
|
break;
|
|
787
787
|
case /* optional resources.documents.DocumentShort source_document */ 4:
|
|
788
788
|
message.sourceDocument = DocumentShort.internalBinaryRead(reader, reader.uint32(), options, message.sourceDocument);
|
|
@@ -790,8 +790,8 @@ class DocumentReference$Type extends MessageType<DocumentReference> {
|
|
|
790
790
|
case /* resources.documents.DocReference reference */ 5:
|
|
791
791
|
message.reference = reader.int32();
|
|
792
792
|
break;
|
|
793
|
-
case /* uint64 target_document_id
|
|
794
|
-
message.targetDocumentId = reader.uint64().
|
|
793
|
+
case /* uint64 target_document_id */ 6:
|
|
794
|
+
message.targetDocumentId = reader.uint64().toNumber();
|
|
795
795
|
break;
|
|
796
796
|
case /* optional resources.documents.DocumentShort target_document */ 7:
|
|
797
797
|
message.targetDocument = DocumentShort.internalBinaryRead(reader, reader.uint32(), options, message.targetDocument);
|
|
@@ -814,14 +814,14 @@ class DocumentReference$Type extends MessageType<DocumentReference> {
|
|
|
814
814
|
return message;
|
|
815
815
|
}
|
|
816
816
|
internalBinaryWrite(message: DocumentReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
817
|
-
/* optional uint64 id = 1
|
|
817
|
+
/* optional uint64 id = 1; */
|
|
818
818
|
if (message.id !== undefined)
|
|
819
819
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
820
820
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
821
821
|
if (message.createdAt)
|
|
822
822
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
823
|
-
/* uint64 source_document_id = 3
|
|
824
|
-
if (message.sourceDocumentId !==
|
|
823
|
+
/* uint64 source_document_id = 3; */
|
|
824
|
+
if (message.sourceDocumentId !== 0)
|
|
825
825
|
writer.tag(3, WireType.Varint).uint64(message.sourceDocumentId);
|
|
826
826
|
/* optional resources.documents.DocumentShort source_document = 4; */
|
|
827
827
|
if (message.sourceDocument)
|
|
@@ -829,8 +829,8 @@ class DocumentReference$Type extends MessageType<DocumentReference> {
|
|
|
829
829
|
/* resources.documents.DocReference reference = 5; */
|
|
830
830
|
if (message.reference !== 0)
|
|
831
831
|
writer.tag(5, WireType.Varint).int32(message.reference);
|
|
832
|
-
/* uint64 target_document_id = 6
|
|
833
|
-
if (message.targetDocumentId !==
|
|
832
|
+
/* uint64 target_document_id = 6; */
|
|
833
|
+
if (message.targetDocumentId !== 0)
|
|
834
834
|
writer.tag(6, WireType.Varint).uint64(message.targetDocumentId);
|
|
835
835
|
/* optional resources.documents.DocumentShort target_document = 7; */
|
|
836
836
|
if (message.targetDocument)
|
|
@@ -855,9 +855,9 @@ export const DocumentReference = new DocumentReference$Type();
|
|
|
855
855
|
class DocumentRelation$Type extends MessageType<DocumentRelation> {
|
|
856
856
|
constructor() {
|
|
857
857
|
super("resources.documents.DocumentRelation", [
|
|
858
|
-
{ no: 1, name: "id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
|
858
|
+
{ no: 1, name: "id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
859
859
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
860
|
-
{ no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
860
|
+
{ no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
861
861
|
{ no: 4, name: "document", kind: "message", T: () => DocumentShort },
|
|
862
862
|
{ no: 5, name: "source_user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
863
863
|
{ no: 6, name: "source_user", kind: "message", T: () => UserShort },
|
|
@@ -868,7 +868,7 @@ class DocumentRelation$Type extends MessageType<DocumentRelation> {
|
|
|
868
868
|
}
|
|
869
869
|
create(value?: PartialMessage<DocumentRelation>): DocumentRelation {
|
|
870
870
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
871
|
-
message.documentId =
|
|
871
|
+
message.documentId = 0;
|
|
872
872
|
message.sourceUserId = 0;
|
|
873
873
|
message.relation = 0;
|
|
874
874
|
message.targetUserId = 0;
|
|
@@ -881,14 +881,14 @@ class DocumentRelation$Type extends MessageType<DocumentRelation> {
|
|
|
881
881
|
while (reader.pos < end) {
|
|
882
882
|
let [fieldNo, wireType] = reader.tag();
|
|
883
883
|
switch (fieldNo) {
|
|
884
|
-
case /* optional uint64 id
|
|
885
|
-
message.id = reader.uint64().
|
|
884
|
+
case /* optional uint64 id */ 1:
|
|
885
|
+
message.id = reader.uint64().toNumber();
|
|
886
886
|
break;
|
|
887
887
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
888
888
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
889
889
|
break;
|
|
890
|
-
case /* uint64 document_id
|
|
891
|
-
message.documentId = reader.uint64().
|
|
890
|
+
case /* uint64 document_id */ 3:
|
|
891
|
+
message.documentId = reader.uint64().toNumber();
|
|
892
892
|
break;
|
|
893
893
|
case /* optional resources.documents.DocumentShort document */ 4:
|
|
894
894
|
message.document = DocumentShort.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
@@ -920,14 +920,14 @@ class DocumentRelation$Type extends MessageType<DocumentRelation> {
|
|
|
920
920
|
return message;
|
|
921
921
|
}
|
|
922
922
|
internalBinaryWrite(message: DocumentRelation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
923
|
-
/* optional uint64 id = 1
|
|
923
|
+
/* optional uint64 id = 1; */
|
|
924
924
|
if (message.id !== undefined)
|
|
925
925
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
926
926
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
927
927
|
if (message.createdAt)
|
|
928
928
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
929
|
-
/* uint64 document_id = 3
|
|
930
|
-
if (message.documentId !==
|
|
929
|
+
/* uint64 document_id = 3; */
|
|
930
|
+
if (message.documentId !== 0)
|
|
931
931
|
writer.tag(3, WireType.Varint).uint64(message.documentId);
|
|
932
932
|
/* optional resources.documents.DocumentShort document = 4; */
|
|
933
933
|
if (message.document)
|
|
@@ -961,7 +961,7 @@ export const DocumentRelation = new DocumentRelation$Type();
|
|
|
961
961
|
class WorkflowState$Type extends MessageType<WorkflowState> {
|
|
962
962
|
constructor() {
|
|
963
963
|
super("resources.documents.WorkflowState", [
|
|
964
|
-
{ no: 1, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
964
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
965
965
|
{ no: 2, name: "next_reminder_time", kind: "message", T: () => Timestamp },
|
|
966
966
|
{ no: 3, name: "next_reminder_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
967
967
|
{ no: 4, name: "auto_close_time", kind: "message", T: () => Timestamp },
|
|
@@ -971,7 +971,7 @@ class WorkflowState$Type extends MessageType<WorkflowState> {
|
|
|
971
971
|
}
|
|
972
972
|
create(value?: PartialMessage<WorkflowState>): WorkflowState {
|
|
973
973
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
974
|
-
message.documentId =
|
|
974
|
+
message.documentId = 0;
|
|
975
975
|
if (value !== undefined)
|
|
976
976
|
reflectionMergePartial<WorkflowState>(this, message, value);
|
|
977
977
|
return message;
|
|
@@ -981,8 +981,8 @@ class WorkflowState$Type extends MessageType<WorkflowState> {
|
|
|
981
981
|
while (reader.pos < end) {
|
|
982
982
|
let [fieldNo, wireType] = reader.tag();
|
|
983
983
|
switch (fieldNo) {
|
|
984
|
-
case /* uint64 document_id
|
|
985
|
-
message.documentId = reader.uint64().
|
|
984
|
+
case /* uint64 document_id */ 1:
|
|
985
|
+
message.documentId = reader.uint64().toNumber();
|
|
986
986
|
break;
|
|
987
987
|
case /* optional resources.timestamp.Timestamp next_reminder_time */ 2:
|
|
988
988
|
message.nextReminderTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.nextReminderTime);
|
|
@@ -1011,8 +1011,8 @@ class WorkflowState$Type extends MessageType<WorkflowState> {
|
|
|
1011
1011
|
return message;
|
|
1012
1012
|
}
|
|
1013
1013
|
internalBinaryWrite(message: WorkflowState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1014
|
-
/* uint64 document_id = 1
|
|
1015
|
-
if (message.documentId !==
|
|
1014
|
+
/* uint64 document_id = 1; */
|
|
1015
|
+
if (message.documentId !== 0)
|
|
1016
1016
|
writer.tag(1, WireType.Varint).uint64(message.documentId);
|
|
1017
1017
|
/* optional resources.timestamp.Timestamp next_reminder_time = 2; */
|
|
1018
1018
|
if (message.nextReminderTime)
|
|
@@ -1043,7 +1043,7 @@ export const WorkflowState = new WorkflowState$Type();
|
|
|
1043
1043
|
class WorkflowUserState$Type extends MessageType<WorkflowUserState> {
|
|
1044
1044
|
constructor() {
|
|
1045
1045
|
super("resources.documents.WorkflowUserState", [
|
|
1046
|
-
{ no: 1, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
1046
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1047
1047
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
1048
1048
|
{ no: 3, name: "manual_reminder_time", kind: "message", T: () => Timestamp },
|
|
1049
1049
|
{ no: 4, name: "manual_reminder_message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
@@ -1053,7 +1053,7 @@ class WorkflowUserState$Type extends MessageType<WorkflowUserState> {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
create(value?: PartialMessage<WorkflowUserState>): WorkflowUserState {
|
|
1055
1055
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1056
|
-
message.documentId =
|
|
1056
|
+
message.documentId = 0;
|
|
1057
1057
|
message.userId = 0;
|
|
1058
1058
|
if (value !== undefined)
|
|
1059
1059
|
reflectionMergePartial<WorkflowUserState>(this, message, value);
|
|
@@ -1064,8 +1064,8 @@ class WorkflowUserState$Type extends MessageType<WorkflowUserState> {
|
|
|
1064
1064
|
while (reader.pos < end) {
|
|
1065
1065
|
let [fieldNo, wireType] = reader.tag();
|
|
1066
1066
|
switch (fieldNo) {
|
|
1067
|
-
case /* uint64 document_id
|
|
1068
|
-
message.documentId = reader.uint64().
|
|
1067
|
+
case /* uint64 document_id */ 1:
|
|
1068
|
+
message.documentId = reader.uint64().toNumber();
|
|
1069
1069
|
break;
|
|
1070
1070
|
case /* int32 user_id */ 2:
|
|
1071
1071
|
message.userId = reader.int32();
|
|
@@ -1094,8 +1094,8 @@ class WorkflowUserState$Type extends MessageType<WorkflowUserState> {
|
|
|
1094
1094
|
return message;
|
|
1095
1095
|
}
|
|
1096
1096
|
internalBinaryWrite(message: WorkflowUserState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1097
|
-
/* uint64 document_id = 1
|
|
1098
|
-
if (message.documentId !==
|
|
1097
|
+
/* uint64 document_id = 1; */
|
|
1098
|
+
if (message.documentId !== 0)
|
|
1099
1099
|
writer.tag(1, WireType.Varint).uint64(message.documentId);
|
|
1100
1100
|
/* int32 user_id = 2; */
|
|
1101
1101
|
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/requests.proto" (package "resources.documents", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -19,9 +19,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
19
19
|
*/
|
|
20
20
|
export interface DocRequest {
|
|
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;
|
|
25
25
|
/**
|
|
26
26
|
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
|
|
27
27
|
*/
|
|
@@ -31,9 +31,9 @@ export interface DocRequest {
|
|
|
31
31
|
*/
|
|
32
32
|
updatedAt?: Timestamp;
|
|
33
33
|
/**
|
|
34
|
-
* @generated from protobuf field: uint64 document_id = 4
|
|
34
|
+
* @generated from protobuf field: uint64 document_id = 4;
|
|
35
35
|
*/
|
|
36
|
-
documentId:
|
|
36
|
+
documentId: number;
|
|
37
37
|
/**
|
|
38
38
|
* @generated from protobuf field: resources.documents.DocActivityType request_type = 5;
|
|
39
39
|
*/
|
|
@@ -71,10 +71,10 @@ export interface DocRequest {
|
|
|
71
71
|
class DocRequest$Type extends MessageType<DocRequest> {
|
|
72
72
|
constructor() {
|
|
73
73
|
super("resources.documents.DocRequest", [
|
|
74
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
74
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
75
75
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
76
76
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
77
|
-
{ no: 4, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
77
|
+
{ no: 4, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
78
78
|
{ no: 5, name: "request_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "validate.rules": { enum: { in: [13, 14, 15, 16, 17, 18] } } } },
|
|
79
79
|
{ no: 6, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
80
80
|
{ no: 7, name: "creator", kind: "message", T: () => UserShort },
|
|
@@ -87,8 +87,8 @@ class DocRequest$Type extends MessageType<DocRequest> {
|
|
|
87
87
|
}
|
|
88
88
|
create(value?: PartialMessage<DocRequest>): DocRequest {
|
|
89
89
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
90
|
-
message.id =
|
|
91
|
-
message.documentId =
|
|
90
|
+
message.id = 0;
|
|
91
|
+
message.documentId = 0;
|
|
92
92
|
message.requestType = 0;
|
|
93
93
|
message.creatorJob = "";
|
|
94
94
|
if (value !== undefined)
|
|
@@ -100,8 +100,8 @@ class DocRequest$Type extends MessageType<DocRequest> {
|
|
|
100
100
|
while (reader.pos < end) {
|
|
101
101
|
let [fieldNo, wireType] = reader.tag();
|
|
102
102
|
switch (fieldNo) {
|
|
103
|
-
case /* uint64 id
|
|
104
|
-
message.id = reader.uint64().
|
|
103
|
+
case /* uint64 id */ 1:
|
|
104
|
+
message.id = reader.uint64().toNumber();
|
|
105
105
|
break;
|
|
106
106
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
107
107
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -109,8 +109,8 @@ class DocRequest$Type extends MessageType<DocRequest> {
|
|
|
109
109
|
case /* resources.timestamp.Timestamp updated_at */ 3:
|
|
110
110
|
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
111
111
|
break;
|
|
112
|
-
case /* uint64 document_id
|
|
113
|
-
message.documentId = reader.uint64().
|
|
112
|
+
case /* uint64 document_id */ 4:
|
|
113
|
+
message.documentId = reader.uint64().toNumber();
|
|
114
114
|
break;
|
|
115
115
|
case /* resources.documents.DocActivityType request_type */ 5:
|
|
116
116
|
message.requestType = reader.int32();
|
|
@@ -148,8 +148,8 @@ class DocRequest$Type extends MessageType<DocRequest> {
|
|
|
148
148
|
return message;
|
|
149
149
|
}
|
|
150
150
|
internalBinaryWrite(message: DocRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
151
|
-
/* uint64 id = 1
|
|
152
|
-
if (message.id !==
|
|
151
|
+
/* uint64 id = 1; */
|
|
152
|
+
if (message.id !== 0)
|
|
153
153
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
154
154
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
155
155
|
if (message.createdAt)
|
|
@@ -157,8 +157,8 @@ class DocRequest$Type extends MessageType<DocRequest> {
|
|
|
157
157
|
/* resources.timestamp.Timestamp updated_at = 3; */
|
|
158
158
|
if (message.updatedAt)
|
|
159
159
|
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
160
|
-
/* uint64 document_id = 4
|
|
161
|
-
if (message.documentId !==
|
|
160
|
+
/* uint64 document_id = 4; */
|
|
161
|
+
if (message.documentId !== 0)
|
|
162
162
|
writer.tag(4, WireType.Varint).uint64(message.documentId);
|
|
163
163
|
/* resources.documents.DocActivityType request_type = 5; */
|
|
164
164
|
if (message.requestType !== 0)
|