@fivenet-app/gen 2026.5.0 → 2026.7.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/clients.ts +6 -0
- package/codegen/perms/perms.ts +74 -40
- 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 +387 -41
- package/resources/access/access.ts +481 -0
- package/resources/accounts/accounts.ts +41 -30
- package/resources/audit/audit.ts +5 -1
- 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/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 +2 -2
- package/resources/jobs/conduct/conduct.ts +2 -2
- package/resources/jobs/jobs.ts +22 -0
- package/resources/jobs/labels/labels.ts +9 -9
- package/resources/laws/laws.ts +96 -50
- 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 +18 -1
- package/resources/permissions/attributes/attributes.ts +51 -39
- package/resources/permissions/permissions/permissions.ts +46 -34
- package/resources/qualifications/access/access.ts +0 -248
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/settings/config.ts +53 -5
- package/resources/settings/data.ts +1 -1
- package/resources/stats/stats.ts +32 -20
- package/resources/sync/data/data.ts +22 -10
- package/resources/userinfo/userinfo.ts +202 -51
- package/resources/users/activity/activity.ts +70 -77
- 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.ts +1 -1
- package/services/calendar/calendar.ts +1 -1
- package/services/calendar/entries.ts +13 -2
- package/services/centrum/dispatches.ts +32 -12
- package/services/centrum/units.client.ts +15 -2
- package/services/centrum/units.ts +237 -129
- package/services/citizens/citizens.ts +1 -1
- package/services/citizens/labels.client.ts +13 -0
- package/services/citizens/labels.ts +135 -4
- package/services/completor/completor.client.ts +0 -13
- package/services/completor/completor.ts +2 -116
- package/services/documents/approval.ts +20 -9
- package/services/documents/categories.ts +1 -1
- package/services/documents/collab.ts +1 -1
- package/services/documents/comments.ts +4 -4
- package/services/documents/documents.ts +38 -38
- package/services/documents/stats.ts +14 -2
- package/services/documents/templates.ts +1 -1
- package/services/filestore/filestore.ts +4 -4
- package/services/jobs/colleagues.ts +4 -4
- package/services/jobs/conduct.ts +2 -2
- 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/settings.ts +1 -1
- package/services/mailer/thread.ts +3 -3
- package/services/qualifications/exam.ts +5 -5
- package/services/qualifications/qualifications.ts +52 -34
- package/services/settings/accounts.ts +19 -6
- package/services/settings/config.ts +2 -2
- package/services/settings/cron.ts +2 -2
- package/services/settings/laws.client.ts +44 -5
- package/services/settings/laws.ts +357 -4
- package/services/settings/system.ts +6 -6
- package/services/sync/sync.client.ts +42 -14
- package/services/sync/sync.ts +162 -13
- package/services/wiki/collab.ts +1 -1
- package/services/wiki/wiki.client.ts +15 -2
- package/services/wiki/wiki.ts +122 -0
- package/svcs.ts +19 -1
|
@@ -87,6 +87,22 @@ export interface Auth {
|
|
|
87
87
|
* @generated from protobuf field: bool last_char_lock = 2
|
|
88
88
|
*/
|
|
89
89
|
lastCharLock: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf field: repeated string job_admin_groups = 3
|
|
92
|
+
*/
|
|
93
|
+
jobAdminGroups: string[];
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf field: repeated string job_admin_users = 4
|
|
96
|
+
*/
|
|
97
|
+
jobAdminUsers: string[];
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: repeated string config_admin_groups = 5
|
|
100
|
+
*/
|
|
101
|
+
configAdminGroups: string[];
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf field: repeated string config_admin_users = 6
|
|
104
|
+
*/
|
|
105
|
+
configAdminUsers: string[];
|
|
90
106
|
}
|
|
91
107
|
/**
|
|
92
108
|
* @generated from protobuf message resources.settings.Perms
|
|
@@ -386,7 +402,7 @@ export enum DiscordBotPresenceType {
|
|
|
386
402
|
class AppConfig$Type extends MessageType<AppConfig> {
|
|
387
403
|
constructor() {
|
|
388
404
|
super("resources.settings.AppConfig", [
|
|
389
|
-
{ no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
405
|
+
{ no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "100" } } } },
|
|
390
406
|
{ no: 8, name: "default_locale", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
391
407
|
{ no: 2, name: "auth", kind: "message", T: () => Auth },
|
|
392
408
|
{ no: 3, name: "perms", kind: "message", T: () => Perms },
|
|
@@ -526,13 +542,21 @@ class Auth$Type extends MessageType<Auth> {
|
|
|
526
542
|
constructor() {
|
|
527
543
|
super("resources.settings.Auth", [
|
|
528
544
|
{ no: 1, name: "signup_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
529
|
-
{ no: 2, name: "last_char_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
545
|
+
{ no: 2, name: "last_char_lock", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
546
|
+
{ no: 3, name: "job_admin_groups", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } },
|
|
547
|
+
{ no: 4, name: "job_admin_users", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } },
|
|
548
|
+
{ no: 5, name: "config_admin_groups", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } },
|
|
549
|
+
{ no: 6, name: "config_admin_users", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { string: { maxLen: "64" } } } } } }
|
|
530
550
|
]);
|
|
531
551
|
}
|
|
532
552
|
create(value?: PartialMessage<Auth>): Auth {
|
|
533
553
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
534
554
|
message.signupEnabled = false;
|
|
535
555
|
message.lastCharLock = false;
|
|
556
|
+
message.jobAdminGroups = [];
|
|
557
|
+
message.jobAdminUsers = [];
|
|
558
|
+
message.configAdminGroups = [];
|
|
559
|
+
message.configAdminUsers = [];
|
|
536
560
|
if (value !== undefined)
|
|
537
561
|
reflectionMergePartial<Auth>(this, message, value);
|
|
538
562
|
return message;
|
|
@@ -548,6 +572,18 @@ class Auth$Type extends MessageType<Auth> {
|
|
|
548
572
|
case /* bool last_char_lock */ 2:
|
|
549
573
|
message.lastCharLock = reader.bool();
|
|
550
574
|
break;
|
|
575
|
+
case /* repeated string job_admin_groups */ 3:
|
|
576
|
+
message.jobAdminGroups.push(reader.string());
|
|
577
|
+
break;
|
|
578
|
+
case /* repeated string job_admin_users */ 4:
|
|
579
|
+
message.jobAdminUsers.push(reader.string());
|
|
580
|
+
break;
|
|
581
|
+
case /* repeated string config_admin_groups */ 5:
|
|
582
|
+
message.configAdminGroups.push(reader.string());
|
|
583
|
+
break;
|
|
584
|
+
case /* repeated string config_admin_users */ 6:
|
|
585
|
+
message.configAdminUsers.push(reader.string());
|
|
586
|
+
break;
|
|
551
587
|
default:
|
|
552
588
|
let u = options.readUnknownField;
|
|
553
589
|
if (u === "throw")
|
|
@@ -566,6 +602,18 @@ class Auth$Type extends MessageType<Auth> {
|
|
|
566
602
|
/* bool last_char_lock = 2; */
|
|
567
603
|
if (message.lastCharLock !== false)
|
|
568
604
|
writer.tag(2, WireType.Varint).bool(message.lastCharLock);
|
|
605
|
+
/* repeated string job_admin_groups = 3; */
|
|
606
|
+
for (let i = 0; i < message.jobAdminGroups.length; i++)
|
|
607
|
+
writer.tag(3, WireType.LengthDelimited).string(message.jobAdminGroups[i]);
|
|
608
|
+
/* repeated string job_admin_users = 4; */
|
|
609
|
+
for (let i = 0; i < message.jobAdminUsers.length; i++)
|
|
610
|
+
writer.tag(4, WireType.LengthDelimited).string(message.jobAdminUsers[i]);
|
|
611
|
+
/* repeated string config_admin_groups = 5; */
|
|
612
|
+
for (let i = 0; i < message.configAdminGroups.length; i++)
|
|
613
|
+
writer.tag(5, WireType.LengthDelimited).string(message.configAdminGroups[i]);
|
|
614
|
+
/* repeated string config_admin_users = 6; */
|
|
615
|
+
for (let i = 0; i < message.configAdminUsers.length; i++)
|
|
616
|
+
writer.tag(6, WireType.LengthDelimited).string(message.configAdminUsers[i]);
|
|
569
617
|
let u = options.writeUnknownFields;
|
|
570
618
|
if (u !== false)
|
|
571
619
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -580,7 +628,7 @@ export const Auth = new Auth$Type();
|
|
|
580
628
|
class Perms$Type extends MessageType<Perms> {
|
|
581
629
|
constructor() {
|
|
582
630
|
super("resources.settings.Perms", [
|
|
583
|
-
{ no: 1, name: "default", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Perm, options: { "buf.validate.field": { repeated: { maxItems: "
|
|
631
|
+
{ no: 1, name: "default", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Perm, options: { "buf.validate.field": { repeated: { maxItems: "50" } } } }
|
|
584
632
|
]);
|
|
585
633
|
}
|
|
586
634
|
create(value?: PartialMessage<Perms>): Perms {
|
|
@@ -683,7 +731,7 @@ class Website$Type extends MessageType<Website> {
|
|
|
683
731
|
constructor() {
|
|
684
732
|
super("resources.settings.Website", [
|
|
685
733
|
{ no: 1, name: "links", kind: "message", T: () => Links },
|
|
686
|
-
{ no: 2, name: "stats_page", kind: "scalar", T: 8 /*ScalarType.BOOL
|
|
734
|
+
{ no: 2, name: "stats_page", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "tagger.tags": "json:\"statsPage\"" } }
|
|
687
735
|
]);
|
|
688
736
|
}
|
|
689
737
|
create(value?: PartialMessage<Website>): Website {
|
|
@@ -1050,7 +1098,7 @@ export const Discord = new Discord$Type();
|
|
|
1050
1098
|
class DiscordBotPresence$Type extends MessageType<DiscordBotPresence> {
|
|
1051
1099
|
constructor() {
|
|
1052
1100
|
super("resources.settings.DiscordBotPresence", [
|
|
1053
|
-
{ no: 1, name: "type", kind: "enum", T: () => ["resources.settings.DiscordBotPresenceType", DiscordBotPresenceType, "DISCORD_BOT_PRESENCE_TYPE_"] },
|
|
1101
|
+
{ no: 1, name: "type", kind: "enum", T: () => ["resources.settings.DiscordBotPresenceType", DiscordBotPresenceType, "DISCORD_BOT_PRESENCE_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
1054
1102
|
{ no: 2, name: "status", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
1055
1103
|
{ no: 3, name: "url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
1056
1104
|
]);
|
|
@@ -45,7 +45,7 @@ export enum DataMode {
|
|
|
45
45
|
class Data$Type extends MessageType<Data> {
|
|
46
46
|
constructor() {
|
|
47
47
|
super("resources.settings.Data", [
|
|
48
|
-
{ no: 1, name: "mode", kind: "enum", T: () => ["resources.settings.DataMode", DataMode, "DATA_MODE_"] }
|
|
48
|
+
{ no: 1, name: "mode", kind: "enum", T: () => ["resources.settings.DataMode", DataMode, "DATA_MODE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
49
49
|
]);
|
|
50
50
|
}
|
|
51
51
|
create(value?: PartialMessage<Data>): Data {
|
package/resources/stats/stats.ts
CHANGED
|
@@ -77,19 +77,23 @@ export interface CategoryValue {
|
|
|
77
77
|
*/
|
|
78
78
|
id: number;
|
|
79
79
|
/**
|
|
80
|
-
* @generated from protobuf field: string
|
|
80
|
+
* @generated from protobuf field: string job = 2
|
|
81
|
+
*/
|
|
82
|
+
job: string;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf field: string name = 3
|
|
81
85
|
*/
|
|
82
86
|
name: string;
|
|
83
87
|
/**
|
|
84
|
-
* @generated from protobuf field: optional string color =
|
|
88
|
+
* @generated from protobuf field: optional string color = 4
|
|
85
89
|
*/
|
|
86
90
|
color?: string;
|
|
87
91
|
/**
|
|
88
|
-
* @generated from protobuf field: optional string icon =
|
|
92
|
+
* @generated from protobuf field: optional string icon = 5
|
|
89
93
|
*/
|
|
90
94
|
icon?: string;
|
|
91
95
|
/**
|
|
92
|
-
* @generated from protobuf field: int64 value =
|
|
96
|
+
* @generated from protobuf field: int64 value = 6
|
|
93
97
|
*/
|
|
94
98
|
value: number;
|
|
95
99
|
}
|
|
@@ -373,15 +377,17 @@ class CategoryValue$Type extends MessageType<CategoryValue> {
|
|
|
373
377
|
constructor() {
|
|
374
378
|
super("resources.stats.CategoryValue", [
|
|
375
379
|
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
376
|
-
{ no: 2, name: "
|
|
377
|
-
{ no: 3, name: "
|
|
378
|
-
{ no: 4, name: "
|
|
379
|
-
{ no: 5, name: "
|
|
380
|
+
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
381
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
382
|
+
{ no: 4, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
383
|
+
{ no: 5, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
384
|
+
{ no: 6, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
380
385
|
]);
|
|
381
386
|
}
|
|
382
387
|
create(value?: PartialMessage<CategoryValue>): CategoryValue {
|
|
383
388
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
384
389
|
message.id = 0;
|
|
390
|
+
message.job = "";
|
|
385
391
|
message.name = "";
|
|
386
392
|
message.value = 0;
|
|
387
393
|
if (value !== undefined)
|
|
@@ -396,16 +402,19 @@ class CategoryValue$Type extends MessageType<CategoryValue> {
|
|
|
396
402
|
case /* int64 id */ 1:
|
|
397
403
|
message.id = reader.int64().toNumber();
|
|
398
404
|
break;
|
|
399
|
-
case /* string
|
|
405
|
+
case /* string job */ 2:
|
|
406
|
+
message.job = reader.string();
|
|
407
|
+
break;
|
|
408
|
+
case /* string name */ 3:
|
|
400
409
|
message.name = reader.string();
|
|
401
410
|
break;
|
|
402
|
-
case /* optional string color */
|
|
411
|
+
case /* optional string color */ 4:
|
|
403
412
|
message.color = reader.string();
|
|
404
413
|
break;
|
|
405
|
-
case /* optional string icon */
|
|
414
|
+
case /* optional string icon */ 5:
|
|
406
415
|
message.icon = reader.string();
|
|
407
416
|
break;
|
|
408
|
-
case /* int64 value */
|
|
417
|
+
case /* int64 value */ 6:
|
|
409
418
|
message.value = reader.int64().toNumber();
|
|
410
419
|
break;
|
|
411
420
|
default:
|
|
@@ -423,18 +432,21 @@ class CategoryValue$Type extends MessageType<CategoryValue> {
|
|
|
423
432
|
/* int64 id = 1; */
|
|
424
433
|
if (message.id !== 0)
|
|
425
434
|
writer.tag(1, WireType.Varint).int64(message.id);
|
|
426
|
-
/* string
|
|
435
|
+
/* string job = 2; */
|
|
436
|
+
if (message.job !== "")
|
|
437
|
+
writer.tag(2, WireType.LengthDelimited).string(message.job);
|
|
438
|
+
/* string name = 3; */
|
|
427
439
|
if (message.name !== "")
|
|
428
|
-
writer.tag(
|
|
429
|
-
/* optional string color =
|
|
440
|
+
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
441
|
+
/* optional string color = 4; */
|
|
430
442
|
if (message.color !== undefined)
|
|
431
|
-
writer.tag(
|
|
432
|
-
/* optional string icon =
|
|
443
|
+
writer.tag(4, WireType.LengthDelimited).string(message.color);
|
|
444
|
+
/* optional string icon = 5; */
|
|
433
445
|
if (message.icon !== undefined)
|
|
434
|
-
writer.tag(
|
|
435
|
-
/* int64 value =
|
|
446
|
+
writer.tag(5, WireType.LengthDelimited).string(message.icon);
|
|
447
|
+
/* int64 value = 6; */
|
|
436
448
|
if (message.value !== 0)
|
|
437
|
-
writer.tag(
|
|
449
|
+
writer.tag(6, WireType.Varint).int64(message.value);
|
|
438
450
|
let u = options.writeUnknownFields;
|
|
439
451
|
if (u !== false)
|
|
440
452
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -129,9 +129,9 @@ export interface DeleteVehicles {
|
|
|
129
129
|
*/
|
|
130
130
|
export interface LastCharID {
|
|
131
131
|
/**
|
|
132
|
-
* @generated from protobuf field: string
|
|
132
|
+
* @generated from protobuf field: string license = 1
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
license: string;
|
|
135
135
|
/**
|
|
136
136
|
* @generated from protobuf field: optional int32 last_char_id = 2
|
|
137
137
|
*/
|
|
@@ -145,6 +145,10 @@ export interface DataAccounts {
|
|
|
145
145
|
* @generated from protobuf field: repeated resources.sync.activity.AccountUpdate account_updates = 1
|
|
146
146
|
*/
|
|
147
147
|
accountUpdates: AccountUpdate[];
|
|
148
|
+
/**
|
|
149
|
+
* @generated from protobuf field: bool clear = 2
|
|
150
|
+
*/
|
|
151
|
+
clear: boolean;
|
|
148
152
|
}
|
|
149
153
|
/**
|
|
150
154
|
* Detailed user information for sync purposes
|
|
@@ -714,13 +718,13 @@ export const DeleteVehicles = new DeleteVehicles$Type();
|
|
|
714
718
|
class LastCharID$Type extends MessageType<LastCharID> {
|
|
715
719
|
constructor() {
|
|
716
720
|
super("resources.sync.data.LastCharID", [
|
|
717
|
-
{ no: 1, name: "
|
|
721
|
+
{ no: 1, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
718
722
|
{ no: 2, name: "last_char_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } }
|
|
719
723
|
]);
|
|
720
724
|
}
|
|
721
725
|
create(value?: PartialMessage<LastCharID>): LastCharID {
|
|
722
726
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
723
|
-
message.
|
|
727
|
+
message.license = "";
|
|
724
728
|
if (value !== undefined)
|
|
725
729
|
reflectionMergePartial<LastCharID>(this, message, value);
|
|
726
730
|
return message;
|
|
@@ -730,8 +734,8 @@ class LastCharID$Type extends MessageType<LastCharID> {
|
|
|
730
734
|
while (reader.pos < end) {
|
|
731
735
|
let [fieldNo, wireType] = reader.tag();
|
|
732
736
|
switch (fieldNo) {
|
|
733
|
-
case /* string
|
|
734
|
-
message.
|
|
737
|
+
case /* string license */ 1:
|
|
738
|
+
message.license = reader.string();
|
|
735
739
|
break;
|
|
736
740
|
case /* optional int32 last_char_id */ 2:
|
|
737
741
|
message.lastCharId = reader.int32();
|
|
@@ -748,9 +752,9 @@ class LastCharID$Type extends MessageType<LastCharID> {
|
|
|
748
752
|
return message;
|
|
749
753
|
}
|
|
750
754
|
internalBinaryWrite(message: LastCharID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
751
|
-
/* string
|
|
752
|
-
if (message.
|
|
753
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
755
|
+
/* string license = 1; */
|
|
756
|
+
if (message.license !== "")
|
|
757
|
+
writer.tag(1, WireType.LengthDelimited).string(message.license);
|
|
754
758
|
/* optional int32 last_char_id = 2; */
|
|
755
759
|
if (message.lastCharId !== undefined)
|
|
756
760
|
writer.tag(2, WireType.Varint).int32(message.lastCharId);
|
|
@@ -768,12 +772,14 @@ export const LastCharID = new LastCharID$Type();
|
|
|
768
772
|
class DataAccounts$Type extends MessageType<DataAccounts> {
|
|
769
773
|
constructor() {
|
|
770
774
|
super("resources.sync.data.DataAccounts", [
|
|
771
|
-
{ no: 1, name: "account_updates", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AccountUpdate, options: { "buf.validate.field": { repeated: { maxItems: "200" } } } }
|
|
775
|
+
{ no: 1, name: "account_updates", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AccountUpdate, options: { "buf.validate.field": { repeated: { maxItems: "200" } } } },
|
|
776
|
+
{ no: 2, name: "clear", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
772
777
|
]);
|
|
773
778
|
}
|
|
774
779
|
create(value?: PartialMessage<DataAccounts>): DataAccounts {
|
|
775
780
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
776
781
|
message.accountUpdates = [];
|
|
782
|
+
message.clear = false;
|
|
777
783
|
if (value !== undefined)
|
|
778
784
|
reflectionMergePartial<DataAccounts>(this, message, value);
|
|
779
785
|
return message;
|
|
@@ -786,6 +792,9 @@ class DataAccounts$Type extends MessageType<DataAccounts> {
|
|
|
786
792
|
case /* repeated resources.sync.activity.AccountUpdate account_updates */ 1:
|
|
787
793
|
message.accountUpdates.push(AccountUpdate.internalBinaryRead(reader, reader.uint32(), options));
|
|
788
794
|
break;
|
|
795
|
+
case /* bool clear */ 2:
|
|
796
|
+
message.clear = reader.bool();
|
|
797
|
+
break;
|
|
789
798
|
default:
|
|
790
799
|
let u = options.readUnknownField;
|
|
791
800
|
if (u === "throw")
|
|
@@ -801,6 +810,9 @@ class DataAccounts$Type extends MessageType<DataAccounts> {
|
|
|
801
810
|
/* repeated resources.sync.activity.AccountUpdate account_updates = 1; */
|
|
802
811
|
for (let i = 0; i < message.accountUpdates.length; i++)
|
|
803
812
|
AccountUpdate.internalBinaryWrite(message.accountUpdates[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
813
|
+
/* bool clear = 2; */
|
|
814
|
+
if (message.clear !== false)
|
|
815
|
+
writer.tag(2, WireType.Varint).bool(message.clear);
|
|
804
816
|
let u = options.writeUnknownFields;
|
|
805
817
|
if (u !== false)
|
|
806
818
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|