@fivenet-app/gen 2026.3.0 → 2026.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 +66 -6
- package/codegen/perms/perms.ts +104 -1
- package/package.json +1 -1
- package/perms.ts +16 -5
- package/resources/centrum/settings/settings.ts +1 -1
- package/resources/centrum/units/units.ts +1 -1
- package/resources/citizens/labels/access.ts +216 -0
- package/resources/citizens/labels/labels.ts +320 -0
- package/resources/{users → citizens}/licenses/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +32 -289
- package/resources/cron/cron.ts +2 -2
- package/resources/documents/access/access.ts +0 -23
- package/resources/documents/category/category.ts +1 -1
- package/resources/documents/templates/templates.ts +2 -2
- package/resources/jobs/labels/labels.ts +16 -5
- package/resources/livemap/markers/marker_marker.ts +1 -1
- package/resources/settings/banner.ts +1 -1
- package/resources/settings/config.ts +16 -14
- package/resources/sync/data/data.ts +9 -9
- package/resources/users/activity/activity.ts +132 -12
- package/resources/users/props/props.ts +4 -4
- package/resources/users/user.ts +4 -4
- package/services/calendar/calendar.client.ts +2 -106
- package/services/calendar/calendar.ts +0 -1018
- package/services/calendar/entries.client.ts +129 -0
- package/services/calendar/entries.ts +1040 -0
- package/services/centrum/centrum.client.ts +23 -244
- package/services/centrum/centrum.ts +246 -2383
- package/services/centrum/dispatches.client.ts +155 -0
- package/services/centrum/dispatches.ts +1305 -0
- package/services/centrum/units.client.ts +116 -0
- package/services/centrum/units.ts +876 -0
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +1 -115
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +5 -5
- package/services/documents/categories.client.ts +64 -0
- package/services/documents/categories.ts +331 -0
- package/services/documents/comments.client.ts +77 -0
- package/services/documents/comments.ts +479 -0
- package/services/documents/documents.client.ts +26 -182
- package/services/documents/documents.ts +335 -1682
- package/services/documents/templates.client.ts +90 -0
- package/services/documents/templates.ts +591 -0
- package/services/jobs/colleagues.client.ts +129 -0
- package/services/jobs/colleagues.ts +1129 -0
- package/services/jobs/jobs.client.ts +3 -107
- package/services/jobs/jobs.ts +1 -1113
- package/services/mailer/mailer.client.ts +0 -208
- package/services/mailer/mailer.ts +1 -2010
- package/services/mailer/settings.client.ts +103 -0
- package/services/mailer/settings.ts +708 -0
- package/services/mailer/thread.client.ts +155 -0
- package/services/mailer/thread.ts +1343 -0
- package/services/qualifications/exam.client.ts +77 -0
- package/services/qualifications/exam.ts +609 -0
- package/services/qualifications/qualifications.client.ts +1 -53
- package/services/qualifications/qualifications.ts +0 -591
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +114 -1
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1463 -383
- package/svcs.ts +182 -94
- package/resources/sync/data/v2/data.ts +0 -220
- package/resources/users/labels/labels.ts +0 -160
- package/services/sync/v2/sync.client.ts +0 -331
- package/services/sync/v2/sync.ts +0 -1766
|
@@ -5,17 +5,16 @@
|
|
|
5
5
|
import { UploadFileResponse } from "../../resources/file/filestore";
|
|
6
6
|
import { UploadFileRequest } from "../../resources/file/filestore";
|
|
7
7
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
8
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
10
9
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
11
10
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
12
11
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
13
12
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
14
14
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
15
15
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
16
16
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
17
17
|
import { DocumentPin } from "../../resources/documents/pins/pins";
|
|
18
|
-
import { Category } from "../../resources/documents/category/category";
|
|
19
18
|
import { DocRelation } from "../../resources/documents/relations/relations";
|
|
20
19
|
import { DocActivityData } from "../../resources/documents/activity/activity";
|
|
21
20
|
import { DocRequest } from "../../resources/documents/requests/requests";
|
|
@@ -25,8 +24,8 @@ import { File } from "../../resources/file/file";
|
|
|
25
24
|
import { DocumentMeta } from "../../resources/documents/documents";
|
|
26
25
|
import { DocumentData } from "../../resources/documents/data/data";
|
|
27
26
|
import { Content } from "../../resources/common/content/content";
|
|
27
|
+
import { TemplateData } from "../../resources/documents/templates/templates";
|
|
28
28
|
import { ContentType } from "../../resources/common/content/content";
|
|
29
|
-
import { Comment } from "../../resources/documents/comment/comment";
|
|
30
29
|
import { DocumentRelation } from "../../resources/documents/relations/relations";
|
|
31
30
|
import { DocumentReference } from "../../resources/documents/references/references";
|
|
32
31
|
import { DocumentAccess } from "../../resources/documents/access/access";
|
|
@@ -36,105 +35,6 @@ import { PaginationResponse } from "../../resources/common/database/database";
|
|
|
36
35
|
import { Timestamp } from "../../resources/timestamp/timestamp";
|
|
37
36
|
import { Sort } from "../../resources/common/database/database";
|
|
38
37
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
39
|
-
import { Template } from "../../resources/documents/templates/templates";
|
|
40
|
-
import { TemplateData } from "../../resources/documents/templates/templates";
|
|
41
|
-
import { TemplateShort } from "../../resources/documents/templates/templates";
|
|
42
|
-
// Templates
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @generated from protobuf message services.documents.ListTemplatesRequest
|
|
46
|
-
*/
|
|
47
|
-
export interface ListTemplatesRequest {
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf message services.documents.ListTemplatesResponse
|
|
51
|
-
*/
|
|
52
|
-
export interface ListTemplatesResponse {
|
|
53
|
-
/**
|
|
54
|
-
* @generated from protobuf field: repeated resources.documents.templates.TemplateShort templates = 1
|
|
55
|
-
*/
|
|
56
|
-
templates: TemplateShort[];
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf message services.documents.GetTemplateRequest
|
|
60
|
-
*/
|
|
61
|
-
export interface GetTemplateRequest {
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf field: int64 template_id = 1
|
|
64
|
-
*/
|
|
65
|
-
templateId: number;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: optional resources.documents.templates.TemplateData data = 2
|
|
68
|
-
*/
|
|
69
|
-
data?: TemplateData;
|
|
70
|
-
/**
|
|
71
|
-
* @generated from protobuf field: optional bool render = 3
|
|
72
|
-
*/
|
|
73
|
-
render?: boolean;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf message services.documents.GetTemplateResponse
|
|
77
|
-
*/
|
|
78
|
-
export interface GetTemplateResponse {
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
81
|
-
*/
|
|
82
|
-
template?: Template;
|
|
83
|
-
/**
|
|
84
|
-
* @generated from protobuf field: bool rendered = 2
|
|
85
|
-
*/
|
|
86
|
-
rendered: boolean;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf message services.documents.CreateTemplateRequest
|
|
90
|
-
*/
|
|
91
|
-
export interface CreateTemplateRequest {
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
94
|
-
*/
|
|
95
|
-
template?: Template;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf message services.documents.CreateTemplateResponse
|
|
99
|
-
*/
|
|
100
|
-
export interface CreateTemplateResponse {
|
|
101
|
-
/**
|
|
102
|
-
* @generated from protobuf field: int64 id = 1
|
|
103
|
-
*/
|
|
104
|
-
id: number;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @generated from protobuf message services.documents.UpdateTemplateRequest
|
|
108
|
-
*/
|
|
109
|
-
export interface UpdateTemplateRequest {
|
|
110
|
-
/**
|
|
111
|
-
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
112
|
-
*/
|
|
113
|
-
template?: Template;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* @generated from protobuf message services.documents.UpdateTemplateResponse
|
|
117
|
-
*/
|
|
118
|
-
export interface UpdateTemplateResponse {
|
|
119
|
-
/**
|
|
120
|
-
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
121
|
-
*/
|
|
122
|
-
template?: Template;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* @generated from protobuf message services.documents.DeleteTemplateRequest
|
|
126
|
-
*/
|
|
127
|
-
export interface DeleteTemplateRequest {
|
|
128
|
-
/**
|
|
129
|
-
* @generated from protobuf field: int64 id = 1
|
|
130
|
-
*/
|
|
131
|
-
id: number;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* @generated from protobuf message services.documents.DeleteTemplateResponse
|
|
135
|
-
*/
|
|
136
|
-
export interface DeleteTemplateResponse {
|
|
137
|
-
}
|
|
138
38
|
// Documents
|
|
139
39
|
|
|
140
40
|
/**
|
|
@@ -328,84 +228,6 @@ export interface RemoveDocumentRelationRequest {
|
|
|
328
228
|
*/
|
|
329
229
|
export interface RemoveDocumentRelationResponse {
|
|
330
230
|
}
|
|
331
|
-
// Comments
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* @generated from protobuf message services.documents.GetCommentsRequest
|
|
335
|
-
*/
|
|
336
|
-
export interface GetCommentsRequest {
|
|
337
|
-
/**
|
|
338
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
339
|
-
*/
|
|
340
|
-
pagination?: PaginationRequest;
|
|
341
|
-
/**
|
|
342
|
-
* @generated from protobuf field: int64 document_id = 2
|
|
343
|
-
*/
|
|
344
|
-
documentId: number;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* @generated from protobuf message services.documents.GetCommentsResponse
|
|
348
|
-
*/
|
|
349
|
-
export interface GetCommentsResponse {
|
|
350
|
-
/**
|
|
351
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
352
|
-
*/
|
|
353
|
-
pagination?: PaginationResponse;
|
|
354
|
-
/**
|
|
355
|
-
* @generated from protobuf field: repeated resources.documents.comment.Comment comments = 2
|
|
356
|
-
*/
|
|
357
|
-
comments: Comment[];
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* @generated from protobuf message services.documents.PostCommentRequest
|
|
361
|
-
*/
|
|
362
|
-
export interface PostCommentRequest {
|
|
363
|
-
/**
|
|
364
|
-
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
365
|
-
*/
|
|
366
|
-
comment?: Comment;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* @generated from protobuf message services.documents.PostCommentResponse
|
|
370
|
-
*/
|
|
371
|
-
export interface PostCommentResponse {
|
|
372
|
-
/**
|
|
373
|
-
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
374
|
-
*/
|
|
375
|
-
comment?: Comment;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* @generated from protobuf message services.documents.EditCommentRequest
|
|
379
|
-
*/
|
|
380
|
-
export interface EditCommentRequest {
|
|
381
|
-
/**
|
|
382
|
-
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
383
|
-
*/
|
|
384
|
-
comment?: Comment;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* @generated from protobuf message services.documents.EditCommentResponse
|
|
388
|
-
*/
|
|
389
|
-
export interface EditCommentResponse {
|
|
390
|
-
/**
|
|
391
|
-
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
392
|
-
*/
|
|
393
|
-
comment?: Comment;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* @generated from protobuf message services.documents.DeleteCommentRequest
|
|
397
|
-
*/
|
|
398
|
-
export interface DeleteCommentRequest {
|
|
399
|
-
/**
|
|
400
|
-
* @generated from protobuf field: int64 comment_id = 1
|
|
401
|
-
*/
|
|
402
|
-
commentId: number;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* @generated from protobuf message services.documents.DeleteCommentResponse
|
|
406
|
-
*/
|
|
407
|
-
export interface DeleteCommentResponse {
|
|
408
|
-
}
|
|
409
231
|
/**
|
|
410
232
|
* @generated from protobuf message services.documents.UpdateDocumentResponse
|
|
411
233
|
*/
|
|
@@ -756,54 +578,6 @@ export interface ListUserDocumentsResponse {
|
|
|
756
578
|
*/
|
|
757
579
|
relations: DocumentRelation[];
|
|
758
580
|
}
|
|
759
|
-
// Categories
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* @generated from protobuf message services.documents.ListCategoriesRequest
|
|
763
|
-
*/
|
|
764
|
-
export interface ListCategoriesRequest {
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* @generated from protobuf message services.documents.ListCategoriesResponse
|
|
768
|
-
*/
|
|
769
|
-
export interface ListCategoriesResponse {
|
|
770
|
-
/**
|
|
771
|
-
* @generated from protobuf field: repeated resources.documents.category.Category categories = 1
|
|
772
|
-
*/
|
|
773
|
-
categories: Category[];
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* @generated from protobuf message services.documents.CreateOrUpdateCategoryRequest
|
|
777
|
-
*/
|
|
778
|
-
export interface CreateOrUpdateCategoryRequest {
|
|
779
|
-
/**
|
|
780
|
-
* @generated from protobuf field: resources.documents.category.Category category = 1
|
|
781
|
-
*/
|
|
782
|
-
category?: Category;
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
* @generated from protobuf message services.documents.CreateOrUpdateCategoryResponse
|
|
786
|
-
*/
|
|
787
|
-
export interface CreateOrUpdateCategoryResponse {
|
|
788
|
-
/**
|
|
789
|
-
* @generated from protobuf field: resources.documents.category.Category category = 1
|
|
790
|
-
*/
|
|
791
|
-
category?: Category;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @generated from protobuf message services.documents.DeleteCategoryRequest
|
|
795
|
-
*/
|
|
796
|
-
export interface DeleteCategoryRequest {
|
|
797
|
-
/**
|
|
798
|
-
* @generated from protobuf field: int64 id = 1
|
|
799
|
-
*/
|
|
800
|
-
id: number;
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* @generated from protobuf message services.documents.DeleteCategoryResponse
|
|
804
|
-
*/
|
|
805
|
-
export interface DeleteCategoryResponse {
|
|
806
|
-
}
|
|
807
581
|
// Pins
|
|
808
582
|
|
|
809
583
|
/**
|
|
@@ -892,21 +666,77 @@ export interface SetDocumentReminderRequest {
|
|
|
892
666
|
export interface SetDocumentReminderResponse {
|
|
893
667
|
}
|
|
894
668
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
895
|
-
class
|
|
669
|
+
class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
896
670
|
constructor() {
|
|
897
|
-
super("services.documents.
|
|
671
|
+
super("services.documents.ListDocumentsRequest", [
|
|
672
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
673
|
+
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
674
|
+
{ no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
675
|
+
{ no: 4, name: "category_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
676
|
+
{ no: 5, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
677
|
+
{ no: 6, name: "from", kind: "message", T: () => Timestamp },
|
|
678
|
+
{ no: 7, name: "to", kind: "message", T: () => Timestamp },
|
|
679
|
+
{ no: 8, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
680
|
+
{ no: 9, name: "document_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
681
|
+
{ no: 10, name: "only_drafts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
682
|
+
]);
|
|
898
683
|
}
|
|
899
|
-
create(value?: PartialMessage<
|
|
684
|
+
create(value?: PartialMessage<ListDocumentsRequest>): ListDocumentsRequest {
|
|
900
685
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
686
|
+
message.categoryIds = [];
|
|
687
|
+
message.creatorIds = [];
|
|
688
|
+
message.documentIds = [];
|
|
901
689
|
if (value !== undefined)
|
|
902
|
-
reflectionMergePartial<
|
|
690
|
+
reflectionMergePartial<ListDocumentsRequest>(this, message, value);
|
|
903
691
|
return message;
|
|
904
692
|
}
|
|
905
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
693
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDocumentsRequest): ListDocumentsRequest {
|
|
906
694
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
907
695
|
while (reader.pos < end) {
|
|
908
696
|
let [fieldNo, wireType] = reader.tag();
|
|
909
697
|
switch (fieldNo) {
|
|
698
|
+
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
699
|
+
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
700
|
+
break;
|
|
701
|
+
case /* optional resources.common.database.Sort sort */ 2:
|
|
702
|
+
message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
|
703
|
+
break;
|
|
704
|
+
case /* optional string search */ 3:
|
|
705
|
+
message.search = reader.string();
|
|
706
|
+
break;
|
|
707
|
+
case /* repeated int64 category_ids */ 4:
|
|
708
|
+
if (wireType === WireType.LengthDelimited)
|
|
709
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
710
|
+
message.categoryIds.push(reader.int64().toNumber());
|
|
711
|
+
else
|
|
712
|
+
message.categoryIds.push(reader.int64().toNumber());
|
|
713
|
+
break;
|
|
714
|
+
case /* repeated int32 creator_ids */ 5:
|
|
715
|
+
if (wireType === WireType.LengthDelimited)
|
|
716
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
717
|
+
message.creatorIds.push(reader.int32());
|
|
718
|
+
else
|
|
719
|
+
message.creatorIds.push(reader.int32());
|
|
720
|
+
break;
|
|
721
|
+
case /* optional resources.timestamp.Timestamp from */ 6:
|
|
722
|
+
message.from = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.from);
|
|
723
|
+
break;
|
|
724
|
+
case /* optional resources.timestamp.Timestamp to */ 7:
|
|
725
|
+
message.to = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.to);
|
|
726
|
+
break;
|
|
727
|
+
case /* optional bool closed */ 8:
|
|
728
|
+
message.closed = reader.bool();
|
|
729
|
+
break;
|
|
730
|
+
case /* repeated int64 document_ids */ 9:
|
|
731
|
+
if (wireType === WireType.LengthDelimited)
|
|
732
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
733
|
+
message.documentIds.push(reader.int64().toNumber());
|
|
734
|
+
else
|
|
735
|
+
message.documentIds.push(reader.int64().toNumber());
|
|
736
|
+
break;
|
|
737
|
+
case /* optional bool only_drafts */ 10:
|
|
738
|
+
message.onlyDrafts = reader.bool();
|
|
739
|
+
break;
|
|
910
740
|
default:
|
|
911
741
|
let u = options.readUnknownField;
|
|
912
742
|
if (u === "throw")
|
|
@@ -918,7 +748,49 @@ class ListTemplatesRequest$Type extends MessageType<ListTemplatesRequest> {
|
|
|
918
748
|
}
|
|
919
749
|
return message;
|
|
920
750
|
}
|
|
921
|
-
internalBinaryWrite(message:
|
|
751
|
+
internalBinaryWrite(message: ListDocumentsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
752
|
+
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
753
|
+
if (message.pagination)
|
|
754
|
+
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
755
|
+
/* optional resources.common.database.Sort sort = 2; */
|
|
756
|
+
if (message.sort)
|
|
757
|
+
Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
758
|
+
/* optional string search = 3; */
|
|
759
|
+
if (message.search !== undefined)
|
|
760
|
+
writer.tag(3, WireType.LengthDelimited).string(message.search);
|
|
761
|
+
/* repeated int64 category_ids = 4; */
|
|
762
|
+
if (message.categoryIds.length) {
|
|
763
|
+
writer.tag(4, WireType.LengthDelimited).fork();
|
|
764
|
+
for (let i = 0; i < message.categoryIds.length; i++)
|
|
765
|
+
writer.int64(message.categoryIds[i]);
|
|
766
|
+
writer.join();
|
|
767
|
+
}
|
|
768
|
+
/* repeated int32 creator_ids = 5; */
|
|
769
|
+
if (message.creatorIds.length) {
|
|
770
|
+
writer.tag(5, WireType.LengthDelimited).fork();
|
|
771
|
+
for (let i = 0; i < message.creatorIds.length; i++)
|
|
772
|
+
writer.int32(message.creatorIds[i]);
|
|
773
|
+
writer.join();
|
|
774
|
+
}
|
|
775
|
+
/* optional resources.timestamp.Timestamp from = 6; */
|
|
776
|
+
if (message.from)
|
|
777
|
+
Timestamp.internalBinaryWrite(message.from, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
778
|
+
/* optional resources.timestamp.Timestamp to = 7; */
|
|
779
|
+
if (message.to)
|
|
780
|
+
Timestamp.internalBinaryWrite(message.to, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
781
|
+
/* optional bool closed = 8; */
|
|
782
|
+
if (message.closed !== undefined)
|
|
783
|
+
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
784
|
+
/* repeated int64 document_ids = 9; */
|
|
785
|
+
if (message.documentIds.length) {
|
|
786
|
+
writer.tag(9, WireType.LengthDelimited).fork();
|
|
787
|
+
for (let i = 0; i < message.documentIds.length; i++)
|
|
788
|
+
writer.int64(message.documentIds[i]);
|
|
789
|
+
writer.join();
|
|
790
|
+
}
|
|
791
|
+
/* optional bool only_drafts = 10; */
|
|
792
|
+
if (message.onlyDrafts !== undefined)
|
|
793
|
+
writer.tag(10, WireType.Varint).bool(message.onlyDrafts);
|
|
922
794
|
let u = options.writeUnknownFields;
|
|
923
795
|
if (u !== false)
|
|
924
796
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -926,32 +798,36 @@ class ListTemplatesRequest$Type extends MessageType<ListTemplatesRequest> {
|
|
|
926
798
|
}
|
|
927
799
|
}
|
|
928
800
|
/**
|
|
929
|
-
* @generated MessageType for protobuf message services.documents.
|
|
801
|
+
* @generated MessageType for protobuf message services.documents.ListDocumentsRequest
|
|
930
802
|
*/
|
|
931
|
-
export const
|
|
803
|
+
export const ListDocumentsRequest = new ListDocumentsRequest$Type();
|
|
932
804
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
933
|
-
class
|
|
805
|
+
class ListDocumentsResponse$Type extends MessageType<ListDocumentsResponse> {
|
|
934
806
|
constructor() {
|
|
935
|
-
super("services.documents.
|
|
936
|
-
{ no: 1, name: "
|
|
807
|
+
super("services.documents.ListDocumentsResponse", [
|
|
808
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
809
|
+
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "codegen.itemslen.enabled": true } }
|
|
937
810
|
]);
|
|
938
811
|
}
|
|
939
|
-
create(value?: PartialMessage<
|
|
812
|
+
create(value?: PartialMessage<ListDocumentsResponse>): ListDocumentsResponse {
|
|
940
813
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
941
|
-
message.
|
|
814
|
+
message.documents = [];
|
|
942
815
|
if (value !== undefined)
|
|
943
|
-
reflectionMergePartial<
|
|
816
|
+
reflectionMergePartial<ListDocumentsResponse>(this, message, value);
|
|
944
817
|
return message;
|
|
945
818
|
}
|
|
946
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
819
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDocumentsResponse): ListDocumentsResponse {
|
|
947
820
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
948
821
|
while (reader.pos < end) {
|
|
949
822
|
let [fieldNo, wireType] = reader.tag();
|
|
950
823
|
switch (fieldNo) {
|
|
951
|
-
case /*
|
|
952
|
-
message.
|
|
824
|
+
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
825
|
+
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
953
826
|
break;
|
|
954
|
-
|
|
827
|
+
case /* repeated resources.documents.DocumentShort documents */ 2:
|
|
828
|
+
message.documents.push(DocumentShort.internalBinaryRead(reader, reader.uint32(), options));
|
|
829
|
+
break;
|
|
830
|
+
default:
|
|
955
831
|
let u = options.readUnknownField;
|
|
956
832
|
if (u === "throw")
|
|
957
833
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
@@ -962,10 +838,13 @@ class ListTemplatesResponse$Type extends MessageType<ListTemplatesResponse> {
|
|
|
962
838
|
}
|
|
963
839
|
return message;
|
|
964
840
|
}
|
|
965
|
-
internalBinaryWrite(message:
|
|
966
|
-
/*
|
|
967
|
-
|
|
968
|
-
|
|
841
|
+
internalBinaryWrite(message: ListDocumentsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
842
|
+
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
843
|
+
if (message.pagination)
|
|
844
|
+
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
845
|
+
/* repeated resources.documents.DocumentShort documents = 2; */
|
|
846
|
+
for (let i = 0; i < message.documents.length; i++)
|
|
847
|
+
DocumentShort.internalBinaryWrite(message.documents[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
969
848
|
let u = options.writeUnknownFields;
|
|
970
849
|
if (u !== false)
|
|
971
850
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -973,38 +852,34 @@ class ListTemplatesResponse$Type extends MessageType<ListTemplatesResponse> {
|
|
|
973
852
|
}
|
|
974
853
|
}
|
|
975
854
|
/**
|
|
976
|
-
* @generated MessageType for protobuf message services.documents.
|
|
855
|
+
* @generated MessageType for protobuf message services.documents.ListDocumentsResponse
|
|
977
856
|
*/
|
|
978
|
-
export const
|
|
857
|
+
export const ListDocumentsResponse = new ListDocumentsResponse$Type();
|
|
979
858
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
980
|
-
class
|
|
859
|
+
class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
981
860
|
constructor() {
|
|
982
|
-
super("services.documents.
|
|
983
|
-
{ no: 1, name: "
|
|
984
|
-
{ no: 2, name: "
|
|
985
|
-
{ no: 3, name: "render", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
861
|
+
super("services.documents.GetDocumentRequest", [
|
|
862
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
863
|
+
{ no: 2, name: "info_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
986
864
|
]);
|
|
987
865
|
}
|
|
988
|
-
create(value?: PartialMessage<
|
|
866
|
+
create(value?: PartialMessage<GetDocumentRequest>): GetDocumentRequest {
|
|
989
867
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
990
|
-
message.
|
|
868
|
+
message.documentId = 0;
|
|
991
869
|
if (value !== undefined)
|
|
992
|
-
reflectionMergePartial<
|
|
870
|
+
reflectionMergePartial<GetDocumentRequest>(this, message, value);
|
|
993
871
|
return message;
|
|
994
872
|
}
|
|
995
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
873
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentRequest): GetDocumentRequest {
|
|
996
874
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
997
875
|
while (reader.pos < end) {
|
|
998
876
|
let [fieldNo, wireType] = reader.tag();
|
|
999
877
|
switch (fieldNo) {
|
|
1000
|
-
case /* int64
|
|
1001
|
-
message.
|
|
1002
|
-
break;
|
|
1003
|
-
case /* optional resources.documents.templates.TemplateData data */ 2:
|
|
1004
|
-
message.data = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
878
|
+
case /* int64 document_id */ 1:
|
|
879
|
+
message.documentId = reader.int64().toNumber();
|
|
1005
880
|
break;
|
|
1006
|
-
case /* optional bool
|
|
1007
|
-
message.
|
|
881
|
+
case /* optional bool info_only */ 2:
|
|
882
|
+
message.infoOnly = reader.bool();
|
|
1008
883
|
break;
|
|
1009
884
|
default:
|
|
1010
885
|
let u = options.readUnknownField;
|
|
@@ -1017,16 +892,13 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1017
892
|
}
|
|
1018
893
|
return message;
|
|
1019
894
|
}
|
|
1020
|
-
internalBinaryWrite(message:
|
|
1021
|
-
/* int64
|
|
1022
|
-
if (message.
|
|
1023
|
-
writer.tag(1, WireType.Varint).int64(message.
|
|
1024
|
-
/* optional
|
|
1025
|
-
if (message.
|
|
1026
|
-
|
|
1027
|
-
/* optional bool render = 3; */
|
|
1028
|
-
if (message.render !== undefined)
|
|
1029
|
-
writer.tag(3, WireType.Varint).bool(message.render);
|
|
895
|
+
internalBinaryWrite(message: GetDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
896
|
+
/* int64 document_id = 1; */
|
|
897
|
+
if (message.documentId !== 0)
|
|
898
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
899
|
+
/* optional bool info_only = 2; */
|
|
900
|
+
if (message.infoOnly !== undefined)
|
|
901
|
+
writer.tag(2, WireType.Varint).bool(message.infoOnly);
|
|
1030
902
|
let u = options.writeUnknownFields;
|
|
1031
903
|
if (u !== false)
|
|
1032
904
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1034,34 +906,33 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1034
906
|
}
|
|
1035
907
|
}
|
|
1036
908
|
/**
|
|
1037
|
-
* @generated MessageType for protobuf message services.documents.
|
|
909
|
+
* @generated MessageType for protobuf message services.documents.GetDocumentRequest
|
|
1038
910
|
*/
|
|
1039
|
-
export const
|
|
911
|
+
export const GetDocumentRequest = new GetDocumentRequest$Type();
|
|
1040
912
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1041
|
-
class
|
|
913
|
+
class GetDocumentResponse$Type extends MessageType<GetDocumentResponse> {
|
|
1042
914
|
constructor() {
|
|
1043
|
-
super("services.documents.
|
|
1044
|
-
{ no: 1, name: "
|
|
1045
|
-
{ no: 2, name: "
|
|
915
|
+
super("services.documents.GetDocumentResponse", [
|
|
916
|
+
{ no: 1, name: "document", kind: "message", T: () => Document },
|
|
917
|
+
{ no: 2, name: "access", kind: "message", T: () => DocumentAccess }
|
|
1046
918
|
]);
|
|
1047
919
|
}
|
|
1048
|
-
create(value?: PartialMessage<
|
|
920
|
+
create(value?: PartialMessage<GetDocumentResponse>): GetDocumentResponse {
|
|
1049
921
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1050
|
-
message.rendered = false;
|
|
1051
922
|
if (value !== undefined)
|
|
1052
|
-
reflectionMergePartial<
|
|
923
|
+
reflectionMergePartial<GetDocumentResponse>(this, message, value);
|
|
1053
924
|
return message;
|
|
1054
925
|
}
|
|
1055
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
926
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentResponse): GetDocumentResponse {
|
|
1056
927
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1057
928
|
while (reader.pos < end) {
|
|
1058
929
|
let [fieldNo, wireType] = reader.tag();
|
|
1059
930
|
switch (fieldNo) {
|
|
1060
|
-
case /* resources.documents.
|
|
1061
|
-
message.
|
|
931
|
+
case /* resources.documents.Document document */ 1:
|
|
932
|
+
message.document = Document.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
1062
933
|
break;
|
|
1063
|
-
case /*
|
|
1064
|
-
message.
|
|
934
|
+
case /* resources.documents.access.DocumentAccess access */ 2:
|
|
935
|
+
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
1065
936
|
break;
|
|
1066
937
|
default:
|
|
1067
938
|
let u = options.readUnknownField;
|
|
@@ -1074,13 +945,13 @@ class GetTemplateResponse$Type extends MessageType<GetTemplateResponse> {
|
|
|
1074
945
|
}
|
|
1075
946
|
return message;
|
|
1076
947
|
}
|
|
1077
|
-
internalBinaryWrite(message:
|
|
1078
|
-
/* resources.documents.
|
|
1079
|
-
if (message.
|
|
1080
|
-
|
|
1081
|
-
/*
|
|
1082
|
-
if (message.
|
|
1083
|
-
writer.tag(2, WireType.
|
|
948
|
+
internalBinaryWrite(message: GetDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
949
|
+
/* resources.documents.Document document = 1; */
|
|
950
|
+
if (message.document)
|
|
951
|
+
Document.internalBinaryWrite(message.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
952
|
+
/* resources.documents.access.DocumentAccess access = 2; */
|
|
953
|
+
if (message.access)
|
|
954
|
+
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1084
955
|
let u = options.writeUnknownFields;
|
|
1085
956
|
if (u !== false)
|
|
1086
957
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1088,29 +959,30 @@ class GetTemplateResponse$Type extends MessageType<GetTemplateResponse> {
|
|
|
1088
959
|
}
|
|
1089
960
|
}
|
|
1090
961
|
/**
|
|
1091
|
-
* @generated MessageType for protobuf message services.documents.
|
|
962
|
+
* @generated MessageType for protobuf message services.documents.GetDocumentResponse
|
|
1092
963
|
*/
|
|
1093
|
-
export const
|
|
964
|
+
export const GetDocumentResponse = new GetDocumentResponse$Type();
|
|
1094
965
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1095
|
-
class
|
|
966
|
+
class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReferencesRequest> {
|
|
1096
967
|
constructor() {
|
|
1097
|
-
super("services.documents.
|
|
1098
|
-
{ no: 1, name: "
|
|
968
|
+
super("services.documents.GetDocumentReferencesRequest", [
|
|
969
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1099
970
|
]);
|
|
1100
971
|
}
|
|
1101
|
-
create(value?: PartialMessage<
|
|
972
|
+
create(value?: PartialMessage<GetDocumentReferencesRequest>): GetDocumentReferencesRequest {
|
|
1102
973
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
974
|
+
message.documentId = 0;
|
|
1103
975
|
if (value !== undefined)
|
|
1104
|
-
reflectionMergePartial<
|
|
976
|
+
reflectionMergePartial<GetDocumentReferencesRequest>(this, message, value);
|
|
1105
977
|
return message;
|
|
1106
978
|
}
|
|
1107
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
979
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentReferencesRequest): GetDocumentReferencesRequest {
|
|
1108
980
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1109
981
|
while (reader.pos < end) {
|
|
1110
982
|
let [fieldNo, wireType] = reader.tag();
|
|
1111
983
|
switch (fieldNo) {
|
|
1112
|
-
case /*
|
|
1113
|
-
message.
|
|
984
|
+
case /* int64 document_id */ 1:
|
|
985
|
+
message.documentId = reader.int64().toNumber();
|
|
1114
986
|
break;
|
|
1115
987
|
default:
|
|
1116
988
|
let u = options.readUnknownField;
|
|
@@ -1123,10 +995,10 @@ class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
|
1123
995
|
}
|
|
1124
996
|
return message;
|
|
1125
997
|
}
|
|
1126
|
-
internalBinaryWrite(message:
|
|
1127
|
-
/*
|
|
1128
|
-
if (message.
|
|
1129
|
-
|
|
998
|
+
internalBinaryWrite(message: GetDocumentReferencesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
999
|
+
/* int64 document_id = 1; */
|
|
1000
|
+
if (message.documentId !== 0)
|
|
1001
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1130
1002
|
let u = options.writeUnknownFields;
|
|
1131
1003
|
if (u !== false)
|
|
1132
1004
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1134,30 +1006,30 @@ class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
|
1134
1006
|
}
|
|
1135
1007
|
}
|
|
1136
1008
|
/**
|
|
1137
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1009
|
+
* @generated MessageType for protobuf message services.documents.GetDocumentReferencesRequest
|
|
1138
1010
|
*/
|
|
1139
|
-
export const
|
|
1011
|
+
export const GetDocumentReferencesRequest = new GetDocumentReferencesRequest$Type();
|
|
1140
1012
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1141
|
-
class
|
|
1013
|
+
class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferencesResponse> {
|
|
1142
1014
|
constructor() {
|
|
1143
|
-
super("services.documents.
|
|
1144
|
-
{ no: 1, name: "
|
|
1015
|
+
super("services.documents.GetDocumentReferencesResponse", [
|
|
1016
|
+
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentReference, options: { "tagger.tags": "alias:\"reference\"" } }
|
|
1145
1017
|
]);
|
|
1146
1018
|
}
|
|
1147
|
-
create(value?: PartialMessage<
|
|
1019
|
+
create(value?: PartialMessage<GetDocumentReferencesResponse>): GetDocumentReferencesResponse {
|
|
1148
1020
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1149
|
-
message.
|
|
1021
|
+
message.references = [];
|
|
1150
1022
|
if (value !== undefined)
|
|
1151
|
-
reflectionMergePartial<
|
|
1023
|
+
reflectionMergePartial<GetDocumentReferencesResponse>(this, message, value);
|
|
1152
1024
|
return message;
|
|
1153
1025
|
}
|
|
1154
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1026
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentReferencesResponse): GetDocumentReferencesResponse {
|
|
1155
1027
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1156
1028
|
while (reader.pos < end) {
|
|
1157
1029
|
let [fieldNo, wireType] = reader.tag();
|
|
1158
1030
|
switch (fieldNo) {
|
|
1159
|
-
case /*
|
|
1160
|
-
message.
|
|
1031
|
+
case /* repeated resources.documents.references.DocumentReference references */ 1:
|
|
1032
|
+
message.references.push(DocumentReference.internalBinaryRead(reader, reader.uint32(), options));
|
|
1161
1033
|
break;
|
|
1162
1034
|
default:
|
|
1163
1035
|
let u = options.readUnknownField;
|
|
@@ -1170,10 +1042,10 @@ class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
|
1170
1042
|
}
|
|
1171
1043
|
return message;
|
|
1172
1044
|
}
|
|
1173
|
-
internalBinaryWrite(message:
|
|
1174
|
-
/*
|
|
1175
|
-
|
|
1176
|
-
writer.tag(1, WireType.
|
|
1045
|
+
internalBinaryWrite(message: GetDocumentReferencesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1046
|
+
/* repeated resources.documents.references.DocumentReference references = 1; */
|
|
1047
|
+
for (let i = 0; i < message.references.length; i++)
|
|
1048
|
+
DocumentReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1177
1049
|
let u = options.writeUnknownFields;
|
|
1178
1050
|
if (u !== false)
|
|
1179
1051
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1181,29 +1053,30 @@ class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
|
1181
1053
|
}
|
|
1182
1054
|
}
|
|
1183
1055
|
/**
|
|
1184
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1056
|
+
* @generated MessageType for protobuf message services.documents.GetDocumentReferencesResponse
|
|
1185
1057
|
*/
|
|
1186
|
-
export const
|
|
1058
|
+
export const GetDocumentReferencesResponse = new GetDocumentReferencesResponse$Type();
|
|
1187
1059
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1188
|
-
class
|
|
1060
|
+
class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsRequest> {
|
|
1189
1061
|
constructor() {
|
|
1190
|
-
super("services.documents.
|
|
1191
|
-
{ no: 1, name: "
|
|
1062
|
+
super("services.documents.GetDocumentRelationsRequest", [
|
|
1063
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1192
1064
|
]);
|
|
1193
1065
|
}
|
|
1194
|
-
create(value?: PartialMessage<
|
|
1066
|
+
create(value?: PartialMessage<GetDocumentRelationsRequest>): GetDocumentRelationsRequest {
|
|
1195
1067
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1068
|
+
message.documentId = 0;
|
|
1196
1069
|
if (value !== undefined)
|
|
1197
|
-
reflectionMergePartial<
|
|
1070
|
+
reflectionMergePartial<GetDocumentRelationsRequest>(this, message, value);
|
|
1198
1071
|
return message;
|
|
1199
1072
|
}
|
|
1200
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1073
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentRelationsRequest): GetDocumentRelationsRequest {
|
|
1201
1074
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1202
1075
|
while (reader.pos < end) {
|
|
1203
1076
|
let [fieldNo, wireType] = reader.tag();
|
|
1204
1077
|
switch (fieldNo) {
|
|
1205
|
-
case /*
|
|
1206
|
-
message.
|
|
1078
|
+
case /* int64 document_id */ 1:
|
|
1079
|
+
message.documentId = reader.int64().toNumber();
|
|
1207
1080
|
break;
|
|
1208
1081
|
default:
|
|
1209
1082
|
let u = options.readUnknownField;
|
|
@@ -1216,10 +1089,10 @@ class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
|
1216
1089
|
}
|
|
1217
1090
|
return message;
|
|
1218
1091
|
}
|
|
1219
|
-
internalBinaryWrite(message:
|
|
1220
|
-
/*
|
|
1221
|
-
if (message.
|
|
1222
|
-
|
|
1092
|
+
internalBinaryWrite(message: GetDocumentRelationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1093
|
+
/* int64 document_id = 1; */
|
|
1094
|
+
if (message.documentId !== 0)
|
|
1095
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1223
1096
|
let u = options.writeUnknownFields;
|
|
1224
1097
|
if (u !== false)
|
|
1225
1098
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1227,29 +1100,30 @@ class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
|
1227
1100
|
}
|
|
1228
1101
|
}
|
|
1229
1102
|
/**
|
|
1230
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1103
|
+
* @generated MessageType for protobuf message services.documents.GetDocumentRelationsRequest
|
|
1231
1104
|
*/
|
|
1232
|
-
export const
|
|
1105
|
+
export const GetDocumentRelationsRequest = new GetDocumentRelationsRequest$Type();
|
|
1233
1106
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1234
|
-
class
|
|
1107
|
+
class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelationsResponse> {
|
|
1235
1108
|
constructor() {
|
|
1236
|
-
super("services.documents.
|
|
1237
|
-
{ no: 1, name: "
|
|
1109
|
+
super("services.documents.GetDocumentRelationsResponse", [
|
|
1110
|
+
{ no: 1, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation, options: { "tagger.tags": "alias:\"relation\"" } }
|
|
1238
1111
|
]);
|
|
1239
1112
|
}
|
|
1240
|
-
create(value?: PartialMessage<
|
|
1113
|
+
create(value?: PartialMessage<GetDocumentRelationsResponse>): GetDocumentRelationsResponse {
|
|
1241
1114
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1115
|
+
message.relations = [];
|
|
1242
1116
|
if (value !== undefined)
|
|
1243
|
-
reflectionMergePartial<
|
|
1117
|
+
reflectionMergePartial<GetDocumentRelationsResponse>(this, message, value);
|
|
1244
1118
|
return message;
|
|
1245
1119
|
}
|
|
1246
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1120
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentRelationsResponse): GetDocumentRelationsResponse {
|
|
1247
1121
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1248
1122
|
while (reader.pos < end) {
|
|
1249
1123
|
let [fieldNo, wireType] = reader.tag();
|
|
1250
1124
|
switch (fieldNo) {
|
|
1251
|
-
case /* resources.documents.
|
|
1252
|
-
message.
|
|
1125
|
+
case /* repeated resources.documents.relations.DocumentRelation relations */ 1:
|
|
1126
|
+
message.relations.push(DocumentRelation.internalBinaryRead(reader, reader.uint32(), options));
|
|
1253
1127
|
break;
|
|
1254
1128
|
default:
|
|
1255
1129
|
let u = options.readUnknownField;
|
|
@@ -1262,10 +1136,10 @@ class UpdateTemplateResponse$Type extends MessageType<UpdateTemplateResponse> {
|
|
|
1262
1136
|
}
|
|
1263
1137
|
return message;
|
|
1264
1138
|
}
|
|
1265
|
-
internalBinaryWrite(message:
|
|
1266
|
-
/* resources.documents.
|
|
1267
|
-
|
|
1268
|
-
|
|
1139
|
+
internalBinaryWrite(message: GetDocumentRelationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1140
|
+
/* repeated resources.documents.relations.DocumentRelation relations = 1; */
|
|
1141
|
+
for (let i = 0; i < message.relations.length; i++)
|
|
1142
|
+
DocumentRelation.internalBinaryWrite(message.relations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1269
1143
|
let u = options.writeUnknownFields;
|
|
1270
1144
|
if (u !== false)
|
|
1271
1145
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1273,30 +1147,29 @@ class UpdateTemplateResponse$Type extends MessageType<UpdateTemplateResponse> {
|
|
|
1273
1147
|
}
|
|
1274
1148
|
}
|
|
1275
1149
|
/**
|
|
1276
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1150
|
+
* @generated MessageType for protobuf message services.documents.GetDocumentRelationsResponse
|
|
1277
1151
|
*/
|
|
1278
|
-
export const
|
|
1152
|
+
export const GetDocumentRelationsResponse = new GetDocumentRelationsResponse$Type();
|
|
1279
1153
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1280
|
-
class
|
|
1154
|
+
class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceRequest> {
|
|
1281
1155
|
constructor() {
|
|
1282
|
-
super("services.documents.
|
|
1283
|
-
{ no: 1, name: "
|
|
1156
|
+
super("services.documents.AddDocumentReferenceRequest", [
|
|
1157
|
+
{ no: 1, name: "reference", kind: "message", T: () => DocumentReference, options: { "buf.validate.field": { required: true } } }
|
|
1284
1158
|
]);
|
|
1285
1159
|
}
|
|
1286
|
-
create(value?: PartialMessage<
|
|
1160
|
+
create(value?: PartialMessage<AddDocumentReferenceRequest>): AddDocumentReferenceRequest {
|
|
1287
1161
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1288
|
-
message.id = 0;
|
|
1289
1162
|
if (value !== undefined)
|
|
1290
|
-
reflectionMergePartial<
|
|
1163
|
+
reflectionMergePartial<AddDocumentReferenceRequest>(this, message, value);
|
|
1291
1164
|
return message;
|
|
1292
1165
|
}
|
|
1293
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1166
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentReferenceRequest): AddDocumentReferenceRequest {
|
|
1294
1167
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1295
1168
|
while (reader.pos < end) {
|
|
1296
1169
|
let [fieldNo, wireType] = reader.tag();
|
|
1297
1170
|
switch (fieldNo) {
|
|
1298
|
-
case /*
|
|
1299
|
-
message.
|
|
1171
|
+
case /* resources.documents.references.DocumentReference reference */ 1:
|
|
1172
|
+
message.reference = DocumentReference.internalBinaryRead(reader, reader.uint32(), options, message.reference);
|
|
1300
1173
|
break;
|
|
1301
1174
|
default:
|
|
1302
1175
|
let u = options.readUnknownField;
|
|
@@ -1309,10 +1182,10 @@ class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
|
1309
1182
|
}
|
|
1310
1183
|
return message;
|
|
1311
1184
|
}
|
|
1312
|
-
internalBinaryWrite(message:
|
|
1313
|
-
/*
|
|
1314
|
-
if (message.
|
|
1315
|
-
writer.tag(1, WireType.
|
|
1185
|
+
internalBinaryWrite(message: AddDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1186
|
+
/* resources.documents.references.DocumentReference reference = 1; */
|
|
1187
|
+
if (message.reference)
|
|
1188
|
+
DocumentReference.internalBinaryWrite(message.reference, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1316
1189
|
let u = options.writeUnknownFields;
|
|
1317
1190
|
if (u !== false)
|
|
1318
1191
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1320,25 +1193,31 @@ class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
|
1320
1193
|
}
|
|
1321
1194
|
}
|
|
1322
1195
|
/**
|
|
1323
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1196
|
+
* @generated MessageType for protobuf message services.documents.AddDocumentReferenceRequest
|
|
1324
1197
|
*/
|
|
1325
|
-
export const
|
|
1198
|
+
export const AddDocumentReferenceRequest = new AddDocumentReferenceRequest$Type();
|
|
1326
1199
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1327
|
-
class
|
|
1200
|
+
class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReferenceResponse> {
|
|
1328
1201
|
constructor() {
|
|
1329
|
-
super("services.documents.
|
|
1202
|
+
super("services.documents.AddDocumentReferenceResponse", [
|
|
1203
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1204
|
+
]);
|
|
1330
1205
|
}
|
|
1331
|
-
create(value?: PartialMessage<
|
|
1206
|
+
create(value?: PartialMessage<AddDocumentReferenceResponse>): AddDocumentReferenceResponse {
|
|
1332
1207
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1208
|
+
message.id = 0;
|
|
1333
1209
|
if (value !== undefined)
|
|
1334
|
-
reflectionMergePartial<
|
|
1210
|
+
reflectionMergePartial<AddDocumentReferenceResponse>(this, message, value);
|
|
1335
1211
|
return message;
|
|
1336
1212
|
}
|
|
1337
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1213
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentReferenceResponse): AddDocumentReferenceResponse {
|
|
1338
1214
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1339
1215
|
while (reader.pos < end) {
|
|
1340
1216
|
let [fieldNo, wireType] = reader.tag();
|
|
1341
1217
|
switch (fieldNo) {
|
|
1218
|
+
case /* int64 id */ 1:
|
|
1219
|
+
message.id = reader.int64().toNumber();
|
|
1220
|
+
break;
|
|
1342
1221
|
default:
|
|
1343
1222
|
let u = options.readUnknownField;
|
|
1344
1223
|
if (u === "throw")
|
|
@@ -1350,7 +1229,10 @@ class DeleteTemplateResponse$Type extends MessageType<DeleteTemplateResponse> {
|
|
|
1350
1229
|
}
|
|
1351
1230
|
return message;
|
|
1352
1231
|
}
|
|
1353
|
-
internalBinaryWrite(message:
|
|
1232
|
+
internalBinaryWrite(message: AddDocumentReferenceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1233
|
+
/* int64 id = 1; */
|
|
1234
|
+
if (message.id !== 0)
|
|
1235
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1354
1236
|
let u = options.writeUnknownFields;
|
|
1355
1237
|
if (u !== false)
|
|
1356
1238
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1358,80 +1240,30 @@ class DeleteTemplateResponse$Type extends MessageType<DeleteTemplateResponse> {
|
|
|
1358
1240
|
}
|
|
1359
1241
|
}
|
|
1360
1242
|
/**
|
|
1361
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1243
|
+
* @generated MessageType for protobuf message services.documents.AddDocumentReferenceResponse
|
|
1362
1244
|
*/
|
|
1363
|
-
export const
|
|
1245
|
+
export const AddDocumentReferenceResponse = new AddDocumentReferenceResponse$Type();
|
|
1364
1246
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1365
|
-
class
|
|
1247
|
+
class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentReferenceRequest> {
|
|
1366
1248
|
constructor() {
|
|
1367
|
-
super("services.documents.
|
|
1368
|
-
{ no: 1, name: "
|
|
1369
|
-
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
1370
|
-
{ no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
1371
|
-
{ no: 4, name: "category_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
1372
|
-
{ no: 5, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
1373
|
-
{ no: 6, name: "from", kind: "message", T: () => Timestamp },
|
|
1374
|
-
{ no: 7, name: "to", kind: "message", T: () => Timestamp },
|
|
1375
|
-
{ no: 8, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1376
|
-
{ no: 9, name: "document_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
1377
|
-
{ no: 10, name: "only_drafts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1249
|
+
super("services.documents.RemoveDocumentReferenceRequest", [
|
|
1250
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1378
1251
|
]);
|
|
1379
1252
|
}
|
|
1380
|
-
create(value?: PartialMessage<
|
|
1253
|
+
create(value?: PartialMessage<RemoveDocumentReferenceRequest>): RemoveDocumentReferenceRequest {
|
|
1381
1254
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1382
|
-
message.
|
|
1383
|
-
message.creatorIds = [];
|
|
1384
|
-
message.documentIds = [];
|
|
1255
|
+
message.id = 0;
|
|
1385
1256
|
if (value !== undefined)
|
|
1386
|
-
reflectionMergePartial<
|
|
1257
|
+
reflectionMergePartial<RemoveDocumentReferenceRequest>(this, message, value);
|
|
1387
1258
|
return message;
|
|
1388
1259
|
}
|
|
1389
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1260
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentReferenceRequest): RemoveDocumentReferenceRequest {
|
|
1390
1261
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1391
1262
|
while (reader.pos < end) {
|
|
1392
1263
|
let [fieldNo, wireType] = reader.tag();
|
|
1393
1264
|
switch (fieldNo) {
|
|
1394
|
-
case /*
|
|
1395
|
-
message.
|
|
1396
|
-
break;
|
|
1397
|
-
case /* optional resources.common.database.Sort sort */ 2:
|
|
1398
|
-
message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
|
1399
|
-
break;
|
|
1400
|
-
case /* optional string search */ 3:
|
|
1401
|
-
message.search = reader.string();
|
|
1402
|
-
break;
|
|
1403
|
-
case /* repeated int64 category_ids */ 4:
|
|
1404
|
-
if (wireType === WireType.LengthDelimited)
|
|
1405
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1406
|
-
message.categoryIds.push(reader.int64().toNumber());
|
|
1407
|
-
else
|
|
1408
|
-
message.categoryIds.push(reader.int64().toNumber());
|
|
1409
|
-
break;
|
|
1410
|
-
case /* repeated int32 creator_ids */ 5:
|
|
1411
|
-
if (wireType === WireType.LengthDelimited)
|
|
1412
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1413
|
-
message.creatorIds.push(reader.int32());
|
|
1414
|
-
else
|
|
1415
|
-
message.creatorIds.push(reader.int32());
|
|
1416
|
-
break;
|
|
1417
|
-
case /* optional resources.timestamp.Timestamp from */ 6:
|
|
1418
|
-
message.from = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.from);
|
|
1419
|
-
break;
|
|
1420
|
-
case /* optional resources.timestamp.Timestamp to */ 7:
|
|
1421
|
-
message.to = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.to);
|
|
1422
|
-
break;
|
|
1423
|
-
case /* optional bool closed */ 8:
|
|
1424
|
-
message.closed = reader.bool();
|
|
1425
|
-
break;
|
|
1426
|
-
case /* repeated int64 document_ids */ 9:
|
|
1427
|
-
if (wireType === WireType.LengthDelimited)
|
|
1428
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1429
|
-
message.documentIds.push(reader.int64().toNumber());
|
|
1430
|
-
else
|
|
1431
|
-
message.documentIds.push(reader.int64().toNumber());
|
|
1432
|
-
break;
|
|
1433
|
-
case /* optional bool only_drafts */ 10:
|
|
1434
|
-
message.onlyDrafts = reader.bool();
|
|
1265
|
+
case /* int64 id */ 1:
|
|
1266
|
+
message.id = reader.int64().toNumber();
|
|
1435
1267
|
break;
|
|
1436
1268
|
default:
|
|
1437
1269
|
let u = options.readUnknownField;
|
|
@@ -1444,713 +1276,7 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1444
1276
|
}
|
|
1445
1277
|
return message;
|
|
1446
1278
|
}
|
|
1447
|
-
internalBinaryWrite(message:
|
|
1448
|
-
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
1449
|
-
if (message.pagination)
|
|
1450
|
-
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1451
|
-
/* optional resources.common.database.Sort sort = 2; */
|
|
1452
|
-
if (message.sort)
|
|
1453
|
-
Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1454
|
-
/* optional string search = 3; */
|
|
1455
|
-
if (message.search !== undefined)
|
|
1456
|
-
writer.tag(3, WireType.LengthDelimited).string(message.search);
|
|
1457
|
-
/* repeated int64 category_ids = 4; */
|
|
1458
|
-
if (message.categoryIds.length) {
|
|
1459
|
-
writer.tag(4, WireType.LengthDelimited).fork();
|
|
1460
|
-
for (let i = 0; i < message.categoryIds.length; i++)
|
|
1461
|
-
writer.int64(message.categoryIds[i]);
|
|
1462
|
-
writer.join();
|
|
1463
|
-
}
|
|
1464
|
-
/* repeated int32 creator_ids = 5; */
|
|
1465
|
-
if (message.creatorIds.length) {
|
|
1466
|
-
writer.tag(5, WireType.LengthDelimited).fork();
|
|
1467
|
-
for (let i = 0; i < message.creatorIds.length; i++)
|
|
1468
|
-
writer.int32(message.creatorIds[i]);
|
|
1469
|
-
writer.join();
|
|
1470
|
-
}
|
|
1471
|
-
/* optional resources.timestamp.Timestamp from = 6; */
|
|
1472
|
-
if (message.from)
|
|
1473
|
-
Timestamp.internalBinaryWrite(message.from, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1474
|
-
/* optional resources.timestamp.Timestamp to = 7; */
|
|
1475
|
-
if (message.to)
|
|
1476
|
-
Timestamp.internalBinaryWrite(message.to, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1477
|
-
/* optional bool closed = 8; */
|
|
1478
|
-
if (message.closed !== undefined)
|
|
1479
|
-
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
1480
|
-
/* repeated int64 document_ids = 9; */
|
|
1481
|
-
if (message.documentIds.length) {
|
|
1482
|
-
writer.tag(9, WireType.LengthDelimited).fork();
|
|
1483
|
-
for (let i = 0; i < message.documentIds.length; i++)
|
|
1484
|
-
writer.int64(message.documentIds[i]);
|
|
1485
|
-
writer.join();
|
|
1486
|
-
}
|
|
1487
|
-
/* optional bool only_drafts = 10; */
|
|
1488
|
-
if (message.onlyDrafts !== undefined)
|
|
1489
|
-
writer.tag(10, WireType.Varint).bool(message.onlyDrafts);
|
|
1490
|
-
let u = options.writeUnknownFields;
|
|
1491
|
-
if (u !== false)
|
|
1492
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1493
|
-
return writer;
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
/**
|
|
1497
|
-
* @generated MessageType for protobuf message services.documents.ListDocumentsRequest
|
|
1498
|
-
*/
|
|
1499
|
-
export const ListDocumentsRequest = new ListDocumentsRequest$Type();
|
|
1500
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1501
|
-
class ListDocumentsResponse$Type extends MessageType<ListDocumentsResponse> {
|
|
1502
|
-
constructor() {
|
|
1503
|
-
super("services.documents.ListDocumentsResponse", [
|
|
1504
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
1505
|
-
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "codegen.itemslen.enabled": true } }
|
|
1506
|
-
]);
|
|
1507
|
-
}
|
|
1508
|
-
create(value?: PartialMessage<ListDocumentsResponse>): ListDocumentsResponse {
|
|
1509
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1510
|
-
message.documents = [];
|
|
1511
|
-
if (value !== undefined)
|
|
1512
|
-
reflectionMergePartial<ListDocumentsResponse>(this, message, value);
|
|
1513
|
-
return message;
|
|
1514
|
-
}
|
|
1515
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDocumentsResponse): ListDocumentsResponse {
|
|
1516
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1517
|
-
while (reader.pos < end) {
|
|
1518
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1519
|
-
switch (fieldNo) {
|
|
1520
|
-
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
1521
|
-
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
1522
|
-
break;
|
|
1523
|
-
case /* repeated resources.documents.DocumentShort documents */ 2:
|
|
1524
|
-
message.documents.push(DocumentShort.internalBinaryRead(reader, reader.uint32(), options));
|
|
1525
|
-
break;
|
|
1526
|
-
default:
|
|
1527
|
-
let u = options.readUnknownField;
|
|
1528
|
-
if (u === "throw")
|
|
1529
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1530
|
-
let d = reader.skip(wireType);
|
|
1531
|
-
if (u !== false)
|
|
1532
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
return message;
|
|
1536
|
-
}
|
|
1537
|
-
internalBinaryWrite(message: ListDocumentsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1538
|
-
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
1539
|
-
if (message.pagination)
|
|
1540
|
-
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1541
|
-
/* repeated resources.documents.DocumentShort documents = 2; */
|
|
1542
|
-
for (let i = 0; i < message.documents.length; i++)
|
|
1543
|
-
DocumentShort.internalBinaryWrite(message.documents[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1544
|
-
let u = options.writeUnknownFields;
|
|
1545
|
-
if (u !== false)
|
|
1546
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1547
|
-
return writer;
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
/**
|
|
1551
|
-
* @generated MessageType for protobuf message services.documents.ListDocumentsResponse
|
|
1552
|
-
*/
|
|
1553
|
-
export const ListDocumentsResponse = new ListDocumentsResponse$Type();
|
|
1554
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1555
|
-
class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
1556
|
-
constructor() {
|
|
1557
|
-
super("services.documents.GetDocumentRequest", [
|
|
1558
|
-
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1559
|
-
{ no: 2, name: "info_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1560
|
-
]);
|
|
1561
|
-
}
|
|
1562
|
-
create(value?: PartialMessage<GetDocumentRequest>): GetDocumentRequest {
|
|
1563
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1564
|
-
message.documentId = 0;
|
|
1565
|
-
if (value !== undefined)
|
|
1566
|
-
reflectionMergePartial<GetDocumentRequest>(this, message, value);
|
|
1567
|
-
return message;
|
|
1568
|
-
}
|
|
1569
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentRequest): GetDocumentRequest {
|
|
1570
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1571
|
-
while (reader.pos < end) {
|
|
1572
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1573
|
-
switch (fieldNo) {
|
|
1574
|
-
case /* int64 document_id */ 1:
|
|
1575
|
-
message.documentId = reader.int64().toNumber();
|
|
1576
|
-
break;
|
|
1577
|
-
case /* optional bool info_only */ 2:
|
|
1578
|
-
message.infoOnly = reader.bool();
|
|
1579
|
-
break;
|
|
1580
|
-
default:
|
|
1581
|
-
let u = options.readUnknownField;
|
|
1582
|
-
if (u === "throw")
|
|
1583
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1584
|
-
let d = reader.skip(wireType);
|
|
1585
|
-
if (u !== false)
|
|
1586
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
return message;
|
|
1590
|
-
}
|
|
1591
|
-
internalBinaryWrite(message: GetDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1592
|
-
/* int64 document_id = 1; */
|
|
1593
|
-
if (message.documentId !== 0)
|
|
1594
|
-
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1595
|
-
/* optional bool info_only = 2; */
|
|
1596
|
-
if (message.infoOnly !== undefined)
|
|
1597
|
-
writer.tag(2, WireType.Varint).bool(message.infoOnly);
|
|
1598
|
-
let u = options.writeUnknownFields;
|
|
1599
|
-
if (u !== false)
|
|
1600
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1601
|
-
return writer;
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
/**
|
|
1605
|
-
* @generated MessageType for protobuf message services.documents.GetDocumentRequest
|
|
1606
|
-
*/
|
|
1607
|
-
export const GetDocumentRequest = new GetDocumentRequest$Type();
|
|
1608
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1609
|
-
class GetDocumentResponse$Type extends MessageType<GetDocumentResponse> {
|
|
1610
|
-
constructor() {
|
|
1611
|
-
super("services.documents.GetDocumentResponse", [
|
|
1612
|
-
{ no: 1, name: "document", kind: "message", T: () => Document },
|
|
1613
|
-
{ no: 2, name: "access", kind: "message", T: () => DocumentAccess }
|
|
1614
|
-
]);
|
|
1615
|
-
}
|
|
1616
|
-
create(value?: PartialMessage<GetDocumentResponse>): GetDocumentResponse {
|
|
1617
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1618
|
-
if (value !== undefined)
|
|
1619
|
-
reflectionMergePartial<GetDocumentResponse>(this, message, value);
|
|
1620
|
-
return message;
|
|
1621
|
-
}
|
|
1622
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentResponse): GetDocumentResponse {
|
|
1623
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1624
|
-
while (reader.pos < end) {
|
|
1625
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1626
|
-
switch (fieldNo) {
|
|
1627
|
-
case /* resources.documents.Document document */ 1:
|
|
1628
|
-
message.document = Document.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
1629
|
-
break;
|
|
1630
|
-
case /* resources.documents.access.DocumentAccess access */ 2:
|
|
1631
|
-
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
1632
|
-
break;
|
|
1633
|
-
default:
|
|
1634
|
-
let u = options.readUnknownField;
|
|
1635
|
-
if (u === "throw")
|
|
1636
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1637
|
-
let d = reader.skip(wireType);
|
|
1638
|
-
if (u !== false)
|
|
1639
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
return message;
|
|
1643
|
-
}
|
|
1644
|
-
internalBinaryWrite(message: GetDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1645
|
-
/* resources.documents.Document document = 1; */
|
|
1646
|
-
if (message.document)
|
|
1647
|
-
Document.internalBinaryWrite(message.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1648
|
-
/* resources.documents.access.DocumentAccess access = 2; */
|
|
1649
|
-
if (message.access)
|
|
1650
|
-
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1651
|
-
let u = options.writeUnknownFields;
|
|
1652
|
-
if (u !== false)
|
|
1653
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1654
|
-
return writer;
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
/**
|
|
1658
|
-
* @generated MessageType for protobuf message services.documents.GetDocumentResponse
|
|
1659
|
-
*/
|
|
1660
|
-
export const GetDocumentResponse = new GetDocumentResponse$Type();
|
|
1661
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1662
|
-
class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReferencesRequest> {
|
|
1663
|
-
constructor() {
|
|
1664
|
-
super("services.documents.GetDocumentReferencesRequest", [
|
|
1665
|
-
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1666
|
-
]);
|
|
1667
|
-
}
|
|
1668
|
-
create(value?: PartialMessage<GetDocumentReferencesRequest>): GetDocumentReferencesRequest {
|
|
1669
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1670
|
-
message.documentId = 0;
|
|
1671
|
-
if (value !== undefined)
|
|
1672
|
-
reflectionMergePartial<GetDocumentReferencesRequest>(this, message, value);
|
|
1673
|
-
return message;
|
|
1674
|
-
}
|
|
1675
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentReferencesRequest): GetDocumentReferencesRequest {
|
|
1676
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1677
|
-
while (reader.pos < end) {
|
|
1678
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1679
|
-
switch (fieldNo) {
|
|
1680
|
-
case /* int64 document_id */ 1:
|
|
1681
|
-
message.documentId = reader.int64().toNumber();
|
|
1682
|
-
break;
|
|
1683
|
-
default:
|
|
1684
|
-
let u = options.readUnknownField;
|
|
1685
|
-
if (u === "throw")
|
|
1686
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1687
|
-
let d = reader.skip(wireType);
|
|
1688
|
-
if (u !== false)
|
|
1689
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
return message;
|
|
1693
|
-
}
|
|
1694
|
-
internalBinaryWrite(message: GetDocumentReferencesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1695
|
-
/* int64 document_id = 1; */
|
|
1696
|
-
if (message.documentId !== 0)
|
|
1697
|
-
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1698
|
-
let u = options.writeUnknownFields;
|
|
1699
|
-
if (u !== false)
|
|
1700
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1701
|
-
return writer;
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* @generated MessageType for protobuf message services.documents.GetDocumentReferencesRequest
|
|
1706
|
-
*/
|
|
1707
|
-
export const GetDocumentReferencesRequest = new GetDocumentReferencesRequest$Type();
|
|
1708
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1709
|
-
class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferencesResponse> {
|
|
1710
|
-
constructor() {
|
|
1711
|
-
super("services.documents.GetDocumentReferencesResponse", [
|
|
1712
|
-
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentReference, options: { "tagger.tags": "alias:\"reference\"" } }
|
|
1713
|
-
]);
|
|
1714
|
-
}
|
|
1715
|
-
create(value?: PartialMessage<GetDocumentReferencesResponse>): GetDocumentReferencesResponse {
|
|
1716
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1717
|
-
message.references = [];
|
|
1718
|
-
if (value !== undefined)
|
|
1719
|
-
reflectionMergePartial<GetDocumentReferencesResponse>(this, message, value);
|
|
1720
|
-
return message;
|
|
1721
|
-
}
|
|
1722
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentReferencesResponse): GetDocumentReferencesResponse {
|
|
1723
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1724
|
-
while (reader.pos < end) {
|
|
1725
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1726
|
-
switch (fieldNo) {
|
|
1727
|
-
case /* repeated resources.documents.references.DocumentReference references */ 1:
|
|
1728
|
-
message.references.push(DocumentReference.internalBinaryRead(reader, reader.uint32(), options));
|
|
1729
|
-
break;
|
|
1730
|
-
default:
|
|
1731
|
-
let u = options.readUnknownField;
|
|
1732
|
-
if (u === "throw")
|
|
1733
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1734
|
-
let d = reader.skip(wireType);
|
|
1735
|
-
if (u !== false)
|
|
1736
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
return message;
|
|
1740
|
-
}
|
|
1741
|
-
internalBinaryWrite(message: GetDocumentReferencesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1742
|
-
/* repeated resources.documents.references.DocumentReference references = 1; */
|
|
1743
|
-
for (let i = 0; i < message.references.length; i++)
|
|
1744
|
-
DocumentReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1745
|
-
let u = options.writeUnknownFields;
|
|
1746
|
-
if (u !== false)
|
|
1747
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1748
|
-
return writer;
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
|
-
* @generated MessageType for protobuf message services.documents.GetDocumentReferencesResponse
|
|
1753
|
-
*/
|
|
1754
|
-
export const GetDocumentReferencesResponse = new GetDocumentReferencesResponse$Type();
|
|
1755
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1756
|
-
class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsRequest> {
|
|
1757
|
-
constructor() {
|
|
1758
|
-
super("services.documents.GetDocumentRelationsRequest", [
|
|
1759
|
-
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1760
|
-
]);
|
|
1761
|
-
}
|
|
1762
|
-
create(value?: PartialMessage<GetDocumentRelationsRequest>): GetDocumentRelationsRequest {
|
|
1763
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1764
|
-
message.documentId = 0;
|
|
1765
|
-
if (value !== undefined)
|
|
1766
|
-
reflectionMergePartial<GetDocumentRelationsRequest>(this, message, value);
|
|
1767
|
-
return message;
|
|
1768
|
-
}
|
|
1769
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentRelationsRequest): GetDocumentRelationsRequest {
|
|
1770
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1771
|
-
while (reader.pos < end) {
|
|
1772
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1773
|
-
switch (fieldNo) {
|
|
1774
|
-
case /* int64 document_id */ 1:
|
|
1775
|
-
message.documentId = reader.int64().toNumber();
|
|
1776
|
-
break;
|
|
1777
|
-
default:
|
|
1778
|
-
let u = options.readUnknownField;
|
|
1779
|
-
if (u === "throw")
|
|
1780
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1781
|
-
let d = reader.skip(wireType);
|
|
1782
|
-
if (u !== false)
|
|
1783
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
return message;
|
|
1787
|
-
}
|
|
1788
|
-
internalBinaryWrite(message: GetDocumentRelationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1789
|
-
/* int64 document_id = 1; */
|
|
1790
|
-
if (message.documentId !== 0)
|
|
1791
|
-
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1792
|
-
let u = options.writeUnknownFields;
|
|
1793
|
-
if (u !== false)
|
|
1794
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1795
|
-
return writer;
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
/**
|
|
1799
|
-
* @generated MessageType for protobuf message services.documents.GetDocumentRelationsRequest
|
|
1800
|
-
*/
|
|
1801
|
-
export const GetDocumentRelationsRequest = new GetDocumentRelationsRequest$Type();
|
|
1802
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1803
|
-
class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelationsResponse> {
|
|
1804
|
-
constructor() {
|
|
1805
|
-
super("services.documents.GetDocumentRelationsResponse", [
|
|
1806
|
-
{ no: 1, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation, options: { "tagger.tags": "alias:\"relation\"" } }
|
|
1807
|
-
]);
|
|
1808
|
-
}
|
|
1809
|
-
create(value?: PartialMessage<GetDocumentRelationsResponse>): GetDocumentRelationsResponse {
|
|
1810
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1811
|
-
message.relations = [];
|
|
1812
|
-
if (value !== undefined)
|
|
1813
|
-
reflectionMergePartial<GetDocumentRelationsResponse>(this, message, value);
|
|
1814
|
-
return message;
|
|
1815
|
-
}
|
|
1816
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDocumentRelationsResponse): GetDocumentRelationsResponse {
|
|
1817
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1818
|
-
while (reader.pos < end) {
|
|
1819
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1820
|
-
switch (fieldNo) {
|
|
1821
|
-
case /* repeated resources.documents.relations.DocumentRelation relations */ 1:
|
|
1822
|
-
message.relations.push(DocumentRelation.internalBinaryRead(reader, reader.uint32(), options));
|
|
1823
|
-
break;
|
|
1824
|
-
default:
|
|
1825
|
-
let u = options.readUnknownField;
|
|
1826
|
-
if (u === "throw")
|
|
1827
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1828
|
-
let d = reader.skip(wireType);
|
|
1829
|
-
if (u !== false)
|
|
1830
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
return message;
|
|
1834
|
-
}
|
|
1835
|
-
internalBinaryWrite(message: GetDocumentRelationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1836
|
-
/* repeated resources.documents.relations.DocumentRelation relations = 1; */
|
|
1837
|
-
for (let i = 0; i < message.relations.length; i++)
|
|
1838
|
-
DocumentRelation.internalBinaryWrite(message.relations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1839
|
-
let u = options.writeUnknownFields;
|
|
1840
|
-
if (u !== false)
|
|
1841
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1842
|
-
return writer;
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
/**
|
|
1846
|
-
* @generated MessageType for protobuf message services.documents.GetDocumentRelationsResponse
|
|
1847
|
-
*/
|
|
1848
|
-
export const GetDocumentRelationsResponse = new GetDocumentRelationsResponse$Type();
|
|
1849
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1850
|
-
class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceRequest> {
|
|
1851
|
-
constructor() {
|
|
1852
|
-
super("services.documents.AddDocumentReferenceRequest", [
|
|
1853
|
-
{ no: 1, name: "reference", kind: "message", T: () => DocumentReference, options: { "buf.validate.field": { required: true } } }
|
|
1854
|
-
]);
|
|
1855
|
-
}
|
|
1856
|
-
create(value?: PartialMessage<AddDocumentReferenceRequest>): AddDocumentReferenceRequest {
|
|
1857
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1858
|
-
if (value !== undefined)
|
|
1859
|
-
reflectionMergePartial<AddDocumentReferenceRequest>(this, message, value);
|
|
1860
|
-
return message;
|
|
1861
|
-
}
|
|
1862
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentReferenceRequest): AddDocumentReferenceRequest {
|
|
1863
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1864
|
-
while (reader.pos < end) {
|
|
1865
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1866
|
-
switch (fieldNo) {
|
|
1867
|
-
case /* resources.documents.references.DocumentReference reference */ 1:
|
|
1868
|
-
message.reference = DocumentReference.internalBinaryRead(reader, reader.uint32(), options, message.reference);
|
|
1869
|
-
break;
|
|
1870
|
-
default:
|
|
1871
|
-
let u = options.readUnknownField;
|
|
1872
|
-
if (u === "throw")
|
|
1873
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1874
|
-
let d = reader.skip(wireType);
|
|
1875
|
-
if (u !== false)
|
|
1876
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
return message;
|
|
1880
|
-
}
|
|
1881
|
-
internalBinaryWrite(message: AddDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1882
|
-
/* resources.documents.references.DocumentReference reference = 1; */
|
|
1883
|
-
if (message.reference)
|
|
1884
|
-
DocumentReference.internalBinaryWrite(message.reference, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1885
|
-
let u = options.writeUnknownFields;
|
|
1886
|
-
if (u !== false)
|
|
1887
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1888
|
-
return writer;
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
/**
|
|
1892
|
-
* @generated MessageType for protobuf message services.documents.AddDocumentReferenceRequest
|
|
1893
|
-
*/
|
|
1894
|
-
export const AddDocumentReferenceRequest = new AddDocumentReferenceRequest$Type();
|
|
1895
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1896
|
-
class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReferenceResponse> {
|
|
1897
|
-
constructor() {
|
|
1898
|
-
super("services.documents.AddDocumentReferenceResponse", [
|
|
1899
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1900
|
-
]);
|
|
1901
|
-
}
|
|
1902
|
-
create(value?: PartialMessage<AddDocumentReferenceResponse>): AddDocumentReferenceResponse {
|
|
1903
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1904
|
-
message.id = 0;
|
|
1905
|
-
if (value !== undefined)
|
|
1906
|
-
reflectionMergePartial<AddDocumentReferenceResponse>(this, message, value);
|
|
1907
|
-
return message;
|
|
1908
|
-
}
|
|
1909
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentReferenceResponse): AddDocumentReferenceResponse {
|
|
1910
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1911
|
-
while (reader.pos < end) {
|
|
1912
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1913
|
-
switch (fieldNo) {
|
|
1914
|
-
case /* int64 id */ 1:
|
|
1915
|
-
message.id = reader.int64().toNumber();
|
|
1916
|
-
break;
|
|
1917
|
-
default:
|
|
1918
|
-
let u = options.readUnknownField;
|
|
1919
|
-
if (u === "throw")
|
|
1920
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1921
|
-
let d = reader.skip(wireType);
|
|
1922
|
-
if (u !== false)
|
|
1923
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
return message;
|
|
1927
|
-
}
|
|
1928
|
-
internalBinaryWrite(message: AddDocumentReferenceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1929
|
-
/* int64 id = 1; */
|
|
1930
|
-
if (message.id !== 0)
|
|
1931
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1932
|
-
let u = options.writeUnknownFields;
|
|
1933
|
-
if (u !== false)
|
|
1934
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1935
|
-
return writer;
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
/**
|
|
1939
|
-
* @generated MessageType for protobuf message services.documents.AddDocumentReferenceResponse
|
|
1940
|
-
*/
|
|
1941
|
-
export const AddDocumentReferenceResponse = new AddDocumentReferenceResponse$Type();
|
|
1942
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1943
|
-
class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentReferenceRequest> {
|
|
1944
|
-
constructor() {
|
|
1945
|
-
super("services.documents.RemoveDocumentReferenceRequest", [
|
|
1946
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1947
|
-
]);
|
|
1948
|
-
}
|
|
1949
|
-
create(value?: PartialMessage<RemoveDocumentReferenceRequest>): RemoveDocumentReferenceRequest {
|
|
1950
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1951
|
-
message.id = 0;
|
|
1952
|
-
if (value !== undefined)
|
|
1953
|
-
reflectionMergePartial<RemoveDocumentReferenceRequest>(this, message, value);
|
|
1954
|
-
return message;
|
|
1955
|
-
}
|
|
1956
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentReferenceRequest): RemoveDocumentReferenceRequest {
|
|
1957
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1958
|
-
while (reader.pos < end) {
|
|
1959
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1960
|
-
switch (fieldNo) {
|
|
1961
|
-
case /* int64 id */ 1:
|
|
1962
|
-
message.id = reader.int64().toNumber();
|
|
1963
|
-
break;
|
|
1964
|
-
default:
|
|
1965
|
-
let u = options.readUnknownField;
|
|
1966
|
-
if (u === "throw")
|
|
1967
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1968
|
-
let d = reader.skip(wireType);
|
|
1969
|
-
if (u !== false)
|
|
1970
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
return message;
|
|
1974
|
-
}
|
|
1975
|
-
internalBinaryWrite(message: RemoveDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1976
|
-
/* int64 id = 1; */
|
|
1977
|
-
if (message.id !== 0)
|
|
1978
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1979
|
-
let u = options.writeUnknownFields;
|
|
1980
|
-
if (u !== false)
|
|
1981
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1982
|
-
return writer;
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
/**
|
|
1986
|
-
* @generated MessageType for protobuf message services.documents.RemoveDocumentReferenceRequest
|
|
1987
|
-
*/
|
|
1988
|
-
export const RemoveDocumentReferenceRequest = new RemoveDocumentReferenceRequest$Type();
|
|
1989
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1990
|
-
class RemoveDocumentReferenceResponse$Type extends MessageType<RemoveDocumentReferenceResponse> {
|
|
1991
|
-
constructor() {
|
|
1992
|
-
super("services.documents.RemoveDocumentReferenceResponse", []);
|
|
1993
|
-
}
|
|
1994
|
-
create(value?: PartialMessage<RemoveDocumentReferenceResponse>): RemoveDocumentReferenceResponse {
|
|
1995
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1996
|
-
if (value !== undefined)
|
|
1997
|
-
reflectionMergePartial<RemoveDocumentReferenceResponse>(this, message, value);
|
|
1998
|
-
return message;
|
|
1999
|
-
}
|
|
2000
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentReferenceResponse): RemoveDocumentReferenceResponse {
|
|
2001
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2002
|
-
while (reader.pos < end) {
|
|
2003
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2004
|
-
switch (fieldNo) {
|
|
2005
|
-
default:
|
|
2006
|
-
let u = options.readUnknownField;
|
|
2007
|
-
if (u === "throw")
|
|
2008
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2009
|
-
let d = reader.skip(wireType);
|
|
2010
|
-
if (u !== false)
|
|
2011
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
return message;
|
|
2015
|
-
}
|
|
2016
|
-
internalBinaryWrite(message: RemoveDocumentReferenceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2017
|
-
let u = options.writeUnknownFields;
|
|
2018
|
-
if (u !== false)
|
|
2019
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2020
|
-
return writer;
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
/**
|
|
2024
|
-
* @generated MessageType for protobuf message services.documents.RemoveDocumentReferenceResponse
|
|
2025
|
-
*/
|
|
2026
|
-
export const RemoveDocumentReferenceResponse = new RemoveDocumentReferenceResponse$Type();
|
|
2027
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2028
|
-
class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationRequest> {
|
|
2029
|
-
constructor() {
|
|
2030
|
-
super("services.documents.AddDocumentRelationRequest", [
|
|
2031
|
-
{ no: 1, name: "relation", kind: "message", T: () => DocumentRelation, options: { "buf.validate.field": { required: true } } }
|
|
2032
|
-
]);
|
|
2033
|
-
}
|
|
2034
|
-
create(value?: PartialMessage<AddDocumentRelationRequest>): AddDocumentRelationRequest {
|
|
2035
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2036
|
-
if (value !== undefined)
|
|
2037
|
-
reflectionMergePartial<AddDocumentRelationRequest>(this, message, value);
|
|
2038
|
-
return message;
|
|
2039
|
-
}
|
|
2040
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentRelationRequest): AddDocumentRelationRequest {
|
|
2041
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2042
|
-
while (reader.pos < end) {
|
|
2043
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2044
|
-
switch (fieldNo) {
|
|
2045
|
-
case /* resources.documents.relations.DocumentRelation relation */ 1:
|
|
2046
|
-
message.relation = DocumentRelation.internalBinaryRead(reader, reader.uint32(), options, message.relation);
|
|
2047
|
-
break;
|
|
2048
|
-
default:
|
|
2049
|
-
let u = options.readUnknownField;
|
|
2050
|
-
if (u === "throw")
|
|
2051
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2052
|
-
let d = reader.skip(wireType);
|
|
2053
|
-
if (u !== false)
|
|
2054
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
return message;
|
|
2058
|
-
}
|
|
2059
|
-
internalBinaryWrite(message: AddDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2060
|
-
/* resources.documents.relations.DocumentRelation relation = 1; */
|
|
2061
|
-
if (message.relation)
|
|
2062
|
-
DocumentRelation.internalBinaryWrite(message.relation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2063
|
-
let u = options.writeUnknownFields;
|
|
2064
|
-
if (u !== false)
|
|
2065
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2066
|
-
return writer;
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
/**
|
|
2070
|
-
* @generated MessageType for protobuf message services.documents.AddDocumentRelationRequest
|
|
2071
|
-
*/
|
|
2072
|
-
export const AddDocumentRelationRequest = new AddDocumentRelationRequest$Type();
|
|
2073
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2074
|
-
class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationResponse> {
|
|
2075
|
-
constructor() {
|
|
2076
|
-
super("services.documents.AddDocumentRelationResponse", [
|
|
2077
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2078
|
-
]);
|
|
2079
|
-
}
|
|
2080
|
-
create(value?: PartialMessage<AddDocumentRelationResponse>): AddDocumentRelationResponse {
|
|
2081
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2082
|
-
message.id = 0;
|
|
2083
|
-
if (value !== undefined)
|
|
2084
|
-
reflectionMergePartial<AddDocumentRelationResponse>(this, message, value);
|
|
2085
|
-
return message;
|
|
2086
|
-
}
|
|
2087
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentRelationResponse): AddDocumentRelationResponse {
|
|
2088
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2089
|
-
while (reader.pos < end) {
|
|
2090
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2091
|
-
switch (fieldNo) {
|
|
2092
|
-
case /* int64 id */ 1:
|
|
2093
|
-
message.id = reader.int64().toNumber();
|
|
2094
|
-
break;
|
|
2095
|
-
default:
|
|
2096
|
-
let u = options.readUnknownField;
|
|
2097
|
-
if (u === "throw")
|
|
2098
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2099
|
-
let d = reader.skip(wireType);
|
|
2100
|
-
if (u !== false)
|
|
2101
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
return message;
|
|
2105
|
-
}
|
|
2106
|
-
internalBinaryWrite(message: AddDocumentRelationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2107
|
-
/* int64 id = 1; */
|
|
2108
|
-
if (message.id !== 0)
|
|
2109
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2110
|
-
let u = options.writeUnknownFields;
|
|
2111
|
-
if (u !== false)
|
|
2112
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2113
|
-
return writer;
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
/**
|
|
2117
|
-
* @generated MessageType for protobuf message services.documents.AddDocumentRelationResponse
|
|
2118
|
-
*/
|
|
2119
|
-
export const AddDocumentRelationResponse = new AddDocumentRelationResponse$Type();
|
|
2120
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2121
|
-
class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelationRequest> {
|
|
2122
|
-
constructor() {
|
|
2123
|
-
super("services.documents.RemoveDocumentRelationRequest", [
|
|
2124
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2125
|
-
]);
|
|
2126
|
-
}
|
|
2127
|
-
create(value?: PartialMessage<RemoveDocumentRelationRequest>): RemoveDocumentRelationRequest {
|
|
2128
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2129
|
-
message.id = 0;
|
|
2130
|
-
if (value !== undefined)
|
|
2131
|
-
reflectionMergePartial<RemoveDocumentRelationRequest>(this, message, value);
|
|
2132
|
-
return message;
|
|
2133
|
-
}
|
|
2134
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentRelationRequest): RemoveDocumentRelationRequest {
|
|
2135
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2136
|
-
while (reader.pos < end) {
|
|
2137
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2138
|
-
switch (fieldNo) {
|
|
2139
|
-
case /* int64 id */ 1:
|
|
2140
|
-
message.id = reader.int64().toNumber();
|
|
2141
|
-
break;
|
|
2142
|
-
default:
|
|
2143
|
-
let u = options.readUnknownField;
|
|
2144
|
-
if (u === "throw")
|
|
2145
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2146
|
-
let d = reader.skip(wireType);
|
|
2147
|
-
if (u !== false)
|
|
2148
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
return message;
|
|
2152
|
-
}
|
|
2153
|
-
internalBinaryWrite(message: RemoveDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1279
|
+
internalBinaryWrite(message: RemoveDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2154
1280
|
/* int64 id = 1; */
|
|
2155
1281
|
if (message.id !== 0)
|
|
2156
1282
|
writer.tag(1, WireType.Varint).int64(message.id);
|
|
@@ -2161,222 +1287,25 @@ class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelat
|
|
|
2161
1287
|
}
|
|
2162
1288
|
}
|
|
2163
1289
|
/**
|
|
2164
|
-
* @generated MessageType for protobuf message services.documents.
|
|
2165
|
-
*/
|
|
2166
|
-
export const RemoveDocumentRelationRequest = new RemoveDocumentRelationRequest$Type();
|
|
2167
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2168
|
-
class RemoveDocumentRelationResponse$Type extends MessageType<RemoveDocumentRelationResponse> {
|
|
2169
|
-
constructor() {
|
|
2170
|
-
super("services.documents.RemoveDocumentRelationResponse", []);
|
|
2171
|
-
}
|
|
2172
|
-
create(value?: PartialMessage<RemoveDocumentRelationResponse>): RemoveDocumentRelationResponse {
|
|
2173
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2174
|
-
if (value !== undefined)
|
|
2175
|
-
reflectionMergePartial<RemoveDocumentRelationResponse>(this, message, value);
|
|
2176
|
-
return message;
|
|
2177
|
-
}
|
|
2178
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentRelationResponse): RemoveDocumentRelationResponse {
|
|
2179
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2180
|
-
while (reader.pos < end) {
|
|
2181
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2182
|
-
switch (fieldNo) {
|
|
2183
|
-
default:
|
|
2184
|
-
let u = options.readUnknownField;
|
|
2185
|
-
if (u === "throw")
|
|
2186
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2187
|
-
let d = reader.skip(wireType);
|
|
2188
|
-
if (u !== false)
|
|
2189
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
return message;
|
|
2193
|
-
}
|
|
2194
|
-
internalBinaryWrite(message: RemoveDocumentRelationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2195
|
-
let u = options.writeUnknownFields;
|
|
2196
|
-
if (u !== false)
|
|
2197
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2198
|
-
return writer;
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
/**
|
|
2202
|
-
* @generated MessageType for protobuf message services.documents.RemoveDocumentRelationResponse
|
|
2203
|
-
*/
|
|
2204
|
-
export const RemoveDocumentRelationResponse = new RemoveDocumentRelationResponse$Type();
|
|
2205
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2206
|
-
class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
2207
|
-
constructor() {
|
|
2208
|
-
super("services.documents.GetCommentsRequest", [
|
|
2209
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
2210
|
-
{ no: 2, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2211
|
-
]);
|
|
2212
|
-
}
|
|
2213
|
-
create(value?: PartialMessage<GetCommentsRequest>): GetCommentsRequest {
|
|
2214
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2215
|
-
message.documentId = 0;
|
|
2216
|
-
if (value !== undefined)
|
|
2217
|
-
reflectionMergePartial<GetCommentsRequest>(this, message, value);
|
|
2218
|
-
return message;
|
|
2219
|
-
}
|
|
2220
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCommentsRequest): GetCommentsRequest {
|
|
2221
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2222
|
-
while (reader.pos < end) {
|
|
2223
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2224
|
-
switch (fieldNo) {
|
|
2225
|
-
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
2226
|
-
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2227
|
-
break;
|
|
2228
|
-
case /* int64 document_id */ 2:
|
|
2229
|
-
message.documentId = reader.int64().toNumber();
|
|
2230
|
-
break;
|
|
2231
|
-
default:
|
|
2232
|
-
let u = options.readUnknownField;
|
|
2233
|
-
if (u === "throw")
|
|
2234
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2235
|
-
let d = reader.skip(wireType);
|
|
2236
|
-
if (u !== false)
|
|
2237
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
return message;
|
|
2241
|
-
}
|
|
2242
|
-
internalBinaryWrite(message: GetCommentsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2243
|
-
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
2244
|
-
if (message.pagination)
|
|
2245
|
-
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2246
|
-
/* int64 document_id = 2; */
|
|
2247
|
-
if (message.documentId !== 0)
|
|
2248
|
-
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
2249
|
-
let u = options.writeUnknownFields;
|
|
2250
|
-
if (u !== false)
|
|
2251
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2252
|
-
return writer;
|
|
2253
|
-
}
|
|
2254
|
-
}
|
|
2255
|
-
/**
|
|
2256
|
-
* @generated MessageType for protobuf message services.documents.GetCommentsRequest
|
|
2257
|
-
*/
|
|
2258
|
-
export const GetCommentsRequest = new GetCommentsRequest$Type();
|
|
2259
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2260
|
-
class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
2261
|
-
constructor() {
|
|
2262
|
-
super("services.documents.GetCommentsResponse", [
|
|
2263
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
2264
|
-
{ no: 2, name: "comments", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Comment, options: { "codegen.itemslen.enabled": true } }
|
|
2265
|
-
]);
|
|
2266
|
-
}
|
|
2267
|
-
create(value?: PartialMessage<GetCommentsResponse>): GetCommentsResponse {
|
|
2268
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2269
|
-
message.comments = [];
|
|
2270
|
-
if (value !== undefined)
|
|
2271
|
-
reflectionMergePartial<GetCommentsResponse>(this, message, value);
|
|
2272
|
-
return message;
|
|
2273
|
-
}
|
|
2274
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCommentsResponse): GetCommentsResponse {
|
|
2275
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2276
|
-
while (reader.pos < end) {
|
|
2277
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2278
|
-
switch (fieldNo) {
|
|
2279
|
-
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
2280
|
-
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2281
|
-
break;
|
|
2282
|
-
case /* repeated resources.documents.comment.Comment comments */ 2:
|
|
2283
|
-
message.comments.push(Comment.internalBinaryRead(reader, reader.uint32(), options));
|
|
2284
|
-
break;
|
|
2285
|
-
default:
|
|
2286
|
-
let u = options.readUnknownField;
|
|
2287
|
-
if (u === "throw")
|
|
2288
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2289
|
-
let d = reader.skip(wireType);
|
|
2290
|
-
if (u !== false)
|
|
2291
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
return message;
|
|
2295
|
-
}
|
|
2296
|
-
internalBinaryWrite(message: GetCommentsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2297
|
-
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
2298
|
-
if (message.pagination)
|
|
2299
|
-
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2300
|
-
/* repeated resources.documents.comment.Comment comments = 2; */
|
|
2301
|
-
for (let i = 0; i < message.comments.length; i++)
|
|
2302
|
-
Comment.internalBinaryWrite(message.comments[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2303
|
-
let u = options.writeUnknownFields;
|
|
2304
|
-
if (u !== false)
|
|
2305
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2306
|
-
return writer;
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
/**
|
|
2310
|
-
* @generated MessageType for protobuf message services.documents.GetCommentsResponse
|
|
2311
|
-
*/
|
|
2312
|
-
export const GetCommentsResponse = new GetCommentsResponse$Type();
|
|
2313
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2314
|
-
class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
2315
|
-
constructor() {
|
|
2316
|
-
super("services.documents.PostCommentRequest", [
|
|
2317
|
-
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "buf.validate.field": { required: true } } }
|
|
2318
|
-
]);
|
|
2319
|
-
}
|
|
2320
|
-
create(value?: PartialMessage<PostCommentRequest>): PostCommentRequest {
|
|
2321
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2322
|
-
if (value !== undefined)
|
|
2323
|
-
reflectionMergePartial<PostCommentRequest>(this, message, value);
|
|
2324
|
-
return message;
|
|
2325
|
-
}
|
|
2326
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostCommentRequest): PostCommentRequest {
|
|
2327
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2328
|
-
while (reader.pos < end) {
|
|
2329
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2330
|
-
switch (fieldNo) {
|
|
2331
|
-
case /* resources.documents.comment.Comment comment */ 1:
|
|
2332
|
-
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2333
|
-
break;
|
|
2334
|
-
default:
|
|
2335
|
-
let u = options.readUnknownField;
|
|
2336
|
-
if (u === "throw")
|
|
2337
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2338
|
-
let d = reader.skip(wireType);
|
|
2339
|
-
if (u !== false)
|
|
2340
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2341
|
-
}
|
|
2342
|
-
}
|
|
2343
|
-
return message;
|
|
2344
|
-
}
|
|
2345
|
-
internalBinaryWrite(message: PostCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2346
|
-
/* resources.documents.comment.Comment comment = 1; */
|
|
2347
|
-
if (message.comment)
|
|
2348
|
-
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2349
|
-
let u = options.writeUnknownFields;
|
|
2350
|
-
if (u !== false)
|
|
2351
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2352
|
-
return writer;
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
/**
|
|
2356
|
-
* @generated MessageType for protobuf message services.documents.PostCommentRequest
|
|
1290
|
+
* @generated MessageType for protobuf message services.documents.RemoveDocumentReferenceRequest
|
|
2357
1291
|
*/
|
|
2358
|
-
export const
|
|
1292
|
+
export const RemoveDocumentReferenceRequest = new RemoveDocumentReferenceRequest$Type();
|
|
2359
1293
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2360
|
-
class
|
|
1294
|
+
class RemoveDocumentReferenceResponse$Type extends MessageType<RemoveDocumentReferenceResponse> {
|
|
2361
1295
|
constructor() {
|
|
2362
|
-
super("services.documents.
|
|
2363
|
-
{ no: 1, name: "comment", kind: "message", T: () => Comment }
|
|
2364
|
-
]);
|
|
1296
|
+
super("services.documents.RemoveDocumentReferenceResponse", []);
|
|
2365
1297
|
}
|
|
2366
|
-
create(value?: PartialMessage<
|
|
1298
|
+
create(value?: PartialMessage<RemoveDocumentReferenceResponse>): RemoveDocumentReferenceResponse {
|
|
2367
1299
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2368
1300
|
if (value !== undefined)
|
|
2369
|
-
reflectionMergePartial<
|
|
1301
|
+
reflectionMergePartial<RemoveDocumentReferenceResponse>(this, message, value);
|
|
2370
1302
|
return message;
|
|
2371
1303
|
}
|
|
2372
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1304
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentReferenceResponse): RemoveDocumentReferenceResponse {
|
|
2373
1305
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2374
1306
|
while (reader.pos < end) {
|
|
2375
1307
|
let [fieldNo, wireType] = reader.tag();
|
|
2376
1308
|
switch (fieldNo) {
|
|
2377
|
-
case /* resources.documents.comment.Comment comment */ 1:
|
|
2378
|
-
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2379
|
-
break;
|
|
2380
1309
|
default:
|
|
2381
1310
|
let u = options.readUnknownField;
|
|
2382
1311
|
if (u === "throw")
|
|
@@ -2388,10 +1317,7 @@ class PostCommentResponse$Type extends MessageType<PostCommentResponse> {
|
|
|
2388
1317
|
}
|
|
2389
1318
|
return message;
|
|
2390
1319
|
}
|
|
2391
|
-
internalBinaryWrite(message:
|
|
2392
|
-
/* resources.documents.comment.Comment comment = 1; */
|
|
2393
|
-
if (message.comment)
|
|
2394
|
-
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1320
|
+
internalBinaryWrite(message: RemoveDocumentReferenceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2395
1321
|
let u = options.writeUnknownFields;
|
|
2396
1322
|
if (u !== false)
|
|
2397
1323
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2399,29 +1325,29 @@ class PostCommentResponse$Type extends MessageType<PostCommentResponse> {
|
|
|
2399
1325
|
}
|
|
2400
1326
|
}
|
|
2401
1327
|
/**
|
|
2402
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1328
|
+
* @generated MessageType for protobuf message services.documents.RemoveDocumentReferenceResponse
|
|
2403
1329
|
*/
|
|
2404
|
-
export const
|
|
1330
|
+
export const RemoveDocumentReferenceResponse = new RemoveDocumentReferenceResponse$Type();
|
|
2405
1331
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2406
|
-
class
|
|
1332
|
+
class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationRequest> {
|
|
2407
1333
|
constructor() {
|
|
2408
|
-
super("services.documents.
|
|
2409
|
-
{ no: 1, name: "
|
|
1334
|
+
super("services.documents.AddDocumentRelationRequest", [
|
|
1335
|
+
{ no: 1, name: "relation", kind: "message", T: () => DocumentRelation, options: { "buf.validate.field": { required: true } } }
|
|
2410
1336
|
]);
|
|
2411
1337
|
}
|
|
2412
|
-
create(value?: PartialMessage<
|
|
1338
|
+
create(value?: PartialMessage<AddDocumentRelationRequest>): AddDocumentRelationRequest {
|
|
2413
1339
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2414
1340
|
if (value !== undefined)
|
|
2415
|
-
reflectionMergePartial<
|
|
1341
|
+
reflectionMergePartial<AddDocumentRelationRequest>(this, message, value);
|
|
2416
1342
|
return message;
|
|
2417
1343
|
}
|
|
2418
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1344
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentRelationRequest): AddDocumentRelationRequest {
|
|
2419
1345
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2420
1346
|
while (reader.pos < end) {
|
|
2421
1347
|
let [fieldNo, wireType] = reader.tag();
|
|
2422
1348
|
switch (fieldNo) {
|
|
2423
|
-
case /* resources.documents.
|
|
2424
|
-
message.
|
|
1349
|
+
case /* resources.documents.relations.DocumentRelation relation */ 1:
|
|
1350
|
+
message.relation = DocumentRelation.internalBinaryRead(reader, reader.uint32(), options, message.relation);
|
|
2425
1351
|
break;
|
|
2426
1352
|
default:
|
|
2427
1353
|
let u = options.readUnknownField;
|
|
@@ -2434,10 +1360,10 @@ class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
|
2434
1360
|
}
|
|
2435
1361
|
return message;
|
|
2436
1362
|
}
|
|
2437
|
-
internalBinaryWrite(message:
|
|
2438
|
-
/* resources.documents.
|
|
2439
|
-
if (message.
|
|
2440
|
-
|
|
1363
|
+
internalBinaryWrite(message: AddDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1364
|
+
/* resources.documents.relations.DocumentRelation relation = 1; */
|
|
1365
|
+
if (message.relation)
|
|
1366
|
+
DocumentRelation.internalBinaryWrite(message.relation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2441
1367
|
let u = options.writeUnknownFields;
|
|
2442
1368
|
if (u !== false)
|
|
2443
1369
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2445,29 +1371,30 @@ class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
|
2445
1371
|
}
|
|
2446
1372
|
}
|
|
2447
1373
|
/**
|
|
2448
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1374
|
+
* @generated MessageType for protobuf message services.documents.AddDocumentRelationRequest
|
|
2449
1375
|
*/
|
|
2450
|
-
export const
|
|
1376
|
+
export const AddDocumentRelationRequest = new AddDocumentRelationRequest$Type();
|
|
2451
1377
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2452
|
-
class
|
|
1378
|
+
class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationResponse> {
|
|
2453
1379
|
constructor() {
|
|
2454
|
-
super("services.documents.
|
|
2455
|
-
{ no: 1, name: "
|
|
1380
|
+
super("services.documents.AddDocumentRelationResponse", [
|
|
1381
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2456
1382
|
]);
|
|
2457
1383
|
}
|
|
2458
|
-
create(value?: PartialMessage<
|
|
1384
|
+
create(value?: PartialMessage<AddDocumentRelationResponse>): AddDocumentRelationResponse {
|
|
2459
1385
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1386
|
+
message.id = 0;
|
|
2460
1387
|
if (value !== undefined)
|
|
2461
|
-
reflectionMergePartial<
|
|
1388
|
+
reflectionMergePartial<AddDocumentRelationResponse>(this, message, value);
|
|
2462
1389
|
return message;
|
|
2463
1390
|
}
|
|
2464
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1391
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddDocumentRelationResponse): AddDocumentRelationResponse {
|
|
2465
1392
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2466
1393
|
while (reader.pos < end) {
|
|
2467
1394
|
let [fieldNo, wireType] = reader.tag();
|
|
2468
1395
|
switch (fieldNo) {
|
|
2469
|
-
case /*
|
|
2470
|
-
message.
|
|
1396
|
+
case /* int64 id */ 1:
|
|
1397
|
+
message.id = reader.int64().toNumber();
|
|
2471
1398
|
break;
|
|
2472
1399
|
default:
|
|
2473
1400
|
let u = options.readUnknownField;
|
|
@@ -2480,10 +1407,10 @@ class EditCommentResponse$Type extends MessageType<EditCommentResponse> {
|
|
|
2480
1407
|
}
|
|
2481
1408
|
return message;
|
|
2482
1409
|
}
|
|
2483
|
-
internalBinaryWrite(message:
|
|
2484
|
-
/*
|
|
2485
|
-
if (message.
|
|
2486
|
-
|
|
1410
|
+
internalBinaryWrite(message: AddDocumentRelationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1411
|
+
/* int64 id = 1; */
|
|
1412
|
+
if (message.id !== 0)
|
|
1413
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2487
1414
|
let u = options.writeUnknownFields;
|
|
2488
1415
|
if (u !== false)
|
|
2489
1416
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2491,30 +1418,30 @@ class EditCommentResponse$Type extends MessageType<EditCommentResponse> {
|
|
|
2491
1418
|
}
|
|
2492
1419
|
}
|
|
2493
1420
|
/**
|
|
2494
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1421
|
+
* @generated MessageType for protobuf message services.documents.AddDocumentRelationResponse
|
|
2495
1422
|
*/
|
|
2496
|
-
export const
|
|
1423
|
+
export const AddDocumentRelationResponse = new AddDocumentRelationResponse$Type();
|
|
2497
1424
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2498
|
-
class
|
|
1425
|
+
class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelationRequest> {
|
|
2499
1426
|
constructor() {
|
|
2500
|
-
super("services.documents.
|
|
2501
|
-
{ no: 1, name: "
|
|
1427
|
+
super("services.documents.RemoveDocumentRelationRequest", [
|
|
1428
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2502
1429
|
]);
|
|
2503
1430
|
}
|
|
2504
|
-
create(value?: PartialMessage<
|
|
1431
|
+
create(value?: PartialMessage<RemoveDocumentRelationRequest>): RemoveDocumentRelationRequest {
|
|
2505
1432
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2506
|
-
message.
|
|
1433
|
+
message.id = 0;
|
|
2507
1434
|
if (value !== undefined)
|
|
2508
|
-
reflectionMergePartial<
|
|
1435
|
+
reflectionMergePartial<RemoveDocumentRelationRequest>(this, message, value);
|
|
2509
1436
|
return message;
|
|
2510
1437
|
}
|
|
2511
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1438
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentRelationRequest): RemoveDocumentRelationRequest {
|
|
2512
1439
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2513
1440
|
while (reader.pos < end) {
|
|
2514
1441
|
let [fieldNo, wireType] = reader.tag();
|
|
2515
1442
|
switch (fieldNo) {
|
|
2516
|
-
case /* int64
|
|
2517
|
-
message.
|
|
1443
|
+
case /* int64 id */ 1:
|
|
1444
|
+
message.id = reader.int64().toNumber();
|
|
2518
1445
|
break;
|
|
2519
1446
|
default:
|
|
2520
1447
|
let u = options.readUnknownField;
|
|
@@ -2527,10 +1454,10 @@ class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
|
2527
1454
|
}
|
|
2528
1455
|
return message;
|
|
2529
1456
|
}
|
|
2530
|
-
internalBinaryWrite(message:
|
|
2531
|
-
/* int64
|
|
2532
|
-
if (message.
|
|
2533
|
-
writer.tag(1, WireType.Varint).int64(message.
|
|
1457
|
+
internalBinaryWrite(message: RemoveDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1458
|
+
/* int64 id = 1; */
|
|
1459
|
+
if (message.id !== 0)
|
|
1460
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2534
1461
|
let u = options.writeUnknownFields;
|
|
2535
1462
|
if (u !== false)
|
|
2536
1463
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2538,21 +1465,21 @@ class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
|
2538
1465
|
}
|
|
2539
1466
|
}
|
|
2540
1467
|
/**
|
|
2541
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1468
|
+
* @generated MessageType for protobuf message services.documents.RemoveDocumentRelationRequest
|
|
2542
1469
|
*/
|
|
2543
|
-
export const
|
|
1470
|
+
export const RemoveDocumentRelationRequest = new RemoveDocumentRelationRequest$Type();
|
|
2544
1471
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2545
|
-
class
|
|
1472
|
+
class RemoveDocumentRelationResponse$Type extends MessageType<RemoveDocumentRelationResponse> {
|
|
2546
1473
|
constructor() {
|
|
2547
|
-
super("services.documents.
|
|
1474
|
+
super("services.documents.RemoveDocumentRelationResponse", []);
|
|
2548
1475
|
}
|
|
2549
|
-
create(value?: PartialMessage<
|
|
1476
|
+
create(value?: PartialMessage<RemoveDocumentRelationResponse>): RemoveDocumentRelationResponse {
|
|
2550
1477
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2551
1478
|
if (value !== undefined)
|
|
2552
|
-
reflectionMergePartial<
|
|
1479
|
+
reflectionMergePartial<RemoveDocumentRelationResponse>(this, message, value);
|
|
2553
1480
|
return message;
|
|
2554
1481
|
}
|
|
2555
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1482
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveDocumentRelationResponse): RemoveDocumentRelationResponse {
|
|
2556
1483
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
2557
1484
|
while (reader.pos < end) {
|
|
2558
1485
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -2568,7 +1495,7 @@ class DeleteCommentResponse$Type extends MessageType<DeleteCommentResponse> {
|
|
|
2568
1495
|
}
|
|
2569
1496
|
return message;
|
|
2570
1497
|
}
|
|
2571
|
-
internalBinaryWrite(message:
|
|
1498
|
+
internalBinaryWrite(message: RemoveDocumentRelationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2572
1499
|
let u = options.writeUnknownFields;
|
|
2573
1500
|
if (u !== false)
|
|
2574
1501
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2576,9 +1503,9 @@ class DeleteCommentResponse$Type extends MessageType<DeleteCommentResponse> {
|
|
|
2576
1503
|
}
|
|
2577
1504
|
}
|
|
2578
1505
|
/**
|
|
2579
|
-
* @generated MessageType for protobuf message services.documents.
|
|
1506
|
+
* @generated MessageType for protobuf message services.documents.RemoveDocumentRelationResponse
|
|
2580
1507
|
*/
|
|
2581
|
-
export const
|
|
1508
|
+
export const RemoveDocumentRelationResponse = new RemoveDocumentRelationResponse$Type();
|
|
2582
1509
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2583
1510
|
class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
2584
1511
|
constructor() {
|
|
@@ -4002,268 +2929,6 @@ class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsRespon
|
|
|
4002
2929
|
*/
|
|
4003
2930
|
export const ListUserDocumentsResponse = new ListUserDocumentsResponse$Type();
|
|
4004
2931
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4005
|
-
class ListCategoriesRequest$Type extends MessageType<ListCategoriesRequest> {
|
|
4006
|
-
constructor() {
|
|
4007
|
-
super("services.documents.ListCategoriesRequest", []);
|
|
4008
|
-
}
|
|
4009
|
-
create(value?: PartialMessage<ListCategoriesRequest>): ListCategoriesRequest {
|
|
4010
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4011
|
-
if (value !== undefined)
|
|
4012
|
-
reflectionMergePartial<ListCategoriesRequest>(this, message, value);
|
|
4013
|
-
return message;
|
|
4014
|
-
}
|
|
4015
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListCategoriesRequest): ListCategoriesRequest {
|
|
4016
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4017
|
-
while (reader.pos < end) {
|
|
4018
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4019
|
-
switch (fieldNo) {
|
|
4020
|
-
default:
|
|
4021
|
-
let u = options.readUnknownField;
|
|
4022
|
-
if (u === "throw")
|
|
4023
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4024
|
-
let d = reader.skip(wireType);
|
|
4025
|
-
if (u !== false)
|
|
4026
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4027
|
-
}
|
|
4028
|
-
}
|
|
4029
|
-
return message;
|
|
4030
|
-
}
|
|
4031
|
-
internalBinaryWrite(message: ListCategoriesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4032
|
-
let u = options.writeUnknownFields;
|
|
4033
|
-
if (u !== false)
|
|
4034
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4035
|
-
return writer;
|
|
4036
|
-
}
|
|
4037
|
-
}
|
|
4038
|
-
/**
|
|
4039
|
-
* @generated MessageType for protobuf message services.documents.ListCategoriesRequest
|
|
4040
|
-
*/
|
|
4041
|
-
export const ListCategoriesRequest = new ListCategoriesRequest$Type();
|
|
4042
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4043
|
-
class ListCategoriesResponse$Type extends MessageType<ListCategoriesResponse> {
|
|
4044
|
-
constructor() {
|
|
4045
|
-
super("services.documents.ListCategoriesResponse", [
|
|
4046
|
-
{ no: 1, name: "categories", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Category }
|
|
4047
|
-
]);
|
|
4048
|
-
}
|
|
4049
|
-
create(value?: PartialMessage<ListCategoriesResponse>): ListCategoriesResponse {
|
|
4050
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4051
|
-
message.categories = [];
|
|
4052
|
-
if (value !== undefined)
|
|
4053
|
-
reflectionMergePartial<ListCategoriesResponse>(this, message, value);
|
|
4054
|
-
return message;
|
|
4055
|
-
}
|
|
4056
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListCategoriesResponse): ListCategoriesResponse {
|
|
4057
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4058
|
-
while (reader.pos < end) {
|
|
4059
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4060
|
-
switch (fieldNo) {
|
|
4061
|
-
case /* repeated resources.documents.category.Category categories */ 1:
|
|
4062
|
-
message.categories.push(Category.internalBinaryRead(reader, reader.uint32(), options));
|
|
4063
|
-
break;
|
|
4064
|
-
default:
|
|
4065
|
-
let u = options.readUnknownField;
|
|
4066
|
-
if (u === "throw")
|
|
4067
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4068
|
-
let d = reader.skip(wireType);
|
|
4069
|
-
if (u !== false)
|
|
4070
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4071
|
-
}
|
|
4072
|
-
}
|
|
4073
|
-
return message;
|
|
4074
|
-
}
|
|
4075
|
-
internalBinaryWrite(message: ListCategoriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4076
|
-
/* repeated resources.documents.category.Category categories = 1; */
|
|
4077
|
-
for (let i = 0; i < message.categories.length; i++)
|
|
4078
|
-
Category.internalBinaryWrite(message.categories[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4079
|
-
let u = options.writeUnknownFields;
|
|
4080
|
-
if (u !== false)
|
|
4081
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4082
|
-
return writer;
|
|
4083
|
-
}
|
|
4084
|
-
}
|
|
4085
|
-
/**
|
|
4086
|
-
* @generated MessageType for protobuf message services.documents.ListCategoriesResponse
|
|
4087
|
-
*/
|
|
4088
|
-
export const ListCategoriesResponse = new ListCategoriesResponse$Type();
|
|
4089
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4090
|
-
class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCategoryRequest> {
|
|
4091
|
-
constructor() {
|
|
4092
|
-
super("services.documents.CreateOrUpdateCategoryRequest", [
|
|
4093
|
-
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "buf.validate.field": { required: true } } }
|
|
4094
|
-
]);
|
|
4095
|
-
}
|
|
4096
|
-
create(value?: PartialMessage<CreateOrUpdateCategoryRequest>): CreateOrUpdateCategoryRequest {
|
|
4097
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4098
|
-
if (value !== undefined)
|
|
4099
|
-
reflectionMergePartial<CreateOrUpdateCategoryRequest>(this, message, value);
|
|
4100
|
-
return message;
|
|
4101
|
-
}
|
|
4102
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrUpdateCategoryRequest): CreateOrUpdateCategoryRequest {
|
|
4103
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4104
|
-
while (reader.pos < end) {
|
|
4105
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4106
|
-
switch (fieldNo) {
|
|
4107
|
-
case /* resources.documents.category.Category category */ 1:
|
|
4108
|
-
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
4109
|
-
break;
|
|
4110
|
-
default:
|
|
4111
|
-
let u = options.readUnknownField;
|
|
4112
|
-
if (u === "throw")
|
|
4113
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4114
|
-
let d = reader.skip(wireType);
|
|
4115
|
-
if (u !== false)
|
|
4116
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4117
|
-
}
|
|
4118
|
-
}
|
|
4119
|
-
return message;
|
|
4120
|
-
}
|
|
4121
|
-
internalBinaryWrite(message: CreateOrUpdateCategoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4122
|
-
/* resources.documents.category.Category category = 1; */
|
|
4123
|
-
if (message.category)
|
|
4124
|
-
Category.internalBinaryWrite(message.category, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4125
|
-
let u = options.writeUnknownFields;
|
|
4126
|
-
if (u !== false)
|
|
4127
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4128
|
-
return writer;
|
|
4129
|
-
}
|
|
4130
|
-
}
|
|
4131
|
-
/**
|
|
4132
|
-
* @generated MessageType for protobuf message services.documents.CreateOrUpdateCategoryRequest
|
|
4133
|
-
*/
|
|
4134
|
-
export const CreateOrUpdateCategoryRequest = new CreateOrUpdateCategoryRequest$Type();
|
|
4135
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4136
|
-
class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCategoryResponse> {
|
|
4137
|
-
constructor() {
|
|
4138
|
-
super("services.documents.CreateOrUpdateCategoryResponse", [
|
|
4139
|
-
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "buf.validate.field": { required: true } } }
|
|
4140
|
-
]);
|
|
4141
|
-
}
|
|
4142
|
-
create(value?: PartialMessage<CreateOrUpdateCategoryResponse>): CreateOrUpdateCategoryResponse {
|
|
4143
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4144
|
-
if (value !== undefined)
|
|
4145
|
-
reflectionMergePartial<CreateOrUpdateCategoryResponse>(this, message, value);
|
|
4146
|
-
return message;
|
|
4147
|
-
}
|
|
4148
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOrUpdateCategoryResponse): CreateOrUpdateCategoryResponse {
|
|
4149
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4150
|
-
while (reader.pos < end) {
|
|
4151
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4152
|
-
switch (fieldNo) {
|
|
4153
|
-
case /* resources.documents.category.Category category */ 1:
|
|
4154
|
-
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
4155
|
-
break;
|
|
4156
|
-
default:
|
|
4157
|
-
let u = options.readUnknownField;
|
|
4158
|
-
if (u === "throw")
|
|
4159
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4160
|
-
let d = reader.skip(wireType);
|
|
4161
|
-
if (u !== false)
|
|
4162
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4163
|
-
}
|
|
4164
|
-
}
|
|
4165
|
-
return message;
|
|
4166
|
-
}
|
|
4167
|
-
internalBinaryWrite(message: CreateOrUpdateCategoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4168
|
-
/* resources.documents.category.Category category = 1; */
|
|
4169
|
-
if (message.category)
|
|
4170
|
-
Category.internalBinaryWrite(message.category, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4171
|
-
let u = options.writeUnknownFields;
|
|
4172
|
-
if (u !== false)
|
|
4173
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4174
|
-
return writer;
|
|
4175
|
-
}
|
|
4176
|
-
}
|
|
4177
|
-
/**
|
|
4178
|
-
* @generated MessageType for protobuf message services.documents.CreateOrUpdateCategoryResponse
|
|
4179
|
-
*/
|
|
4180
|
-
export const CreateOrUpdateCategoryResponse = new CreateOrUpdateCategoryResponse$Type();
|
|
4181
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4182
|
-
class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
4183
|
-
constructor() {
|
|
4184
|
-
super("services.documents.DeleteCategoryRequest", [
|
|
4185
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
4186
|
-
]);
|
|
4187
|
-
}
|
|
4188
|
-
create(value?: PartialMessage<DeleteCategoryRequest>): DeleteCategoryRequest {
|
|
4189
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4190
|
-
message.id = 0;
|
|
4191
|
-
if (value !== undefined)
|
|
4192
|
-
reflectionMergePartial<DeleteCategoryRequest>(this, message, value);
|
|
4193
|
-
return message;
|
|
4194
|
-
}
|
|
4195
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteCategoryRequest): DeleteCategoryRequest {
|
|
4196
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4197
|
-
while (reader.pos < end) {
|
|
4198
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4199
|
-
switch (fieldNo) {
|
|
4200
|
-
case /* int64 id */ 1:
|
|
4201
|
-
message.id = reader.int64().toNumber();
|
|
4202
|
-
break;
|
|
4203
|
-
default:
|
|
4204
|
-
let u = options.readUnknownField;
|
|
4205
|
-
if (u === "throw")
|
|
4206
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4207
|
-
let d = reader.skip(wireType);
|
|
4208
|
-
if (u !== false)
|
|
4209
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4210
|
-
}
|
|
4211
|
-
}
|
|
4212
|
-
return message;
|
|
4213
|
-
}
|
|
4214
|
-
internalBinaryWrite(message: DeleteCategoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4215
|
-
/* int64 id = 1; */
|
|
4216
|
-
if (message.id !== 0)
|
|
4217
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
4218
|
-
let u = options.writeUnknownFields;
|
|
4219
|
-
if (u !== false)
|
|
4220
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4221
|
-
return writer;
|
|
4222
|
-
}
|
|
4223
|
-
}
|
|
4224
|
-
/**
|
|
4225
|
-
* @generated MessageType for protobuf message services.documents.DeleteCategoryRequest
|
|
4226
|
-
*/
|
|
4227
|
-
export const DeleteCategoryRequest = new DeleteCategoryRequest$Type();
|
|
4228
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4229
|
-
class DeleteCategoryResponse$Type extends MessageType<DeleteCategoryResponse> {
|
|
4230
|
-
constructor() {
|
|
4231
|
-
super("services.documents.DeleteCategoryResponse", []);
|
|
4232
|
-
}
|
|
4233
|
-
create(value?: PartialMessage<DeleteCategoryResponse>): DeleteCategoryResponse {
|
|
4234
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4235
|
-
if (value !== undefined)
|
|
4236
|
-
reflectionMergePartial<DeleteCategoryResponse>(this, message, value);
|
|
4237
|
-
return message;
|
|
4238
|
-
}
|
|
4239
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteCategoryResponse): DeleteCategoryResponse {
|
|
4240
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4241
|
-
while (reader.pos < end) {
|
|
4242
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4243
|
-
switch (fieldNo) {
|
|
4244
|
-
default:
|
|
4245
|
-
let u = options.readUnknownField;
|
|
4246
|
-
if (u === "throw")
|
|
4247
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4248
|
-
let d = reader.skip(wireType);
|
|
4249
|
-
if (u !== false)
|
|
4250
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4251
|
-
}
|
|
4252
|
-
}
|
|
4253
|
-
return message;
|
|
4254
|
-
}
|
|
4255
|
-
internalBinaryWrite(message: DeleteCategoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4256
|
-
let u = options.writeUnknownFields;
|
|
4257
|
-
if (u !== false)
|
|
4258
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4259
|
-
return writer;
|
|
4260
|
-
}
|
|
4261
|
-
}
|
|
4262
|
-
/**
|
|
4263
|
-
* @generated MessageType for protobuf message services.documents.DeleteCategoryResponse
|
|
4264
|
-
*/
|
|
4265
|
-
export const DeleteCategoryResponse = new DeleteCategoryResponse$Type();
|
|
4266
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4267
2932
|
class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest> {
|
|
4268
2933
|
constructor() {
|
|
4269
2934
|
super("services.documents.ListDocumentPinsRequest", [
|
|
@@ -4589,11 +3254,6 @@ export const SetDocumentReminderResponse = new SetDocumentReminderResponse$Type(
|
|
|
4589
3254
|
* @generated ServiceType for protobuf service services.documents.DocumentsService
|
|
4590
3255
|
*/
|
|
4591
3256
|
export const DocumentsService = new ServiceType("services.documents.DocumentsService", [
|
|
4592
|
-
{ name: "ListTemplates", options: { "codegen.perms.perms": { enabled: true } }, I: ListTemplatesRequest, O: ListTemplatesResponse },
|
|
4593
|
-
{ name: "GetTemplate", options: { "codegen.perms.perms": { enabled: true, name: "ListTemplates" } }, I: GetTemplateRequest, O: GetTemplateResponse },
|
|
4594
|
-
{ name: "CreateTemplate", options: { "codegen.perms.perms": { enabled: true } }, I: CreateTemplateRequest, O: CreateTemplateResponse },
|
|
4595
|
-
{ name: "UpdateTemplate", options: { "codegen.perms.perms": { enabled: true, name: "CreateTemplate" } }, I: UpdateTemplateRequest, O: UpdateTemplateResponse },
|
|
4596
|
-
{ name: "DeleteTemplate", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteTemplateRequest, O: DeleteTemplateResponse },
|
|
4597
3257
|
{ name: "ListDocuments", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentsRequest, O: ListDocumentsResponse },
|
|
4598
3258
|
{ name: "GetDocument", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentRequest, O: GetDocumentResponse },
|
|
4599
3259
|
{ name: "CreateDocument", options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: CreateDocumentRequest, O: CreateDocumentResponse },
|
|
@@ -4607,10 +3267,6 @@ export const DocumentsService = new ServiceType("services.documents.DocumentsSer
|
|
|
4607
3267
|
{ name: "RemoveDocumentReference", options: { "codegen.perms.perms": { enabled: true, name: "AddDocumentReference" } }, I: RemoveDocumentReferenceRequest, O: RemoveDocumentReferenceResponse },
|
|
4608
3268
|
{ name: "AddDocumentRelation", options: { "codegen.perms.perms": { enabled: true } }, I: AddDocumentRelationRequest, O: AddDocumentRelationResponse },
|
|
4609
3269
|
{ name: "RemoveDocumentRelation", options: { "codegen.perms.perms": { enabled: true, name: "AddDocumentRelation" } }, I: RemoveDocumentRelationRequest, O: RemoveDocumentRelationResponse },
|
|
4610
|
-
{ name: "GetComments", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetCommentsRequest, O: GetCommentsResponse },
|
|
4611
|
-
{ name: "PostComment", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: PostCommentRequest, O: PostCommentResponse },
|
|
4612
|
-
{ name: "EditComment", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: EditCommentRequest, O: EditCommentResponse },
|
|
4613
|
-
{ name: "DeleteComment", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "Lower_Rank", "Same_Rank", "Any"] }] } }, I: DeleteCommentRequest, O: DeleteCommentResponse },
|
|
4614
3270
|
{ name: "GetDocumentAccess", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentAccessRequest, O: GetDocumentAccessResponse },
|
|
4615
3271
|
{ name: "SetDocumentAccess", options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: SetDocumentAccessRequest, O: SetDocumentAccessResponse },
|
|
4616
3272
|
{ name: "ListDocumentActivity", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentActivityRequest, O: ListDocumentActivityResponse },
|
|
@@ -4619,9 +3275,6 @@ export const DocumentsService = new ServiceType("services.documents.DocumentsSer
|
|
|
4619
3275
|
{ name: "UpdateDocumentReq", options: { "codegen.perms.perms": { enabled: true, name: "CreateDocumentReq" } }, I: UpdateDocumentReqRequest, O: UpdateDocumentReqResponse },
|
|
4620
3276
|
{ name: "DeleteDocumentReq", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDocumentReqRequest, O: DeleteDocumentReqResponse },
|
|
4621
3277
|
{ name: "ListUserDocuments", options: { "codegen.perms.perms": { enabled: true } }, I: ListUserDocumentsRequest, O: ListUserDocumentsResponse },
|
|
4622
|
-
{ name: "ListCategories", options: { "codegen.perms.perms": { enabled: true } }, I: ListCategoriesRequest, O: ListCategoriesResponse },
|
|
4623
|
-
{ name: "CreateOrUpdateCategory", options: { "codegen.perms.perms": { enabled: true } }, I: CreateOrUpdateCategoryRequest, O: CreateOrUpdateCategoryResponse },
|
|
4624
|
-
{ name: "DeleteCategory", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteCategoryRequest, O: DeleteCategoryResponse },
|
|
4625
3278
|
{ name: "ListDocumentPins", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: ListDocumentPinsRequest, O: ListDocumentPinsResponse },
|
|
4626
3279
|
{ name: "ToggleDocumentPin", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Types", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["JobWide"] }] } }, I: ToggleDocumentPinRequest, O: ToggleDocumentPinResponse },
|
|
4627
3280
|
{ name: "SetDocumentReminder", options: { "codegen.perms.perms": { enabled: true } }, I: SetDocumentReminderRequest, O: SetDocumentReminderResponse },
|