@fivenet-app/gen 2025.9.1 → 2026.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/clients.ts +36 -0
- package/codegen/perms/perms.ts +186 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +140 -8
- package/resources/accounts/accounts.ts +98 -31
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
- package/resources/audit/audit.ts +156 -38
- package/resources/calendar/{access.ts → access/access.ts} +30 -30
- package/resources/calendar/calendar.ts +17 -477
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/{access.ts → access/access.ts} +22 -22
- package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/citizens/labels/labels.ts +526 -0
- package/resources/{users → citizens/licenses}/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +126 -258
- package/resources/collab/collab.ts +4 -16
- package/resources/common/content/content.ts +108 -85
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/i18n.ts +2 -2
- package/resources/{common/cron → cron}/cron.ts +43 -43
- package/resources/documents/{access.ts → access/access.ts} +29 -52
- package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +7 -7
- package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +282 -667
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
- package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
- package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
- package/resources/file/filestore.ts +1 -1
- package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
- package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
- package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
- package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
- package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
- package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
- package/resources/mailer/{access.ts → access/access.ts} +67 -67
- package/resources/mailer/{email.ts → emails/email.ts} +19 -19
- package/resources/mailer/{events.ts → events/events.ts} +24 -24
- package/resources/mailer/{message.ts → messages/message.ts} +29 -29
- package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
- package/resources/mailer/{template.ts → templates/template.ts} +15 -15
- package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
- package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
- package/resources/notifications/{events.ts → events/events.ts} +20 -20
- package/resources/notifications/notifications.ts +4 -4
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
- package/resources/permissions/{events.ts → events/events.ts} +7 -7
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
- package/resources/qualifications/{access.ts → access/access.ts} +19 -19
- package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
- package/resources/qualifications/qualifications.ts +51 -179
- package/resources/settings/banner.ts +3 -3
- package/resources/settings/config.ts +527 -25
- package/resources/{documents/state.ts → settings/data.ts} +41 -20
- package/resources/settings/perms.ts +14 -14
- package/resources/stats/stats.ts +379 -0
- package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
- package/resources/sync/{data.ts → data/data.ts} +405 -59
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +242 -101
- package/resources/users/{props.ts → props/props.ts} +91 -69
- package/resources/users/short/user.ts +184 -0
- package/resources/users/{users.ts → user.ts} +266 -195
- package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
- package/resources/vehicles/{props.ts → props/props.ts} +28 -6
- package/resources/vehicles/vehicles.ts +20 -8
- package/resources/wiki/{access.ts → access/access.ts} +30 -30
- package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
- package/resources/wiki/page.ts +39 -15
- package/services/auth/auth.client.ts +23 -10
- package/services/auth/auth.ts +445 -262
- package/services/calendar/calendar.ts +56 -34
- package/services/centrum/centrum.ts +127 -127
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +44 -134
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +36 -16
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +164 -186
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/jobs/conduct.client.ts +30 -3
- package/services/jobs/conduct.ts +159 -33
- package/services/jobs/jobs.ts +43 -43
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.ts +39 -39
- package/services/livemap/livemap.ts +18 -18
- package/services/mailer/mailer.ts +78 -78
- package/services/notifications/notifications.ts +35 -35
- package/services/qualifications/qualifications.ts +81 -46
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +118 -5
- package/services/settings/laws.ts +1 -1
- package/services/settings/settings.ts +73 -52
- package/services/settings/system.client.ts +13 -0
- package/services/settings/system.ts +115 -15
- package/services/stats/stats.client.ts +7 -7
- package/services/stats/stats.ts +24 -24
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1525 -421
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +100 -6
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
- package/resources/users/labels.ts +0 -160
|
@@ -14,30 +14,32 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
14
14
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
15
15
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
16
16
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
17
|
-
import { DocumentPin } from "../../resources/documents/pins";
|
|
18
|
-
import { Category } from "../../resources/documents/category";
|
|
19
|
-
import { DocRelation } from "../../resources/documents/
|
|
20
|
-
import { DocActivityData } from "../../resources/documents/activity";
|
|
21
|
-
import { DocRequest } from "../../resources/documents/requests";
|
|
22
|
-
import { DocActivity } from "../../resources/documents/activity";
|
|
23
|
-
import { DocActivityType } from "../../resources/documents/activity";
|
|
17
|
+
import { DocumentPin } from "../../resources/documents/pins/pins";
|
|
18
|
+
import { Category } from "../../resources/documents/category/category";
|
|
19
|
+
import { DocRelation } from "../../resources/documents/relations/relations";
|
|
20
|
+
import { DocActivityData } from "../../resources/documents/activity/activity";
|
|
21
|
+
import { DocRequest } from "../../resources/documents/requests/requests";
|
|
22
|
+
import { DocActivity } from "../../resources/documents/activity/activity";
|
|
23
|
+
import { DocActivityType } from "../../resources/documents/activity/activity";
|
|
24
24
|
import { File } from "../../resources/file/file";
|
|
25
|
+
import { DocumentMeta } from "../../resources/documents/documents";
|
|
26
|
+
import { DocumentData } from "../../resources/documents/data/data";
|
|
25
27
|
import { Content } from "../../resources/common/content/content";
|
|
26
28
|
import { ContentType } from "../../resources/common/content/content";
|
|
27
|
-
import { Comment } from "../../resources/documents/comment";
|
|
28
|
-
import { DocumentRelation } from "../../resources/documents/
|
|
29
|
-
import { DocumentReference } from "../../resources/documents/
|
|
30
|
-
import { DocumentAccess } from "../../resources/documents/access";
|
|
29
|
+
import { Comment } from "../../resources/documents/comment/comment";
|
|
30
|
+
import { DocumentRelation } from "../../resources/documents/relations/relations";
|
|
31
|
+
import { DocumentReference } from "../../resources/documents/references/references";
|
|
32
|
+
import { DocumentAccess } from "../../resources/documents/access/access";
|
|
31
33
|
import { Document } from "../../resources/documents/documents";
|
|
32
34
|
import { DocumentShort } from "../../resources/documents/documents";
|
|
33
35
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
34
36
|
import { Timestamp } from "../../resources/timestamp/timestamp";
|
|
35
37
|
import { Sort } from "../../resources/common/database/database";
|
|
36
38
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
37
|
-
import { Template } from "../../resources/documents/templates";
|
|
38
|
-
import { TemplateData } from "../../resources/documents/templates";
|
|
39
|
-
import { TemplateShort } from "../../resources/documents/templates";
|
|
40
|
-
// Templates
|
|
39
|
+
import { Template } from "../../resources/documents/templates/templates";
|
|
40
|
+
import { TemplateData } from "../../resources/documents/templates/templates";
|
|
41
|
+
import { TemplateShort } from "../../resources/documents/templates/templates";
|
|
42
|
+
// Templates
|
|
41
43
|
|
|
42
44
|
/**
|
|
43
45
|
* @generated from protobuf message services.documents.ListTemplatesRequest
|
|
@@ -49,7 +51,7 @@ export interface ListTemplatesRequest {
|
|
|
49
51
|
*/
|
|
50
52
|
export interface ListTemplatesResponse {
|
|
51
53
|
/**
|
|
52
|
-
* @generated from protobuf field: repeated resources.documents.TemplateShort templates = 1
|
|
54
|
+
* @generated from protobuf field: repeated resources.documents.templates.TemplateShort templates = 1
|
|
53
55
|
*/
|
|
54
56
|
templates: TemplateShort[];
|
|
55
57
|
}
|
|
@@ -62,7 +64,7 @@ export interface GetTemplateRequest {
|
|
|
62
64
|
*/
|
|
63
65
|
templateId: number;
|
|
64
66
|
/**
|
|
65
|
-
* @generated from protobuf field: optional resources.documents.TemplateData data = 2
|
|
67
|
+
* @generated from protobuf field: optional resources.documents.templates.TemplateData data = 2
|
|
66
68
|
*/
|
|
67
69
|
data?: TemplateData;
|
|
68
70
|
/**
|
|
@@ -75,7 +77,7 @@ export interface GetTemplateRequest {
|
|
|
75
77
|
*/
|
|
76
78
|
export interface GetTemplateResponse {
|
|
77
79
|
/**
|
|
78
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
80
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
79
81
|
*/
|
|
80
82
|
template?: Template;
|
|
81
83
|
/**
|
|
@@ -88,7 +90,7 @@ export interface GetTemplateResponse {
|
|
|
88
90
|
*/
|
|
89
91
|
export interface CreateTemplateRequest {
|
|
90
92
|
/**
|
|
91
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
93
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
92
94
|
*/
|
|
93
95
|
template?: Template;
|
|
94
96
|
}
|
|
@@ -106,7 +108,7 @@ export interface CreateTemplateResponse {
|
|
|
106
108
|
*/
|
|
107
109
|
export interface UpdateTemplateRequest {
|
|
108
110
|
/**
|
|
109
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
111
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
110
112
|
*/
|
|
111
113
|
template?: Template;
|
|
112
114
|
}
|
|
@@ -115,7 +117,7 @@ export interface UpdateTemplateRequest {
|
|
|
115
117
|
*/
|
|
116
118
|
export interface UpdateTemplateResponse {
|
|
117
119
|
/**
|
|
118
|
-
* @generated from protobuf field: resources.documents.Template template = 1
|
|
120
|
+
* @generated from protobuf field: resources.documents.templates.Template template = 1
|
|
119
121
|
*/
|
|
120
122
|
template?: Template;
|
|
121
123
|
}
|
|
@@ -133,7 +135,7 @@ export interface DeleteTemplateRequest {
|
|
|
133
135
|
*/
|
|
134
136
|
export interface DeleteTemplateResponse {
|
|
135
137
|
}
|
|
136
|
-
// Documents
|
|
138
|
+
// Documents
|
|
137
139
|
|
|
138
140
|
/**
|
|
139
141
|
* @generated from protobuf message services.documents.ListDocumentsRequest
|
|
@@ -222,7 +224,7 @@ export interface GetDocumentResponse {
|
|
|
222
224
|
*/
|
|
223
225
|
document?: Document;
|
|
224
226
|
/**
|
|
225
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
227
|
+
* @generated from protobuf field: resources.documents.access.DocumentAccess access = 2
|
|
226
228
|
*/
|
|
227
229
|
access?: DocumentAccess;
|
|
228
230
|
}
|
|
@@ -240,7 +242,7 @@ export interface GetDocumentReferencesRequest {
|
|
|
240
242
|
*/
|
|
241
243
|
export interface GetDocumentReferencesResponse {
|
|
242
244
|
/**
|
|
243
|
-
* @generated from protobuf field: repeated resources.documents.DocumentReference references = 1
|
|
245
|
+
* @generated from protobuf field: repeated resources.documents.references.DocumentReference references = 1
|
|
244
246
|
*/
|
|
245
247
|
references: DocumentReference[];
|
|
246
248
|
}
|
|
@@ -258,7 +260,7 @@ export interface GetDocumentRelationsRequest {
|
|
|
258
260
|
*/
|
|
259
261
|
export interface GetDocumentRelationsResponse {
|
|
260
262
|
/**
|
|
261
|
-
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 1
|
|
263
|
+
* @generated from protobuf field: repeated resources.documents.relations.DocumentRelation relations = 1
|
|
262
264
|
*/
|
|
263
265
|
relations: DocumentRelation[];
|
|
264
266
|
}
|
|
@@ -267,7 +269,7 @@ export interface GetDocumentRelationsResponse {
|
|
|
267
269
|
*/
|
|
268
270
|
export interface AddDocumentReferenceRequest {
|
|
269
271
|
/**
|
|
270
|
-
* @generated from protobuf field: resources.documents.DocumentReference reference = 1
|
|
272
|
+
* @generated from protobuf field: resources.documents.references.DocumentReference reference = 1
|
|
271
273
|
*/
|
|
272
274
|
reference?: DocumentReference;
|
|
273
275
|
}
|
|
@@ -299,7 +301,7 @@ export interface RemoveDocumentReferenceResponse {
|
|
|
299
301
|
*/
|
|
300
302
|
export interface AddDocumentRelationRequest {
|
|
301
303
|
/**
|
|
302
|
-
* @generated from protobuf field: resources.documents.DocumentRelation relation = 1
|
|
304
|
+
* @generated from protobuf field: resources.documents.relations.DocumentRelation relation = 1
|
|
303
305
|
*/
|
|
304
306
|
relation?: DocumentRelation;
|
|
305
307
|
}
|
|
@@ -326,7 +328,7 @@ export interface RemoveDocumentRelationRequest {
|
|
|
326
328
|
*/
|
|
327
329
|
export interface RemoveDocumentRelationResponse {
|
|
328
330
|
}
|
|
329
|
-
// Comments
|
|
331
|
+
// Comments
|
|
330
332
|
|
|
331
333
|
/**
|
|
332
334
|
* @generated from protobuf message services.documents.GetCommentsRequest
|
|
@@ -350,7 +352,7 @@ export interface GetCommentsResponse {
|
|
|
350
352
|
*/
|
|
351
353
|
pagination?: PaginationResponse;
|
|
352
354
|
/**
|
|
353
|
-
* @generated from protobuf field: repeated resources.documents.Comment comments = 2
|
|
355
|
+
* @generated from protobuf field: repeated resources.documents.comment.Comment comments = 2
|
|
354
356
|
*/
|
|
355
357
|
comments: Comment[];
|
|
356
358
|
}
|
|
@@ -359,7 +361,7 @@ export interface GetCommentsResponse {
|
|
|
359
361
|
*/
|
|
360
362
|
export interface PostCommentRequest {
|
|
361
363
|
/**
|
|
362
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
364
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
363
365
|
*/
|
|
364
366
|
comment?: Comment;
|
|
365
367
|
}
|
|
@@ -368,7 +370,7 @@ export interface PostCommentRequest {
|
|
|
368
370
|
*/
|
|
369
371
|
export interface PostCommentResponse {
|
|
370
372
|
/**
|
|
371
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
373
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
372
374
|
*/
|
|
373
375
|
comment?: Comment;
|
|
374
376
|
}
|
|
@@ -377,7 +379,7 @@ export interface PostCommentResponse {
|
|
|
377
379
|
*/
|
|
378
380
|
export interface EditCommentRequest {
|
|
379
381
|
/**
|
|
380
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
382
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
381
383
|
*/
|
|
382
384
|
comment?: Comment;
|
|
383
385
|
}
|
|
@@ -386,7 +388,7 @@ export interface EditCommentRequest {
|
|
|
386
388
|
*/
|
|
387
389
|
export interface EditCommentResponse {
|
|
388
390
|
/**
|
|
389
|
-
* @generated from protobuf field: resources.documents.Comment comment = 1
|
|
391
|
+
* @generated from protobuf field: resources.documents.comment.Comment comment = 1
|
|
390
392
|
*/
|
|
391
393
|
comment?: Comment;
|
|
392
394
|
}
|
|
@@ -480,7 +482,7 @@ export interface CreateDocumentRequest {
|
|
|
480
482
|
*/
|
|
481
483
|
templateId?: number;
|
|
482
484
|
/**
|
|
483
|
-
* @generated from protobuf field: optional resources.documents.TemplateData template_data = 3
|
|
485
|
+
* @generated from protobuf field: optional resources.documents.templates.TemplateData template_data = 3
|
|
484
486
|
*/
|
|
485
487
|
templateData?: TemplateData;
|
|
486
488
|
}
|
|
@@ -518,27 +520,15 @@ export interface UpdateDocumentRequest {
|
|
|
518
520
|
*/
|
|
519
521
|
contentType: ContentType;
|
|
520
522
|
/**
|
|
521
|
-
* @generated from protobuf field: optional
|
|
523
|
+
* @generated from protobuf field: optional resources.documents.data.DocumentData data = 6
|
|
522
524
|
*/
|
|
523
|
-
data?:
|
|
525
|
+
data?: DocumentData;
|
|
524
526
|
/**
|
|
525
|
-
* @generated from protobuf field:
|
|
527
|
+
* @generated from protobuf field: resources.documents.DocumentMeta meta = 7
|
|
526
528
|
*/
|
|
527
|
-
|
|
529
|
+
meta?: DocumentMeta;
|
|
528
530
|
/**
|
|
529
|
-
* @generated from protobuf field:
|
|
530
|
-
*/
|
|
531
|
-
closed: boolean;
|
|
532
|
-
/**
|
|
533
|
-
* @generated from protobuf field: bool draft = 9
|
|
534
|
-
*/
|
|
535
|
-
draft: boolean;
|
|
536
|
-
/**
|
|
537
|
-
* @generated from protobuf field: bool public = 10
|
|
538
|
-
*/
|
|
539
|
-
public: boolean;
|
|
540
|
-
/**
|
|
541
|
-
* @generated from protobuf field: optional resources.documents.DocumentAccess access = 11
|
|
531
|
+
* @generated from protobuf field: optional resources.documents.access.DocumentAccess access = 11
|
|
542
532
|
*/
|
|
543
533
|
access?: DocumentAccess;
|
|
544
534
|
/**
|
|
@@ -546,7 +536,7 @@ export interface UpdateDocumentRequest {
|
|
|
546
536
|
*/
|
|
547
537
|
files: File[];
|
|
548
538
|
}
|
|
549
|
-
// Document Activity and Requests
|
|
539
|
+
// Document Activity and Requests
|
|
550
540
|
|
|
551
541
|
/**
|
|
552
542
|
* @generated from protobuf message services.documents.ListDocumentActivityRequest
|
|
@@ -563,7 +553,7 @@ export interface ListDocumentActivityRequest {
|
|
|
563
553
|
/**
|
|
564
554
|
* Search params
|
|
565
555
|
*
|
|
566
|
-
* @generated from protobuf field: repeated resources.documents.DocActivityType activity_types = 3
|
|
556
|
+
* @generated from protobuf field: repeated resources.documents.activity.DocActivityType activity_types = 3
|
|
567
557
|
*/
|
|
568
558
|
activityTypes: DocActivityType[];
|
|
569
559
|
}
|
|
@@ -576,7 +566,7 @@ export interface ListDocumentActivityResponse {
|
|
|
576
566
|
*/
|
|
577
567
|
pagination?: PaginationResponse;
|
|
578
568
|
/**
|
|
579
|
-
* @generated from protobuf field: repeated resources.documents.DocActivity activity = 2
|
|
569
|
+
* @generated from protobuf field: repeated resources.documents.activity.DocActivity activity = 2
|
|
580
570
|
*/
|
|
581
571
|
activity: DocActivity[];
|
|
582
572
|
}
|
|
@@ -602,7 +592,7 @@ export interface ListDocumentReqsResponse {
|
|
|
602
592
|
*/
|
|
603
593
|
pagination?: PaginationResponse;
|
|
604
594
|
/**
|
|
605
|
-
* @generated from protobuf field: repeated resources.documents.DocRequest requests = 2
|
|
595
|
+
* @generated from protobuf field: repeated resources.documents.requests.DocRequest requests = 2
|
|
606
596
|
*/
|
|
607
597
|
requests: DocRequest[];
|
|
608
598
|
}
|
|
@@ -615,7 +605,7 @@ export interface CreateDocumentReqRequest {
|
|
|
615
605
|
*/
|
|
616
606
|
documentId: number;
|
|
617
607
|
/**
|
|
618
|
-
* @generated from protobuf field: resources.documents.DocActivityType request_type = 2
|
|
608
|
+
* @generated from protobuf field: resources.documents.activity.DocActivityType request_type = 2
|
|
619
609
|
*/
|
|
620
610
|
requestType: DocActivityType;
|
|
621
611
|
/**
|
|
@@ -623,7 +613,7 @@ export interface CreateDocumentReqRequest {
|
|
|
623
613
|
*/
|
|
624
614
|
reason?: string;
|
|
625
615
|
/**
|
|
626
|
-
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
616
|
+
* @generated from protobuf field: optional resources.documents.activity.DocActivityData data = 4
|
|
627
617
|
*/
|
|
628
618
|
data?: DocActivityData;
|
|
629
619
|
}
|
|
@@ -632,7 +622,7 @@ export interface CreateDocumentReqRequest {
|
|
|
632
622
|
*/
|
|
633
623
|
export interface CreateDocumentReqResponse {
|
|
634
624
|
/**
|
|
635
|
-
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
625
|
+
* @generated from protobuf field: resources.documents.requests.DocRequest request = 1
|
|
636
626
|
*/
|
|
637
627
|
request?: DocRequest;
|
|
638
628
|
}
|
|
@@ -653,7 +643,7 @@ export interface UpdateDocumentReqRequest {
|
|
|
653
643
|
*/
|
|
654
644
|
reason?: string;
|
|
655
645
|
/**
|
|
656
|
-
* @generated from protobuf field: optional resources.documents.DocActivityData data = 4
|
|
646
|
+
* @generated from protobuf field: optional resources.documents.activity.DocActivityData data = 4
|
|
657
647
|
*/
|
|
658
648
|
data?: DocActivityData;
|
|
659
649
|
/**
|
|
@@ -666,7 +656,7 @@ export interface UpdateDocumentReqRequest {
|
|
|
666
656
|
*/
|
|
667
657
|
export interface UpdateDocumentReqResponse {
|
|
668
658
|
/**
|
|
669
|
-
* @generated from protobuf field: resources.documents.DocRequest request = 1
|
|
659
|
+
* @generated from protobuf field: resources.documents.requests.DocRequest request = 1
|
|
670
660
|
*/
|
|
671
661
|
request?: DocRequest;
|
|
672
662
|
}
|
|
@@ -684,7 +674,7 @@ export interface DeleteDocumentReqRequest {
|
|
|
684
674
|
*/
|
|
685
675
|
export interface DeleteDocumentReqResponse {
|
|
686
676
|
}
|
|
687
|
-
// Access
|
|
677
|
+
// Access
|
|
688
678
|
|
|
689
679
|
/**
|
|
690
680
|
* @generated from protobuf message services.documents.GetDocumentAccessRequest
|
|
@@ -700,7 +690,7 @@ export interface GetDocumentAccessRequest {
|
|
|
700
690
|
*/
|
|
701
691
|
export interface GetDocumentAccessResponse {
|
|
702
692
|
/**
|
|
703
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 1
|
|
693
|
+
* @generated from protobuf field: resources.documents.access.DocumentAccess access = 1
|
|
704
694
|
*/
|
|
705
695
|
access?: DocumentAccess;
|
|
706
696
|
}
|
|
@@ -713,7 +703,7 @@ export interface SetDocumentAccessRequest {
|
|
|
713
703
|
*/
|
|
714
704
|
documentId: number;
|
|
715
705
|
/**
|
|
716
|
-
* @generated from protobuf field: resources.documents.DocumentAccess access = 2
|
|
706
|
+
* @generated from protobuf field: resources.documents.access.DocumentAccess access = 2
|
|
717
707
|
*/
|
|
718
708
|
access?: DocumentAccess;
|
|
719
709
|
}
|
|
@@ -739,13 +729,19 @@ export interface ListUserDocumentsRequest {
|
|
|
739
729
|
*/
|
|
740
730
|
userId: number;
|
|
741
731
|
/**
|
|
742
|
-
* @generated from protobuf field: repeated resources.documents.DocRelation relations = 4
|
|
732
|
+
* @generated from protobuf field: repeated resources.documents.relations.DocRelation relations = 4
|
|
743
733
|
*/
|
|
744
734
|
relations: DocRelation[];
|
|
745
735
|
/**
|
|
746
736
|
* @generated from protobuf field: optional bool closed = 5
|
|
747
737
|
*/
|
|
748
738
|
closed?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Include the document relations created by the given user.
|
|
741
|
+
*
|
|
742
|
+
* @generated from protobuf field: optional bool include_created = 6
|
|
743
|
+
*/
|
|
744
|
+
includeCreated?: boolean;
|
|
749
745
|
}
|
|
750
746
|
/**
|
|
751
747
|
* @generated from protobuf message services.documents.ListUserDocumentsResponse
|
|
@@ -756,11 +752,11 @@ export interface ListUserDocumentsResponse {
|
|
|
756
752
|
*/
|
|
757
753
|
pagination?: PaginationResponse;
|
|
758
754
|
/**
|
|
759
|
-
* @generated from protobuf field: repeated resources.documents.DocumentRelation relations = 2
|
|
755
|
+
* @generated from protobuf field: repeated resources.documents.relations.DocumentRelation relations = 2
|
|
760
756
|
*/
|
|
761
757
|
relations: DocumentRelation[];
|
|
762
758
|
}
|
|
763
|
-
// Categories
|
|
759
|
+
// Categories
|
|
764
760
|
|
|
765
761
|
/**
|
|
766
762
|
* @generated from protobuf message services.documents.ListCategoriesRequest
|
|
@@ -772,7 +768,7 @@ export interface ListCategoriesRequest {
|
|
|
772
768
|
*/
|
|
773
769
|
export interface ListCategoriesResponse {
|
|
774
770
|
/**
|
|
775
|
-
* @generated from protobuf field: repeated resources.documents.Category categories = 1
|
|
771
|
+
* @generated from protobuf field: repeated resources.documents.category.Category categories = 1
|
|
776
772
|
*/
|
|
777
773
|
categories: Category[];
|
|
778
774
|
}
|
|
@@ -781,7 +777,7 @@ export interface ListCategoriesResponse {
|
|
|
781
777
|
*/
|
|
782
778
|
export interface CreateOrUpdateCategoryRequest {
|
|
783
779
|
/**
|
|
784
|
-
* @generated from protobuf field: resources.documents.Category category = 1
|
|
780
|
+
* @generated from protobuf field: resources.documents.category.Category category = 1
|
|
785
781
|
*/
|
|
786
782
|
category?: Category;
|
|
787
783
|
}
|
|
@@ -790,7 +786,7 @@ export interface CreateOrUpdateCategoryRequest {
|
|
|
790
786
|
*/
|
|
791
787
|
export interface CreateOrUpdateCategoryResponse {
|
|
792
788
|
/**
|
|
793
|
-
* @generated from protobuf field: resources.documents.Category category = 1
|
|
789
|
+
* @generated from protobuf field: resources.documents.category.Category category = 1
|
|
794
790
|
*/
|
|
795
791
|
category?: Category;
|
|
796
792
|
}
|
|
@@ -808,7 +804,7 @@ export interface DeleteCategoryRequest {
|
|
|
808
804
|
*/
|
|
809
805
|
export interface DeleteCategoryResponse {
|
|
810
806
|
}
|
|
811
|
-
// Pins
|
|
807
|
+
// Pins
|
|
812
808
|
|
|
813
809
|
/**
|
|
814
810
|
* @generated from protobuf message services.documents.ListDocumentPinsRequest
|
|
@@ -863,11 +859,11 @@ export interface ToggleDocumentPinRequest {
|
|
|
863
859
|
*/
|
|
864
860
|
export interface ToggleDocumentPinResponse {
|
|
865
861
|
/**
|
|
866
|
-
* @generated from protobuf field: optional resources.documents.DocumentPin pin = 1
|
|
862
|
+
* @generated from protobuf field: optional resources.documents.pins.DocumentPin pin = 1
|
|
867
863
|
*/
|
|
868
864
|
pin?: DocumentPin;
|
|
869
865
|
}
|
|
870
|
-
// Reminders
|
|
866
|
+
// Reminders
|
|
871
867
|
|
|
872
868
|
/**
|
|
873
869
|
* @generated from protobuf message services.documents.SetDocumentReminderRequest
|
|
@@ -952,7 +948,7 @@ class ListTemplatesResponse$Type extends MessageType<ListTemplatesResponse> {
|
|
|
952
948
|
while (reader.pos < end) {
|
|
953
949
|
let [fieldNo, wireType] = reader.tag();
|
|
954
950
|
switch (fieldNo) {
|
|
955
|
-
case /* repeated resources.documents.TemplateShort templates */ 1:
|
|
951
|
+
case /* repeated resources.documents.templates.TemplateShort templates */ 1:
|
|
956
952
|
message.templates.push(TemplateShort.internalBinaryRead(reader, reader.uint32(), options));
|
|
957
953
|
break;
|
|
958
954
|
default:
|
|
@@ -967,7 +963,7 @@ class ListTemplatesResponse$Type extends MessageType<ListTemplatesResponse> {
|
|
|
967
963
|
return message;
|
|
968
964
|
}
|
|
969
965
|
internalBinaryWrite(message: ListTemplatesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
970
|
-
/* repeated resources.documents.TemplateShort templates = 1; */
|
|
966
|
+
/* repeated resources.documents.templates.TemplateShort templates = 1; */
|
|
971
967
|
for (let i = 0; i < message.templates.length; i++)
|
|
972
968
|
TemplateShort.internalBinaryWrite(message.templates[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
973
969
|
let u = options.writeUnknownFields;
|
|
@@ -1004,7 +1000,7 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1004
1000
|
case /* int64 template_id */ 1:
|
|
1005
1001
|
message.templateId = reader.int64().toNumber();
|
|
1006
1002
|
break;
|
|
1007
|
-
case /* optional resources.documents.TemplateData data */ 2:
|
|
1003
|
+
case /* optional resources.documents.templates.TemplateData data */ 2:
|
|
1008
1004
|
message.data = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
1009
1005
|
break;
|
|
1010
1006
|
case /* optional bool render */ 3:
|
|
@@ -1025,7 +1021,7 @@ class GetTemplateRequest$Type extends MessageType<GetTemplateRequest> {
|
|
|
1025
1021
|
/* int64 template_id = 1; */
|
|
1026
1022
|
if (message.templateId !== 0)
|
|
1027
1023
|
writer.tag(1, WireType.Varint).int64(message.templateId);
|
|
1028
|
-
/* optional resources.documents.TemplateData data = 2; */
|
|
1024
|
+
/* optional resources.documents.templates.TemplateData data = 2; */
|
|
1029
1025
|
if (message.data)
|
|
1030
1026
|
TemplateData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1031
1027
|
/* optional bool render = 3; */
|
|
@@ -1061,7 +1057,7 @@ class GetTemplateResponse$Type extends MessageType<GetTemplateResponse> {
|
|
|
1061
1057
|
while (reader.pos < end) {
|
|
1062
1058
|
let [fieldNo, wireType] = reader.tag();
|
|
1063
1059
|
switch (fieldNo) {
|
|
1064
|
-
case /* resources.documents.Template template */ 1:
|
|
1060
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1065
1061
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1066
1062
|
break;
|
|
1067
1063
|
case /* bool rendered */ 2:
|
|
@@ -1079,7 +1075,7 @@ class GetTemplateResponse$Type extends MessageType<GetTemplateResponse> {
|
|
|
1079
1075
|
return message;
|
|
1080
1076
|
}
|
|
1081
1077
|
internalBinaryWrite(message: GetTemplateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1082
|
-
/* resources.documents.Template template = 1; */
|
|
1078
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1083
1079
|
if (message.template)
|
|
1084
1080
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1085
1081
|
/* bool rendered = 2; */
|
|
@@ -1113,7 +1109,7 @@ class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
|
1113
1109
|
while (reader.pos < end) {
|
|
1114
1110
|
let [fieldNo, wireType] = reader.tag();
|
|
1115
1111
|
switch (fieldNo) {
|
|
1116
|
-
case /* resources.documents.Template template */ 1:
|
|
1112
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1117
1113
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1118
1114
|
break;
|
|
1119
1115
|
default:
|
|
@@ -1128,7 +1124,7 @@ class CreateTemplateRequest$Type extends MessageType<CreateTemplateRequest> {
|
|
|
1128
1124
|
return message;
|
|
1129
1125
|
}
|
|
1130
1126
|
internalBinaryWrite(message: CreateTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1131
|
-
/* resources.documents.Template template = 1; */
|
|
1127
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1132
1128
|
if (message.template)
|
|
1133
1129
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1134
1130
|
let u = options.writeUnknownFields;
|
|
@@ -1206,7 +1202,7 @@ class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
|
1206
1202
|
while (reader.pos < end) {
|
|
1207
1203
|
let [fieldNo, wireType] = reader.tag();
|
|
1208
1204
|
switch (fieldNo) {
|
|
1209
|
-
case /* resources.documents.Template template */ 1:
|
|
1205
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1210
1206
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1211
1207
|
break;
|
|
1212
1208
|
default:
|
|
@@ -1221,7 +1217,7 @@ class UpdateTemplateRequest$Type extends MessageType<UpdateTemplateRequest> {
|
|
|
1221
1217
|
return message;
|
|
1222
1218
|
}
|
|
1223
1219
|
internalBinaryWrite(message: UpdateTemplateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1224
|
-
/* resources.documents.Template template = 1; */
|
|
1220
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1225
1221
|
if (message.template)
|
|
1226
1222
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1227
1223
|
let u = options.writeUnknownFields;
|
|
@@ -1252,7 +1248,7 @@ class UpdateTemplateResponse$Type extends MessageType<UpdateTemplateResponse> {
|
|
|
1252
1248
|
while (reader.pos < end) {
|
|
1253
1249
|
let [fieldNo, wireType] = reader.tag();
|
|
1254
1250
|
switch (fieldNo) {
|
|
1255
|
-
case /* resources.documents.Template template */ 1:
|
|
1251
|
+
case /* resources.documents.templates.Template template */ 1:
|
|
1256
1252
|
message.template = Template.internalBinaryRead(reader, reader.uint32(), options, message.template);
|
|
1257
1253
|
break;
|
|
1258
1254
|
default:
|
|
@@ -1267,7 +1263,7 @@ class UpdateTemplateResponse$Type extends MessageType<UpdateTemplateResponse> {
|
|
|
1267
1263
|
return message;
|
|
1268
1264
|
}
|
|
1269
1265
|
internalBinaryWrite(message: UpdateTemplateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1270
|
-
/* resources.documents.Template template = 1; */
|
|
1266
|
+
/* resources.documents.templates.Template template = 1; */
|
|
1271
1267
|
if (message.template)
|
|
1272
1268
|
Template.internalBinaryWrite(message.template, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1273
1269
|
let u = options.writeUnknownFields;
|
|
@@ -1631,7 +1627,7 @@ class GetDocumentResponse$Type extends MessageType<GetDocumentResponse> {
|
|
|
1631
1627
|
case /* resources.documents.Document document */ 1:
|
|
1632
1628
|
message.document = Document.internalBinaryRead(reader, reader.uint32(), options, message.document);
|
|
1633
1629
|
break;
|
|
1634
|
-
case /* resources.documents.DocumentAccess access */ 2:
|
|
1630
|
+
case /* resources.documents.access.DocumentAccess access */ 2:
|
|
1635
1631
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
1636
1632
|
break;
|
|
1637
1633
|
default:
|
|
@@ -1649,7 +1645,7 @@ class GetDocumentResponse$Type extends MessageType<GetDocumentResponse> {
|
|
|
1649
1645
|
/* resources.documents.Document document = 1; */
|
|
1650
1646
|
if (message.document)
|
|
1651
1647
|
Document.internalBinaryWrite(message.document, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1652
|
-
/* resources.documents.DocumentAccess access = 2; */
|
|
1648
|
+
/* resources.documents.access.DocumentAccess access = 2; */
|
|
1653
1649
|
if (message.access)
|
|
1654
1650
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1655
1651
|
let u = options.writeUnknownFields;
|
|
@@ -1728,7 +1724,7 @@ class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferenc
|
|
|
1728
1724
|
while (reader.pos < end) {
|
|
1729
1725
|
let [fieldNo, wireType] = reader.tag();
|
|
1730
1726
|
switch (fieldNo) {
|
|
1731
|
-
case /* repeated resources.documents.DocumentReference references */ 1:
|
|
1727
|
+
case /* repeated resources.documents.references.DocumentReference references */ 1:
|
|
1732
1728
|
message.references.push(DocumentReference.internalBinaryRead(reader, reader.uint32(), options));
|
|
1733
1729
|
break;
|
|
1734
1730
|
default:
|
|
@@ -1743,7 +1739,7 @@ class GetDocumentReferencesResponse$Type extends MessageType<GetDocumentReferenc
|
|
|
1743
1739
|
return message;
|
|
1744
1740
|
}
|
|
1745
1741
|
internalBinaryWrite(message: GetDocumentReferencesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1746
|
-
/* repeated resources.documents.DocumentReference references = 1; */
|
|
1742
|
+
/* repeated resources.documents.references.DocumentReference references = 1; */
|
|
1747
1743
|
for (let i = 0; i < message.references.length; i++)
|
|
1748
1744
|
DocumentReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1749
1745
|
let u = options.writeUnknownFields;
|
|
@@ -1822,7 +1818,7 @@ class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelations
|
|
|
1822
1818
|
while (reader.pos < end) {
|
|
1823
1819
|
let [fieldNo, wireType] = reader.tag();
|
|
1824
1820
|
switch (fieldNo) {
|
|
1825
|
-
case /* repeated resources.documents.DocumentRelation relations */ 1:
|
|
1821
|
+
case /* repeated resources.documents.relations.DocumentRelation relations */ 1:
|
|
1826
1822
|
message.relations.push(DocumentRelation.internalBinaryRead(reader, reader.uint32(), options));
|
|
1827
1823
|
break;
|
|
1828
1824
|
default:
|
|
@@ -1837,7 +1833,7 @@ class GetDocumentRelationsResponse$Type extends MessageType<GetDocumentRelations
|
|
|
1837
1833
|
return message;
|
|
1838
1834
|
}
|
|
1839
1835
|
internalBinaryWrite(message: GetDocumentRelationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1840
|
-
/* repeated resources.documents.DocumentRelation relations = 1; */
|
|
1836
|
+
/* repeated resources.documents.relations.DocumentRelation relations = 1; */
|
|
1841
1837
|
for (let i = 0; i < message.relations.length; i++)
|
|
1842
1838
|
DocumentRelation.internalBinaryWrite(message.relations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1843
1839
|
let u = options.writeUnknownFields;
|
|
@@ -1868,7 +1864,7 @@ class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceR
|
|
|
1868
1864
|
while (reader.pos < end) {
|
|
1869
1865
|
let [fieldNo, wireType] = reader.tag();
|
|
1870
1866
|
switch (fieldNo) {
|
|
1871
|
-
case /* resources.documents.DocumentReference reference */ 1:
|
|
1867
|
+
case /* resources.documents.references.DocumentReference reference */ 1:
|
|
1872
1868
|
message.reference = DocumentReference.internalBinaryRead(reader, reader.uint32(), options, message.reference);
|
|
1873
1869
|
break;
|
|
1874
1870
|
default:
|
|
@@ -1883,7 +1879,7 @@ class AddDocumentReferenceRequest$Type extends MessageType<AddDocumentReferenceR
|
|
|
1883
1879
|
return message;
|
|
1884
1880
|
}
|
|
1885
1881
|
internalBinaryWrite(message: AddDocumentReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1886
|
-
/* resources.documents.DocumentReference reference = 1; */
|
|
1882
|
+
/* resources.documents.references.DocumentReference reference = 1; */
|
|
1887
1883
|
if (message.reference)
|
|
1888
1884
|
DocumentReference.internalBinaryWrite(message.reference, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1889
1885
|
let u = options.writeUnknownFields;
|
|
@@ -2046,7 +2042,7 @@ class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationReq
|
|
|
2046
2042
|
while (reader.pos < end) {
|
|
2047
2043
|
let [fieldNo, wireType] = reader.tag();
|
|
2048
2044
|
switch (fieldNo) {
|
|
2049
|
-
case /* resources.documents.DocumentRelation relation */ 1:
|
|
2045
|
+
case /* resources.documents.relations.DocumentRelation relation */ 1:
|
|
2050
2046
|
message.relation = DocumentRelation.internalBinaryRead(reader, reader.uint32(), options, message.relation);
|
|
2051
2047
|
break;
|
|
2052
2048
|
default:
|
|
@@ -2061,7 +2057,7 @@ class AddDocumentRelationRequest$Type extends MessageType<AddDocumentRelationReq
|
|
|
2061
2057
|
return message;
|
|
2062
2058
|
}
|
|
2063
2059
|
internalBinaryWrite(message: AddDocumentRelationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2064
|
-
/* resources.documents.DocumentRelation relation = 1; */
|
|
2060
|
+
/* resources.documents.relations.DocumentRelation relation = 1; */
|
|
2065
2061
|
if (message.relation)
|
|
2066
2062
|
DocumentRelation.internalBinaryWrite(message.relation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2067
2063
|
let u = options.writeUnknownFields;
|
|
@@ -2283,7 +2279,7 @@ class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
|
2283
2279
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
2284
2280
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
2285
2281
|
break;
|
|
2286
|
-
case /* repeated resources.documents.Comment comments */ 2:
|
|
2282
|
+
case /* repeated resources.documents.comment.Comment comments */ 2:
|
|
2287
2283
|
message.comments.push(Comment.internalBinaryRead(reader, reader.uint32(), options));
|
|
2288
2284
|
break;
|
|
2289
2285
|
default:
|
|
@@ -2301,7 +2297,7 @@ class GetCommentsResponse$Type extends MessageType<GetCommentsResponse> {
|
|
|
2301
2297
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
2302
2298
|
if (message.pagination)
|
|
2303
2299
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2304
|
-
/* repeated resources.documents.Comment comments = 2; */
|
|
2300
|
+
/* repeated resources.documents.comment.Comment comments = 2; */
|
|
2305
2301
|
for (let i = 0; i < message.comments.length; i++)
|
|
2306
2302
|
Comment.internalBinaryWrite(message.comments[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2307
2303
|
let u = options.writeUnknownFields;
|
|
@@ -2332,7 +2328,7 @@ class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
|
2332
2328
|
while (reader.pos < end) {
|
|
2333
2329
|
let [fieldNo, wireType] = reader.tag();
|
|
2334
2330
|
switch (fieldNo) {
|
|
2335
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2331
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2336
2332
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2337
2333
|
break;
|
|
2338
2334
|
default:
|
|
@@ -2347,7 +2343,7 @@ class PostCommentRequest$Type extends MessageType<PostCommentRequest> {
|
|
|
2347
2343
|
return message;
|
|
2348
2344
|
}
|
|
2349
2345
|
internalBinaryWrite(message: PostCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2350
|
-
/* resources.documents.Comment comment = 1; */
|
|
2346
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2351
2347
|
if (message.comment)
|
|
2352
2348
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2353
2349
|
let u = options.writeUnknownFields;
|
|
@@ -2378,7 +2374,7 @@ class PostCommentResponse$Type extends MessageType<PostCommentResponse> {
|
|
|
2378
2374
|
while (reader.pos < end) {
|
|
2379
2375
|
let [fieldNo, wireType] = reader.tag();
|
|
2380
2376
|
switch (fieldNo) {
|
|
2381
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2377
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2382
2378
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2383
2379
|
break;
|
|
2384
2380
|
default:
|
|
@@ -2393,7 +2389,7 @@ class PostCommentResponse$Type extends MessageType<PostCommentResponse> {
|
|
|
2393
2389
|
return message;
|
|
2394
2390
|
}
|
|
2395
2391
|
internalBinaryWrite(message: PostCommentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2396
|
-
/* resources.documents.Comment comment = 1; */
|
|
2392
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2397
2393
|
if (message.comment)
|
|
2398
2394
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2399
2395
|
let u = options.writeUnknownFields;
|
|
@@ -2424,7 +2420,7 @@ class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
|
2424
2420
|
while (reader.pos < end) {
|
|
2425
2421
|
let [fieldNo, wireType] = reader.tag();
|
|
2426
2422
|
switch (fieldNo) {
|
|
2427
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2423
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2428
2424
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2429
2425
|
break;
|
|
2430
2426
|
default:
|
|
@@ -2439,7 +2435,7 @@ class EditCommentRequest$Type extends MessageType<EditCommentRequest> {
|
|
|
2439
2435
|
return message;
|
|
2440
2436
|
}
|
|
2441
2437
|
internalBinaryWrite(message: EditCommentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2442
|
-
/* resources.documents.Comment comment = 1; */
|
|
2438
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2443
2439
|
if (message.comment)
|
|
2444
2440
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2445
2441
|
let u = options.writeUnknownFields;
|
|
@@ -2470,7 +2466,7 @@ class EditCommentResponse$Type extends MessageType<EditCommentResponse> {
|
|
|
2470
2466
|
while (reader.pos < end) {
|
|
2471
2467
|
let [fieldNo, wireType] = reader.tag();
|
|
2472
2468
|
switch (fieldNo) {
|
|
2473
|
-
case /* resources.documents.Comment comment */ 1:
|
|
2469
|
+
case /* resources.documents.comment.Comment comment */ 1:
|
|
2474
2470
|
message.comment = Comment.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
|
2475
2471
|
break;
|
|
2476
2472
|
default:
|
|
@@ -2485,7 +2481,7 @@ class EditCommentResponse$Type extends MessageType<EditCommentResponse> {
|
|
|
2485
2481
|
return message;
|
|
2486
2482
|
}
|
|
2487
2483
|
internalBinaryWrite(message: EditCommentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2488
|
-
/* resources.documents.Comment comment = 1; */
|
|
2484
|
+
/* resources.documents.comment.Comment comment = 1; */
|
|
2489
2485
|
if (message.comment)
|
|
2490
2486
|
Comment.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2491
2487
|
let u = options.writeUnknownFields;
|
|
@@ -2634,7 +2630,7 @@ class DeleteDocumentRequest$Type extends MessageType<DeleteDocumentRequest> {
|
|
|
2634
2630
|
constructor() {
|
|
2635
2631
|
super("services.documents.DeleteDocumentRequest", [
|
|
2636
2632
|
{ 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": {
|
|
2633
|
+
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "0", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
2638
2634
|
]);
|
|
2639
2635
|
}
|
|
2640
2636
|
create(value?: PartialMessage<DeleteDocumentRequest>): DeleteDocumentRequest {
|
|
@@ -2933,7 +2929,7 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
2933
2929
|
case /* optional int64 template_id */ 2:
|
|
2934
2930
|
message.templateId = reader.int64().toNumber();
|
|
2935
2931
|
break;
|
|
2936
|
-
case /* optional resources.documents.TemplateData template_data */ 3:
|
|
2932
|
+
case /* optional resources.documents.templates.TemplateData template_data */ 3:
|
|
2937
2933
|
message.templateData = TemplateData.internalBinaryRead(reader, reader.uint32(), options, message.templateData);
|
|
2938
2934
|
break;
|
|
2939
2935
|
default:
|
|
@@ -2954,7 +2950,7 @@ class CreateDocumentRequest$Type extends MessageType<CreateDocumentRequest> {
|
|
|
2954
2950
|
/* optional int64 template_id = 2; */
|
|
2955
2951
|
if (message.templateId !== undefined)
|
|
2956
2952
|
writer.tag(2, WireType.Varint).int64(message.templateId);
|
|
2957
|
-
/* optional resources.documents.TemplateData template_data = 3; */
|
|
2953
|
+
/* optional resources.documents.templates.TemplateData template_data = 3; */
|
|
2958
2954
|
if (message.templateData)
|
|
2959
2955
|
TemplateData.internalBinaryWrite(message.templateData, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2960
2956
|
let u = options.writeUnknownFields;
|
|
@@ -3020,14 +3016,11 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3020
3016
|
super("services.documents.UpdateDocumentRequest", [
|
|
3021
3017
|
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"id\"" } },
|
|
3022
3018
|
{ 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,
|
|
3019
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "3", maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true }, "tagger.tags": "alias:\"title\"" } },
|
|
3024
3020
|
{ no: 4, name: "content", kind: "message", T: () => Content },
|
|
3025
3021
|
{ 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: "
|
|
3027
|
-
{ no: 7, name: "
|
|
3028
|
-
{ no: 8, name: "closed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3029
|
-
{ no: 9, name: "draft", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3030
|
-
{ no: 10, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3022
|
+
{ no: 6, name: "data", kind: "message", T: () => DocumentData },
|
|
3023
|
+
{ no: 7, name: "meta", kind: "message", T: () => DocumentMeta, options: { "buf.validate.field": { required: true } } },
|
|
3031
3024
|
{ no: 11, name: "access", kind: "message", T: () => DocumentAccess },
|
|
3032
3025
|
{ no: 12, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => File, options: { "tagger.tags": "alias:\"files\"" } }
|
|
3033
3026
|
]);
|
|
@@ -3037,10 +3030,6 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3037
3030
|
message.documentId = 0;
|
|
3038
3031
|
message.title = "";
|
|
3039
3032
|
message.contentType = 0;
|
|
3040
|
-
message.state = "";
|
|
3041
|
-
message.closed = false;
|
|
3042
|
-
message.draft = false;
|
|
3043
|
-
message.public = false;
|
|
3044
3033
|
message.files = [];
|
|
3045
3034
|
if (value !== undefined)
|
|
3046
3035
|
reflectionMergePartial<UpdateDocumentRequest>(this, message, value);
|
|
@@ -3066,22 +3055,13 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3066
3055
|
case /* resources.common.content.ContentType content_type */ 5:
|
|
3067
3056
|
message.contentType = reader.int32();
|
|
3068
3057
|
break;
|
|
3069
|
-
case /* optional
|
|
3070
|
-
message.data = reader.
|
|
3071
|
-
break;
|
|
3072
|
-
case /* string state */ 7:
|
|
3073
|
-
message.state = reader.string();
|
|
3074
|
-
break;
|
|
3075
|
-
case /* bool closed */ 8:
|
|
3076
|
-
message.closed = reader.bool();
|
|
3077
|
-
break;
|
|
3078
|
-
case /* bool draft */ 9:
|
|
3079
|
-
message.draft = reader.bool();
|
|
3058
|
+
case /* optional resources.documents.data.DocumentData data */ 6:
|
|
3059
|
+
message.data = DocumentData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
3080
3060
|
break;
|
|
3081
|
-
case /*
|
|
3082
|
-
message.
|
|
3061
|
+
case /* resources.documents.DocumentMeta meta */ 7:
|
|
3062
|
+
message.meta = DocumentMeta.internalBinaryRead(reader, reader.uint32(), options, message.meta);
|
|
3083
3063
|
break;
|
|
3084
|
-
case /* optional resources.documents.DocumentAccess access */ 11:
|
|
3064
|
+
case /* optional resources.documents.access.DocumentAccess access */ 11:
|
|
3085
3065
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3086
3066
|
break;
|
|
3087
3067
|
case /* repeated resources.file.File files */ 12:
|
|
@@ -3114,22 +3094,13 @@ class UpdateDocumentRequest$Type extends MessageType<UpdateDocumentRequest> {
|
|
|
3114
3094
|
/* resources.common.content.ContentType content_type = 5; */
|
|
3115
3095
|
if (message.contentType !== 0)
|
|
3116
3096
|
writer.tag(5, WireType.Varint).int32(message.contentType);
|
|
3117
|
-
/* optional
|
|
3118
|
-
if (message.data
|
|
3119
|
-
writer.tag(6, WireType.LengthDelimited).
|
|
3120
|
-
/*
|
|
3121
|
-
if (message.
|
|
3122
|
-
writer.tag(7, WireType.LengthDelimited).
|
|
3123
|
-
/*
|
|
3124
|
-
if (message.closed !== false)
|
|
3125
|
-
writer.tag(8, WireType.Varint).bool(message.closed);
|
|
3126
|
-
/* bool draft = 9; */
|
|
3127
|
-
if (message.draft !== false)
|
|
3128
|
-
writer.tag(9, WireType.Varint).bool(message.draft);
|
|
3129
|
-
/* bool public = 10; */
|
|
3130
|
-
if (message.public !== false)
|
|
3131
|
-
writer.tag(10, WireType.Varint).bool(message.public);
|
|
3132
|
-
/* optional resources.documents.DocumentAccess access = 11; */
|
|
3097
|
+
/* optional resources.documents.data.DocumentData data = 6; */
|
|
3098
|
+
if (message.data)
|
|
3099
|
+
DocumentData.internalBinaryWrite(message.data, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
3100
|
+
/* resources.documents.DocumentMeta meta = 7; */
|
|
3101
|
+
if (message.meta)
|
|
3102
|
+
DocumentMeta.internalBinaryWrite(message.meta, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3103
|
+
/* optional resources.documents.access.DocumentAccess access = 11; */
|
|
3133
3104
|
if (message.access)
|
|
3134
3105
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
3135
3106
|
/* repeated resources.file.File files = 12; */
|
|
@@ -3151,7 +3122,7 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3151
3122
|
super("services.documents.ListDocumentActivityRequest", [
|
|
3152
3123
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3153
3124
|
{ 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] } } } } } }
|
|
3125
|
+
{ no: 3, name: "activity_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "10", items: { enum: { in: [13, 14, 15, 16, 17, 18] } } } } } }
|
|
3155
3126
|
]);
|
|
3156
3127
|
}
|
|
3157
3128
|
create(value?: PartialMessage<ListDocumentActivityRequest>): ListDocumentActivityRequest {
|
|
@@ -3173,7 +3144,7 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3173
3144
|
case /* int64 document_id */ 2:
|
|
3174
3145
|
message.documentId = reader.int64().toNumber();
|
|
3175
3146
|
break;
|
|
3176
|
-
case /* repeated resources.documents.DocActivityType activity_types */ 3:
|
|
3147
|
+
case /* repeated resources.documents.activity.DocActivityType activity_types */ 3:
|
|
3177
3148
|
if (wireType === WireType.LengthDelimited)
|
|
3178
3149
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3179
3150
|
message.activityTypes.push(reader.int32());
|
|
@@ -3198,7 +3169,7 @@ class ListDocumentActivityRequest$Type extends MessageType<ListDocumentActivityR
|
|
|
3198
3169
|
/* int64 document_id = 2; */
|
|
3199
3170
|
if (message.documentId !== 0)
|
|
3200
3171
|
writer.tag(2, WireType.Varint).int64(message.documentId);
|
|
3201
|
-
/* repeated resources.documents.DocActivityType activity_types = 3; */
|
|
3172
|
+
/* repeated resources.documents.activity.DocActivityType activity_types = 3; */
|
|
3202
3173
|
if (message.activityTypes.length) {
|
|
3203
3174
|
writer.tag(3, WireType.LengthDelimited).fork();
|
|
3204
3175
|
for (let i = 0; i < message.activityTypes.length; i++)
|
|
@@ -3238,7 +3209,7 @@ class ListDocumentActivityResponse$Type extends MessageType<ListDocumentActivity
|
|
|
3238
3209
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
3239
3210
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3240
3211
|
break;
|
|
3241
|
-
case /* repeated resources.documents.DocActivity activity */ 2:
|
|
3212
|
+
case /* repeated resources.documents.activity.DocActivity activity */ 2:
|
|
3242
3213
|
message.activity.push(DocActivity.internalBinaryRead(reader, reader.uint32(), options));
|
|
3243
3214
|
break;
|
|
3244
3215
|
default:
|
|
@@ -3256,7 +3227,7 @@ class ListDocumentActivityResponse$Type extends MessageType<ListDocumentActivity
|
|
|
3256
3227
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
3257
3228
|
if (message.pagination)
|
|
3258
3229
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3259
|
-
/* repeated resources.documents.DocActivity activity = 2; */
|
|
3230
|
+
/* repeated resources.documents.activity.DocActivity activity = 2; */
|
|
3260
3231
|
for (let i = 0; i < message.activity.length; i++)
|
|
3261
3232
|
DocActivity.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3262
3233
|
let u = options.writeUnknownFields;
|
|
@@ -3346,7 +3317,7 @@ class ListDocumentReqsResponse$Type extends MessageType<ListDocumentReqsResponse
|
|
|
3346
3317
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
3347
3318
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3348
3319
|
break;
|
|
3349
|
-
case /* repeated resources.documents.DocRequest requests */ 2:
|
|
3320
|
+
case /* repeated resources.documents.requests.DocRequest requests */ 2:
|
|
3350
3321
|
message.requests.push(DocRequest.internalBinaryRead(reader, reader.uint32(), options));
|
|
3351
3322
|
break;
|
|
3352
3323
|
default:
|
|
@@ -3364,7 +3335,7 @@ class ListDocumentReqsResponse$Type extends MessageType<ListDocumentReqsResponse
|
|
|
3364
3335
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
3365
3336
|
if (message.pagination)
|
|
3366
3337
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3367
|
-
/* repeated resources.documents.DocRequest requests = 2; */
|
|
3338
|
+
/* repeated resources.documents.requests.DocRequest requests = 2; */
|
|
3368
3339
|
for (let i = 0; i < message.requests.length; i++)
|
|
3369
3340
|
DocRequest.internalBinaryWrite(message.requests[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3370
3341
|
let u = options.writeUnknownFields;
|
|
@@ -3382,7 +3353,7 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3382
3353
|
constructor() {
|
|
3383
3354
|
super("services.documents.CreateDocumentReqRequest", [
|
|
3384
3355
|
{ 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] } } } },
|
|
3356
|
+
{ no: 2, name: "request_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { in: [13, 14, 15, 16, 17, 18] } } } },
|
|
3386
3357
|
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
3387
3358
|
{ no: 4, name: "data", kind: "message", T: () => DocActivityData }
|
|
3388
3359
|
]);
|
|
@@ -3403,13 +3374,13 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3403
3374
|
case /* int64 document_id */ 1:
|
|
3404
3375
|
message.documentId = reader.int64().toNumber();
|
|
3405
3376
|
break;
|
|
3406
|
-
case /* resources.documents.DocActivityType request_type */ 2:
|
|
3377
|
+
case /* resources.documents.activity.DocActivityType request_type */ 2:
|
|
3407
3378
|
message.requestType = reader.int32();
|
|
3408
3379
|
break;
|
|
3409
3380
|
case /* optional string reason */ 3:
|
|
3410
3381
|
message.reason = reader.string();
|
|
3411
3382
|
break;
|
|
3412
|
-
case /* optional resources.documents.DocActivityData data */ 4:
|
|
3383
|
+
case /* optional resources.documents.activity.DocActivityData data */ 4:
|
|
3413
3384
|
message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
3414
3385
|
break;
|
|
3415
3386
|
default:
|
|
@@ -3427,13 +3398,13 @@ class CreateDocumentReqRequest$Type extends MessageType<CreateDocumentReqRequest
|
|
|
3427
3398
|
/* int64 document_id = 1; */
|
|
3428
3399
|
if (message.documentId !== 0)
|
|
3429
3400
|
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3430
|
-
/* resources.documents.DocActivityType request_type = 2; */
|
|
3401
|
+
/* resources.documents.activity.DocActivityType request_type = 2; */
|
|
3431
3402
|
if (message.requestType !== 0)
|
|
3432
3403
|
writer.tag(2, WireType.Varint).int32(message.requestType);
|
|
3433
3404
|
/* optional string reason = 3; */
|
|
3434
3405
|
if (message.reason !== undefined)
|
|
3435
3406
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
3436
|
-
/* optional resources.documents.DocActivityData data = 4; */
|
|
3407
|
+
/* optional resources.documents.activity.DocActivityData data = 4; */
|
|
3437
3408
|
if (message.data)
|
|
3438
3409
|
DocActivityData.internalBinaryWrite(message.data, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3439
3410
|
let u = options.writeUnknownFields;
|
|
@@ -3464,7 +3435,7 @@ class CreateDocumentReqResponse$Type extends MessageType<CreateDocumentReqRespon
|
|
|
3464
3435
|
while (reader.pos < end) {
|
|
3465
3436
|
let [fieldNo, wireType] = reader.tag();
|
|
3466
3437
|
switch (fieldNo) {
|
|
3467
|
-
case /* resources.documents.DocRequest request */ 1:
|
|
3438
|
+
case /* resources.documents.requests.DocRequest request */ 1:
|
|
3468
3439
|
message.request = DocRequest.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
3469
3440
|
break;
|
|
3470
3441
|
default:
|
|
@@ -3479,7 +3450,7 @@ class CreateDocumentReqResponse$Type extends MessageType<CreateDocumentReqRespon
|
|
|
3479
3450
|
return message;
|
|
3480
3451
|
}
|
|
3481
3452
|
internalBinaryWrite(message: CreateDocumentReqResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3482
|
-
/* resources.documents.DocRequest request = 1; */
|
|
3453
|
+
/* resources.documents.requests.DocRequest request = 1; */
|
|
3483
3454
|
if (message.request)
|
|
3484
3455
|
DocRequest.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3485
3456
|
let u = options.writeUnknownFields;
|
|
@@ -3526,7 +3497,7 @@ class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest
|
|
|
3526
3497
|
case /* optional string reason */ 3:
|
|
3527
3498
|
message.reason = reader.string();
|
|
3528
3499
|
break;
|
|
3529
|
-
case /* optional resources.documents.DocActivityData data */ 4:
|
|
3500
|
+
case /* optional resources.documents.activity.DocActivityData data */ 4:
|
|
3530
3501
|
message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
3531
3502
|
break;
|
|
3532
3503
|
case /* bool accepted */ 5:
|
|
@@ -3553,7 +3524,7 @@ class UpdateDocumentReqRequest$Type extends MessageType<UpdateDocumentReqRequest
|
|
|
3553
3524
|
/* optional string reason = 3; */
|
|
3554
3525
|
if (message.reason !== undefined)
|
|
3555
3526
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
3556
|
-
/* optional resources.documents.DocActivityData data = 4; */
|
|
3527
|
+
/* optional resources.documents.activity.DocActivityData data = 4; */
|
|
3557
3528
|
if (message.data)
|
|
3558
3529
|
DocActivityData.internalBinaryWrite(message.data, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3559
3530
|
/* bool accepted = 5; */
|
|
@@ -3587,7 +3558,7 @@ class UpdateDocumentReqResponse$Type extends MessageType<UpdateDocumentReqRespon
|
|
|
3587
3558
|
while (reader.pos < end) {
|
|
3588
3559
|
let [fieldNo, wireType] = reader.tag();
|
|
3589
3560
|
switch (fieldNo) {
|
|
3590
|
-
case /* resources.documents.DocRequest request */ 1:
|
|
3561
|
+
case /* resources.documents.requests.DocRequest request */ 1:
|
|
3591
3562
|
message.request = DocRequest.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
3592
3563
|
break;
|
|
3593
3564
|
default:
|
|
@@ -3602,7 +3573,7 @@ class UpdateDocumentReqResponse$Type extends MessageType<UpdateDocumentReqRespon
|
|
|
3602
3573
|
return message;
|
|
3603
3574
|
}
|
|
3604
3575
|
internalBinaryWrite(message: UpdateDocumentReqResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3605
|
-
/* resources.documents.DocRequest request = 1; */
|
|
3576
|
+
/* resources.documents.requests.DocRequest request = 1; */
|
|
3606
3577
|
if (message.request)
|
|
3607
3578
|
DocRequest.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3608
3579
|
let u = options.writeUnknownFields;
|
|
@@ -3765,7 +3736,7 @@ class GetDocumentAccessResponse$Type extends MessageType<GetDocumentAccessRespon
|
|
|
3765
3736
|
while (reader.pos < end) {
|
|
3766
3737
|
let [fieldNo, wireType] = reader.tag();
|
|
3767
3738
|
switch (fieldNo) {
|
|
3768
|
-
case /* resources.documents.DocumentAccess access */ 1:
|
|
3739
|
+
case /* resources.documents.access.DocumentAccess access */ 1:
|
|
3769
3740
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3770
3741
|
break;
|
|
3771
3742
|
default:
|
|
@@ -3780,7 +3751,7 @@ class GetDocumentAccessResponse$Type extends MessageType<GetDocumentAccessRespon
|
|
|
3780
3751
|
return message;
|
|
3781
3752
|
}
|
|
3782
3753
|
internalBinaryWrite(message: GetDocumentAccessResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3783
|
-
/* resources.documents.DocumentAccess access = 1; */
|
|
3754
|
+
/* resources.documents.access.DocumentAccess access = 1; */
|
|
3784
3755
|
if (message.access)
|
|
3785
3756
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3786
3757
|
let u = options.writeUnknownFields;
|
|
@@ -3816,7 +3787,7 @@ class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest
|
|
|
3816
3787
|
case /* int64 document_id */ 1:
|
|
3817
3788
|
message.documentId = reader.int64().toNumber();
|
|
3818
3789
|
break;
|
|
3819
|
-
case /* resources.documents.DocumentAccess access */ 2:
|
|
3790
|
+
case /* resources.documents.access.DocumentAccess access */ 2:
|
|
3820
3791
|
message.access = DocumentAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
3821
3792
|
break;
|
|
3822
3793
|
default:
|
|
@@ -3834,7 +3805,7 @@ class SetDocumentAccessRequest$Type extends MessageType<SetDocumentAccessRequest
|
|
|
3834
3805
|
/* int64 document_id = 1; */
|
|
3835
3806
|
if (message.documentId !== 0)
|
|
3836
3807
|
writer.tag(1, WireType.Varint).int64(message.documentId);
|
|
3837
|
-
/* resources.documents.DocumentAccess access = 2; */
|
|
3808
|
+
/* resources.documents.access.DocumentAccess access = 2; */
|
|
3838
3809
|
if (message.access)
|
|
3839
3810
|
DocumentAccess.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
3840
3811
|
let u = options.writeUnknownFields;
|
|
@@ -3892,8 +3863,9 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3892
3863
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
3893
3864
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
3894
3865
|
{ 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" } } } },
|
|
3896
|
-
{ no: 5, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3866
|
+
{ no: 4, name: "relations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.documents.relations.DocRelation", DocRelation, "DOC_RELATION_"], options: { "buf.validate.field": { repeated: { maxItems: "3" } } } },
|
|
3867
|
+
{ no: 5, name: "closed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3868
|
+
{ no: 6, name: "include_created", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3897
3869
|
]);
|
|
3898
3870
|
}
|
|
3899
3871
|
create(value?: PartialMessage<ListUserDocumentsRequest>): ListUserDocumentsRequest {
|
|
@@ -3918,7 +3890,7 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3918
3890
|
case /* int32 user_id */ 3:
|
|
3919
3891
|
message.userId = reader.int32();
|
|
3920
3892
|
break;
|
|
3921
|
-
case /* repeated resources.documents.DocRelation relations */ 4:
|
|
3893
|
+
case /* repeated resources.documents.relations.DocRelation relations */ 4:
|
|
3922
3894
|
if (wireType === WireType.LengthDelimited)
|
|
3923
3895
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3924
3896
|
message.relations.push(reader.int32());
|
|
@@ -3928,6 +3900,9 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3928
3900
|
case /* optional bool closed */ 5:
|
|
3929
3901
|
message.closed = reader.bool();
|
|
3930
3902
|
break;
|
|
3903
|
+
case /* optional bool include_created */ 6:
|
|
3904
|
+
message.includeCreated = reader.bool();
|
|
3905
|
+
break;
|
|
3931
3906
|
default:
|
|
3932
3907
|
let u = options.readUnknownField;
|
|
3933
3908
|
if (u === "throw")
|
|
@@ -3949,7 +3924,7 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3949
3924
|
/* int32 user_id = 3; */
|
|
3950
3925
|
if (message.userId !== 0)
|
|
3951
3926
|
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
3952
|
-
/* repeated resources.documents.DocRelation relations = 4; */
|
|
3927
|
+
/* repeated resources.documents.relations.DocRelation relations = 4; */
|
|
3953
3928
|
if (message.relations.length) {
|
|
3954
3929
|
writer.tag(4, WireType.LengthDelimited).fork();
|
|
3955
3930
|
for (let i = 0; i < message.relations.length; i++)
|
|
@@ -3959,6 +3934,9 @@ class ListUserDocumentsRequest$Type extends MessageType<ListUserDocumentsRequest
|
|
|
3959
3934
|
/* optional bool closed = 5; */
|
|
3960
3935
|
if (message.closed !== undefined)
|
|
3961
3936
|
writer.tag(5, WireType.Varint).bool(message.closed);
|
|
3937
|
+
/* optional bool include_created = 6; */
|
|
3938
|
+
if (message.includeCreated !== undefined)
|
|
3939
|
+
writer.tag(6, WireType.Varint).bool(message.includeCreated);
|
|
3962
3940
|
let u = options.writeUnknownFields;
|
|
3963
3941
|
if (u !== false)
|
|
3964
3942
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3992,7 +3970,7 @@ class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsRespon
|
|
|
3992
3970
|
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
3993
3971
|
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
3994
3972
|
break;
|
|
3995
|
-
case /* repeated resources.documents.DocumentRelation relations */ 2:
|
|
3973
|
+
case /* repeated resources.documents.relations.DocumentRelation relations */ 2:
|
|
3996
3974
|
message.relations.push(DocumentRelation.internalBinaryRead(reader, reader.uint32(), options));
|
|
3997
3975
|
break;
|
|
3998
3976
|
default:
|
|
@@ -4010,7 +3988,7 @@ class ListUserDocumentsResponse$Type extends MessageType<ListUserDocumentsRespon
|
|
|
4010
3988
|
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
4011
3989
|
if (message.pagination)
|
|
4012
3990
|
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4013
|
-
/* repeated resources.documents.DocumentRelation relations = 2; */
|
|
3991
|
+
/* repeated resources.documents.relations.DocumentRelation relations = 2; */
|
|
4014
3992
|
for (let i = 0; i < message.relations.length; i++)
|
|
4015
3993
|
DocumentRelation.internalBinaryWrite(message.relations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4016
3994
|
let u = options.writeUnknownFields;
|
|
@@ -4080,7 +4058,7 @@ class ListCategoriesResponse$Type extends MessageType<ListCategoriesResponse> {
|
|
|
4080
4058
|
while (reader.pos < end) {
|
|
4081
4059
|
let [fieldNo, wireType] = reader.tag();
|
|
4082
4060
|
switch (fieldNo) {
|
|
4083
|
-
case /* repeated resources.documents.Category categories */ 1:
|
|
4061
|
+
case /* repeated resources.documents.category.Category categories */ 1:
|
|
4084
4062
|
message.categories.push(Category.internalBinaryRead(reader, reader.uint32(), options));
|
|
4085
4063
|
break;
|
|
4086
4064
|
default:
|
|
@@ -4095,7 +4073,7 @@ class ListCategoriesResponse$Type extends MessageType<ListCategoriesResponse> {
|
|
|
4095
4073
|
return message;
|
|
4096
4074
|
}
|
|
4097
4075
|
internalBinaryWrite(message: ListCategoriesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4098
|
-
/* repeated resources.documents.Category categories = 1; */
|
|
4076
|
+
/* repeated resources.documents.category.Category categories = 1; */
|
|
4099
4077
|
for (let i = 0; i < message.categories.length; i++)
|
|
4100
4078
|
Category.internalBinaryWrite(message.categories[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4101
4079
|
let u = options.writeUnknownFields;
|
|
@@ -4126,7 +4104,7 @@ class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCateg
|
|
|
4126
4104
|
while (reader.pos < end) {
|
|
4127
4105
|
let [fieldNo, wireType] = reader.tag();
|
|
4128
4106
|
switch (fieldNo) {
|
|
4129
|
-
case /* resources.documents.Category category */ 1:
|
|
4107
|
+
case /* resources.documents.category.Category category */ 1:
|
|
4130
4108
|
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
4131
4109
|
break;
|
|
4132
4110
|
default:
|
|
@@ -4141,7 +4119,7 @@ class CreateOrUpdateCategoryRequest$Type extends MessageType<CreateOrUpdateCateg
|
|
|
4141
4119
|
return message;
|
|
4142
4120
|
}
|
|
4143
4121
|
internalBinaryWrite(message: CreateOrUpdateCategoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4144
|
-
/* resources.documents.Category category = 1; */
|
|
4122
|
+
/* resources.documents.category.Category category = 1; */
|
|
4145
4123
|
if (message.category)
|
|
4146
4124
|
Category.internalBinaryWrite(message.category, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4147
4125
|
let u = options.writeUnknownFields;
|
|
@@ -4172,7 +4150,7 @@ class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCate
|
|
|
4172
4150
|
while (reader.pos < end) {
|
|
4173
4151
|
let [fieldNo, wireType] = reader.tag();
|
|
4174
4152
|
switch (fieldNo) {
|
|
4175
|
-
case /* resources.documents.Category category */ 1:
|
|
4153
|
+
case /* resources.documents.category.Category category */ 1:
|
|
4176
4154
|
message.category = Category.internalBinaryRead(reader, reader.uint32(), options, message.category);
|
|
4177
4155
|
break;
|
|
4178
4156
|
default:
|
|
@@ -4187,7 +4165,7 @@ class CreateOrUpdateCategoryResponse$Type extends MessageType<CreateOrUpdateCate
|
|
|
4187
4165
|
return message;
|
|
4188
4166
|
}
|
|
4189
4167
|
internalBinaryWrite(message: CreateOrUpdateCategoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4190
|
-
/* resources.documents.Category category = 1; */
|
|
4168
|
+
/* resources.documents.category.Category category = 1; */
|
|
4191
4169
|
if (message.category)
|
|
4192
4170
|
Category.internalBinaryWrite(message.category, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4193
4171
|
let u = options.writeUnknownFields;
|
|
@@ -4472,7 +4450,7 @@ class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinRespon
|
|
|
4472
4450
|
while (reader.pos < end) {
|
|
4473
4451
|
let [fieldNo, wireType] = reader.tag();
|
|
4474
4452
|
switch (fieldNo) {
|
|
4475
|
-
case /* optional resources.documents.DocumentPin pin */ 1:
|
|
4453
|
+
case /* optional resources.documents.pins.DocumentPin pin */ 1:
|
|
4476
4454
|
message.pin = DocumentPin.internalBinaryRead(reader, reader.uint32(), options, message.pin);
|
|
4477
4455
|
break;
|
|
4478
4456
|
default:
|
|
@@ -4487,7 +4465,7 @@ class ToggleDocumentPinResponse$Type extends MessageType<ToggleDocumentPinRespon
|
|
|
4487
4465
|
return message;
|
|
4488
4466
|
}
|
|
4489
4467
|
internalBinaryWrite(message: ToggleDocumentPinResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4490
|
-
/* optional resources.documents.DocumentPin pin = 1; */
|
|
4468
|
+
/* optional resources.documents.pins.DocumentPin pin = 1; */
|
|
4491
4469
|
if (message.pin)
|
|
4492
4470
|
DocumentPin.internalBinaryWrite(message.pin, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
4493
4471
|
let u = options.writeUnknownFields;
|
|
@@ -4506,7 +4484,7 @@ class SetDocumentReminderRequest$Type extends MessageType<SetDocumentReminderReq
|
|
|
4506
4484
|
super("services.documents.SetDocumentReminderRequest", [
|
|
4507
4485
|
{ no: 1, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
4508
4486
|
{ no: 2, name: "reminder_time", kind: "message", T: () => Timestamp },
|
|
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,
|
|
4487
|
+
{ no: 3, name: "message", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxBytes: "1024" } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
4510
4488
|
{ no: 4, name: "max_reminder_count", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { lte: 10, gte: 1 } } } }
|
|
4511
4489
|
]);
|
|
4512
4490
|
}
|
|
@@ -4641,11 +4619,11 @@ export const DocumentsService = new ServiceType("services.documents.DocumentsSer
|
|
|
4641
4619
|
{ name: "UpdateDocumentReq", options: { "codegen.perms.perms": { enabled: true, name: "CreateDocumentReq" } }, I: UpdateDocumentReqRequest, O: UpdateDocumentReqResponse },
|
|
4642
4620
|
{ name: "DeleteDocumentReq", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDocumentReqRequest, O: DeleteDocumentReqResponse },
|
|
4643
4621
|
{ 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 },
|
|
4622
|
+
{ name: "ListCategories", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Jobs", type: "ATTRIBUTE_TYPE_JOB_LIST" }] } }, I: ListCategoriesRequest, O: ListCategoriesResponse },
|
|
4645
4623
|
{ name: "CreateOrUpdateCategory", options: { "codegen.perms.perms": { enabled: true } }, I: CreateOrUpdateCategoryRequest, O: CreateOrUpdateCategoryResponse },
|
|
4646
4624
|
{ name: "DeleteCategory", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteCategoryRequest, O: DeleteCategoryResponse },
|
|
4647
4625
|
{ name: "ListDocumentPins", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: ListDocumentPinsRequest, O: ListDocumentPinsResponse },
|
|
4648
4626
|
{ name: "ToggleDocumentPin", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Types", type: "ATTRIBUTE_TYPE_STRING_LIST", validStringList: ["JobWide"] }] } }, I: ToggleDocumentPinRequest, O: ToggleDocumentPinResponse },
|
|
4649
4627
|
{ name: "SetDocumentReminder", options: { "codegen.perms.perms": { enabled: true } }, I: SetDocumentReminderRequest, O: SetDocumentReminderResponse },
|
|
4650
4628
|
{ name: "UploadFile", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "UpdateDocument" } }, I: UploadFileRequest, O: UploadFileResponse }
|
|
4651
|
-
]);
|
|
4629
|
+
], { "codegen.perms.perms_svc": { order: 50, icon: "i-mdi-file-document-box-multiple-outline" } });
|