@fivenet-app/gen 2025.9.1 → 2026.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/clients.ts +36 -0
- package/codegen/perms/perms.ts +186 -15
- package/codegen/sanitizer/sanitizer.ts +34 -1
- package/package.json +2 -2
- package/perms.ts +140 -8
- package/resources/accounts/accounts.ts +98 -31
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
- package/resources/audit/audit.ts +156 -38
- package/resources/calendar/{access.ts → access/access.ts} +30 -30
- package/resources/calendar/calendar.ts +17 -477
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/{access.ts → access/access.ts} +22 -22
- package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
- package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
- package/resources/centrum/{units.ts → units/units.ts} +131 -51
- package/resources/citizens/labels/labels.ts +526 -0
- package/resources/{users → citizens/licenses}/licenses.ts +17 -17
- package/resources/clientconfig/clientconfig.ts +126 -258
- package/resources/collab/collab.ts +4 -16
- package/resources/common/content/content.ts +108 -85
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/i18n.ts +2 -2
- package/resources/{common/cron → cron}/cron.ts +43 -43
- package/resources/documents/{access.ts → access/access.ts} +29 -52
- package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +7 -7
- package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +282 -667
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
- package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
- package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
- package/resources/file/filestore.ts +1 -1
- package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
- package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
- package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
- package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
- package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
- package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
- package/resources/mailer/{access.ts → access/access.ts} +67 -67
- package/resources/mailer/{email.ts → emails/email.ts} +19 -19
- package/resources/mailer/{events.ts → events/events.ts} +24 -24
- package/resources/mailer/{message.ts → messages/message.ts} +29 -29
- package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
- package/resources/mailer/{template.ts → templates/template.ts} +15 -15
- package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
- package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
- package/resources/notifications/{events.ts → events/events.ts} +20 -20
- package/resources/notifications/notifications.ts +4 -4
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
- package/resources/permissions/{events.ts → events/events.ts} +7 -7
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
- package/resources/qualifications/{access.ts → access/access.ts} +19 -19
- package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
- package/resources/qualifications/qualifications.ts +51 -179
- package/resources/settings/banner.ts +3 -3
- package/resources/settings/config.ts +527 -25
- package/resources/{documents/state.ts → settings/data.ts} +41 -20
- package/resources/settings/perms.ts +14 -14
- package/resources/stats/stats.ts +379 -0
- package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
- package/resources/sync/{data.ts → data/data.ts} +405 -59
- package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
- package/resources/users/{activity.ts → activity/activity.ts} +242 -101
- package/resources/users/{props.ts → props/props.ts} +91 -69
- package/resources/users/short/user.ts +184 -0
- package/resources/users/{users.ts → user.ts} +266 -195
- package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
- package/resources/vehicles/{props.ts → props/props.ts} +28 -6
- package/resources/vehicles/vehicles.ts +20 -8
- package/resources/wiki/{access.ts → access/access.ts} +30 -30
- package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
- package/resources/wiki/page.ts +39 -15
- package/services/auth/auth.client.ts +23 -10
- package/services/auth/auth.ts +445 -262
- package/services/calendar/calendar.ts +56 -34
- package/services/centrum/centrum.ts +127 -127
- package/services/citizens/citizens.client.ts +0 -13
- package/services/citizens/citizens.ts +44 -134
- package/services/citizens/labels.client.ts +77 -0
- package/services/citizens/labels.ts +455 -0
- package/services/completor/completor.ts +36 -16
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/documents.ts +164 -186
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/jobs/conduct.client.ts +30 -3
- package/services/jobs/conduct.ts +159 -33
- package/services/jobs/jobs.ts +43 -43
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.ts +39 -39
- package/services/livemap/livemap.ts +18 -18
- package/services/mailer/mailer.ts +78 -78
- package/services/notifications/notifications.ts +35 -35
- package/services/qualifications/qualifications.ts +81 -46
- package/services/settings/accounts.client.ts +23 -10
- package/services/settings/accounts.ts +191 -30
- package/services/settings/cron.client.ts +13 -0
- package/services/settings/cron.ts +118 -5
- package/services/settings/laws.ts +1 -1
- package/services/settings/settings.ts +73 -52
- package/services/settings/system.client.ts +13 -0
- package/services/settings/system.ts +115 -15
- package/services/stats/stats.client.ts +7 -7
- package/services/stats/stats.ts +24 -24
- package/services/sync/sync.client.ts +271 -37
- package/services/sync/sync.ts +1525 -421
- package/services/vehicles/vehicles.ts +8 -8
- package/services/wiki/wiki.ts +8 -8
- package/svcs.ts +100 -6
- package/resources/centrum/attributes.ts +0 -183
- package/resources/documents/signoff.ts +0 -55
- package/resources/users/labels.ts +0 -160
|
@@ -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/wiki/activity.proto" (package "resources.wiki", syntax proto3)
|
|
2
|
+
// @generated from protobuf file "resources/wiki/activity/activity.proto" (package "resources.wiki.activity", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,12 +11,13 @@ 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 { PageUserAccess } from "
|
|
15
|
-
import { PageJobAccess } from "
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { PageUserAccess } from "../access/access";
|
|
15
|
+
import { PageJobAccess } from "../access/access";
|
|
16
|
+
import { ContentDiff } from "../../common/content/diff_activity";
|
|
17
|
+
import { UserShort } from "../../users/short/user";
|
|
18
|
+
import { Timestamp } from "../../timestamp/timestamp";
|
|
18
19
|
/**
|
|
19
|
-
* @generated from protobuf message resources.wiki.PageActivity
|
|
20
|
+
* @generated from protobuf message resources.wiki.activity.PageActivity
|
|
20
21
|
*/
|
|
21
22
|
export interface PageActivity {
|
|
22
23
|
/**
|
|
@@ -32,7 +33,7 @@ export interface PageActivity {
|
|
|
32
33
|
*/
|
|
33
34
|
pageId: number;
|
|
34
35
|
/**
|
|
35
|
-
* @generated from protobuf field: resources.wiki.PageActivityType activity_type = 4
|
|
36
|
+
* @generated from protobuf field: resources.wiki.activity.PageActivityType activity_type = 4
|
|
36
37
|
*/
|
|
37
38
|
activityType: PageActivityType;
|
|
38
39
|
/**
|
|
@@ -40,7 +41,7 @@ export interface PageActivity {
|
|
|
40
41
|
*/
|
|
41
42
|
creatorId?: number;
|
|
42
43
|
/**
|
|
43
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 6
|
|
44
|
+
* @generated from protobuf field: optional resources.users.short.UserShort creator = 6
|
|
44
45
|
*/
|
|
45
46
|
creator?: UserShort;
|
|
46
47
|
/**
|
|
@@ -56,12 +57,12 @@ export interface PageActivity {
|
|
|
56
57
|
*/
|
|
57
58
|
reason?: string;
|
|
58
59
|
/**
|
|
59
|
-
* @generated from protobuf field: resources.wiki.PageActivityData data = 10
|
|
60
|
+
* @generated from protobuf field: resources.wiki.activity.PageActivityData data = 10
|
|
60
61
|
*/
|
|
61
62
|
data?: PageActivityData;
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
|
-
* @generated from protobuf message resources.wiki.PageActivityData
|
|
65
|
+
* @generated from protobuf message resources.wiki.activity.PageActivityData
|
|
65
66
|
*/
|
|
66
67
|
export interface PageActivityData {
|
|
67
68
|
/**
|
|
@@ -70,13 +71,13 @@ export interface PageActivityData {
|
|
|
70
71
|
data: {
|
|
71
72
|
oneofKind: "updated";
|
|
72
73
|
/**
|
|
73
|
-
* @generated from protobuf field: resources.wiki.PageUpdated updated = 1
|
|
74
|
+
* @generated from protobuf field: resources.wiki.activity.PageUpdated updated = 1
|
|
74
75
|
*/
|
|
75
76
|
updated: PageUpdated;
|
|
76
77
|
} | {
|
|
77
78
|
oneofKind: "accessUpdated";
|
|
78
79
|
/**
|
|
79
|
-
* @generated from protobuf field: resources.wiki.PageAccessUpdated access_updated = 2
|
|
80
|
+
* @generated from protobuf field: resources.wiki.activity.PageAccessUpdated access_updated = 2
|
|
80
81
|
*/
|
|
81
82
|
accessUpdated: PageAccessUpdated;
|
|
82
83
|
} | {
|
|
@@ -84,28 +85,40 @@ export interface PageActivityData {
|
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
/**
|
|
87
|
-
* @generated from protobuf message resources.wiki.PageUpdated
|
|
88
|
+
* @generated from protobuf message resources.wiki.activity.PageUpdated
|
|
88
89
|
*/
|
|
89
90
|
export interface PageUpdated {
|
|
90
91
|
/**
|
|
91
92
|
* @generated from protobuf field: optional string title_diff = 1
|
|
92
93
|
*/
|
|
93
94
|
titleDiff?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff title_cdiff = 5
|
|
97
|
+
*/
|
|
98
|
+
titleCdiff?: ContentDiff;
|
|
94
99
|
/**
|
|
95
100
|
* @generated from protobuf field: optional string description_diff = 2
|
|
96
101
|
*/
|
|
97
102
|
descriptionDiff?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff description_cdiff = 6
|
|
105
|
+
*/
|
|
106
|
+
descriptionCdiff?: ContentDiff;
|
|
98
107
|
/**
|
|
99
108
|
* @generated from protobuf field: optional string content_diff = 3
|
|
100
109
|
*/
|
|
101
110
|
contentDiff?: string;
|
|
102
111
|
/**
|
|
103
|
-
* @generated from protobuf field: optional resources.
|
|
112
|
+
* @generated from protobuf field: optional resources.common.content.ContentDiff content_cdiff = 7
|
|
113
|
+
*/
|
|
114
|
+
contentCdiff?: ContentDiff;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf field: optional resources.wiki.activity.PageFilesChange files_change = 4
|
|
104
117
|
*/
|
|
105
118
|
filesChange?: PageFilesChange;
|
|
106
119
|
}
|
|
107
120
|
/**
|
|
108
|
-
* @generated from protobuf message resources.wiki.PageFilesChange
|
|
121
|
+
* @generated from protobuf message resources.wiki.activity.PageFilesChange
|
|
109
122
|
*/
|
|
110
123
|
export interface PageFilesChange {
|
|
111
124
|
/**
|
|
@@ -118,54 +131,54 @@ export interface PageFilesChange {
|
|
|
118
131
|
deleted: number;
|
|
119
132
|
}
|
|
120
133
|
/**
|
|
121
|
-
* @generated from protobuf message resources.wiki.PageAccessUpdated
|
|
134
|
+
* @generated from protobuf message resources.wiki.activity.PageAccessUpdated
|
|
122
135
|
*/
|
|
123
136
|
export interface PageAccessUpdated {
|
|
124
137
|
/**
|
|
125
|
-
* @generated from protobuf field: resources.wiki.PageAccessJobsDiff jobs = 1
|
|
138
|
+
* @generated from protobuf field: resources.wiki.activity.PageAccessJobsDiff jobs = 1
|
|
126
139
|
*/
|
|
127
140
|
jobs?: PageAccessJobsDiff;
|
|
128
141
|
/**
|
|
129
|
-
* @generated from protobuf field: resources.wiki.PageAccessUsersDiff users = 2
|
|
142
|
+
* @generated from protobuf field: resources.wiki.activity.PageAccessUsersDiff users = 2
|
|
130
143
|
*/
|
|
131
144
|
users?: PageAccessUsersDiff;
|
|
132
145
|
}
|
|
133
146
|
/**
|
|
134
|
-
* @generated from protobuf message resources.wiki.PageAccessJobsDiff
|
|
147
|
+
* @generated from protobuf message resources.wiki.activity.PageAccessJobsDiff
|
|
135
148
|
*/
|
|
136
149
|
export interface PageAccessJobsDiff {
|
|
137
150
|
/**
|
|
138
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_create = 1
|
|
151
|
+
* @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_create = 1
|
|
139
152
|
*/
|
|
140
153
|
toCreate: PageJobAccess[];
|
|
141
154
|
/**
|
|
142
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_update = 2
|
|
155
|
+
* @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_update = 2
|
|
143
156
|
*/
|
|
144
157
|
toUpdate: PageJobAccess[];
|
|
145
158
|
/**
|
|
146
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_delete = 3
|
|
159
|
+
* @generated from protobuf field: repeated resources.wiki.access.PageJobAccess to_delete = 3
|
|
147
160
|
*/
|
|
148
161
|
toDelete: PageJobAccess[];
|
|
149
162
|
}
|
|
150
163
|
/**
|
|
151
|
-
* @generated from protobuf message resources.wiki.PageAccessUsersDiff
|
|
164
|
+
* @generated from protobuf message resources.wiki.activity.PageAccessUsersDiff
|
|
152
165
|
*/
|
|
153
166
|
export interface PageAccessUsersDiff {
|
|
154
167
|
/**
|
|
155
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_create = 1
|
|
168
|
+
* @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_create = 1
|
|
156
169
|
*/
|
|
157
170
|
toCreate: PageUserAccess[];
|
|
158
171
|
/**
|
|
159
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_update = 2
|
|
172
|
+
* @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_update = 2
|
|
160
173
|
*/
|
|
161
174
|
toUpdate: PageUserAccess[];
|
|
162
175
|
/**
|
|
163
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_delete = 3
|
|
176
|
+
* @generated from protobuf field: repeated resources.wiki.access.PageUserAccess to_delete = 3
|
|
164
177
|
*/
|
|
165
178
|
toDelete: PageUserAccess[];
|
|
166
179
|
}
|
|
167
180
|
/**
|
|
168
|
-
* @generated from protobuf enum resources.wiki.PageActivityType
|
|
181
|
+
* @generated from protobuf enum resources.wiki.activity.PageActivityType
|
|
169
182
|
*/
|
|
170
183
|
export enum PageActivityType {
|
|
171
184
|
/**
|
|
@@ -202,11 +215,11 @@ export enum PageActivityType {
|
|
|
202
215
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
203
216
|
class PageActivity$Type extends MessageType<PageActivity> {
|
|
204
217
|
constructor() {
|
|
205
|
-
super("resources.wiki.PageActivity", [
|
|
218
|
+
super("resources.wiki.activity.PageActivity", [
|
|
206
219
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
207
220
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
208
221
|
{ no: 3, name: "page_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
209
|
-
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
|
|
222
|
+
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.activity.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
|
|
210
223
|
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
211
224
|
{ no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
212
225
|
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
@@ -239,13 +252,13 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
239
252
|
case /* int64 page_id */ 3:
|
|
240
253
|
message.pageId = reader.int64().toNumber();
|
|
241
254
|
break;
|
|
242
|
-
case /* resources.wiki.PageActivityType activity_type */ 4:
|
|
255
|
+
case /* resources.wiki.activity.PageActivityType activity_type */ 4:
|
|
243
256
|
message.activityType = reader.int32();
|
|
244
257
|
break;
|
|
245
258
|
case /* optional int32 creator_id */ 5:
|
|
246
259
|
message.creatorId = reader.int32();
|
|
247
260
|
break;
|
|
248
|
-
case /* optional resources.users.UserShort creator */ 6:
|
|
261
|
+
case /* optional resources.users.short.UserShort creator */ 6:
|
|
249
262
|
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
250
263
|
break;
|
|
251
264
|
case /* string creator_job */ 7:
|
|
@@ -257,7 +270,7 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
257
270
|
case /* optional string reason */ 9:
|
|
258
271
|
message.reason = reader.string();
|
|
259
272
|
break;
|
|
260
|
-
case /* resources.wiki.PageActivityData data */ 10:
|
|
273
|
+
case /* resources.wiki.activity.PageActivityData data */ 10:
|
|
261
274
|
message.data = PageActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
262
275
|
break;
|
|
263
276
|
default:
|
|
@@ -281,13 +294,13 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
281
294
|
/* int64 page_id = 3; */
|
|
282
295
|
if (message.pageId !== 0)
|
|
283
296
|
writer.tag(3, WireType.Varint).int64(message.pageId);
|
|
284
|
-
/* resources.wiki.PageActivityType activity_type = 4; */
|
|
297
|
+
/* resources.wiki.activity.PageActivityType activity_type = 4; */
|
|
285
298
|
if (message.activityType !== 0)
|
|
286
299
|
writer.tag(4, WireType.Varint).int32(message.activityType);
|
|
287
300
|
/* optional int32 creator_id = 5; */
|
|
288
301
|
if (message.creatorId !== undefined)
|
|
289
302
|
writer.tag(5, WireType.Varint).int32(message.creatorId);
|
|
290
|
-
/* optional resources.users.UserShort creator = 6; */
|
|
303
|
+
/* optional resources.users.short.UserShort creator = 6; */
|
|
291
304
|
if (message.creator)
|
|
292
305
|
UserShort.internalBinaryWrite(message.creator, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
293
306
|
/* string creator_job = 7; */
|
|
@@ -299,7 +312,7 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
299
312
|
/* optional string reason = 9; */
|
|
300
313
|
if (message.reason !== undefined)
|
|
301
314
|
writer.tag(9, WireType.LengthDelimited).string(message.reason);
|
|
302
|
-
/* resources.wiki.PageActivityData data = 10; */
|
|
315
|
+
/* resources.wiki.activity.PageActivityData data = 10; */
|
|
303
316
|
if (message.data)
|
|
304
317
|
PageActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
305
318
|
let u = options.writeUnknownFields;
|
|
@@ -309,13 +322,13 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
309
322
|
}
|
|
310
323
|
}
|
|
311
324
|
/**
|
|
312
|
-
* @generated MessageType for protobuf message resources.wiki.PageActivity
|
|
325
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageActivity
|
|
313
326
|
*/
|
|
314
327
|
export const PageActivity = new PageActivity$Type();
|
|
315
328
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
316
329
|
class PageActivityData$Type extends MessageType<PageActivityData> {
|
|
317
330
|
constructor() {
|
|
318
|
-
super("resources.wiki.PageActivityData", [
|
|
331
|
+
super("resources.wiki.activity.PageActivityData", [
|
|
319
332
|
{ no: 1, name: "updated", kind: "message", oneof: "data", T: () => PageUpdated },
|
|
320
333
|
{ no: 2, name: "access_updated", kind: "message", oneof: "data", T: () => PageAccessUpdated }
|
|
321
334
|
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
@@ -332,13 +345,13 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
|
|
|
332
345
|
while (reader.pos < end) {
|
|
333
346
|
let [fieldNo, wireType] = reader.tag();
|
|
334
347
|
switch (fieldNo) {
|
|
335
|
-
case /* resources.wiki.PageUpdated updated */ 1:
|
|
348
|
+
case /* resources.wiki.activity.PageUpdated updated */ 1:
|
|
336
349
|
message.data = {
|
|
337
350
|
oneofKind: "updated",
|
|
338
351
|
updated: PageUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updated)
|
|
339
352
|
};
|
|
340
353
|
break;
|
|
341
|
-
case /* resources.wiki.PageAccessUpdated access_updated */ 2:
|
|
354
|
+
case /* resources.wiki.activity.PageAccessUpdated access_updated */ 2:
|
|
342
355
|
message.data = {
|
|
343
356
|
oneofKind: "accessUpdated",
|
|
344
357
|
accessUpdated: PageAccessUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessUpdated)
|
|
@@ -356,10 +369,10 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
|
|
|
356
369
|
return message;
|
|
357
370
|
}
|
|
358
371
|
internalBinaryWrite(message: PageActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
359
|
-
/* resources.wiki.PageUpdated updated = 1; */
|
|
372
|
+
/* resources.wiki.activity.PageUpdated updated = 1; */
|
|
360
373
|
if (message.data.oneofKind === "updated")
|
|
361
374
|
PageUpdated.internalBinaryWrite(message.data.updated, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
362
|
-
/* resources.wiki.PageAccessUpdated access_updated = 2; */
|
|
375
|
+
/* resources.wiki.activity.PageAccessUpdated access_updated = 2; */
|
|
363
376
|
if (message.data.oneofKind === "accessUpdated")
|
|
364
377
|
PageAccessUpdated.internalBinaryWrite(message.data.accessUpdated, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
365
378
|
let u = options.writeUnknownFields;
|
|
@@ -369,16 +382,19 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
|
|
|
369
382
|
}
|
|
370
383
|
}
|
|
371
384
|
/**
|
|
372
|
-
* @generated MessageType for protobuf message resources.wiki.PageActivityData
|
|
385
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageActivityData
|
|
373
386
|
*/
|
|
374
387
|
export const PageActivityData = new PageActivityData$Type();
|
|
375
388
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
376
389
|
class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
377
390
|
constructor() {
|
|
378
|
-
super("resources.wiki.PageUpdated", [
|
|
391
|
+
super("resources.wiki.activity.PageUpdated", [
|
|
379
392
|
{ no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
393
|
+
{ no: 5, name: "title_cdiff", kind: "message", T: () => ContentDiff },
|
|
380
394
|
{ no: 2, name: "description_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
395
|
+
{ no: 6, name: "description_cdiff", kind: "message", T: () => ContentDiff },
|
|
381
396
|
{ no: 3, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
397
|
+
{ no: 7, name: "content_cdiff", kind: "message", T: () => ContentDiff },
|
|
382
398
|
{ no: 4, name: "files_change", kind: "message", T: () => PageFilesChange }
|
|
383
399
|
]);
|
|
384
400
|
}
|
|
@@ -396,13 +412,22 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
396
412
|
case /* optional string title_diff */ 1:
|
|
397
413
|
message.titleDiff = reader.string();
|
|
398
414
|
break;
|
|
415
|
+
case /* optional resources.common.content.ContentDiff title_cdiff */ 5:
|
|
416
|
+
message.titleCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.titleCdiff);
|
|
417
|
+
break;
|
|
399
418
|
case /* optional string description_diff */ 2:
|
|
400
419
|
message.descriptionDiff = reader.string();
|
|
401
420
|
break;
|
|
421
|
+
case /* optional resources.common.content.ContentDiff description_cdiff */ 6:
|
|
422
|
+
message.descriptionCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.descriptionCdiff);
|
|
423
|
+
break;
|
|
402
424
|
case /* optional string content_diff */ 3:
|
|
403
425
|
message.contentDiff = reader.string();
|
|
404
426
|
break;
|
|
405
|
-
case /* optional resources.
|
|
427
|
+
case /* optional resources.common.content.ContentDiff content_cdiff */ 7:
|
|
428
|
+
message.contentCdiff = ContentDiff.internalBinaryRead(reader, reader.uint32(), options, message.contentCdiff);
|
|
429
|
+
break;
|
|
430
|
+
case /* optional resources.wiki.activity.PageFilesChange files_change */ 4:
|
|
406
431
|
message.filesChange = PageFilesChange.internalBinaryRead(reader, reader.uint32(), options, message.filesChange);
|
|
407
432
|
break;
|
|
408
433
|
default:
|
|
@@ -426,9 +451,18 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
426
451
|
/* optional string content_diff = 3; */
|
|
427
452
|
if (message.contentDiff !== undefined)
|
|
428
453
|
writer.tag(3, WireType.LengthDelimited).string(message.contentDiff);
|
|
429
|
-
/* optional resources.wiki.PageFilesChange files_change = 4; */
|
|
454
|
+
/* optional resources.wiki.activity.PageFilesChange files_change = 4; */
|
|
430
455
|
if (message.filesChange)
|
|
431
456
|
PageFilesChange.internalBinaryWrite(message.filesChange, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
457
|
+
/* optional resources.common.content.ContentDiff title_cdiff = 5; */
|
|
458
|
+
if (message.titleCdiff)
|
|
459
|
+
ContentDiff.internalBinaryWrite(message.titleCdiff, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
460
|
+
/* optional resources.common.content.ContentDiff description_cdiff = 6; */
|
|
461
|
+
if (message.descriptionCdiff)
|
|
462
|
+
ContentDiff.internalBinaryWrite(message.descriptionCdiff, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
463
|
+
/* optional resources.common.content.ContentDiff content_cdiff = 7; */
|
|
464
|
+
if (message.contentCdiff)
|
|
465
|
+
ContentDiff.internalBinaryWrite(message.contentCdiff, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
432
466
|
let u = options.writeUnknownFields;
|
|
433
467
|
if (u !== false)
|
|
434
468
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -436,13 +470,13 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
436
470
|
}
|
|
437
471
|
}
|
|
438
472
|
/**
|
|
439
|
-
* @generated MessageType for protobuf message resources.wiki.PageUpdated
|
|
473
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageUpdated
|
|
440
474
|
*/
|
|
441
475
|
export const PageUpdated = new PageUpdated$Type();
|
|
442
476
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
443
477
|
class PageFilesChange$Type extends MessageType<PageFilesChange> {
|
|
444
478
|
constructor() {
|
|
445
|
-
super("resources.wiki.PageFilesChange", [
|
|
479
|
+
super("resources.wiki.activity.PageFilesChange", [
|
|
446
480
|
{ no: 1, name: "added", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
447
481
|
{ no: 2, name: "deleted", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
448
482
|
]);
|
|
@@ -491,13 +525,13 @@ class PageFilesChange$Type extends MessageType<PageFilesChange> {
|
|
|
491
525
|
}
|
|
492
526
|
}
|
|
493
527
|
/**
|
|
494
|
-
* @generated MessageType for protobuf message resources.wiki.PageFilesChange
|
|
528
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageFilesChange
|
|
495
529
|
*/
|
|
496
530
|
export const PageFilesChange = new PageFilesChange$Type();
|
|
497
531
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
498
532
|
class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
|
|
499
533
|
constructor() {
|
|
500
|
-
super("resources.wiki.PageAccessUpdated", [
|
|
534
|
+
super("resources.wiki.activity.PageAccessUpdated", [
|
|
501
535
|
{ no: 1, name: "jobs", kind: "message", T: () => PageAccessJobsDiff },
|
|
502
536
|
{ no: 2, name: "users", kind: "message", T: () => PageAccessUsersDiff }
|
|
503
537
|
]);
|
|
@@ -513,10 +547,10 @@ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
|
|
|
513
547
|
while (reader.pos < end) {
|
|
514
548
|
let [fieldNo, wireType] = reader.tag();
|
|
515
549
|
switch (fieldNo) {
|
|
516
|
-
case /* resources.wiki.PageAccessJobsDiff jobs */ 1:
|
|
550
|
+
case /* resources.wiki.activity.PageAccessJobsDiff jobs */ 1:
|
|
517
551
|
message.jobs = PageAccessJobsDiff.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
|
|
518
552
|
break;
|
|
519
|
-
case /* resources.wiki.PageAccessUsersDiff users */ 2:
|
|
553
|
+
case /* resources.wiki.activity.PageAccessUsersDiff users */ 2:
|
|
520
554
|
message.users = PageAccessUsersDiff.internalBinaryRead(reader, reader.uint32(), options, message.users);
|
|
521
555
|
break;
|
|
522
556
|
default:
|
|
@@ -531,10 +565,10 @@ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
|
|
|
531
565
|
return message;
|
|
532
566
|
}
|
|
533
567
|
internalBinaryWrite(message: PageAccessUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
534
|
-
/* resources.wiki.PageAccessJobsDiff jobs = 1; */
|
|
568
|
+
/* resources.wiki.activity.PageAccessJobsDiff jobs = 1; */
|
|
535
569
|
if (message.jobs)
|
|
536
570
|
PageAccessJobsDiff.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
537
|
-
/* resources.wiki.PageAccessUsersDiff users = 2; */
|
|
571
|
+
/* resources.wiki.activity.PageAccessUsersDiff users = 2; */
|
|
538
572
|
if (message.users)
|
|
539
573
|
PageAccessUsersDiff.internalBinaryWrite(message.users, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
540
574
|
let u = options.writeUnknownFields;
|
|
@@ -544,13 +578,13 @@ class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
|
|
|
544
578
|
}
|
|
545
579
|
}
|
|
546
580
|
/**
|
|
547
|
-
* @generated MessageType for protobuf message resources.wiki.PageAccessUpdated
|
|
581
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageAccessUpdated
|
|
548
582
|
*/
|
|
549
583
|
export const PageAccessUpdated = new PageAccessUpdated$Type();
|
|
550
584
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
551
585
|
class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
|
|
552
586
|
constructor() {
|
|
553
|
-
super("resources.wiki.PageAccessJobsDiff", [
|
|
587
|
+
super("resources.wiki.activity.PageAccessJobsDiff", [
|
|
554
588
|
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
555
589
|
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
556
590
|
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
@@ -570,13 +604,13 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
|
|
|
570
604
|
while (reader.pos < end) {
|
|
571
605
|
let [fieldNo, wireType] = reader.tag();
|
|
572
606
|
switch (fieldNo) {
|
|
573
|
-
case /* repeated resources.wiki.PageJobAccess to_create */ 1:
|
|
607
|
+
case /* repeated resources.wiki.access.PageJobAccess to_create */ 1:
|
|
574
608
|
message.toCreate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
575
609
|
break;
|
|
576
|
-
case /* repeated resources.wiki.PageJobAccess to_update */ 2:
|
|
610
|
+
case /* repeated resources.wiki.access.PageJobAccess to_update */ 2:
|
|
577
611
|
message.toUpdate.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
578
612
|
break;
|
|
579
|
-
case /* repeated resources.wiki.PageJobAccess to_delete */ 3:
|
|
613
|
+
case /* repeated resources.wiki.access.PageJobAccess to_delete */ 3:
|
|
580
614
|
message.toDelete.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
581
615
|
break;
|
|
582
616
|
default:
|
|
@@ -591,13 +625,13 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
|
|
|
591
625
|
return message;
|
|
592
626
|
}
|
|
593
627
|
internalBinaryWrite(message: PageAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
594
|
-
/* repeated resources.wiki.PageJobAccess to_create = 1; */
|
|
628
|
+
/* repeated resources.wiki.access.PageJobAccess to_create = 1; */
|
|
595
629
|
for (let i = 0; i < message.toCreate.length; i++)
|
|
596
630
|
PageJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
597
|
-
/* repeated resources.wiki.PageJobAccess to_update = 2; */
|
|
631
|
+
/* repeated resources.wiki.access.PageJobAccess to_update = 2; */
|
|
598
632
|
for (let i = 0; i < message.toUpdate.length; i++)
|
|
599
633
|
PageJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
600
|
-
/* repeated resources.wiki.PageJobAccess to_delete = 3; */
|
|
634
|
+
/* repeated resources.wiki.access.PageJobAccess to_delete = 3; */
|
|
601
635
|
for (let i = 0; i < message.toDelete.length; i++)
|
|
602
636
|
PageJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
603
637
|
let u = options.writeUnknownFields;
|
|
@@ -607,13 +641,13 @@ class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
|
|
|
607
641
|
}
|
|
608
642
|
}
|
|
609
643
|
/**
|
|
610
|
-
* @generated MessageType for protobuf message resources.wiki.PageAccessJobsDiff
|
|
644
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageAccessJobsDiff
|
|
611
645
|
*/
|
|
612
646
|
export const PageAccessJobsDiff = new PageAccessJobsDiff$Type();
|
|
613
647
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
614
648
|
class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
|
|
615
649
|
constructor() {
|
|
616
|
-
super("resources.wiki.PageAccessUsersDiff", [
|
|
650
|
+
super("resources.wiki.activity.PageAccessUsersDiff", [
|
|
617
651
|
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
618
652
|
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
619
653
|
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
@@ -633,13 +667,13 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
|
|
|
633
667
|
while (reader.pos < end) {
|
|
634
668
|
let [fieldNo, wireType] = reader.tag();
|
|
635
669
|
switch (fieldNo) {
|
|
636
|
-
case /* repeated resources.wiki.PageUserAccess to_create */ 1:
|
|
670
|
+
case /* repeated resources.wiki.access.PageUserAccess to_create */ 1:
|
|
637
671
|
message.toCreate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
638
672
|
break;
|
|
639
|
-
case /* repeated resources.wiki.PageUserAccess to_update */ 2:
|
|
673
|
+
case /* repeated resources.wiki.access.PageUserAccess to_update */ 2:
|
|
640
674
|
message.toUpdate.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
641
675
|
break;
|
|
642
|
-
case /* repeated resources.wiki.PageUserAccess to_delete */ 3:
|
|
676
|
+
case /* repeated resources.wiki.access.PageUserAccess to_delete */ 3:
|
|
643
677
|
message.toDelete.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
644
678
|
break;
|
|
645
679
|
default:
|
|
@@ -654,13 +688,13 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
|
|
|
654
688
|
return message;
|
|
655
689
|
}
|
|
656
690
|
internalBinaryWrite(message: PageAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
657
|
-
/* repeated resources.wiki.PageUserAccess to_create = 1; */
|
|
691
|
+
/* repeated resources.wiki.access.PageUserAccess to_create = 1; */
|
|
658
692
|
for (let i = 0; i < message.toCreate.length; i++)
|
|
659
693
|
PageUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
660
|
-
/* repeated resources.wiki.PageUserAccess to_update = 2; */
|
|
694
|
+
/* repeated resources.wiki.access.PageUserAccess to_update = 2; */
|
|
661
695
|
for (let i = 0; i < message.toUpdate.length; i++)
|
|
662
696
|
PageUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
663
|
-
/* repeated resources.wiki.PageUserAccess to_delete = 3; */
|
|
697
|
+
/* repeated resources.wiki.access.PageUserAccess to_delete = 3; */
|
|
664
698
|
for (let i = 0; i < message.toDelete.length; i++)
|
|
665
699
|
PageUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
666
700
|
let u = options.writeUnknownFields;
|
|
@@ -670,6 +704,6 @@ class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
|
|
|
670
704
|
}
|
|
671
705
|
}
|
|
672
706
|
/**
|
|
673
|
-
* @generated MessageType for protobuf message resources.wiki.PageAccessUsersDiff
|
|
707
|
+
* @generated MessageType for protobuf message resources.wiki.activity.PageAccessUsersDiff
|
|
674
708
|
*/
|
|
675
709
|
export const PageAccessUsersDiff = new PageAccessUsersDiff$Type();
|