@fivenet-app/gen 2025.9.1 → 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/clients.ts +36 -0
- package/codegen/perms/perms.ts +94 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +137 -6
- 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} +69 -69
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/clientconfig/clientconfig.ts +159 -34
- 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 +41 -41
- package/resources/documents/{access.ts → access/access.ts} +30 -30
- 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} +18 -18
- 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 +514 -14
- 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} +404 -58
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +121 -100
- package/resources/users/{labels.ts → labels/labels.ts} +12 -12
- package/resources/users/{licenses.ts → licenses/licenses.ts} +10 -10
- 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.ts +51 -27
- package/services/completor/completor.ts +35 -15
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +163 -185
- 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 +80 -45
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.ts +4 -4
- 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.ts +124 -77
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +95 -3
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
|
@@ -1,5 +1,5 @@
|
|
|
1
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.proto" (package "resources.documents", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/documents/activity/activity.proto" (package "resources.documents.activity", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,13 +11,14 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import { DocumentUserAccess } from "
|
|
15
|
-
import { DocumentJobAccess } from "
|
|
16
|
-
import { AccessLevel } from "
|
|
17
|
-
import {
|
|
18
|
-
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";
|
|
19
20
|
/**
|
|
20
|
-
* @generated from protobuf message resources.documents.DocActivity
|
|
21
|
+
* @generated from protobuf message resources.documents.activity.DocActivity
|
|
21
22
|
*/
|
|
22
23
|
export interface DocActivity {
|
|
23
24
|
/**
|
|
@@ -33,7 +34,7 @@ export interface DocActivity {
|
|
|
33
34
|
*/
|
|
34
35
|
documentId: number;
|
|
35
36
|
/**
|
|
36
|
-
* @generated from protobuf field: resources.documents.DocActivityType activity_type = 4
|
|
37
|
+
* @generated from protobuf field: resources.documents.activity.DocActivityType activity_type = 4
|
|
37
38
|
*/
|
|
38
39
|
activityType: DocActivityType;
|
|
39
40
|
/**
|
|
@@ -41,7 +42,7 @@ export interface DocActivity {
|
|
|
41
42
|
*/
|
|
42
43
|
creatorId?: number;
|
|
43
44
|
/**
|
|
44
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 6
|
|
45
|
+
* @generated from protobuf field: optional resources.users.short.UserShort creator = 6
|
|
45
46
|
*/
|
|
46
47
|
creator?: UserShort;
|
|
47
48
|
/**
|
|
@@ -57,12 +58,12 @@ export interface DocActivity {
|
|
|
57
58
|
*/
|
|
58
59
|
reason?: string;
|
|
59
60
|
/**
|
|
60
|
-
* @generated from protobuf field: resources.documents.DocActivityData data = 10
|
|
61
|
+
* @generated from protobuf field: resources.documents.activity.DocActivityData data = 10
|
|
61
62
|
*/
|
|
62
63
|
data?: DocActivityData;
|
|
63
64
|
}
|
|
64
65
|
/**
|
|
65
|
-
* @generated from protobuf message resources.documents.DocActivityData
|
|
66
|
+
* @generated from protobuf message resources.documents.activity.DocActivityData
|
|
66
67
|
*/
|
|
67
68
|
export interface DocActivityData {
|
|
68
69
|
/**
|
|
@@ -71,60 +72,72 @@ export interface DocActivityData {
|
|
|
71
72
|
data: {
|
|
72
73
|
oneofKind: "updated";
|
|
73
74
|
/**
|
|
74
|
-
* @generated from protobuf field: resources.documents.DocUpdated updated = 1
|
|
75
|
+
* @generated from protobuf field: resources.documents.activity.DocUpdated updated = 1
|
|
75
76
|
*/
|
|
76
77
|
updated: DocUpdated;
|
|
77
78
|
} | {
|
|
78
79
|
oneofKind: "ownerChanged";
|
|
79
80
|
/**
|
|
80
|
-
* @generated from protobuf field: resources.documents.DocOwnerChanged owner_changed = 2
|
|
81
|
+
* @generated from protobuf field: resources.documents.activity.DocOwnerChanged owner_changed = 2
|
|
81
82
|
*/
|
|
82
83
|
ownerChanged: DocOwnerChanged;
|
|
83
84
|
} | {
|
|
84
85
|
oneofKind: "accessUpdated";
|
|
85
86
|
/**
|
|
86
|
-
* @generated from protobuf field: resources.documents.DocAccessUpdated access_updated = 4
|
|
87
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessUpdated access_updated = 4
|
|
87
88
|
*/
|
|
88
89
|
accessUpdated: DocAccessUpdated;
|
|
89
90
|
} | {
|
|
90
91
|
oneofKind: "accessRequested";
|
|
91
92
|
/**
|
|
92
|
-
* @generated from protobuf field: resources.documents.DocAccessRequested access_requested = 5
|
|
93
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessRequested access_requested = 5
|
|
93
94
|
*/
|
|
94
95
|
accessRequested: DocAccessRequested;
|
|
95
96
|
} | {
|
|
96
|
-
oneofKind: "
|
|
97
|
+
oneofKind: "signingRequested";
|
|
97
98
|
/**
|
|
98
|
-
* @generated from protobuf field: resources.documents.
|
|
99
|
+
* @generated from protobuf field: resources.documents.activity.DocSigningRequested signing_requested = 6
|
|
99
100
|
*/
|
|
100
|
-
|
|
101
|
+
signingRequested: DocSigningRequested;
|
|
101
102
|
} | {
|
|
102
103
|
oneofKind: undefined;
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
106
|
-
* @generated from protobuf message resources.documents.DocUpdated
|
|
107
|
+
* @generated from protobuf message resources.documents.activity.DocUpdated
|
|
107
108
|
*/
|
|
108
109
|
export interface DocUpdated {
|
|
109
110
|
/**
|
|
110
111
|
* @generated from protobuf field: optional string title_diff = 1
|
|
111
112
|
*/
|
|
112
113
|
titleDiff?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff title_cdiff = 5
|
|
116
|
+
*/
|
|
117
|
+
titleCdiff?: ContentDiff;
|
|
113
118
|
/**
|
|
114
119
|
* @generated from protobuf field: optional string content_diff = 2
|
|
115
120
|
*/
|
|
116
121
|
contentDiff?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff content_cdiff = 6
|
|
124
|
+
*/
|
|
125
|
+
contentCdiff?: ContentDiff;
|
|
117
126
|
/**
|
|
118
127
|
* @generated from protobuf field: optional string state_diff = 3
|
|
119
128
|
*/
|
|
120
129
|
stateDiff?: string;
|
|
121
130
|
/**
|
|
122
|
-
* @generated from protobuf field: optional resources.
|
|
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
|
|
123
136
|
*/
|
|
124
137
|
filesChange?: DocFilesChange;
|
|
125
138
|
}
|
|
126
139
|
/**
|
|
127
|
-
* @generated from protobuf message resources.documents.DocFilesChange
|
|
140
|
+
* @generated from protobuf message resources.documents.activity.DocFilesChange
|
|
128
141
|
*/
|
|
129
142
|
export interface DocFilesChange {
|
|
130
143
|
/**
|
|
@@ -137,7 +150,7 @@ export interface DocFilesChange {
|
|
|
137
150
|
deleted: number;
|
|
138
151
|
}
|
|
139
152
|
/**
|
|
140
|
-
* @generated from protobuf message resources.documents.DocOwnerChanged
|
|
153
|
+
* @generated from protobuf message resources.documents.activity.DocOwnerChanged
|
|
141
154
|
*/
|
|
142
155
|
export interface DocOwnerChanged {
|
|
143
156
|
/**
|
|
@@ -145,81 +158,81 @@ export interface DocOwnerChanged {
|
|
|
145
158
|
*/
|
|
146
159
|
newOwnerId: number;
|
|
147
160
|
/**
|
|
148
|
-
* @generated from protobuf field: resources.users.UserShort new_owner = 2
|
|
161
|
+
* @generated from protobuf field: resources.users.short.UserShort new_owner = 2
|
|
149
162
|
*/
|
|
150
163
|
newOwner?: UserShort;
|
|
151
164
|
}
|
|
152
165
|
/**
|
|
153
|
-
* @generated from protobuf message resources.documents.DocAccessRequested
|
|
166
|
+
* @generated from protobuf message resources.documents.activity.DocAccessRequested
|
|
154
167
|
*/
|
|
155
168
|
export interface DocAccessRequested {
|
|
156
169
|
/**
|
|
157
|
-
* @generated from protobuf field: resources.documents.AccessLevel level = 1
|
|
170
|
+
* @generated from protobuf field: resources.documents.access.AccessLevel level = 1
|
|
158
171
|
*/
|
|
159
172
|
level: AccessLevel;
|
|
160
173
|
}
|
|
161
174
|
/**
|
|
162
|
-
* @generated from protobuf message resources.documents.DocAccessUpdated
|
|
175
|
+
* @generated from protobuf message resources.documents.activity.DocAccessUpdated
|
|
163
176
|
*/
|
|
164
177
|
export interface DocAccessUpdated {
|
|
165
178
|
/**
|
|
166
|
-
* @generated from protobuf field: resources.documents.DocAccessJobsDiff jobs = 1
|
|
179
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessJobsDiff jobs = 1
|
|
167
180
|
*/
|
|
168
181
|
jobs?: DocAccessJobsDiff;
|
|
169
182
|
/**
|
|
170
|
-
* @generated from protobuf field: resources.documents.DocAccessUsersDiff users = 2
|
|
183
|
+
* @generated from protobuf field: resources.documents.activity.DocAccessUsersDiff users = 2
|
|
171
184
|
*/
|
|
172
185
|
users?: DocAccessUsersDiff;
|
|
173
186
|
}
|
|
174
187
|
/**
|
|
175
|
-
* @generated from protobuf message resources.documents.DocAccessJobsDiff
|
|
188
|
+
* @generated from protobuf message resources.documents.activity.DocAccessJobsDiff
|
|
176
189
|
*/
|
|
177
190
|
export interface DocAccessJobsDiff {
|
|
178
191
|
/**
|
|
179
|
-
* @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_create = 1
|
|
192
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_create = 1
|
|
180
193
|
*/
|
|
181
194
|
toCreate: DocumentJobAccess[];
|
|
182
195
|
/**
|
|
183
|
-
* @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_update = 2
|
|
196
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_update = 2
|
|
184
197
|
*/
|
|
185
198
|
toUpdate: DocumentJobAccess[];
|
|
186
199
|
/**
|
|
187
|
-
* @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_delete = 3
|
|
200
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentJobAccess to_delete = 3
|
|
188
201
|
*/
|
|
189
202
|
toDelete: DocumentJobAccess[];
|
|
190
203
|
}
|
|
191
204
|
/**
|
|
192
|
-
* @generated from protobuf message resources.documents.DocAccessUsersDiff
|
|
205
|
+
* @generated from protobuf message resources.documents.activity.DocAccessUsersDiff
|
|
193
206
|
*/
|
|
194
207
|
export interface DocAccessUsersDiff {
|
|
195
208
|
/**
|
|
196
|
-
* @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_create = 1
|
|
209
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_create = 1
|
|
197
210
|
*/
|
|
198
211
|
toCreate: DocumentUserAccess[];
|
|
199
212
|
/**
|
|
200
|
-
* @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_update = 2
|
|
213
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_update = 2
|
|
201
214
|
*/
|
|
202
215
|
toUpdate: DocumentUserAccess[];
|
|
203
216
|
/**
|
|
204
|
-
* @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_delete = 3
|
|
217
|
+
* @generated from protobuf field: repeated resources.documents.access.DocumentUserAccess to_delete = 3
|
|
205
218
|
*/
|
|
206
219
|
toDelete: DocumentUserAccess[];
|
|
207
220
|
}
|
|
208
221
|
/**
|
|
209
|
-
* @generated from protobuf message resources.documents.
|
|
222
|
+
* @generated from protobuf message resources.documents.activity.DocSigningRequested
|
|
210
223
|
*/
|
|
211
|
-
export interface
|
|
224
|
+
export interface DocSigningRequested {
|
|
212
225
|
/**
|
|
213
226
|
* @generated from protobuf field: optional resources.timestamp.Timestamp deadline = 1
|
|
214
227
|
*/
|
|
215
228
|
deadline?: Timestamp;
|
|
216
229
|
/**
|
|
217
|
-
* @generated from protobuf field: repeated resources.users.UserShort approvers = 2
|
|
230
|
+
* @generated from protobuf field: repeated resources.users.short.UserShort approvers = 2
|
|
218
231
|
*/
|
|
219
232
|
approvers: UserShort[];
|
|
220
233
|
}
|
|
221
234
|
/**
|
|
222
|
-
* @generated from protobuf enum resources.documents.DocActivityType
|
|
235
|
+
* @generated from protobuf enum resources.documents.activity.DocActivityType
|
|
223
236
|
*/
|
|
224
237
|
export enum DocActivityType {
|
|
225
238
|
/**
|
|
@@ -268,14 +281,6 @@ export enum DocActivityType {
|
|
|
268
281
|
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_DRAFT_TOGGLED = 19;
|
|
269
282
|
*/
|
|
270
283
|
DRAFT_TOGGLED = 19,
|
|
271
|
-
/**
|
|
272
|
-
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_SIGN_OFF_APPROVED = 21;
|
|
273
|
-
*/
|
|
274
|
-
SIGN_OFF_APPROVED = 21,
|
|
275
|
-
/**
|
|
276
|
-
* @generated from protobuf enum value: DOC_ACTIVITY_TYPE_SIGN_OFF_REJECTED = 22;
|
|
277
|
-
*/
|
|
278
|
-
SIGN_OFF_REJECTED = 22,
|
|
279
284
|
/**
|
|
280
285
|
* Comments
|
|
281
286
|
*
|
|
@@ -317,18 +322,40 @@ export enum DocActivityType {
|
|
|
317
322
|
*/
|
|
318
323
|
REQUESTED_DELETION = 18,
|
|
319
324
|
/**
|
|
320
|
-
* @generated from protobuf enum value:
|
|
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;
|
|
321
348
|
*/
|
|
322
|
-
|
|
349
|
+
APPROVAL_REMOVED = 44
|
|
323
350
|
}
|
|
324
351
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
325
352
|
class DocActivity$Type extends MessageType<DocActivity> {
|
|
326
353
|
constructor() {
|
|
327
|
-
super("resources.documents.DocActivity", [
|
|
354
|
+
super("resources.documents.activity.DocActivity", [
|
|
328
355
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
329
356
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
330
357
|
{ no: 3, name: "document_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
331
|
-
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
|
|
358
|
+
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.activity.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
|
|
332
359
|
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
333
360
|
{ no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
334
361
|
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
@@ -361,13 +388,13 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
361
388
|
case /* int64 document_id */ 3:
|
|
362
389
|
message.documentId = reader.int64().toNumber();
|
|
363
390
|
break;
|
|
364
|
-
case /* resources.documents.DocActivityType activity_type */ 4:
|
|
391
|
+
case /* resources.documents.activity.DocActivityType activity_type */ 4:
|
|
365
392
|
message.activityType = reader.int32();
|
|
366
393
|
break;
|
|
367
394
|
case /* optional int32 creator_id */ 5:
|
|
368
395
|
message.creatorId = reader.int32();
|
|
369
396
|
break;
|
|
370
|
-
case /* optional resources.users.UserShort creator */ 6:
|
|
397
|
+
case /* optional resources.users.short.UserShort creator */ 6:
|
|
371
398
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
372
399
|
break;
|
|
373
400
|
case /* string creator_job */ 7:
|
|
@@ -379,7 +406,7 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
379
406
|
case /* optional string reason */ 9:
|
|
380
407
|
message.reason = reader.string();
|
|
381
408
|
break;
|
|
382
|
-
case /* resources.documents.DocActivityData data */ 10:
|
|
409
|
+
case /* resources.documents.activity.DocActivityData data */ 10:
|
|
383
410
|
message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
384
411
|
break;
|
|
385
412
|
default:
|
|
@@ -403,13 +430,13 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
403
430
|
/* int64 document_id = 3; */
|
|
404
431
|
if (message.documentId !== 0)
|
|
405
432
|
writer.tag(3, WireType.Varint).int64(message.documentId);
|
|
406
|
-
/* resources.documents.DocActivityType activity_type = 4; */
|
|
433
|
+
/* resources.documents.activity.DocActivityType activity_type = 4; */
|
|
407
434
|
if (message.activityType !== 0)
|
|
408
435
|
writer.tag(4, WireType.Varint).int32(message.activityType);
|
|
409
436
|
/* optional int32 creator_id = 5; */
|
|
410
437
|
if (message.creatorId !== undefined)
|
|
411
438
|
writer.tag(5, WireType.Varint).int32(message.creatorId);
|
|
412
|
-
/* optional resources.users.UserShort creator = 6; */
|
|
439
|
+
/* optional resources.users.short.UserShort creator = 6; */
|
|
413
440
|
if (message.creator)
|
|
414
441
|
UserShort.internalBinaryWrite(message.creator, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
415
442
|
/* string creator_job = 7; */
|
|
@@ -421,7 +448,7 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
421
448
|
/* optional string reason = 9; */
|
|
422
449
|
if (message.reason !== undefined)
|
|
423
450
|
writer.tag(9, WireType.LengthDelimited).string(message.reason);
|
|
424
|
-
/* resources.documents.DocActivityData data = 10; */
|
|
451
|
+
/* resources.documents.activity.DocActivityData data = 10; */
|
|
425
452
|
if (message.data)
|
|
426
453
|
DocActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
427
454
|
let u = options.writeUnknownFields;
|
|
@@ -431,18 +458,18 @@ class DocActivity$Type extends MessageType<DocActivity> {
|
|
|
431
458
|
}
|
|
432
459
|
}
|
|
433
460
|
/**
|
|
434
|
-
* @generated MessageType for protobuf message resources.documents.DocActivity
|
|
461
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocActivity
|
|
435
462
|
*/
|
|
436
463
|
export const DocActivity = new DocActivity$Type();
|
|
437
464
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
438
465
|
class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
439
466
|
constructor() {
|
|
440
|
-
super("resources.documents.DocActivityData", [
|
|
467
|
+
super("resources.documents.activity.DocActivityData", [
|
|
441
468
|
{ no: 1, name: "updated", kind: "message", oneof: "data", T: () => DocUpdated },
|
|
442
469
|
{ no: 2, name: "owner_changed", kind: "message", oneof: "data", T: () => DocOwnerChanged },
|
|
443
470
|
{ no: 4, name: "access_updated", kind: "message", oneof: "data", T: () => DocAccessUpdated },
|
|
444
471
|
{ no: 5, name: "access_requested", kind: "message", oneof: "data", T: () => DocAccessRequested },
|
|
445
|
-
{ no: 6, name: "
|
|
472
|
+
{ no: 6, name: "signing_requested", kind: "message", oneof: "data", T: () => DocSigningRequested }
|
|
446
473
|
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
447
474
|
}
|
|
448
475
|
create(value?: PartialMessage<DocActivityData>): DocActivityData {
|
|
@@ -457,34 +484,34 @@ class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
|
457
484
|
while (reader.pos < end) {
|
|
458
485
|
let [fieldNo, wireType] = reader.tag();
|
|
459
486
|
switch (fieldNo) {
|
|
460
|
-
case /* resources.documents.DocUpdated updated */ 1:
|
|
487
|
+
case /* resources.documents.activity.DocUpdated updated */ 1:
|
|
461
488
|
message.data = {
|
|
462
489
|
oneofKind: "updated",
|
|
463
490
|
updated: DocUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updated)
|
|
464
491
|
};
|
|
465
492
|
break;
|
|
466
|
-
case /* resources.documents.DocOwnerChanged owner_changed */ 2:
|
|
493
|
+
case /* resources.documents.activity.DocOwnerChanged owner_changed */ 2:
|
|
467
494
|
message.data = {
|
|
468
495
|
oneofKind: "ownerChanged",
|
|
469
496
|
ownerChanged: DocOwnerChanged.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).ownerChanged)
|
|
470
497
|
};
|
|
471
498
|
break;
|
|
472
|
-
case /* resources.documents.DocAccessUpdated access_updated */ 4:
|
|
499
|
+
case /* resources.documents.activity.DocAccessUpdated access_updated */ 4:
|
|
473
500
|
message.data = {
|
|
474
501
|
oneofKind: "accessUpdated",
|
|
475
502
|
accessUpdated: DocAccessUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessUpdated)
|
|
476
503
|
};
|
|
477
504
|
break;
|
|
478
|
-
case /* resources.documents.DocAccessRequested access_requested */ 5:
|
|
505
|
+
case /* resources.documents.activity.DocAccessRequested access_requested */ 5:
|
|
479
506
|
message.data = {
|
|
480
507
|
oneofKind: "accessRequested",
|
|
481
508
|
accessRequested: DocAccessRequested.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessRequested)
|
|
482
509
|
};
|
|
483
510
|
break;
|
|
484
|
-
case /* resources.documents.
|
|
511
|
+
case /* resources.documents.activity.DocSigningRequested signing_requested */ 6:
|
|
485
512
|
message.data = {
|
|
486
|
-
oneofKind: "
|
|
487
|
-
|
|
513
|
+
oneofKind: "signingRequested",
|
|
514
|
+
signingRequested: DocSigningRequested.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).signingRequested)
|
|
488
515
|
};
|
|
489
516
|
break;
|
|
490
517
|
default:
|
|
@@ -499,21 +526,21 @@ class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
|
499
526
|
return message;
|
|
500
527
|
}
|
|
501
528
|
internalBinaryWrite(message: DocActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
502
|
-
/* resources.documents.DocUpdated updated = 1; */
|
|
529
|
+
/* resources.documents.activity.DocUpdated updated = 1; */
|
|
503
530
|
if (message.data.oneofKind === "updated")
|
|
504
531
|
DocUpdated.internalBinaryWrite(message.data.updated, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
505
|
-
/* resources.documents.DocOwnerChanged owner_changed = 2; */
|
|
532
|
+
/* resources.documents.activity.DocOwnerChanged owner_changed = 2; */
|
|
506
533
|
if (message.data.oneofKind === "ownerChanged")
|
|
507
534
|
DocOwnerChanged.internalBinaryWrite(message.data.ownerChanged, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
508
|
-
/* resources.documents.DocAccessUpdated access_updated = 4; */
|
|
535
|
+
/* resources.documents.activity.DocAccessUpdated access_updated = 4; */
|
|
509
536
|
if (message.data.oneofKind === "accessUpdated")
|
|
510
537
|
DocAccessUpdated.internalBinaryWrite(message.data.accessUpdated, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
511
|
-
/* resources.documents.DocAccessRequested access_requested = 5; */
|
|
538
|
+
/* resources.documents.activity.DocAccessRequested access_requested = 5; */
|
|
512
539
|
if (message.data.oneofKind === "accessRequested")
|
|
513
540
|
DocAccessRequested.internalBinaryWrite(message.data.accessRequested, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
514
|
-
/* resources.documents.
|
|
515
|
-
if (message.data.oneofKind === "
|
|
516
|
-
|
|
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();
|
|
517
544
|
let u = options.writeUnknownFields;
|
|
518
545
|
if (u !== false)
|
|
519
546
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -521,16 +548,19 @@ class DocActivityData$Type extends MessageType<DocActivityData> {
|
|
|
521
548
|
}
|
|
522
549
|
}
|
|
523
550
|
/**
|
|
524
|
-
* @generated MessageType for protobuf message resources.documents.DocActivityData
|
|
551
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocActivityData
|
|
525
552
|
*/
|
|
526
553
|
export const DocActivityData = new DocActivityData$Type();
|
|
527
554
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
528
555
|
class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
529
556
|
constructor() {
|
|
530
|
-
super("resources.documents.DocUpdated", [
|
|
557
|
+
super("resources.documents.activity.DocUpdated", [
|
|
531
558
|
{ no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
559
|
+
{ no: 5, name: "title_cdiff", kind: "message", T: () => ContentDiff },
|
|
532
560
|
{ no: 2, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
561
|
+
{ no: 6, name: "content_cdiff", kind: "message", T: () => ContentDiff },
|
|
533
562
|
{ no: 3, name: "state_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
563
|
+
{ no: 7, name: "state_cdiff", kind: "message", T: () => ContentDiff },
|
|
534
564
|
{ no: 4, name: "files_change", kind: "message", T: () => DocFilesChange }
|
|
535
565
|
]);
|
|
536
566
|
}
|
|
@@ -548,13 +578,22 @@ class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
|
548
578
|
case /* optional string title_diff */ 1:
|
|
549
579
|
message.titleDiff = reader.string();
|
|
550
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;
|
|
551
584
|
case /* optional string content_diff */ 2:
|
|
552
585
|
message.contentDiff = reader.string();
|
|
553
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;
|
|
554
590
|
case /* optional string state_diff */ 3:
|
|
555
591
|
message.stateDiff = reader.string();
|
|
556
592
|
break;
|
|
557
|
-
case /* optional resources.
|
|
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:
|
|
558
597
|
message.filesChange = DocFilesChange.internalBinaryRead(reader, reader.uint32(), options, message.filesChange);
|
|
559
598
|
break;
|
|
560
599
|
default:
|
|
@@ -578,9 +617,18 @@ class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
|
578
617
|
/* optional string state_diff = 3; */
|
|
579
618
|
if (message.stateDiff !== undefined)
|
|
580
619
|
writer.tag(3, WireType.LengthDelimited).string(message.stateDiff);
|
|
581
|
-
/* optional resources.documents.DocFilesChange files_change = 4; */
|
|
620
|
+
/* optional resources.documents.activity.DocFilesChange files_change = 4; */
|
|
582
621
|
if (message.filesChange)
|
|
583
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();
|
|
584
632
|
let u = options.writeUnknownFields;
|
|
585
633
|
if (u !== false)
|
|
586
634
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -588,13 +636,13 @@ class DocUpdated$Type extends MessageType<DocUpdated> {
|
|
|
588
636
|
}
|
|
589
637
|
}
|
|
590
638
|
/**
|
|
591
|
-
* @generated MessageType for protobuf message resources.documents.DocUpdated
|
|
639
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocUpdated
|
|
592
640
|
*/
|
|
593
641
|
export const DocUpdated = new DocUpdated$Type();
|
|
594
642
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
595
643
|
class DocFilesChange$Type extends MessageType<DocFilesChange> {
|
|
596
644
|
constructor() {
|
|
597
|
-
super("resources.documents.DocFilesChange", [
|
|
645
|
+
super("resources.documents.activity.DocFilesChange", [
|
|
598
646
|
{ no: 1, name: "added", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
599
647
|
{ no: 2, name: "deleted", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
600
648
|
]);
|
|
@@ -643,13 +691,13 @@ class DocFilesChange$Type extends MessageType<DocFilesChange> {
|
|
|
643
691
|
}
|
|
644
692
|
}
|
|
645
693
|
/**
|
|
646
|
-
* @generated MessageType for protobuf message resources.documents.DocFilesChange
|
|
694
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocFilesChange
|
|
647
695
|
*/
|
|
648
696
|
export const DocFilesChange = new DocFilesChange$Type();
|
|
649
697
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
650
698
|
class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
651
699
|
constructor() {
|
|
652
|
-
super("resources.documents.DocOwnerChanged", [
|
|
700
|
+
super("resources.documents.activity.DocOwnerChanged", [
|
|
653
701
|
{ no: 1, name: "new_owner_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
654
702
|
{ no: 2, name: "new_owner", kind: "message", T: () => UserShort }
|
|
655
703
|
]);
|
|
@@ -669,7 +717,7 @@ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
|
669
717
|
case /* int32 new_owner_id */ 1:
|
|
670
718
|
message.newOwnerId = reader.int32();
|
|
671
719
|
break;
|
|
672
|
-
case /* resources.users.UserShort new_owner */ 2:
|
|
720
|
+
case /* resources.users.short.UserShort new_owner */ 2:
|
|
673
721
|
message.newOwner = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.newOwner);
|
|
674
722
|
break;
|
|
675
723
|
default:
|
|
@@ -687,7 +735,7 @@ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
|
687
735
|
/* int32 new_owner_id = 1; */
|
|
688
736
|
if (message.newOwnerId !== 0)
|
|
689
737
|
writer.tag(1, WireType.Varint).int32(message.newOwnerId);
|
|
690
|
-
/* resources.users.UserShort new_owner = 2; */
|
|
738
|
+
/* resources.users.short.UserShort new_owner = 2; */
|
|
691
739
|
if (message.newOwner)
|
|
692
740
|
UserShort.internalBinaryWrite(message.newOwner, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
693
741
|
let u = options.writeUnknownFields;
|
|
@@ -697,14 +745,14 @@ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
|
|
|
697
745
|
}
|
|
698
746
|
}
|
|
699
747
|
/**
|
|
700
|
-
* @generated MessageType for protobuf message resources.documents.DocOwnerChanged
|
|
748
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocOwnerChanged
|
|
701
749
|
*/
|
|
702
750
|
export const DocOwnerChanged = new DocOwnerChanged$Type();
|
|
703
751
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
704
752
|
class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
705
753
|
constructor() {
|
|
706
|
-
super("resources.documents.DocAccessRequested", [
|
|
707
|
-
{ no: 1, name: "level", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
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 } } } }
|
|
708
756
|
]);
|
|
709
757
|
}
|
|
710
758
|
create(value?: PartialMessage<DocAccessRequested>): DocAccessRequested {
|
|
@@ -719,7 +767,7 @@ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
|
719
767
|
while (reader.pos < end) {
|
|
720
768
|
let [fieldNo, wireType] = reader.tag();
|
|
721
769
|
switch (fieldNo) {
|
|
722
|
-
case /* resources.documents.AccessLevel level */ 1:
|
|
770
|
+
case /* resources.documents.access.AccessLevel level */ 1:
|
|
723
771
|
message.level = reader.int32();
|
|
724
772
|
break;
|
|
725
773
|
default:
|
|
@@ -734,7 +782,7 @@ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
|
734
782
|
return message;
|
|
735
783
|
}
|
|
736
784
|
internalBinaryWrite(message: DocAccessRequested, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
737
|
-
/* resources.documents.AccessLevel level = 1; */
|
|
785
|
+
/* resources.documents.access.AccessLevel level = 1; */
|
|
738
786
|
if (message.level !== 0)
|
|
739
787
|
writer.tag(1, WireType.Varint).int32(message.level);
|
|
740
788
|
let u = options.writeUnknownFields;
|
|
@@ -744,13 +792,13 @@ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
|
|
|
744
792
|
}
|
|
745
793
|
}
|
|
746
794
|
/**
|
|
747
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessRequested
|
|
795
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessRequested
|
|
748
796
|
*/
|
|
749
797
|
export const DocAccessRequested = new DocAccessRequested$Type();
|
|
750
798
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
751
799
|
class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
752
800
|
constructor() {
|
|
753
|
-
super("resources.documents.DocAccessUpdated", [
|
|
801
|
+
super("resources.documents.activity.DocAccessUpdated", [
|
|
754
802
|
{ no: 1, name: "jobs", kind: "message", T: () => DocAccessJobsDiff },
|
|
755
803
|
{ no: 2, name: "users", kind: "message", T: () => DocAccessUsersDiff }
|
|
756
804
|
]);
|
|
@@ -766,10 +814,10 @@ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
|
766
814
|
while (reader.pos < end) {
|
|
767
815
|
let [fieldNo, wireType] = reader.tag();
|
|
768
816
|
switch (fieldNo) {
|
|
769
|
-
case /* resources.documents.DocAccessJobsDiff jobs */ 1:
|
|
817
|
+
case /* resources.documents.activity.DocAccessJobsDiff jobs */ 1:
|
|
770
818
|
message.jobs = DocAccessJobsDiff.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
|
|
771
819
|
break;
|
|
772
|
-
case /* resources.documents.DocAccessUsersDiff users */ 2:
|
|
820
|
+
case /* resources.documents.activity.DocAccessUsersDiff users */ 2:
|
|
773
821
|
message.users = DocAccessUsersDiff.internalBinaryRead(reader, reader.uint32(), options, message.users);
|
|
774
822
|
break;
|
|
775
823
|
default:
|
|
@@ -784,10 +832,10 @@ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
|
784
832
|
return message;
|
|
785
833
|
}
|
|
786
834
|
internalBinaryWrite(message: DocAccessUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
787
|
-
/* resources.documents.DocAccessJobsDiff jobs = 1; */
|
|
835
|
+
/* resources.documents.activity.DocAccessJobsDiff jobs = 1; */
|
|
788
836
|
if (message.jobs)
|
|
789
837
|
DocAccessJobsDiff.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
790
|
-
/* resources.documents.DocAccessUsersDiff users = 2; */
|
|
838
|
+
/* resources.documents.activity.DocAccessUsersDiff users = 2; */
|
|
791
839
|
if (message.users)
|
|
792
840
|
DocAccessUsersDiff.internalBinaryWrite(message.users, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
793
841
|
let u = options.writeUnknownFields;
|
|
@@ -797,13 +845,13 @@ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
|
|
|
797
845
|
}
|
|
798
846
|
}
|
|
799
847
|
/**
|
|
800
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessUpdated
|
|
848
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessUpdated
|
|
801
849
|
*/
|
|
802
850
|
export const DocAccessUpdated = new DocAccessUpdated$Type();
|
|
803
851
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
804
852
|
class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
805
853
|
constructor() {
|
|
806
|
-
super("resources.documents.DocAccessJobsDiff", [
|
|
854
|
+
super("resources.documents.activity.DocAccessJobsDiff", [
|
|
807
855
|
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
808
856
|
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
809
857
|
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
@@ -823,13 +871,13 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
|
823
871
|
while (reader.pos < end) {
|
|
824
872
|
let [fieldNo, wireType] = reader.tag();
|
|
825
873
|
switch (fieldNo) {
|
|
826
|
-
case /* repeated resources.documents.DocumentJobAccess to_create */ 1:
|
|
874
|
+
case /* repeated resources.documents.access.DocumentJobAccess to_create */ 1:
|
|
827
875
|
message.toCreate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
828
876
|
break;
|
|
829
|
-
case /* repeated resources.documents.DocumentJobAccess to_update */ 2:
|
|
877
|
+
case /* repeated resources.documents.access.DocumentJobAccess to_update */ 2:
|
|
830
878
|
message.toUpdate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
831
879
|
break;
|
|
832
|
-
case /* repeated resources.documents.DocumentJobAccess to_delete */ 3:
|
|
880
|
+
case /* repeated resources.documents.access.DocumentJobAccess to_delete */ 3:
|
|
833
881
|
message.toDelete.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
834
882
|
break;
|
|
835
883
|
default:
|
|
@@ -844,13 +892,13 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
|
844
892
|
return message;
|
|
845
893
|
}
|
|
846
894
|
internalBinaryWrite(message: DocAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
847
|
-
/* repeated resources.documents.DocumentJobAccess to_create = 1; */
|
|
895
|
+
/* repeated resources.documents.access.DocumentJobAccess to_create = 1; */
|
|
848
896
|
for (let i = 0; i < message.toCreate.length; i++)
|
|
849
897
|
DocumentJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
850
|
-
/* repeated resources.documents.DocumentJobAccess to_update = 2; */
|
|
898
|
+
/* repeated resources.documents.access.DocumentJobAccess to_update = 2; */
|
|
851
899
|
for (let i = 0; i < message.toUpdate.length; i++)
|
|
852
900
|
DocumentJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
853
|
-
/* repeated resources.documents.DocumentJobAccess to_delete = 3; */
|
|
901
|
+
/* repeated resources.documents.access.DocumentJobAccess to_delete = 3; */
|
|
854
902
|
for (let i = 0; i < message.toDelete.length; i++)
|
|
855
903
|
DocumentJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
856
904
|
let u = options.writeUnknownFields;
|
|
@@ -860,13 +908,13 @@ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
|
|
|
860
908
|
}
|
|
861
909
|
}
|
|
862
910
|
/**
|
|
863
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessJobsDiff
|
|
911
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessJobsDiff
|
|
864
912
|
*/
|
|
865
913
|
export const DocAccessJobsDiff = new DocAccessJobsDiff$Type();
|
|
866
914
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
867
915
|
class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
868
916
|
constructor() {
|
|
869
|
-
super("resources.documents.DocAccessUsersDiff", [
|
|
917
|
+
super("resources.documents.activity.DocAccessUsersDiff", [
|
|
870
918
|
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
871
919
|
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
872
920
|
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DocumentUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
@@ -886,13 +934,13 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
|
886
934
|
while (reader.pos < end) {
|
|
887
935
|
let [fieldNo, wireType] = reader.tag();
|
|
888
936
|
switch (fieldNo) {
|
|
889
|
-
case /* repeated resources.documents.DocumentUserAccess to_create */ 1:
|
|
937
|
+
case /* repeated resources.documents.access.DocumentUserAccess to_create */ 1:
|
|
890
938
|
message.toCreate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
891
939
|
break;
|
|
892
|
-
case /* repeated resources.documents.DocumentUserAccess to_update */ 2:
|
|
940
|
+
case /* repeated resources.documents.access.DocumentUserAccess to_update */ 2:
|
|
893
941
|
message.toUpdate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
894
942
|
break;
|
|
895
|
-
case /* repeated resources.documents.DocumentUserAccess to_delete */ 3:
|
|
943
|
+
case /* repeated resources.documents.access.DocumentUserAccess to_delete */ 3:
|
|
896
944
|
message.toDelete.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
897
945
|
break;
|
|
898
946
|
default:
|
|
@@ -907,13 +955,13 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
|
907
955
|
return message;
|
|
908
956
|
}
|
|
909
957
|
internalBinaryWrite(message: DocAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
910
|
-
/* repeated resources.documents.DocumentUserAccess to_create = 1; */
|
|
958
|
+
/* repeated resources.documents.access.DocumentUserAccess to_create = 1; */
|
|
911
959
|
for (let i = 0; i < message.toCreate.length; i++)
|
|
912
960
|
DocumentUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
913
|
-
/* repeated resources.documents.DocumentUserAccess to_update = 2; */
|
|
961
|
+
/* repeated resources.documents.access.DocumentUserAccess to_update = 2; */
|
|
914
962
|
for (let i = 0; i < message.toUpdate.length; i++)
|
|
915
963
|
DocumentUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
916
|
-
/* repeated resources.documents.DocumentUserAccess to_delete = 3; */
|
|
964
|
+
/* repeated resources.documents.access.DocumentUserAccess to_delete = 3; */
|
|
917
965
|
for (let i = 0; i < message.toDelete.length; i++)
|
|
918
966
|
DocumentUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
919
967
|
let u = options.writeUnknownFields;
|
|
@@ -923,25 +971,25 @@ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
|
|
|
923
971
|
}
|
|
924
972
|
}
|
|
925
973
|
/**
|
|
926
|
-
* @generated MessageType for protobuf message resources.documents.DocAccessUsersDiff
|
|
974
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocAccessUsersDiff
|
|
927
975
|
*/
|
|
928
976
|
export const DocAccessUsersDiff = new DocAccessUsersDiff$Type();
|
|
929
977
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
930
|
-
class
|
|
978
|
+
class DocSigningRequested$Type extends MessageType<DocSigningRequested> {
|
|
931
979
|
constructor() {
|
|
932
|
-
super("resources.documents.
|
|
980
|
+
super("resources.documents.activity.DocSigningRequested", [
|
|
933
981
|
{ no: 1, name: "deadline", kind: "message", T: () => Timestamp },
|
|
934
982
|
{ no: 2, name: "approvers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UserShort, options: { "buf.validate.field": { repeated: { maxItems: "8" } } } }
|
|
935
983
|
]);
|
|
936
984
|
}
|
|
937
|
-
create(value?: PartialMessage<
|
|
985
|
+
create(value?: PartialMessage<DocSigningRequested>): DocSigningRequested {
|
|
938
986
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
939
987
|
message.approvers = [];
|
|
940
988
|
if (value !== undefined)
|
|
941
|
-
reflectionMergePartial<
|
|
989
|
+
reflectionMergePartial<DocSigningRequested>(this, message, value);
|
|
942
990
|
return message;
|
|
943
991
|
}
|
|
944
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
992
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocSigningRequested): DocSigningRequested {
|
|
945
993
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
946
994
|
while (reader.pos < end) {
|
|
947
995
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -949,7 +997,7 @@ class DocSignOffRequested$Type extends MessageType<DocSignOffRequested> {
|
|
|
949
997
|
case /* optional resources.timestamp.Timestamp deadline */ 1:
|
|
950
998
|
message.deadline = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deadline);
|
|
951
999
|
break;
|
|
952
|
-
case /* repeated resources.users.UserShort approvers */ 2:
|
|
1000
|
+
case /* repeated resources.users.short.UserShort approvers */ 2:
|
|
953
1001
|
message.approvers.push(UserShort.internalBinaryRead(reader, reader.uint32(), options));
|
|
954
1002
|
break;
|
|
955
1003
|
default:
|
|
@@ -963,11 +1011,11 @@ class DocSignOffRequested$Type extends MessageType<DocSignOffRequested> {
|
|
|
963
1011
|
}
|
|
964
1012
|
return message;
|
|
965
1013
|
}
|
|
966
|
-
internalBinaryWrite(message:
|
|
1014
|
+
internalBinaryWrite(message: DocSigningRequested, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
967
1015
|
/* optional resources.timestamp.Timestamp deadline = 1; */
|
|
968
1016
|
if (message.deadline)
|
|
969
1017
|
Timestamp.internalBinaryWrite(message.deadline, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
970
|
-
/* repeated resources.users.UserShort approvers = 2; */
|
|
1018
|
+
/* repeated resources.users.short.UserShort approvers = 2; */
|
|
971
1019
|
for (let i = 0; i < message.approvers.length; i++)
|
|
972
1020
|
UserShort.internalBinaryWrite(message.approvers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
973
1021
|
let u = options.writeUnknownFields;
|
|
@@ -977,6 +1025,6 @@ class DocSignOffRequested$Type extends MessageType<DocSignOffRequested> {
|
|
|
977
1025
|
}
|
|
978
1026
|
}
|
|
979
1027
|
/**
|
|
980
|
-
* @generated MessageType for protobuf message resources.documents.
|
|
1028
|
+
* @generated MessageType for protobuf message resources.documents.activity.DocSigningRequested
|
|
981
1029
|
*/
|
|
982
|
-
export const
|
|
1030
|
+
export const DocSigningRequested = new DocSigningRequested$Type();
|