@fivenet-app/gen 2025.5.3 → 2026.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "resources/documents/activity.proto" (package "resources.documents", syntax proto3)
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "resources/documents/activity/activity.proto" (package "resources.documents.activity", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -10,60 +11,59 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { DocumentUserAccess } from "
|
|
14
|
-
import { DocumentJobAccess } from "
|
|
15
|
-
import { AccessLevel } from "
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { DocumentUserAccess } from "../access/access";
|
|
15
|
+
import { DocumentJobAccess } from "../access/access";
|
|
16
|
+
import { AccessLevel } from "../access/access";
|
|
17
|
+
import { ContentDiff } from "../../common/content/diff_activity";
|
|
18
|
+
import { UserShort } from "../../users/short/user";
|
|
19
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
18
20
|
/**
|
|
19
|
-
* @generated from protobuf message resources.documents.DocActivity
|
|
21
|
+
* @generated from protobuf message resources.documents.activity.DocActivity
|
|
20
22
|
*/
|
|
21
23
|
export interface DocActivity {
|
|
22
24
|
/**
|
|
23
|
-
* @generated from protobuf field:
|
|
25
|
+
* @generated from protobuf field: int64 id = 1
|
|
24
26
|
*/
|
|
25
27
|
id: number;
|
|
26
28
|
/**
|
|
27
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
|
|
29
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
|
|
28
30
|
*/
|
|
29
31
|
createdAt?: Timestamp;
|
|
30
32
|
/**
|
|
31
|
-
* @generated from protobuf field:
|
|
33
|
+
* @generated from protobuf field: int64 document_id = 3
|
|
32
34
|
*/
|
|
33
35
|
documentId: number;
|
|
34
36
|
/**
|
|
35
|
-
* @generated from protobuf field: resources.documents.DocActivityType activity_type = 4
|
|
37
|
+
* @generated from protobuf field: resources.documents.activity.DocActivityType activity_type = 4
|
|
36
38
|
*/
|
|
37
39
|
activityType: DocActivityType;
|
|
38
40
|
/**
|
|
39
|
-
* @generated from protobuf field: optional int32 creator_id = 5
|
|
41
|
+
* @generated from protobuf field: optional int32 creator_id = 5
|
|
40
42
|
*/
|
|
41
43
|
creatorId?: number;
|
|
42
44
|
/**
|
|
43
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 6
|
|
45
|
+
* @generated from protobuf field: optional resources.users.short.UserShort creator = 6
|
|
44
46
|
*/
|
|
45
|
-
creator?: UserShort;
|
|
47
|
+
creator?: UserShort;
|
|
46
48
|
/**
|
|
47
|
-
* @generated from protobuf field: string creator_job = 7
|
|
49
|
+
* @generated from protobuf field: string creator_job = 7
|
|
48
50
|
*/
|
|
49
51
|
creatorJob: string;
|
|
50
52
|
/**
|
|
51
|
-
* @generated from protobuf field: optional string creator_job_label = 8
|
|
53
|
+
* @generated from protobuf field: optional string creator_job_label = 8
|
|
52
54
|
*/
|
|
53
55
|
creatorJobLabel?: string;
|
|
54
56
|
/**
|
|
55
|
-
* @generated from protobuf field: optional string reason = 9
|
|
57
|
+
* @generated from protobuf field: optional string reason = 9
|
|
56
58
|
*/
|
|
57
59
|
reason?: string;
|
|
58
60
|
/**
|
|
59
|
-
* @generated from protobuf field: resources.documents.DocActivityData data = 10
|
|
61
|
+
* @generated from protobuf field: resources.documents.activity.DocActivityData data = 10
|
|
60
62
|
*/
|
|
61
63
|
data?: DocActivityData;
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
|
-
* @
|
|
65
|
-
*
|
|
66
|
-
* @generated from protobuf message resources.documents.DocActivityData
|
|
66
|
+
* @generated from protobuf message resources.documents.activity.DocActivityData
|
|
67
67
|
*/
|
|
68
68
|
export interface DocActivityData {
|
|
69
69
|
/**
|
|
@@ -72,119 +72,167 @@ export interface DocActivityData {
|
|
|
72
72
|
data: {
|
|
73
73
|
oneofKind: "updated";
|
|
74
74
|
/**
|
|
75
|
-
* @generated from protobuf field: resources.documents.DocUpdated updated = 1
|
|
75
|
+
* @generated from protobuf field: resources.documents.activity.DocUpdated updated = 1
|
|
76
76
|
*/
|
|
77
77
|
updated: DocUpdated;
|
|
78
78
|
} | {
|
|
79
79
|
oneofKind: "ownerChanged";
|
|
80
80
|
/**
|
|
81
|
-
* @generated from protobuf field: resources.documents.DocOwnerChanged owner_changed = 2
|
|
81
|
+
* @generated from protobuf field: resources.documents.activity.DocOwnerChanged owner_changed = 2
|
|
82
82
|
*/
|
|
83
83
|
ownerChanged: DocOwnerChanged;
|
|
84
84
|
} | {
|
|
85
85
|
oneofKind: "accessUpdated";
|
|
86
86
|
/**
|
|
87
|
-
* @generated from protobuf field: resources.documents.DocAccessUpdated access_updated = 4
|
|
87
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessUpdated access_updated = 4
|
|
88
88
|
*/
|
|
89
89
|
accessUpdated: DocAccessUpdated;
|
|
90
90
|
} | {
|
|
91
91
|
oneofKind: "accessRequested";
|
|
92
92
|
/**
|
|
93
|
-
* @generated from protobuf field: resources.documents.DocAccessRequested access_requested = 5
|
|
93
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessRequested access_requested = 5
|
|
94
94
|
*/
|
|
95
95
|
accessRequested: DocAccessRequested;
|
|
96
|
+
} | {
|
|
97
|
+
oneofKind: "signingRequested";
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: resources.documents.activity.DocSigningRequested signing_requested = 6
|
|
100
|
+
*/
|
|
101
|
+
signingRequested: DocSigningRequested;
|
|
96
102
|
} | {
|
|
97
103
|
oneofKind: undefined;
|
|
98
104
|
};
|
|
99
105
|
}
|
|
100
106
|
/**
|
|
101
|
-
* @generated from protobuf message resources.documents.DocUpdated
|
|
107
|
+
* @generated from protobuf message resources.documents.activity.DocUpdated
|
|
102
108
|
*/
|
|
103
109
|
export interface DocUpdated {
|
|
104
110
|
/**
|
|
105
|
-
* @generated from protobuf field: optional string title_diff = 1
|
|
111
|
+
* @generated from protobuf field: optional string title_diff = 1
|
|
106
112
|
*/
|
|
107
113
|
titleDiff?: string;
|
|
108
114
|
/**
|
|
109
|
-
* @generated from protobuf field: optional
|
|
115
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff title_cdiff = 5
|
|
116
|
+
*/
|
|
117
|
+
titleCdiff?: ContentDiff;
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf field: optional string content_diff = 2
|
|
110
120
|
*/
|
|
111
121
|
contentDiff?: string;
|
|
112
122
|
/**
|
|
113
|
-
* @generated from protobuf field: optional
|
|
123
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff content_cdiff = 6
|
|
124
|
+
*/
|
|
125
|
+
contentCdiff?: ContentDiff;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf field: optional string state_diff = 3
|
|
114
128
|
*/
|
|
115
129
|
stateDiff?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff state_cdiff = 7
|
|
132
|
+
*/
|
|
133
|
+
stateCdiff?: ContentDiff;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf field: optional resources.documents.activity.DocFilesChange files_change = 4
|
|
136
|
+
*/
|
|
137
|
+
filesChange?: DocFilesChange;
|
|
116
138
|
}
|
|
117
139
|
/**
|
|
118
|
-
* @generated from protobuf message resources.documents.
|
|
140
|
+
* @generated from protobuf message resources.documents.activity.DocFilesChange
|
|
141
|
+
*/
|
|
142
|
+
export interface DocFilesChange {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf field: int64 added = 1
|
|
145
|
+
*/
|
|
146
|
+
added: number;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf field: int64 deleted = 2
|
|
149
|
+
*/
|
|
150
|
+
deleted: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf message resources.documents.activity.DocOwnerChanged
|
|
119
154
|
*/
|
|
120
155
|
export interface DocOwnerChanged {
|
|
121
156
|
/**
|
|
122
|
-
* @generated from protobuf field: int32 new_owner_id = 1
|
|
157
|
+
* @generated from protobuf field: int32 new_owner_id = 1
|
|
123
158
|
*/
|
|
124
159
|
newOwnerId: number;
|
|
125
160
|
/**
|
|
126
|
-
* @generated from protobuf field: resources.users.UserShort new_owner = 2
|
|
161
|
+
* @generated from protobuf field: resources.users.short.UserShort new_owner = 2
|
|
127
162
|
*/
|
|
128
163
|
newOwner?: UserShort;
|
|
129
164
|
}
|
|
130
165
|
/**
|
|
131
|
-
* @generated from protobuf message resources.documents.DocAccessRequested
|
|
166
|
+
* @generated from protobuf message resources.documents.activity.DocAccessRequested
|
|
132
167
|
*/
|
|
133
168
|
export interface DocAccessRequested {
|
|
134
169
|
/**
|
|
135
|
-
* @generated from protobuf field: resources.documents.AccessLevel level = 1
|
|
170
|
+
* @generated from protobuf field: resources.documents.access.AccessLevel level = 1
|
|
136
171
|
*/
|
|
137
172
|
level: AccessLevel;
|
|
138
173
|
}
|
|
139
174
|
/**
|
|
140
|
-
* @generated from protobuf message resources.documents.DocAccessUpdated
|
|
175
|
+
* @generated from protobuf message resources.documents.activity.DocAccessUpdated
|
|
141
176
|
*/
|
|
142
177
|
export interface DocAccessUpdated {
|
|
143
178
|
/**
|
|
144
|
-
* @generated from protobuf field: resources.documents.DocAccessJobsDiff jobs = 1
|
|
179
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessJobsDiff jobs = 1
|
|
145
180
|
*/
|
|
146
181
|
jobs?: DocAccessJobsDiff;
|
|
147
182
|
/**
|
|
148
|
-
* @generated from protobuf field: resources.documents.DocAccessUsersDiff users = 2
|
|
183
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessUsersDiff users = 2
|
|
149
184
|
*/
|
|
150
185
|
users?: DocAccessUsersDiff;
|
|
151
186
|
}
|
|
152
187
|
/**
|
|
153
|
-
* @generated from protobuf message resources.documents.DocAccessJobsDiff
|
|
188
|
+
* @generated from protobuf message resources.documents.activity.DocAccessJobsDiff
|
|
154
189
|
*/
|
|
155
190
|
export interface DocAccessJobsDiff {
|
|
156
191
|
/**
|
|
157
|
-
* @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_create = 1
|
|
192
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_create = 1
|
|
158
193
|
*/
|
|
159
194
|
toCreate: DocumentJobAccess[];
|
|
160
195
|
/**
|
|
161
|
-
* @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_update = 2
|
|
196
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_update = 2
|
|
162
197
|
*/
|
|
163
198
|
toUpdate: DocumentJobAccess[];
|
|
164
199
|
/**
|
|
165
|
-
* @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_delete = 3
|
|
200
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_delete = 3
|
|
166
201
|
*/
|
|
167
202
|
toDelete: DocumentJobAccess[];
|
|
168
203
|
}
|
|
169
204
|
/**
|
|
170
|
-
* @generated from protobuf message resources.documents.DocAccessUsersDiff
|
|
205
|
+
* @generated from protobuf message resources.documents.activity.DocAccessUsersDiff
|
|
171
206
|
*/
|
|
172
207
|
export interface DocAccessUsersDiff {
|
|
173
208
|
/**
|
|
174
|
-
* @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_create = 1
|
|
209
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_create = 1
|
|
175
210
|
*/
|
|
176
211
|
toCreate: DocumentUserAccess[];
|
|
177
212
|
/**
|
|
178
|
-
* @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_update = 2
|
|
213
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_update = 2
|
|
179
214
|
*/
|
|
180
215
|
toUpdate: DocumentUserAccess[];
|
|
181
216
|
/**
|
|
182
|
-
* @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_delete = 3
|
|
217
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_delete = 3
|
|
183
218
|
*/
|
|
184
219
|
toDelete: DocumentUserAccess[];
|
|
185
220
|
}
|
|
186
221
|
/**
|
|
187
|
-
* @generated from protobuf
|
|
222
|
+
* @generated from protobuf message resources.documents.activity.DocSigningRequested
|
|
223
|
+
*/
|
|
224
|
+
export interface DocSigningRequested {
|
|
225
|
+
/**
|
|
226
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deadline = 1
|
|
227
|
+
*/
|
|
228
|
+
deadline?: Timestamp;
|
|
229
|
+
/**
|
|
230
|
+
* @generated from protobuf field: repeated resources.users.short.UserShort approvers = 2
|
|
231
|
+
*/
|
|
232
|
+
approvers: UserShort[];
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @generated from protobuf enum resources.documents.activity.DocActivityType
|
|
188
236
|
*/
|
|
189
237
|
export enum DocActivityType {
|
|
190
238
|
/**
|
|
@@ -229,6 +277,10 @@ export enum DocActivityType {
|
|
|
229
277
|
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_DELETED = 9;
|
|
230
278
|
*/
|
|
231
279
|
DELETED = 9,
|
|
280
|
+
/**
|
|
281
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_DRAFT_TOGGLED = 19;
|
|
282
|
+
*/
|
|
283
|
+
DRAFT_TOGGLED = 19,
|
|
232
284
|
/**
|
|
233
285
|
* Comments
|
|
234
286
|
*
|
|
@@ -268,21 +320,47 @@ export enum DocActivityType {
|
|
|
268
320
|
/**
|
|
269
321
|
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_DELETION = 18;
|
|
270
322
|
*/
|
|
271
|
-
REQUESTED_DELETION = 18
|
|
323
|
+
REQUESTED_DELETION = 18,
|
|
324
|
+
/**
|
|
325
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_APPROVAL = 20;
|
|
326
|
+
*/
|
|
327
|
+
REQUESTED_APPROVAL = 20,
|
|
328
|
+
/**
|
|
329
|
+
* Approval
|
|
330
|
+
*
|
|
331
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_APPROVAL_ASSIGNED = 40;
|
|
332
|
+
*/
|
|
333
|
+
APPROVAL_ASSIGNED = 40,
|
|
334
|
+
/**
|
|
335
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_APPROVAL_APPROVED = 41;
|
|
336
|
+
*/
|
|
337
|
+
APPROVAL_APPROVED = 41,
|
|
338
|
+
/**
|
|
339
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_APPROVAL_REJECTED = 42;
|
|
340
|
+
*/
|
|
341
|
+
APPROVAL_REJECTED = 42,
|
|
342
|
+
/**
|
|
343
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_APPROVAL_REVOKED = 43;
|
|
344
|
+
*/
|
|
345
|
+
APPROVAL_REVOKED = 43,
|
|
346
|
+
/**
|
|
347
|
+
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_APPROVAL_REMOVED = 44;
|
|
348
|
+
*/
|
|
349
|
+
APPROVAL_REMOVED = 44
|
|
272
350
|
}
|
|
273
351
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
274
352
|
class DocActivity$Type extends MessageType<DocActivity> {
|
|
275
353
|
constructor() {
|
|
276
|
-
super("resources.documents.DocActivity", [
|
|
277
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
354
|
+
super("resources.documents.activity.DocActivity", [
|
|
355
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
278
356
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
279
|
-
{ no: 3, name: "document_id", kind: "scalar", T:
|
|
280
|
-
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
|
|
281
|
-
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
282
|
-
{ no: 6, name: "creator", kind: "message", T: () => UserShort },
|
|
283
|
-
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
284
|
-
{ no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
285
|
-
{ no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
357
|
+
{ no: 3, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
358
|
+
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
|
|
359
|
+
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
360
|
+
{ no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
361
|
+
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
362
|
+
{ no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
363
|
+
{ no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
286
364
|
{ no: 10, name: "data", kind: "message", T: () => DocActivityData }
|
|
287
365
|
]);
|
|
288
366
|
}
|
|
@@ -301,22 +379,22 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
301
379
|
while (reader.pos < end) {
|
|
302
380
|
let [fieldNo, wireType] = reader.tag();
|
|
303
381
|
switch (fieldNo) {
|
|
304
|
-
case /*
|
|
305
|
-
message.id = reader.
|
|
382
|
+
case /* int64 id */ 1:
|
|
383
|
+
message.id = reader.int64().toNumber();
|
|
306
384
|
break;
|
|
307
385
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
308
386
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
309
387
|
break;
|
|
310
|
-
case /*
|
|
311
|
-
message.documentId = reader.
|
|
388
|
+
case /* int64 document_id */ 3:
|
|
389
|
+
message.documentId = reader.int64().toNumber();
|
|
312
390
|
break;
|
|
313
|
-
case /* resources.documents.DocActivityType activity_type */ 4:
|
|
391
|
+
case /* resources.documents.activity.DocActivityType activity_type */ 4:
|
|
314
392
|
message.activityType = reader.int32();
|
|
315
393
|
break;
|
|
316
394
|
case /* optional int32 creator_id */ 5:
|
|
317
395
|
message.creatorId = reader.int32();
|
|
318
396
|
break;
|
|
319
|
-
case /* optional resources.users.UserShort creator */ 6:
|
|
397
|
+
case /* optional resources.users.short.UserShort creator */ 6:
|
|
320
398
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
321
399
|
break;
|
|
322
400
|
case /* string creator_job */ 7:
|
|
@@ -328,7 +406,7 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
328
406
|
case /* optional string reason */ 9:
|
|
329
407
|
message.reason = reader.string();
|
|
330
408
|
break;
|
|
331
|
-
case /* resources.documents.DocActivityData data */ 10:
|
|
409
|
+
case /* resources.documents.activity.DocActivityData data */ 10:
|
|
332
410
|
message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
333
411
|
break;
|
|
334
412
|
default:
|
|
@@ -343,22 +421,22 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
343
421
|
return message;
|
|
344
422
|
}
|
|
345
423
|
internalBinaryWrite(message: DocActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
346
|
-
/*
|
|
424
|
+
/* int64 id = 1; */
|
|
347
425
|
if (message.id !== 0)
|
|
348
|
-
writer.tag(1, WireType.Varint).
|
|
426
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
349
427
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
350
428
|
if (message.createdAt)
|
|
351
429
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
352
|
-
/*
|
|
430
|
+
/* int64 document_id = 3; */
|
|
353
431
|
if (message.documentId !== 0)
|
|
354
|
-
writer.tag(3, WireType.Varint).
|
|
355
|
-
/* resources.documents.DocActivityType activity_type = 4; */
|
|
432
|
+
writer.tag(3, WireType.Varint).int64(message.documentId);
|
|
433
|
+
/* resources.documents.activity.DocActivityType activity_type = 4; */
|
|
356
434
|
if (message.activityType !== 0)
|
|
357
435
|
writer.tag(4, WireType.Varint).int32(message.activityType);
|
|
358
436
|
/* optional int32 creator_id = 5; */
|
|
359
437
|
if (message.creatorId !== undefined)
|
|
360
438
|
writer.tag(5, WireType.Varint).int32(message.creatorId);
|
|
361
|
-
/* optional resources.users.UserShort creator = 6; */
|
|
439
|
+
/* optional resources.users.short.UserShort creator = 6; */
|
|
362
440
|
if (message.creator)
|
|
363
441
|
UserShort.internalBinaryWrite(message.creator, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
364
442
|
/* string creator_job = 7; */
|
|
@@ -370,7 +448,7 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
370
448
|
/* optional string reason = 9; */
|
|
371
449
|
if (message.reason !== undefined)
|
|
372
450
|
writer.tag(9, WireType.LengthDelimited).string(message.reason);
|
|
373
|
-
/* resources.documents.DocActivityData data = 10; */
|
|
451
|
+
/* resources.documents.activity.DocActivityData data = 10; */
|
|
374
452
|
if (message.data)
|
|
375
453
|
DocActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
376
454
|
let u = options.writeUnknownFields;
|
|
@@ -380,18 +458,19 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
380
458
|
}
|
|
381
459
|
}
|
|
382
460
|
/**
|
|
383
|
-
* @generated MessageType for protobuf message resources.documents.DocActivity
|
|
461
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocActivity
|
|
384
462
|
*/
|
|
385
463
|
export const DocActivity = new DocActivity$Type();
|
|
386
464
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
387
465
|
class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
388
466
|
constructor() {
|
|
389
|
-
super("resources.documents.DocActivityData", [
|
|
467
|
+
super("resources.documents.activity.DocActivityData", [
|
|
390
468
|
{ no: 1, name: "updated", kind: "message", oneof: "data", T: () => DocUpdated },
|
|
391
469
|
{ no: 2, name: "owner_changed", kind: "message", oneof: "data", T: () => DocOwnerChanged },
|
|
392
470
|
{ no: 4, name: "access_updated", kind: "message", oneof: "data", T: () => DocAccessUpdated },
|
|
393
|
-
{ no: 5, name: "access_requested", kind: "message", oneof: "data", T: () => DocAccessRequested }
|
|
394
|
-
|
|
471
|
+
{ no: 5, name: "access_requested", kind: "message", oneof: "data", T: () => DocAccessRequested },
|
|
472
|
+
{ no: 6, name: "signing_requested", kind: "message", oneof: "data", T: () => DocSigningRequested }
|
|
473
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
395
474
|
}
|
|
396
475
|
create(value?: PartialMessage<DocActivityData>): DocActivityData {
|
|
397
476
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -405,30 +484,36 @@ class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
|
405
484
|
while (reader.pos < end) {
|
|
406
485
|
let [fieldNo, wireType] = reader.tag();
|
|
407
486
|
switch (fieldNo) {
|
|
408
|
-
case /* resources.documents.DocUpdated updated */ 1:
|
|
487
|
+
case /* resources.documents.activity.DocUpdated updated */ 1:
|
|
409
488
|
message.data = {
|
|
410
489
|
oneofKind: "updated",
|
|
411
490
|
updated: DocUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updated)
|
|
412
491
|
};
|
|
413
492
|
break;
|
|
414
|
-
case /* resources.documents.DocOwnerChanged owner_changed */ 2:
|
|
493
|
+
case /* resources.documents.activity.DocOwnerChanged owner_changed */ 2:
|
|
415
494
|
message.data = {
|
|
416
495
|
oneofKind: "ownerChanged",
|
|
417
496
|
ownerChanged: DocOwnerChanged.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).ownerChanged)
|
|
418
497
|
};
|
|
419
498
|
break;
|
|
420
|
-
case /* resources.documents.DocAccessUpdated access_updated */ 4:
|
|
499
|
+
case /* resources.documents.activity.DocAccessUpdated access_updated */ 4:
|
|
421
500
|
message.data = {
|
|
422
501
|
oneofKind: "accessUpdated",
|
|
423
502
|
accessUpdated: DocAccessUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessUpdated)
|
|
424
503
|
};
|
|
425
504
|
break;
|
|
426
|
-
case /* resources.documents.DocAccessRequested access_requested */ 5:
|
|
505
|
+
case /* resources.documents.activity.DocAccessRequested access_requested */ 5:
|
|
427
506
|
message.data = {
|
|
428
507
|
oneofKind: "accessRequested",
|
|
429
508
|
accessRequested: DocAccessRequested.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessRequested)
|
|
430
509
|
};
|
|
431
510
|
break;
|
|
511
|
+
case /* resources.documents.activity.DocSigningRequested signing_requested */ 6:
|
|
512
|
+
message.data = {
|
|
513
|
+
oneofKind: "signingRequested",
|
|
514
|
+
signingRequested: DocSigningRequested.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).signingRequested)
|
|
515
|
+
};
|
|
516
|
+
break;
|
|
432
517
|
default:
|
|
433
518
|
let u = options.readUnknownField;
|
|
434
519
|
if (u === "throw")
|
|
@@ -441,18 +526,21 @@ class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
|
441
526
|
return message;
|
|
442
527
|
}
|
|
443
528
|
internalBinaryWrite(message: DocActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
444
|
-
/* resources.documents.DocUpdated updated = 1; */
|
|
529
|
+
/* resources.documents.activity.DocUpdated updated = 1; */
|
|
445
530
|
if (message.data.oneofKind === "updated")
|
|
446
531
|
DocUpdated.internalBinaryWrite(message.data.updated, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
447
|
-
/* resources.documents.DocOwnerChanged owner_changed = 2; */
|
|
532
|
+
/* resources.documents.activity.DocOwnerChanged owner_changed = 2; */
|
|
448
533
|
if (message.data.oneofKind === "ownerChanged")
|
|
449
534
|
DocOwnerChanged.internalBinaryWrite(message.data.ownerChanged, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
450
|
-
/* resources.documents.DocAccessUpdated access_updated = 4; */
|
|
535
|
+
/* resources.documents.activity.DocAccessUpdated access_updated = 4; */
|
|
451
536
|
if (message.data.oneofKind === "accessUpdated")
|
|
452
537
|
DocAccessUpdated.internalBinaryWrite(message.data.accessUpdated, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
453
|
-
/* resources.documents.DocAccessRequested access_requested = 5; */
|
|
538
|
+
/* resources.documents.activity.DocAccessRequested access_requested = 5; */
|
|
454
539
|
if (message.data.oneofKind === "accessRequested")
|
|
455
540
|
DocAccessRequested.internalBinaryWrite(message.data.accessRequested, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
541
|
+
/* resources.documents.activity.DocSigningRequested signing_requested = 6; */
|
|
542
|
+
if (message.data.oneofKind === "signingRequested")
|
|
543
|
+
DocSigningRequested.internalBinaryWrite(message.data.signingRequested, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
456
544
|
let u = options.writeUnknownFields;
|
|
457
545
|
if (u !== false)
|
|
458
546
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -460,16 +548,20 @@ class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
|
460
548
|
}
|
|
461
549
|
}
|
|
462
550
|
/**
|
|
463
|
-
* @generated MessageType for protobuf message resources.documents.DocActivityData
|
|
551
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocActivityData
|
|
464
552
|
*/
|
|
465
553
|
export const DocActivityData = new DocActivityData$Type();
|
|
466
554
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
467
555
|
class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
468
556
|
constructor() {
|
|
469
|
-
super("resources.documents.DocUpdated", [
|
|
557
|
+
super("resources.documents.activity.DocUpdated", [
|
|
470
558
|
{ no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
559
|
+
{ no: 5, name: "title_cdiff", kind: "message", T: () => ContentDiff },
|
|
471
560
|
{ no: 2, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
472
|
-
{ no:
|
|
561
|
+
{ no: 6, name: "content_cdiff", kind: "message", T: () => ContentDiff },
|
|
562
|
+
{ no: 3, name: "state_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
563
|
+
{ no: 7, name: "state_cdiff", kind: "message", T: () => ContentDiff },
|
|
564
|
+
{ no: 4, name: "files_change", kind: "message", T: () => DocFilesChange }
|
|
473
565
|
]);
|
|
474
566
|
}
|
|
475
567
|
create(value?: PartialMessage<DocUpdated>): DocUpdated {
|
|
@@ -486,12 +578,24 @@ class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
|
486
578
|
case /* optional string title_diff */ 1:
|
|
487
579
|
message.titleDiff = reader.string();
|
|
488
580
|
break;
|
|
581
|
+
case /* optional resources.common.content.ContentDiff title_cdiff */ 5:
|
|
582
|
+
message.titleCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.titleCdiff);
|
|
583
|
+
break;
|
|
489
584
|
case /* optional string content_diff */ 2:
|
|
490
585
|
message.contentDiff = reader.string();
|
|
491
586
|
break;
|
|
587
|
+
case /* optional resources.common.content.ContentDiff content_cdiff */ 6:
|
|
588
|
+
message.contentCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.contentCdiff);
|
|
589
|
+
break;
|
|
492
590
|
case /* optional string state_diff */ 3:
|
|
493
591
|
message.stateDiff = reader.string();
|
|
494
592
|
break;
|
|
593
|
+
case /* optional resources.common.content.ContentDiff state_cdiff */ 7:
|
|
594
|
+
message.stateCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.stateCdiff);
|
|
595
|
+
break;
|
|
596
|
+
case /* optional resources.documents.activity.DocFilesChange files_change */ 4:
|
|
597
|
+
message.filesChange = DocFilesChange.internalBinaryRead(reader, reader.uint32(), options, message.filesChange);
|
|
598
|
+
break;
|
|
495
599
|
default:
|
|
496
600
|
let u = options.readUnknownField;
|
|
497
601
|
if (u === "throw")
|
|
@@ -513,6 +617,18 @@ class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
|
513
617
|
/* optional string state_diff = 3; */
|
|
514
618
|
if (message.stateDiff !== undefined)
|
|
515
619
|
writer.tag(3, WireType.LengthDelimited).string(message.stateDiff);
|
|
620
|
+
/* optional resources.documents.activity.DocFilesChange files_change = 4; */
|
|
621
|
+
if (message.filesChange)
|
|
622
|
+
DocFilesChange.internalBinaryWrite(message.filesChange, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
623
|
+
/* optional resources.common.content.ContentDiff title_cdiff = 5; */
|
|
624
|
+
if (message.titleCdiff)
|
|
625
|
+
ContentDiff.internalBinaryWrite(message.titleCdiff, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
626
|
+
/* optional resources.common.content.ContentDiff content_cdiff = 6; */
|
|
627
|
+
if (message.contentCdiff)
|
|
628
|
+
ContentDiff.internalBinaryWrite(message.contentCdiff, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
629
|
+
/* optional resources.common.content.ContentDiff state_cdiff = 7; */
|
|
630
|
+
if (message.stateCdiff)
|
|
631
|
+
ContentDiff.internalBinaryWrite(message.stateCdiff, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
516
632
|
let u = options.writeUnknownFields;
|
|
517
633
|
if (u !== false)
|
|
518
634
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -520,13 +636,68 @@ class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
|
520
636
|
}
|
|
521
637
|
}
|
|
522
638
|
/**
|
|
523
|
-
* @generated MessageType for protobuf message resources.documents.DocUpdated
|
|
639
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocUpdated
|
|
524
640
|
*/
|
|
525
641
|
export const DocUpdated = new DocUpdated$Type();
|
|
526
642
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
643
|
+
class DocFilesChange$Type extends MessageType<DocFilesChange> {
|
|
644
|
+
constructor() {
|
|
645
|
+
super("resources.documents.activity.DocFilesChange", [
|
|
646
|
+
{ no: 1, name: "added", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
647
|
+
{ no: 2, name: "deleted", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
648
|
+
]);
|
|
649
|
+
}
|
|
650
|
+
create(value?: PartialMessage<DocFilesChange>): DocFilesChange {
|
|
651
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
652
|
+
message.added = 0;
|
|
653
|
+
message.deleted = 0;
|
|
654
|
+
if (value !== undefined)
|
|
655
|
+
reflectionMergePartial<DocFilesChange>(this, message, value);
|
|
656
|
+
return message;
|
|
657
|
+
}
|
|
658
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocFilesChange): DocFilesChange {
|
|
659
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
660
|
+
while (reader.pos < end) {
|
|
661
|
+
let [fieldNo, wireType] = reader.tag();
|
|
662
|
+
switch (fieldNo) {
|
|
663
|
+
case /* int64 added */ 1:
|
|
664
|
+
message.added = reader.int64().toNumber();
|
|
665
|
+
break;
|
|
666
|
+
case /* int64 deleted */ 2:
|
|
667
|
+
message.deleted = reader.int64().toNumber();
|
|
668
|
+
break;
|
|
669
|
+
default:
|
|
670
|
+
let u = options.readUnknownField;
|
|
671
|
+
if (u === "throw")
|
|
672
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
673
|
+
let d = reader.skip(wireType);
|
|
674
|
+
if (u !== false)
|
|
675
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
return message;
|
|
679
|
+
}
|
|
680
|
+
internalBinaryWrite(message: DocFilesChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
681
|
+
/* int64 added = 1; */
|
|
682
|
+
if (message.added !== 0)
|
|
683
|
+
writer.tag(1, WireType.Varint).int64(message.added);
|
|
684
|
+
/* int64 deleted = 2; */
|
|
685
|
+
if (message.deleted !== 0)
|
|
686
|
+
writer.tag(2, WireType.Varint).int64(message.deleted);
|
|
687
|
+
let u = options.writeUnknownFields;
|
|
688
|
+
if (u !== false)
|
|
689
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
690
|
+
return writer;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocFilesChange
|
|
695
|
+
*/
|
|
696
|
+
export const DocFilesChange = new DocFilesChange$Type();
|
|
697
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
527
698
|
class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
528
699
|
constructor() {
|
|
529
|
-
super("resources.documents.DocOwnerChanged", [
|
|
700
|
+
super("resources.documents.activity.DocOwnerChanged", [
|
|
530
701
|
{ no: 1, name: "new_owner_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
531
702
|
{ no: 2, name: "new_owner", kind: "message", T: () => UserShort }
|
|
532
703
|
]);
|
|
@@ -546,7 +717,7 @@ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
|
546
717
|
case /* int32 new_owner_id */ 1:
|
|
547
718
|
message.newOwnerId = reader.int32();
|
|
548
719
|
break;
|
|
549
|
-
case /* resources.users.UserShort new_owner */ 2:
|
|
720
|
+
case /* resources.users.short.UserShort new_owner */ 2:
|
|
550
721
|
message.newOwner = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.newOwner);
|
|
551
722
|
break;
|
|
552
723
|
default:
|
|
@@ -564,7 +735,7 @@ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
|
564
735
|
/* int32 new_owner_id = 1; */
|
|
565
736
|
if (message.newOwnerId !== 0)
|
|
566
737
|
writer.tag(1, WireType.Varint).int32(message.newOwnerId);
|
|
567
|
-
/* resources.users.UserShort new_owner = 2; */
|
|
738
|
+
/* resources.users.short.UserShort new_owner = 2; */
|
|
568
739
|
if (message.newOwner)
|
|
569
740
|
UserShort.internalBinaryWrite(message.newOwner, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
570
741
|
let u = options.writeUnknownFields;
|
|
@@ -574,14 +745,14 @@ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
|
574
745
|
}
|
|
575
746
|
}
|
|
576
747
|
/**
|
|
577
|
-
* @generated MessageType for protobuf message resources.documents.DocOwnerChanged
|
|
748
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocOwnerChanged
|
|
578
749
|
*/
|
|
579
750
|
export const DocOwnerChanged = new DocOwnerChanged$Type();
|
|
580
751
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
581
752
|
class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
582
753
|
constructor() {
|
|
583
|
-
super("resources.documents.DocAccessRequested", [
|
|
584
|
-
{ no: 1, name: "level", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
754
|
+
super("resources.documents.activity.DocAccessRequested", [
|
|
755
|
+
{ no: 1, name: "level", kind: "enum", T: () => ["resources.documents.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
585
756
|
]);
|
|
586
757
|
}
|
|
587
758
|
create(value?: PartialMessage<DocAccessRequested>): DocAccessRequested {
|
|
@@ -596,7 +767,7 @@ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
|
596
767
|
while (reader.pos < end) {
|
|
597
768
|
let [fieldNo, wireType] = reader.tag();
|
|
598
769
|
switch (fieldNo) {
|
|
599
|
-
case /* resources.documents.AccessLevel level */ 1:
|
|
770
|
+
case /* resources.documents.access.AccessLevel level */ 1:
|
|
600
771
|
message.level = reader.int32();
|
|
601
772
|
break;
|
|
602
773
|
default:
|
|
@@ -611,7 +782,7 @@ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
|
611
782
|
return message;
|
|
612
783
|
}
|
|
613
784
|
internalBinaryWrite(message: DocAccessRequested, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
614
|
-
/* resources.documents.AccessLevel level = 1; */
|
|
785
|
+
/* resources.documents.access.AccessLevel level = 1; */
|
|
615
786
|
if (message.level !== 0)
|
|
616
787
|
writer.tag(1, WireType.Varint).int32(message.level);
|
|
617
788
|
let u = options.writeUnknownFields;
|
|
@@ -621,13 +792,13 @@ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
|
621
792
|
}
|
|
622
793
|
}
|
|
623
794
|
/**
|
|
624
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessRequested
|
|
795
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessRequested
|
|
625
796
|
*/
|
|
626
797
|
export const DocAccessRequested = new DocAccessRequested$Type();
|
|
627
798
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
628
799
|
class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
629
800
|
constructor() {
|
|
630
|
-
super("resources.documents.DocAccessUpdated", [
|
|
801
|
+
super("resources.documents.activity.DocAccessUpdated", [
|
|
631
802
|
{ no: 1, name: "jobs", kind: "message", T: () => DocAccessJobsDiff },
|
|
632
803
|
{ no: 2, name: "users", kind: "message", T: () => DocAccessUsersDiff }
|
|
633
804
|
]);
|
|
@@ -643,10 +814,10 @@ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
|
643
814
|
while (reader.pos < end) {
|
|
644
815
|
let [fieldNo, wireType] = reader.tag();
|
|
645
816
|
switch (fieldNo) {
|
|
646
|
-
case /* resources.documents.DocAccessJobsDiff jobs */ 1:
|
|
817
|
+
case /* resources.documents.activity.DocAccessJobsDiff jobs */ 1:
|
|
647
818
|
message.jobs = DocAccessJobsDiff.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
|
|
648
819
|
break;
|
|
649
|
-
case /* resources.documents.DocAccessUsersDiff users */ 2:
|
|
820
|
+
case /* resources.documents.activity.DocAccessUsersDiff users */ 2:
|
|
650
821
|
message.users = DocAccessUsersDiff.internalBinaryRead(reader, reader.uint32(), options, message.users);
|
|
651
822
|
break;
|
|
652
823
|
default:
|
|
@@ -661,10 +832,10 @@ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
|
661
832
|
return message;
|
|
662
833
|
}
|
|
663
834
|
internalBinaryWrite(message: DocAccessUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
664
|
-
/* resources.documents.DocAccessJobsDiff jobs = 1; */
|
|
835
|
+
/* resources.documents.activity.DocAccessJobsDiff jobs = 1; */
|
|
665
836
|
if (message.jobs)
|
|
666
837
|
DocAccessJobsDiff.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
667
|
-
/* resources.documents.DocAccessUsersDiff users = 2; */
|
|
838
|
+
/* resources.documents.activity.DocAccessUsersDiff users = 2; */
|
|
668
839
|
if (message.users)
|
|
669
840
|
DocAccessUsersDiff.internalBinaryWrite(message.users, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
670
841
|
let u = options.writeUnknownFields;
|
|
@@ -674,16 +845,16 @@ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
|
674
845
|
}
|
|
675
846
|
}
|
|
676
847
|
/**
|
|
677
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessUpdated
|
|
848
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessUpdated
|
|
678
849
|
*/
|
|
679
850
|
export const DocAccessUpdated = new DocAccessUpdated$Type();
|
|
680
851
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
681
852
|
class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
682
853
|
constructor() {
|
|
683
|
-
super("resources.documents.DocAccessJobsDiff", [
|
|
684
|
-
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "validate.
|
|
685
|
-
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "validate.
|
|
686
|
-
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "validate.
|
|
854
|
+
super("resources.documents.activity.DocAccessJobsDiff", [
|
|
855
|
+
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
856
|
+
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
857
|
+
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
687
858
|
]);
|
|
688
859
|
}
|
|
689
860
|
create(value?: PartialMessage<DocAccessJobsDiff>): DocAccessJobsDiff {
|
|
@@ -700,13 +871,13 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
|
700
871
|
while (reader.pos < end) {
|
|
701
872
|
let [fieldNo, wireType] = reader.tag();
|
|
702
873
|
switch (fieldNo) {
|
|
703
|
-
case /* repeated resources.documents.DocumentJobAccess to_create */ 1:
|
|
874
|
+
case /* repeated resources.documents.access.DocumentJobAccess to_create */ 1:
|
|
704
875
|
message.toCreate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
705
876
|
break;
|
|
706
|
-
case /* repeated resources.documents.DocumentJobAccess to_update */ 2:
|
|
877
|
+
case /* repeated resources.documents.access.DocumentJobAccess to_update */ 2:
|
|
707
878
|
message.toUpdate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
708
879
|
break;
|
|
709
|
-
case /* repeated resources.documents.DocumentJobAccess to_delete */ 3:
|
|
880
|
+
case /* repeated resources.documents.access.DocumentJobAccess to_delete */ 3:
|
|
710
881
|
message.toDelete.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
711
882
|
break;
|
|
712
883
|
default:
|
|
@@ -721,13 +892,13 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
|
721
892
|
return message;
|
|
722
893
|
}
|
|
723
894
|
internalBinaryWrite(message: DocAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
724
|
-
/* repeated resources.documents.DocumentJobAccess to_create = 1; */
|
|
895
|
+
/* repeated resources.documents.access.DocumentJobAccess to_create = 1; */
|
|
725
896
|
for (let i = 0; i < message.toCreate.length; i++)
|
|
726
897
|
DocumentJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
727
|
-
/* repeated resources.documents.DocumentJobAccess to_update = 2; */
|
|
898
|
+
/* repeated resources.documents.access.DocumentJobAccess to_update = 2; */
|
|
728
899
|
for (let i = 0; i < message.toUpdate.length; i++)
|
|
729
900
|
DocumentJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
730
|
-
/* repeated resources.documents.DocumentJobAccess to_delete = 3; */
|
|
901
|
+
/* repeated resources.documents.access.DocumentJobAccess to_delete = 3; */
|
|
731
902
|
for (let i = 0; i < message.toDelete.length; i++)
|
|
732
903
|
DocumentJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
733
904
|
let u = options.writeUnknownFields;
|
|
@@ -737,16 +908,16 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
|
737
908
|
}
|
|
738
909
|
}
|
|
739
910
|
/**
|
|
740
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessJobsDiff
|
|
911
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessJobsDiff
|
|
741
912
|
*/
|
|
742
913
|
export const DocAccessJobsDiff = new DocAccessJobsDiff$Type();
|
|
743
914
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
744
915
|
class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
745
916
|
constructor() {
|
|
746
|
-
super("resources.documents.DocAccessUsersDiff", [
|
|
747
|
-
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "validate.
|
|
748
|
-
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "validate.
|
|
749
|
-
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "validate.
|
|
917
|
+
super("resources.documents.activity.DocAccessUsersDiff", [
|
|
918
|
+
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
919
|
+
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
920
|
+
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
750
921
|
]);
|
|
751
922
|
}
|
|
752
923
|
create(value?: PartialMessage<DocAccessUsersDiff>): DocAccessUsersDiff {
|
|
@@ -763,13 +934,13 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
|
763
934
|
while (reader.pos < end) {
|
|
764
935
|
let [fieldNo, wireType] = reader.tag();
|
|
765
936
|
switch (fieldNo) {
|
|
766
|
-
case /* repeated resources.documents.DocumentUserAccess to_create */ 1:
|
|
937
|
+
case /* repeated resources.documents.access.DocumentUserAccess to_create */ 1:
|
|
767
938
|
message.toCreate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
768
939
|
break;
|
|
769
|
-
case /* repeated resources.documents.DocumentUserAccess to_update */ 2:
|
|
940
|
+
case /* repeated resources.documents.access.DocumentUserAccess to_update */ 2:
|
|
770
941
|
message.toUpdate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
771
942
|
break;
|
|
772
|
-
case /* repeated resources.documents.DocumentUserAccess to_delete */ 3:
|
|
943
|
+
case /* repeated resources.documents.access.DocumentUserAccess to_delete */ 3:
|
|
773
944
|
message.toDelete.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
774
945
|
break;
|
|
775
946
|
default:
|
|
@@ -784,13 +955,13 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
|
784
955
|
return message;
|
|
785
956
|
}
|
|
786
957
|
internalBinaryWrite(message: DocAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
787
|
-
/* repeated resources.documents.DocumentUserAccess to_create = 1; */
|
|
958
|
+
/* repeated resources.documents.access.DocumentUserAccess to_create = 1; */
|
|
788
959
|
for (let i = 0; i < message.toCreate.length; i++)
|
|
789
960
|
DocumentUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
790
|
-
/* repeated resources.documents.DocumentUserAccess to_update = 2; */
|
|
961
|
+
/* repeated resources.documents.access.DocumentUserAccess to_update = 2; */
|
|
791
962
|
for (let i = 0; i < message.toUpdate.length; i++)
|
|
792
963
|
DocumentUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
793
|
-
/* repeated resources.documents.DocumentUserAccess to_delete = 3; */
|
|
964
|
+
/* repeated resources.documents.access.DocumentUserAccess to_delete = 3; */
|
|
794
965
|
for (let i = 0; i < message.toDelete.length; i++)
|
|
795
966
|
DocumentUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
796
967
|
let u = options.writeUnknownFields;
|
|
@@ -800,6 +971,60 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
|
800
971
|
}
|
|
801
972
|
}
|
|
802
973
|
/**
|
|
803
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessUsersDiff
|
|
974
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessUsersDiff
|
|
804
975
|
*/
|
|
805
976
|
export const DocAccessUsersDiff = new DocAccessUsersDiff$Type();
|
|
977
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
978
|
+
class DocSigningRequested$Type extends MessageType<DocSigningRequested> {
|
|
979
|
+
constructor() {
|
|
980
|
+
super("resources.documents.activity.DocSigningRequested", [
|
|
981
|
+
{ no: 1, name: "deadline", kind: "message", T: () => Timestamp },
|
|
982
|
+
{ no: 2, name: "approvers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserShort, options: { "buf.validate.field": { repeated: { maxItems: "8" } } } }
|
|
983
|
+
]);
|
|
984
|
+
}
|
|
985
|
+
create(value?: PartialMessage<DocSigningRequested>): DocSigningRequested {
|
|
986
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
987
|
+
message.approvers = [];
|
|
988
|
+
if (value !== undefined)
|
|
989
|
+
reflectionMergePartial<DocSigningRequested>(this, message, value);
|
|
990
|
+
return message;
|
|
991
|
+
}
|
|
992
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocSigningRequested): DocSigningRequested {
|
|
993
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
994
|
+
while (reader.pos < end) {
|
|
995
|
+
let [fieldNo, wireType] = reader.tag();
|
|
996
|
+
switch (fieldNo) {
|
|
997
|
+
case /* optional resources.timestamp.Timestamp deadline */ 1:
|
|
998
|
+
message.deadline = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deadline);
|
|
999
|
+
break;
|
|
1000
|
+
case /* repeated resources.users.short.UserShort approvers */ 2:
|
|
1001
|
+
message.approvers.push(UserShort.internalBinaryRead(reader, reader.uint32(), options));
|
|
1002
|
+
break;
|
|
1003
|
+
default:
|
|
1004
|
+
let u = options.readUnknownField;
|
|
1005
|
+
if (u === "throw")
|
|
1006
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1007
|
+
let d = reader.skip(wireType);
|
|
1008
|
+
if (u !== false)
|
|
1009
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
return message;
|
|
1013
|
+
}
|
|
1014
|
+
internalBinaryWrite(message: DocSigningRequested, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1015
|
+
/* optional resources.timestamp.Timestamp deadline = 1; */
|
|
1016
|
+
if (message.deadline)
|
|
1017
|
+
Timestamp.internalBinaryWrite(message.deadline, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1018
|
+
/* repeated resources.users.short.UserShort approvers = 2; */
|
|
1019
|
+
for (let i = 0; i < message.approvers.length; i++)
|
|
1020
|
+
UserShort.internalBinaryWrite(message.approvers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1021
|
+
let u = options.writeUnknownFields;
|
|
1022
|
+
if (u !== false)
|
|
1023
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1024
|
+
return writer;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocSigningRequested
|
|
1029
|
+
*/
|
|
1030
|
+
export const DocSigningRequested = new DocSigningRequested$Type();
|