@fivenet-app/gen 2025.5.2 → 2025.9.1
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/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -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 +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- 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/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- 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/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- 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 +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- 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 +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- 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 +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- 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/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,14 +14,16 @@ 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";
|
|
17
|
+
import { DocumentPin } from "../../resources/documents/pins";
|
|
14
18
|
import { Category } from "../../resources/documents/category";
|
|
15
19
|
import { DocRelation } from "../../resources/documents/documents";
|
|
16
20
|
import { DocActivityData } from "../../resources/documents/activity";
|
|
17
21
|
import { DocRequest } from "../../resources/documents/requests";
|
|
18
22
|
import { DocActivity } from "../../resources/documents/activity";
|
|
19
23
|
import { DocActivityType } from "../../resources/documents/activity";
|
|
20
|
-
import {
|
|
24
|
+
import { File } from "../../resources/file/file";
|
|
21
25
|
import { Content } from "../../resources/common/content/content";
|
|
26
|
+
import { ContentType } from "../../resources/common/content/content";
|
|
22
27
|
import { Comment } from "../../resources/documents/comment";
|
|
23
28
|
import { DocumentRelation } from "../../resources/documents/documents";
|
|
24
29
|
import { DocumentReference } from "../../resources/documents/documents";
|
|
@@ -44,7 +49,7 @@ export interface ListTemplatesRequest {
|
|
|
44
49
|
*/
|
|
45
50
|
export interface ListTemplatesResponse {
|
|
46
51
|
/**
|
|
47
|
-
* @generated from protobuf field: repeated resources.documents.TemplateShort templates = 1
|
|
52
|
+
* @generated from protobuf field: repeated resources.documents.TemplateShort templates = 1
|
|
48
53
|
*/
|
|
49
54
|
templates: TemplateShort[];
|
|
50
55
|
}
|
|
@@ -53,15 +58,15 @@ export interface ListTemplatesResponse {
|
|
|
53
58
|
*/
|
|
54
59
|
export interface GetTemplateRequest {
|
|
55
60
|
/**
|
|
56
|
-
* @generated from protobuf field:
|
|
61
|
+
* @generated from protobuf field: int64 template_id = 1
|
|
57
62
|
*/
|
|
58
63
|
templateId: number;
|
|
59
64
|
/**
|
|
60
|
-
* @generated from protobuf field: optional resources.documents.TemplateData data = 2
|
|
65
|
+
* @generated from protobuf field: optional resources.documents.TemplateData data = 2
|
|
61
66
|
*/
|
|
62
67
|
data?: TemplateData;
|
|
63
68
|
/**
|
|
64
|
-
* @generated from protobuf field: optional bool render = 3
|
|
69
|
+
* @generated from protobuf field: optional bool render = 3
|
|
65
70
|
*/
|
|
66
71
|
render?: boolean;
|
|
67
72
|
}
|
|
@@ -70,11 +75,11 @@ export interface GetTemplateRequest {
|
|
|
70
75
|
*/
|
|
71
76
|
export interface GetTemplateResponse {
|
|
72
77
|
/**
|
|
73
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
78
|
+
* @generated from protobuf field: resources.documents.Template template = 1
|
|
74
79
|
*/
|
|
75
80
|
template?: Template;
|
|
76
81
|
/**
|
|
77
|
-
* @generated from protobuf field: bool rendered = 2
|
|
82
|
+
* @generated from protobuf field: bool rendered = 2
|
|
78
83
|
*/
|
|
79
84
|
rendered: boolean;
|
|
80
85
|
}
|
|
@@ -83,7 +88,7 @@ export interface GetTemplateResponse {
|
|
|
83
88
|
*/
|
|
84
89
|
export interface CreateTemplateRequest {
|
|
85
90
|
/**
|
|
86
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
91
|
+
* @generated from protobuf field: resources.documents.Template template = 1
|
|
87
92
|
*/
|
|
88
93
|
template?: Template;
|
|
89
94
|
}
|
|
@@ -92,7 +97,7 @@ export interface CreateTemplateRequest {
|
|
|
92
97
|
*/
|
|
93
98
|
export interface CreateTemplateResponse {
|
|
94
99
|
/**
|
|
95
|
-
* @generated from protobuf field:
|
|
100
|
+
* @generated from protobuf field: int64 id = 1
|
|
96
101
|
*/
|
|
97
102
|
id: number;
|
|
98
103
|
}
|
|
@@ -101,7 +106,7 @@ export interface CreateTemplateResponse {
|
|
|
101
106
|
*/
|
|
102
107
|
export interface UpdateTemplateRequest {
|
|
103
108
|
/**
|
|
104
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
109
|
+
* @generated from protobuf field: resources.documents.Template template = 1
|
|
105
110
|
*/
|
|
106
111
|
template?: Template;
|
|
107
112
|
}
|
|
@@ -110,7 +115,7 @@ export interface UpdateTemplateRequest {
|
|
|
110
115
|
*/
|
|
111
116
|
export interface UpdateTemplateResponse {
|
|
112
117
|
/**
|
|
113
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
118
|
+
* @generated from protobuf field: resources.documents.Template template = 1
|
|
114
119
|
*/
|
|
115
120
|
template?: Template;
|
|
116
121
|
}
|
|
@@ -119,7 +124,7 @@ export interface UpdateTemplateResponse {
|
|
|
119
124
|
*/
|
|
120
125
|
export interface DeleteTemplateRequest {
|
|
121
126
|
/**
|
|
122
|
-
* @generated from protobuf field:
|
|
127
|
+
* @generated from protobuf field: int64 id = 1
|
|
123
128
|
*/
|
|
124
129
|
id: number;
|
|
125
130
|
}
|
|
@@ -135,54 +140,63 @@ export interface DeleteTemplateResponse {
|
|
|
135
140
|
*/
|
|
136
141
|
export interface ListDocumentsRequest {
|
|
137
142
|
/**
|
|
138
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
143
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
139
144
|
*/
|
|
140
145
|
pagination?: PaginationRequest;
|
|
141
146
|
/**
|
|
142
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
147
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
143
148
|
*/
|
|
144
149
|
sort?: Sort;
|
|
145
150
|
/**
|
|
146
151
|
* Search params
|
|
147
152
|
*
|
|
148
|
-
* @generated from protobuf field: optional string search = 3
|
|
153
|
+
* @generated from protobuf field: optional string search = 3
|
|
149
154
|
*/
|
|
150
155
|
search?: string;
|
|
151
156
|
/**
|
|
152
|
-
* @generated from protobuf field: repeated
|
|
157
|
+
* @generated from protobuf field: repeated int64 category_ids = 4
|
|
153
158
|
*/
|
|
154
159
|
categoryIds: number[];
|
|
155
160
|
/**
|
|
156
|
-
* @generated from protobuf field: repeated int32 creator_ids = 5
|
|
161
|
+
* @generated from protobuf field: repeated int32 creator_ids = 5
|
|
157
162
|
*/
|
|
158
163
|
creatorIds: number[];
|
|
159
164
|
/**
|
|
160
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp from = 6
|
|
165
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp from = 6
|
|
161
166
|
*/
|
|
162
167
|
from?: Timestamp;
|
|
163
168
|
/**
|
|
164
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp to = 7
|
|
169
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp to = 7
|
|
165
170
|
*/
|
|
166
171
|
to?: Timestamp;
|
|
167
172
|
/**
|
|
168
|
-
* @generated from protobuf field: optional bool closed = 8
|
|
173
|
+
* @generated from protobuf field: optional bool closed = 8
|
|
169
174
|
*/
|
|
170
175
|
closed?: boolean;
|
|
171
176
|
/**
|
|
172
|
-
* @generated from protobuf field: repeated
|
|
177
|
+
* @generated from protobuf field: repeated int64 document_ids = 9
|
|
173
178
|
*/
|
|
174
179
|
documentIds: number[];
|
|
180
|
+
/**
|
|
181
|
+
* Controls inclusion of drafts in the result:
|
|
182
|
+
* - unset/null: include all documents (drafts and non-drafts)
|
|
183
|
+
* - false: only non-draft documents
|
|
184
|
+
* - true: only draft documents
|
|
185
|
+
*
|
|
186
|
+
* @generated from protobuf field: optional bool only_drafts = 10
|
|
187
|
+
*/
|
|
188
|
+
onlyDrafts?: boolean;
|
|
175
189
|
}
|
|
176
190
|
/**
|
|
177
191
|
* @generated from protobuf message services.documents.ListDocumentsResponse
|
|
178
192
|
*/
|
|
179
193
|
export interface ListDocumentsResponse {
|
|
180
194
|
/**
|
|
181
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
195
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
182
196
|
*/
|
|
183
197
|
pagination?: PaginationResponse;
|
|
184
198
|
/**
|
|
185
|
-
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
199
|
+
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
186
200
|
*/
|
|
187
201
|
documents: DocumentShort[];
|
|
188
202
|
}
|
|
@@ -191,11 +205,11 @@ export interface ListDocumentsResponse {
|
|
|
191
205
|
*/
|
|
192
206
|
export interface GetDocumentRequest {
|
|
193
207
|
/**
|
|
194
|
-
* @generated from protobuf field:
|
|
208
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
195
209
|
*/
|
|
196
210
|
documentId: number;
|
|
197
211
|
/**
|
|
198
|
-
* @generated from protobuf field: optional bool info_only = 2
|
|
212
|
+
* @generated from protobuf field: optional bool info_only = 2
|
|
199
213
|
*/
|
|
200
214
|
infoOnly?: boolean;
|
|
201
215
|
}
|
|
@@ -204,11 +218,11 @@ export interface GetDocumentRequest {
|
|
|
204
218
|
*/
|
|
205
219
|
export interface GetDocumentResponse {
|
|
206
220
|
/**
|
|
207
|
-
* @generated from protobuf field: resources.documents.Document document = 1
|
|
221
|
+
* @generated from protobuf field: resources.documents.Document document = 1
|
|
208
222
|
*/
|
|
209
223
|
document?: Document;
|
|
210
224
|
/**
|
|
211
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
225
|
+
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
212
226
|
*/
|
|
213
227
|
access?: DocumentAccess;
|
|
214
228
|
}
|
|
@@ -217,7 +231,7 @@ export interface GetDocumentResponse {
|
|
|
217
231
|
*/
|
|
218
232
|
export interface GetDocumentReferencesRequest {
|
|
219
233
|
/**
|
|
220
|
-
* @generated from protobuf field:
|
|
234
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
221
235
|
*/
|
|
222
236
|
documentId: number;
|
|
223
237
|
}
|
|
@@ -226,16 +240,16 @@ export interface GetDocumentReferencesRequest {
|
|
|
226
240
|
*/
|
|
227
241
|
export interface GetDocumentReferencesResponse {
|
|
228
242
|
/**
|
|
229
|
-
* @generated from protobuf field: repeated resources.documents.DocumentReference references = 1
|
|
243
|
+
* @generated from protobuf field: repeated resources.documents.DocumentReference references = 1
|
|
230
244
|
*/
|
|
231
|
-
references: DocumentReference[];
|
|
245
|
+
references: DocumentReference[];
|
|
232
246
|
}
|
|
233
247
|
/**
|
|
234
248
|
* @generated from protobuf message services.documents.GetDocumentRelationsRequest
|
|
235
249
|
*/
|
|
236
250
|
export interface GetDocumentRelationsRequest {
|
|
237
251
|
/**
|
|
238
|
-
* @generated from protobuf field:
|
|
252
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
239
253
|
*/
|
|
240
254
|
documentId: number;
|
|
241
255
|
}
|
|
@@ -244,16 +258,16 @@ export interface GetDocumentRelationsRequest {
|
|
|
244
258
|
*/
|
|
245
259
|
export interface GetDocumentRelationsResponse {
|
|
246
260
|
/**
|
|
247
|
-
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 1
|
|
261
|
+
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 1
|
|
248
262
|
*/
|
|
249
|
-
relations: DocumentRelation[];
|
|
263
|
+
relations: DocumentRelation[];
|
|
250
264
|
}
|
|
251
265
|
/**
|
|
252
266
|
* @generated from protobuf message services.documents.AddDocumentReferenceRequest
|
|
253
267
|
*/
|
|
254
268
|
export interface AddDocumentReferenceRequest {
|
|
255
269
|
/**
|
|
256
|
-
* @generated from protobuf field: resources.documents.DocumentReference reference = 1
|
|
270
|
+
* @generated from protobuf field: resources.documents.DocumentReference reference = 1
|
|
257
271
|
*/
|
|
258
272
|
reference?: DocumentReference;
|
|
259
273
|
}
|
|
@@ -262,7 +276,7 @@ export interface AddDocumentReferenceRequest {
|
|
|
262
276
|
*/
|
|
263
277
|
export interface AddDocumentReferenceResponse {
|
|
264
278
|
/**
|
|
265
|
-
* @generated from protobuf field:
|
|
279
|
+
* @generated from protobuf field: int64 id = 1
|
|
266
280
|
*/
|
|
267
281
|
id: number;
|
|
268
282
|
}
|
|
@@ -271,7 +285,7 @@ export interface AddDocumentReferenceResponse {
|
|
|
271
285
|
*/
|
|
272
286
|
export interface RemoveDocumentReferenceRequest {
|
|
273
287
|
/**
|
|
274
|
-
* @generated from protobuf field:
|
|
288
|
+
* @generated from protobuf field: int64 id = 1
|
|
275
289
|
*/
|
|
276
290
|
id: number;
|
|
277
291
|
}
|
|
@@ -285,7 +299,7 @@ export interface RemoveDocumentReferenceResponse {
|
|
|
285
299
|
*/
|
|
286
300
|
export interface AddDocumentRelationRequest {
|
|
287
301
|
/**
|
|
288
|
-
* @generated from protobuf field: resources.documents.DocumentRelation relation = 1
|
|
302
|
+
* @generated from protobuf field: resources.documents.DocumentRelation relation = 1
|
|
289
303
|
*/
|
|
290
304
|
relation?: DocumentRelation;
|
|
291
305
|
}
|
|
@@ -294,7 +308,7 @@ export interface AddDocumentRelationRequest {
|
|
|
294
308
|
*/
|
|
295
309
|
export interface AddDocumentRelationResponse {
|
|
296
310
|
/**
|
|
297
|
-
* @generated from protobuf field:
|
|
311
|
+
* @generated from protobuf field: int64 id = 1
|
|
298
312
|
*/
|
|
299
313
|
id: number;
|
|
300
314
|
}
|
|
@@ -303,7 +317,7 @@ export interface AddDocumentRelationResponse {
|
|
|
303
317
|
*/
|
|
304
318
|
export interface RemoveDocumentRelationRequest {
|
|
305
319
|
/**
|
|
306
|
-
* @generated from protobuf field:
|
|
320
|
+
* @generated from protobuf field: int64 id = 1
|
|
307
321
|
*/
|
|
308
322
|
id: number;
|
|
309
323
|
}
|
|
@@ -319,11 +333,11 @@ export interface RemoveDocumentRelationResponse {
|
|
|
319
333
|
*/
|
|
320
334
|
export interface GetCommentsRequest {
|
|
321
335
|
/**
|
|
322
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
336
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
323
337
|
*/
|
|
324
338
|
pagination?: PaginationRequest;
|
|
325
339
|
/**
|
|
326
|
-
* @generated from protobuf field:
|
|
340
|
+
* @generated from protobuf field: int64 document_id = 2
|
|
327
341
|
*/
|
|
328
342
|
documentId: number;
|
|
329
343
|
}
|
|
@@ -332,11 +346,11 @@ export interface GetCommentsRequest {
|
|
|
332
346
|
*/
|
|
333
347
|
export interface GetCommentsResponse {
|
|
334
348
|
/**
|
|
335
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
349
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
336
350
|
*/
|
|
337
351
|
pagination?: PaginationResponse;
|
|
338
352
|
/**
|
|
339
|
-
* @generated from protobuf field: repeated resources.documents.Comment comments = 2
|
|
353
|
+
* @generated from protobuf field: repeated resources.documents.Comment comments = 2
|
|
340
354
|
*/
|
|
341
355
|
comments: Comment[];
|
|
342
356
|
}
|
|
@@ -345,7 +359,7 @@ export interface GetCommentsResponse {
|
|
|
345
359
|
*/
|
|
346
360
|
export interface PostCommentRequest {
|
|
347
361
|
/**
|
|
348
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
362
|
+
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
349
363
|
*/
|
|
350
364
|
comment?: Comment;
|
|
351
365
|
}
|
|
@@ -354,7 +368,7 @@ export interface PostCommentRequest {
|
|
|
354
368
|
*/
|
|
355
369
|
export interface PostCommentResponse {
|
|
356
370
|
/**
|
|
357
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
371
|
+
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
358
372
|
*/
|
|
359
373
|
comment?: Comment;
|
|
360
374
|
}
|
|
@@ -363,7 +377,7 @@ export interface PostCommentResponse {
|
|
|
363
377
|
*/
|
|
364
378
|
export interface EditCommentRequest {
|
|
365
379
|
/**
|
|
366
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
380
|
+
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
367
381
|
*/
|
|
368
382
|
comment?: Comment;
|
|
369
383
|
}
|
|
@@ -372,7 +386,7 @@ export interface EditCommentRequest {
|
|
|
372
386
|
*/
|
|
373
387
|
export interface EditCommentResponse {
|
|
374
388
|
/**
|
|
375
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
389
|
+
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
376
390
|
*/
|
|
377
391
|
comment?: Comment;
|
|
378
392
|
}
|
|
@@ -381,7 +395,7 @@ export interface EditCommentResponse {
|
|
|
381
395
|
*/
|
|
382
396
|
export interface DeleteCommentRequest {
|
|
383
397
|
/**
|
|
384
|
-
* @generated from protobuf field:
|
|
398
|
+
* @generated from protobuf field: int64 comment_id = 1
|
|
385
399
|
*/
|
|
386
400
|
commentId: number;
|
|
387
401
|
}
|
|
@@ -395,22 +409,20 @@ export interface DeleteCommentResponse {
|
|
|
395
409
|
*/
|
|
396
410
|
export interface UpdateDocumentResponse {
|
|
397
411
|
/**
|
|
398
|
-
* @generated from protobuf field:
|
|
412
|
+
* @generated from protobuf field: resources.documents.Document document = 1
|
|
399
413
|
*/
|
|
400
|
-
|
|
414
|
+
document?: Document;
|
|
401
415
|
}
|
|
402
416
|
/**
|
|
403
417
|
* @generated from protobuf message services.documents.DeleteDocumentRequest
|
|
404
418
|
*/
|
|
405
419
|
export interface DeleteDocumentRequest {
|
|
406
420
|
/**
|
|
407
|
-
* @generated from protobuf field:
|
|
421
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
408
422
|
*/
|
|
409
|
-
documentId: number;
|
|
423
|
+
documentId: number;
|
|
410
424
|
/**
|
|
411
|
-
* @
|
|
412
|
-
*
|
|
413
|
-
* @generated from protobuf field: optional string reason = 2;
|
|
425
|
+
* @generated from protobuf field: optional string reason = 2
|
|
414
426
|
*/
|
|
415
427
|
reason?: string;
|
|
416
428
|
}
|
|
@@ -424,11 +436,11 @@ export interface DeleteDocumentResponse {
|
|
|
424
436
|
*/
|
|
425
437
|
export interface ToggleDocumentRequest {
|
|
426
438
|
/**
|
|
427
|
-
* @generated from protobuf field:
|
|
439
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
428
440
|
*/
|
|
429
441
|
documentId: number;
|
|
430
442
|
/**
|
|
431
|
-
* @generated from protobuf field: bool closed = 2
|
|
443
|
+
* @generated from protobuf field: bool closed = 2
|
|
432
444
|
*/
|
|
433
445
|
closed: boolean;
|
|
434
446
|
}
|
|
@@ -442,11 +454,11 @@ export interface ToggleDocumentResponse {
|
|
|
442
454
|
*/
|
|
443
455
|
export interface ChangeDocumentOwnerRequest {
|
|
444
456
|
/**
|
|
445
|
-
* @generated from protobuf field:
|
|
457
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
446
458
|
*/
|
|
447
459
|
documentId: number;
|
|
448
460
|
/**
|
|
449
|
-
* @generated from protobuf field: optional int32 new_user_id = 2
|
|
461
|
+
* @generated from protobuf field: optional int32 new_user_id = 2
|
|
450
462
|
*/
|
|
451
463
|
newUserId?: number;
|
|
452
464
|
}
|
|
@@ -460,111 +472,79 @@ export interface ChangeDocumentOwnerResponse {
|
|
|
460
472
|
*/
|
|
461
473
|
export interface CreateDocumentRequest {
|
|
462
474
|
/**
|
|
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;
|
|
475
|
+
* @generated from protobuf field: resources.common.content.ContentType content_type = 1
|
|
494
476
|
*/
|
|
495
|
-
|
|
477
|
+
contentType: ContentType;
|
|
496
478
|
/**
|
|
497
|
-
* @generated from protobuf field:
|
|
479
|
+
* @generated from protobuf field: optional int64 template_id = 2
|
|
498
480
|
*/
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* @generated from protobuf field: optional resources.documents.DocumentAccess access = 9;
|
|
502
|
-
*/
|
|
503
|
-
access?: DocumentAccess;
|
|
481
|
+
templateId?: number;
|
|
504
482
|
/**
|
|
505
|
-
* @generated from protobuf field: optional
|
|
483
|
+
* @generated from protobuf field: optional resources.documents.TemplateData template_data = 3
|
|
506
484
|
*/
|
|
507
|
-
|
|
485
|
+
templateData?: TemplateData;
|
|
508
486
|
}
|
|
509
487
|
/**
|
|
510
488
|
* @generated from protobuf message services.documents.CreateDocumentResponse
|
|
511
489
|
*/
|
|
512
490
|
export interface CreateDocumentResponse {
|
|
513
491
|
/**
|
|
514
|
-
* @generated from protobuf field:
|
|
492
|
+
* @generated from protobuf field: int64 id = 1
|
|
515
493
|
*/
|
|
516
|
-
|
|
494
|
+
id: number;
|
|
517
495
|
}
|
|
518
496
|
/**
|
|
519
497
|
* @generated from protobuf message services.documents.UpdateDocumentRequest
|
|
520
498
|
*/
|
|
521
499
|
export interface UpdateDocumentRequest {
|
|
522
500
|
/**
|
|
523
|
-
* @generated from protobuf field:
|
|
501
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
524
502
|
*/
|
|
525
|
-
documentId: number;
|
|
503
|
+
documentId: number;
|
|
526
504
|
/**
|
|
527
|
-
* @generated from protobuf field: optional
|
|
505
|
+
* @generated from protobuf field: optional int64 category_id = 2
|
|
528
506
|
*/
|
|
529
|
-
categoryId?: number;
|
|
507
|
+
categoryId?: number;
|
|
530
508
|
/**
|
|
531
|
-
* @
|
|
532
|
-
*
|
|
533
|
-
* @generated from protobuf field: string title = 3;
|
|
509
|
+
* @generated from protobuf field: string title = 3
|
|
534
510
|
*/
|
|
535
|
-
title: string;
|
|
511
|
+
title: string;
|
|
536
512
|
/**
|
|
537
|
-
* @
|
|
538
|
-
*
|
|
539
|
-
* @generated from protobuf field: resources.common.content.Content content = 4;
|
|
513
|
+
* @generated from protobuf field: resources.common.content.Content content = 4
|
|
540
514
|
*/
|
|
541
515
|
content?: Content;
|
|
542
516
|
/**
|
|
543
|
-
* @generated from protobuf field: resources.common.content.ContentType content_type = 5
|
|
517
|
+
* @generated from protobuf field: resources.common.content.ContentType content_type = 5
|
|
544
518
|
*/
|
|
545
|
-
contentType: ContentType;
|
|
519
|
+
contentType: ContentType;
|
|
546
520
|
/**
|
|
547
|
-
* @generated from protobuf field: optional string data = 6
|
|
521
|
+
* @generated from protobuf field: optional string data = 6
|
|
548
522
|
*/
|
|
549
|
-
data?: string;
|
|
523
|
+
data?: string;
|
|
550
524
|
/**
|
|
551
|
-
* @
|
|
552
|
-
*
|
|
553
|
-
* @generated from protobuf field: string state = 7;
|
|
525
|
+
* @generated from protobuf field: string state = 7
|
|
554
526
|
*/
|
|
555
|
-
state: string;
|
|
527
|
+
state: string;
|
|
528
|
+
/**
|
|
529
|
+
* @generated from protobuf field: bool closed = 8
|
|
530
|
+
*/
|
|
531
|
+
closed: boolean;
|
|
556
532
|
/**
|
|
557
|
-
* @generated from protobuf field: bool
|
|
533
|
+
* @generated from protobuf field: bool draft = 9
|
|
558
534
|
*/
|
|
559
|
-
|
|
535
|
+
draft: boolean;
|
|
560
536
|
/**
|
|
561
|
-
* @generated from protobuf field: bool public =
|
|
537
|
+
* @generated from protobuf field: bool public = 10
|
|
562
538
|
*/
|
|
563
|
-
public: boolean;
|
|
539
|
+
public: boolean;
|
|
564
540
|
/**
|
|
565
|
-
* @generated from protobuf field: optional resources.documents.DocumentAccess access =
|
|
541
|
+
* @generated from protobuf field: optional resources.documents.DocumentAccess access = 11
|
|
566
542
|
*/
|
|
567
543
|
access?: DocumentAccess;
|
|
544
|
+
/**
|
|
545
|
+
* @generated from protobuf field: repeated resources.file.File files = 12
|
|
546
|
+
*/
|
|
547
|
+
files: File[];
|
|
568
548
|
}
|
|
569
549
|
// Document Activity and Requests =============================================
|
|
570
550
|
|
|
@@ -573,17 +553,17 @@ export interface UpdateDocumentRequest {
|
|
|
573
553
|
*/
|
|
574
554
|
export interface ListDocumentActivityRequest {
|
|
575
555
|
/**
|
|
576
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
556
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
577
557
|
*/
|
|
578
558
|
pagination?: PaginationRequest;
|
|
579
559
|
/**
|
|
580
|
-
* @generated from protobuf field:
|
|
560
|
+
* @generated from protobuf field: int64 document_id = 2
|
|
581
561
|
*/
|
|
582
562
|
documentId: number;
|
|
583
563
|
/**
|
|
584
564
|
* Search params
|
|
585
565
|
*
|
|
586
|
-
* @generated from protobuf field: repeated resources.documents.DocActivityType activity_types = 3
|
|
566
|
+
* @generated from protobuf field: repeated resources.documents.DocActivityType activity_types = 3
|
|
587
567
|
*/
|
|
588
568
|
activityTypes: DocActivityType[];
|
|
589
569
|
}
|
|
@@ -592,11 +572,11 @@ export interface ListDocumentActivityRequest {
|
|
|
592
572
|
*/
|
|
593
573
|
export interface ListDocumentActivityResponse {
|
|
594
574
|
/**
|
|
595
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
575
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
596
576
|
*/
|
|
597
577
|
pagination?: PaginationResponse;
|
|
598
578
|
/**
|
|
599
|
-
* @generated from protobuf field: repeated resources.documents.DocActivity activity = 2
|
|
579
|
+
* @generated from protobuf field: repeated resources.documents.DocActivity activity = 2
|
|
600
580
|
*/
|
|
601
581
|
activity: DocActivity[];
|
|
602
582
|
}
|
|
@@ -605,11 +585,11 @@ export interface ListDocumentActivityResponse {
|
|
|
605
585
|
*/
|
|
606
586
|
export interface ListDocumentReqsRequest {
|
|
607
587
|
/**
|
|
608
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
588
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
609
589
|
*/
|
|
610
590
|
pagination?: PaginationRequest;
|
|
611
591
|
/**
|
|
612
|
-
* @generated from protobuf field:
|
|
592
|
+
* @generated from protobuf field: int64 document_id = 2
|
|
613
593
|
*/
|
|
614
594
|
documentId: number;
|
|
615
595
|
}
|
|
@@ -618,11 +598,11 @@ export interface ListDocumentReqsRequest {
|
|
|
618
598
|
*/
|
|
619
599
|
export interface ListDocumentReqsResponse {
|
|
620
600
|
/**
|
|
621
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
601
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
622
602
|
*/
|
|
623
603
|
pagination?: PaginationResponse;
|
|
624
604
|
/**
|
|
625
|
-
* @generated from protobuf field: repeated resources.documents.DocRequest requests = 2
|
|
605
|
+
* @generated from protobuf field: repeated resources.documents.DocRequest requests = 2
|
|
626
606
|
*/
|
|
627
607
|
requests: DocRequest[];
|
|
628
608
|
}
|
|
@@ -631,21 +611,19 @@ export interface ListDocumentReqsResponse {
|
|
|
631
611
|
*/
|
|
632
612
|
export interface CreateDocumentReqRequest {
|
|
633
613
|
/**
|
|
634
|
-
* @generated from protobuf field:
|
|
614
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
635
615
|
*/
|
|
636
616
|
documentId: number;
|
|
637
617
|
/**
|
|
638
|
-
* @generated from protobuf field: resources.documents.DocActivityType request_type = 2
|
|
618
|
+
* @generated from protobuf field: resources.documents.DocActivityType request_type = 2
|
|
639
619
|
*/
|
|
640
620
|
requestType: DocActivityType;
|
|
641
621
|
/**
|
|
642
|
-
* @
|
|
643
|
-
*
|
|
644
|
-
* @generated from protobuf field: optional string reason = 3;
|
|
622
|
+
* @generated from protobuf field: optional string reason = 3
|
|
645
623
|
*/
|
|
646
624
|
reason?: string;
|
|
647
625
|
/**
|
|
648
|
-
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
626
|
+
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
649
627
|
*/
|
|
650
628
|
data?: DocActivityData;
|
|
651
629
|
}
|
|
@@ -654,7 +632,7 @@ export interface CreateDocumentReqRequest {
|
|
|
654
632
|
*/
|
|
655
633
|
export interface CreateDocumentReqResponse {
|
|
656
634
|
/**
|
|
657
|
-
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
635
|
+
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
658
636
|
*/
|
|
659
637
|
request?: DocRequest;
|
|
660
638
|
}
|
|
@@ -663,25 +641,23 @@ export interface CreateDocumentReqResponse {
|
|
|
663
641
|
*/
|
|
664
642
|
export interface UpdateDocumentReqRequest {
|
|
665
643
|
/**
|
|
666
|
-
* @generated from protobuf field:
|
|
644
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
667
645
|
*/
|
|
668
646
|
documentId: number;
|
|
669
647
|
/**
|
|
670
|
-
* @generated from protobuf field:
|
|
648
|
+
* @generated from protobuf field: int64 request_id = 2
|
|
671
649
|
*/
|
|
672
650
|
requestId: number;
|
|
673
651
|
/**
|
|
674
|
-
* @
|
|
675
|
-
*
|
|
676
|
-
* @generated from protobuf field: optional string reason = 3;
|
|
652
|
+
* @generated from protobuf field: optional string reason = 3
|
|
677
653
|
*/
|
|
678
654
|
reason?: string;
|
|
679
655
|
/**
|
|
680
|
-
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
656
|
+
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
681
657
|
*/
|
|
682
658
|
data?: DocActivityData;
|
|
683
659
|
/**
|
|
684
|
-
* @generated from protobuf field: bool accepted = 5
|
|
660
|
+
* @generated from protobuf field: bool accepted = 5
|
|
685
661
|
*/
|
|
686
662
|
accepted: boolean;
|
|
687
663
|
}
|
|
@@ -690,7 +666,7 @@ export interface UpdateDocumentReqRequest {
|
|
|
690
666
|
*/
|
|
691
667
|
export interface UpdateDocumentReqResponse {
|
|
692
668
|
/**
|
|
693
|
-
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
669
|
+
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
694
670
|
*/
|
|
695
671
|
request?: DocRequest;
|
|
696
672
|
}
|
|
@@ -699,7 +675,7 @@ export interface UpdateDocumentReqResponse {
|
|
|
699
675
|
*/
|
|
700
676
|
export interface DeleteDocumentReqRequest {
|
|
701
677
|
/**
|
|
702
|
-
* @generated from protobuf field:
|
|
678
|
+
* @generated from protobuf field: int64 request_id = 1
|
|
703
679
|
*/
|
|
704
680
|
requestId: number;
|
|
705
681
|
}
|
|
@@ -715,7 +691,7 @@ export interface DeleteDocumentReqResponse {
|
|
|
715
691
|
*/
|
|
716
692
|
export interface GetDocumentAccessRequest {
|
|
717
693
|
/**
|
|
718
|
-
* @generated from protobuf field:
|
|
694
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
719
695
|
*/
|
|
720
696
|
documentId: number;
|
|
721
697
|
}
|
|
@@ -724,7 +700,7 @@ export interface GetDocumentAccessRequest {
|
|
|
724
700
|
*/
|
|
725
701
|
export interface GetDocumentAccessResponse {
|
|
726
702
|
/**
|
|
727
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 1
|
|
703
|
+
* @generated from protobuf field: resources.documents.DocumentAccess access = 1
|
|
728
704
|
*/
|
|
729
705
|
access?: DocumentAccess;
|
|
730
706
|
}
|
|
@@ -733,11 +709,11 @@ export interface GetDocumentAccessResponse {
|
|
|
733
709
|
*/
|
|
734
710
|
export interface SetDocumentAccessRequest {
|
|
735
711
|
/**
|
|
736
|
-
* @generated from protobuf field:
|
|
712
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
737
713
|
*/
|
|
738
714
|
documentId: number;
|
|
739
715
|
/**
|
|
740
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
716
|
+
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
741
717
|
*/
|
|
742
718
|
access?: DocumentAccess;
|
|
743
719
|
}
|
|
@@ -751,23 +727,23 @@ export interface SetDocumentAccessResponse {
|
|
|
751
727
|
*/
|
|
752
728
|
export interface ListUserDocumentsRequest {
|
|
753
729
|
/**
|
|
754
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
730
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
755
731
|
*/
|
|
756
732
|
pagination?: PaginationRequest;
|
|
757
733
|
/**
|
|
758
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
734
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
759
735
|
*/
|
|
760
736
|
sort?: Sort;
|
|
761
737
|
/**
|
|
762
|
-
* @generated from protobuf field: int32 user_id = 3
|
|
738
|
+
* @generated from protobuf field: int32 user_id = 3
|
|
763
739
|
*/
|
|
764
740
|
userId: number;
|
|
765
741
|
/**
|
|
766
|
-
* @generated from protobuf field: repeated resources.documents.DocRelation relations = 4
|
|
742
|
+
* @generated from protobuf field: repeated resources.documents.DocRelation relations = 4
|
|
767
743
|
*/
|
|
768
744
|
relations: DocRelation[];
|
|
769
745
|
/**
|
|
770
|
-
* @generated from protobuf field: optional bool closed = 5
|
|
746
|
+
* @generated from protobuf field: optional bool closed = 5
|
|
771
747
|
*/
|
|
772
748
|
closed?: boolean;
|
|
773
749
|
}
|
|
@@ -776,11 +752,11 @@ export interface ListUserDocumentsRequest {
|
|
|
776
752
|
*/
|
|
777
753
|
export interface ListUserDocumentsResponse {
|
|
778
754
|
/**
|
|
779
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
755
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
780
756
|
*/
|
|
781
757
|
pagination?: PaginationResponse;
|
|
782
758
|
/**
|
|
783
|
-
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 2
|
|
759
|
+
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 2
|
|
784
760
|
*/
|
|
785
761
|
relations: DocumentRelation[];
|
|
786
762
|
}
|
|
@@ -796,7 +772,7 @@ export interface ListCategoriesRequest {
|
|
|
796
772
|
*/
|
|
797
773
|
export interface ListCategoriesResponse {
|
|
798
774
|
/**
|
|
799
|
-
* @generated from protobuf field: repeated resources.documents.Category categories = 1
|
|
775
|
+
* @generated from protobuf field: repeated resources.documents.Category categories = 1
|
|
800
776
|
*/
|
|
801
777
|
categories: Category[];
|
|
802
778
|
}
|
|
@@ -805,7 +781,7 @@ export interface ListCategoriesResponse {
|
|
|
805
781
|
*/
|
|
806
782
|
export interface CreateOrUpdateCategoryRequest {
|
|
807
783
|
/**
|
|
808
|
-
* @generated from protobuf field: resources.documents.Category category = 1
|
|
784
|
+
* @generated from protobuf field: resources.documents.Category category = 1
|
|
809
785
|
*/
|
|
810
786
|
category?: Category;
|
|
811
787
|
}
|
|
@@ -814,7 +790,7 @@ export interface CreateOrUpdateCategoryRequest {
|
|
|
814
790
|
*/
|
|
815
791
|
export interface CreateOrUpdateCategoryResponse {
|
|
816
792
|
/**
|
|
817
|
-
* @generated from protobuf field: resources.documents.Category category = 1
|
|
793
|
+
* @generated from protobuf field: resources.documents.Category category = 1
|
|
818
794
|
*/
|
|
819
795
|
category?: Category;
|
|
820
796
|
}
|
|
@@ -823,7 +799,7 @@ export interface CreateOrUpdateCategoryResponse {
|
|
|
823
799
|
*/
|
|
824
800
|
export interface DeleteCategoryRequest {
|
|
825
801
|
/**
|
|
826
|
-
* @generated from protobuf field:
|
|
802
|
+
* @generated from protobuf field: int64 id = 1
|
|
827
803
|
*/
|
|
828
804
|
id: number;
|
|
829
805
|
}
|
|
@@ -839,20 +815,27 @@ export interface DeleteCategoryResponse {
|
|
|
839
815
|
*/
|
|
840
816
|
export interface ListDocumentPinsRequest {
|
|
841
817
|
/**
|
|
842
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
818
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
843
819
|
*/
|
|
844
820
|
pagination?: PaginationRequest;
|
|
821
|
+
/**
|
|
822
|
+
* Search params
|
|
823
|
+
* If true, only personal pins are returned
|
|
824
|
+
*
|
|
825
|
+
* @generated from protobuf field: optional bool personal = 2
|
|
826
|
+
*/
|
|
827
|
+
personal?: boolean;
|
|
845
828
|
}
|
|
846
829
|
/**
|
|
847
830
|
* @generated from protobuf message services.documents.ListDocumentPinsResponse
|
|
848
831
|
*/
|
|
849
832
|
export interface ListDocumentPinsResponse {
|
|
850
833
|
/**
|
|
851
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
834
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
852
835
|
*/
|
|
853
836
|
pagination?: PaginationResponse;
|
|
854
837
|
/**
|
|
855
|
-
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
838
|
+
* @generated from protobuf field: repeated resources.documents.DocumentShort documents = 2
|
|
856
839
|
*/
|
|
857
840
|
documents: DocumentShort[];
|
|
858
841
|
}
|
|
@@ -861,22 +844,28 @@ export interface ListDocumentPinsResponse {
|
|
|
861
844
|
*/
|
|
862
845
|
export interface ToggleDocumentPinRequest {
|
|
863
846
|
/**
|
|
864
|
-
* @generated from protobuf field:
|
|
847
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
865
848
|
*/
|
|
866
849
|
documentId: number;
|
|
867
850
|
/**
|
|
868
|
-
* @generated from protobuf field: bool state = 2
|
|
851
|
+
* @generated from protobuf field: bool state = 2
|
|
869
852
|
*/
|
|
870
853
|
state: boolean;
|
|
854
|
+
/**
|
|
855
|
+
* If true, the pin is personal and not shared with other job members
|
|
856
|
+
*
|
|
857
|
+
* @generated from protobuf field: optional bool personal = 3
|
|
858
|
+
*/
|
|
859
|
+
personal?: boolean;
|
|
871
860
|
}
|
|
872
861
|
/**
|
|
873
862
|
* @generated from protobuf message services.documents.ToggleDocumentPinResponse
|
|
874
863
|
*/
|
|
875
864
|
export interface ToggleDocumentPinResponse {
|
|
876
865
|
/**
|
|
877
|
-
* @generated from protobuf field:
|
|
866
|
+
* @generated from protobuf field: optional resources.documents.DocumentPin pin = 1
|
|
878
867
|
*/
|
|
879
|
-
|
|
868
|
+
pin?: DocumentPin;
|
|
880
869
|
}
|
|
881
870
|
// Reminders ==================================================================
|
|
882
871
|
|
|
@@ -885,19 +874,21 @@ export interface ToggleDocumentPinResponse {
|
|
|
885
874
|
*/
|
|
886
875
|
export interface SetDocumentReminderRequest {
|
|
887
876
|
/**
|
|
888
|
-
* @generated from protobuf field:
|
|
877
|
+
* @generated from protobuf field: int64 document_id = 1
|
|
889
878
|
*/
|
|
890
879
|
documentId: number;
|
|
891
880
|
/**
|
|
892
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp reminder_time = 2
|
|
881
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp reminder_time = 2
|
|
893
882
|
*/
|
|
894
883
|
reminderTime?: Timestamp;
|
|
895
884
|
/**
|
|
896
|
-
* @
|
|
897
|
-
*
|
|
898
|
-
* @generated from protobuf field: optional string message = 3;
|
|
885
|
+
* @generated from protobuf field: optional string message = 3
|
|
899
886
|
*/
|
|
900
887
|
message?: string;
|
|
888
|
+
/**
|
|
889
|
+
* @generated from protobuf field: int32 max_reminder_count = 4
|
|
890
|
+
*/
|
|
891
|
+
maxReminderCount: number;
|
|
901
892
|
}
|
|
902
893
|
/**
|
|
903
894
|
* @generated from protobuf message services.documents.SetDocumentReminderResponse
|
|
@@ -993,7 +984,7 @@ export const ListTemplatesResponse = new ListTemplatesResponse$Type();
|
|
|
993
984
|
class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
994
985
|
constructor() {
|
|
995
986
|
super("services.documents.GetTemplateRequest", [
|
|
996
|
-
{ no: 1, name: "template_id", kind: "scalar", T:
|
|
987
|
+
{ no: 1, name: "template_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
997
988
|
{ no: 2, name: "data", kind: "message", T: () => TemplateData },
|
|
998
989
|
{ no: 3, name: "render", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
999
990
|
]);
|
|
@@ -1010,8 +1001,8 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1010
1001
|
while (reader.pos < end) {
|
|
1011
1002
|
let [fieldNo, wireType] = reader.tag();
|
|
1012
1003
|
switch (fieldNo) {
|
|
1013
|
-
case /*
|
|
1014
|
-
message.templateId = reader.
|
|
1004
|
+
case /* int64 template_id */ 1:
|
|
1005
|
+
message.templateId = reader.int64().toNumber();
|
|
1015
1006
|
break;
|
|
1016
1007
|
case /* optional resources.documents.TemplateData data */ 2:
|
|
1017
1008
|
message.data = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
@@ -1031,9 +1022,9 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1031
1022
|
return message;
|
|
1032
1023
|
}
|
|
1033
1024
|
internalBinaryWrite(message: GetTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1034
|
-
/*
|
|
1025
|
+
/* int64 template_id = 1; */
|
|
1035
1026
|
if (message.templateId !== 0)
|
|
1036
|
-
writer.tag(1, WireType.Varint).
|
|
1027
|
+
writer.tag(1, WireType.Varint).int64(message.templateId);
|
|
1037
1028
|
/* optional resources.documents.TemplateData data = 2; */
|
|
1038
1029
|
if (message.data)
|
|
1039
1030
|
TemplateData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -1108,7 +1099,7 @@ export const GetTemplateResponse = new GetTemplateResponse$Type();
|
|
|
1108
1099
|
class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
1109
1100
|
constructor() {
|
|
1110
1101
|
super("services.documents.CreateTemplateRequest", [
|
|
1111
|
-
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "validate.
|
|
1102
|
+
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "buf.validate.field": { required: true } } }
|
|
1112
1103
|
]);
|
|
1113
1104
|
}
|
|
1114
1105
|
create(value?: PartialMessage<CreateTemplateRequest>): CreateTemplateRequest {
|
|
@@ -1154,7 +1145,7 @@ export const CreateTemplateRequest = new CreateTemplateRequest$Type();
|
|
|
1154
1145
|
class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
1155
1146
|
constructor() {
|
|
1156
1147
|
super("services.documents.CreateTemplateResponse", [
|
|
1157
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1148
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1158
1149
|
]);
|
|
1159
1150
|
}
|
|
1160
1151
|
create(value?: PartialMessage<CreateTemplateResponse>): CreateTemplateResponse {
|
|
@@ -1169,8 +1160,8 @@ class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
|
1169
1160
|
while (reader.pos < end) {
|
|
1170
1161
|
let [fieldNo, wireType] = reader.tag();
|
|
1171
1162
|
switch (fieldNo) {
|
|
1172
|
-
case /*
|
|
1173
|
-
message.id = reader.
|
|
1163
|
+
case /* int64 id */ 1:
|
|
1164
|
+
message.id = reader.int64().toNumber();
|
|
1174
1165
|
break;
|
|
1175
1166
|
default:
|
|
1176
1167
|
let u = options.readUnknownField;
|
|
@@ -1184,9 +1175,9 @@ class CreateTemplateResponse$Type extends MessageType<CreateTemplateResponse> {
|
|
|
1184
1175
|
return message;
|
|
1185
1176
|
}
|
|
1186
1177
|
internalBinaryWrite(message: CreateTemplateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1187
|
-
/*
|
|
1178
|
+
/* int64 id = 1; */
|
|
1188
1179
|
if (message.id !== 0)
|
|
1189
|
-
writer.tag(1, WireType.Varint).
|
|
1180
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1190
1181
|
let u = options.writeUnknownFields;
|
|
1191
1182
|
if (u !== false)
|
|
1192
1183
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1201,7 +1192,7 @@ export const CreateTemplateResponse = new CreateTemplateResponse$Type();
|
|
|
1201
1192
|
class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
1202
1193
|
constructor() {
|
|
1203
1194
|
super("services.documents.UpdateTemplateRequest", [
|
|
1204
|
-
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "validate.
|
|
1195
|
+
{ no: 1, name: "template", kind: "message", T: () => Template, options: { "buf.validate.field": { required: true } } }
|
|
1205
1196
|
]);
|
|
1206
1197
|
}
|
|
1207
1198
|
create(value?: PartialMessage<UpdateTemplateRequest>): UpdateTemplateRequest {
|
|
@@ -1293,7 +1284,7 @@ export const UpdateTemplateResponse = new UpdateTemplateResponse$Type();
|
|
|
1293
1284
|
class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
1294
1285
|
constructor() {
|
|
1295
1286
|
super("services.documents.DeleteTemplateRequest", [
|
|
1296
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1287
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1297
1288
|
]);
|
|
1298
1289
|
}
|
|
1299
1290
|
create(value?: PartialMessage<DeleteTemplateRequest>): DeleteTemplateRequest {
|
|
@@ -1308,8 +1299,8 @@ class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
|
1308
1299
|
while (reader.pos < end) {
|
|
1309
1300
|
let [fieldNo, wireType] = reader.tag();
|
|
1310
1301
|
switch (fieldNo) {
|
|
1311
|
-
case /*
|
|
1312
|
-
message.id = reader.
|
|
1302
|
+
case /* int64 id */ 1:
|
|
1303
|
+
message.id = reader.int64().toNumber();
|
|
1313
1304
|
break;
|
|
1314
1305
|
default:
|
|
1315
1306
|
let u = options.readUnknownField;
|
|
@@ -1323,9 +1314,9 @@ class DeleteTemplateRequest$Type extends MessageType<DeleteTemplateRequest> {
|
|
|
1323
1314
|
return message;
|
|
1324
1315
|
}
|
|
1325
1316
|
internalBinaryWrite(message: DeleteTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1326
|
-
/*
|
|
1317
|
+
/* int64 id = 1; */
|
|
1327
1318
|
if (message.id !== 0)
|
|
1328
|
-
writer.tag(1, WireType.Varint).
|
|
1319
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1329
1320
|
let u = options.writeUnknownFields;
|
|
1330
1321
|
if (u !== false)
|
|
1331
1322
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1378,15 +1369,16 @@ export const DeleteTemplateResponse = new DeleteTemplateResponse$Type();
|
|
|
1378
1369
|
class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
1379
1370
|
constructor() {
|
|
1380
1371
|
super("services.documents.ListDocumentsRequest", [
|
|
1381
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
1372
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
1382
1373
|
{ 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.
|
|
1374
|
+
{ no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
1375
|
+
{ 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" } } } },
|
|
1376
|
+
{ no: 5, name: "creator_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "5" } } } },
|
|
1386
1377
|
{ no: 6, name: "from", kind: "message", T: () => Timestamp },
|
|
1387
1378
|
{ no: 7, name: "to", kind: "message", T: () => Timestamp },
|
|
1388
1379
|
{ 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:
|
|
1380
|
+
{ 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" } } } },
|
|
1381
|
+
{ no: 10, name: "only_drafts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1390
1382
|
]);
|
|
1391
1383
|
}
|
|
1392
1384
|
create(value?: PartialMessage<ListDocumentsRequest>): ListDocumentsRequest {
|
|
@@ -1412,12 +1404,12 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1412
1404
|
case /* optional string search */ 3:
|
|
1413
1405
|
message.search = reader.string();
|
|
1414
1406
|
break;
|
|
1415
|
-
case /* repeated
|
|
1407
|
+
case /* repeated int64 category_ids */ 4:
|
|
1416
1408
|
if (wireType === WireType.LengthDelimited)
|
|
1417
1409
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1418
|
-
message.categoryIds.push(reader.
|
|
1410
|
+
message.categoryIds.push(reader.int64().toNumber());
|
|
1419
1411
|
else
|
|
1420
|
-
message.categoryIds.push(reader.
|
|
1412
|
+
message.categoryIds.push(reader.int64().toNumber());
|
|
1421
1413
|
break;
|
|
1422
1414
|
case /* repeated int32 creator_ids */ 5:
|
|
1423
1415
|
if (wireType === WireType.LengthDelimited)
|
|
@@ -1435,12 +1427,15 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1435
1427
|
case /* optional bool closed */ 8:
|
|
1436
1428
|
message.closed = reader.bool();
|
|
1437
1429
|
break;
|
|
1438
|
-
case /* repeated
|
|
1430
|
+
case /* repeated int64 document_ids */ 9:
|
|
1439
1431
|
if (wireType === WireType.LengthDelimited)
|
|
1440
1432
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1441
|
-
message.documentIds.push(reader.
|
|
1433
|
+
message.documentIds.push(reader.int64().toNumber());
|
|
1442
1434
|
else
|
|
1443
|
-
message.documentIds.push(reader.
|
|
1435
|
+
message.documentIds.push(reader.int64().toNumber());
|
|
1436
|
+
break;
|
|
1437
|
+
case /* optional bool only_drafts */ 10:
|
|
1438
|
+
message.onlyDrafts = reader.bool();
|
|
1444
1439
|
break;
|
|
1445
1440
|
default:
|
|
1446
1441
|
let u = options.readUnknownField;
|
|
@@ -1463,11 +1458,11 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1463
1458
|
/* optional string search = 3; */
|
|
1464
1459
|
if (message.search !== undefined)
|
|
1465
1460
|
writer.tag(3, WireType.LengthDelimited).string(message.search);
|
|
1466
|
-
/* repeated
|
|
1461
|
+
/* repeated int64 category_ids = 4; */
|
|
1467
1462
|
if (message.categoryIds.length) {
|
|
1468
1463
|
writer.tag(4, WireType.LengthDelimited).fork();
|
|
1469
1464
|
for (let i = 0; i < message.categoryIds.length; i++)
|
|
1470
|
-
writer.
|
|
1465
|
+
writer.int64(message.categoryIds[i]);
|
|
1471
1466
|
writer.join();
|
|
1472
1467
|
}
|
|
1473
1468
|
/* repeated int32 creator_ids = 5; */
|
|
@@ -1486,13 +1481,16 @@ class ListDocumentsRequest$Type extends MessageType<ListDocumentsRequest> {
|
|
|
1486
1481
|
/* optional bool closed = 8; */
|
|
1487
1482
|
if (message.closed !== undefined)
|
|
1488
1483
|
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
1489
|
-
/* repeated
|
|
1484
|
+
/* repeated int64 document_ids = 9; */
|
|
1490
1485
|
if (message.documentIds.length) {
|
|
1491
1486
|
writer.tag(9, WireType.LengthDelimited).fork();
|
|
1492
1487
|
for (let i = 0; i < message.documentIds.length; i++)
|
|
1493
|
-
writer.
|
|
1488
|
+
writer.int64(message.documentIds[i]);
|
|
1494
1489
|
writer.join();
|
|
1495
1490
|
}
|
|
1491
|
+
/* optional bool only_drafts = 10; */
|
|
1492
|
+
if (message.onlyDrafts !== undefined)
|
|
1493
|
+
writer.tag(10, WireType.Varint).bool(message.onlyDrafts);
|
|
1496
1494
|
let u = options.writeUnknownFields;
|
|
1497
1495
|
if (u !== false)
|
|
1498
1496
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1507,8 +1505,8 @@ export const ListDocumentsRequest = new ListDocumentsRequest$Type();
|
|
|
1507
1505
|
class ListDocumentsResponse$Type extends MessageType<ListDocumentsResponse> {
|
|
1508
1506
|
constructor() {
|
|
1509
1507
|
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 }
|
|
1508
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
1509
|
+
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "codegen.itemslen.enabled": true } }
|
|
1512
1510
|
]);
|
|
1513
1511
|
}
|
|
1514
1512
|
create(value?: PartialMessage<ListDocumentsResponse>): ListDocumentsResponse {
|
|
@@ -1561,7 +1559,7 @@ export const ListDocumentsResponse = new ListDocumentsResponse$Type();
|
|
|
1561
1559
|
class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
1562
1560
|
constructor() {
|
|
1563
1561
|
super("services.documents.GetDocumentRequest", [
|
|
1564
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
1562
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1565
1563
|
{ no: 2, name: "info_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1566
1564
|
]);
|
|
1567
1565
|
}
|
|
@@ -1577,8 +1575,8 @@ class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
|
1577
1575
|
while (reader.pos < end) {
|
|
1578
1576
|
let [fieldNo, wireType] = reader.tag();
|
|
1579
1577
|
switch (fieldNo) {
|
|
1580
|
-
case /*
|
|
1581
|
-
message.documentId = reader.
|
|
1578
|
+
case /* int64 document_id */ 1:
|
|
1579
|
+
message.documentId = reader.int64().toNumber();
|
|
1582
1580
|
break;
|
|
1583
1581
|
case /* optional bool info_only */ 2:
|
|
1584
1582
|
message.infoOnly = reader.bool();
|
|
@@ -1595,9 +1593,9 @@ class GetDocumentRequest$Type extends MessageType<GetDocumentRequest> {
|
|
|
1595
1593
|
return message;
|
|
1596
1594
|
}
|
|
1597
1595
|
internalBinaryWrite(message: GetDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1598
|
-
/*
|
|
1596
|
+
/* int64 document_id = 1; */
|
|
1599
1597
|
if (message.documentId !== 0)
|
|
1600
|
-
writer.tag(1, WireType.Varint).
|
|
1598
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1601
1599
|
/* optional bool info_only = 2; */
|
|
1602
1600
|
if (message.infoOnly !== undefined)
|
|
1603
1601
|
writer.tag(2, WireType.Varint).bool(message.infoOnly);
|
|
@@ -1668,7 +1666,7 @@ export const GetDocumentResponse = new GetDocumentResponse$Type();
|
|
|
1668
1666
|
class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReferencesRequest> {
|
|
1669
1667
|
constructor() {
|
|
1670
1668
|
super("services.documents.GetDocumentReferencesRequest", [
|
|
1671
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
1669
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1672
1670
|
]);
|
|
1673
1671
|
}
|
|
1674
1672
|
create(value?: PartialMessage<GetDocumentReferencesRequest>): GetDocumentReferencesRequest {
|
|
@@ -1683,8 +1681,8 @@ class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReference
|
|
|
1683
1681
|
while (reader.pos < end) {
|
|
1684
1682
|
let [fieldNo, wireType] = reader.tag();
|
|
1685
1683
|
switch (fieldNo) {
|
|
1686
|
-
case /*
|
|
1687
|
-
message.documentId = reader.
|
|
1684
|
+
case /* int64 document_id */ 1:
|
|
1685
|
+
message.documentId = reader.int64().toNumber();
|
|
1688
1686
|
break;
|
|
1689
1687
|
default:
|
|
1690
1688
|
let u = options.readUnknownField;
|
|
@@ -1698,9 +1696,9 @@ class GetDocumentReferencesRequest$Type extends MessageType<GetDocumentReference
|
|
|
1698
1696
|
return message;
|
|
1699
1697
|
}
|
|
1700
1698
|
internalBinaryWrite(message: GetDocumentReferencesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1701
|
-
/*
|
|
1699
|
+
/* int64 document_id = 1; */
|
|
1702
1700
|
if (message.documentId !== 0)
|
|
1703
|
-
writer.tag(1, WireType.Varint).
|
|
1701
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1704
1702
|
let u = options.writeUnknownFields;
|
|
1705
1703
|
if (u !== false)
|
|
1706
1704
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1715,7 +1713,7 @@ export const GetDocumentReferencesRequest = new GetDocumentReferencesRequest$Typ
|
|
|
1715
1713
|
class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferencesResponse> {
|
|
1716
1714
|
constructor() {
|
|
1717
1715
|
super("services.documents.GetDocumentReferencesResponse", [
|
|
1718
|
-
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentReference }
|
|
1716
|
+
{ no: 1, name: "references", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentReference, options: { "tagger.tags": "alias:\"reference\"" } }
|
|
1719
1717
|
]);
|
|
1720
1718
|
}
|
|
1721
1719
|
create(value?: PartialMessage<GetDocumentReferencesResponse>): GetDocumentReferencesResponse {
|
|
@@ -1762,7 +1760,7 @@ export const GetDocumentReferencesResponse = new GetDocumentReferencesResponse$T
|
|
|
1762
1760
|
class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsRequest> {
|
|
1763
1761
|
constructor() {
|
|
1764
1762
|
super("services.documents.GetDocumentRelationsRequest", [
|
|
1765
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
1763
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1766
1764
|
]);
|
|
1767
1765
|
}
|
|
1768
1766
|
create(value?: PartialMessage<GetDocumentRelationsRequest>): GetDocumentRelationsRequest {
|
|
@@ -1777,8 +1775,8 @@ class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsR
|
|
|
1777
1775
|
while (reader.pos < end) {
|
|
1778
1776
|
let [fieldNo, wireType] = reader.tag();
|
|
1779
1777
|
switch (fieldNo) {
|
|
1780
|
-
case /*
|
|
1781
|
-
message.documentId = reader.
|
|
1778
|
+
case /* int64 document_id */ 1:
|
|
1779
|
+
message.documentId = reader.int64().toNumber();
|
|
1782
1780
|
break;
|
|
1783
1781
|
default:
|
|
1784
1782
|
let u = options.readUnknownField;
|
|
@@ -1792,9 +1790,9 @@ class GetDocumentRelationsRequest$Type extends MessageType<GetDocumentRelationsR
|
|
|
1792
1790
|
return message;
|
|
1793
1791
|
}
|
|
1794
1792
|
internalBinaryWrite(message: GetDocumentRelationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1795
|
-
/*
|
|
1793
|
+
/* int64 document_id = 1; */
|
|
1796
1794
|
if (message.documentId !== 0)
|
|
1797
|
-
writer.tag(1, WireType.Varint).
|
|
1795
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
1798
1796
|
let u = options.writeUnknownFields;
|
|
1799
1797
|
if (u !== false)
|
|
1800
1798
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1809,7 +1807,7 @@ export const GetDocumentRelationsRequest = new GetDocumentRelationsRequest$Type(
|
|
|
1809
1807
|
class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelationsResponse> {
|
|
1810
1808
|
constructor() {
|
|
1811
1809
|
super("services.documents.GetDocumentRelationsResponse", [
|
|
1812
|
-
{ no: 1, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation }
|
|
1810
|
+
{ no: 1, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation, options: { "tagger.tags": "alias:\"relation\"" } }
|
|
1813
1811
|
]);
|
|
1814
1812
|
}
|
|
1815
1813
|
create(value?: PartialMessage<GetDocumentRelationsResponse>): GetDocumentRelationsResponse {
|
|
@@ -1856,7 +1854,7 @@ export const GetDocumentRelationsResponse = new GetDocumentRelationsResponse$Typ
|
|
|
1856
1854
|
class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceRequest> {
|
|
1857
1855
|
constructor() {
|
|
1858
1856
|
super("services.documents.AddDocumentReferenceRequest", [
|
|
1859
|
-
{ no: 1, name: "reference", kind: "message", T: () => DocumentReference, options: { "validate.
|
|
1857
|
+
{ no: 1, name: "reference", kind: "message", T: () => DocumentReference, options: { "buf.validate.field": { required: true } } }
|
|
1860
1858
|
]);
|
|
1861
1859
|
}
|
|
1862
1860
|
create(value?: PartialMessage<AddDocumentReferenceRequest>): AddDocumentReferenceRequest {
|
|
@@ -1902,7 +1900,7 @@ export const AddDocumentReferenceRequest = new AddDocumentReferenceRequest$Type(
|
|
|
1902
1900
|
class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReferenceResponse> {
|
|
1903
1901
|
constructor() {
|
|
1904
1902
|
super("services.documents.AddDocumentReferenceResponse", [
|
|
1905
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1903
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1906
1904
|
]);
|
|
1907
1905
|
}
|
|
1908
1906
|
create(value?: PartialMessage<AddDocumentReferenceResponse>): AddDocumentReferenceResponse {
|
|
@@ -1917,8 +1915,8 @@ class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReference
|
|
|
1917
1915
|
while (reader.pos < end) {
|
|
1918
1916
|
let [fieldNo, wireType] = reader.tag();
|
|
1919
1917
|
switch (fieldNo) {
|
|
1920
|
-
case /*
|
|
1921
|
-
message.id = reader.
|
|
1918
|
+
case /* int64 id */ 1:
|
|
1919
|
+
message.id = reader.int64().toNumber();
|
|
1922
1920
|
break;
|
|
1923
1921
|
default:
|
|
1924
1922
|
let u = options.readUnknownField;
|
|
@@ -1932,9 +1930,9 @@ class AddDocumentReferenceResponse$Type extends MessageType<AddDocumentReference
|
|
|
1932
1930
|
return message;
|
|
1933
1931
|
}
|
|
1934
1932
|
internalBinaryWrite(message: AddDocumentReferenceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1935
|
-
/*
|
|
1933
|
+
/* int64 id = 1; */
|
|
1936
1934
|
if (message.id !== 0)
|
|
1937
|
-
writer.tag(1, WireType.Varint).
|
|
1935
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1938
1936
|
let u = options.writeUnknownFields;
|
|
1939
1937
|
if (u !== false)
|
|
1940
1938
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1949,7 +1947,7 @@ export const AddDocumentReferenceResponse = new AddDocumentReferenceResponse$Typ
|
|
|
1949
1947
|
class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentReferenceRequest> {
|
|
1950
1948
|
constructor() {
|
|
1951
1949
|
super("services.documents.RemoveDocumentReferenceRequest", [
|
|
1952
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
1950
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
1953
1951
|
]);
|
|
1954
1952
|
}
|
|
1955
1953
|
create(value?: PartialMessage<RemoveDocumentReferenceRequest>): RemoveDocumentReferenceRequest {
|
|
@@ -1964,8 +1962,8 @@ class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentRefe
|
|
|
1964
1962
|
while (reader.pos < end) {
|
|
1965
1963
|
let [fieldNo, wireType] = reader.tag();
|
|
1966
1964
|
switch (fieldNo) {
|
|
1967
|
-
case /*
|
|
1968
|
-
message.id = reader.
|
|
1965
|
+
case /* int64 id */ 1:
|
|
1966
|
+
message.id = reader.int64().toNumber();
|
|
1969
1967
|
break;
|
|
1970
1968
|
default:
|
|
1971
1969
|
let u = options.readUnknownField;
|
|
@@ -1979,9 +1977,9 @@ class RemoveDocumentReferenceRequest$Type extends MessageType<RemoveDocumentRefe
|
|
|
1979
1977
|
return message;
|
|
1980
1978
|
}
|
|
1981
1979
|
internalBinaryWrite(message: RemoveDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1982
|
-
/*
|
|
1980
|
+
/* int64 id = 1; */
|
|
1983
1981
|
if (message.id !== 0)
|
|
1984
|
-
writer.tag(1, WireType.Varint).
|
|
1982
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
1985
1983
|
let u = options.writeUnknownFields;
|
|
1986
1984
|
if (u !== false)
|
|
1987
1985
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2034,7 +2032,7 @@ export const RemoveDocumentReferenceResponse = new RemoveDocumentReferenceRespon
|
|
|
2034
2032
|
class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationRequest> {
|
|
2035
2033
|
constructor() {
|
|
2036
2034
|
super("services.documents.AddDocumentRelationRequest", [
|
|
2037
|
-
{ no: 1, name: "relation", kind: "message", T: () => DocumentRelation, options: { "validate.
|
|
2035
|
+
{ no: 1, name: "relation", kind: "message", T: () => DocumentRelation, options: { "buf.validate.field": { required: true } } }
|
|
2038
2036
|
]);
|
|
2039
2037
|
}
|
|
2040
2038
|
create(value?: PartialMessage<AddDocumentRelationRequest>): AddDocumentRelationRequest {
|
|
@@ -2080,7 +2078,7 @@ export const AddDocumentRelationRequest = new AddDocumentRelationRequest$Type();
|
|
|
2080
2078
|
class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationResponse> {
|
|
2081
2079
|
constructor() {
|
|
2082
2080
|
super("services.documents.AddDocumentRelationResponse", [
|
|
2083
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
2081
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2084
2082
|
]);
|
|
2085
2083
|
}
|
|
2086
2084
|
create(value?: PartialMessage<AddDocumentRelationResponse>): AddDocumentRelationResponse {
|
|
@@ -2095,8 +2093,8 @@ class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationRe
|
|
|
2095
2093
|
while (reader.pos < end) {
|
|
2096
2094
|
let [fieldNo, wireType] = reader.tag();
|
|
2097
2095
|
switch (fieldNo) {
|
|
2098
|
-
case /*
|
|
2099
|
-
message.id = reader.
|
|
2096
|
+
case /* int64 id */ 1:
|
|
2097
|
+
message.id = reader.int64().toNumber();
|
|
2100
2098
|
break;
|
|
2101
2099
|
default:
|
|
2102
2100
|
let u = options.readUnknownField;
|
|
@@ -2110,9 +2108,9 @@ class AddDocumentRelationResponse$Type extends MessageType<AddDocumentRelationRe
|
|
|
2110
2108
|
return message;
|
|
2111
2109
|
}
|
|
2112
2110
|
internalBinaryWrite(message: AddDocumentRelationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2113
|
-
/*
|
|
2111
|
+
/* int64 id = 1; */
|
|
2114
2112
|
if (message.id !== 0)
|
|
2115
|
-
writer.tag(1, WireType.Varint).
|
|
2113
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2116
2114
|
let u = options.writeUnknownFields;
|
|
2117
2115
|
if (u !== false)
|
|
2118
2116
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2127,7 +2125,7 @@ export const AddDocumentRelationResponse = new AddDocumentRelationResponse$Type(
|
|
|
2127
2125
|
class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelationRequest> {
|
|
2128
2126
|
constructor() {
|
|
2129
2127
|
super("services.documents.RemoveDocumentRelationRequest", [
|
|
2130
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
2128
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2131
2129
|
]);
|
|
2132
2130
|
}
|
|
2133
2131
|
create(value?: PartialMessage<RemoveDocumentRelationRequest>): RemoveDocumentRelationRequest {
|
|
@@ -2142,8 +2140,8 @@ class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelat
|
|
|
2142
2140
|
while (reader.pos < end) {
|
|
2143
2141
|
let [fieldNo, wireType] = reader.tag();
|
|
2144
2142
|
switch (fieldNo) {
|
|
2145
|
-
case /*
|
|
2146
|
-
message.id = reader.
|
|
2143
|
+
case /* int64 id */ 1:
|
|
2144
|
+
message.id = reader.int64().toNumber();
|
|
2147
2145
|
break;
|
|
2148
2146
|
default:
|
|
2149
2147
|
let u = options.readUnknownField;
|
|
@@ -2157,9 +2155,9 @@ class RemoveDocumentRelationRequest$Type extends MessageType<RemoveDocumentRelat
|
|
|
2157
2155
|
return message;
|
|
2158
2156
|
}
|
|
2159
2157
|
internalBinaryWrite(message: RemoveDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2160
|
-
/*
|
|
2158
|
+
/* int64 id = 1; */
|
|
2161
2159
|
if (message.id !== 0)
|
|
2162
|
-
writer.tag(1, WireType.Varint).
|
|
2160
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
2163
2161
|
let u = options.writeUnknownFields;
|
|
2164
2162
|
if (u !== false)
|
|
2165
2163
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2212,8 +2210,8 @@ export const RemoveDocumentRelationResponse = new RemoveDocumentRelationResponse
|
|
|
2212
2210
|
class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
2213
2211
|
constructor() {
|
|
2214
2212
|
super("services.documents.GetCommentsRequest", [
|
|
2215
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
2216
|
-
{ no: 2, name: "document_id", kind: "scalar", T:
|
|
2213
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
2214
|
+
{ no: 2, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2217
2215
|
]);
|
|
2218
2216
|
}
|
|
2219
2217
|
create(value?: PartialMessage<GetCommentsRequest>): GetCommentsRequest {
|
|
@@ -2231,8 +2229,8 @@ class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
|
2231
2229
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
2232
2230
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2233
2231
|
break;
|
|
2234
|
-
case /*
|
|
2235
|
-
message.documentId = reader.
|
|
2232
|
+
case /* int64 document_id */ 2:
|
|
2233
|
+
message.documentId = reader.int64().toNumber();
|
|
2236
2234
|
break;
|
|
2237
2235
|
default:
|
|
2238
2236
|
let u = options.readUnknownField;
|
|
@@ -2249,9 +2247,9 @@ class GetCommentsRequest$Type extends MessageType<GetCommentsRequest> {
|
|
|
2249
2247
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
2250
2248
|
if (message.pagination)
|
|
2251
2249
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2252
|
-
/*
|
|
2250
|
+
/* int64 document_id = 2; */
|
|
2253
2251
|
if (message.documentId !== 0)
|
|
2254
|
-
writer.tag(2, WireType.Varint).
|
|
2252
|
+
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
2255
2253
|
let u = options.writeUnknownFields;
|
|
2256
2254
|
if (u !== false)
|
|
2257
2255
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2266,8 +2264,8 @@ export const GetCommentsRequest = new GetCommentsRequest$Type();
|
|
|
2266
2264
|
class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
2267
2265
|
constructor() {
|
|
2268
2266
|
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 }
|
|
2267
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
2268
|
+
{ no: 2, name: "comments", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Comment, options: { "codegen.itemslen.enabled": true } }
|
|
2271
2269
|
]);
|
|
2272
2270
|
}
|
|
2273
2271
|
create(value?: PartialMessage<GetCommentsResponse>): GetCommentsResponse {
|
|
@@ -2320,7 +2318,7 @@ export const GetCommentsResponse = new GetCommentsResponse$Type();
|
|
|
2320
2318
|
class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
2321
2319
|
constructor() {
|
|
2322
2320
|
super("services.documents.PostCommentRequest", [
|
|
2323
|
-
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "validate.
|
|
2321
|
+
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "buf.validate.field": { required: true } } }
|
|
2324
2322
|
]);
|
|
2325
2323
|
}
|
|
2326
2324
|
create(value?: PartialMessage<PostCommentRequest>): PostCommentRequest {
|
|
@@ -2412,7 +2410,7 @@ export const PostCommentResponse = new PostCommentResponse$Type();
|
|
|
2412
2410
|
class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
2413
2411
|
constructor() {
|
|
2414
2412
|
super("services.documents.EditCommentRequest", [
|
|
2415
|
-
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "validate.
|
|
2413
|
+
{ no: 1, name: "comment", kind: "message", T: () => Comment, options: { "buf.validate.field": { required: true } } }
|
|
2416
2414
|
]);
|
|
2417
2415
|
}
|
|
2418
2416
|
create(value?: PartialMessage<EditCommentRequest>): EditCommentRequest {
|
|
@@ -2504,7 +2502,7 @@ export const EditCommentResponse = new EditCommentResponse$Type();
|
|
|
2504
2502
|
class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
2505
2503
|
constructor() {
|
|
2506
2504
|
super("services.documents.DeleteCommentRequest", [
|
|
2507
|
-
{ no: 1, name: "comment_id", kind: "scalar", T:
|
|
2505
|
+
{ no: 1, name: "comment_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
2508
2506
|
]);
|
|
2509
2507
|
}
|
|
2510
2508
|
create(value?: PartialMessage<DeleteCommentRequest>): DeleteCommentRequest {
|
|
@@ -2519,8 +2517,8 @@ class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
|
2519
2517
|
while (reader.pos < end) {
|
|
2520
2518
|
let [fieldNo, wireType] = reader.tag();
|
|
2521
2519
|
switch (fieldNo) {
|
|
2522
|
-
case /*
|
|
2523
|
-
message.commentId = reader.
|
|
2520
|
+
case /* int64 comment_id */ 1:
|
|
2521
|
+
message.commentId = reader.int64().toNumber();
|
|
2524
2522
|
break;
|
|
2525
2523
|
default:
|
|
2526
2524
|
let u = options.readUnknownField;
|
|
@@ -2534,9 +2532,9 @@ class DeleteCommentRequest$Type extends MessageType<DeleteCommentRequest> {
|
|
|
2534
2532
|
return message;
|
|
2535
2533
|
}
|
|
2536
2534
|
internalBinaryWrite(message: DeleteCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2537
|
-
/*
|
|
2535
|
+
/* int64 comment_id = 1; */
|
|
2538
2536
|
if (message.commentId !== 0)
|
|
2539
|
-
writer.tag(1, WireType.Varint).
|
|
2537
|
+
writer.tag(1, WireType.Varint).int64(message.commentId);
|
|
2540
2538
|
let u = options.writeUnknownFields;
|
|
2541
2539
|
if (u !== false)
|
|
2542
2540
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2589,12 +2587,11 @@ export const DeleteCommentResponse = new DeleteCommentResponse$Type();
|
|
|
2589
2587
|
class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
2590
2588
|
constructor() {
|
|
2591
2589
|
super("services.documents.UpdateDocumentResponse", [
|
|
2592
|
-
{ no: 1, name: "
|
|
2590
|
+
{ no: 1, name: "document", kind: "message", T: () => Document }
|
|
2593
2591
|
]);
|
|
2594
2592
|
}
|
|
2595
2593
|
create(value?: PartialMessage<UpdateDocumentResponse>): UpdateDocumentResponse {
|
|
2596
2594
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2597
|
-
message.documentId = 0;
|
|
2598
2595
|
if (value !== undefined)
|
|
2599
2596
|
reflectionMergePartial<UpdateDocumentResponse>(this, message, value);
|
|
2600
2597
|
return message;
|
|
@@ -2604,8 +2601,8 @@ class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
|
2604
2601
|
while (reader.pos < end) {
|
|
2605
2602
|
let [fieldNo, wireType] = reader.tag();
|
|
2606
2603
|
switch (fieldNo) {
|
|
2607
|
-
case /*
|
|
2608
|
-
message.
|
|
2604
|
+
case /* resources.documents.Document document */ 1:
|
|
2605
|
+
message.document = Document.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
2609
2606
|
break;
|
|
2610
2607
|
default:
|
|
2611
2608
|
let u = options.readUnknownField;
|
|
@@ -2619,9 +2616,9 @@ class UpdateDocumentResponse$Type extends MessageType<UpdateDocumentResponse> {
|
|
|
2619
2616
|
return message;
|
|
2620
2617
|
}
|
|
2621
2618
|
internalBinaryWrite(message: UpdateDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2622
|
-
/*
|
|
2623
|
-
if (message.
|
|
2624
|
-
writer.tag(1, WireType.
|
|
2619
|
+
/* resources.documents.Document document = 1; */
|
|
2620
|
+
if (message.document)
|
|
2621
|
+
Document.internalBinaryWrite(message.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2625
2622
|
let u = options.writeUnknownFields;
|
|
2626
2623
|
if (u !== false)
|
|
2627
2624
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2636,8 +2633,8 @@ export const UpdateDocumentResponse = new UpdateDocumentResponse$Type();
|
|
|
2636
2633
|
class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
2637
2634
|
constructor() {
|
|
2638
2635
|
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.
|
|
2636
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
2637
|
+
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_IF_ZERO_VALUE", string: { minLen: "0", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } }
|
|
2641
2638
|
]);
|
|
2642
2639
|
}
|
|
2643
2640
|
create(value?: PartialMessage<DeleteDocumentRequest>): DeleteDocumentRequest {
|
|
@@ -2652,8 +2649,8 @@ class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
|
2652
2649
|
while (reader.pos < end) {
|
|
2653
2650
|
let [fieldNo, wireType] = reader.tag();
|
|
2654
2651
|
switch (fieldNo) {
|
|
2655
|
-
case /*
|
|
2656
|
-
message.documentId = reader.
|
|
2652
|
+
case /* int64 document_id */ 1:
|
|
2653
|
+
message.documentId = reader.int64().toNumber();
|
|
2657
2654
|
break;
|
|
2658
2655
|
case /* optional string reason */ 2:
|
|
2659
2656
|
message.reason = reader.string();
|
|
@@ -2670,9 +2667,9 @@ class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
|
2670
2667
|
return message;
|
|
2671
2668
|
}
|
|
2672
2669
|
internalBinaryWrite(message: DeleteDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2673
|
-
/*
|
|
2670
|
+
/* int64 document_id = 1; */
|
|
2674
2671
|
if (message.documentId !== 0)
|
|
2675
|
-
writer.tag(1, WireType.Varint).
|
|
2672
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
2676
2673
|
/* optional string reason = 2; */
|
|
2677
2674
|
if (message.reason !== undefined)
|
|
2678
2675
|
writer.tag(2, WireType.LengthDelimited).string(message.reason);
|
|
@@ -2728,7 +2725,7 @@ export const DeleteDocumentResponse = new DeleteDocumentResponse$Type();
|
|
|
2728
2725
|
class ToggleDocumentRequest$Type extends MessageType<ToggleDocumentRequest> {
|
|
2729
2726
|
constructor() {
|
|
2730
2727
|
super("services.documents.ToggleDocumentRequest", [
|
|
2731
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
2728
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2732
2729
|
{ no: 2, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2733
2730
|
]);
|
|
2734
2731
|
}
|
|
@@ -2745,8 +2742,8 @@ class ToggleDocumentRequest$Type extends MessageType<ToggleDocumentRequest> {
|
|
|
2745
2742
|
while (reader.pos < end) {
|
|
2746
2743
|
let [fieldNo, wireType] = reader.tag();
|
|
2747
2744
|
switch (fieldNo) {
|
|
2748
|
-
case /*
|
|
2749
|
-
message.documentId = reader.
|
|
2745
|
+
case /* int64 document_id */ 1:
|
|
2746
|
+
message.documentId = reader.int64().toNumber();
|
|
2750
2747
|
break;
|
|
2751
2748
|
case /* bool closed */ 2:
|
|
2752
2749
|
message.closed = reader.bool();
|
|
@@ -2763,9 +2760,9 @@ class ToggleDocumentRequest$Type extends MessageType<ToggleDocumentRequest> {
|
|
|
2763
2760
|
return message;
|
|
2764
2761
|
}
|
|
2765
2762
|
internalBinaryWrite(message: ToggleDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2766
|
-
/*
|
|
2763
|
+
/* int64 document_id = 1; */
|
|
2767
2764
|
if (message.documentId !== 0)
|
|
2768
|
-
writer.tag(1, WireType.Varint).
|
|
2765
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
2769
2766
|
/* bool closed = 2; */
|
|
2770
2767
|
if (message.closed !== false)
|
|
2771
2768
|
writer.tag(2, WireType.Varint).bool(message.closed);
|
|
@@ -2821,7 +2818,7 @@ export const ToggleDocumentResponse = new ToggleDocumentResponse$Type();
|
|
|
2821
2818
|
class ChangeDocumentOwnerRequest$Type extends MessageType<ChangeDocumentOwnerRequest> {
|
|
2822
2819
|
constructor() {
|
|
2823
2820
|
super("services.documents.ChangeDocumentOwnerRequest", [
|
|
2824
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
2821
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2825
2822
|
{ no: 2, name: "new_user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
2826
2823
|
]);
|
|
2827
2824
|
}
|
|
@@ -2837,8 +2834,8 @@ class ChangeDocumentOwnerRequest$Type extends MessageType<ChangeDocumentOwnerReq
|
|
|
2837
2834
|
while (reader.pos < end) {
|
|
2838
2835
|
let [fieldNo, wireType] = reader.tag();
|
|
2839
2836
|
switch (fieldNo) {
|
|
2840
|
-
case /*
|
|
2841
|
-
message.documentId = reader.
|
|
2837
|
+
case /* int64 document_id */ 1:
|
|
2838
|
+
message.documentId = reader.int64().toNumber();
|
|
2842
2839
|
break;
|
|
2843
2840
|
case /* optional int32 new_user_id */ 2:
|
|
2844
2841
|
message.newUserId = reader.int32();
|
|
@@ -2855,9 +2852,9 @@ class ChangeDocumentOwnerRequest$Type extends MessageType<ChangeDocumentOwnerReq
|
|
|
2855
2852
|
return message;
|
|
2856
2853
|
}
|
|
2857
2854
|
internalBinaryWrite(message: ChangeDocumentOwnerRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2858
|
-
/*
|
|
2855
|
+
/* int64 document_id = 1; */
|
|
2859
2856
|
if (message.documentId !== 0)
|
|
2860
|
-
writer.tag(1, WireType.Varint).
|
|
2857
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
2861
2858
|
/* optional int32 new_user_id = 2; */
|
|
2862
2859
|
if (message.newUserId !== undefined)
|
|
2863
2860
|
writer.tag(2, WireType.Varint).int32(message.newUserId);
|
|
@@ -2913,25 +2910,14 @@ export const ChangeDocumentOwnerResponse = new ChangeDocumentOwnerResponse$Type(
|
|
|
2913
2910
|
class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
2914
2911
|
constructor() {
|
|
2915
2912
|
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*/ }
|
|
2913
|
+
{ no: 1, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
2914
|
+
{ no: 2, name: "template_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2915
|
+
{ no: 3, name: "template_data", kind: "message", T: () => TemplateData }
|
|
2926
2916
|
]);
|
|
2927
2917
|
}
|
|
2928
2918
|
create(value?: PartialMessage<CreateDocumentRequest>): CreateDocumentRequest {
|
|
2929
2919
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2930
|
-
message.title = "";
|
|
2931
2920
|
message.contentType = 0;
|
|
2932
|
-
message.state = "";
|
|
2933
|
-
message.closed = false;
|
|
2934
|
-
message.public = false;
|
|
2935
2921
|
if (value !== undefined)
|
|
2936
2922
|
reflectionMergePartial<CreateDocumentRequest>(this, message, value);
|
|
2937
2923
|
return message;
|
|
@@ -2941,35 +2927,14 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
2941
2927
|
while (reader.pos < end) {
|
|
2942
2928
|
let [fieldNo, wireType] = reader.tag();
|
|
2943
2929
|
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:
|
|
2930
|
+
case /* resources.common.content.ContentType content_type */ 1:
|
|
2954
2931
|
message.contentType = reader.int32();
|
|
2955
2932
|
break;
|
|
2956
|
-
case /* optional
|
|
2957
|
-
message.
|
|
2958
|
-
break;
|
|
2959
|
-
case /* string state */ 6:
|
|
2960
|
-
message.state = reader.string();
|
|
2933
|
+
case /* optional int64 template_id */ 2:
|
|
2934
|
+
message.templateId = reader.int64().toNumber();
|
|
2961
2935
|
break;
|
|
2962
|
-
case /*
|
|
2963
|
-
message.
|
|
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);
|
|
2970
|
-
break;
|
|
2971
|
-
case /* optional uint64 template_id */ 10:
|
|
2972
|
-
message.templateId = reader.uint64().toNumber();
|
|
2936
|
+
case /* optional resources.documents.TemplateData template_data */ 3:
|
|
2937
|
+
message.templateData = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.templateData);
|
|
2973
2938
|
break;
|
|
2974
2939
|
default:
|
|
2975
2940
|
let u = options.readUnknownField;
|
|
@@ -2983,36 +2948,15 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
2983
2948
|
return message;
|
|
2984
2949
|
}
|
|
2985
2950
|
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; */
|
|
2951
|
+
/* resources.common.content.ContentType content_type = 1; */
|
|
2996
2952
|
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; */
|
|
2953
|
+
writer.tag(1, WireType.Varint).int32(message.contentType);
|
|
2954
|
+
/* optional int64 template_id = 2; */
|
|
3014
2955
|
if (message.templateId !== undefined)
|
|
3015
|
-
writer.tag(
|
|
2956
|
+
writer.tag(2, WireType.Varint).int64(message.templateId);
|
|
2957
|
+
/* optional resources.documents.TemplateData template_data = 3; */
|
|
2958
|
+
if (message.templateData)
|
|
2959
|
+
TemplateData.internalBinaryWrite(message.templateData, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3016
2960
|
let u = options.writeUnknownFields;
|
|
3017
2961
|
if (u !== false)
|
|
3018
2962
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3027,12 +2971,12 @@ export const CreateDocumentRequest = new CreateDocumentRequest$Type();
|
|
|
3027
2971
|
class CreateDocumentResponse$Type extends MessageType<CreateDocumentResponse> {
|
|
3028
2972
|
constructor() {
|
|
3029
2973
|
super("services.documents.CreateDocumentResponse", [
|
|
3030
|
-
{ no: 1, name: "
|
|
2974
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3031
2975
|
]);
|
|
3032
2976
|
}
|
|
3033
2977
|
create(value?: PartialMessage<CreateDocumentResponse>): CreateDocumentResponse {
|
|
3034
2978
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3035
|
-
message.
|
|
2979
|
+
message.id = 0;
|
|
3036
2980
|
if (value !== undefined)
|
|
3037
2981
|
reflectionMergePartial<CreateDocumentResponse>(this, message, value);
|
|
3038
2982
|
return message;
|
|
@@ -3042,8 +2986,8 @@ class CreateDocumentResponse$Type extends MessageType<CreateDocumentResponse> {
|
|
|
3042
2986
|
while (reader.pos < end) {
|
|
3043
2987
|
let [fieldNo, wireType] = reader.tag();
|
|
3044
2988
|
switch (fieldNo) {
|
|
3045
|
-
case /*
|
|
3046
|
-
message.
|
|
2989
|
+
case /* int64 id */ 1:
|
|
2990
|
+
message.id = reader.int64().toNumber();
|
|
3047
2991
|
break;
|
|
3048
2992
|
default:
|
|
3049
2993
|
let u = options.readUnknownField;
|
|
@@ -3057,9 +3001,9 @@ class CreateDocumentResponse$Type extends MessageType<CreateDocumentResponse> {
|
|
|
3057
3001
|
return message;
|
|
3058
3002
|
}
|
|
3059
3003
|
internalBinaryWrite(message: CreateDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3060
|
-
/*
|
|
3061
|
-
if (message.
|
|
3062
|
-
writer.tag(1, WireType.Varint).
|
|
3004
|
+
/* int64 id = 1; */
|
|
3005
|
+
if (message.id !== 0)
|
|
3006
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
3063
3007
|
let u = options.writeUnknownFields;
|
|
3064
3008
|
if (u !== false)
|
|
3065
3009
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3074,16 +3018,18 @@ export const CreateDocumentResponse = new CreateDocumentResponse$Type();
|
|
|
3074
3018
|
class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
3075
3019
|
constructor() {
|
|
3076
3020
|
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.
|
|
3021
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
3022
|
+
{ no: 2, name: "category_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3023
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" }, "tagger.tags": "alias:\"title\"" } },
|
|
3080
3024
|
{ 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: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
3083
|
-
{ no: 7, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
3025
|
+
{ no: 5, name: "content_type", kind: "enum", T: () => ["resources.common.content.ContentType", ContentType, "CONTENT_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
3026
|
+
{ no: 6, name: "data", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxBytes: "1000000" } } } },
|
|
3027
|
+
{ no: 7, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
3084
3028
|
{ no: 8, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3085
|
-
{ no: 9, name: "
|
|
3086
|
-
{ no: 10, name: "
|
|
3029
|
+
{ no: 9, name: "draft", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3030
|
+
{ no: 10, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3031
|
+
{ no: 11, name: "access", kind: "message", T: () => DocumentAccess },
|
|
3032
|
+
{ no: 12, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "tagger.tags": "alias:\"files\"" } }
|
|
3087
3033
|
]);
|
|
3088
3034
|
}
|
|
3089
3035
|
create(value?: PartialMessage<UpdateDocumentRequest>): UpdateDocumentRequest {
|
|
@@ -3093,7 +3039,9 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3093
3039
|
message.contentType = 0;
|
|
3094
3040
|
message.state = "";
|
|
3095
3041
|
message.closed = false;
|
|
3042
|
+
message.draft = false;
|
|
3096
3043
|
message.public = false;
|
|
3044
|
+
message.files = [];
|
|
3097
3045
|
if (value !== undefined)
|
|
3098
3046
|
reflectionMergePartial<UpdateDocumentRequest>(this, message, value);
|
|
3099
3047
|
return message;
|
|
@@ -3103,11 +3051,11 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3103
3051
|
while (reader.pos < end) {
|
|
3104
3052
|
let [fieldNo, wireType] = reader.tag();
|
|
3105
3053
|
switch (fieldNo) {
|
|
3106
|
-
case /*
|
|
3107
|
-
message.documentId = reader.
|
|
3054
|
+
case /* int64 document_id */ 1:
|
|
3055
|
+
message.documentId = reader.int64().toNumber();
|
|
3108
3056
|
break;
|
|
3109
|
-
case /* optional
|
|
3110
|
-
message.categoryId = reader.
|
|
3057
|
+
case /* optional int64 category_id */ 2:
|
|
3058
|
+
message.categoryId = reader.int64().toNumber();
|
|
3111
3059
|
break;
|
|
3112
3060
|
case /* string title */ 3:
|
|
3113
3061
|
message.title = reader.string();
|
|
@@ -3127,12 +3075,18 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3127
3075
|
case /* bool closed */ 8:
|
|
3128
3076
|
message.closed = reader.bool();
|
|
3129
3077
|
break;
|
|
3130
|
-
case /* bool
|
|
3078
|
+
case /* bool draft */ 9:
|
|
3079
|
+
message.draft = reader.bool();
|
|
3080
|
+
break;
|
|
3081
|
+
case /* bool public */ 10:
|
|
3131
3082
|
message.public = reader.bool();
|
|
3132
3083
|
break;
|
|
3133
|
-
case /* optional resources.documents.DocumentAccess access */
|
|
3084
|
+
case /* optional resources.documents.DocumentAccess access */ 11:
|
|
3134
3085
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3135
3086
|
break;
|
|
3087
|
+
case /* repeated resources.file.File files */ 12:
|
|
3088
|
+
message.files.push(File.internalBinaryRead(reader, reader.uint32(), options));
|
|
3089
|
+
break;
|
|
3136
3090
|
default:
|
|
3137
3091
|
let u = options.readUnknownField;
|
|
3138
3092
|
if (u === "throw")
|
|
@@ -3145,12 +3099,12 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3145
3099
|
return message;
|
|
3146
3100
|
}
|
|
3147
3101
|
internalBinaryWrite(message: UpdateDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3148
|
-
/*
|
|
3102
|
+
/* int64 document_id = 1; */
|
|
3149
3103
|
if (message.documentId !== 0)
|
|
3150
|
-
writer.tag(1, WireType.Varint).
|
|
3151
|
-
/* optional
|
|
3104
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3105
|
+
/* optional int64 category_id = 2; */
|
|
3152
3106
|
if (message.categoryId !== undefined)
|
|
3153
|
-
writer.tag(2, WireType.Varint).
|
|
3107
|
+
writer.tag(2, WireType.Varint).int64(message.categoryId);
|
|
3154
3108
|
/* string title = 3; */
|
|
3155
3109
|
if (message.title !== "")
|
|
3156
3110
|
writer.tag(3, WireType.LengthDelimited).string(message.title);
|
|
@@ -3169,12 +3123,18 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3169
3123
|
/* bool closed = 8; */
|
|
3170
3124
|
if (message.closed !== false)
|
|
3171
3125
|
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
3172
|
-
/* bool
|
|
3126
|
+
/* bool draft = 9; */
|
|
3127
|
+
if (message.draft !== false)
|
|
3128
|
+
writer.tag(9, WireType.Varint).bool(message.draft);
|
|
3129
|
+
/* bool public = 10; */
|
|
3173
3130
|
if (message.public !== false)
|
|
3174
|
-
writer.tag(
|
|
3175
|
-
/* optional resources.documents.DocumentAccess access =
|
|
3131
|
+
writer.tag(10, WireType.Varint).bool(message.public);
|
|
3132
|
+
/* optional resources.documents.DocumentAccess access = 11; */
|
|
3176
3133
|
if (message.access)
|
|
3177
|
-
DocumentAccess.internalBinaryWrite(message.access, writer.tag(
|
|
3134
|
+
DocumentAccess.internalBinaryWrite(message.access, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
3135
|
+
/* repeated resources.file.File files = 12; */
|
|
3136
|
+
for (let i = 0; i < message.files.length; i++)
|
|
3137
|
+
File.internalBinaryWrite(message.files[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
3178
3138
|
let u = options.writeUnknownFields;
|
|
3179
3139
|
if (u !== false)
|
|
3180
3140
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3189,9 +3149,9 @@ export const UpdateDocumentRequest = new UpdateDocumentRequest$Type();
|
|
|
3189
3149
|
class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityRequest> {
|
|
3190
3150
|
constructor() {
|
|
3191
3151
|
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.
|
|
3152
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3153
|
+
{ no: 2, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3154
|
+
{ no: 3, name: "activity_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { in: [13, 14, 15, 16, 17, 18] } } } } } }
|
|
3195
3155
|
]);
|
|
3196
3156
|
}
|
|
3197
3157
|
create(value?: PartialMessage<ListDocumentActivityRequest>): ListDocumentActivityRequest {
|
|
@@ -3210,8 +3170,8 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3210
3170
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
3211
3171
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3212
3172
|
break;
|
|
3213
|
-
case /*
|
|
3214
|
-
message.documentId = reader.
|
|
3173
|
+
case /* int64 document_id */ 2:
|
|
3174
|
+
message.documentId = reader.int64().toNumber();
|
|
3215
3175
|
break;
|
|
3216
3176
|
case /* repeated resources.documents.DocActivityType activity_types */ 3:
|
|
3217
3177
|
if (wireType === WireType.LengthDelimited)
|
|
@@ -3235,9 +3195,9 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3235
3195
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
3236
3196
|
if (message.pagination)
|
|
3237
3197
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3238
|
-
/*
|
|
3198
|
+
/* int64 document_id = 2; */
|
|
3239
3199
|
if (message.documentId !== 0)
|
|
3240
|
-
writer.tag(2, WireType.Varint).
|
|
3200
|
+
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
3241
3201
|
/* repeated resources.documents.DocActivityType activity_types = 3; */
|
|
3242
3202
|
if (message.activityTypes.length) {
|
|
3243
3203
|
writer.tag(3, WireType.LengthDelimited).fork();
|
|
@@ -3259,8 +3219,8 @@ export const ListDocumentActivityRequest = new ListDocumentActivityRequest$Type(
|
|
|
3259
3219
|
class ListDocumentActivityResponse$Type extends MessageType<ListDocumentActivityResponse> {
|
|
3260
3220
|
constructor() {
|
|
3261
3221
|
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 }
|
|
3222
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
3223
|
+
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocActivity, options: { "codegen.itemslen.enabled": true } }
|
|
3264
3224
|
]);
|
|
3265
3225
|
}
|
|
3266
3226
|
create(value?: PartialMessage<ListDocumentActivityResponse>): ListDocumentActivityResponse {
|
|
@@ -3313,8 +3273,8 @@ export const ListDocumentActivityResponse = new ListDocumentActivityResponse$Typ
|
|
|
3313
3273
|
class ListDocumentReqsRequest$Type extends MessageType<ListDocumentReqsRequest> {
|
|
3314
3274
|
constructor() {
|
|
3315
3275
|
super("services.documents.ListDocumentReqsRequest", [
|
|
3316
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
3317
|
-
{ no: 2, name: "document_id", kind: "scalar", T:
|
|
3276
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3277
|
+
{ no: 2, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3318
3278
|
]);
|
|
3319
3279
|
}
|
|
3320
3280
|
create(value?: PartialMessage<ListDocumentReqsRequest>): ListDocumentReqsRequest {
|
|
@@ -3332,8 +3292,8 @@ class ListDocumentReqsRequest$Type extends MessageType<ListDocumentReqsRequest>
|
|
|
3332
3292
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
3333
3293
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3334
3294
|
break;
|
|
3335
|
-
case /*
|
|
3336
|
-
message.documentId = reader.
|
|
3295
|
+
case /* int64 document_id */ 2:
|
|
3296
|
+
message.documentId = reader.int64().toNumber();
|
|
3337
3297
|
break;
|
|
3338
3298
|
default:
|
|
3339
3299
|
let u = options.readUnknownField;
|
|
@@ -3350,9 +3310,9 @@ class ListDocumentReqsRequest$Type extends MessageType<ListDocumentReqsRequest>
|
|
|
3350
3310
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
3351
3311
|
if (message.pagination)
|
|
3352
3312
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3353
|
-
/*
|
|
3313
|
+
/* int64 document_id = 2; */
|
|
3354
3314
|
if (message.documentId !== 0)
|
|
3355
|
-
writer.tag(2, WireType.Varint).
|
|
3315
|
+
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
3356
3316
|
let u = options.writeUnknownFields;
|
|
3357
3317
|
if (u !== false)
|
|
3358
3318
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3367,8 +3327,8 @@ export const ListDocumentReqsRequest = new ListDocumentReqsRequest$Type();
|
|
|
3367
3327
|
class ListDocumentReqsResponse$Type extends MessageType<ListDocumentReqsResponse> {
|
|
3368
3328
|
constructor() {
|
|
3369
3329
|
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 }
|
|
3330
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
3331
|
+
{ no: 2, name: "requests", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocRequest, options: { "codegen.itemslen.enabled": true } }
|
|
3372
3332
|
]);
|
|
3373
3333
|
}
|
|
3374
3334
|
create(value?: PartialMessage<ListDocumentReqsResponse>): ListDocumentReqsResponse {
|
|
@@ -3421,9 +3381,9 @@ export const ListDocumentReqsResponse = new ListDocumentReqsResponse$Type();
|
|
|
3421
3381
|
class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest> {
|
|
3422
3382
|
constructor() {
|
|
3423
3383
|
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.
|
|
3384
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3385
|
+
{ no: 2, name: "request_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { in: [13, 14, 15, 16, 17, 18] } } } },
|
|
3386
|
+
{ 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
3387
|
{ no: 4, name: "data", kind: "message", T: () => DocActivityData }
|
|
3428
3388
|
]);
|
|
3429
3389
|
}
|
|
@@ -3440,8 +3400,8 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3440
3400
|
while (reader.pos < end) {
|
|
3441
3401
|
let [fieldNo, wireType] = reader.tag();
|
|
3442
3402
|
switch (fieldNo) {
|
|
3443
|
-
case /*
|
|
3444
|
-
message.documentId = reader.
|
|
3403
|
+
case /* int64 document_id */ 1:
|
|
3404
|
+
message.documentId = reader.int64().toNumber();
|
|
3445
3405
|
break;
|
|
3446
3406
|
case /* resources.documents.DocActivityType request_type */ 2:
|
|
3447
3407
|
message.requestType = reader.int32();
|
|
@@ -3464,9 +3424,9 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3464
3424
|
return message;
|
|
3465
3425
|
}
|
|
3466
3426
|
internalBinaryWrite(message: CreateDocumentReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3467
|
-
/*
|
|
3427
|
+
/* int64 document_id = 1; */
|
|
3468
3428
|
if (message.documentId !== 0)
|
|
3469
|
-
writer.tag(1, WireType.Varint).
|
|
3429
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3470
3430
|
/* resources.documents.DocActivityType request_type = 2; */
|
|
3471
3431
|
if (message.requestType !== 0)
|
|
3472
3432
|
writer.tag(2, WireType.Varint).int32(message.requestType);
|
|
@@ -3536,9 +3496,9 @@ export const CreateDocumentReqResponse = new CreateDocumentReqResponse$Type();
|
|
|
3536
3496
|
class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest> {
|
|
3537
3497
|
constructor() {
|
|
3538
3498
|
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.
|
|
3499
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3500
|
+
{ no: 2, name: "request_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3501
|
+
{ 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
3502
|
{ no: 4, name: "data", kind: "message", T: () => DocActivityData },
|
|
3543
3503
|
{ no: 5, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
3544
3504
|
]);
|
|
@@ -3557,11 +3517,11 @@ class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest
|
|
|
3557
3517
|
while (reader.pos < end) {
|
|
3558
3518
|
let [fieldNo, wireType] = reader.tag();
|
|
3559
3519
|
switch (fieldNo) {
|
|
3560
|
-
case /*
|
|
3561
|
-
message.documentId = reader.
|
|
3520
|
+
case /* int64 document_id */ 1:
|
|
3521
|
+
message.documentId = reader.int64().toNumber();
|
|
3562
3522
|
break;
|
|
3563
|
-
case /*
|
|
3564
|
-
message.requestId = reader.
|
|
3523
|
+
case /* int64 request_id */ 2:
|
|
3524
|
+
message.requestId = reader.int64().toNumber();
|
|
3565
3525
|
break;
|
|
3566
3526
|
case /* optional string reason */ 3:
|
|
3567
3527
|
message.reason = reader.string();
|
|
@@ -3584,12 +3544,12 @@ class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest
|
|
|
3584
3544
|
return message;
|
|
3585
3545
|
}
|
|
3586
3546
|
internalBinaryWrite(message: UpdateDocumentReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3587
|
-
/*
|
|
3547
|
+
/* int64 document_id = 1; */
|
|
3588
3548
|
if (message.documentId !== 0)
|
|
3589
|
-
writer.tag(1, WireType.Varint).
|
|
3590
|
-
/*
|
|
3549
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3550
|
+
/* int64 request_id = 2; */
|
|
3591
3551
|
if (message.requestId !== 0)
|
|
3592
|
-
writer.tag(2, WireType.Varint).
|
|
3552
|
+
writer.tag(2, WireType.Varint).int64(message.requestId);
|
|
3593
3553
|
/* optional string reason = 3; */
|
|
3594
3554
|
if (message.reason !== undefined)
|
|
3595
3555
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
@@ -3659,7 +3619,7 @@ export const UpdateDocumentReqResponse = new UpdateDocumentReqResponse$Type();
|
|
|
3659
3619
|
class DeleteDocumentReqRequest$Type extends MessageType<DeleteDocumentReqRequest> {
|
|
3660
3620
|
constructor() {
|
|
3661
3621
|
super("services.documents.DeleteDocumentReqRequest", [
|
|
3662
|
-
{ no: 1, name: "request_id", kind: "scalar", T:
|
|
3622
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3663
3623
|
]);
|
|
3664
3624
|
}
|
|
3665
3625
|
create(value?: PartialMessage<DeleteDocumentReqRequest>): DeleteDocumentReqRequest {
|
|
@@ -3674,8 +3634,8 @@ class DeleteDocumentReqRequest$Type extends MessageType<DeleteDocumentReqRequest
|
|
|
3674
3634
|
while (reader.pos < end) {
|
|
3675
3635
|
let [fieldNo, wireType] = reader.tag();
|
|
3676
3636
|
switch (fieldNo) {
|
|
3677
|
-
case /*
|
|
3678
|
-
message.requestId = reader.
|
|
3637
|
+
case /* int64 request_id */ 1:
|
|
3638
|
+
message.requestId = reader.int64().toNumber();
|
|
3679
3639
|
break;
|
|
3680
3640
|
default:
|
|
3681
3641
|
let u = options.readUnknownField;
|
|
@@ -3689,9 +3649,9 @@ class DeleteDocumentReqRequest$Type extends MessageType<DeleteDocumentReqRequest
|
|
|
3689
3649
|
return message;
|
|
3690
3650
|
}
|
|
3691
3651
|
internalBinaryWrite(message: DeleteDocumentReqRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3692
|
-
/*
|
|
3652
|
+
/* int64 request_id = 1; */
|
|
3693
3653
|
if (message.requestId !== 0)
|
|
3694
|
-
writer.tag(1, WireType.Varint).
|
|
3654
|
+
writer.tag(1, WireType.Varint).int64(message.requestId);
|
|
3695
3655
|
let u = options.writeUnknownFields;
|
|
3696
3656
|
if (u !== false)
|
|
3697
3657
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3744,7 +3704,7 @@ export const DeleteDocumentReqResponse = new DeleteDocumentReqResponse$Type();
|
|
|
3744
3704
|
class GetDocumentAccessRequest$Type extends MessageType<GetDocumentAccessRequest> {
|
|
3745
3705
|
constructor() {
|
|
3746
3706
|
super("services.documents.GetDocumentAccessRequest", [
|
|
3747
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3707
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
3748
3708
|
]);
|
|
3749
3709
|
}
|
|
3750
3710
|
create(value?: PartialMessage<GetDocumentAccessRequest>): GetDocumentAccessRequest {
|
|
@@ -3759,8 +3719,8 @@ class GetDocumentAccessRequest$Type extends MessageType<GetDocumentAccessRequest
|
|
|
3759
3719
|
while (reader.pos < end) {
|
|
3760
3720
|
let [fieldNo, wireType] = reader.tag();
|
|
3761
3721
|
switch (fieldNo) {
|
|
3762
|
-
case /*
|
|
3763
|
-
message.documentId = reader.
|
|
3722
|
+
case /* int64 document_id */ 1:
|
|
3723
|
+
message.documentId = reader.int64().toNumber();
|
|
3764
3724
|
break;
|
|
3765
3725
|
default:
|
|
3766
3726
|
let u = options.readUnknownField;
|
|
@@ -3774,9 +3734,9 @@ class GetDocumentAccessRequest$Type extends MessageType<GetDocumentAccessRequest
|
|
|
3774
3734
|
return message;
|
|
3775
3735
|
}
|
|
3776
3736
|
internalBinaryWrite(message: GetDocumentAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3777
|
-
/*
|
|
3737
|
+
/* int64 document_id = 1; */
|
|
3778
3738
|
if (message.documentId !== 0)
|
|
3779
|
-
writer.tag(1, WireType.Varint).
|
|
3739
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3780
3740
|
let u = options.writeUnknownFields;
|
|
3781
3741
|
if (u !== false)
|
|
3782
3742
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3791,7 +3751,7 @@ export const GetDocumentAccessRequest = new GetDocumentAccessRequest$Type();
|
|
|
3791
3751
|
class GetDocumentAccessResponse$Type extends MessageType<GetDocumentAccessResponse> {
|
|
3792
3752
|
constructor() {
|
|
3793
3753
|
super("services.documents.GetDocumentAccessResponse", [
|
|
3794
|
-
{ no: 1, name: "access", kind: "message", T: () => DocumentAccess, options: { "validate.
|
|
3754
|
+
{ no: 1, name: "access", kind: "message", T: () => DocumentAccess, options: { "buf.validate.field": { required: true } } }
|
|
3795
3755
|
]);
|
|
3796
3756
|
}
|
|
3797
3757
|
create(value?: PartialMessage<GetDocumentAccessResponse>): GetDocumentAccessResponse {
|
|
@@ -3837,8 +3797,8 @@ export const GetDocumentAccessResponse = new GetDocumentAccessResponse$Type();
|
|
|
3837
3797
|
class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest> {
|
|
3838
3798
|
constructor() {
|
|
3839
3799
|
super("services.documents.SetDocumentAccessRequest", [
|
|
3840
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
3841
|
-
{ no: 2, name: "access", kind: "message", T: () => DocumentAccess, options: { "validate.
|
|
3800
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
3801
|
+
{ no: 2, name: "access", kind: "message", T: () => DocumentAccess, options: { "buf.validate.field": { required: true } } }
|
|
3842
3802
|
]);
|
|
3843
3803
|
}
|
|
3844
3804
|
create(value?: PartialMessage<SetDocumentAccessRequest>): SetDocumentAccessRequest {
|
|
@@ -3853,8 +3813,8 @@ class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest
|
|
|
3853
3813
|
while (reader.pos < end) {
|
|
3854
3814
|
let [fieldNo, wireType] = reader.tag();
|
|
3855
3815
|
switch (fieldNo) {
|
|
3856
|
-
case /*
|
|
3857
|
-
message.documentId = reader.
|
|
3816
|
+
case /* int64 document_id */ 1:
|
|
3817
|
+
message.documentId = reader.int64().toNumber();
|
|
3858
3818
|
break;
|
|
3859
3819
|
case /* resources.documents.DocumentAccess access */ 2:
|
|
3860
3820
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
@@ -3871,9 +3831,9 @@ class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest
|
|
|
3871
3831
|
return message;
|
|
3872
3832
|
}
|
|
3873
3833
|
internalBinaryWrite(message: SetDocumentAccessRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3874
|
-
/*
|
|
3834
|
+
/* int64 document_id = 1; */
|
|
3875
3835
|
if (message.documentId !== 0)
|
|
3876
|
-
writer.tag(1, WireType.Varint).
|
|
3836
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3877
3837
|
/* resources.documents.DocumentAccess access = 2; */
|
|
3878
3838
|
if (message.access)
|
|
3879
3839
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -3929,10 +3889,10 @@ export const SetDocumentAccessResponse = new SetDocumentAccessResponse$Type();
|
|
|
3929
3889
|
class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest> {
|
|
3930
3890
|
constructor() {
|
|
3931
3891
|
super("services.documents.ListUserDocumentsRequest", [
|
|
3932
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
3892
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3933
3893
|
{ 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.
|
|
3894
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
3895
|
+
{ no: 4, name: "relations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.DocRelation", DocRelation, "DOC_RELATION_"], options: { "buf.validate.field": { repeated: { maxItems: "3" } } } },
|
|
3936
3896
|
{ no: 5, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3937
3897
|
]);
|
|
3938
3898
|
}
|
|
@@ -4013,8 +3973,8 @@ export const ListUserDocumentsRequest = new ListUserDocumentsRequest$Type();
|
|
|
4013
3973
|
class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsResponse> {
|
|
4014
3974
|
constructor() {
|
|
4015
3975
|
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 }
|
|
3976
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
3977
|
+
{ no: 2, name: "relations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentRelation, options: { "codegen.itemslen.enabled": true } }
|
|
4018
3978
|
]);
|
|
4019
3979
|
}
|
|
4020
3980
|
create(value?: PartialMessage<ListUserDocumentsResponse>): ListUserDocumentsResponse {
|
|
@@ -4152,7 +4112,7 @@ export const ListCategoriesResponse = new ListCategoriesResponse$Type();
|
|
|
4152
4112
|
class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCategoryRequest> {
|
|
4153
4113
|
constructor() {
|
|
4154
4114
|
super("services.documents.CreateOrUpdateCategoryRequest", [
|
|
4155
|
-
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "validate.
|
|
4115
|
+
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "buf.validate.field": { required: true } } }
|
|
4156
4116
|
]);
|
|
4157
4117
|
}
|
|
4158
4118
|
create(value?: PartialMessage<CreateOrUpdateCategoryRequest>): CreateOrUpdateCategoryRequest {
|
|
@@ -4198,7 +4158,7 @@ export const CreateOrUpdateCategoryRequest = new CreateOrUpdateCategoryRequest$T
|
|
|
4198
4158
|
class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCategoryResponse> {
|
|
4199
4159
|
constructor() {
|
|
4200
4160
|
super("services.documents.CreateOrUpdateCategoryResponse", [
|
|
4201
|
-
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "validate.
|
|
4161
|
+
{ no: 1, name: "category", kind: "message", T: () => Category, options: { "buf.validate.field": { required: true } } }
|
|
4202
4162
|
]);
|
|
4203
4163
|
}
|
|
4204
4164
|
create(value?: PartialMessage<CreateOrUpdateCategoryResponse>): CreateOrUpdateCategoryResponse {
|
|
@@ -4244,7 +4204,7 @@ export const CreateOrUpdateCategoryResponse = new CreateOrUpdateCategoryResponse
|
|
|
4244
4204
|
class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
4245
4205
|
constructor() {
|
|
4246
4206
|
super("services.documents.DeleteCategoryRequest", [
|
|
4247
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
4207
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
4248
4208
|
]);
|
|
4249
4209
|
}
|
|
4250
4210
|
create(value?: PartialMessage<DeleteCategoryRequest>): DeleteCategoryRequest {
|
|
@@ -4259,8 +4219,8 @@ class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
|
4259
4219
|
while (reader.pos < end) {
|
|
4260
4220
|
let [fieldNo, wireType] = reader.tag();
|
|
4261
4221
|
switch (fieldNo) {
|
|
4262
|
-
case /*
|
|
4263
|
-
message.id = reader.
|
|
4222
|
+
case /* int64 id */ 1:
|
|
4223
|
+
message.id = reader.int64().toNumber();
|
|
4264
4224
|
break;
|
|
4265
4225
|
default:
|
|
4266
4226
|
let u = options.readUnknownField;
|
|
@@ -4274,9 +4234,9 @@ class DeleteCategoryRequest$Type extends MessageType<DeleteCategoryRequest> {
|
|
|
4274
4234
|
return message;
|
|
4275
4235
|
}
|
|
4276
4236
|
internalBinaryWrite(message: DeleteCategoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4277
|
-
/*
|
|
4237
|
+
/* int64 id = 1; */
|
|
4278
4238
|
if (message.id !== 0)
|
|
4279
|
-
writer.tag(1, WireType.Varint).
|
|
4239
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
4280
4240
|
let u = options.writeUnknownFields;
|
|
4281
4241
|
if (u !== false)
|
|
4282
4242
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4329,7 +4289,8 @@ export const DeleteCategoryResponse = new DeleteCategoryResponse$Type();
|
|
|
4329
4289
|
class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest> {
|
|
4330
4290
|
constructor() {
|
|
4331
4291
|
super("services.documents.ListDocumentPinsRequest", [
|
|
4332
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
4292
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
4293
|
+
{ no: 2, name: "personal", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
4333
4294
|
]);
|
|
4334
4295
|
}
|
|
4335
4296
|
create(value?: PartialMessage<ListDocumentPinsRequest>): ListDocumentPinsRequest {
|
|
@@ -4346,6 +4307,9 @@ class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest>
|
|
|
4346
4307
|
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
4347
4308
|
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
4348
4309
|
break;
|
|
4310
|
+
case /* optional bool personal */ 2:
|
|
4311
|
+
message.personal = reader.bool();
|
|
4312
|
+
break;
|
|
4349
4313
|
default:
|
|
4350
4314
|
let u = options.readUnknownField;
|
|
4351
4315
|
if (u === "throw")
|
|
@@ -4361,6 +4325,9 @@ class ListDocumentPinsRequest$Type extends MessageType<ListDocumentPinsRequest>
|
|
|
4361
4325
|
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
4362
4326
|
if (message.pagination)
|
|
4363
4327
|
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4328
|
+
/* optional bool personal = 2; */
|
|
4329
|
+
if (message.personal !== undefined)
|
|
4330
|
+
writer.tag(2, WireType.Varint).bool(message.personal);
|
|
4364
4331
|
let u = options.writeUnknownFields;
|
|
4365
4332
|
if (u !== false)
|
|
4366
4333
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4375,8 +4342,8 @@ export const ListDocumentPinsRequest = new ListDocumentPinsRequest$Type();
|
|
|
4375
4342
|
class ListDocumentPinsResponse$Type extends MessageType<ListDocumentPinsResponse> {
|
|
4376
4343
|
constructor() {
|
|
4377
4344
|
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 }
|
|
4345
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
4346
|
+
{ no: 2, name: "documents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentShort, options: { "codegen.itemslen.enabled": true } }
|
|
4380
4347
|
]);
|
|
4381
4348
|
}
|
|
4382
4349
|
create(value?: PartialMessage<ListDocumentPinsResponse>): ListDocumentPinsResponse {
|
|
@@ -4429,8 +4396,9 @@ export const ListDocumentPinsResponse = new ListDocumentPinsResponse$Type();
|
|
|
4429
4396
|
class ToggleDocumentPinRequest$Type extends MessageType<ToggleDocumentPinRequest> {
|
|
4430
4397
|
constructor() {
|
|
4431
4398
|
super("services.documents.ToggleDocumentPinRequest", [
|
|
4432
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
4433
|
-
{ no: 2, name: "state", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
4399
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
4400
|
+
{ no: 2, name: "state", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4401
|
+
{ no: 3, name: "personal", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
4434
4402
|
]);
|
|
4435
4403
|
}
|
|
4436
4404
|
create(value?: PartialMessage<ToggleDocumentPinRequest>): ToggleDocumentPinRequest {
|
|
@@ -4446,12 +4414,15 @@ class ToggleDocumentPinRequest$Type extends MessageType<ToggleDocumentPinRequest
|
|
|
4446
4414
|
while (reader.pos < end) {
|
|
4447
4415
|
let [fieldNo, wireType] = reader.tag();
|
|
4448
4416
|
switch (fieldNo) {
|
|
4449
|
-
case /*
|
|
4450
|
-
message.documentId = reader.
|
|
4417
|
+
case /* int64 document_id */ 1:
|
|
4418
|
+
message.documentId = reader.int64().toNumber();
|
|
4451
4419
|
break;
|
|
4452
4420
|
case /* bool state */ 2:
|
|
4453
4421
|
message.state = reader.bool();
|
|
4454
4422
|
break;
|
|
4423
|
+
case /* optional bool personal */ 3:
|
|
4424
|
+
message.personal = reader.bool();
|
|
4425
|
+
break;
|
|
4455
4426
|
default:
|
|
4456
4427
|
let u = options.readUnknownField;
|
|
4457
4428
|
if (u === "throw")
|
|
@@ -4464,12 +4435,15 @@ class ToggleDocumentPinRequest$Type extends MessageType<ToggleDocumentPinRequest
|
|
|
4464
4435
|
return message;
|
|
4465
4436
|
}
|
|
4466
4437
|
internalBinaryWrite(message: ToggleDocumentPinRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4467
|
-
/*
|
|
4438
|
+
/* int64 document_id = 1; */
|
|
4468
4439
|
if (message.documentId !== 0)
|
|
4469
|
-
writer.tag(1, WireType.Varint).
|
|
4440
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
4470
4441
|
/* bool state = 2; */
|
|
4471
4442
|
if (message.state !== false)
|
|
4472
4443
|
writer.tag(2, WireType.Varint).bool(message.state);
|
|
4444
|
+
/* optional bool personal = 3; */
|
|
4445
|
+
if (message.personal !== undefined)
|
|
4446
|
+
writer.tag(3, WireType.Varint).bool(message.personal);
|
|
4473
4447
|
let u = options.writeUnknownFields;
|
|
4474
4448
|
if (u !== false)
|
|
4475
4449
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4484,12 +4458,11 @@ export const ToggleDocumentPinRequest = new ToggleDocumentPinRequest$Type();
|
|
|
4484
4458
|
class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinResponse> {
|
|
4485
4459
|
constructor() {
|
|
4486
4460
|
super("services.documents.ToggleDocumentPinResponse", [
|
|
4487
|
-
{ no: 1, name: "
|
|
4461
|
+
{ no: 1, name: "pin", kind: "message", T: () => DocumentPin, options: { "tagger.tags": "alias:\"pin\"" } }
|
|
4488
4462
|
]);
|
|
4489
4463
|
}
|
|
4490
4464
|
create(value?: PartialMessage<ToggleDocumentPinResponse>): ToggleDocumentPinResponse {
|
|
4491
4465
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4492
|
-
message.state = false;
|
|
4493
4466
|
if (value !== undefined)
|
|
4494
4467
|
reflectionMergePartial<ToggleDocumentPinResponse>(this, message, value);
|
|
4495
4468
|
return message;
|
|
@@ -4499,8 +4472,8 @@ class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinRespon
|
|
|
4499
4472
|
while (reader.pos < end) {
|
|
4500
4473
|
let [fieldNo, wireType] = reader.tag();
|
|
4501
4474
|
switch (fieldNo) {
|
|
4502
|
-
case /*
|
|
4503
|
-
message.
|
|
4475
|
+
case /* optional resources.documents.DocumentPin pin */ 1:
|
|
4476
|
+
message.pin = DocumentPin.internalBinaryRead(reader, reader.uint32(), options, message.pin);
|
|
4504
4477
|
break;
|
|
4505
4478
|
default:
|
|
4506
4479
|
let u = options.readUnknownField;
|
|
@@ -4514,9 +4487,9 @@ class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinRespon
|
|
|
4514
4487
|
return message;
|
|
4515
4488
|
}
|
|
4516
4489
|
internalBinaryWrite(message: ToggleDocumentPinResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4517
|
-
/*
|
|
4518
|
-
if (message.
|
|
4519
|
-
writer.tag(1, WireType.
|
|
4490
|
+
/* optional resources.documents.DocumentPin pin = 1; */
|
|
4491
|
+
if (message.pin)
|
|
4492
|
+
DocumentPin.internalBinaryWrite(message.pin, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4520
4493
|
let u = options.writeUnknownFields;
|
|
4521
4494
|
if (u !== false)
|
|
4522
4495
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4531,14 +4504,16 @@ export const ToggleDocumentPinResponse = new ToggleDocumentPinResponse$Type();
|
|
|
4531
4504
|
class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderRequest> {
|
|
4532
4505
|
constructor() {
|
|
4533
4506
|
super("services.documents.SetDocumentReminderRequest", [
|
|
4534
|
-
{ no: 1, name: "document_id", kind: "scalar", T:
|
|
4507
|
+
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
4535
4508
|
{ no: 2, name: "reminder_time", kind: "message", T: () => Timestamp },
|
|
4536
|
-
{ no: 3, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
4509
|
+
{ no: 3, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxBytes: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true, method: "StripTags" } } },
|
|
4510
|
+
{ no: 4, name: "max_reminder_count", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { lte: 10, gte: 1 } } } }
|
|
4537
4511
|
]);
|
|
4538
4512
|
}
|
|
4539
4513
|
create(value?: PartialMessage<SetDocumentReminderRequest>): SetDocumentReminderRequest {
|
|
4540
4514
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4541
4515
|
message.documentId = 0;
|
|
4516
|
+
message.maxReminderCount = 0;
|
|
4542
4517
|
if (value !== undefined)
|
|
4543
4518
|
reflectionMergePartial<SetDocumentReminderRequest>(this, message, value);
|
|
4544
4519
|
return message;
|
|
@@ -4548,8 +4523,8 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4548
4523
|
while (reader.pos < end) {
|
|
4549
4524
|
let [fieldNo, wireType] = reader.tag();
|
|
4550
4525
|
switch (fieldNo) {
|
|
4551
|
-
case /*
|
|
4552
|
-
message.documentId = reader.
|
|
4526
|
+
case /* int64 document_id */ 1:
|
|
4527
|
+
message.documentId = reader.int64().toNumber();
|
|
4553
4528
|
break;
|
|
4554
4529
|
case /* optional resources.timestamp.Timestamp reminder_time */ 2:
|
|
4555
4530
|
message.reminderTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.reminderTime);
|
|
@@ -4557,6 +4532,9 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4557
4532
|
case /* optional string message */ 3:
|
|
4558
4533
|
message.message = reader.string();
|
|
4559
4534
|
break;
|
|
4535
|
+
case /* int32 max_reminder_count */ 4:
|
|
4536
|
+
message.maxReminderCount = reader.int32();
|
|
4537
|
+
break;
|
|
4560
4538
|
default:
|
|
4561
4539
|
let u = options.readUnknownField;
|
|
4562
4540
|
if (u === "throw")
|
|
@@ -4569,15 +4547,18 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4569
4547
|
return message;
|
|
4570
4548
|
}
|
|
4571
4549
|
internalBinaryWrite(message: SetDocumentReminderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4572
|
-
/*
|
|
4550
|
+
/* int64 document_id = 1; */
|
|
4573
4551
|
if (message.documentId !== 0)
|
|
4574
|
-
writer.tag(1, WireType.Varint).
|
|
4552
|
+
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
4575
4553
|
/* optional resources.timestamp.Timestamp reminder_time = 2; */
|
|
4576
4554
|
if (message.reminderTime)
|
|
4577
4555
|
Timestamp.internalBinaryWrite(message.reminderTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4578
4556
|
/* optional string message = 3; */
|
|
4579
4557
|
if (message.message !== undefined)
|
|
4580
4558
|
writer.tag(3, WireType.LengthDelimited).string(message.message);
|
|
4559
|
+
/* int32 max_reminder_count = 4; */
|
|
4560
|
+
if (message.maxReminderCount !== 0)
|
|
4561
|
+
writer.tag(4, WireType.Varint).int32(message.maxReminderCount);
|
|
4581
4562
|
let u = options.writeUnknownFields;
|
|
4582
4563
|
if (u !== false)
|
|
4583
4564
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4630,40 +4611,41 @@ export const SetDocumentReminderResponse = new SetDocumentReminderResponse$Type(
|
|
|
4630
4611
|
* @generated ServiceType for protobuf service services.documents.DocumentsService
|
|
4631
4612
|
*/
|
|
4632
4613
|
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 }
|
|
4614
|
+
{ name: "ListTemplates", options: { "codegen.perms.perms": { enabled: true } }, I: ListTemplatesRequest, O: ListTemplatesResponse },
|
|
4615
|
+
{ name: "GetTemplate", options: { "codegen.perms.perms": { enabled: true, name: "ListTemplates" } }, I: GetTemplateRequest, O: GetTemplateResponse },
|
|
4616
|
+
{ name: "CreateTemplate", options: { "codegen.perms.perms": { enabled: true } }, I: CreateTemplateRequest, O: CreateTemplateResponse },
|
|
4617
|
+
{ name: "UpdateTemplate", options: { "codegen.perms.perms": { enabled: true, name: "CreateTemplate" } }, I: UpdateTemplateRequest, O: UpdateTemplateResponse },
|
|
4618
|
+
{ name: "DeleteTemplate", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteTemplateRequest, O: DeleteTemplateResponse },
|
|
4619
|
+
{ name: "ListDocuments", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentsRequest, O: ListDocumentsResponse },
|
|
4620
|
+
{ name: "GetDocument", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentRequest, O: GetDocumentResponse },
|
|
4621
|
+
{ name: "CreateDocument", options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: CreateDocumentRequest, O: CreateDocumentResponse },
|
|
4622
|
+
{ 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 },
|
|
4623
|
+
{ 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 },
|
|
4624
|
+
{ 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 },
|
|
4625
|
+
{ 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 },
|
|
4626
|
+
{ name: "GetDocumentReferences", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentReferencesRequest, O: GetDocumentReferencesResponse },
|
|
4627
|
+
{ name: "GetDocumentRelations", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentRelationsRequest, O: GetDocumentRelationsResponse },
|
|
4628
|
+
{ name: "AddDocumentReference", options: { "codegen.perms.perms": { enabled: true } }, I: AddDocumentReferenceRequest, O: AddDocumentReferenceResponse },
|
|
4629
|
+
{ name: "RemoveDocumentReference", options: { "codegen.perms.perms": { enabled: true, name: "AddDocumentReference" } }, I: RemoveDocumentReferenceRequest, O: RemoveDocumentReferenceResponse },
|
|
4630
|
+
{ name: "AddDocumentRelation", options: { "codegen.perms.perms": { enabled: true } }, I: AddDocumentRelationRequest, O: AddDocumentRelationResponse },
|
|
4631
|
+
{ name: "RemoveDocumentRelation", options: { "codegen.perms.perms": { enabled: true, name: "AddDocumentRelation" } }, I: RemoveDocumentRelationRequest, O: RemoveDocumentRelationResponse },
|
|
4632
|
+
{ name: "GetComments", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetCommentsRequest, O: GetCommentsResponse },
|
|
4633
|
+
{ name: "PostComment", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: PostCommentRequest, O: PostCommentResponse },
|
|
4634
|
+
{ name: "EditComment", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: EditCommentRequest, O: EditCommentResponse },
|
|
4635
|
+
{ 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 },
|
|
4636
|
+
{ name: "GetDocumentAccess", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: GetDocumentAccessRequest, O: GetDocumentAccessResponse },
|
|
4637
|
+
{ name: "SetDocumentAccess", options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: SetDocumentAccessRequest, O: SetDocumentAccessResponse },
|
|
4638
|
+
{ name: "ListDocumentActivity", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentActivityRequest, O: ListDocumentActivityResponse },
|
|
4639
|
+
{ name: "ListDocumentReqs", options: { "codegen.perms.perms": { enabled: true } }, I: ListDocumentReqsRequest, O: ListDocumentReqsResponse },
|
|
4640
|
+
{ 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 },
|
|
4641
|
+
{ name: "UpdateDocumentReq", options: { "codegen.perms.perms": { enabled: true, name: "CreateDocumentReq" } }, I: UpdateDocumentReqRequest, O: UpdateDocumentReqResponse },
|
|
4642
|
+
{ name: "DeleteDocumentReq", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDocumentReqRequest, O: DeleteDocumentReqResponse },
|
|
4643
|
+
{ name: "ListUserDocuments", options: { "codegen.perms.perms": { enabled: true } }, I: ListUserDocumentsRequest, O: ListUserDocumentsResponse },
|
|
4644
|
+
{ name: "ListCategories", options: { "codegen.perms.perms": { enabled: true } }, I: ListCategoriesRequest, O: ListCategoriesResponse },
|
|
4645
|
+
{ name: "CreateOrUpdateCategory", options: { "codegen.perms.perms": { enabled: true } }, I: CreateOrUpdateCategoryRequest, O: CreateOrUpdateCategoryResponse },
|
|
4646
|
+
{ name: "DeleteCategory", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteCategoryRequest, O: DeleteCategoryResponse },
|
|
4647
|
+
{ name: "ListDocumentPins", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: ListDocumentPinsRequest, O: ListDocumentPinsResponse },
|
|
4648
|
+
{ name: "ToggleDocumentPin", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Types", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["JobWide"] }] } }, I: ToggleDocumentPinRequest, O: ToggleDocumentPinResponse },
|
|
4649
|
+
{ name: "SetDocumentReminder", options: { "codegen.perms.perms": { enabled: true } }, I: SetDocumentReminderRequest, O: SetDocumentReminderResponse },
|
|
4650
|
+
{ name: "UploadFile", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: UploadFileRequest, O: UploadFileResponse }
|
|
4669
4651
|
]);
|