@fivenet-app/gen 2025.5.3 → 2026.3.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/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "services/documents/documents.proto" (package "services.documents", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
5
|
+
import { UploadFileResponse } from "../../resources/file/filestore";
|
|
6
|
+
import { UploadFileRequest } from "../../resources/file/filestore";
|
|
4
7
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
8
|
import { WireType } from "@protobuf-ts/runtime";
|
|
6
9
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,28 +14,32 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
14
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
15
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
16
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
17
|
+
import { DocumentPin } from "../../resources/documents/pins/pins";
|
|
18
|
+
import { Category } from "../../resources/documents/category/category";
|
|
19
|
+
import { DocRelation } from "../../resources/documents/relations/relations";
|
|
20
|
+
import { DocActivityData } from "../../resources/documents/activity/activity";
|
|
21
|
+
import { DocRequest } from "../../resources/documents/requests/requests";
|
|
22
|
+
import { DocActivity } from "../../resources/documents/activity/activity";
|
|
23
|
+
import { DocActivityType } from "../../resources/documents/activity/activity";
|
|
24
|
+
import { File } from "../../resources/file/file";
|
|
25
|
+
import { DocumentMeta } from "../../resources/documents/documents";
|
|
26
|
+
import { DocumentData } from "../../resources/documents/data/data";
|
|
21
27
|
import { Content } from "../../resources/common/content/content";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
28
|
+
import { ContentType } from "../../resources/common/content/content";
|
|
29
|
+
import { Comment } from "../../resources/documents/comment/comment";
|
|
30
|
+
import { DocumentRelation } from "../../resources/documents/relations/relations";
|
|
31
|
+
import { DocumentReference } from "../../resources/documents/references/references";
|
|
32
|
+
import { DocumentAccess } from "../../resources/documents/access/access";
|
|
26
33
|
import { Document } from "../../resources/documents/documents";
|
|
27
34
|
import { DocumentShort } from "../../resources/documents/documents";
|
|
28
35
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
29
36
|
import { Timestamp } from "../../resources/timestamp/timestamp";
|
|
30
37
|
import { Sort } from "../../resources/common/database/database";
|
|
31
38
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
32
|
-
import { Template } from "../../resources/documents/templates";
|
|
33
|
-
import { TemplateData } from "../../resources/documents/templates";
|
|
34
|
-
import { TemplateShort } from "../../resources/documents/templates";
|
|
35
|
-
// Templates
|
|
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
|
|
36
43
|
|
|
37
44
|
/**
|
|
38
45
|
* @generated from protobuf message services.documents.ListTemplatesRequest
|
|
@@ -44,7 +51,7 @@ export interface ListTemplatesRequest {
|
|
|
44
51
|
*/
|
|
45
52
|
export interface ListTemplatesResponse {
|
|
46
53
|
/**
|
|
47
|
-
* @generated from protobuf field: repeated resources.documents.TemplateShort templates = 1
|
|
54
|
+
* @generated from protobuf field: repeated resources.documents.templates.TemplateShort templates = 1
|
|
48
55
|
*/
|
|
49
56
|
templates: TemplateShort[];
|
|
50
57
|
}
|
|
@@ -53,15 +60,15 @@ export interface ListTemplatesResponse {
|
|
|
53
60
|
*/
|
|
54
61
|
export interface GetTemplateRequest {
|
|
55
62
|
/**
|
|
56
|
-
* @generated from protobuf field:
|
|
63
|
+
* @generated from protobuf field: int64 template_id = 1
|
|
57
64
|
*/
|
|
58
65
|
templateId: number;
|
|
59
66
|
/**
|
|
60
|
-
* @generated from protobuf field: optional resources.documents.TemplateData data = 2
|
|
67
|
+
* @generated from protobuf field: optional resources.documents.templates.TemplateData data = 2
|
|
61
68
|
*/
|
|
62
69
|
data?: TemplateData;
|
|
63
70
|
/**
|
|
64
|
-
* @generated from protobuf field: optional bool render = 3
|
|
71
|
+
* @generated from protobuf field: optional bool render = 3
|
|
65
72
|
*/
|
|
66
73
|
render?: boolean;
|
|
67
74
|
}
|
|
@@ -70,11 +77,11 @@ export interface GetTemplateRequest {
|
|
|
70
77
|
*/
|
|
71
78
|
export interface GetTemplateResponse {
|
|
72
79
|
/**
|
|
73
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
80
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
74
81
|
*/
|
|
75
82
|
template?: Template;
|
|
76
83
|
/**
|
|
77
|
-
* @generated from protobuf field: bool rendered = 2
|
|
84
|
+
* @generated from protobuf field: bool rendered = 2
|
|
78
85
|
*/
|
|
79
86
|
rendered: boolean;
|
|
80
87
|
}
|
|
@@ -83,7 +90,7 @@ export interface GetTemplateResponse {
|
|
|
83
90
|
*/
|
|
84
91
|
export interface CreateTemplateRequest {
|
|
85
92
|
/**
|
|
86
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
93
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
87
94
|
*/
|
|
88
95
|
template?: Template;
|
|
89
96
|
}
|
|
@@ -92,7 +99,7 @@ export interface CreateTemplateRequest {
|
|
|
92
99
|
*/
|
|
93
100
|
export interface CreateTemplateResponse {
|
|
94
101
|
/**
|
|
95
|
-
* @generated from protobuf field:
|
|
102
|
+
* @generated from protobuf field: int64 id = 1
|
|
96
103
|
*/
|
|
97
104
|
id: number;
|
|
98
105
|
}
|
|
@@ -101,7 +108,7 @@ export interface CreateTemplateResponse {
|
|
|
101
108
|
*/
|
|
102
109
|
export interface UpdateTemplateRequest {
|
|
103
110
|
/**
|
|
104
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
111
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
105
112
|
*/
|
|
106
113
|
template?: Template;
|
|
107
114
|
}
|
|
@@ -110,7 +117,7 @@ export interface UpdateTemplateRequest {
|
|
|
110
117
|
*/
|
|
111
118
|
export interface UpdateTemplateResponse {
|
|
112
119
|
/**
|
|
113
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
120
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
114
121
|
*/
|
|
115
122
|
template?: Template;
|
|
116
123
|
}
|
|
@@ -119,7 +126,7 @@ export interface UpdateTemplateResponse {
|
|
|
119
126
|
*/
|
|
120
127
|
export interface DeleteTemplateRequest {
|
|
121
128
|
/**
|
|
122
|
-
* @generated from protobuf field:
|
|
129
|
+
* @generated from protobuf field: int64 id = 1
|
|
123
130
|
*/
|
|
124
131
|
id: number;
|
|
125
132
|
}
|
|
@@ -128,61 +135,70 @@ export interface DeleteTemplateRequest {
|
|
|
128
135
|
*/
|
|
129
136
|
export interface DeleteTemplateResponse {
|
|
130
137
|
}
|
|
131
|
-
// Documents
|
|
138
|
+
// Documents
|
|
132
139
|
|
|
133
140
|
/**
|
|
134
141
|
* @generated from protobuf message services.documents.ListDocumentsRequest
|
|
135
142
|
*/
|
|
136
143
|
export interface ListDocumentsRequest {
|
|
137
144
|
/**
|
|
138
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
145
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
139
146
|
*/
|
|
140
147
|
pagination?: PaginationRequest;
|
|
141
148
|
/**
|
|
142
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
149
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
143
150
|
*/
|
|
144
151
|
sort?: Sort;
|
|
145
152
|
/**
|
|
146
153
|
* Search params
|
|
147
154
|
*
|
|
148
|
-
* @generated from protobuf field: optional string search = 3
|
|
155
|
+
* @generated from protobuf field: optional string search = 3
|
|
149
156
|
*/
|
|
150
157
|
search?: string;
|
|
151
158
|
/**
|
|
152
|
-
* @generated from protobuf field: repeated
|
|
159
|
+
* @generated from protobuf field: repeated int64 category_ids = 4
|
|
153
160
|
*/
|
|
154
161
|
categoryIds: number[];
|
|
155
162
|
/**
|
|
156
|
-
* @generated from protobuf field: repeated int32 creator_ids = 5
|
|
163
|
+
* @generated from protobuf field: repeated int32 creator_ids = 5
|
|
157
164
|
*/
|
|
158
165
|
creatorIds: number[];
|
|
159
166
|
/**
|
|
160
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp from = 6
|
|
167
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp from = 6
|
|
161
168
|
*/
|
|
162
169
|
from?: Timestamp;
|
|
163
170
|
/**
|
|
164
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp to = 7
|
|
171
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp to = 7
|
|
165
172
|
*/
|
|
166
173
|
to?: Timestamp;
|
|
167
174
|
/**
|
|
168
|
-
* @generated from protobuf field: optional bool closed = 8
|
|
175
|
+
* @generated from protobuf field: optional bool closed = 8
|
|
169
176
|
*/
|
|
170
177
|
closed?: boolean;
|
|
171
178
|
/**
|
|
172
|
-
* @generated from protobuf field: repeated
|
|
179
|
+
* @generated from protobuf field: repeated int64 document_ids = 9
|
|
173
180
|
*/
|
|
174
181
|
documentIds: number[];
|
|
182
|
+
/**
|
|
183
|
+
* Controls inclusion of drafts in the result:
|
|
184
|
+
* - unset/null: include all documents (drafts and non-drafts)
|
|
185
|
+
* - false: only non-draft documents
|
|
186
|
+
* - true: only draft documents
|
|
187
|
+
*
|
|
188
|
+
* @generated from protobuf field: optional bool only_drafts = 10
|
|
189
|
+
*/
|
|
190
|
+
onlyDrafts?: boolean;
|
|
175
191
|
}
|
|
176
192
|
/**
|
|
177
193
|
* @generated from protobuf message services.documents.ListDocumentsResponse
|
|
178
194
|
*/
|
|
179
195
|
export interface ListDocumentsResponse {
|
|
180
196
|
/**
|
|
181
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
197
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
182
198
|
*/
|
|
183
199
|
pagination?: PaginationResponse;
|
|
184
200
|
/**
|
|
185
|
-
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
201
|
+
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
186
202
|
*/
|
|
187
203
|
documents: DocumentShort[];
|
|
188
204
|
}
|
|
@@ -191,11 +207,11 @@ export interface ListDocumentsResponse {
|
|
|
191
207
|
*/
|
|
192
208
|
export interface GetDocumentRequest {
|
|
193
209
|
/**
|
|
194
|
-
* @generated from protobuf field:
|
|
210
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
195
211
|
*/
|
|
196
212
|
documentId: number;
|
|
197
213
|
/**
|
|
198
|
-
* @generated from protobuf field: optional bool info_only = 2
|
|
214
|
+
* @generated from protobuf field: optional bool info_only = 2
|
|
199
215
|
*/
|
|
200
216
|
infoOnly?: boolean;
|
|
201
217
|
}
|
|
@@ -204,11 +220,11 @@ export interface GetDocumentRequest {
|
|
|
204
220
|
*/
|
|
205
221
|
export interface GetDocumentResponse {
|
|
206
222
|
/**
|
|
207
|
-
* @generated from protobuf field: resources.documents.Document document = 1
|
|
223
|
+
* @generated from protobuf field: resources.documents.Document document = 1
|
|
208
224
|
*/
|
|
209
225
|
document?: Document;
|
|
210
226
|
/**
|
|
211
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
227
|
+
* @generated from protobuf field: resources.documents.access.DocumentAccess access = 2
|
|
212
228
|
*/
|
|
213
229
|
access?: DocumentAccess;
|
|
214
230
|
}
|
|
@@ -217,7 +233,7 @@ export interface GetDocumentResponse {
|
|
|
217
233
|
*/
|
|
218
234
|
export interface GetDocumentReferencesRequest {
|
|
219
235
|
/**
|
|
220
|
-
* @generated from protobuf field:
|
|
236
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
221
237
|
*/
|
|
222
238
|
documentId: number;
|
|
223
239
|
}
|
|
@@ -226,16 +242,16 @@ export interface GetDocumentReferencesRequest {
|
|
|
226
242
|
*/
|
|
227
243
|
export interface GetDocumentReferencesResponse {
|
|
228
244
|
/**
|
|
229
|
-
* @generated from protobuf field: repeated resources.documents.DocumentReference references = 1
|
|
245
|
+
* @generated from protobuf field: repeated resources.documents.references.DocumentReference references = 1
|
|
230
246
|
*/
|
|
231
|
-
references: DocumentReference[];
|
|
247
|
+
references: DocumentReference[];
|
|
232
248
|
}
|
|
233
249
|
/**
|
|
234
250
|
* @generated from protobuf message services.documents.GetDocumentRelationsRequest
|
|
235
251
|
*/
|
|
236
252
|
export interface GetDocumentRelationsRequest {
|
|
237
253
|
/**
|
|
238
|
-
* @generated from protobuf field:
|
|
254
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
239
255
|
*/
|
|
240
256
|
documentId: number;
|
|
241
257
|
}
|
|
@@ -244,16 +260,16 @@ export interface GetDocumentRelationsRequest {
|
|
|
244
260
|
*/
|
|
245
261
|
export interface GetDocumentRelationsResponse {
|
|
246
262
|
/**
|
|
247
|
-
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 1
|
|
263
|
+
* @generated from protobuf field: repeated resources.documents.relations.DocumentRelation relations = 1
|
|
248
264
|
*/
|
|
249
|
-
relations: DocumentRelation[];
|
|
265
|
+
relations: DocumentRelation[];
|
|
250
266
|
}
|
|
251
267
|
/**
|
|
252
268
|
* @generated from protobuf message services.documents.AddDocumentReferenceRequest
|
|
253
269
|
*/
|
|
254
270
|
export interface AddDocumentReferenceRequest {
|
|
255
271
|
/**
|
|
256
|
-
* @generated from protobuf field: resources.documents.DocumentReference reference = 1
|
|
272
|
+
* @generated from protobuf field: resources.documents.references.DocumentReference reference = 1
|
|
257
273
|
*/
|
|
258
274
|
reference?: DocumentReference;
|
|
259
275
|
}
|
|
@@ -262,7 +278,7 @@ export interface AddDocumentReferenceRequest {
|
|
|
262
278
|
*/
|
|
263
279
|
export interface AddDocumentReferenceResponse {
|
|
264
280
|
/**
|
|
265
|
-
* @generated from protobuf field:
|
|
281
|
+
* @generated from protobuf field: int64 id = 1
|
|
266
282
|
*/
|
|
267
283
|
id: number;
|
|
268
284
|
}
|
|
@@ -271,7 +287,7 @@ export interface AddDocumentReferenceResponse {
|
|
|
271
287
|
*/
|
|
272
288
|
export interface RemoveDocumentReferenceRequest {
|
|
273
289
|
/**
|
|
274
|
-
* @generated from protobuf field:
|
|
290
|
+
* @generated from protobuf field: int64 id = 1
|
|
275
291
|
*/
|
|
276
292
|
id: number;
|
|
277
293
|
}
|
|
@@ -285,7 +301,7 @@ export interface RemoveDocumentReferenceResponse {
|
|
|
285
301
|
*/
|
|
286
302
|
export interface AddDocumentRelationRequest {
|
|
287
303
|
/**
|
|
288
|
-
* @generated from protobuf field: resources.documents.DocumentRelation relation = 1
|
|
304
|
+
* @generated from protobuf field: resources.documents.relations.DocumentRelation relation = 1
|
|
289
305
|
*/
|
|
290
306
|
relation?: DocumentRelation;
|
|
291
307
|
}
|
|
@@ -294,7 +310,7 @@ export interface AddDocumentRelationRequest {
|
|
|
294
310
|
*/
|
|
295
311
|
export interface AddDocumentRelationResponse {
|
|
296
312
|
/**
|
|
297
|
-
* @generated from protobuf field:
|
|
313
|
+
* @generated from protobuf field: int64 id = 1
|
|
298
314
|
*/
|
|
299
315
|
id: number;
|
|
300
316
|
}
|
|
@@ -303,7 +319,7 @@ export interface AddDocumentRelationResponse {
|
|
|
303
319
|
*/
|
|
304
320
|
export interface RemoveDocumentRelationRequest {
|
|
305
321
|
/**
|
|
306
|
-
* @generated from protobuf field:
|
|
322
|
+
* @generated from protobuf field: int64 id = 1
|
|
307
323
|
*/
|
|
308
324
|
id: number;
|
|
309
325
|
}
|
|
@@ -312,18 +328,18 @@ export interface RemoveDocumentRelationRequest {
|
|
|
312
328
|
*/
|
|
313
329
|
export interface RemoveDocumentRelationResponse {
|
|
314
330
|
}
|
|
315
|
-
// Comments
|
|
331
|
+
// Comments
|
|
316
332
|
|
|
317
333
|
/**
|
|
318
334
|
* @generated from protobuf message services.documents.GetCommentsRequest
|
|
319
335
|
*/
|
|
320
336
|
export interface GetCommentsRequest {
|
|
321
337
|
/**
|
|
322
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
338
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
323
339
|
*/
|
|
324
340
|
pagination?: PaginationRequest;
|
|
325
341
|
/**
|
|
326
|
-
* @generated from protobuf field:
|
|
342
|
+
* @generated from protobuf field: int64 document_id = 2
|
|
327
343
|
*/
|
|
328
344
|
documentId: number;
|
|
329
345
|
}
|
|
@@ -332,11 +348,11 @@ export interface GetCommentsRequest {
|
|
|
332
348
|
*/
|
|
333
349
|
export interface GetCommentsResponse {
|
|
334
350
|
/**
|
|
335
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
351
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
336
352
|
*/
|
|
337
353
|
pagination?: PaginationResponse;
|
|
338
354
|
/**
|
|
339
|
-
* @generated from protobuf field: repeated resources.documents.Comment comments = 2
|
|
355
|
+
* @generated from protobuf field: repeated resources.documents.comment.Comment comments = 2
|
|
340
356
|
*/
|
|
341
357
|
comments: Comment[];
|
|
342
358
|
}
|
|
@@ -345,7 +361,7 @@ export interface GetCommentsResponse {
|
|
|
345
361
|
*/
|
|
346
362
|
export interface PostCommentRequest {
|
|
347
363
|
/**
|
|
348
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
364
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
349
365
|
*/
|
|
350
366
|
comment?: Comment;
|
|
351
367
|
}
|
|
@@ -354,7 +370,7 @@ export interface PostCommentRequest {
|
|
|
354
370
|
*/
|
|
355
371
|
export interface PostCommentResponse {
|
|
356
372
|
/**
|
|
357
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
373
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
358
374
|
*/
|
|
359
375
|
comment?: Comment;
|
|
360
376
|
}
|
|
@@ -363,7 +379,7 @@ export interface PostCommentResponse {
|
|
|
363
379
|
*/
|
|
364
380
|
export interface EditCommentRequest {
|
|
365
381
|
/**
|
|
366
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
382
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
367
383
|
*/
|
|
368
384
|
comment?: Comment;
|
|
369
385
|
}
|
|
@@ -372,7 +388,7 @@ export interface EditCommentRequest {
|
|
|
372
388
|
*/
|
|
373
389
|
export interface EditCommentResponse {
|
|
374
390
|
/**
|
|
375
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
391
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
376
392
|
*/
|
|
377
393
|
comment?: Comment;
|
|
378
394
|
}
|
|
@@ -381,7 +397,7 @@ export interface EditCommentResponse {
|
|
|
381
397
|
*/
|
|
382
398
|
export interface DeleteCommentRequest {
|
|
383
399
|
/**
|
|
384
|
-
* @generated from protobuf field:
|
|
400
|
+
* @generated from protobuf field: int64 comment_id = 1
|
|
385
401
|
*/
|
|
386
402
|
commentId: number;
|
|
387
403
|
}
|
|
@@ -395,22 +411,20 @@ export interface DeleteCommentResponse {
|
|
|
395
411
|
*/
|
|
396
412
|
export interface UpdateDocumentResponse {
|
|
397
413
|
/**
|
|
398
|
-
* @generated from protobuf field:
|
|
414
|
+
* @generated from protobuf field: resources.documents.Document document = 1
|
|
399
415
|
*/
|
|
400
|
-
|
|
416
|
+
document?: Document;
|
|
401
417
|
}
|
|
402
418
|
/**
|
|
403
419
|
* @generated from protobuf message services.documents.DeleteDocumentRequest
|
|
404
420
|
*/
|
|
405
421
|
export interface DeleteDocumentRequest {
|
|
406
422
|
/**
|
|
407
|
-
* @generated from protobuf field:
|
|
423
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
408
424
|
*/
|
|
409
|
-
documentId: number;
|
|
425
|
+
documentId: number;
|
|
410
426
|
/**
|
|
411
|
-
* @
|
|
412
|
-
*
|
|
413
|
-
* @generated from protobuf field: optional string reason = 2;
|
|
427
|
+
* @generated from protobuf field: optional string reason = 2
|
|
414
428
|
*/
|
|
415
429
|
reason?: string;
|
|
416
430
|
}
|
|
@@ -424,11 +438,11 @@ export interface DeleteDocumentResponse {
|
|
|
424
438
|
*/
|
|
425
439
|
export interface ToggleDocumentRequest {
|
|
426
440
|
/**
|
|
427
|
-
* @generated from protobuf field:
|
|
441
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
428
442
|
*/
|
|
429
443
|
documentId: number;
|
|
430
444
|
/**
|
|
431
|
-
* @generated from protobuf field: bool closed = 2
|
|
445
|
+
* @generated from protobuf field: bool closed = 2
|
|
432
446
|
*/
|
|
433
447
|
closed: boolean;
|
|
434
448
|
}
|
|
@@ -442,11 +456,11 @@ export interface ToggleDocumentResponse {
|
|
|
442
456
|
*/
|
|
443
457
|
export interface ChangeDocumentOwnerRequest {
|
|
444
458
|
/**
|
|
445
|
-
* @generated from protobuf field:
|
|
459
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
446
460
|
*/
|
|
447
461
|
documentId: number;
|
|
448
462
|
/**
|
|
449
|
-
* @generated from protobuf field: optional int32 new_user_id = 2
|
|
463
|
+
* @generated from protobuf field: optional int32 new_user_id = 2
|
|
450
464
|
*/
|
|
451
465
|
newUserId?: number;
|
|
452
466
|
}
|
|
@@ -460,130 +474,86 @@ export interface ChangeDocumentOwnerResponse {
|
|
|
460
474
|
*/
|
|
461
475
|
export interface CreateDocumentRequest {
|
|
462
476
|
/**
|
|
463
|
-
* @generated from protobuf field:
|
|
464
|
-
*/
|
|
465
|
-
categoryId?: number; // @gotags: alias:"category_id"
|
|
466
|
-
/**
|
|
467
|
-
* @sanitize: method=StripTags
|
|
468
|
-
*
|
|
469
|
-
* @generated from protobuf field: string title = 2;
|
|
470
|
-
*/
|
|
471
|
-
title: string; // @gotags: alias:"title"
|
|
472
|
-
/**
|
|
473
|
-
* @sanitize
|
|
474
|
-
*
|
|
475
|
-
* @generated from protobuf field: resources.common.content.Content content = 3;
|
|
476
|
-
*/
|
|
477
|
-
content?: Content;
|
|
478
|
-
/**
|
|
479
|
-
* @generated from protobuf field: resources.common.content.ContentType content_type = 4;
|
|
480
|
-
*/
|
|
481
|
-
contentType: ContentType; // @gotags: alias:"content_type"
|
|
482
|
-
/**
|
|
483
|
-
* @generated from protobuf field: optional string data = 5;
|
|
484
|
-
*/
|
|
485
|
-
data?: string; // @gotags: alias:"data"
|
|
486
|
-
/**
|
|
487
|
-
* @sanitize
|
|
488
|
-
*
|
|
489
|
-
* @generated from protobuf field: string state = 6;
|
|
490
|
-
*/
|
|
491
|
-
state: string; // @gotags: alias:"state"
|
|
492
|
-
/**
|
|
493
|
-
* @generated from protobuf field: bool closed = 7;
|
|
477
|
+
* @generated from protobuf field: resources.common.content.ContentType content_type = 1
|
|
494
478
|
*/
|
|
495
|
-
|
|
479
|
+
contentType: ContentType;
|
|
496
480
|
/**
|
|
497
|
-
* @generated from protobuf field:
|
|
481
|
+
* @generated from protobuf field: optional int64 template_id = 2
|
|
498
482
|
*/
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* @generated from protobuf field: optional resources.documents.DocumentAccess access = 9;
|
|
502
|
-
*/
|
|
503
|
-
access?: DocumentAccess;
|
|
483
|
+
templateId?: number;
|
|
504
484
|
/**
|
|
505
|
-
* @generated from protobuf field: optional
|
|
485
|
+
* @generated from protobuf field: optional resources.documents.templates.TemplateData template_data = 3
|
|
506
486
|
*/
|
|
507
|
-
|
|
487
|
+
templateData?: TemplateData;
|
|
508
488
|
}
|
|
509
489
|
/**
|
|
510
490
|
* @generated from protobuf message services.documents.CreateDocumentResponse
|
|
511
491
|
*/
|
|
512
492
|
export interface CreateDocumentResponse {
|
|
513
493
|
/**
|
|
514
|
-
* @generated from protobuf field:
|
|
494
|
+
* @generated from protobuf field: int64 id = 1
|
|
515
495
|
*/
|
|
516
|
-
|
|
496
|
+
id: number;
|
|
517
497
|
}
|
|
518
498
|
/**
|
|
519
499
|
* @generated from protobuf message services.documents.UpdateDocumentRequest
|
|
520
500
|
*/
|
|
521
501
|
export interface UpdateDocumentRequest {
|
|
522
502
|
/**
|
|
523
|
-
* @generated from protobuf field:
|
|
503
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
524
504
|
*/
|
|
525
|
-
documentId: number;
|
|
505
|
+
documentId: number;
|
|
526
506
|
/**
|
|
527
|
-
* @generated from protobuf field: optional
|
|
507
|
+
* @generated from protobuf field: optional int64 category_id = 2
|
|
528
508
|
*/
|
|
529
|
-
categoryId?: number;
|
|
509
|
+
categoryId?: number;
|
|
530
510
|
/**
|
|
531
|
-
* @
|
|
532
|
-
*
|
|
533
|
-
* @generated from protobuf field: string title = 3;
|
|
511
|
+
* @generated from protobuf field: string title = 3
|
|
534
512
|
*/
|
|
535
|
-
title: string;
|
|
513
|
+
title: string;
|
|
536
514
|
/**
|
|
537
|
-
* @
|
|
538
|
-
*
|
|
539
|
-
* @generated from protobuf field: resources.common.content.Content content = 4;
|
|
515
|
+
* @generated from protobuf field: resources.common.content.Content content = 4
|
|
540
516
|
*/
|
|
541
517
|
content?: Content;
|
|
542
518
|
/**
|
|
543
|
-
* @generated from protobuf field: resources.common.content.ContentType content_type = 5
|
|
544
|
-
*/
|
|
545
|
-
contentType: ContentType; // @gotags: alias:"content_type"
|
|
546
|
-
/**
|
|
547
|
-
* @generated from protobuf field: optional string data = 6;
|
|
519
|
+
* @generated from protobuf field: resources.common.content.ContentType content_type = 5
|
|
548
520
|
*/
|
|
549
|
-
|
|
521
|
+
contentType: ContentType;
|
|
550
522
|
/**
|
|
551
|
-
* @
|
|
552
|
-
*
|
|
553
|
-
* @generated from protobuf field: string state = 7;
|
|
523
|
+
* @generated from protobuf field: optional resources.documents.data.DocumentData data = 6
|
|
554
524
|
*/
|
|
555
|
-
|
|
525
|
+
data?: DocumentData;
|
|
556
526
|
/**
|
|
557
|
-
* @generated from protobuf field:
|
|
527
|
+
* @generated from protobuf field: resources.documents.DocumentMeta meta = 7
|
|
558
528
|
*/
|
|
559
|
-
|
|
529
|
+
meta?: DocumentMeta;
|
|
560
530
|
/**
|
|
561
|
-
* @generated from protobuf field:
|
|
531
|
+
* @generated from protobuf field: optional resources.documents.access.DocumentAccess access = 11
|
|
562
532
|
*/
|
|
563
|
-
|
|
533
|
+
access?: DocumentAccess;
|
|
564
534
|
/**
|
|
565
|
-
* @generated from protobuf field:
|
|
535
|
+
* @generated from protobuf field: repeated resources.file.File files = 12
|
|
566
536
|
*/
|
|
567
|
-
|
|
537
|
+
files: File[];
|
|
568
538
|
}
|
|
569
|
-
// Document Activity and Requests
|
|
539
|
+
// Document Activity and Requests
|
|
570
540
|
|
|
571
541
|
/**
|
|
572
542
|
* @generated from protobuf message services.documents.ListDocumentActivityRequest
|
|
573
543
|
*/
|
|
574
544
|
export interface ListDocumentActivityRequest {
|
|
575
545
|
/**
|
|
576
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
546
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
577
547
|
*/
|
|
578
548
|
pagination?: PaginationRequest;
|
|
579
549
|
/**
|
|
580
|
-
* @generated from protobuf field:
|
|
550
|
+
* @generated from protobuf field: int64 document_id = 2
|
|
581
551
|
*/
|
|
582
552
|
documentId: number;
|
|
583
553
|
/**
|
|
584
554
|
* Search params
|
|
585
555
|
*
|
|
586
|
-
* @generated from protobuf field: repeated resources.documents.DocActivityType activity_types = 3
|
|
556
|
+
* @generated from protobuf field: repeated resources.documents.activity.DocActivityType activity_types = 3
|
|
587
557
|
*/
|
|
588
558
|
activityTypes: DocActivityType[];
|
|
589
559
|
}
|
|
@@ -592,11 +562,11 @@ export interface ListDocumentActivityRequest {
|
|
|
592
562
|
*/
|
|
593
563
|
export interface ListDocumentActivityResponse {
|
|
594
564
|
/**
|
|
595
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
565
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
596
566
|
*/
|
|
597
567
|
pagination?: PaginationResponse;
|
|
598
568
|
/**
|
|
599
|
-
* @generated from protobuf field: repeated resources.documents.DocActivity activity = 2
|
|
569
|
+
* @generated from protobuf field: repeated resources.documents.activity.DocActivity activity = 2
|
|
600
570
|
*/
|
|
601
571
|
activity: DocActivity[];
|
|
602
572
|
}
|
|
@@ -605,11 +575,11 @@ export interface ListDocumentActivityResponse {
|
|
|
605
575
|
*/
|
|
606
576
|
export interface ListDocumentReqsRequest {
|
|
607
577
|
/**
|
|
608
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
578
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
609
579
|
*/
|
|
610
580
|
pagination?: PaginationRequest;
|
|
611
581
|
/**
|
|
612
|
-
* @generated from protobuf field:
|
|
582
|
+
* @generated from protobuf field: int64 document_id = 2
|
|
613
583
|
*/
|
|
614
584
|
documentId: number;
|
|
615
585
|
}
|
|
@@ -618,11 +588,11 @@ export interface ListDocumentReqsRequest {
|
|
|
618
588
|
*/
|
|
619
589
|
export interface ListDocumentReqsResponse {
|
|
620
590
|
/**
|
|
621
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
591
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
622
592
|
*/
|
|
623
593
|
pagination?: PaginationResponse;
|
|
624
594
|
/**
|
|
625
|
-
* @generated from protobuf field: repeated resources.documents.DocRequest requests = 2
|
|
595
|
+
* @generated from protobuf field: repeated resources.documents.requests.DocRequest requests = 2
|
|
626
596
|
*/
|
|
627
597
|
requests: DocRequest[];
|
|
628
598
|
}
|
|
@@ -631,21 +601,19 @@ export interface ListDocumentReqsResponse {
|
|
|
631
601
|
*/
|
|
632
602
|
export interface CreateDocumentReqRequest {
|
|
633
603
|
/**
|
|
634
|
-
* @generated from protobuf field:
|
|
604
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
635
605
|
*/
|
|
636
606
|
documentId: number;
|
|
637
607
|
/**
|
|
638
|
-
* @generated from protobuf field: resources.documents.DocActivityType request_type = 2
|
|
608
|
+
* @generated from protobuf field: resources.documents.activity.DocActivityType request_type = 2
|
|
639
609
|
*/
|
|
640
610
|
requestType: DocActivityType;
|
|
641
611
|
/**
|
|
642
|
-
* @
|
|
643
|
-
*
|
|
644
|
-
* @generated from protobuf field: optional string reason = 3;
|
|
612
|
+
* @generated from protobuf field: optional string reason = 3
|
|
645
613
|
*/
|
|
646
614
|
reason?: string;
|
|
647
615
|
/**
|
|
648
|
-
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
616
|
+
* @generated from protobuf field: optional resources.documents.activity.DocActivityData data = 4
|
|
649
617
|
*/
|
|
650
618
|
data?: DocActivityData;
|
|
651
619
|
}
|
|
@@ -654,7 +622,7 @@ export interface CreateDocumentReqRequest {
|
|
|
654
622
|
*/
|
|
655
623
|
export interface CreateDocumentReqResponse {
|
|
656
624
|
/**
|
|
657
|
-
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
625
|
+
* @generated from protobuf field: resources.documents.requests.DocRequest request = 1
|
|
658
626
|
*/
|
|
659
627
|
request?: DocRequest;
|
|
660
628
|
}
|
|
@@ -663,25 +631,23 @@ export interface CreateDocumentReqResponse {
|
|
|
663
631
|
*/
|
|
664
632
|
export interface UpdateDocumentReqRequest {
|
|
665
633
|
/**
|
|
666
|
-
* @generated from protobuf field:
|
|
634
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
667
635
|
*/
|
|
668
636
|
documentId: number;
|
|
669
637
|
/**
|
|
670
|
-
* @generated from protobuf field:
|
|
638
|
+
* @generated from protobuf field: int64 request_id = 2
|
|
671
639
|
*/
|
|
672
640
|
requestId: number;
|
|
673
641
|
/**
|
|
674
|
-
* @
|
|
675
|
-
*
|
|
676
|
-
* @generated from protobuf field: optional string reason = 3;
|
|
642
|
+
* @generated from protobuf field: optional string reason = 3
|
|
677
643
|
*/
|
|
678
644
|
reason?: string;
|
|
679
645
|
/**
|
|
680
|
-
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
646
|
+
* @generated from protobuf field: optional resources.documents.activity.DocActivityData data = 4
|
|
681
647
|
*/
|
|
682
648
|
data?: DocActivityData;
|
|
683
649
|
/**
|
|
684
|
-
* @generated from protobuf field: bool accepted = 5
|
|
650
|
+
* @generated from protobuf field: bool accepted = 5
|
|
685
651
|
*/
|
|
686
652
|
accepted: boolean;
|
|
687
653
|
}
|
|
@@ -690,7 +656,7 @@ export interface UpdateDocumentReqRequest {
|
|
|
690
656
|
*/
|
|
691
657
|
export interface UpdateDocumentReqResponse {
|
|
692
658
|
/**
|
|
693
|
-
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
659
|
+
* @generated from protobuf field: resources.documents.requests.DocRequest request = 1
|
|
694
660
|
*/
|
|
695
661
|
request?: DocRequest;
|
|
696
662
|
}
|
|
@@ -699,7 +665,7 @@ export interface UpdateDocumentReqResponse {
|
|
|
699
665
|
*/
|
|
700
666
|
export interface DeleteDocumentReqRequest {
|
|
701
667
|
/**
|
|
702
|
-
* @generated from protobuf field:
|
|
668
|
+
* @generated from protobuf field: int64 request_id = 1
|
|
703
669
|
*/
|
|
704
670
|
requestId: number;
|
|
705
671
|
}
|
|
@@ -708,14 +674,14 @@ export interface DeleteDocumentReqRequest {
|
|
|
708
674
|
*/
|
|
709
675
|
export interface DeleteDocumentReqResponse {
|
|
710
676
|
}
|
|
711
|
-
// Access
|
|
677
|
+
// Access
|
|
712
678
|
|
|
713
679
|
/**
|
|
714
680
|
* @generated from protobuf message services.documents.GetDocumentAccessRequest
|
|
715
681
|
*/
|
|
716
682
|
export interface GetDocumentAccessRequest {
|
|
717
683
|
/**
|
|
718
|
-
* @generated from protobuf field:
|
|
684
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
719
685
|
*/
|
|
720
686
|
documentId: number;
|
|
721
687
|
}
|
|
@@ -724,7 +690,7 @@ export interface GetDocumentAccessRequest {
|
|
|
724
690
|
*/
|
|
725
691
|
export interface GetDocumentAccessResponse {
|
|
726
692
|
/**
|
|
727
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 1
|
|
693
|
+
* @generated from protobuf field: resources.documents.access.DocumentAccess access = 1
|
|
728
694
|
*/
|
|
729
695
|
access?: DocumentAccess;
|
|
730
696
|
}
|
|
@@ -733,11 +699,11 @@ export interface GetDocumentAccessResponse {
|
|
|
733
699
|
*/
|
|
734
700
|
export interface SetDocumentAccessRequest {
|
|
735
701
|
/**
|
|
736
|
-
* @generated from protobuf field:
|
|
702
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
737
703
|
*/
|
|
738
704
|
documentId: number;
|
|
739
705
|
/**
|
|
740
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
706
|
+
* @generated from protobuf field: resources.documents.access.DocumentAccess access = 2
|
|
741
707
|
*/
|
|
742
708
|
access?: DocumentAccess;
|
|
743
709
|
}
|
|
@@ -751,40 +717,46 @@ export interface SetDocumentAccessResponse {
|
|
|
751
717
|
*/
|
|
752
718
|
export interface ListUserDocumentsRequest {
|
|
753
719
|
/**
|
|
754
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
720
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
755
721
|
*/
|
|
756
722
|
pagination?: PaginationRequest;
|
|
757
723
|
/**
|
|
758
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
724
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
759
725
|
*/
|
|
760
726
|
sort?: Sort;
|
|
761
727
|
/**
|
|
762
|
-
* @generated from protobuf field: int32 user_id = 3
|
|
728
|
+
* @generated from protobuf field: int32 user_id = 3
|
|
763
729
|
*/
|
|
764
730
|
userId: number;
|
|
765
731
|
/**
|
|
766
|
-
* @generated from protobuf field: repeated resources.documents.DocRelation relations = 4
|
|
732
|
+
* @generated from protobuf field: repeated resources.documents.relations.DocRelation relations = 4
|
|
767
733
|
*/
|
|
768
734
|
relations: DocRelation[];
|
|
769
735
|
/**
|
|
770
|
-
* @generated from protobuf field: optional bool closed = 5
|
|
736
|
+
* @generated from protobuf field: optional bool closed = 5
|
|
771
737
|
*/
|
|
772
738
|
closed?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Include the document relations created by the given user.
|
|
741
|
+
*
|
|
742
|
+
* @generated from protobuf field: optional bool include_created = 6
|
|
743
|
+
*/
|
|
744
|
+
includeCreated?: boolean;
|
|
773
745
|
}
|
|
774
746
|
/**
|
|
775
747
|
* @generated from protobuf message services.documents.ListUserDocumentsResponse
|
|
776
748
|
*/
|
|
777
749
|
export interface ListUserDocumentsResponse {
|
|
778
750
|
/**
|
|
779
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
751
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
780
752
|
*/
|
|
781
753
|
pagination?: PaginationResponse;
|
|
782
754
|
/**
|
|
783
|
-
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 2
|
|
755
|
+
* @generated from protobuf field: repeated resources.documents.relations.DocumentRelation relations = 2
|
|
784
756
|
*/
|
|
785
757
|
relations: DocumentRelation[];
|
|
786
758
|
}
|
|
787
|
-
// Categories
|
|
759
|
+
// Categories
|
|
788
760
|
|
|
789
761
|
/**
|
|
790
762
|
* @generated from protobuf message services.documents.ListCategoriesRequest
|
|
@@ -796,7 +768,7 @@ export interface ListCategoriesRequest {
|
|
|
796
768
|
*/
|
|
797
769
|
export interface ListCategoriesResponse {
|
|
798
770
|
/**
|
|
799
|
-
* @generated from protobuf field: repeated resources.documents.Category categories = 1
|
|
771
|
+
* @generated from protobuf field: repeated resources.documents.category.Category categories = 1
|
|
800
772
|
*/
|
|
801
773
|
categories: Category[];
|
|
802
774
|
}
|
|
@@ -805,7 +777,7 @@ export interface ListCategoriesResponse {
|
|
|
805
777
|
*/
|
|
806
778
|
export interface CreateOrUpdateCategoryRequest {
|
|
807
779
|
/**
|
|
808
|
-
* @generated from protobuf field: resources.documents.Category category = 1
|
|
780
|
+
* @generated from protobuf field: resources.documents.category.Category category = 1
|
|
809
781
|
*/
|
|
810
782
|
category?: Category;
|
|
811
783
|
}
|
|
@@ -814,7 +786,7 @@ export interface CreateOrUpdateCategoryRequest {
|
|
|
814
786
|
*/
|
|
815
787
|
export interface CreateOrUpdateCategoryResponse {
|
|
816
788
|
/**
|
|
817
|
-
* @generated from protobuf field: resources.documents.Category category = 1
|
|
789
|
+
* @generated from protobuf field: resources.documents.category.Category category = 1
|
|
818
790
|
*/
|
|
819
791
|
category?: Category;
|
|
820
792
|
}
|
|
@@ -823,7 +795,7 @@ export interface CreateOrUpdateCategoryResponse {
|
|
|
823
795
|
*/
|
|
824
796
|
export interface DeleteCategoryRequest {
|
|
825
797
|
/**
|
|
826
|
-
* @generated from protobuf field:
|
|
798
|
+
* @generated from protobuf field: int64 id = 1
|
|
827
799
|
*/
|
|
828
800
|
id: number;
|
|
829
801
|
}
|
|
@@ -832,27 +804,34 @@ export interface DeleteCategoryRequest {
|
|
|
832
804
|
*/
|
|
833
805
|
export interface DeleteCategoryResponse {
|
|
834
806
|
}
|
|
835
|
-
// Pins
|
|
807
|
+
// Pins
|
|
836
808
|
|
|
837
809
|
/**
|
|
838
810
|
* @generated from protobuf message services.documents.ListDocumentPinsRequest
|
|
839
811
|
*/
|
|
840
812
|
export interface ListDocumentPinsRequest {
|
|
841
813
|
/**
|
|
842
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
814
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
843
815
|
*/
|
|
844
816
|
pagination?: PaginationRequest;
|
|
817
|
+
/**
|
|
818
|
+
* Search params
|
|
819
|
+
* If true, only personal pins are returned
|
|
820
|
+
*
|
|
821
|
+
* @generated from protobuf field: optional bool personal = 2
|
|
822
|
+
*/
|
|
823
|
+
personal?: boolean;
|
|
845
824
|
}
|
|
846
825
|
/**
|
|
847
826
|
* @generated from protobuf message services.documents.ListDocumentPinsResponse
|
|
848
827
|
*/
|
|
849
828
|
export interface ListDocumentPinsResponse {
|
|
850
829
|
/**
|
|
851
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
830
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
852
831
|
*/
|
|
853
832
|
pagination?: PaginationResponse;
|
|
854
833
|
/**
|
|
855
|
-
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
834
|
+
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
856
835
|
*/
|
|
857
836
|
documents: DocumentShort[];
|
|
858
837
|
}
|
|
@@ -861,43 +840,51 @@ export interface ListDocumentPinsResponse {
|
|
|
861
840
|
*/
|
|
862
841
|
export interface ToggleDocumentPinRequest {
|
|
863
842
|
/**
|
|
864
|
-
* @generated from protobuf field:
|
|
843
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
865
844
|
*/
|
|
866
845
|
documentId: number;
|
|
867
846
|
/**
|
|
868
|
-
* @generated from protobuf field: bool state = 2
|
|
847
|
+
* @generated from protobuf field: bool state = 2
|
|
869
848
|
*/
|
|
870
849
|
state: boolean;
|
|
850
|
+
/**
|
|
851
|
+
* If true, the pin is personal and not shared with other job members
|
|
852
|
+
*
|
|
853
|
+
* @generated from protobuf field: optional bool personal = 3
|
|
854
|
+
*/
|
|
855
|
+
personal?: boolean;
|
|
871
856
|
}
|
|
872
857
|
/**
|
|
873
858
|
* @generated from protobuf message services.documents.ToggleDocumentPinResponse
|
|
874
859
|
*/
|
|
875
860
|
export interface ToggleDocumentPinResponse {
|
|
876
861
|
/**
|
|
877
|
-
* @generated from protobuf field:
|
|
862
|
+
* @generated from protobuf field: optional resources.documents.pins.DocumentPin pin = 1
|
|
878
863
|
*/
|
|
879
|
-
|
|
864
|
+
pin?: DocumentPin;
|
|
880
865
|
}
|
|
881
|
-
// Reminders
|
|
866
|
+
// Reminders
|
|
882
867
|
|
|
883
868
|
/**
|
|
884
869
|
* @generated from protobuf message services.documents.SetDocumentReminderRequest
|
|
885
870
|
*/
|
|
886
871
|
export interface SetDocumentReminderRequest {
|
|
887
872
|
/**
|
|
888
|
-
* @generated from protobuf field:
|
|
873
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
889
874
|
*/
|
|
890
875
|
documentId: number;
|
|
891
876
|
/**
|
|
892
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp reminder_time = 2
|
|
877
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp reminder_time = 2
|
|
893
878
|
*/
|
|
894
879
|
reminderTime?: Timestamp;
|
|
895
880
|
/**
|
|
896
|
-
* @
|
|
897
|
-
*
|
|
898
|
-
* @generated from protobuf field: optional string message = 3;
|
|
881
|
+
* @generated from protobuf field: optional string message = 3
|
|
899
882
|
*/
|
|
900
883
|
message?: string;
|
|
884
|
+
/**
|
|
885
|
+
* @generated from protobuf field: int32 max_reminder_count = 4
|
|
886
|
+
*/
|
|
887
|
+
maxReminderCount: number;
|
|
901
888
|
}
|
|
902
889
|
/**
|
|
903
890
|
* @generated from protobuf message services.documents.SetDocumentReminderResponse
|
|
@@ -961,7 +948,7 @@ class ListTemplatesResponse$Type extends MessageType<ListTemplatesResponse> {
|
|
|
961
948
|
while (reader.pos < end) {
|
|
962
949
|
let [fieldNo, wireType] = reader.tag();
|
|
963
950
|
switch (fieldNo) {
|
|
964
|
-
case /* repeated resources.documents.TemplateShort templates */ 1:
|
|
951
|
+
case /* repeated resources.documents.templates.TemplateShort templates */ 1:
|
|
965
952
|
message.templates.push(TemplateShort.internalBinaryRead(reader, reader.uint32(), options));
|
|
966
953
|
break;
|
|
967
954
|
default:
|
|
@@ -976,7 +963,7 @@ class ListTemplatesResponse$Type extends MessageType<ListTemplatesResponse> {
|
|
|
976
963
|
return message;
|
|
977
964
|
}
|
|
978
965
|
internalBinaryWrite(message: ListTemplatesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
979
|
-
/* repeated resources.documents.TemplateShort templates = 1; */
|
|
966
|
+
/* repeated resources.documents.templates.TemplateShort templates = 1; */
|
|
980
967
|
for (let i = 0; i < message.templates.length; i++)
|
|
981
968
|
TemplateShort.internalBinaryWrite(message.templates[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
982
969
|
let u = options.writeUnknownFields;
|
|
@@ -993,7 +980,7 @@ export const ListTemplatesResponse = new ListTemplatesResponse$Type();
|
|
|
993
980
|
class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
994
981
|
constructor() {
|
|
995
982
|
super("services.documents.GetTemplateRequest", [
|
|
996
|
-
{ no: 1, name: "template_id", kind: "scalar", T:
|
|
983
|
+
{ no: 1, name: "template_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
997
984
|
{ no: 2, name: "data", kind: "message", T: () => TemplateData },
|
|
998
985
|
{ no: 3, name: "render", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
999
986
|
]);
|
|
@@ -1010,10 +997,10 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1010
997
|
while (reader.pos < end) {
|
|
1011
998
|
let [fieldNo, wireType] = reader.tag();
|
|
1012
999
|
switch (fieldNo) {
|
|
1013
|
-
case /*
|
|
1014
|
-
message.templateId = reader.
|
|
1000
|
+
case /* int64 template_id */ 1:
|
|
1001
|
+
message.templateId = reader.int64().toNumber();
|
|
1015
1002
|
break;
|
|
1016
|
-
case /* optional resources.documents.TemplateData data */ 2:
|
|
1003
|
+
case /* optional resources.documents.templates.TemplateData data */ 2:
|
|
1017
1004
|
message.data = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
1018
1005
|
break;
|
|
1019
1006
|
case /* optional bool render */ 3:
|
|
@@ -1031,10 +1018,10 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1031
1018
|
return message;
|
|
1032
1019
|
}
|
|
1033
1020
|
internalBinaryWrite(message: GetTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1034
|
-
/*
|
|
1021
|
+
/* int64 template_id = 1; */
|
|
1035
1022
|
if (message.templateId !== 0)
|
|
1036
|
-
writer.tag(1, WireType.Varint).
|
|
1037
|
-
/* optional resources.documents.TemplateData data = 2; */
|
|
1023
|
+
writer.tag(1, WireType.Varint).int64(message.templateId);
|
|
1024
|
+
/* optional resources.documents.templates.TemplateData data = 2; */
|
|
1038
1025
|
if (message.data)
|
|
1039
1026
|
TemplateData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1040
1027
|
/* optional bool render = 3; */
|
|
@@ -1070,7 +1057,7 @@ class GetTemplateResponse$Type extends MessageType<GetTemplateResponse> {
|
|
|
1070
1057
|
while (reader.pos < end) {
|
|
1071
1058
|
let [fieldNo, wireType] = reader.tag();
|
|
1072
1059
|
switch (fieldNo) {
|
|
1073
|
-
case /* resources.documents.Template template */ 1:
|
|
1060
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1074
1061
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1075
1062
|
break;
|
|
1076
1063
|
case /* bool rendered */ 2:
|
|
@@ -1088,7 +1075,7 @@ class GetTemplateResponse$Type extends MessageType<GetTemplateResponse> {
|
|
|
1088
1075
|
return message;
|
|
1089
1076
|
}
|
|
1090
1077
|
internalBinaryWrite(message: GetTemplateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1091
|
-
/* resources.documents.Template template = 1; */
|
|
1078
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1092
1079
|
if (message.template)
|
|
1093
1080
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1094
1081
|
/* bool rendered = 2; */
|
|
@@ -1108,7 +1095,7 @@ export const GetTemplateResponse = new GetTemplateResponse$Type();
|
|
|
1108
1095
|
class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
1109
1096
|
constructor() {
|
|
1110
1097
|
super("services.documents.CreateTemplateRequest", [
|
|
1111
|
-
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "validate.
|
|
1098
|
+
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "buf.validate.field": { required: true } } }
|
|
1112
1099
|
]);
|
|
1113
1100
|
}
|
|
1114
1101
|
create(value?: PartialMessage<CreateTemplateRequest>): CreateTemplateRequest {
|
|
@@ -1122,7 +1109,7 @@ class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
|
1122
1109
|
while (reader.pos < end) {
|
|
1123
1110
|
let [fieldNo, wireType] = reader.tag();
|
|
1124
1111
|
switch (fieldNo) {
|
|
1125
|
-
case /* resources.documents.Template template */ 1:
|
|
1112
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1126
1113
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1127
1114
|
break;
|
|
1128
1115
|
default:
|
|
@@ -1137,7 +1124,7 @@ class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
|
1137
1124
|
return message;
|
|
1138
1125
|
}
|
|
1139
1126
|
internalBinaryWrite(message: CreateTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1140
|
-
/* resources.documents.Template template = 1; */
|
|
1127
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1141
1128
|
if (message.template)
|
|
1142
1129
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1143
1130
|
let u = options.writeUnknownFields;
|
|
@@ -1154,7 +1141,7 @@ export const CreateTemplateRequest = new CreateTemplateRequest$Type();
|
|
|
1154
1141
|
class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
1155
1142
|
constructor() {
|
|
1156
1143
|
super("services.documents.CreateTemplateResponse", [
|
|
1157
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1144
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1158
1145
|
]);
|
|
1159
1146
|
}
|
|
1160
1147
|
create(value?: PartialMessage<CreateTemplateResponse>): CreateTemplateResponse {
|
|
@@ -1169,8 +1156,8 @@ class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
|
1169
1156
|
while (reader.pos < end) {
|
|
1170
1157
|
let [fieldNo, wireType] = reader.tag();
|
|
1171
1158
|
switch (fieldNo) {
|
|
1172
|
-
case /*
|
|
1173
|
-
message.id = reader.
|
|
1159
|
+
case /* int64 id */ 1:
|
|
1160
|
+
message.id = reader.int64().toNumber();
|
|
1174
1161
|
break;
|
|
1175
1162
|
default:
|
|
1176
1163
|
let u = options.readUnknownField;
|
|
@@ -1184,9 +1171,9 @@ class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
|
1184
1171
|
return message;
|
|
1185
1172
|
}
|
|
1186
1173
|
internalBinaryWrite(message: CreateTemplateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1187
|
-
/*
|
|
1174
|
+
/* int64 id = 1; */
|
|
1188
1175
|
if (message.id !== 0)
|
|
1189
|
-
writer.tag(1, WireType.Varint).
|
|
1176
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1190
1177
|
let u = options.writeUnknownFields;
|
|
1191
1178
|
if (u !== false)
|
|
1192
1179
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1201,7 +1188,7 @@ export const CreateTemplateResponse = new CreateTemplateResponse$Type();
|
|
|
1201
1188
|
class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
1202
1189
|
constructor() {
|
|
1203
1190
|
super("services.documents.UpdateTemplateRequest", [
|
|
1204
|
-
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "validate.
|
|
1191
|
+
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "buf.validate.field": { required: true } } }
|
|
1205
1192
|
]);
|
|
1206
1193
|
}
|
|
1207
1194
|
create(value?: PartialMessage<UpdateTemplateRequest>): UpdateTemplateRequest {
|
|
@@ -1215,7 +1202,7 @@ class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
|
1215
1202
|
while (reader.pos < end) {
|
|
1216
1203
|
let [fieldNo, wireType] = reader.tag();
|
|
1217
1204
|
switch (fieldNo) {
|
|
1218
|
-
case /* resources.documents.Template template */ 1:
|
|
1205
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1219
1206
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1220
1207
|
break;
|
|
1221
1208
|
default:
|
|
@@ -1230,7 +1217,7 @@ class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
|
1230
1217
|
return message;
|
|
1231
1218
|
}
|
|
1232
1219
|
internalBinaryWrite(message: UpdateTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1233
|
-
/* resources.documents.Template template = 1; */
|
|
1220
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1234
1221
|
if (message.template)
|
|
1235
1222
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1236
1223
|
let u = options.writeUnknownFields;
|
|
@@ -1261,7 +1248,7 @@ class UpdateTemplateResponse$Type extends MessageType<UpdateTemplateResponse> {
|
|
|
1261
1248
|
while (reader.pos < end) {
|
|
1262
1249
|
let [fieldNo, wireType] = reader.tag();
|
|
1263
1250
|
switch (fieldNo) {
|
|
1264
|
-
case /* resources.documents.Template template */ 1:
|
|
1251
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1265
1252
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1266
1253
|
break;
|
|
1267
1254
|
default:
|
|
@@ -1276,7 +1263,7 @@ class UpdateTemplateResponse$Type extends MessageType<UpdateTemplateResponse> {
|
|
|
1276
1263
|
return message;
|
|
1277
1264
|
}
|
|
1278
1265
|
internalBinaryWrite(message: UpdateTemplateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1279
|
-
/* resources.documents.Template template = 1; */
|
|
1266
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1280
1267
|
if (message.template)
|
|
1281
1268
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1282
1269
|
let u = options.writeUnknownFields;
|
|
@@ -1293,7 +1280,7 @@ export const UpdateTemplateResponse = new UpdateTemplateResponse$Type();
|
|
|
1293
1280
|
class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
1294
1281
|
constructor() {
|
|
1295
1282
|
super("services.documents.DeleteTemplateRequest", [
|
|
1296
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1283
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1297
1284
|
]);
|
|
1298
1285
|
}
|
|
1299
1286
|
create(value?: PartialMessage<DeleteTemplateRequest>): DeleteTemplateRequest {
|
|
@@ -1308,8 +1295,8 @@ class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
|
1308
1295
|
while (reader.pos < end) {
|
|
1309
1296
|
let [fieldNo, wireType] = reader.tag();
|
|
1310
1297
|
switch (fieldNo) {
|
|
1311
|
-
case /*
|
|
1312
|
-
message.id = reader.
|
|
1298
|
+
case /* int64 id */ 1:
|
|
1299
|
+
message.id = reader.int64().toNumber();
|
|
1313
1300
|
break;
|
|
1314
1301
|
default:
|
|
1315
1302
|
let u = options.readUnknownField;
|
|
@@ -1323,9 +1310,9 @@ class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
|
1323
1310
|
return message;
|
|
1324
1311
|
}
|
|
1325
1312
|
internalBinaryWrite(message: DeleteTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1326
|
-
/*
|
|
1313
|
+
/* int64 id = 1; */
|
|
1327
1314
|
if (message.id !== 0)
|
|
1328
|
-
writer.tag(1, WireType.Varint).
|
|
1315
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1329
1316
|
let u = options.writeUnknownFields;
|
|
1330
1317
|
if (u !== false)
|
|
1331
1318
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1378,15 +1365,16 @@ export const DeleteTemplateResponse = new DeleteTemplateResponse$Type();
|
|
|
1378
1365
|
class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
1379
1366
|
constructor() {
|
|
1380
1367
|
super("services.documents.ListDocumentsRequest", [
|
|
1381
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
1368
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
1382
1369
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
1383
|
-
{ no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
1384
|
-
{ no: 4, name: "category_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T:
|
|
1385
|
-
{ no: 5, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
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" } } } },
|
|
1386
1373
|
{ no: 6, name: "from", kind: "message", T: () => Timestamp },
|
|
1387
1374
|
{ no: 7, name: "to", kind: "message", T: () => Timestamp },
|
|
1388
1375
|
{ no: 8, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1389
|
-
{ no: 9, name: "document_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T:
|
|
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*/ }
|
|
1390
1378
|
]);
|
|
1391
1379
|
}
|
|
1392
1380
|
create(value?: PartialMessage<ListDocumentsRequest>): ListDocumentsRequest {
|
|
@@ -1412,12 +1400,12 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1412
1400
|
case /* optional string search */ 3:
|
|
1413
1401
|
message.search = reader.string();
|
|
1414
1402
|
break;
|
|
1415
|
-
case /* repeated
|
|
1403
|
+
case /* repeated int64 category_ids */ 4:
|
|
1416
1404
|
if (wireType === WireType.LengthDelimited)
|
|
1417
1405
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1418
|
-
message.categoryIds.push(reader.
|
|
1406
|
+
message.categoryIds.push(reader.int64().toNumber());
|
|
1419
1407
|
else
|
|
1420
|
-
message.categoryIds.push(reader.
|
|
1408
|
+
message.categoryIds.push(reader.int64().toNumber());
|
|
1421
1409
|
break;
|
|
1422
1410
|
case /* repeated int32 creator_ids */ 5:
|
|
1423
1411
|
if (wireType === WireType.LengthDelimited)
|
|
@@ -1435,12 +1423,15 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1435
1423
|
case /* optional bool closed */ 8:
|
|
1436
1424
|
message.closed = reader.bool();
|
|
1437
1425
|
break;
|
|
1438
|
-
case /* repeated
|
|
1426
|
+
case /* repeated int64 document_ids */ 9:
|
|
1439
1427
|
if (wireType === WireType.LengthDelimited)
|
|
1440
1428
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1441
|
-
message.documentIds.push(reader.
|
|
1429
|
+
message.documentIds.push(reader.int64().toNumber());
|
|
1442
1430
|
else
|
|
1443
|
-
message.documentIds.push(reader.
|
|
1431
|
+
message.documentIds.push(reader.int64().toNumber());
|
|
1432
|
+
break;
|
|
1433
|
+
case /* optional bool only_drafts */ 10:
|
|
1434
|
+
message.onlyDrafts = reader.bool();
|
|
1444
1435
|
break;
|
|
1445
1436
|
default:
|
|
1446
1437
|
let u = options.readUnknownField;
|
|
@@ -1463,11 +1454,11 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1463
1454
|
/* optional string search = 3; */
|
|
1464
1455
|
if (message.search !== undefined)
|
|
1465
1456
|
writer.tag(3, WireType.LengthDelimited).string(message.search);
|
|
1466
|
-
/* repeated
|
|
1457
|
+
/* repeated int64 category_ids = 4; */
|
|
1467
1458
|
if (message.categoryIds.length) {
|
|
1468
1459
|
writer.tag(4, WireType.LengthDelimited).fork();
|
|
1469
1460
|
for (let i = 0; i < message.categoryIds.length; i++)
|
|
1470
|
-
writer.
|
|
1461
|
+
writer.int64(message.categoryIds[i]);
|
|
1471
1462
|
writer.join();
|
|
1472
1463
|
}
|
|
1473
1464
|
/* repeated int32 creator_ids = 5; */
|
|
@@ -1486,13 +1477,16 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1486
1477
|
/* optional bool closed = 8; */
|
|
1487
1478
|
if (message.closed !== undefined)
|
|
1488
1479
|
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
1489
|
-
/* repeated
|
|
1480
|
+
/* repeated int64 document_ids = 9; */
|
|
1490
1481
|
if (message.documentIds.length) {
|
|
1491
1482
|
writer.tag(9, WireType.LengthDelimited).fork();
|
|
1492
1483
|
for (let i = 0; i < message.documentIds.length; i++)
|
|
1493
|
-
writer.
|
|
1484
|
+
writer.int64(message.documentIds[i]);
|
|
1494
1485
|
writer.join();
|
|
1495
1486
|
}
|
|
1487
|
+
/* optional bool only_drafts = 10; */
|
|
1488
|
+
if (message.onlyDrafts !== undefined)
|
|
1489
|
+
writer.tag(10, WireType.Varint).bool(message.onlyDrafts);
|
|
1496
1490
|
let u = options.writeUnknownFields;
|
|
1497
1491
|
if (u !== false)
|
|
1498
1492
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1507,8 +1501,8 @@ export const ListDocumentsRequest = new ListDocumentsRequest$Type();
|
|
|
1507
1501
|
class ListDocumentsResponse$Type extends MessageType<ListDocumentsResponse> {
|
|
1508
1502
|
constructor() {
|
|
1509
1503
|
super("services.documents.ListDocumentsResponse", [
|
|
1510
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.
|
|
1511
|
-
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort }
|
|
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 } }
|
|
1512
1506
|
]);
|
|
1513
1507
|
}
|
|
1514
1508
|
create(value?: PartialMessage<ListDocumentsResponse>): ListDocumentsResponse {
|
|
@@ -1561,7 +1555,7 @@ export const ListDocumentsResponse = new ListDocumentsResponse$Type();
|
|
|
1561
1555
|
class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
1562
1556
|
constructor() {
|
|
1563
1557
|
super("services.documents.GetDocumentRequest", [
|
|
1564
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
1558
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1565
1559
|
{ no: 2, name: "info_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1566
1560
|
]);
|
|
1567
1561
|
}
|
|
@@ -1577,8 +1571,8 @@ class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
|
1577
1571
|
while (reader.pos < end) {
|
|
1578
1572
|
let [fieldNo, wireType] = reader.tag();
|
|
1579
1573
|
switch (fieldNo) {
|
|
1580
|
-
case /*
|
|
1581
|
-
message.documentId = reader.
|
|
1574
|
+
case /* int64 document_id */ 1:
|
|
1575
|
+
message.documentId = reader.int64().toNumber();
|
|
1582
1576
|
break;
|
|
1583
1577
|
case /* optional bool info_only */ 2:
|
|
1584
1578
|
message.infoOnly = reader.bool();
|
|
@@ -1595,9 +1589,9 @@ class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
|
1595
1589
|
return message;
|
|
1596
1590
|
}
|
|
1597
1591
|
internalBinaryWrite(message: GetDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1598
|
-
/*
|
|
1592
|
+
/* int64 document_id = 1; */
|
|
1599
1593
|
if (message.documentId !== 0)
|
|
1600
|
-
writer.tag(1, WireType.Varint).
|
|
1594
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1601
1595
|
/* optional bool info_only = 2; */
|
|
1602
1596
|
if (message.infoOnly !== undefined)
|
|
1603
1597
|
writer.tag(2, WireType.Varint).bool(message.infoOnly);
|
|
@@ -1633,7 +1627,7 @@ class GetDocumentResponse$Type extends MessageType<GetDocumentResponse> {
|
|
|
1633
1627
|
case /* resources.documents.Document document */ 1:
|
|
1634
1628
|
message.document = Document.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
1635
1629
|
break;
|
|
1636
|
-
case /* resources.documents.DocumentAccess access */ 2:
|
|
1630
|
+
case /* resources.documents.access.DocumentAccess access */ 2:
|
|
1637
1631
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
1638
1632
|
break;
|
|
1639
1633
|
default:
|
|
@@ -1651,7 +1645,7 @@ class GetDocumentResponse$Type extends MessageType<GetDocumentResponse> {
|
|
|
1651
1645
|
/* resources.documents.Document document = 1; */
|
|
1652
1646
|
if (message.document)
|
|
1653
1647
|
Document.internalBinaryWrite(message.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1654
|
-
/* resources.documents.DocumentAccess access = 2; */
|
|
1648
|
+
/* resources.documents.access.DocumentAccess access = 2; */
|
|
1655
1649
|
if (message.access)
|
|
1656
1650
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1657
1651
|
let u = options.writeUnknownFields;
|
|
@@ -1668,7 +1662,7 @@ export const GetDocumentResponse = new GetDocumentResponse$Type();
|
|
|
1668
1662
|
class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReferencesRequest> {
|
|
1669
1663
|
constructor() {
|
|
1670
1664
|
super("services.documents.GetDocumentReferencesRequest", [
|
|
1671
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
1665
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1672
1666
|
]);
|
|
1673
1667
|
}
|
|
1674
1668
|
create(value?: PartialMessage<GetDocumentReferencesRequest>): GetDocumentReferencesRequest {
|
|
@@ -1683,8 +1677,8 @@ class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReference
|
|
|
1683
1677
|
while (reader.pos < end) {
|
|
1684
1678
|
let [fieldNo, wireType] = reader.tag();
|
|
1685
1679
|
switch (fieldNo) {
|
|
1686
|
-
case /*
|
|
1687
|
-
message.documentId = reader.
|
|
1680
|
+
case /* int64 document_id */ 1:
|
|
1681
|
+
message.documentId = reader.int64().toNumber();
|
|
1688
1682
|
break;
|
|
1689
1683
|
default:
|
|
1690
1684
|
let u = options.readUnknownField;
|
|
@@ -1698,9 +1692,9 @@ class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReference
|
|
|
1698
1692
|
return message;
|
|
1699
1693
|
}
|
|
1700
1694
|
internalBinaryWrite(message: GetDocumentReferencesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1701
|
-
/*
|
|
1695
|
+
/* int64 document_id = 1; */
|
|
1702
1696
|
if (message.documentId !== 0)
|
|
1703
|
-
writer.tag(1, WireType.Varint).
|
|
1697
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1704
1698
|
let u = options.writeUnknownFields;
|
|
1705
1699
|
if (u !== false)
|
|
1706
1700
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1715,7 +1709,7 @@ export const GetDocumentReferencesRequest = new GetDocumentReferencesRequest$Typ
|
|
|
1715
1709
|
class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferencesResponse> {
|
|
1716
1710
|
constructor() {
|
|
1717
1711
|
super("services.documents.GetDocumentReferencesResponse", [
|
|
1718
|
-
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentReference }
|
|
1712
|
+
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentReference, options: { "tagger.tags": "alias:\"reference\"" } }
|
|
1719
1713
|
]);
|
|
1720
1714
|
}
|
|
1721
1715
|
create(value?: PartialMessage<GetDocumentReferencesResponse>): GetDocumentReferencesResponse {
|
|
@@ -1730,7 +1724,7 @@ class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferenc
|
|
|
1730
1724
|
while (reader.pos < end) {
|
|
1731
1725
|
let [fieldNo, wireType] = reader.tag();
|
|
1732
1726
|
switch (fieldNo) {
|
|
1733
|
-
case /* repeated resources.documents.DocumentReference references */ 1:
|
|
1727
|
+
case /* repeated resources.documents.references.DocumentReference references */ 1:
|
|
1734
1728
|
message.references.push(DocumentReference.internalBinaryRead(reader, reader.uint32(), options));
|
|
1735
1729
|
break;
|
|
1736
1730
|
default:
|
|
@@ -1745,7 +1739,7 @@ class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferenc
|
|
|
1745
1739
|
return message;
|
|
1746
1740
|
}
|
|
1747
1741
|
internalBinaryWrite(message: GetDocumentReferencesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1748
|
-
/* repeated resources.documents.DocumentReference references = 1; */
|
|
1742
|
+
/* repeated resources.documents.references.DocumentReference references = 1; */
|
|
1749
1743
|
for (let i = 0; i < message.references.length; i++)
|
|
1750
1744
|
DocumentReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1751
1745
|
let u = options.writeUnknownFields;
|
|
@@ -1762,7 +1756,7 @@ export const GetDocumentReferencesResponse = new GetDocumentReferencesResponse$T
|
|
|
1762
1756
|
class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsRequest> {
|
|
1763
1757
|
constructor() {
|
|
1764
1758
|
super("services.documents.GetDocumentRelationsRequest", [
|
|
1765
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
1759
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1766
1760
|
]);
|
|
1767
1761
|
}
|
|
1768
1762
|
create(value?: PartialMessage<GetDocumentRelationsRequest>): GetDocumentRelationsRequest {
|
|
@@ -1777,8 +1771,8 @@ class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsR
|
|
|
1777
1771
|
while (reader.pos < end) {
|
|
1778
1772
|
let [fieldNo, wireType] = reader.tag();
|
|
1779
1773
|
switch (fieldNo) {
|
|
1780
|
-
case /*
|
|
1781
|
-
message.documentId = reader.
|
|
1774
|
+
case /* int64 document_id */ 1:
|
|
1775
|
+
message.documentId = reader.int64().toNumber();
|
|
1782
1776
|
break;
|
|
1783
1777
|
default:
|
|
1784
1778
|
let u = options.readUnknownField;
|
|
@@ -1792,9 +1786,9 @@ class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsR
|
|
|
1792
1786
|
return message;
|
|
1793
1787
|
}
|
|
1794
1788
|
internalBinaryWrite(message: GetDocumentRelationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1795
|
-
/*
|
|
1789
|
+
/* int64 document_id = 1; */
|
|
1796
1790
|
if (message.documentId !== 0)
|
|
1797
|
-
writer.tag(1, WireType.Varint).
|
|
1791
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1798
1792
|
let u = options.writeUnknownFields;
|
|
1799
1793
|
if (u !== false)
|
|
1800
1794
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1809,7 +1803,7 @@ export const GetDocumentRelationsRequest = new GetDocumentRelationsRequest$Type(
|
|
|
1809
1803
|
class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelationsResponse> {
|
|
1810
1804
|
constructor() {
|
|
1811
1805
|
super("services.documents.GetDocumentRelationsResponse", [
|
|
1812
|
-
{ no: 1, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation }
|
|
1806
|
+
{ no: 1, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation, options: { "tagger.tags": "alias:\"relation\"" } }
|
|
1813
1807
|
]);
|
|
1814
1808
|
}
|
|
1815
1809
|
create(value?: PartialMessage<GetDocumentRelationsResponse>): GetDocumentRelationsResponse {
|
|
@@ -1824,7 +1818,7 @@ class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelations
|
|
|
1824
1818
|
while (reader.pos < end) {
|
|
1825
1819
|
let [fieldNo, wireType] = reader.tag();
|
|
1826
1820
|
switch (fieldNo) {
|
|
1827
|
-
case /* repeated resources.documents.DocumentRelation relations */ 1:
|
|
1821
|
+
case /* repeated resources.documents.relations.DocumentRelation relations */ 1:
|
|
1828
1822
|
message.relations.push(DocumentRelation.internalBinaryRead(reader, reader.uint32(), options));
|
|
1829
1823
|
break;
|
|
1830
1824
|
default:
|
|
@@ -1839,7 +1833,7 @@ class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelations
|
|
|
1839
1833
|
return message;
|
|
1840
1834
|
}
|
|
1841
1835
|
internalBinaryWrite(message: GetDocumentRelationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1842
|
-
/* repeated resources.documents.DocumentRelation relations = 1; */
|
|
1836
|
+
/* repeated resources.documents.relations.DocumentRelation relations = 1; */
|
|
1843
1837
|
for (let i = 0; i < message.relations.length; i++)
|
|
1844
1838
|
DocumentRelation.internalBinaryWrite(message.relations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1845
1839
|
let u = options.writeUnknownFields;
|
|
@@ -1856,7 +1850,7 @@ export const GetDocumentRelationsResponse = new GetDocumentRelationsResponse$Typ
|
|
|
1856
1850
|
class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceRequest> {
|
|
1857
1851
|
constructor() {
|
|
1858
1852
|
super("services.documents.AddDocumentReferenceRequest", [
|
|
1859
|
-
{ no: 1, name: "reference", kind: "message", T: () => DocumentReference, options: { "validate.
|
|
1853
|
+
{ no: 1, name: "reference", kind: "message", T: () => DocumentReference, options: { "buf.validate.field": { required: true } } }
|
|
1860
1854
|
]);
|
|
1861
1855
|
}
|
|
1862
1856
|
create(value?: PartialMessage<AddDocumentReferenceRequest>): AddDocumentReferenceRequest {
|
|
@@ -1870,7 +1864,7 @@ class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceR
|
|
|
1870
1864
|
while (reader.pos < end) {
|
|
1871
1865
|
let [fieldNo, wireType] = reader.tag();
|
|
1872
1866
|
switch (fieldNo) {
|
|
1873
|
-
case /* resources.documents.DocumentReference reference */ 1:
|
|
1867
|
+
case /* resources.documents.references.DocumentReference reference */ 1:
|
|
1874
1868
|
message.reference = DocumentReference.internalBinaryRead(reader, reader.uint32(), options, message.reference);
|
|
1875
1869
|
break;
|
|
1876
1870
|
default:
|
|
@@ -1885,7 +1879,7 @@ class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceR
|
|
|
1885
1879
|
return message;
|
|
1886
1880
|
}
|
|
1887
1881
|
internalBinaryWrite(message: AddDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1888
|
-
/* resources.documents.DocumentReference reference = 1; */
|
|
1882
|
+
/* resources.documents.references.DocumentReference reference = 1; */
|
|
1889
1883
|
if (message.reference)
|
|
1890
1884
|
DocumentReference.internalBinaryWrite(message.reference, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1891
1885
|
let u = options.writeUnknownFields;
|
|
@@ -1902,7 +1896,7 @@ export const AddDocumentReferenceRequest = new AddDocumentReferenceRequest$Type(
|
|
|
1902
1896
|
class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReferenceResponse> {
|
|
1903
1897
|
constructor() {
|
|
1904
1898
|
super("services.documents.AddDocumentReferenceResponse", [
|
|
1905
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1899
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1906
1900
|
]);
|
|
1907
1901
|
}
|
|
1908
1902
|
create(value?: PartialMessage<AddDocumentReferenceResponse>): AddDocumentReferenceResponse {
|
|
@@ -1917,8 +1911,8 @@ class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReference
|
|
|
1917
1911
|
while (reader.pos < end) {
|
|
1918
1912
|
let [fieldNo, wireType] = reader.tag();
|
|
1919
1913
|
switch (fieldNo) {
|
|
1920
|
-
case /*
|
|
1921
|
-
message.id = reader.
|
|
1914
|
+
case /* int64 id */ 1:
|
|
1915
|
+
message.id = reader.int64().toNumber();
|
|
1922
1916
|
break;
|
|
1923
1917
|
default:
|
|
1924
1918
|
let u = options.readUnknownField;
|
|
@@ -1932,9 +1926,9 @@ class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReference
|
|
|
1932
1926
|
return message;
|
|
1933
1927
|
}
|
|
1934
1928
|
internalBinaryWrite(message: AddDocumentReferenceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1935
|
-
/*
|
|
1929
|
+
/* int64 id = 1; */
|
|
1936
1930
|
if (message.id !== 0)
|
|
1937
|
-
writer.tag(1, WireType.Varint).
|
|
1931
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1938
1932
|
let u = options.writeUnknownFields;
|
|
1939
1933
|
if (u !== false)
|
|
1940
1934
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1949,7 +1943,7 @@ export const AddDocumentReferenceResponse = new AddDocumentReferenceResponse$Typ
|
|
|
1949
1943
|
class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentReferenceRequest> {
|
|
1950
1944
|
constructor() {
|
|
1951
1945
|
super("services.documents.RemoveDocumentReferenceRequest", [
|
|
1952
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1946
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1953
1947
|
]);
|
|
1954
1948
|
}
|
|
1955
1949
|
create(value?: PartialMessage<RemoveDocumentReferenceRequest>): RemoveDocumentReferenceRequest {
|
|
@@ -1964,8 +1958,8 @@ class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentRefe
|
|
|
1964
1958
|
while (reader.pos < end) {
|
|
1965
1959
|
let [fieldNo, wireType] = reader.tag();
|
|
1966
1960
|
switch (fieldNo) {
|
|
1967
|
-
case /*
|
|
1968
|
-
message.id = reader.
|
|
1961
|
+
case /* int64 id */ 1:
|
|
1962
|
+
message.id = reader.int64().toNumber();
|
|
1969
1963
|
break;
|
|
1970
1964
|
default:
|
|
1971
1965
|
let u = options.readUnknownField;
|
|
@@ -1979,9 +1973,9 @@ class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentRefe
|
|
|
1979
1973
|
return message;
|
|
1980
1974
|
}
|
|
1981
1975
|
internalBinaryWrite(message: RemoveDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1982
|
-
/*
|
|
1976
|
+
/* int64 id = 1; */
|
|
1983
1977
|
if (message.id !== 0)
|
|
1984
|
-
writer.tag(1, WireType.Varint).
|
|
1978
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1985
1979
|
let u = options.writeUnknownFields;
|
|
1986
1980
|
if (u !== false)
|
|
1987
1981
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2034,7 +2028,7 @@ export const RemoveDocumentReferenceResponse = new RemoveDocumentReferenceRespon
|
|
|
2034
2028
|
class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationRequest> {
|
|
2035
2029
|
constructor() {
|
|
2036
2030
|
super("services.documents.AddDocumentRelationRequest", [
|
|
2037
|
-
{ no: 1, name: "relation", kind: "message", T: () => DocumentRelation, options: { "validate.
|
|
2031
|
+
{ no: 1, name: "relation", kind: "message", T: () => DocumentRelation, options: { "buf.validate.field": { required: true } } }
|
|
2038
2032
|
]);
|
|
2039
2033
|
}
|
|
2040
2034
|
create(value?: PartialMessage<AddDocumentRelationRequest>): AddDocumentRelationRequest {
|
|
@@ -2048,7 +2042,7 @@ class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationReq
|
|
|
2048
2042
|
while (reader.pos < end) {
|
|
2049
2043
|
let [fieldNo, wireType] = reader.tag();
|
|
2050
2044
|
switch (fieldNo) {
|
|
2051
|
-
case /* resources.documents.DocumentRelation relation */ 1:
|
|
2045
|
+
case /* resources.documents.relations.DocumentRelation relation */ 1:
|
|
2052
2046
|
message.relation = DocumentRelation.internalBinaryRead(reader, reader.uint32(), options, message.relation);
|
|
2053
2047
|
break;
|
|
2054
2048
|
default:
|
|
@@ -2063,7 +2057,7 @@ class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationReq
|
|
|
2063
2057
|
return message;
|
|
2064
2058
|
}
|
|
2065
2059
|
internalBinaryWrite(message: AddDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2066
|
-
/* resources.documents.DocumentRelation relation = 1; */
|
|
2060
|
+
/* resources.documents.relations.DocumentRelation relation = 1; */
|
|
2067
2061
|
if (message.relation)
|
|
2068
2062
|
DocumentRelation.internalBinaryWrite(message.relation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2069
2063
|
let u = options.writeUnknownFields;
|
|
@@ -2080,7 +2074,7 @@ export const AddDocumentRelationRequest = new AddDocumentRelationRequest$Type();
|
|
|
2080
2074
|
class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationResponse> {
|
|
2081
2075
|
constructor() {
|
|
2082
2076
|
super("services.documents.AddDocumentRelationResponse", [
|
|
2083
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
2077
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2084
2078
|
]);
|
|
2085
2079
|
}
|
|
2086
2080
|
create(value?: PartialMessage<AddDocumentRelationResponse>): AddDocumentRelationResponse {
|
|
@@ -2095,8 +2089,8 @@ class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationRe
|
|
|
2095
2089
|
while (reader.pos < end) {
|
|
2096
2090
|
let [fieldNo, wireType] = reader.tag();
|
|
2097
2091
|
switch (fieldNo) {
|
|
2098
|
-
case /*
|
|
2099
|
-
message.id = reader.
|
|
2092
|
+
case /* int64 id */ 1:
|
|
2093
|
+
message.id = reader.int64().toNumber();
|
|
2100
2094
|
break;
|
|
2101
2095
|
default:
|
|
2102
2096
|
let u = options.readUnknownField;
|
|
@@ -2110,9 +2104,9 @@ class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationRe
|
|
|
2110
2104
|
return message;
|
|
2111
2105
|
}
|
|
2112
2106
|
internalBinaryWrite(message: AddDocumentRelationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2113
|
-
/*
|
|
2107
|
+
/* int64 id = 1; */
|
|
2114
2108
|
if (message.id !== 0)
|
|
2115
|
-
writer.tag(1, WireType.Varint).
|
|
2109
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2116
2110
|
let u = options.writeUnknownFields;
|
|
2117
2111
|
if (u !== false)
|
|
2118
2112
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2127,7 +2121,7 @@ export const AddDocumentRelationResponse = new AddDocumentRelationResponse$Type(
|
|
|
2127
2121
|
class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelationRequest> {
|
|
2128
2122
|
constructor() {
|
|
2129
2123
|
super("services.documents.RemoveDocumentRelationRequest", [
|
|
2130
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
2124
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2131
2125
|
]);
|
|
2132
2126
|
}
|
|
2133
2127
|
create(value?: PartialMessage<RemoveDocumentRelationRequest>): RemoveDocumentRelationRequest {
|
|
@@ -2142,8 +2136,8 @@ class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelat
|
|
|
2142
2136
|
while (reader.pos < end) {
|
|
2143
2137
|
let [fieldNo, wireType] = reader.tag();
|
|
2144
2138
|
switch (fieldNo) {
|
|
2145
|
-
case /*
|
|
2146
|
-
message.id = reader.
|
|
2139
|
+
case /* int64 id */ 1:
|
|
2140
|
+
message.id = reader.int64().toNumber();
|
|
2147
2141
|
break;
|
|
2148
2142
|
default:
|
|
2149
2143
|
let u = options.readUnknownField;
|
|
@@ -2157,9 +2151,9 @@ class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelat
|
|
|
2157
2151
|
return message;
|
|
2158
2152
|
}
|
|
2159
2153
|
internalBinaryWrite(message: RemoveDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2160
|
-
/*
|
|
2154
|
+
/* int64 id = 1; */
|
|
2161
2155
|
if (message.id !== 0)
|
|
2162
|
-
writer.tag(1, WireType.Varint).
|
|
2156
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2163
2157
|
let u = options.writeUnknownFields;
|
|
2164
2158
|
if (u !== false)
|
|
2165
2159
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2212,8 +2206,8 @@ export const RemoveDocumentRelationResponse = new RemoveDocumentRelationResponse
|
|
|
2212
2206
|
class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
2213
2207
|
constructor() {
|
|
2214
2208
|
super("services.documents.GetCommentsRequest", [
|
|
2215
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
2216
|
-
{ no: 2, name: "document_id", kind: "scalar", T:
|
|
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*/ }
|
|
2217
2211
|
]);
|
|
2218
2212
|
}
|
|
2219
2213
|
create(value?: PartialMessage<GetCommentsRequest>): GetCommentsRequest {
|
|
@@ -2231,8 +2225,8 @@ class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
|
2231
2225
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
2232
2226
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2233
2227
|
break;
|
|
2234
|
-
case /*
|
|
2235
|
-
message.documentId = reader.
|
|
2228
|
+
case /* int64 document_id */ 2:
|
|
2229
|
+
message.documentId = reader.int64().toNumber();
|
|
2236
2230
|
break;
|
|
2237
2231
|
default:
|
|
2238
2232
|
let u = options.readUnknownField;
|
|
@@ -2249,9 +2243,9 @@ class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
|
2249
2243
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
2250
2244
|
if (message.pagination)
|
|
2251
2245
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2252
|
-
/*
|
|
2246
|
+
/* int64 document_id = 2; */
|
|
2253
2247
|
if (message.documentId !== 0)
|
|
2254
|
-
writer.tag(2, WireType.Varint).
|
|
2248
|
+
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
2255
2249
|
let u = options.writeUnknownFields;
|
|
2256
2250
|
if (u !== false)
|
|
2257
2251
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2266,8 +2260,8 @@ export const GetCommentsRequest = new GetCommentsRequest$Type();
|
|
|
2266
2260
|
class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
2267
2261
|
constructor() {
|
|
2268
2262
|
super("services.documents.GetCommentsResponse", [
|
|
2269
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
2270
|
-
{ no: 2, name: "comments", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Comment }
|
|
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 } }
|
|
2271
2265
|
]);
|
|
2272
2266
|
}
|
|
2273
2267
|
create(value?: PartialMessage<GetCommentsResponse>): GetCommentsResponse {
|
|
@@ -2285,7 +2279,7 @@ class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
|
2285
2279
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
2286
2280
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2287
2281
|
break;
|
|
2288
|
-
case /* repeated resources.documents.Comment comments */ 2:
|
|
2282
|
+
case /* repeated resources.documents.comment.Comment comments */ 2:
|
|
2289
2283
|
message.comments.push(Comment.internalBinaryRead(reader, reader.uint32(), options));
|
|
2290
2284
|
break;
|
|
2291
2285
|
default:
|
|
@@ -2303,7 +2297,7 @@ class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
|
2303
2297
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
2304
2298
|
if (message.pagination)
|
|
2305
2299
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2306
|
-
/* repeated resources.documents.Comment comments = 2; */
|
|
2300
|
+
/* repeated resources.documents.comment.Comment comments = 2; */
|
|
2307
2301
|
for (let i = 0; i < message.comments.length; i++)
|
|
2308
2302
|
Comment.internalBinaryWrite(message.comments[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2309
2303
|
let u = options.writeUnknownFields;
|
|
@@ -2320,7 +2314,7 @@ export const GetCommentsResponse = new GetCommentsResponse$Type();
|
|
|
2320
2314
|
class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
2321
2315
|
constructor() {
|
|
2322
2316
|
super("services.documents.PostCommentRequest", [
|
|
2323
|
-
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "validate.
|
|
2317
|
+
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "buf.validate.field": { required: true } } }
|
|
2324
2318
|
]);
|
|
2325
2319
|
}
|
|
2326
2320
|
create(value?: PartialMessage<PostCommentRequest>): PostCommentRequest {
|
|
@@ -2334,7 +2328,7 @@ class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
|
2334
2328
|
while (reader.pos < end) {
|
|
2335
2329
|
let [fieldNo, wireType] = reader.tag();
|
|
2336
2330
|
switch (fieldNo) {
|
|
2337
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2331
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2338
2332
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2339
2333
|
break;
|
|
2340
2334
|
default:
|
|
@@ -2349,7 +2343,7 @@ class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
|
2349
2343
|
return message;
|
|
2350
2344
|
}
|
|
2351
2345
|
internalBinaryWrite(message: PostCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2352
|
-
/* resources.documents.Comment comment = 1; */
|
|
2346
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2353
2347
|
if (message.comment)
|
|
2354
2348
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2355
2349
|
let u = options.writeUnknownFields;
|
|
@@ -2380,7 +2374,7 @@ class PostCommentResponse$Type extends MessageType<PostCommentResponse> {
|
|
|
2380
2374
|
while (reader.pos < end) {
|
|
2381
2375
|
let [fieldNo, wireType] = reader.tag();
|
|
2382
2376
|
switch (fieldNo) {
|
|
2383
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2377
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2384
2378
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2385
2379
|
break;
|
|
2386
2380
|
default:
|
|
@@ -2395,7 +2389,7 @@ class PostCommentResponse$Type extends MessageType<PostCommentResponse> {
|
|
|
2395
2389
|
return message;
|
|
2396
2390
|
}
|
|
2397
2391
|
internalBinaryWrite(message: PostCommentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2398
|
-
/* resources.documents.Comment comment = 1; */
|
|
2392
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2399
2393
|
if (message.comment)
|
|
2400
2394
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2401
2395
|
let u = options.writeUnknownFields;
|
|
@@ -2412,7 +2406,7 @@ export const PostCommentResponse = new PostCommentResponse$Type();
|
|
|
2412
2406
|
class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
2413
2407
|
constructor() {
|
|
2414
2408
|
super("services.documents.EditCommentRequest", [
|
|
2415
|
-
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "validate.
|
|
2409
|
+
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "buf.validate.field": { required: true } } }
|
|
2416
2410
|
]);
|
|
2417
2411
|
}
|
|
2418
2412
|
create(value?: PartialMessage<EditCommentRequest>): EditCommentRequest {
|
|
@@ -2426,7 +2420,7 @@ class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
|
2426
2420
|
while (reader.pos < end) {
|
|
2427
2421
|
let [fieldNo, wireType] = reader.tag();
|
|
2428
2422
|
switch (fieldNo) {
|
|
2429
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2423
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2430
2424
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2431
2425
|
break;
|
|
2432
2426
|
default:
|
|
@@ -2441,7 +2435,7 @@ class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
|
2441
2435
|
return message;
|
|
2442
2436
|
}
|
|
2443
2437
|
internalBinaryWrite(message: EditCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2444
|
-
/* resources.documents.Comment comment = 1; */
|
|
2438
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2445
2439
|
if (message.comment)
|
|
2446
2440
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2447
2441
|
let u = options.writeUnknownFields;
|
|
@@ -2472,7 +2466,7 @@ class EditCommentResponse$Type extends MessageType<EditCommentResponse> {
|
|
|
2472
2466
|
while (reader.pos < end) {
|
|
2473
2467
|
let [fieldNo, wireType] = reader.tag();
|
|
2474
2468
|
switch (fieldNo) {
|
|
2475
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2469
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2476
2470
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2477
2471
|
break;
|
|
2478
2472
|
default:
|
|
@@ -2487,7 +2481,7 @@ class EditCommentResponse$Type extends MessageType<EditCommentResponse> {
|
|
|
2487
2481
|
return message;
|
|
2488
2482
|
}
|
|
2489
2483
|
internalBinaryWrite(message: EditCommentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2490
|
-
/* resources.documents.Comment comment = 1; */
|
|
2484
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2491
2485
|
if (message.comment)
|
|
2492
2486
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2493
2487
|
let u = options.writeUnknownFields;
|
|
@@ -2504,7 +2498,7 @@ export const EditCommentResponse = new EditCommentResponse$Type();
|
|
|
2504
2498
|
class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
2505
2499
|
constructor() {
|
|
2506
2500
|
super("services.documents.DeleteCommentRequest", [
|
|
2507
|
-
{ no: 1, name: "comment_id", kind: "scalar", T:
|
|
2501
|
+
{ no: 1, name: "comment_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2508
2502
|
]);
|
|
2509
2503
|
}
|
|
2510
2504
|
create(value?: PartialMessage<DeleteCommentRequest>): DeleteCommentRequest {
|
|
@@ -2519,8 +2513,8 @@ class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
|
2519
2513
|
while (reader.pos < end) {
|
|
2520
2514
|
let [fieldNo, wireType] = reader.tag();
|
|
2521
2515
|
switch (fieldNo) {
|
|
2522
|
-
case /*
|
|
2523
|
-
message.commentId = reader.
|
|
2516
|
+
case /* int64 comment_id */ 1:
|
|
2517
|
+
message.commentId = reader.int64().toNumber();
|
|
2524
2518
|
break;
|
|
2525
2519
|
default:
|
|
2526
2520
|
let u = options.readUnknownField;
|
|
@@ -2534,9 +2528,9 @@ class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
|
2534
2528
|
return message;
|
|
2535
2529
|
}
|
|
2536
2530
|
internalBinaryWrite(message: DeleteCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2537
|
-
/*
|
|
2531
|
+
/* int64 comment_id = 1; */
|
|
2538
2532
|
if (message.commentId !== 0)
|
|
2539
|
-
writer.tag(1, WireType.Varint).
|
|
2533
|
+
writer.tag(1, WireType.Varint).int64(message.commentId);
|
|
2540
2534
|
let u = options.writeUnknownFields;
|
|
2541
2535
|
if (u !== false)
|
|
2542
2536
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2589,12 +2583,11 @@ export const DeleteCommentResponse = new DeleteCommentResponse$Type();
|
|
|
2589
2583
|
class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
2590
2584
|
constructor() {
|
|
2591
2585
|
super("services.documents.UpdateDocumentResponse", [
|
|
2592
|
-
{ no: 1, name: "
|
|
2586
|
+
{ no: 1, name: "document", kind: "message", T: () => Document }
|
|
2593
2587
|
]);
|
|
2594
2588
|
}
|
|
2595
2589
|
create(value?: PartialMessage<UpdateDocumentResponse>): UpdateDocumentResponse {
|
|
2596
2590
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2597
|
-
message.documentId = 0;
|
|
2598
2591
|
if (value !== undefined)
|
|
2599
2592
|
reflectionMergePartial<UpdateDocumentResponse>(this, message, value);
|
|
2600
2593
|
return message;
|
|
@@ -2604,8 +2597,8 @@ class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
|
2604
2597
|
while (reader.pos < end) {
|
|
2605
2598
|
let [fieldNo, wireType] = reader.tag();
|
|
2606
2599
|
switch (fieldNo) {
|
|
2607
|
-
case /*
|
|
2608
|
-
message.
|
|
2600
|
+
case /* resources.documents.Document document */ 1:
|
|
2601
|
+
message.document = Document.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
2609
2602
|
break;
|
|
2610
2603
|
default:
|
|
2611
2604
|
let u = options.readUnknownField;
|
|
@@ -2619,9 +2612,9 @@ class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
|
2619
2612
|
return message;
|
|
2620
2613
|
}
|
|
2621
2614
|
internalBinaryWrite(message: UpdateDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2622
|
-
/*
|
|
2623
|
-
if (message.
|
|
2624
|
-
writer.tag(1, WireType.
|
|
2615
|
+
/* resources.documents.Document document = 1; */
|
|
2616
|
+
if (message.document)
|
|
2617
|
+
Document.internalBinaryWrite(message.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2625
2618
|
let u = options.writeUnknownFields;
|
|
2626
2619
|
if (u !== false)
|
|
2627
2620
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2636,8 +2629,8 @@ export const UpdateDocumentResponse = new UpdateDocumentResponse$Type();
|
|
|
2636
2629
|
class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
2637
2630
|
constructor() {
|
|
2638
2631
|
super("services.documents.DeleteDocumentRequest", [
|
|
2639
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
2640
|
-
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
2632
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
2633
|
+
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "0", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
2641
2634
|
]);
|
|
2642
2635
|
}
|
|
2643
2636
|
create(value?: PartialMessage<DeleteDocumentRequest>): DeleteDocumentRequest {
|
|
@@ -2652,8 +2645,8 @@ class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
|
2652
2645
|
while (reader.pos < end) {
|
|
2653
2646
|
let [fieldNo, wireType] = reader.tag();
|
|
2654
2647
|
switch (fieldNo) {
|
|
2655
|
-
case /*
|
|
2656
|
-
message.documentId = reader.
|
|
2648
|
+
case /* int64 document_id */ 1:
|
|
2649
|
+
message.documentId = reader.int64().toNumber();
|
|
2657
2650
|
break;
|
|
2658
2651
|
case /* optional string reason */ 2:
|
|
2659
2652
|
message.reason = reader.string();
|
|
@@ -2670,9 +2663,9 @@ class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
|
2670
2663
|
return message;
|
|
2671
2664
|
}
|
|
2672
2665
|
internalBinaryWrite(message: DeleteDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2673
|
-
/*
|
|
2666
|
+
/* int64 document_id = 1; */
|
|
2674
2667
|
if (message.documentId !== 0)
|
|
2675
|
-
writer.tag(1, WireType.Varint).
|
|
2668
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
2676
2669
|
/* optional string reason = 2; */
|
|
2677
2670
|
if (message.reason !== undefined)
|
|
2678
2671
|
writer.tag(2, WireType.LengthDelimited).string(message.reason);
|
|
@@ -2728,7 +2721,7 @@ export const DeleteDocumentResponse = new DeleteDocumentResponse$Type();
|
|
|
2728
2721
|
class ToggleDocumentRequest$Type extends MessageType<ToggleDocumentRequest> {
|
|
2729
2722
|
constructor() {
|
|
2730
2723
|
super("services.documents.ToggleDocumentRequest", [
|
|
2731
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
2724
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2732
2725
|
{ no: 2, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2733
2726
|
]);
|
|
2734
2727
|
}
|
|
@@ -2745,8 +2738,8 @@ class ToggleDocumentRequest$Type extends MessageType<ToggleDocumentRequest> {
|
|
|
2745
2738
|
while (reader.pos < end) {
|
|
2746
2739
|
let [fieldNo, wireType] = reader.tag();
|
|
2747
2740
|
switch (fieldNo) {
|
|
2748
|
-
case /*
|
|
2749
|
-
message.documentId = reader.
|
|
2741
|
+
case /* int64 document_id */ 1:
|
|
2742
|
+
message.documentId = reader.int64().toNumber();
|
|
2750
2743
|
break;
|
|
2751
2744
|
case /* bool closed */ 2:
|
|
2752
2745
|
message.closed = reader.bool();
|
|
@@ -2763,9 +2756,9 @@ class ToggleDocumentRequest$Type extends MessageType<ToggleDocumentRequest> {
|
|
|
2763
2756
|
return message;
|
|
2764
2757
|
}
|
|
2765
2758
|
internalBinaryWrite(message: ToggleDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2766
|
-
/*
|
|
2759
|
+
/* int64 document_id = 1; */
|
|
2767
2760
|
if (message.documentId !== 0)
|
|
2768
|
-
writer.tag(1, WireType.Varint).
|
|
2761
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
2769
2762
|
/* bool closed = 2; */
|
|
2770
2763
|
if (message.closed !== false)
|
|
2771
2764
|
writer.tag(2, WireType.Varint).bool(message.closed);
|
|
@@ -2821,7 +2814,7 @@ export const ToggleDocumentResponse = new ToggleDocumentResponse$Type();
|
|
|
2821
2814
|
class ChangeDocumentOwnerRequest$Type extends MessageType<ChangeDocumentOwnerRequest> {
|
|
2822
2815
|
constructor() {
|
|
2823
2816
|
super("services.documents.ChangeDocumentOwnerRequest", [
|
|
2824
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
2817
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2825
2818
|
{ no: 2, name: "new_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
2826
2819
|
]);
|
|
2827
2820
|
}
|
|
@@ -2837,8 +2830,8 @@ class ChangeDocumentOwnerRequest$Type extends MessageType<ChangeDocumentOwnerReq
|
|
|
2837
2830
|
while (reader.pos < end) {
|
|
2838
2831
|
let [fieldNo, wireType] = reader.tag();
|
|
2839
2832
|
switch (fieldNo) {
|
|
2840
|
-
case /*
|
|
2841
|
-
message.documentId = reader.
|
|
2833
|
+
case /* int64 document_id */ 1:
|
|
2834
|
+
message.documentId = reader.int64().toNumber();
|
|
2842
2835
|
break;
|
|
2843
2836
|
case /* optional int32 new_user_id */ 2:
|
|
2844
2837
|
message.newUserId = reader.int32();
|
|
@@ -2855,9 +2848,9 @@ class ChangeDocumentOwnerRequest$Type extends MessageType<ChangeDocumentOwnerReq
|
|
|
2855
2848
|
return message;
|
|
2856
2849
|
}
|
|
2857
2850
|
internalBinaryWrite(message: ChangeDocumentOwnerRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2858
|
-
/*
|
|
2851
|
+
/* int64 document_id = 1; */
|
|
2859
2852
|
if (message.documentId !== 0)
|
|
2860
|
-
writer.tag(1, WireType.Varint).
|
|
2853
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
2861
2854
|
/* optional int32 new_user_id = 2; */
|
|
2862
2855
|
if (message.newUserId !== undefined)
|
|
2863
2856
|
writer.tag(2, WireType.Varint).int32(message.newUserId);
|
|
@@ -2913,25 +2906,14 @@ export const ChangeDocumentOwnerResponse = new ChangeDocumentOwnerResponse$Type(
|
|
|
2913
2906
|
class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
2914
2907
|
constructor() {
|
|
2915
2908
|
super("services.documents.CreateDocumentRequest", [
|
|
2916
|
-
{ no: 1, name: "
|
|
2917
|
-
{ no: 2, name: "
|
|
2918
|
-
{ no: 3, name: "
|
|
2919
|
-
{ no: 4, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
2920
|
-
{ no: 5, name: "data", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxBytes: "1000000" } } } },
|
|
2921
|
-
{ no: 6, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "32" } } } },
|
|
2922
|
-
{ no: 7, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2923
|
-
{ no: 8, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2924
|
-
{ no: 9, name: "access", kind: "message", T: () => DocumentAccess },
|
|
2925
|
-
{ no: 10, name: "template_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2909
|
+
{ no: 1, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
2910
|
+
{ no: 2, name: "template_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2911
|
+
{ no: 3, name: "template_data", kind: "message", T: () => TemplateData }
|
|
2926
2912
|
]);
|
|
2927
2913
|
}
|
|
2928
2914
|
create(value?: PartialMessage<CreateDocumentRequest>): CreateDocumentRequest {
|
|
2929
2915
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2930
|
-
message.title = "";
|
|
2931
2916
|
message.contentType = 0;
|
|
2932
|
-
message.state = "";
|
|
2933
|
-
message.closed = false;
|
|
2934
|
-
message.public = false;
|
|
2935
2917
|
if (value !== undefined)
|
|
2936
2918
|
reflectionMergePartial<CreateDocumentRequest>(this, message, value);
|
|
2937
2919
|
return message;
|
|
@@ -2941,35 +2923,14 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
2941
2923
|
while (reader.pos < end) {
|
|
2942
2924
|
let [fieldNo, wireType] = reader.tag();
|
|
2943
2925
|
switch (fieldNo) {
|
|
2944
|
-
case /*
|
|
2945
|
-
message.categoryId = reader.uint64().toNumber();
|
|
2946
|
-
break;
|
|
2947
|
-
case /* string title */ 2:
|
|
2948
|
-
message.title = reader.string();
|
|
2949
|
-
break;
|
|
2950
|
-
case /* resources.common.content.Content content */ 3:
|
|
2951
|
-
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
2952
|
-
break;
|
|
2953
|
-
case /* resources.common.content.ContentType content_type */ 4:
|
|
2926
|
+
case /* resources.common.content.ContentType content_type */ 1:
|
|
2954
2927
|
message.contentType = reader.int32();
|
|
2955
2928
|
break;
|
|
2956
|
-
case /* optional
|
|
2957
|
-
message.
|
|
2958
|
-
break;
|
|
2959
|
-
case /* string state */ 6:
|
|
2960
|
-
message.state = reader.string();
|
|
2961
|
-
break;
|
|
2962
|
-
case /* bool closed */ 7:
|
|
2963
|
-
message.closed = reader.bool();
|
|
2964
|
-
break;
|
|
2965
|
-
case /* bool public */ 8:
|
|
2966
|
-
message.public = reader.bool();
|
|
2967
|
-
break;
|
|
2968
|
-
case /* optional resources.documents.DocumentAccess access */ 9:
|
|
2969
|
-
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
2929
|
+
case /* optional int64 template_id */ 2:
|
|
2930
|
+
message.templateId = reader.int64().toNumber();
|
|
2970
2931
|
break;
|
|
2971
|
-
case /* optional
|
|
2972
|
-
message.
|
|
2932
|
+
case /* optional resources.documents.templates.TemplateData template_data */ 3:
|
|
2933
|
+
message.templateData = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.templateData);
|
|
2973
2934
|
break;
|
|
2974
2935
|
default:
|
|
2975
2936
|
let u = options.readUnknownField;
|
|
@@ -2983,36 +2944,15 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
2983
2944
|
return message;
|
|
2984
2945
|
}
|
|
2985
2946
|
internalBinaryWrite(message: CreateDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2986
|
-
/*
|
|
2987
|
-
if (message.categoryId !== undefined)
|
|
2988
|
-
writer.tag(1, WireType.Varint).uint64(message.categoryId);
|
|
2989
|
-
/* string title = 2; */
|
|
2990
|
-
if (message.title !== "")
|
|
2991
|
-
writer.tag(2, WireType.LengthDelimited).string(message.title);
|
|
2992
|
-
/* resources.common.content.Content content = 3; */
|
|
2993
|
-
if (message.content)
|
|
2994
|
-
Content.internalBinaryWrite(message.content, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2995
|
-
/* resources.common.content.ContentType content_type = 4; */
|
|
2947
|
+
/* resources.common.content.ContentType content_type = 1; */
|
|
2996
2948
|
if (message.contentType !== 0)
|
|
2997
|
-
writer.tag(
|
|
2998
|
-
/* optional
|
|
2999
|
-
if (message.data !== undefined)
|
|
3000
|
-
writer.tag(5, WireType.LengthDelimited).string(message.data);
|
|
3001
|
-
/* string state = 6; */
|
|
3002
|
-
if (message.state !== "")
|
|
3003
|
-
writer.tag(6, WireType.LengthDelimited).string(message.state);
|
|
3004
|
-
/* bool closed = 7; */
|
|
3005
|
-
if (message.closed !== false)
|
|
3006
|
-
writer.tag(7, WireType.Varint).bool(message.closed);
|
|
3007
|
-
/* bool public = 8; */
|
|
3008
|
-
if (message.public !== false)
|
|
3009
|
-
writer.tag(8, WireType.Varint).bool(message.public);
|
|
3010
|
-
/* optional resources.documents.DocumentAccess access = 9; */
|
|
3011
|
-
if (message.access)
|
|
3012
|
-
DocumentAccess.internalBinaryWrite(message.access, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
3013
|
-
/* optional uint64 template_id = 10; */
|
|
2949
|
+
writer.tag(1, WireType.Varint).int32(message.contentType);
|
|
2950
|
+
/* optional int64 template_id = 2; */
|
|
3014
2951
|
if (message.templateId !== undefined)
|
|
3015
|
-
writer.tag(
|
|
2952
|
+
writer.tag(2, WireType.Varint).int64(message.templateId);
|
|
2953
|
+
/* optional resources.documents.templates.TemplateData template_data = 3; */
|
|
2954
|
+
if (message.templateData)
|
|
2955
|
+
TemplateData.internalBinaryWrite(message.templateData, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3016
2956
|
let u = options.writeUnknownFields;
|
|
3017
2957
|
if (u !== false)
|
|
3018
2958
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3027,12 +2967,12 @@ export const CreateDocumentRequest = new CreateDocumentRequest$Type();
|
|
|
3027
2967
|
class CreateDocumentResponse$Type extends MessageType<CreateDocumentResponse> {
|
|
3028
2968
|
constructor() {
|
|
3029
2969
|
super("services.documents.CreateDocumentResponse", [
|
|
3030
|
-
{ no: 1, name: "
|
|
2970
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3031
2971
|
]);
|
|
3032
2972
|
}
|
|
3033
2973
|
create(value?: PartialMessage<CreateDocumentResponse>): CreateDocumentResponse {
|
|
3034
2974
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3035
|
-
message.
|
|
2975
|
+
message.id = 0;
|
|
3036
2976
|
if (value !== undefined)
|
|
3037
2977
|
reflectionMergePartial<CreateDocumentResponse>(this, message, value);
|
|
3038
2978
|
return message;
|
|
@@ -3042,8 +2982,8 @@ class CreateDocumentResponse$Type extends MessageType<CreateDocumentResponse> {
|
|
|
3042
2982
|
while (reader.pos < end) {
|
|
3043
2983
|
let [fieldNo, wireType] = reader.tag();
|
|
3044
2984
|
switch (fieldNo) {
|
|
3045
|
-
case /*
|
|
3046
|
-
message.
|
|
2985
|
+
case /* int64 id */ 1:
|
|
2986
|
+
message.id = reader.int64().toNumber();
|
|
3047
2987
|
break;
|
|
3048
2988
|
default:
|
|
3049
2989
|
let u = options.readUnknownField;
|
|
@@ -3057,9 +2997,9 @@ class CreateDocumentResponse$Type extends MessageType<CreateDocumentResponse> {
|
|
|
3057
2997
|
return message;
|
|
3058
2998
|
}
|
|
3059
2999
|
internalBinaryWrite(message: CreateDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3060
|
-
/*
|
|
3061
|
-
if (message.
|
|
3062
|
-
writer.tag(1, WireType.Varint).
|
|
3000
|
+
/* int64 id = 1; */
|
|
3001
|
+
if (message.id !== 0)
|
|
3002
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
3063
3003
|
let u = options.writeUnknownFields;
|
|
3064
3004
|
if (u !== false)
|
|
3065
3005
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3074,16 +3014,15 @@ export const CreateDocumentResponse = new CreateDocumentResponse$Type();
|
|
|
3074
3014
|
class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
3075
3015
|
constructor() {
|
|
3076
3016
|
super("services.documents.UpdateDocumentRequest", [
|
|
3077
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3078
|
-
{ no: 2, name: "category_id", kind: "scalar", opt: true, T:
|
|
3079
|
-
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
3017
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
3018
|
+
{ no: 2, name: "category_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3019
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true }, "tagger.tags": "alias:\"title\"" } },
|
|
3080
3020
|
{ no: 4, name: "content", kind: "message", T: () => Content },
|
|
3081
|
-
{ no: 5, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "validate.
|
|
3082
|
-
{ no: 6, name: "data", kind: "
|
|
3083
|
-
{ no: 7, name: "
|
|
3084
|
-
{ no:
|
|
3085
|
-
{ no:
|
|
3086
|
-
{ no: 10, name: "access", kind: "message", T: () => DocumentAccess }
|
|
3021
|
+
{ no: 5, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
3022
|
+
{ no: 6, name: "data", kind: "message", T: () => DocumentData },
|
|
3023
|
+
{ no: 7, name: "meta", kind: "message", T: () => DocumentMeta, options: { "buf.validate.field": { required: true } } },
|
|
3024
|
+
{ no: 11, name: "access", kind: "message", T: () => DocumentAccess },
|
|
3025
|
+
{ no: 12, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "tagger.tags": "alias:\"files\"" } }
|
|
3087
3026
|
]);
|
|
3088
3027
|
}
|
|
3089
3028
|
create(value?: PartialMessage<UpdateDocumentRequest>): UpdateDocumentRequest {
|
|
@@ -3091,9 +3030,7 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3091
3030
|
message.documentId = 0;
|
|
3092
3031
|
message.title = "";
|
|
3093
3032
|
message.contentType = 0;
|
|
3094
|
-
message.
|
|
3095
|
-
message.closed = false;
|
|
3096
|
-
message.public = false;
|
|
3033
|
+
message.files = [];
|
|
3097
3034
|
if (value !== undefined)
|
|
3098
3035
|
reflectionMergePartial<UpdateDocumentRequest>(this, message, value);
|
|
3099
3036
|
return message;
|
|
@@ -3103,11 +3040,11 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3103
3040
|
while (reader.pos < end) {
|
|
3104
3041
|
let [fieldNo, wireType] = reader.tag();
|
|
3105
3042
|
switch (fieldNo) {
|
|
3106
|
-
case /*
|
|
3107
|
-
message.documentId = reader.
|
|
3043
|
+
case /* int64 document_id */ 1:
|
|
3044
|
+
message.documentId = reader.int64().toNumber();
|
|
3108
3045
|
break;
|
|
3109
|
-
case /* optional
|
|
3110
|
-
message.categoryId = reader.
|
|
3046
|
+
case /* optional int64 category_id */ 2:
|
|
3047
|
+
message.categoryId = reader.int64().toNumber();
|
|
3111
3048
|
break;
|
|
3112
3049
|
case /* string title */ 3:
|
|
3113
3050
|
message.title = reader.string();
|
|
@@ -3118,21 +3055,18 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3118
3055
|
case /* resources.common.content.ContentType content_type */ 5:
|
|
3119
3056
|
message.contentType = reader.int32();
|
|
3120
3057
|
break;
|
|
3121
|
-
case /* optional
|
|
3122
|
-
message.data = reader.
|
|
3123
|
-
break;
|
|
3124
|
-
case /* string state */ 7:
|
|
3125
|
-
message.state = reader.string();
|
|
3058
|
+
case /* optional resources.documents.data.DocumentData data */ 6:
|
|
3059
|
+
message.data = DocumentData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
3126
3060
|
break;
|
|
3127
|
-
case /*
|
|
3128
|
-
message.
|
|
3061
|
+
case /* resources.documents.DocumentMeta meta */ 7:
|
|
3062
|
+
message.meta = DocumentMeta.internalBinaryRead(reader, reader.uint32(), options, message.meta);
|
|
3129
3063
|
break;
|
|
3130
|
-
case /*
|
|
3131
|
-
message.public = reader.bool();
|
|
3132
|
-
break;
|
|
3133
|
-
case /* optional resources.documents.DocumentAccess access */ 10:
|
|
3064
|
+
case /* optional resources.documents.access.DocumentAccess access */ 11:
|
|
3134
3065
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3135
3066
|
break;
|
|
3067
|
+
case /* repeated resources.file.File files */ 12:
|
|
3068
|
+
message.files.push(File.internalBinaryRead(reader, reader.uint32(), options));
|
|
3069
|
+
break;
|
|
3136
3070
|
default:
|
|
3137
3071
|
let u = options.readUnknownField;
|
|
3138
3072
|
if (u === "throw")
|
|
@@ -3145,12 +3079,12 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3145
3079
|
return message;
|
|
3146
3080
|
}
|
|
3147
3081
|
internalBinaryWrite(message: UpdateDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3148
|
-
/*
|
|
3082
|
+
/* int64 document_id = 1; */
|
|
3149
3083
|
if (message.documentId !== 0)
|
|
3150
|
-
writer.tag(1, WireType.Varint).
|
|
3151
|
-
/* optional
|
|
3084
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3085
|
+
/* optional int64 category_id = 2; */
|
|
3152
3086
|
if (message.categoryId !== undefined)
|
|
3153
|
-
writer.tag(2, WireType.Varint).
|
|
3087
|
+
writer.tag(2, WireType.Varint).int64(message.categoryId);
|
|
3154
3088
|
/* string title = 3; */
|
|
3155
3089
|
if (message.title !== "")
|
|
3156
3090
|
writer.tag(3, WireType.LengthDelimited).string(message.title);
|
|
@@ -3160,21 +3094,18 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3160
3094
|
/* resources.common.content.ContentType content_type = 5; */
|
|
3161
3095
|
if (message.contentType !== 0)
|
|
3162
3096
|
writer.tag(5, WireType.Varint).int32(message.contentType);
|
|
3163
|
-
/* optional
|
|
3164
|
-
if (message.data
|
|
3165
|
-
writer.tag(6, WireType.LengthDelimited).
|
|
3166
|
-
/*
|
|
3167
|
-
if (message.
|
|
3168
|
-
writer.tag(7, WireType.LengthDelimited).
|
|
3169
|
-
/*
|
|
3170
|
-
if (message.closed !== false)
|
|
3171
|
-
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
3172
|
-
/* bool public = 9; */
|
|
3173
|
-
if (message.public !== false)
|
|
3174
|
-
writer.tag(9, WireType.Varint).bool(message.public);
|
|
3175
|
-
/* optional resources.documents.DocumentAccess access = 10; */
|
|
3097
|
+
/* optional resources.documents.data.DocumentData data = 6; */
|
|
3098
|
+
if (message.data)
|
|
3099
|
+
DocumentData.internalBinaryWrite(message.data, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
3100
|
+
/* resources.documents.DocumentMeta meta = 7; */
|
|
3101
|
+
if (message.meta)
|
|
3102
|
+
DocumentMeta.internalBinaryWrite(message.meta, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3103
|
+
/* optional resources.documents.access.DocumentAccess access = 11; */
|
|
3176
3104
|
if (message.access)
|
|
3177
|
-
DocumentAccess.internalBinaryWrite(message.access, writer.tag(
|
|
3105
|
+
DocumentAccess.internalBinaryWrite(message.access, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
3106
|
+
/* repeated resources.file.File files = 12; */
|
|
3107
|
+
for (let i = 0; i < message.files.length; i++)
|
|
3108
|
+
File.internalBinaryWrite(message.files[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
3178
3109
|
let u = options.writeUnknownFields;
|
|
3179
3110
|
if (u !== false)
|
|
3180
3111
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3189,9 +3120,9 @@ export const UpdateDocumentRequest = new UpdateDocumentRequest$Type();
|
|
|
3189
3120
|
class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityRequest> {
|
|
3190
3121
|
constructor() {
|
|
3191
3122
|
super("services.documents.ListDocumentActivityRequest", [
|
|
3192
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
3193
|
-
{ no: 2, name: "document_id", kind: "scalar", T:
|
|
3194
|
-
{ no: 3, name: "activity_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "validate.
|
|
3123
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3124
|
+
{ no: 2, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3125
|
+
{ no: 3, name: "activity_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { in: [13, 14, 15, 16, 17, 18] } } } } } }
|
|
3195
3126
|
]);
|
|
3196
3127
|
}
|
|
3197
3128
|
create(value?: PartialMessage<ListDocumentActivityRequest>): ListDocumentActivityRequest {
|
|
@@ -3210,10 +3141,10 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3210
3141
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
3211
3142
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3212
3143
|
break;
|
|
3213
|
-
case /*
|
|
3214
|
-
message.documentId = reader.
|
|
3144
|
+
case /* int64 document_id */ 2:
|
|
3145
|
+
message.documentId = reader.int64().toNumber();
|
|
3215
3146
|
break;
|
|
3216
|
-
case /* repeated resources.documents.DocActivityType activity_types */ 3:
|
|
3147
|
+
case /* repeated resources.documents.activity.DocActivityType activity_types */ 3:
|
|
3217
3148
|
if (wireType === WireType.LengthDelimited)
|
|
3218
3149
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3219
3150
|
message.activityTypes.push(reader.int32());
|
|
@@ -3235,10 +3166,10 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3235
3166
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
3236
3167
|
if (message.pagination)
|
|
3237
3168
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3238
|
-
/*
|
|
3169
|
+
/* int64 document_id = 2; */
|
|
3239
3170
|
if (message.documentId !== 0)
|
|
3240
|
-
writer.tag(2, WireType.Varint).
|
|
3241
|
-
/* repeated resources.documents.DocActivityType activity_types = 3; */
|
|
3171
|
+
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
3172
|
+
/* repeated resources.documents.activity.DocActivityType activity_types = 3; */
|
|
3242
3173
|
if (message.activityTypes.length) {
|
|
3243
3174
|
writer.tag(3, WireType.LengthDelimited).fork();
|
|
3244
3175
|
for (let i = 0; i < message.activityTypes.length; i++)
|
|
@@ -3259,8 +3190,8 @@ export const ListDocumentActivityRequest = new ListDocumentActivityRequest$Type(
|
|
|
3259
3190
|
class ListDocumentActivityResponse$Type extends MessageType<ListDocumentActivityResponse> {
|
|
3260
3191
|
constructor() {
|
|
3261
3192
|
super("services.documents.ListDocumentActivityResponse", [
|
|
3262
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
3263
|
-
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocActivity }
|
|
3193
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
3194
|
+
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocActivity, options: { "codegen.itemslen.enabled": true } }
|
|
3264
3195
|
]);
|
|
3265
3196
|
}
|
|
3266
3197
|
create(value?: PartialMessage<ListDocumentActivityResponse>): ListDocumentActivityResponse {
|
|
@@ -3278,7 +3209,7 @@ class ListDocumentActivityResponse$Type extends MessageType<ListDocumentActivity
|
|
|
3278
3209
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
3279
3210
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3280
3211
|
break;
|
|
3281
|
-
case /* repeated resources.documents.DocActivity activity */ 2:
|
|
3212
|
+
case /* repeated resources.documents.activity.DocActivity activity */ 2:
|
|
3282
3213
|
message.activity.push(DocActivity.internalBinaryRead(reader, reader.uint32(), options));
|
|
3283
3214
|
break;
|
|
3284
3215
|
default:
|
|
@@ -3296,7 +3227,7 @@ class ListDocumentActivityResponse$Type extends MessageType<ListDocumentActivity
|
|
|
3296
3227
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
3297
3228
|
if (message.pagination)
|
|
3298
3229
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3299
|
-
/* repeated resources.documents.DocActivity activity = 2; */
|
|
3230
|
+
/* repeated resources.documents.activity.DocActivity activity = 2; */
|
|
3300
3231
|
for (let i = 0; i < message.activity.length; i++)
|
|
3301
3232
|
DocActivity.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3302
3233
|
let u = options.writeUnknownFields;
|
|
@@ -3313,8 +3244,8 @@ export const ListDocumentActivityResponse = new ListDocumentActivityResponse$Typ
|
|
|
3313
3244
|
class ListDocumentReqsRequest$Type extends MessageType<ListDocumentReqsRequest> {
|
|
3314
3245
|
constructor() {
|
|
3315
3246
|
super("services.documents.ListDocumentReqsRequest", [
|
|
3316
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
3317
|
-
{ no: 2, name: "document_id", kind: "scalar", T:
|
|
3247
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3248
|
+
{ no: 2, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3318
3249
|
]);
|
|
3319
3250
|
}
|
|
3320
3251
|
create(value?: PartialMessage<ListDocumentReqsRequest>): ListDocumentReqsRequest {
|
|
@@ -3332,8 +3263,8 @@ class ListDocumentReqsRequest$Type extends MessageType<ListDocumentReqsRequest>
|
|
|
3332
3263
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
3333
3264
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3334
3265
|
break;
|
|
3335
|
-
case /*
|
|
3336
|
-
message.documentId = reader.
|
|
3266
|
+
case /* int64 document_id */ 2:
|
|
3267
|
+
message.documentId = reader.int64().toNumber();
|
|
3337
3268
|
break;
|
|
3338
3269
|
default:
|
|
3339
3270
|
let u = options.readUnknownField;
|
|
@@ -3350,9 +3281,9 @@ class ListDocumentReqsRequest$Type extends MessageType<ListDocumentReqsRequest>
|
|
|
3350
3281
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
3351
3282
|
if (message.pagination)
|
|
3352
3283
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3353
|
-
/*
|
|
3284
|
+
/* int64 document_id = 2; */
|
|
3354
3285
|
if (message.documentId !== 0)
|
|
3355
|
-
writer.tag(2, WireType.Varint).
|
|
3286
|
+
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
3356
3287
|
let u = options.writeUnknownFields;
|
|
3357
3288
|
if (u !== false)
|
|
3358
3289
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3367,8 +3298,8 @@ export const ListDocumentReqsRequest = new ListDocumentReqsRequest$Type();
|
|
|
3367
3298
|
class ListDocumentReqsResponse$Type extends MessageType<ListDocumentReqsResponse> {
|
|
3368
3299
|
constructor() {
|
|
3369
3300
|
super("services.documents.ListDocumentReqsResponse", [
|
|
3370
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
3371
|
-
{ no: 2, name: "requests", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocRequest }
|
|
3301
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
3302
|
+
{ no: 2, name: "requests", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocRequest, options: { "codegen.itemslen.enabled": true } }
|
|
3372
3303
|
]);
|
|
3373
3304
|
}
|
|
3374
3305
|
create(value?: PartialMessage<ListDocumentReqsResponse>): ListDocumentReqsResponse {
|
|
@@ -3386,7 +3317,7 @@ class ListDocumentReqsResponse$Type extends MessageType<ListDocumentReqsResponse
|
|
|
3386
3317
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
3387
3318
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3388
3319
|
break;
|
|
3389
|
-
case /* repeated resources.documents.DocRequest requests */ 2:
|
|
3320
|
+
case /* repeated resources.documents.requests.DocRequest requests */ 2:
|
|
3390
3321
|
message.requests.push(DocRequest.internalBinaryRead(reader, reader.uint32(), options));
|
|
3391
3322
|
break;
|
|
3392
3323
|
default:
|
|
@@ -3404,7 +3335,7 @@ class ListDocumentReqsResponse$Type extends MessageType<ListDocumentReqsResponse
|
|
|
3404
3335
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
3405
3336
|
if (message.pagination)
|
|
3406
3337
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3407
|
-
/* repeated resources.documents.DocRequest requests = 2; */
|
|
3338
|
+
/* repeated resources.documents.requests.DocRequest requests = 2; */
|
|
3408
3339
|
for (let i = 0; i < message.requests.length; i++)
|
|
3409
3340
|
DocRequest.internalBinaryWrite(message.requests[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3410
3341
|
let u = options.writeUnknownFields;
|
|
@@ -3421,9 +3352,9 @@ export const ListDocumentReqsResponse = new ListDocumentReqsResponse$Type();
|
|
|
3421
3352
|
class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest> {
|
|
3422
3353
|
constructor() {
|
|
3423
3354
|
super("services.documents.CreateDocumentReqRequest", [
|
|
3424
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3425
|
-
{ no: 2, name: "request_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "validate.
|
|
3426
|
-
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
3355
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3356
|
+
{ no: 2, name: "request_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { in: [13, 14, 15, 16, 17, 18] } } } },
|
|
3357
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
3427
3358
|
{ no: 4, name: "data", kind: "message", T: () => DocActivityData }
|
|
3428
3359
|
]);
|
|
3429
3360
|
}
|
|
@@ -3440,16 +3371,16 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3440
3371
|
while (reader.pos < end) {
|
|
3441
3372
|
let [fieldNo, wireType] = reader.tag();
|
|
3442
3373
|
switch (fieldNo) {
|
|
3443
|
-
case /*
|
|
3444
|
-
message.documentId = reader.
|
|
3374
|
+
case /* int64 document_id */ 1:
|
|
3375
|
+
message.documentId = reader.int64().toNumber();
|
|
3445
3376
|
break;
|
|
3446
|
-
case /* resources.documents.DocActivityType request_type */ 2:
|
|
3377
|
+
case /* resources.documents.activity.DocActivityType request_type */ 2:
|
|
3447
3378
|
message.requestType = reader.int32();
|
|
3448
3379
|
break;
|
|
3449
3380
|
case /* optional string reason */ 3:
|
|
3450
3381
|
message.reason = reader.string();
|
|
3451
3382
|
break;
|
|
3452
|
-
case /* optional resources.documents.DocActivityData data */ 4:
|
|
3383
|
+
case /* optional resources.documents.activity.DocActivityData data */ 4:
|
|
3453
3384
|
message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
3454
3385
|
break;
|
|
3455
3386
|
default:
|
|
@@ -3464,16 +3395,16 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3464
3395
|
return message;
|
|
3465
3396
|
}
|
|
3466
3397
|
internalBinaryWrite(message: CreateDocumentReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3467
|
-
/*
|
|
3398
|
+
/* int64 document_id = 1; */
|
|
3468
3399
|
if (message.documentId !== 0)
|
|
3469
|
-
writer.tag(1, WireType.Varint).
|
|
3470
|
-
/* resources.documents.DocActivityType request_type = 2; */
|
|
3400
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3401
|
+
/* resources.documents.activity.DocActivityType request_type = 2; */
|
|
3471
3402
|
if (message.requestType !== 0)
|
|
3472
3403
|
writer.tag(2, WireType.Varint).int32(message.requestType);
|
|
3473
3404
|
/* optional string reason = 3; */
|
|
3474
3405
|
if (message.reason !== undefined)
|
|
3475
3406
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
3476
|
-
/* optional resources.documents.DocActivityData data = 4; */
|
|
3407
|
+
/* optional resources.documents.activity.DocActivityData data = 4; */
|
|
3477
3408
|
if (message.data)
|
|
3478
3409
|
DocActivityData.internalBinaryWrite(message.data, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3479
3410
|
let u = options.writeUnknownFields;
|
|
@@ -3504,7 +3435,7 @@ class CreateDocumentReqResponse$Type extends MessageType<CreateDocumentReqRespon
|
|
|
3504
3435
|
while (reader.pos < end) {
|
|
3505
3436
|
let [fieldNo, wireType] = reader.tag();
|
|
3506
3437
|
switch (fieldNo) {
|
|
3507
|
-
case /* resources.documents.DocRequest request */ 1:
|
|
3438
|
+
case /* resources.documents.requests.DocRequest request */ 1:
|
|
3508
3439
|
message.request = DocRequest.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
3509
3440
|
break;
|
|
3510
3441
|
default:
|
|
@@ -3519,7 +3450,7 @@ class CreateDocumentReqResponse$Type extends MessageType<CreateDocumentReqRespon
|
|
|
3519
3450
|
return message;
|
|
3520
3451
|
}
|
|
3521
3452
|
internalBinaryWrite(message: CreateDocumentReqResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3522
|
-
/* resources.documents.DocRequest request = 1; */
|
|
3453
|
+
/* resources.documents.requests.DocRequest request = 1; */
|
|
3523
3454
|
if (message.request)
|
|
3524
3455
|
DocRequest.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3525
3456
|
let u = options.writeUnknownFields;
|
|
@@ -3536,9 +3467,9 @@ export const CreateDocumentReqResponse = new CreateDocumentReqResponse$Type();
|
|
|
3536
3467
|
class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest> {
|
|
3537
3468
|
constructor() {
|
|
3538
3469
|
super("services.documents.UpdateDocumentReqRequest", [
|
|
3539
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3540
|
-
{ no: 2, name: "request_id", kind: "scalar", T:
|
|
3541
|
-
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
3470
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3471
|
+
{ no: 2, name: "request_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3472
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
3542
3473
|
{ no: 4, name: "data", kind: "message", T: () => DocActivityData },
|
|
3543
3474
|
{ no: 5, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
3544
3475
|
]);
|
|
@@ -3557,16 +3488,16 @@ class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest
|
|
|
3557
3488
|
while (reader.pos < end) {
|
|
3558
3489
|
let [fieldNo, wireType] = reader.tag();
|
|
3559
3490
|
switch (fieldNo) {
|
|
3560
|
-
case /*
|
|
3561
|
-
message.documentId = reader.
|
|
3491
|
+
case /* int64 document_id */ 1:
|
|
3492
|
+
message.documentId = reader.int64().toNumber();
|
|
3562
3493
|
break;
|
|
3563
|
-
case /*
|
|
3564
|
-
message.requestId = reader.
|
|
3494
|
+
case /* int64 request_id */ 2:
|
|
3495
|
+
message.requestId = reader.int64().toNumber();
|
|
3565
3496
|
break;
|
|
3566
3497
|
case /* optional string reason */ 3:
|
|
3567
3498
|
message.reason = reader.string();
|
|
3568
3499
|
break;
|
|
3569
|
-
case /* optional resources.documents.DocActivityData data */ 4:
|
|
3500
|
+
case /* optional resources.documents.activity.DocActivityData data */ 4:
|
|
3570
3501
|
message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
3571
3502
|
break;
|
|
3572
3503
|
case /* bool accepted */ 5:
|
|
@@ -3584,16 +3515,16 @@ class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest
|
|
|
3584
3515
|
return message;
|
|
3585
3516
|
}
|
|
3586
3517
|
internalBinaryWrite(message: UpdateDocumentReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3587
|
-
/*
|
|
3518
|
+
/* int64 document_id = 1; */
|
|
3588
3519
|
if (message.documentId !== 0)
|
|
3589
|
-
writer.tag(1, WireType.Varint).
|
|
3590
|
-
/*
|
|
3520
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3521
|
+
/* int64 request_id = 2; */
|
|
3591
3522
|
if (message.requestId !== 0)
|
|
3592
|
-
writer.tag(2, WireType.Varint).
|
|
3523
|
+
writer.tag(2, WireType.Varint).int64(message.requestId);
|
|
3593
3524
|
/* optional string reason = 3; */
|
|
3594
3525
|
if (message.reason !== undefined)
|
|
3595
3526
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
3596
|
-
/* optional resources.documents.DocActivityData data = 4; */
|
|
3527
|
+
/* optional resources.documents.activity.DocActivityData data = 4; */
|
|
3597
3528
|
if (message.data)
|
|
3598
3529
|
DocActivityData.internalBinaryWrite(message.data, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3599
3530
|
/* bool accepted = 5; */
|
|
@@ -3627,7 +3558,7 @@ class UpdateDocumentReqResponse$Type extends MessageType<UpdateDocumentReqRespon
|
|
|
3627
3558
|
while (reader.pos < end) {
|
|
3628
3559
|
let [fieldNo, wireType] = reader.tag();
|
|
3629
3560
|
switch (fieldNo) {
|
|
3630
|
-
case /* resources.documents.DocRequest request */ 1:
|
|
3561
|
+
case /* resources.documents.requests.DocRequest request */ 1:
|
|
3631
3562
|
message.request = DocRequest.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
3632
3563
|
break;
|
|
3633
3564
|
default:
|
|
@@ -3642,7 +3573,7 @@ class UpdateDocumentReqResponse$Type extends MessageType<UpdateDocumentReqRespon
|
|
|
3642
3573
|
return message;
|
|
3643
3574
|
}
|
|
3644
3575
|
internalBinaryWrite(message: UpdateDocumentReqResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3645
|
-
/* resources.documents.DocRequest request = 1; */
|
|
3576
|
+
/* resources.documents.requests.DocRequest request = 1; */
|
|
3646
3577
|
if (message.request)
|
|
3647
3578
|
DocRequest.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3648
3579
|
let u = options.writeUnknownFields;
|
|
@@ -3659,7 +3590,7 @@ export const UpdateDocumentReqResponse = new UpdateDocumentReqResponse$Type();
|
|
|
3659
3590
|
class DeleteDocumentReqRequest$Type extends MessageType<DeleteDocumentReqRequest> {
|
|
3660
3591
|
constructor() {
|
|
3661
3592
|
super("services.documents.DeleteDocumentReqRequest", [
|
|
3662
|
-
{ no: 1, name: "request_id", kind: "scalar", T:
|
|
3593
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3663
3594
|
]);
|
|
3664
3595
|
}
|
|
3665
3596
|
create(value?: PartialMessage<DeleteDocumentReqRequest>): DeleteDocumentReqRequest {
|
|
@@ -3674,8 +3605,8 @@ class DeleteDocumentReqRequest$Type extends MessageType<DeleteDocumentReqRequest
|
|
|
3674
3605
|
while (reader.pos < end) {
|
|
3675
3606
|
let [fieldNo, wireType] = reader.tag();
|
|
3676
3607
|
switch (fieldNo) {
|
|
3677
|
-
case /*
|
|
3678
|
-
message.requestId = reader.
|
|
3608
|
+
case /* int64 request_id */ 1:
|
|
3609
|
+
message.requestId = reader.int64().toNumber();
|
|
3679
3610
|
break;
|
|
3680
3611
|
default:
|
|
3681
3612
|
let u = options.readUnknownField;
|
|
@@ -3689,9 +3620,9 @@ class DeleteDocumentReqRequest$Type extends MessageType<DeleteDocumentReqRequest
|
|
|
3689
3620
|
return message;
|
|
3690
3621
|
}
|
|
3691
3622
|
internalBinaryWrite(message: DeleteDocumentReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3692
|
-
/*
|
|
3623
|
+
/* int64 request_id = 1; */
|
|
3693
3624
|
if (message.requestId !== 0)
|
|
3694
|
-
writer.tag(1, WireType.Varint).
|
|
3625
|
+
writer.tag(1, WireType.Varint).int64(message.requestId);
|
|
3695
3626
|
let u = options.writeUnknownFields;
|
|
3696
3627
|
if (u !== false)
|
|
3697
3628
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3744,7 +3675,7 @@ export const DeleteDocumentReqResponse = new DeleteDocumentReqResponse$Type();
|
|
|
3744
3675
|
class GetDocumentAccessRequest$Type extends MessageType<GetDocumentAccessRequest> {
|
|
3745
3676
|
constructor() {
|
|
3746
3677
|
super("services.documents.GetDocumentAccessRequest", [
|
|
3747
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3678
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3748
3679
|
]);
|
|
3749
3680
|
}
|
|
3750
3681
|
create(value?: PartialMessage<GetDocumentAccessRequest>): GetDocumentAccessRequest {
|
|
@@ -3759,8 +3690,8 @@ class GetDocumentAccessRequest$Type extends MessageType<GetDocumentAccessRequest
|
|
|
3759
3690
|
while (reader.pos < end) {
|
|
3760
3691
|
let [fieldNo, wireType] = reader.tag();
|
|
3761
3692
|
switch (fieldNo) {
|
|
3762
|
-
case /*
|
|
3763
|
-
message.documentId = reader.
|
|
3693
|
+
case /* int64 document_id */ 1:
|
|
3694
|
+
message.documentId = reader.int64().toNumber();
|
|
3764
3695
|
break;
|
|
3765
3696
|
default:
|
|
3766
3697
|
let u = options.readUnknownField;
|
|
@@ -3774,9 +3705,9 @@ class GetDocumentAccessRequest$Type extends MessageType<GetDocumentAccessRequest
|
|
|
3774
3705
|
return message;
|
|
3775
3706
|
}
|
|
3776
3707
|
internalBinaryWrite(message: GetDocumentAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3777
|
-
/*
|
|
3708
|
+
/* int64 document_id = 1; */
|
|
3778
3709
|
if (message.documentId !== 0)
|
|
3779
|
-
writer.tag(1, WireType.Varint).
|
|
3710
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3780
3711
|
let u = options.writeUnknownFields;
|
|
3781
3712
|
if (u !== false)
|
|
3782
3713
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3791,7 +3722,7 @@ export const GetDocumentAccessRequest = new GetDocumentAccessRequest$Type();
|
|
|
3791
3722
|
class GetDocumentAccessResponse$Type extends MessageType<GetDocumentAccessResponse> {
|
|
3792
3723
|
constructor() {
|
|
3793
3724
|
super("services.documents.GetDocumentAccessResponse", [
|
|
3794
|
-
{ no: 1, name: "access", kind: "message", T: () => DocumentAccess, options: { "validate.
|
|
3725
|
+
{ no: 1, name: "access", kind: "message", T: () => DocumentAccess, options: { "buf.validate.field": { required: true } } }
|
|
3795
3726
|
]);
|
|
3796
3727
|
}
|
|
3797
3728
|
create(value?: PartialMessage<GetDocumentAccessResponse>): GetDocumentAccessResponse {
|
|
@@ -3805,7 +3736,7 @@ class GetDocumentAccessResponse$Type extends MessageType<GetDocumentAccessRespon
|
|
|
3805
3736
|
while (reader.pos < end) {
|
|
3806
3737
|
let [fieldNo, wireType] = reader.tag();
|
|
3807
3738
|
switch (fieldNo) {
|
|
3808
|
-
case /* resources.documents.DocumentAccess access */ 1:
|
|
3739
|
+
case /* resources.documents.access.DocumentAccess access */ 1:
|
|
3809
3740
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3810
3741
|
break;
|
|
3811
3742
|
default:
|
|
@@ -3820,7 +3751,7 @@ class GetDocumentAccessResponse$Type extends MessageType<GetDocumentAccessRespon
|
|
|
3820
3751
|
return message;
|
|
3821
3752
|
}
|
|
3822
3753
|
internalBinaryWrite(message: GetDocumentAccessResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3823
|
-
/* resources.documents.DocumentAccess access = 1; */
|
|
3754
|
+
/* resources.documents.access.DocumentAccess access = 1; */
|
|
3824
3755
|
if (message.access)
|
|
3825
3756
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3826
3757
|
let u = options.writeUnknownFields;
|
|
@@ -3837,8 +3768,8 @@ export const GetDocumentAccessResponse = new GetDocumentAccessResponse$Type();
|
|
|
3837
3768
|
class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest> {
|
|
3838
3769
|
constructor() {
|
|
3839
3770
|
super("services.documents.SetDocumentAccessRequest", [
|
|
3840
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3841
|
-
{ no: 2, name: "access", kind: "message", T: () => DocumentAccess, options: { "validate.
|
|
3771
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3772
|
+
{ no: 2, name: "access", kind: "message", T: () => DocumentAccess, options: { "buf.validate.field": { required: true } } }
|
|
3842
3773
|
]);
|
|
3843
3774
|
}
|
|
3844
3775
|
create(value?: PartialMessage<SetDocumentAccessRequest>): SetDocumentAccessRequest {
|
|
@@ -3853,10 +3784,10 @@ class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest
|
|
|
3853
3784
|
while (reader.pos < end) {
|
|
3854
3785
|
let [fieldNo, wireType] = reader.tag();
|
|
3855
3786
|
switch (fieldNo) {
|
|
3856
|
-
case /*
|
|
3857
|
-
message.documentId = reader.
|
|
3787
|
+
case /* int64 document_id */ 1:
|
|
3788
|
+
message.documentId = reader.int64().toNumber();
|
|
3858
3789
|
break;
|
|
3859
|
-
case /* resources.documents.DocumentAccess access */ 2:
|
|
3790
|
+
case /* resources.documents.access.DocumentAccess access */ 2:
|
|
3860
3791
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3861
3792
|
break;
|
|
3862
3793
|
default:
|
|
@@ -3871,10 +3802,10 @@ class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest
|
|
|
3871
3802
|
return message;
|
|
3872
3803
|
}
|
|
3873
3804
|
internalBinaryWrite(message: SetDocumentAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3874
|
-
/*
|
|
3805
|
+
/* int64 document_id = 1; */
|
|
3875
3806
|
if (message.documentId !== 0)
|
|
3876
|
-
writer.tag(1, WireType.Varint).
|
|
3877
|
-
/* resources.documents.DocumentAccess access = 2; */
|
|
3807
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3808
|
+
/* resources.documents.access.DocumentAccess access = 2; */
|
|
3878
3809
|
if (message.access)
|
|
3879
3810
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3880
3811
|
let u = options.writeUnknownFields;
|
|
@@ -3929,11 +3860,12 @@ export const SetDocumentAccessResponse = new SetDocumentAccessResponse$Type();
|
|
|
3929
3860
|
class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest> {
|
|
3930
3861
|
constructor() {
|
|
3931
3862
|
super("services.documents.ListUserDocumentsRequest", [
|
|
3932
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
3863
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3933
3864
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
3934
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
3935
|
-
{ no: 4, name: "relations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.DocRelation", DocRelation, "DOC_RELATION_"], options: { "validate.
|
|
3936
|
-
{ no: 5, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3865
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
3866
|
+
{ no: 4, name: "relations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.relations.DocRelation", DocRelation, "DOC_RELATION_"], options: { "buf.validate.field": { repeated: { maxItems: "3" } } } },
|
|
3867
|
+
{ no: 5, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3868
|
+
{ no: 6, name: "include_created", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3937
3869
|
]);
|
|
3938
3870
|
}
|
|
3939
3871
|
create(value?: PartialMessage<ListUserDocumentsRequest>): ListUserDocumentsRequest {
|
|
@@ -3958,7 +3890,7 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3958
3890
|
case /* int32 user_id */ 3:
|
|
3959
3891
|
message.userId = reader.int32();
|
|
3960
3892
|
break;
|
|
3961
|
-
case /* repeated resources.documents.DocRelation relations */ 4:
|
|
3893
|
+
case /* repeated resources.documents.relations.DocRelation relations */ 4:
|
|
3962
3894
|
if (wireType === WireType.LengthDelimited)
|
|
3963
3895
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3964
3896
|
message.relations.push(reader.int32());
|
|
@@ -3968,6 +3900,9 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3968
3900
|
case /* optional bool closed */ 5:
|
|
3969
3901
|
message.closed = reader.bool();
|
|
3970
3902
|
break;
|
|
3903
|
+
case /* optional bool include_created */ 6:
|
|
3904
|
+
message.includeCreated = reader.bool();
|
|
3905
|
+
break;
|
|
3971
3906
|
default:
|
|
3972
3907
|
let u = options.readUnknownField;
|
|
3973
3908
|
if (u === "throw")
|
|
@@ -3989,7 +3924,7 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3989
3924
|
/* int32 user_id = 3; */
|
|
3990
3925
|
if (message.userId !== 0)
|
|
3991
3926
|
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
3992
|
-
/* repeated resources.documents.DocRelation relations = 4; */
|
|
3927
|
+
/* repeated resources.documents.relations.DocRelation relations = 4; */
|
|
3993
3928
|
if (message.relations.length) {
|
|
3994
3929
|
writer.tag(4, WireType.LengthDelimited).fork();
|
|
3995
3930
|
for (let i = 0; i < message.relations.length; i++)
|
|
@@ -3999,6 +3934,9 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3999
3934
|
/* optional bool closed = 5; */
|
|
4000
3935
|
if (message.closed !== undefined)
|
|
4001
3936
|
writer.tag(5, WireType.Varint).bool(message.closed);
|
|
3937
|
+
/* optional bool include_created = 6; */
|
|
3938
|
+
if (message.includeCreated !== undefined)
|
|
3939
|
+
writer.tag(6, WireType.Varint).bool(message.includeCreated);
|
|
4002
3940
|
let u = options.writeUnknownFields;
|
|
4003
3941
|
if (u !== false)
|
|
4004
3942
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4013,8 +3951,8 @@ export const ListUserDocumentsRequest = new ListUserDocumentsRequest$Type();
|
|
|
4013
3951
|
class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsResponse> {
|
|
4014
3952
|
constructor() {
|
|
4015
3953
|
super("services.documents.ListUserDocumentsResponse", [
|
|
4016
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
4017
|
-
{ no: 2, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation }
|
|
3954
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
3955
|
+
{ no: 2, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation, options: { "codegen.itemslen.enabled": true } }
|
|
4018
3956
|
]);
|
|
4019
3957
|
}
|
|
4020
3958
|
create(value?: PartialMessage<ListUserDocumentsResponse>): ListUserDocumentsResponse {
|
|
@@ -4032,7 +3970,7 @@ class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsRespon
|
|
|
4032
3970
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
4033
3971
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
4034
3972
|
break;
|
|
4035
|
-
case /* repeated resources.documents.DocumentRelation relations */ 2:
|
|
3973
|
+
case /* repeated resources.documents.relations.DocumentRelation relations */ 2:
|
|
4036
3974
|
message.relations.push(DocumentRelation.internalBinaryRead(reader, reader.uint32(), options));
|
|
4037
3975
|
break;
|
|
4038
3976
|
default:
|
|
@@ -4050,7 +3988,7 @@ class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsRespon
|
|
|
4050
3988
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
4051
3989
|
if (message.pagination)
|
|
4052
3990
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4053
|
-
/* repeated resources.documents.DocumentRelation relations = 2; */
|
|
3991
|
+
/* repeated resources.documents.relations.DocumentRelation relations = 2; */
|
|
4054
3992
|
for (let i = 0; i < message.relations.length; i++)
|
|
4055
3993
|
DocumentRelation.internalBinaryWrite(message.relations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4056
3994
|
let u = options.writeUnknownFields;
|
|
@@ -4120,7 +4058,7 @@ class ListCategoriesResponse$Type extends MessageType<ListCategoriesResponse> {
|
|
|
4120
4058
|
while (reader.pos < end) {
|
|
4121
4059
|
let [fieldNo, wireType] = reader.tag();
|
|
4122
4060
|
switch (fieldNo) {
|
|
4123
|
-
case /* repeated resources.documents.Category categories */ 1:
|
|
4061
|
+
case /* repeated resources.documents.category.Category categories */ 1:
|
|
4124
4062
|
message.categories.push(Category.internalBinaryRead(reader, reader.uint32(), options));
|
|
4125
4063
|
break;
|
|
4126
4064
|
default:
|
|
@@ -4135,7 +4073,7 @@ class ListCategoriesResponse$Type extends MessageType<ListCategoriesResponse> {
|
|
|
4135
4073
|
return message;
|
|
4136
4074
|
}
|
|
4137
4075
|
internalBinaryWrite(message: ListCategoriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4138
|
-
/* repeated resources.documents.Category categories = 1; */
|
|
4076
|
+
/* repeated resources.documents.category.Category categories = 1; */
|
|
4139
4077
|
for (let i = 0; i < message.categories.length; i++)
|
|
4140
4078
|
Category.internalBinaryWrite(message.categories[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4141
4079
|
let u = options.writeUnknownFields;
|
|
@@ -4152,7 +4090,7 @@ export const ListCategoriesResponse = new ListCategoriesResponse$Type();
|
|
|
4152
4090
|
class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCategoryRequest> {
|
|
4153
4091
|
constructor() {
|
|
4154
4092
|
super("services.documents.CreateOrUpdateCategoryRequest", [
|
|
4155
|
-
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "validate.
|
|
4093
|
+
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "buf.validate.field": { required: true } } }
|
|
4156
4094
|
]);
|
|
4157
4095
|
}
|
|
4158
4096
|
create(value?: PartialMessage<CreateOrUpdateCategoryRequest>): CreateOrUpdateCategoryRequest {
|
|
@@ -4166,7 +4104,7 @@ class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCateg
|
|
|
4166
4104
|
while (reader.pos < end) {
|
|
4167
4105
|
let [fieldNo, wireType] = reader.tag();
|
|
4168
4106
|
switch (fieldNo) {
|
|
4169
|
-
case /* resources.documents.Category category */ 1:
|
|
4107
|
+
case /* resources.documents.category.Category category */ 1:
|
|
4170
4108
|
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
4171
4109
|
break;
|
|
4172
4110
|
default:
|
|
@@ -4181,7 +4119,7 @@ class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCateg
|
|
|
4181
4119
|
return message;
|
|
4182
4120
|
}
|
|
4183
4121
|
internalBinaryWrite(message: CreateOrUpdateCategoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4184
|
-
/* resources.documents.Category category = 1; */
|
|
4122
|
+
/* resources.documents.category.Category category = 1; */
|
|
4185
4123
|
if (message.category)
|
|
4186
4124
|
Category.internalBinaryWrite(message.category, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4187
4125
|
let u = options.writeUnknownFields;
|
|
@@ -4198,7 +4136,7 @@ export const CreateOrUpdateCategoryRequest = new CreateOrUpdateCategoryRequest$T
|
|
|
4198
4136
|
class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCategoryResponse> {
|
|
4199
4137
|
constructor() {
|
|
4200
4138
|
super("services.documents.CreateOrUpdateCategoryResponse", [
|
|
4201
|
-
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "validate.
|
|
4139
|
+
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "buf.validate.field": { required: true } } }
|
|
4202
4140
|
]);
|
|
4203
4141
|
}
|
|
4204
4142
|
create(value?: PartialMessage<CreateOrUpdateCategoryResponse>): CreateOrUpdateCategoryResponse {
|
|
@@ -4212,7 +4150,7 @@ class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCate
|
|
|
4212
4150
|
while (reader.pos < end) {
|
|
4213
4151
|
let [fieldNo, wireType] = reader.tag();
|
|
4214
4152
|
switch (fieldNo) {
|
|
4215
|
-
case /* resources.documents.Category category */ 1:
|
|
4153
|
+
case /* resources.documents.category.Category category */ 1:
|
|
4216
4154
|
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
4217
4155
|
break;
|
|
4218
4156
|
default:
|
|
@@ -4227,7 +4165,7 @@ class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCate
|
|
|
4227
4165
|
return message;
|
|
4228
4166
|
}
|
|
4229
4167
|
internalBinaryWrite(message: CreateOrUpdateCategoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4230
|
-
/* resources.documents.Category category = 1; */
|
|
4168
|
+
/* resources.documents.category.Category category = 1; */
|
|
4231
4169
|
if (message.category)
|
|
4232
4170
|
Category.internalBinaryWrite(message.category, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4233
4171
|
let u = options.writeUnknownFields;
|
|
@@ -4244,7 +4182,7 @@ export const CreateOrUpdateCategoryResponse = new CreateOrUpdateCategoryResponse
|
|
|
4244
4182
|
class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
4245
4183
|
constructor() {
|
|
4246
4184
|
super("services.documents.DeleteCategoryRequest", [
|
|
4247
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
4185
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
4248
4186
|
]);
|
|
4249
4187
|
}
|
|
4250
4188
|
create(value?: PartialMessage<DeleteCategoryRequest>): DeleteCategoryRequest {
|
|
@@ -4259,8 +4197,8 @@ class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
|
4259
4197
|
while (reader.pos < end) {
|
|
4260
4198
|
let [fieldNo, wireType] = reader.tag();
|
|
4261
4199
|
switch (fieldNo) {
|
|
4262
|
-
case /*
|
|
4263
|
-
message.id = reader.
|
|
4200
|
+
case /* int64 id */ 1:
|
|
4201
|
+
message.id = reader.int64().toNumber();
|
|
4264
4202
|
break;
|
|
4265
4203
|
default:
|
|
4266
4204
|
let u = options.readUnknownField;
|
|
@@ -4274,9 +4212,9 @@ class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
|
4274
4212
|
return message;
|
|
4275
4213
|
}
|
|
4276
4214
|
internalBinaryWrite(message: DeleteCategoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4277
|
-
/*
|
|
4215
|
+
/* int64 id = 1; */
|
|
4278
4216
|
if (message.id !== 0)
|
|
4279
|
-
writer.tag(1, WireType.Varint).
|
|
4217
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
4280
4218
|
let u = options.writeUnknownFields;
|
|
4281
4219
|
if (u !== false)
|
|
4282
4220
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4329,7 +4267,8 @@ export const DeleteCategoryResponse = new DeleteCategoryResponse$Type();
|
|
|
4329
4267
|
class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest> {
|
|
4330
4268
|
constructor() {
|
|
4331
4269
|
super("services.documents.ListDocumentPinsRequest", [
|
|
4332
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
4270
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
4271
|
+
{ no: 2, name: "personal", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
4333
4272
|
]);
|
|
4334
4273
|
}
|
|
4335
4274
|
create(value?: PartialMessage<ListDocumentPinsRequest>): ListDocumentPinsRequest {
|
|
@@ -4346,6 +4285,9 @@ class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest>
|
|
|
4346
4285
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
4347
4286
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
4348
4287
|
break;
|
|
4288
|
+
case /* optional bool personal */ 2:
|
|
4289
|
+
message.personal = reader.bool();
|
|
4290
|
+
break;
|
|
4349
4291
|
default:
|
|
4350
4292
|
let u = options.readUnknownField;
|
|
4351
4293
|
if (u === "throw")
|
|
@@ -4361,6 +4303,9 @@ class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest>
|
|
|
4361
4303
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
4362
4304
|
if (message.pagination)
|
|
4363
4305
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4306
|
+
/* optional bool personal = 2; */
|
|
4307
|
+
if (message.personal !== undefined)
|
|
4308
|
+
writer.tag(2, WireType.Varint).bool(message.personal);
|
|
4364
4309
|
let u = options.writeUnknownFields;
|
|
4365
4310
|
if (u !== false)
|
|
4366
4311
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4375,8 +4320,8 @@ export const ListDocumentPinsRequest = new ListDocumentPinsRequest$Type();
|
|
|
4375
4320
|
class ListDocumentPinsResponse$Type extends MessageType<ListDocumentPinsResponse> {
|
|
4376
4321
|
constructor() {
|
|
4377
4322
|
super("services.documents.ListDocumentPinsResponse", [
|
|
4378
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
4379
|
-
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort }
|
|
4323
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
4324
|
+
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "codegen.itemslen.enabled": true } }
|
|
4380
4325
|
]);
|
|
4381
4326
|
}
|
|
4382
4327
|
create(value?: PartialMessage<ListDocumentPinsResponse>): ListDocumentPinsResponse {
|
|
@@ -4429,8 +4374,9 @@ export const ListDocumentPinsResponse = new ListDocumentPinsResponse$Type();
|
|
|
4429
4374
|
class ToggleDocumentPinRequest$Type extends MessageType<ToggleDocumentPinRequest> {
|
|
4430
4375
|
constructor() {
|
|
4431
4376
|
super("services.documents.ToggleDocumentPinRequest", [
|
|
4432
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
4433
|
-
{ no: 2, name: "state", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
4377
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
4378
|
+
{ no: 2, name: "state", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4379
|
+
{ no: 3, name: "personal", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
4434
4380
|
]);
|
|
4435
4381
|
}
|
|
4436
4382
|
create(value?: PartialMessage<ToggleDocumentPinRequest>): ToggleDocumentPinRequest {
|
|
@@ -4446,12 +4392,15 @@ class ToggleDocumentPinRequest$Type extends MessageType<ToggleDocumentPinRequest
|
|
|
4446
4392
|
while (reader.pos < end) {
|
|
4447
4393
|
let [fieldNo, wireType] = reader.tag();
|
|
4448
4394
|
switch (fieldNo) {
|
|
4449
|
-
case /*
|
|
4450
|
-
message.documentId = reader.
|
|
4395
|
+
case /* int64 document_id */ 1:
|
|
4396
|
+
message.documentId = reader.int64().toNumber();
|
|
4451
4397
|
break;
|
|
4452
4398
|
case /* bool state */ 2:
|
|
4453
4399
|
message.state = reader.bool();
|
|
4454
4400
|
break;
|
|
4401
|
+
case /* optional bool personal */ 3:
|
|
4402
|
+
message.personal = reader.bool();
|
|
4403
|
+
break;
|
|
4455
4404
|
default:
|
|
4456
4405
|
let u = options.readUnknownField;
|
|
4457
4406
|
if (u === "throw")
|
|
@@ -4464,12 +4413,15 @@ class ToggleDocumentPinRequest$Type extends MessageType<ToggleDocumentPinRequest
|
|
|
4464
4413
|
return message;
|
|
4465
4414
|
}
|
|
4466
4415
|
internalBinaryWrite(message: ToggleDocumentPinRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4467
|
-
/*
|
|
4416
|
+
/* int64 document_id = 1; */
|
|
4468
4417
|
if (message.documentId !== 0)
|
|
4469
|
-
writer.tag(1, WireType.Varint).
|
|
4418
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
4470
4419
|
/* bool state = 2; */
|
|
4471
4420
|
if (message.state !== false)
|
|
4472
4421
|
writer.tag(2, WireType.Varint).bool(message.state);
|
|
4422
|
+
/* optional bool personal = 3; */
|
|
4423
|
+
if (message.personal !== undefined)
|
|
4424
|
+
writer.tag(3, WireType.Varint).bool(message.personal);
|
|
4473
4425
|
let u = options.writeUnknownFields;
|
|
4474
4426
|
if (u !== false)
|
|
4475
4427
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4484,12 +4436,11 @@ export const ToggleDocumentPinRequest = new ToggleDocumentPinRequest$Type();
|
|
|
4484
4436
|
class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinResponse> {
|
|
4485
4437
|
constructor() {
|
|
4486
4438
|
super("services.documents.ToggleDocumentPinResponse", [
|
|
4487
|
-
{ no: 1, name: "
|
|
4439
|
+
{ no: 1, name: "pin", kind: "message", T: () => DocumentPin, options: { "tagger.tags": "alias:\"pin\"" } }
|
|
4488
4440
|
]);
|
|
4489
4441
|
}
|
|
4490
4442
|
create(value?: PartialMessage<ToggleDocumentPinResponse>): ToggleDocumentPinResponse {
|
|
4491
4443
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4492
|
-
message.state = false;
|
|
4493
4444
|
if (value !== undefined)
|
|
4494
4445
|
reflectionMergePartial<ToggleDocumentPinResponse>(this, message, value);
|
|
4495
4446
|
return message;
|
|
@@ -4499,8 +4450,8 @@ class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinRespon
|
|
|
4499
4450
|
while (reader.pos < end) {
|
|
4500
4451
|
let [fieldNo, wireType] = reader.tag();
|
|
4501
4452
|
switch (fieldNo) {
|
|
4502
|
-
case /*
|
|
4503
|
-
message.
|
|
4453
|
+
case /* optional resources.documents.pins.DocumentPin pin */ 1:
|
|
4454
|
+
message.pin = DocumentPin.internalBinaryRead(reader, reader.uint32(), options, message.pin);
|
|
4504
4455
|
break;
|
|
4505
4456
|
default:
|
|
4506
4457
|
let u = options.readUnknownField;
|
|
@@ -4514,9 +4465,9 @@ class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinRespon
|
|
|
4514
4465
|
return message;
|
|
4515
4466
|
}
|
|
4516
4467
|
internalBinaryWrite(message: ToggleDocumentPinResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4517
|
-
/*
|
|
4518
|
-
if (message.
|
|
4519
|
-
writer.tag(1, WireType.
|
|
4468
|
+
/* optional resources.documents.pins.DocumentPin pin = 1; */
|
|
4469
|
+
if (message.pin)
|
|
4470
|
+
DocumentPin.internalBinaryWrite(message.pin, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4520
4471
|
let u = options.writeUnknownFields;
|
|
4521
4472
|
if (u !== false)
|
|
4522
4473
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4531,14 +4482,16 @@ export const ToggleDocumentPinResponse = new ToggleDocumentPinResponse$Type();
|
|
|
4531
4482
|
class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderRequest> {
|
|
4532
4483
|
constructor() {
|
|
4533
4484
|
super("services.documents.SetDocumentReminderRequest", [
|
|
4534
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
4485
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
4535
4486
|
{ no: 2, name: "reminder_time", kind: "message", T: () => Timestamp },
|
|
4536
|
-
{ no: 3, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
4487
|
+
{ no: 3, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxBytes: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
4488
|
+
{ no: 4, name: "max_reminder_count", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { lte: 10, gte: 1 } } } }
|
|
4537
4489
|
]);
|
|
4538
4490
|
}
|
|
4539
4491
|
create(value?: PartialMessage<SetDocumentReminderRequest>): SetDocumentReminderRequest {
|
|
4540
4492
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4541
4493
|
message.documentId = 0;
|
|
4494
|
+
message.maxReminderCount = 0;
|
|
4542
4495
|
if (value !== undefined)
|
|
4543
4496
|
reflectionMergePartial<SetDocumentReminderRequest>(this, message, value);
|
|
4544
4497
|
return message;
|
|
@@ -4548,8 +4501,8 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4548
4501
|
while (reader.pos < end) {
|
|
4549
4502
|
let [fieldNo, wireType] = reader.tag();
|
|
4550
4503
|
switch (fieldNo) {
|
|
4551
|
-
case /*
|
|
4552
|
-
message.documentId = reader.
|
|
4504
|
+
case /* int64 document_id */ 1:
|
|
4505
|
+
message.documentId = reader.int64().toNumber();
|
|
4553
4506
|
break;
|
|
4554
4507
|
case /* optional resources.timestamp.Timestamp reminder_time */ 2:
|
|
4555
4508
|
message.reminderTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.reminderTime);
|
|
@@ -4557,6 +4510,9 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4557
4510
|
case /* optional string message */ 3:
|
|
4558
4511
|
message.message = reader.string();
|
|
4559
4512
|
break;
|
|
4513
|
+
case /* int32 max_reminder_count */ 4:
|
|
4514
|
+
message.maxReminderCount = reader.int32();
|
|
4515
|
+
break;
|
|
4560
4516
|
default:
|
|
4561
4517
|
let u = options.readUnknownField;
|
|
4562
4518
|
if (u === "throw")
|
|
@@ -4569,15 +4525,18 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4569
4525
|
return message;
|
|
4570
4526
|
}
|
|
4571
4527
|
internalBinaryWrite(message: SetDocumentReminderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4572
|
-
/*
|
|
4528
|
+
/* int64 document_id = 1; */
|
|
4573
4529
|
if (message.documentId !== 0)
|
|
4574
|
-
writer.tag(1, WireType.Varint).
|
|
4530
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
4575
4531
|
/* optional resources.timestamp.Timestamp reminder_time = 2; */
|
|
4576
4532
|
if (message.reminderTime)
|
|
4577
4533
|
Timestamp.internalBinaryWrite(message.reminderTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4578
4534
|
/* optional string message = 3; */
|
|
4579
4535
|
if (message.message !== undefined)
|
|
4580
4536
|
writer.tag(3, WireType.LengthDelimited).string(message.message);
|
|
4537
|
+
/* int32 max_reminder_count = 4; */
|
|
4538
|
+
if (message.maxReminderCount !== 0)
|
|
4539
|
+
writer.tag(4, WireType.Varint).int32(message.maxReminderCount);
|
|
4581
4540
|
let u = options.writeUnknownFields;
|
|
4582
4541
|
if (u !== false)
|
|
4583
4542
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4630,40 +4589,41 @@ export const SetDocumentReminderResponse = new SetDocumentReminderResponse$Type(
|
|
|
4630
4589
|
* @generated ServiceType for protobuf service services.documents.DocumentsService
|
|
4631
4590
|
*/
|
|
4632
4591
|
export const DocumentsService = new ServiceType("services.documents.DocumentsService", [
|
|
4633
|
-
{ name: "ListTemplates", options: {}, I: ListTemplatesRequest, O: ListTemplatesResponse },
|
|
4634
|
-
{ name: "GetTemplate", options: {}, I: GetTemplateRequest, O: GetTemplateResponse },
|
|
4635
|
-
{ name: "CreateTemplate", options: {}, I: CreateTemplateRequest, O: CreateTemplateResponse },
|
|
4636
|
-
{ name: "UpdateTemplate", options: {}, I: UpdateTemplateRequest, O: UpdateTemplateResponse },
|
|
4637
|
-
{ name: "DeleteTemplate", options: {}, I: DeleteTemplateRequest, O: DeleteTemplateResponse },
|
|
4638
|
-
{ name: "ListDocuments", options: {}, I: ListDocumentsRequest, O: ListDocumentsResponse },
|
|
4639
|
-
{ name: "GetDocument", options: {}, I: GetDocumentRequest, O: GetDocumentResponse },
|
|
4640
|
-
{ name: "CreateDocument", options: {}, I: CreateDocumentRequest, O: CreateDocumentResponse },
|
|
4641
|
-
{ name: "UpdateDocument", options: {}, I: UpdateDocumentRequest, O: UpdateDocumentResponse },
|
|
4642
|
-
{ name: "DeleteDocument", options: {}, I: DeleteDocumentRequest, O: DeleteDocumentResponse },
|
|
4643
|
-
{ name: "ToggleDocument", options: {}, I: ToggleDocumentRequest, O: ToggleDocumentResponse },
|
|
4644
|
-
{ name: "ChangeDocumentOwner", options: {}, I: ChangeDocumentOwnerRequest, O: ChangeDocumentOwnerResponse },
|
|
4645
|
-
{ name: "GetDocumentReferences", options: {}, I: GetDocumentReferencesRequest, O: GetDocumentReferencesResponse },
|
|
4646
|
-
{ name: "GetDocumentRelations", options: {}, I: GetDocumentRelationsRequest, O: GetDocumentRelationsResponse },
|
|
4647
|
-
{ name: "AddDocumentReference", options: {}, I: AddDocumentReferenceRequest, O: AddDocumentReferenceResponse },
|
|
4648
|
-
{ name: "RemoveDocumentReference", options: {}, I: RemoveDocumentReferenceRequest, O: RemoveDocumentReferenceResponse },
|
|
4649
|
-
{ name: "AddDocumentRelation", options: {}, I: AddDocumentRelationRequest, O: AddDocumentRelationResponse },
|
|
4650
|
-
{ name: "RemoveDocumentRelation", options: {}, I: RemoveDocumentRelationRequest, O: RemoveDocumentRelationResponse },
|
|
4651
|
-
{ name: "GetComments", options: {}, I: GetCommentsRequest, O: GetCommentsResponse },
|
|
4652
|
-
{ name: "PostComment", options: {}, I: PostCommentRequest, O: PostCommentResponse },
|
|
4653
|
-
{ name: "EditComment", options: {}, I: EditCommentRequest, O: EditCommentResponse },
|
|
4654
|
-
{ name: "DeleteComment", options: {}, I: DeleteCommentRequest, O: DeleteCommentResponse },
|
|
4655
|
-
{ name: "GetDocumentAccess", options: {}, I: GetDocumentAccessRequest, O: GetDocumentAccessResponse },
|
|
4656
|
-
{ name: "SetDocumentAccess", options: {}, I: SetDocumentAccessRequest, O: SetDocumentAccessResponse },
|
|
4657
|
-
{ name: "ListDocumentActivity", options: {}, I: ListDocumentActivityRequest, O: ListDocumentActivityResponse },
|
|
4658
|
-
{ name: "ListDocumentReqs", options: {}, I: ListDocumentReqsRequest, O: ListDocumentReqsResponse },
|
|
4659
|
-
{ name: "CreateDocumentReq", options: {}, I: CreateDocumentReqRequest, O: CreateDocumentReqResponse },
|
|
4660
|
-
{ name: "UpdateDocumentReq", options: {}, I: UpdateDocumentReqRequest, O: UpdateDocumentReqResponse },
|
|
4661
|
-
{ name: "DeleteDocumentReq", options: {}, I: DeleteDocumentReqRequest, O: DeleteDocumentReqResponse },
|
|
4662
|
-
{ name: "ListUserDocuments", options: {}, I: ListUserDocumentsRequest, O: ListUserDocumentsResponse },
|
|
4663
|
-
{ name: "ListCategories", options: {}, I: ListCategoriesRequest, O: ListCategoriesResponse },
|
|
4664
|
-
{ name: "CreateOrUpdateCategory", options: {}, I: CreateOrUpdateCategoryRequest, O: CreateOrUpdateCategoryResponse },
|
|
4665
|
-
{ name: "DeleteCategory", options: {}, I: DeleteCategoryRequest, O: DeleteCategoryResponse },
|
|
4666
|
-
{ name: "ListDocumentPins", options: {}, I: ListDocumentPinsRequest, O: ListDocumentPinsResponse },
|
|
4667
|
-
{ name: "ToggleDocumentPin", options: {}, I: ToggleDocumentPinRequest, O: ToggleDocumentPinResponse },
|
|
4668
|
-
{ name: "SetDocumentReminder", options: {}, I: SetDocumentReminderRequest, O: SetDocumentReminderResponse }
|
|
4669
|
-
|
|
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
|
+
{ name: "ListDocuments", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentsRequest, O: ListDocumentsResponse },
|
|
4598
|
+
{ name: "GetDocument", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentRequest, O: GetDocumentResponse },
|
|
4599
|
+
{ name: "CreateDocument", options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: CreateDocumentRequest, O: CreateDocumentResponse },
|
|
4600
|
+
{ name: "UpdateDocument", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "Lower_Rank", "Same_Rank", "Any"] }] } }, I: UpdateDocumentRequest, O: UpdateDocumentResponse },
|
|
4601
|
+
{ name: "DeleteDocument", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "Lower_Rank", "Same_Rank", "Any"] }] } }, I: DeleteDocumentRequest, O: DeleteDocumentResponse },
|
|
4602
|
+
{ name: "ToggleDocument", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "Lower_Rank", "Same_Rank", "Any"] }] } }, I: ToggleDocumentRequest, O: ToggleDocumentResponse },
|
|
4603
|
+
{ name: "ChangeDocumentOwner", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Access", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Own", "Lower_Rank", "Same_Rank", "Any"] }] } }, I: ChangeDocumentOwnerRequest, O: ChangeDocumentOwnerResponse },
|
|
4604
|
+
{ name: "GetDocumentReferences", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentReferencesRequest, O: GetDocumentReferencesResponse },
|
|
4605
|
+
{ name: "GetDocumentRelations", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentRelationsRequest, O: GetDocumentRelationsResponse },
|
|
4606
|
+
{ name: "AddDocumentReference", options: { "codegen.perms.perms": { enabled: true } }, I: AddDocumentReferenceRequest, O: AddDocumentReferenceResponse },
|
|
4607
|
+
{ name: "RemoveDocumentReference", options: { "codegen.perms.perms": { enabled: true, name: "AddDocumentReference" } }, I: RemoveDocumentReferenceRequest, O: RemoveDocumentReferenceResponse },
|
|
4608
|
+
{ name: "AddDocumentRelation", options: { "codegen.perms.perms": { enabled: true } }, I: AddDocumentRelationRequest, O: AddDocumentRelationResponse },
|
|
4609
|
+
{ 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
|
+
{ name: "GetDocumentAccess", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentAccessRequest, O: GetDocumentAccessResponse },
|
|
4615
|
+
{ name: "SetDocumentAccess", options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: SetDocumentAccessRequest, O: SetDocumentAccessResponse },
|
|
4616
|
+
{ name: "ListDocumentActivity", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentActivityRequest, O: ListDocumentActivityResponse },
|
|
4617
|
+
{ name: "ListDocumentReqs", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentReqsRequest, O: ListDocumentReqsResponse },
|
|
4618
|
+
{ name: "CreateDocumentReq", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Types", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["Access", "Closure", "Update", "Deletion", "OwnerChange"] }] } }, I: CreateDocumentReqRequest, O: CreateDocumentReqResponse },
|
|
4619
|
+
{ name: "UpdateDocumentReq", options: { "codegen.perms.perms": { enabled: true, name: "CreateDocumentReq" } }, I: UpdateDocumentReqRequest, O: UpdateDocumentReqResponse },
|
|
4620
|
+
{ name: "DeleteDocumentReq", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDocumentReqRequest, O: DeleteDocumentReqResponse },
|
|
4621
|
+
{ 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
|
+
{ name: "ListDocumentPins", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: ListDocumentPinsRequest, O: ListDocumentPinsResponse },
|
|
4626
|
+
{ name: "ToggleDocumentPin", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Types", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["JobWide"] }] } }, I: ToggleDocumentPinRequest, O: ToggleDocumentPinResponse },
|
|
4627
|
+
{ name: "SetDocumentReminder", options: { "codegen.perms.perms": { enabled: true } }, I: SetDocumentReminderRequest, O: SetDocumentReminderResponse },
|
|
4628
|
+
{ name: "UploadFile", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: UploadFileRequest, O: UploadFileResponse }
|
|
4629
|
+
], { "codegen.perms.perms_svc": { order: 50, icon: "i-mdi-file-document-box-multiple-outline" } });
|