@fivenet-app/gen 2025.5.2 → 2025.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
package/resources/wiki/access.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/wiki/access.proto" (package "resources.wiki", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -17,48 +18,48 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
17
18
|
*/
|
|
18
19
|
export interface PageAccess {
|
|
19
20
|
/**
|
|
20
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess jobs = 1
|
|
21
|
+
* @generated from protobuf field: repeated resources.wiki.PageJobAccess jobs = 1
|
|
21
22
|
*/
|
|
22
|
-
jobs: PageJobAccess[];
|
|
23
|
+
jobs: PageJobAccess[];
|
|
23
24
|
/**
|
|
24
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess users = 2
|
|
25
|
+
* @generated from protobuf field: repeated resources.wiki.PageUserAccess users = 2
|
|
25
26
|
*/
|
|
26
|
-
users: PageUserAccess[];
|
|
27
|
+
users: PageUserAccess[];
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* @generated from protobuf message resources.wiki.PageJobAccess
|
|
30
31
|
*/
|
|
31
32
|
export interface PageJobAccess {
|
|
32
33
|
/**
|
|
33
|
-
* @generated from protobuf field:
|
|
34
|
+
* @generated from protobuf field: int64 id = 1
|
|
34
35
|
*/
|
|
35
36
|
id: number;
|
|
36
37
|
/**
|
|
37
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
38
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
38
39
|
*/
|
|
39
40
|
createdAt?: Timestamp;
|
|
40
41
|
/**
|
|
41
|
-
* @generated from protobuf field:
|
|
42
|
+
* @generated from protobuf field: int64 target_id = 3
|
|
42
43
|
*/
|
|
43
44
|
targetId: number;
|
|
44
45
|
/**
|
|
45
|
-
* @generated from protobuf field: string job = 4
|
|
46
|
+
* @generated from protobuf field: string job = 4
|
|
46
47
|
*/
|
|
47
48
|
job: string;
|
|
48
49
|
/**
|
|
49
|
-
* @generated from protobuf field: optional string job_label = 5
|
|
50
|
+
* @generated from protobuf field: optional string job_label = 5
|
|
50
51
|
*/
|
|
51
52
|
jobLabel?: string;
|
|
52
53
|
/**
|
|
53
|
-
* @generated from protobuf field: int32 minimum_grade = 6
|
|
54
|
+
* @generated from protobuf field: int32 minimum_grade = 6
|
|
54
55
|
*/
|
|
55
56
|
minimumGrade: number;
|
|
56
57
|
/**
|
|
57
|
-
* @generated from protobuf field: optional string job_grade_label = 7
|
|
58
|
+
* @generated from protobuf field: optional string job_grade_label = 7
|
|
58
59
|
*/
|
|
59
60
|
jobGradeLabel?: string;
|
|
60
61
|
/**
|
|
61
|
-
* @generated from protobuf field: resources.wiki.AccessLevel access = 8
|
|
62
|
+
* @generated from protobuf field: resources.wiki.AccessLevel access = 8
|
|
62
63
|
*/
|
|
63
64
|
access: AccessLevel;
|
|
64
65
|
}
|
|
@@ -67,27 +68,27 @@ export interface PageJobAccess {
|
|
|
67
68
|
*/
|
|
68
69
|
export interface PageUserAccess {
|
|
69
70
|
/**
|
|
70
|
-
* @generated from protobuf field:
|
|
71
|
+
* @generated from protobuf field: int64 id = 1
|
|
71
72
|
*/
|
|
72
73
|
id: number;
|
|
73
74
|
/**
|
|
74
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
75
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
75
76
|
*/
|
|
76
77
|
createdAt?: Timestamp;
|
|
77
78
|
/**
|
|
78
|
-
* @generated from protobuf field:
|
|
79
|
+
* @generated from protobuf field: int64 target_id = 3
|
|
79
80
|
*/
|
|
80
81
|
targetId: number;
|
|
81
82
|
/**
|
|
82
|
-
* @generated from protobuf field: int32 user_id = 4
|
|
83
|
+
* @generated from protobuf field: int32 user_id = 4
|
|
83
84
|
*/
|
|
84
85
|
userId: number;
|
|
85
86
|
/**
|
|
86
|
-
* @generated from protobuf field: optional resources.users.UserShort user = 5
|
|
87
|
+
* @generated from protobuf field: optional resources.users.UserShort user = 5
|
|
87
88
|
*/
|
|
88
89
|
user?: UserShort;
|
|
89
90
|
/**
|
|
90
|
-
* @generated from protobuf field: resources.wiki.AccessLevel access = 6
|
|
91
|
+
* @generated from protobuf field: resources.wiki.AccessLevel access = 6
|
|
91
92
|
*/
|
|
92
93
|
access: AccessLevel;
|
|
93
94
|
}
|
|
@@ -120,8 +121,8 @@ export enum AccessLevel {
|
|
|
120
121
|
class PageAccess$Type extends MessageType<PageAccess> {
|
|
121
122
|
constructor() {
|
|
122
123
|
super("resources.wiki.PageAccess", [
|
|
123
|
-
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.
|
|
124
|
-
{ no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.
|
|
124
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"job_access\"" } },
|
|
125
|
+
{ no: 2, name: "users", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } }, "tagger.tags": "alias:\"user_access\"" } }
|
|
125
126
|
]);
|
|
126
127
|
}
|
|
127
128
|
create(value?: PartialMessage<PageAccess>): PageAccess {
|
|
@@ -175,14 +176,14 @@ export const PageAccess = new PageAccess$Type();
|
|
|
175
176
|
class PageJobAccess$Type extends MessageType<PageJobAccess> {
|
|
176
177
|
constructor() {
|
|
177
178
|
super("resources.wiki.PageJobAccess", [
|
|
178
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
179
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
179
180
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
180
|
-
{ no: 3, name: "target_id", kind: "scalar", T:
|
|
181
|
-
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
182
|
-
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
183
|
-
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
184
|
-
{ no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
185
|
-
{ no: 8, name: "access", kind: "enum", T: () => ["resources.wiki.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
181
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
182
|
+
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
183
|
+
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
184
|
+
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gte: 0 } } } },
|
|
185
|
+
{ no: 7, name: "job_grade_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
186
|
+
{ no: 8, name: "access", kind: "enum", T: () => ["resources.wiki.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
186
187
|
]);
|
|
187
188
|
}
|
|
188
189
|
create(value?: PartialMessage<PageJobAccess>): PageJobAccess {
|
|
@@ -201,14 +202,14 @@ class PageJobAccess$Type extends MessageType<PageJobAccess> {
|
|
|
201
202
|
while (reader.pos < end) {
|
|
202
203
|
let [fieldNo, wireType] = reader.tag();
|
|
203
204
|
switch (fieldNo) {
|
|
204
|
-
case /*
|
|
205
|
-
message.id = reader.
|
|
205
|
+
case /* int64 id */ 1:
|
|
206
|
+
message.id = reader.int64().toNumber();
|
|
206
207
|
break;
|
|
207
208
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
208
209
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
209
210
|
break;
|
|
210
|
-
case /*
|
|
211
|
-
message.targetId = reader.
|
|
211
|
+
case /* int64 target_id */ 3:
|
|
212
|
+
message.targetId = reader.int64().toNumber();
|
|
212
213
|
break;
|
|
213
214
|
case /* string job */ 4:
|
|
214
215
|
message.job = reader.string();
|
|
@@ -237,15 +238,15 @@ class PageJobAccess$Type extends MessageType<PageJobAccess> {
|
|
|
237
238
|
return message;
|
|
238
239
|
}
|
|
239
240
|
internalBinaryWrite(message: PageJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
240
|
-
/*
|
|
241
|
+
/* int64 id = 1; */
|
|
241
242
|
if (message.id !== 0)
|
|
242
|
-
writer.tag(1, WireType.Varint).
|
|
243
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
243
244
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
244
245
|
if (message.createdAt)
|
|
245
246
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
246
|
-
/*
|
|
247
|
+
/* int64 target_id = 3; */
|
|
247
248
|
if (message.targetId !== 0)
|
|
248
|
-
writer.tag(3, WireType.Varint).
|
|
249
|
+
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
249
250
|
/* string job = 4; */
|
|
250
251
|
if (message.job !== "")
|
|
251
252
|
writer.tag(4, WireType.LengthDelimited).string(message.job);
|
|
@@ -275,12 +276,12 @@ export const PageJobAccess = new PageJobAccess$Type();
|
|
|
275
276
|
class PageUserAccess$Type extends MessageType<PageUserAccess> {
|
|
276
277
|
constructor() {
|
|
277
278
|
super("resources.wiki.PageUserAccess", [
|
|
278
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
279
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
279
280
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
280
|
-
{ no: 3, name: "target_id", kind: "scalar", T:
|
|
281
|
-
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
281
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
282
|
+
{ no: 4, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
282
283
|
{ no: 5, name: "user", kind: "message", T: () => UserShort },
|
|
283
|
-
{ no: 6, name: "access", kind: "enum", T: () => ["resources.wiki.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.
|
|
284
|
+
{ no: 6, name: "access", kind: "enum", T: () => ["resources.wiki.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
284
285
|
]);
|
|
285
286
|
}
|
|
286
287
|
create(value?: PartialMessage<PageUserAccess>): PageUserAccess {
|
|
@@ -298,14 +299,14 @@ class PageUserAccess$Type extends MessageType<PageUserAccess> {
|
|
|
298
299
|
while (reader.pos < end) {
|
|
299
300
|
let [fieldNo, wireType] = reader.tag();
|
|
300
301
|
switch (fieldNo) {
|
|
301
|
-
case /*
|
|
302
|
-
message.id = reader.
|
|
302
|
+
case /* int64 id */ 1:
|
|
303
|
+
message.id = reader.int64().toNumber();
|
|
303
304
|
break;
|
|
304
305
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
305
306
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
306
307
|
break;
|
|
307
|
-
case /*
|
|
308
|
-
message.targetId = reader.
|
|
308
|
+
case /* int64 target_id */ 3:
|
|
309
|
+
message.targetId = reader.int64().toNumber();
|
|
309
310
|
break;
|
|
310
311
|
case /* int32 user_id */ 4:
|
|
311
312
|
message.userId = reader.int32();
|
|
@@ -328,15 +329,15 @@ class PageUserAccess$Type extends MessageType<PageUserAccess> {
|
|
|
328
329
|
return message;
|
|
329
330
|
}
|
|
330
331
|
internalBinaryWrite(message: PageUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
331
|
-
/*
|
|
332
|
+
/* int64 id = 1; */
|
|
332
333
|
if (message.id !== 0)
|
|
333
|
-
writer.tag(1, WireType.Varint).
|
|
334
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
334
335
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
335
336
|
if (message.createdAt)
|
|
336
337
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
337
|
-
/*
|
|
338
|
+
/* int64 target_id = 3; */
|
|
338
339
|
if (message.targetId !== 0)
|
|
339
|
-
writer.tag(3, WireType.Varint).
|
|
340
|
+
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
340
341
|
/* int32 user_id = 4; */
|
|
341
342
|
if (message.userId !== 0)
|
|
342
343
|
writer.tag(4, WireType.Varint).int32(message.userId);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "resources/wiki/activity.proto" (package "resources.wiki", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
6
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
@@ -19,49 +20,47 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
19
20
|
*/
|
|
20
21
|
export interface PageActivity {
|
|
21
22
|
/**
|
|
22
|
-
* @generated from protobuf field:
|
|
23
|
+
* @generated from protobuf field: int64 id = 1
|
|
23
24
|
*/
|
|
24
25
|
id: number;
|
|
25
26
|
/**
|
|
26
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
|
|
27
|
+
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 2
|
|
27
28
|
*/
|
|
28
29
|
createdAt?: Timestamp;
|
|
29
30
|
/**
|
|
30
|
-
* @generated from protobuf field:
|
|
31
|
+
* @generated from protobuf field: int64 page_id = 3
|
|
31
32
|
*/
|
|
32
33
|
pageId: number;
|
|
33
34
|
/**
|
|
34
|
-
* @generated from protobuf field: resources.wiki.PageActivityType activity_type = 4
|
|
35
|
+
* @generated from protobuf field: resources.wiki.PageActivityType activity_type = 4
|
|
35
36
|
*/
|
|
36
37
|
activityType: PageActivityType;
|
|
37
38
|
/**
|
|
38
|
-
* @generated from protobuf field: optional int32 creator_id = 5
|
|
39
|
+
* @generated from protobuf field: optional int32 creator_id = 5
|
|
39
40
|
*/
|
|
40
41
|
creatorId?: number;
|
|
41
42
|
/**
|
|
42
|
-
* @generated from protobuf field: optional resources.users.UserShort creator = 6
|
|
43
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 6
|
|
43
44
|
*/
|
|
44
|
-
creator?: UserShort;
|
|
45
|
+
creator?: UserShort;
|
|
45
46
|
/**
|
|
46
|
-
* @generated from protobuf field: string creator_job = 7
|
|
47
|
+
* @generated from protobuf field: string creator_job = 7
|
|
47
48
|
*/
|
|
48
49
|
creatorJob: string;
|
|
49
50
|
/**
|
|
50
|
-
* @generated from protobuf field: optional string creator_job_label = 8
|
|
51
|
+
* @generated from protobuf field: optional string creator_job_label = 8
|
|
51
52
|
*/
|
|
52
53
|
creatorJobLabel?: string;
|
|
53
54
|
/**
|
|
54
|
-
* @generated from protobuf field: optional string reason = 9
|
|
55
|
+
* @generated from protobuf field: optional string reason = 9
|
|
55
56
|
*/
|
|
56
57
|
reason?: string;
|
|
57
58
|
/**
|
|
58
|
-
* @generated from protobuf field: resources.wiki.PageActivityData data = 10
|
|
59
|
+
* @generated from protobuf field: resources.wiki.PageActivityData data = 10
|
|
59
60
|
*/
|
|
60
61
|
data?: PageActivityData;
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
|
-
* @dbscanner: json
|
|
64
|
-
*
|
|
65
64
|
* @generated from protobuf message resources.wiki.PageActivityData
|
|
66
65
|
*/
|
|
67
66
|
export interface PageActivityData {
|
|
@@ -71,13 +70,13 @@ export interface PageActivityData {
|
|
|
71
70
|
data: {
|
|
72
71
|
oneofKind: "updated";
|
|
73
72
|
/**
|
|
74
|
-
* @generated from protobuf field: resources.wiki.PageUpdated updated = 1
|
|
73
|
+
* @generated from protobuf field: resources.wiki.PageUpdated updated = 1
|
|
75
74
|
*/
|
|
76
75
|
updated: PageUpdated;
|
|
77
76
|
} | {
|
|
78
77
|
oneofKind: "accessUpdated";
|
|
79
78
|
/**
|
|
80
|
-
* @generated from protobuf field: resources.wiki.PageAccessUpdated access_updated = 2
|
|
79
|
+
* @generated from protobuf field: resources.wiki.PageAccessUpdated access_updated = 2
|
|
81
80
|
*/
|
|
82
81
|
accessUpdated: PageAccessUpdated;
|
|
83
82
|
} | {
|
|
@@ -89,28 +88,45 @@ export interface PageActivityData {
|
|
|
89
88
|
*/
|
|
90
89
|
export interface PageUpdated {
|
|
91
90
|
/**
|
|
92
|
-
* @generated from protobuf field: optional string title_diff = 1
|
|
91
|
+
* @generated from protobuf field: optional string title_diff = 1
|
|
93
92
|
*/
|
|
94
93
|
titleDiff?: string;
|
|
95
94
|
/**
|
|
96
|
-
* @generated from protobuf field: optional string description_diff = 2
|
|
95
|
+
* @generated from protobuf field: optional string description_diff = 2
|
|
97
96
|
*/
|
|
98
97
|
descriptionDiff?: string;
|
|
99
98
|
/**
|
|
100
|
-
* @generated from protobuf field: optional string content_diff = 3
|
|
99
|
+
* @generated from protobuf field: optional string content_diff = 3
|
|
101
100
|
*/
|
|
102
101
|
contentDiff?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf field: optional resources.wiki.PageFilesChange files_change = 4
|
|
104
|
+
*/
|
|
105
|
+
filesChange?: PageFilesChange;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf message resources.wiki.PageFilesChange
|
|
109
|
+
*/
|
|
110
|
+
export interface PageFilesChange {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from protobuf field: int64 added = 1
|
|
113
|
+
*/
|
|
114
|
+
added: number;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf field: int64 deleted = 2
|
|
117
|
+
*/
|
|
118
|
+
deleted: number;
|
|
103
119
|
}
|
|
104
120
|
/**
|
|
105
121
|
* @generated from protobuf message resources.wiki.PageAccessUpdated
|
|
106
122
|
*/
|
|
107
123
|
export interface PageAccessUpdated {
|
|
108
124
|
/**
|
|
109
|
-
* @generated from protobuf field: resources.wiki.PageAccessJobsDiff jobs = 1
|
|
125
|
+
* @generated from protobuf field: resources.wiki.PageAccessJobsDiff jobs = 1
|
|
110
126
|
*/
|
|
111
127
|
jobs?: PageAccessJobsDiff;
|
|
112
128
|
/**
|
|
113
|
-
* @generated from protobuf field: resources.wiki.PageAccessUsersDiff users = 2
|
|
129
|
+
* @generated from protobuf field: resources.wiki.PageAccessUsersDiff users = 2
|
|
114
130
|
*/
|
|
115
131
|
users?: PageAccessUsersDiff;
|
|
116
132
|
}
|
|
@@ -119,15 +135,15 @@ export interface PageAccessUpdated {
|
|
|
119
135
|
*/
|
|
120
136
|
export interface PageAccessJobsDiff {
|
|
121
137
|
/**
|
|
122
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_create = 1
|
|
138
|
+
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_create = 1
|
|
123
139
|
*/
|
|
124
140
|
toCreate: PageJobAccess[];
|
|
125
141
|
/**
|
|
126
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_update = 2
|
|
142
|
+
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_update = 2
|
|
127
143
|
*/
|
|
128
144
|
toUpdate: PageJobAccess[];
|
|
129
145
|
/**
|
|
130
|
-
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_delete = 3
|
|
146
|
+
* @generated from protobuf field: repeated resources.wiki.PageJobAccess to_delete = 3
|
|
131
147
|
*/
|
|
132
148
|
toDelete: PageJobAccess[];
|
|
133
149
|
}
|
|
@@ -136,15 +152,15 @@ export interface PageAccessJobsDiff {
|
|
|
136
152
|
*/
|
|
137
153
|
export interface PageAccessUsersDiff {
|
|
138
154
|
/**
|
|
139
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_create = 1
|
|
155
|
+
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_create = 1
|
|
140
156
|
*/
|
|
141
157
|
toCreate: PageUserAccess[];
|
|
142
158
|
/**
|
|
143
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_update = 2
|
|
159
|
+
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_update = 2
|
|
144
160
|
*/
|
|
145
161
|
toUpdate: PageUserAccess[];
|
|
146
162
|
/**
|
|
147
|
-
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_delete = 3
|
|
163
|
+
* @generated from protobuf field: repeated resources.wiki.PageUserAccess to_delete = 3
|
|
148
164
|
*/
|
|
149
165
|
toDelete: PageUserAccess[];
|
|
150
166
|
}
|
|
@@ -177,21 +193,25 @@ export enum PageActivityType {
|
|
|
177
193
|
/**
|
|
178
194
|
* @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_DELETED = 5;
|
|
179
195
|
*/
|
|
180
|
-
DELETED = 5
|
|
196
|
+
DELETED = 5,
|
|
197
|
+
/**
|
|
198
|
+
* @generated from protobuf enum value: PAGE_ACTIVITY_TYPE_DRAFT_TOGGLED = 6;
|
|
199
|
+
*/
|
|
200
|
+
DRAFT_TOGGLED = 6
|
|
181
201
|
}
|
|
182
202
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
183
203
|
class PageActivity$Type extends MessageType<PageActivity> {
|
|
184
204
|
constructor() {
|
|
185
205
|
super("resources.wiki.PageActivity", [
|
|
186
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
206
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
187
207
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
188
|
-
{ no: 3, name: "page_id", kind: "scalar", T:
|
|
208
|
+
{ no: 3, name: "page_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
189
209
|
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.wiki.PageActivityType", PageActivityType, "PAGE_ACTIVITY_TYPE_"] },
|
|
190
|
-
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.
|
|
191
|
-
{ no: 6, name: "creator", kind: "message", T: () => UserShort },
|
|
192
|
-
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
193
|
-
{ no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
194
|
-
{ no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
210
|
+
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
211
|
+
{ no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
212
|
+
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
213
|
+
{ no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
214
|
+
{ no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
|
|
195
215
|
{ no: 10, name: "data", kind: "message", T: () => PageActivityData }
|
|
196
216
|
]);
|
|
197
217
|
}
|
|
@@ -210,14 +230,14 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
210
230
|
while (reader.pos < end) {
|
|
211
231
|
let [fieldNo, wireType] = reader.tag();
|
|
212
232
|
switch (fieldNo) {
|
|
213
|
-
case /*
|
|
214
|
-
message.id = reader.
|
|
233
|
+
case /* int64 id */ 1:
|
|
234
|
+
message.id = reader.int64().toNumber();
|
|
215
235
|
break;
|
|
216
236
|
case /* resources.timestamp.Timestamp created_at */ 2:
|
|
217
237
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
218
238
|
break;
|
|
219
|
-
case /*
|
|
220
|
-
message.pageId = reader.
|
|
239
|
+
case /* int64 page_id */ 3:
|
|
240
|
+
message.pageId = reader.int64().toNumber();
|
|
221
241
|
break;
|
|
222
242
|
case /* resources.wiki.PageActivityType activity_type */ 4:
|
|
223
243
|
message.activityType = reader.int32();
|
|
@@ -252,15 +272,15 @@ class PageActivity$Type extends MessageType<PageActivity> {
|
|
|
252
272
|
return message;
|
|
253
273
|
}
|
|
254
274
|
internalBinaryWrite(message: PageActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
255
|
-
/*
|
|
275
|
+
/* int64 id = 1; */
|
|
256
276
|
if (message.id !== 0)
|
|
257
|
-
writer.tag(1, WireType.Varint).
|
|
277
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
258
278
|
/* resources.timestamp.Timestamp created_at = 2; */
|
|
259
279
|
if (message.createdAt)
|
|
260
280
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
261
|
-
/*
|
|
281
|
+
/* int64 page_id = 3; */
|
|
262
282
|
if (message.pageId !== 0)
|
|
263
|
-
writer.tag(3, WireType.Varint).
|
|
283
|
+
writer.tag(3, WireType.Varint).int64(message.pageId);
|
|
264
284
|
/* resources.wiki.PageActivityType activity_type = 4; */
|
|
265
285
|
if (message.activityType !== 0)
|
|
266
286
|
writer.tag(4, WireType.Varint).int32(message.activityType);
|
|
@@ -298,7 +318,7 @@ class PageActivityData$Type extends MessageType<PageActivityData> {
|
|
|
298
318
|
super("resources.wiki.PageActivityData", [
|
|
299
319
|
{ no: 1, name: "updated", kind: "message", oneof: "data", T: () => PageUpdated },
|
|
300
320
|
{ no: 2, name: "access_updated", kind: "message", oneof: "data", T: () => PageAccessUpdated }
|
|
301
|
-
]);
|
|
321
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
302
322
|
}
|
|
303
323
|
create(value?: PartialMessage<PageActivityData>): PageActivityData {
|
|
304
324
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
@@ -358,7 +378,8 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
358
378
|
super("resources.wiki.PageUpdated", [
|
|
359
379
|
{ no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
360
380
|
{ no: 2, name: "description_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
361
|
-
{ no: 3, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
381
|
+
{ no: 3, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
382
|
+
{ no: 4, name: "files_change", kind: "message", T: () => PageFilesChange }
|
|
362
383
|
]);
|
|
363
384
|
}
|
|
364
385
|
create(value?: PartialMessage<PageUpdated>): PageUpdated {
|
|
@@ -381,6 +402,9 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
381
402
|
case /* optional string content_diff */ 3:
|
|
382
403
|
message.contentDiff = reader.string();
|
|
383
404
|
break;
|
|
405
|
+
case /* optional resources.wiki.PageFilesChange files_change */ 4:
|
|
406
|
+
message.filesChange = PageFilesChange.internalBinaryRead(reader, reader.uint32(), options, message.filesChange);
|
|
407
|
+
break;
|
|
384
408
|
default:
|
|
385
409
|
let u = options.readUnknownField;
|
|
386
410
|
if (u === "throw")
|
|
@@ -402,6 +426,9 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
402
426
|
/* optional string content_diff = 3; */
|
|
403
427
|
if (message.contentDiff !== undefined)
|
|
404
428
|
writer.tag(3, WireType.LengthDelimited).string(message.contentDiff);
|
|
429
|
+
/* optional resources.wiki.PageFilesChange files_change = 4; */
|
|
430
|
+
if (message.filesChange)
|
|
431
|
+
PageFilesChange.internalBinaryWrite(message.filesChange, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
405
432
|
let u = options.writeUnknownFields;
|
|
406
433
|
if (u !== false)
|
|
407
434
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -413,6 +440,61 @@ class PageUpdated$Type extends MessageType<PageUpdated> {
|
|
|
413
440
|
*/
|
|
414
441
|
export const PageUpdated = new PageUpdated$Type();
|
|
415
442
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
443
|
+
class PageFilesChange$Type extends MessageType<PageFilesChange> {
|
|
444
|
+
constructor() {
|
|
445
|
+
super("resources.wiki.PageFilesChange", [
|
|
446
|
+
{ no: 1, name: "added", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
447
|
+
{ no: 2, name: "deleted", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
448
|
+
]);
|
|
449
|
+
}
|
|
450
|
+
create(value?: PartialMessage<PageFilesChange>): PageFilesChange {
|
|
451
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
452
|
+
message.added = 0;
|
|
453
|
+
message.deleted = 0;
|
|
454
|
+
if (value !== undefined)
|
|
455
|
+
reflectionMergePartial<PageFilesChange>(this, message, value);
|
|
456
|
+
return message;
|
|
457
|
+
}
|
|
458
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageFilesChange): PageFilesChange {
|
|
459
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
460
|
+
while (reader.pos < end) {
|
|
461
|
+
let [fieldNo, wireType] = reader.tag();
|
|
462
|
+
switch (fieldNo) {
|
|
463
|
+
case /* int64 added */ 1:
|
|
464
|
+
message.added = reader.int64().toNumber();
|
|
465
|
+
break;
|
|
466
|
+
case /* int64 deleted */ 2:
|
|
467
|
+
message.deleted = reader.int64().toNumber();
|
|
468
|
+
break;
|
|
469
|
+
default:
|
|
470
|
+
let u = options.readUnknownField;
|
|
471
|
+
if (u === "throw")
|
|
472
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
473
|
+
let d = reader.skip(wireType);
|
|
474
|
+
if (u !== false)
|
|
475
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return message;
|
|
479
|
+
}
|
|
480
|
+
internalBinaryWrite(message: PageFilesChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
481
|
+
/* int64 added = 1; */
|
|
482
|
+
if (message.added !== 0)
|
|
483
|
+
writer.tag(1, WireType.Varint).int64(message.added);
|
|
484
|
+
/* int64 deleted = 2; */
|
|
485
|
+
if (message.deleted !== 0)
|
|
486
|
+
writer.tag(2, WireType.Varint).int64(message.deleted);
|
|
487
|
+
let u = options.writeUnknownFields;
|
|
488
|
+
if (u !== false)
|
|
489
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
490
|
+
return writer;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @generated MessageType for protobuf message resources.wiki.PageFilesChange
|
|
495
|
+
*/
|
|
496
|
+
export const PageFilesChange = new PageFilesChange$Type();
|
|
497
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
416
498
|
class PageAccessUpdated$Type extends MessageType<PageAccessUpdated> {
|
|
417
499
|
constructor() {
|
|
418
500
|
super("resources.wiki.PageAccessUpdated", [
|
|
@@ -469,9 +551,9 @@ export const PageAccessUpdated = new PageAccessUpdated$Type();
|
|
|
469
551
|
class PageAccessJobsDiff$Type extends MessageType<PageAccessJobsDiff> {
|
|
470
552
|
constructor() {
|
|
471
553
|
super("resources.wiki.PageAccessJobsDiff", [
|
|
472
|
-
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.
|
|
473
|
-
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.
|
|
474
|
-
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "validate.
|
|
554
|
+
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
555
|
+
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
556
|
+
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageJobAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
475
557
|
]);
|
|
476
558
|
}
|
|
477
559
|
create(value?: PartialMessage<PageAccessJobsDiff>): PageAccessJobsDiff {
|
|
@@ -532,9 +614,9 @@ export const PageAccessJobsDiff = new PageAccessJobsDiff$Type();
|
|
|
532
614
|
class PageAccessUsersDiff$Type extends MessageType<PageAccessUsersDiff> {
|
|
533
615
|
constructor() {
|
|
534
616
|
super("resources.wiki.PageAccessUsersDiff", [
|
|
535
|
-
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.
|
|
536
|
-
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.
|
|
537
|
-
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "validate.
|
|
617
|
+
{ no: 1, name: "to_create", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
618
|
+
{ no: 2, name: "to_update", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
|
|
619
|
+
{ no: 3, name: "to_delete", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PageUserAccess, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } }
|
|
538
620
|
]);
|
|
539
621
|
}
|
|
540
622
|
create(value?: PartialMessage<PageAccessUsersDiff>): PageAccessUsersDiff {
|