@fivenet-app/gen 2026.5.1 → 2026.7.2
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/clients.ts +6 -0
- package/codegen/perms/perms.ts +14 -2
- package/codegen/sanitizer/sanitizer.ts +6 -0
- package/google/protobuf/descriptor.ts +11 -3
- package/google/protobuf/timestamp.ts +7 -6
- package/package.json +1 -1
- package/perms.ts +352 -8
- package/resources/access/access.ts +481 -0
- package/resources/calendar/access/access.ts +0 -330
- package/resources/calendar/calendar.ts +307 -25
- package/resources/calendar/entries/entries.ts +204 -11
- package/resources/centrum/units/access/access.ts +0 -373
- package/resources/centrum/units/units.ts +20 -8
- package/resources/citizens/labels/access.ts +0 -191
- package/resources/citizens/labels/labels.ts +20 -8
- package/resources/clientconfig/clientconfig.ts +11 -0
- package/resources/common/content/diff_activity.ts +1 -1
- package/resources/cron/cron.ts +1 -1
- package/resources/documents/access/access.ts +0 -329
- package/resources/documents/activity/activity.ts +49 -45
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests/requests.ts +1 -1
- package/resources/documents/stamps/stamp.ts +40 -210
- package/resources/documents/templates/templates.ts +158 -318
- package/resources/jobs/colleagues/activity/activity.ts +1 -1
- package/resources/jobs/conduct/conduct.ts +2 -2
- package/resources/jobs/labels/labels.ts +9 -9
- package/resources/laws/laws.ts +24 -0
- package/resources/livemap/markers/marker_marker.ts +311 -4
- package/resources/mailer/access/access.ts +0 -457
- package/resources/mailer/emails/email.ts +4 -4
- package/resources/notifications/events/events.ts +37 -2
- package/resources/qualifications/access/access.ts +0 -248
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/settings/config.ts +64 -5
- package/resources/settings/data.ts +1 -1
- package/resources/stats/stats.ts +32 -20
- package/resources/sync/data/data.ts +26 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/userinfo/userinfo.ts +202 -51
- package/resources/users/activity/activity.ts +1 -1
- package/resources/vehicles/activity/activity.ts +146 -10
- package/resources/wiki/access/access.ts +0 -330
- package/resources/wiki/activity/activity.ts +45 -45
- package/resources/wiki/page.ts +9 -9
- package/services/auth/auth.client.ts +15 -2
- package/services/auth/auth.ts +135 -0
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +12 -1
- package/services/centrum/dispatches.ts +27 -7
- package/services/centrum/units.client.ts +15 -2
- package/services/centrum/units.ts +231 -123
- package/services/citizens/citizens.ts +1 -1
- package/services/citizens/labels.client.ts +7 -20
- package/services/citizens/labels.ts +35 -183
- package/services/documents/approval.ts +15 -4
- package/services/documents/collab.ts +1 -1
- package/services/documents/documents.ts +38 -38
- package/services/documents/stats.ts +14 -2
- package/services/filestore/filestore.ts +4 -4
- package/services/jobs/colleagues.ts +3 -3
- package/services/jobs/conduct.ts +15 -4
- package/services/jobs/groups.client.ts +22 -0
- package/services/jobs/groups.ts +9 -0
- package/services/jobs/timeclock.ts +2 -2
- package/services/mailer/thread.ts +2 -2
- package/services/qualifications/qualifications.ts +52 -34
- package/services/settings/accounts.ts +5 -5
- package/services/settings/config.ts +2 -2
- package/services/settings/cron.ts +2 -2
- package/services/settings/laws.client.ts +28 -2
- package/services/settings/laws.ts +229 -1
- package/services/settings/system.ts +6 -6
- package/services/sync/sync.client.ts +129 -20
- package/services/sync/sync.ts +262 -19
- package/services/vehicles/vehicles.client.ts +13 -0
- package/services/vehicles/vehicles.ts +181 -13
- package/services/wiki/wiki.client.ts +15 -2
- package/services/wiki/wiki.ts +122 -0
- package/svcs.ts +21 -2
|
@@ -54,7 +54,7 @@ export interface VehicleActivity {
|
|
|
54
54
|
*/
|
|
55
55
|
reason?: string;
|
|
56
56
|
/**
|
|
57
|
-
* @generated from protobuf field: resources.vehicles.activity.VehicleActivityData data = 10
|
|
57
|
+
* @generated from protobuf field: optional resources.vehicles.activity.VehicleActivityData data = 10
|
|
58
58
|
*/
|
|
59
59
|
data?: VehicleActivityData;
|
|
60
60
|
}
|
|
@@ -62,6 +62,47 @@ export interface VehicleActivity {
|
|
|
62
62
|
* @generated from protobuf message resources.vehicles.activity.VehicleActivityData
|
|
63
63
|
*/
|
|
64
64
|
export interface VehicleActivityData {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf oneof: data
|
|
67
|
+
*/
|
|
68
|
+
data: {
|
|
69
|
+
oneofKind: "wantedChange";
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf field: resources.vehicles.activity.WantedChange wanted_change = 1
|
|
72
|
+
*/
|
|
73
|
+
wantedChange: WantedChange;
|
|
74
|
+
} | {
|
|
75
|
+
oneofKind: undefined;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf message resources.vehicles.activity.WantedChange
|
|
80
|
+
*/
|
|
81
|
+
export interface WantedChange {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: bool wanted = 1
|
|
84
|
+
*/
|
|
85
|
+
wanted: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: optional bool previous_wanted = 2
|
|
88
|
+
*/
|
|
89
|
+
previousWanted?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: optional string wanted_reason = 3
|
|
92
|
+
*/
|
|
93
|
+
wantedReason?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp wanted_at = 4
|
|
96
|
+
*/
|
|
97
|
+
wantedAt?: Timestamp;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp wanted_till = 5
|
|
100
|
+
*/
|
|
101
|
+
wantedTill?: Timestamp;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf field: bool auto = 6
|
|
104
|
+
*/
|
|
105
|
+
auto: boolean;
|
|
65
106
|
}
|
|
66
107
|
/**
|
|
67
108
|
* @generated from protobuf enum resources.vehicles.activity.VehicleActivityType
|
|
@@ -83,15 +124,15 @@ class VehicleActivity$Type extends MessageType<VehicleActivity> {
|
|
|
83
124
|
constructor() {
|
|
84
125
|
super("resources.vehicles.activity.VehicleActivity", [
|
|
85
126
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "tagger.tags": "alias:\"vehicle_activity.id\"" } },
|
|
86
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp, options: { "tagger.tags": "alias:\"
|
|
87
|
-
{ no: 3, name: "plate", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } } } },
|
|
127
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp, options: { "tagger.tags": "alias:\"vehicle_activity.created_at\"" } },
|
|
128
|
+
{ no: 3, name: "plate", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } }, "tagger.tags": "alias:\"vehicle_activity.plate\"" } },
|
|
88
129
|
{ no: 4, name: "activity_type", kind: "enum", T: () => ["resources.vehicles.activity.VehicleActivityType", VehicleActivityType, "VEHICLE_ACTIVITY_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } }, "tagger.tags": "alias:\"vehicle_activity.type\"" } },
|
|
89
|
-
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
|
|
130
|
+
{ no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } }, "tagger.tags": "alias:\"vehicle_activity.creator_id\"" } },
|
|
90
131
|
{ no: 6, name: "creator", kind: "message", T: () => UserShort, options: { "tagger.tags": "alias:\"creator\"" } },
|
|
91
|
-
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
132
|
+
{ no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } }, "tagger.tags": "alias:\"vehicle_activity.creator_job\"" } },
|
|
92
133
|
{ no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "50" } } } },
|
|
93
|
-
{ no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true }, "tagger.tags": "alias:\"
|
|
94
|
-
{ no: 10, name: "data", kind: "message", T: () => VehicleActivityData }
|
|
134
|
+
{ no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true }, "tagger.tags": "alias:\"vehicle_activity.reason\"" } },
|
|
135
|
+
{ no: 10, name: "data", kind: "message", T: () => VehicleActivityData, options: { "tagger.tags": "alias:\"vehicle_activity.data\"" } }
|
|
95
136
|
]);
|
|
96
137
|
}
|
|
97
138
|
create(value?: PartialMessage<VehicleActivity>): VehicleActivity {
|
|
@@ -136,7 +177,7 @@ class VehicleActivity$Type extends MessageType<VehicleActivity> {
|
|
|
136
177
|
case /* optional string reason */ 9:
|
|
137
178
|
message.reason = reader.string();
|
|
138
179
|
break;
|
|
139
|
-
case /* resources.vehicles.activity.VehicleActivityData data */ 10:
|
|
180
|
+
case /* optional resources.vehicles.activity.VehicleActivityData data */ 10:
|
|
140
181
|
message.data = VehicleActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
141
182
|
break;
|
|
142
183
|
default:
|
|
@@ -178,7 +219,7 @@ class VehicleActivity$Type extends MessageType<VehicleActivity> {
|
|
|
178
219
|
/* optional string reason = 9; */
|
|
179
220
|
if (message.reason !== undefined)
|
|
180
221
|
writer.tag(9, WireType.LengthDelimited).string(message.reason);
|
|
181
|
-
/* resources.vehicles.activity.VehicleActivityData data = 10; */
|
|
222
|
+
/* optional resources.vehicles.activity.VehicleActivityData data = 10; */
|
|
182
223
|
if (message.data)
|
|
183
224
|
VehicleActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
184
225
|
let u = options.writeUnknownFields;
|
|
@@ -194,10 +235,13 @@ export const VehicleActivity = new VehicleActivity$Type();
|
|
|
194
235
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
195
236
|
class VehicleActivityData$Type extends MessageType<VehicleActivityData> {
|
|
196
237
|
constructor() {
|
|
197
|
-
super("resources.vehicles.activity.VehicleActivityData", [
|
|
238
|
+
super("resources.vehicles.activity.VehicleActivityData", [
|
|
239
|
+
{ no: 1, name: "wanted_change", kind: "message", oneof: "data", T: () => WantedChange }
|
|
240
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
198
241
|
}
|
|
199
242
|
create(value?: PartialMessage<VehicleActivityData>): VehicleActivityData {
|
|
200
243
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
244
|
+
message.data = { oneofKind: undefined };
|
|
201
245
|
if (value !== undefined)
|
|
202
246
|
reflectionMergePartial<VehicleActivityData>(this, message, value);
|
|
203
247
|
return message;
|
|
@@ -207,6 +251,12 @@ class VehicleActivityData$Type extends MessageType<VehicleActivityData> {
|
|
|
207
251
|
while (reader.pos < end) {
|
|
208
252
|
let [fieldNo, wireType] = reader.tag();
|
|
209
253
|
switch (fieldNo) {
|
|
254
|
+
case /* resources.vehicles.activity.WantedChange wanted_change */ 1:
|
|
255
|
+
message.data = {
|
|
256
|
+
oneofKind: "wantedChange",
|
|
257
|
+
wantedChange: WantedChange.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).wantedChange)
|
|
258
|
+
};
|
|
259
|
+
break;
|
|
210
260
|
default:
|
|
211
261
|
let u = options.readUnknownField;
|
|
212
262
|
if (u === "throw")
|
|
@@ -219,6 +269,9 @@ class VehicleActivityData$Type extends MessageType<VehicleActivityData> {
|
|
|
219
269
|
return message;
|
|
220
270
|
}
|
|
221
271
|
internalBinaryWrite(message: VehicleActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
272
|
+
/* resources.vehicles.activity.WantedChange wanted_change = 1; */
|
|
273
|
+
if (message.data.oneofKind === "wantedChange")
|
|
274
|
+
WantedChange.internalBinaryWrite(message.data.wantedChange, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
222
275
|
let u = options.writeUnknownFields;
|
|
223
276
|
if (u !== false)
|
|
224
277
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -229,3 +282,86 @@ class VehicleActivityData$Type extends MessageType<VehicleActivityData> {
|
|
|
229
282
|
* @generated MessageType for protobuf message resources.vehicles.activity.VehicleActivityData
|
|
230
283
|
*/
|
|
231
284
|
export const VehicleActivityData = new VehicleActivityData$Type();
|
|
285
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
286
|
+
class WantedChange$Type extends MessageType<WantedChange> {
|
|
287
|
+
constructor() {
|
|
288
|
+
super("resources.vehicles.activity.WantedChange", [
|
|
289
|
+
{ no: 1, name: "wanted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
290
|
+
{ no: 2, name: "previous_wanted", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
291
|
+
{ no: 3, name: "wanted_reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } },
|
|
292
|
+
{ no: 4, name: "wanted_at", kind: "message", T: () => Timestamp },
|
|
293
|
+
{ no: 5, name: "wanted_till", kind: "message", T: () => Timestamp },
|
|
294
|
+
{ no: 6, name: "auto", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
295
|
+
]);
|
|
296
|
+
}
|
|
297
|
+
create(value?: PartialMessage<WantedChange>): WantedChange {
|
|
298
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
299
|
+
message.wanted = false;
|
|
300
|
+
message.auto = false;
|
|
301
|
+
if (value !== undefined)
|
|
302
|
+
reflectionMergePartial<WantedChange>(this, message, value);
|
|
303
|
+
return message;
|
|
304
|
+
}
|
|
305
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WantedChange): WantedChange {
|
|
306
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
307
|
+
while (reader.pos < end) {
|
|
308
|
+
let [fieldNo, wireType] = reader.tag();
|
|
309
|
+
switch (fieldNo) {
|
|
310
|
+
case /* bool wanted */ 1:
|
|
311
|
+
message.wanted = reader.bool();
|
|
312
|
+
break;
|
|
313
|
+
case /* optional bool previous_wanted */ 2:
|
|
314
|
+
message.previousWanted = reader.bool();
|
|
315
|
+
break;
|
|
316
|
+
case /* optional string wanted_reason */ 3:
|
|
317
|
+
message.wantedReason = reader.string();
|
|
318
|
+
break;
|
|
319
|
+
case /* optional resources.timestamp.Timestamp wanted_at */ 4:
|
|
320
|
+
message.wantedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.wantedAt);
|
|
321
|
+
break;
|
|
322
|
+
case /* optional resources.timestamp.Timestamp wanted_till */ 5:
|
|
323
|
+
message.wantedTill = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.wantedTill);
|
|
324
|
+
break;
|
|
325
|
+
case /* bool auto */ 6:
|
|
326
|
+
message.auto = reader.bool();
|
|
327
|
+
break;
|
|
328
|
+
default:
|
|
329
|
+
let u = options.readUnknownField;
|
|
330
|
+
if (u === "throw")
|
|
331
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
332
|
+
let d = reader.skip(wireType);
|
|
333
|
+
if (u !== false)
|
|
334
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return message;
|
|
338
|
+
}
|
|
339
|
+
internalBinaryWrite(message: WantedChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
340
|
+
/* bool wanted = 1; */
|
|
341
|
+
if (message.wanted !== false)
|
|
342
|
+
writer.tag(1, WireType.Varint).bool(message.wanted);
|
|
343
|
+
/* optional bool previous_wanted = 2; */
|
|
344
|
+
if (message.previousWanted !== undefined)
|
|
345
|
+
writer.tag(2, WireType.Varint).bool(message.previousWanted);
|
|
346
|
+
/* optional string wanted_reason = 3; */
|
|
347
|
+
if (message.wantedReason !== undefined)
|
|
348
|
+
writer.tag(3, WireType.LengthDelimited).string(message.wantedReason);
|
|
349
|
+
/* optional resources.timestamp.Timestamp wanted_at = 4; */
|
|
350
|
+
if (message.wantedAt)
|
|
351
|
+
Timestamp.internalBinaryWrite(message.wantedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
352
|
+
/* optional resources.timestamp.Timestamp wanted_till = 5; */
|
|
353
|
+
if (message.wantedTill)
|
|
354
|
+
Timestamp.internalBinaryWrite(message.wantedTill, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
355
|
+
/* bool auto = 6; */
|
|
356
|
+
if (message.auto !== false)
|
|
357
|
+
writer.tag(6, WireType.Varint).bool(message.auto);
|
|
358
|
+
let u = options.writeUnknownFields;
|
|
359
|
+
if (u !== false)
|
|
360
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
361
|
+
return writer;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @generated MessageType for protobuf message resources.vehicles.activity.WantedChange
|
|
366
|
+
*/
|
|
367
|
+
export const WantedChange = new WantedChange$Type();
|
|
@@ -2,96 +2,6 @@
|
|
|
2
2
|
// @generated from protobuf file "resources/wiki/access/access.proto" (package "resources.wiki.access", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
import { UserShort } from "../../users/short/user";
|
|
15
|
-
import { Timestamp } from "../../timestamp/timestamp";
|
|
16
|
-
/**
|
|
17
|
-
* @generated from protobuf message resources.wiki.access.PageAccess
|
|
18
|
-
*/
|
|
19
|
-
export interface PageAccess {
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf field: repeated resources.wiki.access.PageJobAccess jobs = 1
|
|
22
|
-
*/
|
|
23
|
-
jobs: PageJobAccess[];
|
|
24
|
-
/**
|
|
25
|
-
* @generated from protobuf field: repeated resources.wiki.access.PageUserAccess users = 2
|
|
26
|
-
*/
|
|
27
|
-
users: PageUserAccess[];
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf message resources.wiki.access.PageJobAccess
|
|
31
|
-
*/
|
|
32
|
-
export interface PageJobAccess {
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: int64 id = 1
|
|
35
|
-
*/
|
|
36
|
-
id: number;
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
39
|
-
*/
|
|
40
|
-
createdAt?: Timestamp;
|
|
41
|
-
/**
|
|
42
|
-
* @generated from protobuf field: int64 target_id = 3
|
|
43
|
-
*/
|
|
44
|
-
targetId: number;
|
|
45
|
-
/**
|
|
46
|
-
* @generated from protobuf field: string job = 4
|
|
47
|
-
*/
|
|
48
|
-
job: string;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf field: optional string job_label = 5
|
|
51
|
-
*/
|
|
52
|
-
jobLabel?: string;
|
|
53
|
-
/**
|
|
54
|
-
* @generated from protobuf field: int32 minimum_grade = 6
|
|
55
|
-
*/
|
|
56
|
-
minimumGrade: number;
|
|
57
|
-
/**
|
|
58
|
-
* @generated from protobuf field: optional string job_grade_label = 7
|
|
59
|
-
*/
|
|
60
|
-
jobGradeLabel?: string;
|
|
61
|
-
/**
|
|
62
|
-
* @generated from protobuf field: resources.wiki.access.AccessLevel access = 8
|
|
63
|
-
*/
|
|
64
|
-
access: AccessLevel;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf message resources.wiki.access.PageUserAccess
|
|
68
|
-
*/
|
|
69
|
-
export interface PageUserAccess {
|
|
70
|
-
/**
|
|
71
|
-
* @generated from protobuf field: int64 id = 1
|
|
72
|
-
*/
|
|
73
|
-
id: number;
|
|
74
|
-
/**
|
|
75
|
-
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2
|
|
76
|
-
*/
|
|
77
|
-
createdAt?: Timestamp;
|
|
78
|
-
/**
|
|
79
|
-
* @generated from protobuf field: int64 target_id = 3
|
|
80
|
-
*/
|
|
81
|
-
targetId: number;
|
|
82
|
-
/**
|
|
83
|
-
* @generated from protobuf field: int32 user_id = 4
|
|
84
|
-
*/
|
|
85
|
-
userId: number;
|
|
86
|
-
/**
|
|
87
|
-
* @generated from protobuf field: optional resources.users.short.UserShort user = 5
|
|
88
|
-
*/
|
|
89
|
-
user?: UserShort;
|
|
90
|
-
/**
|
|
91
|
-
* @generated from protobuf field: resources.wiki.access.AccessLevel access = 6
|
|
92
|
-
*/
|
|
93
|
-
access: AccessLevel;
|
|
94
|
-
}
|
|
95
5
|
/**
|
|
96
6
|
* @generated from protobuf enum resources.wiki.access.AccessLevel
|
|
97
7
|
*/
|
|
@@ -117,243 +27,3 @@ export enum AccessLevel {
|
|
|
117
27
|
*/
|
|
118
28
|
EDIT = 4
|
|
119
29
|
}
|
|
120
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
121
|
-
class PageAccess$Type extends MessageType<PageAccess> {
|
|
122
|
-
constructor() {
|
|
123
|
-
super("resources.wiki.access.PageAccess", [
|
|
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\"" } }
|
|
126
|
-
]);
|
|
127
|
-
}
|
|
128
|
-
create(value?: PartialMessage<PageAccess>): PageAccess {
|
|
129
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
130
|
-
message.jobs = [];
|
|
131
|
-
message.users = [];
|
|
132
|
-
if (value !== undefined)
|
|
133
|
-
reflectionMergePartial<PageAccess>(this, message, value);
|
|
134
|
-
return message;
|
|
135
|
-
}
|
|
136
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageAccess): PageAccess {
|
|
137
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
138
|
-
while (reader.pos < end) {
|
|
139
|
-
let [fieldNo, wireType] = reader.tag();
|
|
140
|
-
switch (fieldNo) {
|
|
141
|
-
case /* repeated resources.wiki.access.PageJobAccess jobs */ 1:
|
|
142
|
-
message.jobs.push(PageJobAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
143
|
-
break;
|
|
144
|
-
case /* repeated resources.wiki.access.PageUserAccess users */ 2:
|
|
145
|
-
message.users.push(PageUserAccess.internalBinaryRead(reader, reader.uint32(), options));
|
|
146
|
-
break;
|
|
147
|
-
default:
|
|
148
|
-
let u = options.readUnknownField;
|
|
149
|
-
if (u === "throw")
|
|
150
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
151
|
-
let d = reader.skip(wireType);
|
|
152
|
-
if (u !== false)
|
|
153
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return message;
|
|
157
|
-
}
|
|
158
|
-
internalBinaryWrite(message: PageAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
159
|
-
/* repeated resources.wiki.access.PageJobAccess jobs = 1; */
|
|
160
|
-
for (let i = 0; i < message.jobs.length; i++)
|
|
161
|
-
PageJobAccess.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
162
|
-
/* repeated resources.wiki.access.PageUserAccess users = 2; */
|
|
163
|
-
for (let i = 0; i < message.users.length; i++)
|
|
164
|
-
PageUserAccess.internalBinaryWrite(message.users[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
165
|
-
let u = options.writeUnknownFields;
|
|
166
|
-
if (u !== false)
|
|
167
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
168
|
-
return writer;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* @generated MessageType for protobuf message resources.wiki.access.PageAccess
|
|
173
|
-
*/
|
|
174
|
-
export const PageAccess = new PageAccess$Type();
|
|
175
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
176
|
-
class PageJobAccess$Type extends MessageType<PageJobAccess> {
|
|
177
|
-
constructor() {
|
|
178
|
-
super("resources.wiki.access.PageJobAccess", [
|
|
179
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
180
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
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.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
187
|
-
]);
|
|
188
|
-
}
|
|
189
|
-
create(value?: PartialMessage<PageJobAccess>): PageJobAccess {
|
|
190
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
191
|
-
message.id = 0;
|
|
192
|
-
message.targetId = 0;
|
|
193
|
-
message.job = "";
|
|
194
|
-
message.minimumGrade = 0;
|
|
195
|
-
message.access = 0;
|
|
196
|
-
if (value !== undefined)
|
|
197
|
-
reflectionMergePartial<PageJobAccess>(this, message, value);
|
|
198
|
-
return message;
|
|
199
|
-
}
|
|
200
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageJobAccess): PageJobAccess {
|
|
201
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
202
|
-
while (reader.pos < end) {
|
|
203
|
-
let [fieldNo, wireType] = reader.tag();
|
|
204
|
-
switch (fieldNo) {
|
|
205
|
-
case /* int64 id */ 1:
|
|
206
|
-
message.id = reader.int64().toNumber();
|
|
207
|
-
break;
|
|
208
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
209
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
210
|
-
break;
|
|
211
|
-
case /* int64 target_id */ 3:
|
|
212
|
-
message.targetId = reader.int64().toNumber();
|
|
213
|
-
break;
|
|
214
|
-
case /* string job */ 4:
|
|
215
|
-
message.job = reader.string();
|
|
216
|
-
break;
|
|
217
|
-
case /* optional string job_label */ 5:
|
|
218
|
-
message.jobLabel = reader.string();
|
|
219
|
-
break;
|
|
220
|
-
case /* int32 minimum_grade */ 6:
|
|
221
|
-
message.minimumGrade = reader.int32();
|
|
222
|
-
break;
|
|
223
|
-
case /* optional string job_grade_label */ 7:
|
|
224
|
-
message.jobGradeLabel = reader.string();
|
|
225
|
-
break;
|
|
226
|
-
case /* resources.wiki.access.AccessLevel access */ 8:
|
|
227
|
-
message.access = reader.int32();
|
|
228
|
-
break;
|
|
229
|
-
default:
|
|
230
|
-
let u = options.readUnknownField;
|
|
231
|
-
if (u === "throw")
|
|
232
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
233
|
-
let d = reader.skip(wireType);
|
|
234
|
-
if (u !== false)
|
|
235
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
return message;
|
|
239
|
-
}
|
|
240
|
-
internalBinaryWrite(message: PageJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
241
|
-
/* int64 id = 1; */
|
|
242
|
-
if (message.id !== 0)
|
|
243
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
244
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
245
|
-
if (message.createdAt)
|
|
246
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
247
|
-
/* int64 target_id = 3; */
|
|
248
|
-
if (message.targetId !== 0)
|
|
249
|
-
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
250
|
-
/* string job = 4; */
|
|
251
|
-
if (message.job !== "")
|
|
252
|
-
writer.tag(4, WireType.LengthDelimited).string(message.job);
|
|
253
|
-
/* optional string job_label = 5; */
|
|
254
|
-
if (message.jobLabel !== undefined)
|
|
255
|
-
writer.tag(5, WireType.LengthDelimited).string(message.jobLabel);
|
|
256
|
-
/* int32 minimum_grade = 6; */
|
|
257
|
-
if (message.minimumGrade !== 0)
|
|
258
|
-
writer.tag(6, WireType.Varint).int32(message.minimumGrade);
|
|
259
|
-
/* optional string job_grade_label = 7; */
|
|
260
|
-
if (message.jobGradeLabel !== undefined)
|
|
261
|
-
writer.tag(7, WireType.LengthDelimited).string(message.jobGradeLabel);
|
|
262
|
-
/* resources.wiki.access.AccessLevel access = 8; */
|
|
263
|
-
if (message.access !== 0)
|
|
264
|
-
writer.tag(8, WireType.Varint).int32(message.access);
|
|
265
|
-
let u = options.writeUnknownFields;
|
|
266
|
-
if (u !== false)
|
|
267
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
268
|
-
return writer;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* @generated MessageType for protobuf message resources.wiki.access.PageJobAccess
|
|
273
|
-
*/
|
|
274
|
-
export const PageJobAccess = new PageJobAccess$Type();
|
|
275
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
276
|
-
class PageUserAccess$Type extends MessageType<PageUserAccess> {
|
|
277
|
-
constructor() {
|
|
278
|
-
super("resources.wiki.access.PageUserAccess", [
|
|
279
|
-
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
280
|
-
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
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 } } } },
|
|
283
|
-
{ no: 5, name: "user", kind: "message", T: () => UserShort },
|
|
284
|
-
{ no: 6, name: "access", kind: "enum", T: () => ["resources.wiki.access.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
285
|
-
]);
|
|
286
|
-
}
|
|
287
|
-
create(value?: PartialMessage<PageUserAccess>): PageUserAccess {
|
|
288
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
289
|
-
message.id = 0;
|
|
290
|
-
message.targetId = 0;
|
|
291
|
-
message.userId = 0;
|
|
292
|
-
message.access = 0;
|
|
293
|
-
if (value !== undefined)
|
|
294
|
-
reflectionMergePartial<PageUserAccess>(this, message, value);
|
|
295
|
-
return message;
|
|
296
|
-
}
|
|
297
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PageUserAccess): PageUserAccess {
|
|
298
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
299
|
-
while (reader.pos < end) {
|
|
300
|
-
let [fieldNo, wireType] = reader.tag();
|
|
301
|
-
switch (fieldNo) {
|
|
302
|
-
case /* int64 id */ 1:
|
|
303
|
-
message.id = reader.int64().toNumber();
|
|
304
|
-
break;
|
|
305
|
-
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
306
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
307
|
-
break;
|
|
308
|
-
case /* int64 target_id */ 3:
|
|
309
|
-
message.targetId = reader.int64().toNumber();
|
|
310
|
-
break;
|
|
311
|
-
case /* int32 user_id */ 4:
|
|
312
|
-
message.userId = reader.int32();
|
|
313
|
-
break;
|
|
314
|
-
case /* optional resources.users.short.UserShort user */ 5:
|
|
315
|
-
message.user = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
316
|
-
break;
|
|
317
|
-
case /* resources.wiki.access.AccessLevel access */ 6:
|
|
318
|
-
message.access = reader.int32();
|
|
319
|
-
break;
|
|
320
|
-
default:
|
|
321
|
-
let u = options.readUnknownField;
|
|
322
|
-
if (u === "throw")
|
|
323
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
324
|
-
let d = reader.skip(wireType);
|
|
325
|
-
if (u !== false)
|
|
326
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
return message;
|
|
330
|
-
}
|
|
331
|
-
internalBinaryWrite(message: PageUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
332
|
-
/* int64 id = 1; */
|
|
333
|
-
if (message.id !== 0)
|
|
334
|
-
writer.tag(1, WireType.Varint).int64(message.id);
|
|
335
|
-
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
336
|
-
if (message.createdAt)
|
|
337
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
338
|
-
/* int64 target_id = 3; */
|
|
339
|
-
if (message.targetId !== 0)
|
|
340
|
-
writer.tag(3, WireType.Varint).int64(message.targetId);
|
|
341
|
-
/* int32 user_id = 4; */
|
|
342
|
-
if (message.userId !== 0)
|
|
343
|
-
writer.tag(4, WireType.Varint).int32(message.userId);
|
|
344
|
-
/* optional resources.users.short.UserShort user = 5; */
|
|
345
|
-
if (message.user)
|
|
346
|
-
UserShort.internalBinaryWrite(message.user, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
347
|
-
/* resources.wiki.access.AccessLevel access = 6; */
|
|
348
|
-
if (message.access !== 0)
|
|
349
|
-
writer.tag(6, WireType.Varint).int32(message.access);
|
|
350
|
-
let u = options.writeUnknownFields;
|
|
351
|
-
if (u !== false)
|
|
352
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
353
|
-
return writer;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* @generated MessageType for protobuf message resources.wiki.access.PageUserAccess
|
|
358
|
-
*/
|
|
359
|
-
export const PageUserAccess = new PageUserAccess$Type();
|