@fivenet-app/gen 0.9.3 → 0.9.5-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 +150 -0
- package/google/protobuf/any.ts +10 -6
- package/google/protobuf/descriptor.ts +1255 -76
- package/google/protobuf/duration.ts +1 -2
- package/google/protobuf/timestamp.ts +3 -6
- package/package.json +5 -1
- package/perms.ts +9 -1
- package/resources/accounts/accounts.ts +9 -9
- package/resources/accounts/oauth2.ts +17 -17
- package/resources/calendar/access.ts +33 -33
- package/resources/calendar/calendar.ts +51 -49
- package/resources/centrum/access.ts +57 -42
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +73 -71
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +49 -49
- package/resources/centrum/user_unit.ts +104 -0
- package/resources/common/content/content.ts +47 -26
- package/resources/common/cron/cron.ts +37 -1
- package/resources/common/database/database.ts +37 -19
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +59 -33
- package/resources/common/i18n.ts +4 -1
- package/resources/common/tests/objects.ts +82 -0
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +37 -35
- package/resources/documents/activity.ts +19 -17
- package/resources/documents/category.ts +9 -9
- package/resources/documents/comment.ts +17 -17
- package/resources/documents/documents.ts +89 -89
- package/resources/documents/requests.ts +17 -17
- package/resources/documents/templates.ts +50 -35
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +358 -0
- package/resources/internet/ads.ts +9 -9
- package/resources/internet/domain.ts +216 -24
- package/resources/internet/page.ts +215 -23
- package/resources/internet/search.ts +42 -18
- package/resources/jobs/activity.ts +11 -9
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +9 -9
- package/resources/jobs/labels.ts +9 -9
- package/resources/jobs/timeclock.ts +7 -3
- package/resources/laws/laws.ts +25 -25
- package/resources/livemap/livemap.ts +314 -295
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +57 -57
- package/resources/mailer/email.ts +9 -9
- package/resources/mailer/events.ts +19 -19
- package/resources/mailer/message.ts +151 -45
- package/resources/mailer/settings.ts +9 -9
- package/resources/mailer/template.ts +17 -17
- package/resources/mailer/thread.ts +57 -57
- package/resources/notifications/events.ts +112 -3
- package/resources/notifications/notifications.ts +23 -21
- package/resources/permissions/permissions.ts +67 -65
- package/resources/qualifications/access.ts +33 -24
- package/resources/qualifications/exam.ts +226 -44
- package/resources/qualifications/qualifications.ts +99 -71
- package/resources/rector/audit.ts +17 -17
- package/resources/rector/banner.ts +133 -0
- package/resources/rector/config.ts +84 -17
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +93 -15
- package/resources/sync/data.ts +143 -11
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +995 -37
- package/resources/users/job_props.ts +6 -709
- package/resources/users/job_settings.ts +765 -0
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +11 -9
- package/resources/users/licenses.ts +148 -0
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +2 -137
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +34 -38
- package/resources/wiki/activity.ts +19 -17
- package/resources/wiki/page.ts +29 -29
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +110 -33
- package/services/calendar/calendar.client.ts +1 -1
- package/services/calendar/calendar.ts +98 -59
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +268 -125
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +25 -2
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +15 -2
- package/services/dmv/vehicles.client.ts +1 -1
- package/services/dmv/vehicles.ts +13 -2
- package/services/docstore/docstore.client.ts +1 -1
- package/services/docstore/docstore.ts +491 -296
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +109 -0
- package/services/internet/domain.ts +658 -0
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +15 -4
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +30 -17
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +43 -17
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +20 -20
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +137 -35
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +216 -164
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +30 -17
- package/services/qualifications/qualifications.client.ts +3 -3
- package/services/qualifications/qualifications.ts +190 -115
- package/services/rector/config.client.ts +1 -1
- package/services/rector/config.ts +16 -3
- package/services/rector/filestore.client.ts +1 -1
- package/services/rector/filestore.ts +15 -2
- package/services/rector/laws.client.ts +1 -1
- package/services/rector/laws.ts +45 -19
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +135 -70
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +43 -3
- package/services/sync/sync.ts +301 -34
- package/services/wiki/wiki.client.ts +1 -1
- package/services/wiki/wiki.ts +39 -26
- package/svcs.ts +17 -1
- package/resources/centrum/general.ts +0 -231
- package/resources/common/access/dummy.ts +0 -309
- package/resources/internet/internet.ts +0 -344
- package/resources/mailer/user.ts +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/calendar/calendar.proto" (package "resources.calendar", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -19,9 +19,9 @@ import { Timestamp } from "../timestamp/timestamp";
|
|
|
19
19
|
*/
|
|
20
20
|
export interface Calendar {
|
|
21
21
|
/**
|
|
22
|
-
* @generated from protobuf field: uint64 id = 1
|
|
22
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
23
23
|
*/
|
|
24
|
-
id:
|
|
24
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
25
25
|
/**
|
|
26
26
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
27
27
|
*/
|
|
@@ -90,9 +90,9 @@ export interface Calendar {
|
|
|
90
90
|
*/
|
|
91
91
|
export interface CalendarShort {
|
|
92
92
|
/**
|
|
93
|
-
* @generated from protobuf field: uint64 id = 1
|
|
93
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
94
94
|
*/
|
|
95
|
-
id:
|
|
95
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
96
96
|
/**
|
|
97
97
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
98
98
|
*/
|
|
@@ -133,9 +133,9 @@ export interface CalendarShort {
|
|
|
133
133
|
*/
|
|
134
134
|
export interface CalendarSub {
|
|
135
135
|
/**
|
|
136
|
-
* @generated from protobuf field: uint64 calendar_id = 1
|
|
136
|
+
* @generated from protobuf field: uint64 calendar_id = 1;
|
|
137
137
|
*/
|
|
138
|
-
calendarId:
|
|
138
|
+
calendarId: number;
|
|
139
139
|
/**
|
|
140
140
|
* @generated from protobuf field: int32 user_id = 2;
|
|
141
141
|
*/
|
|
@@ -164,9 +164,9 @@ export interface CalendarSub {
|
|
|
164
164
|
*/
|
|
165
165
|
export interface CalendarEntry {
|
|
166
166
|
/**
|
|
167
|
-
* @generated from protobuf field: uint64 id = 1
|
|
167
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
168
168
|
*/
|
|
169
|
-
id:
|
|
169
|
+
id: number; // @gotags: sql:"primary_key" alias:"id"
|
|
170
170
|
/**
|
|
171
171
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
172
172
|
*/
|
|
@@ -180,9 +180,9 @@ export interface CalendarEntry {
|
|
|
180
180
|
*/
|
|
181
181
|
deletedAt?: Timestamp;
|
|
182
182
|
/**
|
|
183
|
-
* @generated from protobuf field: uint64 calendar_id = 5
|
|
183
|
+
* @generated from protobuf field: uint64 calendar_id = 5;
|
|
184
184
|
*/
|
|
185
|
-
calendarId:
|
|
185
|
+
calendarId: number;
|
|
186
186
|
/**
|
|
187
187
|
* @generated from protobuf field: optional resources.calendar.Calendar calendar = 6;
|
|
188
188
|
*/
|
|
@@ -239,6 +239,8 @@ export interface CalendarEntry {
|
|
|
239
239
|
rsvp?: CalendarEntryRSVP;
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
+
* @dbscanner: json
|
|
243
|
+
*
|
|
242
244
|
* @generated from protobuf message resources.calendar.CalendarEntryRecurring
|
|
243
245
|
*/
|
|
244
246
|
export interface CalendarEntryRecurring {
|
|
@@ -260,9 +262,9 @@ export interface CalendarEntryRecurring {
|
|
|
260
262
|
*/
|
|
261
263
|
export interface CalendarEntryRSVP {
|
|
262
264
|
/**
|
|
263
|
-
* @generated from protobuf field: uint64 entry_id = 1
|
|
265
|
+
* @generated from protobuf field: uint64 entry_id = 1;
|
|
264
266
|
*/
|
|
265
|
-
entryId:
|
|
267
|
+
entryId: number;
|
|
266
268
|
/**
|
|
267
269
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
268
270
|
*/
|
|
@@ -313,7 +315,7 @@ export enum RsvpResponses {
|
|
|
313
315
|
class Calendar$Type extends MessageType<Calendar> {
|
|
314
316
|
constructor() {
|
|
315
317
|
super("resources.calendar.Calendar", [
|
|
316
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
318
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
317
319
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
318
320
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
319
321
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
@@ -332,7 +334,7 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
332
334
|
}
|
|
333
335
|
create(value?: PartialMessage<Calendar>): Calendar {
|
|
334
336
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
335
|
-
message.id =
|
|
337
|
+
message.id = 0;
|
|
336
338
|
message.name = "";
|
|
337
339
|
message.public = false;
|
|
338
340
|
message.closed = false;
|
|
@@ -347,8 +349,8 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
347
349
|
while (reader.pos < end) {
|
|
348
350
|
let [fieldNo, wireType] = reader.tag();
|
|
349
351
|
switch (fieldNo) {
|
|
350
|
-
case /* uint64 id
|
|
351
|
-
message.id = reader.uint64().
|
|
352
|
+
case /* uint64 id */ 1:
|
|
353
|
+
message.id = reader.uint64().toNumber();
|
|
352
354
|
break;
|
|
353
355
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
354
356
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -404,8 +406,8 @@ class Calendar$Type extends MessageType<Calendar> {
|
|
|
404
406
|
return message;
|
|
405
407
|
}
|
|
406
408
|
internalBinaryWrite(message: Calendar, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
407
|
-
/* uint64 id = 1
|
|
408
|
-
if (message.id !==
|
|
409
|
+
/* uint64 id = 1; */
|
|
410
|
+
if (message.id !== 0)
|
|
409
411
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
410
412
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
411
413
|
if (message.createdAt)
|
|
@@ -463,7 +465,7 @@ export const Calendar = new Calendar$Type();
|
|
|
463
465
|
class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
464
466
|
constructor() {
|
|
465
467
|
super("resources.calendar.CalendarShort", [
|
|
466
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
468
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
467
469
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
468
470
|
{ no: 6, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "255" } } } },
|
|
469
471
|
{ no: 7, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "512" } } } },
|
|
@@ -475,7 +477,7 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
475
477
|
}
|
|
476
478
|
create(value?: PartialMessage<CalendarShort>): CalendarShort {
|
|
477
479
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
478
|
-
message.id =
|
|
480
|
+
message.id = 0;
|
|
479
481
|
message.name = "";
|
|
480
482
|
message.public = false;
|
|
481
483
|
message.closed = false;
|
|
@@ -489,8 +491,8 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
489
491
|
while (reader.pos < end) {
|
|
490
492
|
let [fieldNo, wireType] = reader.tag();
|
|
491
493
|
switch (fieldNo) {
|
|
492
|
-
case /* uint64 id
|
|
493
|
-
message.id = reader.uint64().
|
|
494
|
+
case /* uint64 id */ 1:
|
|
495
|
+
message.id = reader.uint64().toNumber();
|
|
494
496
|
break;
|
|
495
497
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
496
498
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -525,8 +527,8 @@ class CalendarShort$Type extends MessageType<CalendarShort> {
|
|
|
525
527
|
return message;
|
|
526
528
|
}
|
|
527
529
|
internalBinaryWrite(message: CalendarShort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
528
|
-
/* uint64 id = 1
|
|
529
|
-
if (message.id !==
|
|
530
|
+
/* uint64 id = 1; */
|
|
531
|
+
if (message.id !== 0)
|
|
530
532
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
531
533
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
532
534
|
if (message.createdAt)
|
|
@@ -563,7 +565,7 @@ export const CalendarShort = new CalendarShort$Type();
|
|
|
563
565
|
class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
564
566
|
constructor() {
|
|
565
567
|
super("resources.calendar.CalendarSub", [
|
|
566
|
-
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
568
|
+
{ no: 1, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
567
569
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
568
570
|
{ no: 3, name: "user", kind: "message", T: () => UserShort },
|
|
569
571
|
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp },
|
|
@@ -573,7 +575,7 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
573
575
|
}
|
|
574
576
|
create(value?: PartialMessage<CalendarSub>): CalendarSub {
|
|
575
577
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
576
|
-
message.calendarId =
|
|
578
|
+
message.calendarId = 0;
|
|
577
579
|
message.userId = 0;
|
|
578
580
|
message.confirmed = false;
|
|
579
581
|
message.muted = false;
|
|
@@ -586,8 +588,8 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
586
588
|
while (reader.pos < end) {
|
|
587
589
|
let [fieldNo, wireType] = reader.tag();
|
|
588
590
|
switch (fieldNo) {
|
|
589
|
-
case /* uint64 calendar_id
|
|
590
|
-
message.calendarId = reader.uint64().
|
|
591
|
+
case /* uint64 calendar_id */ 1:
|
|
592
|
+
message.calendarId = reader.uint64().toNumber();
|
|
591
593
|
break;
|
|
592
594
|
case /* int32 user_id */ 2:
|
|
593
595
|
message.userId = reader.int32();
|
|
@@ -616,8 +618,8 @@ class CalendarSub$Type extends MessageType<CalendarSub> {
|
|
|
616
618
|
return message;
|
|
617
619
|
}
|
|
618
620
|
internalBinaryWrite(message: CalendarSub, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
619
|
-
/* uint64 calendar_id = 1
|
|
620
|
-
if (message.calendarId !==
|
|
621
|
+
/* uint64 calendar_id = 1; */
|
|
622
|
+
if (message.calendarId !== 0)
|
|
621
623
|
writer.tag(1, WireType.Varint).uint64(message.calendarId);
|
|
622
624
|
/* int32 user_id = 2; */
|
|
623
625
|
if (message.userId !== 0)
|
|
@@ -648,11 +650,11 @@ export const CalendarSub = new CalendarSub$Type();
|
|
|
648
650
|
class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
649
651
|
constructor() {
|
|
650
652
|
super("resources.calendar.CalendarEntry", [
|
|
651
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
653
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
652
654
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
653
655
|
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
654
656
|
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
655
|
-
{ no: 5, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
657
|
+
{ no: 5, name: "calendar_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
656
658
|
{ no: 6, name: "calendar", kind: "message", T: () => Calendar },
|
|
657
659
|
{ no: 7, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
658
660
|
{ no: 8, name: "start_time", kind: "message", T: () => Timestamp },
|
|
@@ -670,8 +672,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
670
672
|
}
|
|
671
673
|
create(value?: PartialMessage<CalendarEntry>): CalendarEntry {
|
|
672
674
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
673
|
-
message.id =
|
|
674
|
-
message.calendarId =
|
|
675
|
+
message.id = 0;
|
|
676
|
+
message.calendarId = 0;
|
|
675
677
|
message.title = "";
|
|
676
678
|
message.closed = false;
|
|
677
679
|
message.creatorJob = "";
|
|
@@ -684,8 +686,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
684
686
|
while (reader.pos < end) {
|
|
685
687
|
let [fieldNo, wireType] = reader.tag();
|
|
686
688
|
switch (fieldNo) {
|
|
687
|
-
case /* uint64 id
|
|
688
|
-
message.id = reader.uint64().
|
|
689
|
+
case /* uint64 id */ 1:
|
|
690
|
+
message.id = reader.uint64().toNumber();
|
|
689
691
|
break;
|
|
690
692
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
691
693
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -696,8 +698,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
696
698
|
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
697
699
|
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
698
700
|
break;
|
|
699
|
-
case /* uint64 calendar_id
|
|
700
|
-
message.calendarId = reader.uint64().
|
|
701
|
+
case /* uint64 calendar_id */ 5:
|
|
702
|
+
message.calendarId = reader.uint64().toNumber();
|
|
701
703
|
break;
|
|
702
704
|
case /* optional resources.calendar.Calendar calendar */ 6:
|
|
703
705
|
message.calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
@@ -750,8 +752,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
750
752
|
return message;
|
|
751
753
|
}
|
|
752
754
|
internalBinaryWrite(message: CalendarEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
753
|
-
/* uint64 id = 1
|
|
754
|
-
if (message.id !==
|
|
755
|
+
/* uint64 id = 1; */
|
|
756
|
+
if (message.id !== 0)
|
|
755
757
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
756
758
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
757
759
|
if (message.createdAt)
|
|
@@ -762,8 +764,8 @@ class CalendarEntry$Type extends MessageType<CalendarEntry> {
|
|
|
762
764
|
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
763
765
|
if (message.deletedAt)
|
|
764
766
|
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
765
|
-
/* uint64 calendar_id = 5
|
|
766
|
-
if (message.calendarId !==
|
|
767
|
+
/* uint64 calendar_id = 5; */
|
|
768
|
+
if (message.calendarId !== 0)
|
|
767
769
|
writer.tag(5, WireType.Varint).uint64(message.calendarId);
|
|
768
770
|
/* optional resources.calendar.Calendar calendar = 6; */
|
|
769
771
|
if (message.calendar)
|
|
@@ -880,7 +882,7 @@ export const CalendarEntryRecurring = new CalendarEntryRecurring$Type();
|
|
|
880
882
|
class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
881
883
|
constructor() {
|
|
882
884
|
super("resources.calendar.CalendarEntryRSVP", [
|
|
883
|
-
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
885
|
+
{ no: 1, name: "entry_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
884
886
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
885
887
|
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
886
888
|
{ no: 4, name: "user", kind: "message", T: () => UserShort },
|
|
@@ -889,7 +891,7 @@ class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
|
889
891
|
}
|
|
890
892
|
create(value?: PartialMessage<CalendarEntryRSVP>): CalendarEntryRSVP {
|
|
891
893
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
892
|
-
message.entryId =
|
|
894
|
+
message.entryId = 0;
|
|
893
895
|
message.userId = 0;
|
|
894
896
|
message.response = 0;
|
|
895
897
|
if (value !== undefined)
|
|
@@ -901,8 +903,8 @@ class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
|
901
903
|
while (reader.pos < end) {
|
|
902
904
|
let [fieldNo, wireType] = reader.tag();
|
|
903
905
|
switch (fieldNo) {
|
|
904
|
-
case /* uint64 entry_id
|
|
905
|
-
message.entryId = reader.uint64().
|
|
906
|
+
case /* uint64 entry_id */ 1:
|
|
907
|
+
message.entryId = reader.uint64().toNumber();
|
|
906
908
|
break;
|
|
907
909
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
908
910
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
@@ -928,8 +930,8 @@ class CalendarEntryRSVP$Type extends MessageType<CalendarEntryRSVP> {
|
|
|
928
930
|
return message;
|
|
929
931
|
}
|
|
930
932
|
internalBinaryWrite(message: CalendarEntryRSVP, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
931
|
-
/* uint64 entry_id = 1
|
|
932
|
-
if (message.entryId !==
|
|
933
|
+
/* uint64 entry_id = 1; */
|
|
934
|
+
if (message.entryId !== 0)
|
|
933
935
|
writer.tag(1, WireType.Varint).uint64(message.entryId);
|
|
934
936
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
935
937
|
if (message.createdAt)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.
|
|
1
|
+
// @generated by protobuf-ts 2.9.6 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "resources/centrum/access.proto" (package "resources.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -13,6 +13,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
13
13
|
import { QualificationShort } from "../qualifications/qualifications";
|
|
14
14
|
import { Timestamp } from "../timestamp/timestamp";
|
|
15
15
|
/**
|
|
16
|
+
* @dbscanner: json
|
|
17
|
+
*
|
|
16
18
|
* @generated from protobuf message resources.centrum.UnitAccess
|
|
17
19
|
*/
|
|
18
20
|
export interface UnitAccess {
|
|
@@ -30,17 +32,17 @@ export interface UnitAccess {
|
|
|
30
32
|
*/
|
|
31
33
|
export interface UnitJobAccess {
|
|
32
34
|
/**
|
|
33
|
-
* @generated from protobuf field: uint64 id = 1
|
|
35
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
34
36
|
*/
|
|
35
|
-
id:
|
|
37
|
+
id: number;
|
|
36
38
|
/**
|
|
37
39
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
38
40
|
*/
|
|
39
41
|
createdAt?: Timestamp;
|
|
40
42
|
/**
|
|
41
|
-
* @generated from protobuf field: uint64 target_id = 3
|
|
43
|
+
* @generated from protobuf field: uint64 target_id = 3;
|
|
42
44
|
*/
|
|
43
|
-
targetId:
|
|
45
|
+
targetId: number;
|
|
44
46
|
/**
|
|
45
47
|
* @generated from protobuf field: string job = 4;
|
|
46
48
|
*/
|
|
@@ -72,21 +74,21 @@ export interface UnitUserAccess {
|
|
|
72
74
|
*/
|
|
73
75
|
export interface UnitQualificationAccess {
|
|
74
76
|
/**
|
|
75
|
-
* @generated from protobuf field: uint64 id = 1
|
|
77
|
+
* @generated from protobuf field: uint64 id = 1;
|
|
76
78
|
*/
|
|
77
|
-
id:
|
|
79
|
+
id: number;
|
|
78
80
|
/**
|
|
79
81
|
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
80
82
|
*/
|
|
81
83
|
createdAt?: Timestamp;
|
|
82
84
|
/**
|
|
83
|
-
* @generated from protobuf field: uint64 target_id = 3
|
|
85
|
+
* @generated from protobuf field: uint64 target_id = 3;
|
|
84
86
|
*/
|
|
85
|
-
targetId:
|
|
87
|
+
targetId: number;
|
|
86
88
|
/**
|
|
87
|
-
* @generated from protobuf field: uint64 qualification_id = 4
|
|
89
|
+
* @generated from protobuf field: uint64 qualification_id = 4;
|
|
88
90
|
*/
|
|
89
|
-
qualificationId:
|
|
91
|
+
qualificationId: number;
|
|
90
92
|
/**
|
|
91
93
|
* @generated from protobuf field: optional resources.qualifications.QualificationShort qualification = 5;
|
|
92
94
|
*/
|
|
@@ -172,9 +174,9 @@ export const UnitAccess = new UnitAccess$Type();
|
|
|
172
174
|
class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
|
|
173
175
|
constructor() {
|
|
174
176
|
super("resources.centrum.UnitJobAccess", [
|
|
175
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
177
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
176
178
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
177
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
179
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
178
180
|
{ no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
179
181
|
{ no: 5, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
|
|
180
182
|
{ no: 6, name: "minimum_grade", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
@@ -184,8 +186,8 @@ class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
|
|
|
184
186
|
}
|
|
185
187
|
create(value?: PartialMessage<UnitJobAccess>): UnitJobAccess {
|
|
186
188
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
187
|
-
message.id =
|
|
188
|
-
message.targetId =
|
|
189
|
+
message.id = 0;
|
|
190
|
+
message.targetId = 0;
|
|
189
191
|
message.job = "";
|
|
190
192
|
message.minimumGrade = 0;
|
|
191
193
|
message.access = 0;
|
|
@@ -198,14 +200,14 @@ class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
|
|
|
198
200
|
while (reader.pos < end) {
|
|
199
201
|
let [fieldNo, wireType] = reader.tag();
|
|
200
202
|
switch (fieldNo) {
|
|
201
|
-
case /* uint64 id
|
|
202
|
-
message.id = reader.uint64().
|
|
203
|
+
case /* uint64 id */ 1:
|
|
204
|
+
message.id = reader.uint64().toNumber();
|
|
203
205
|
break;
|
|
204
206
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
205
207
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
206
208
|
break;
|
|
207
|
-
case /* uint64 target_id
|
|
208
|
-
message.targetId = reader.uint64().
|
|
209
|
+
case /* uint64 target_id */ 3:
|
|
210
|
+
message.targetId = reader.uint64().toNumber();
|
|
209
211
|
break;
|
|
210
212
|
case /* string job */ 4:
|
|
211
213
|
message.job = reader.string();
|
|
@@ -234,14 +236,14 @@ class UnitJobAccess$Type extends MessageType<UnitJobAccess> {
|
|
|
234
236
|
return message;
|
|
235
237
|
}
|
|
236
238
|
internalBinaryWrite(message: UnitJobAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
237
|
-
/* uint64 id = 1
|
|
238
|
-
if (message.id !==
|
|
239
|
+
/* uint64 id = 1; */
|
|
240
|
+
if (message.id !== 0)
|
|
239
241
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
240
242
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
241
243
|
if (message.createdAt)
|
|
242
244
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
243
|
-
/* uint64 target_id = 3
|
|
244
|
-
if (message.targetId !==
|
|
245
|
+
/* uint64 target_id = 3; */
|
|
246
|
+
if (message.targetId !== 0)
|
|
245
247
|
writer.tag(3, WireType.Varint).uint64(message.targetId);
|
|
246
248
|
/* string job = 4; */
|
|
247
249
|
if (message.job !== "")
|
|
@@ -280,7 +282,20 @@ class UnitUserAccess$Type extends MessageType<UnitUserAccess> {
|
|
|
280
282
|
return message;
|
|
281
283
|
}
|
|
282
284
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnitUserAccess): UnitUserAccess {
|
|
283
|
-
|
|
285
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
286
|
+
while (reader.pos < end) {
|
|
287
|
+
let [fieldNo, wireType] = reader.tag();
|
|
288
|
+
switch (fieldNo) {
|
|
289
|
+
default:
|
|
290
|
+
let u = options.readUnknownField;
|
|
291
|
+
if (u === "throw")
|
|
292
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
293
|
+
let d = reader.skip(wireType);
|
|
294
|
+
if (u !== false)
|
|
295
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return message;
|
|
284
299
|
}
|
|
285
300
|
internalBinaryWrite(message: UnitUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
286
301
|
let u = options.writeUnknownFields;
|
|
@@ -297,19 +312,19 @@ export const UnitUserAccess = new UnitUserAccess$Type();
|
|
|
297
312
|
class UnitQualificationAccess$Type extends MessageType<UnitQualificationAccess> {
|
|
298
313
|
constructor() {
|
|
299
314
|
super("resources.centrum.UnitQualificationAccess", [
|
|
300
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
315
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
301
316
|
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
302
|
-
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
303
|
-
{ no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
317
|
+
{ no: 3, name: "target_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
318
|
+
{ no: 4, name: "qualification_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
304
319
|
{ no: 5, name: "qualification", kind: "message", T: () => QualificationShort },
|
|
305
320
|
{ no: 6, name: "access", kind: "enum", T: () => ["resources.centrum.UnitAccessLevel", UnitAccessLevel, "UNIT_ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
|
306
321
|
]);
|
|
307
322
|
}
|
|
308
323
|
create(value?: PartialMessage<UnitQualificationAccess>): UnitQualificationAccess {
|
|
309
324
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
310
|
-
message.id =
|
|
311
|
-
message.targetId =
|
|
312
|
-
message.qualificationId =
|
|
325
|
+
message.id = 0;
|
|
326
|
+
message.targetId = 0;
|
|
327
|
+
message.qualificationId = 0;
|
|
313
328
|
message.access = 0;
|
|
314
329
|
if (value !== undefined)
|
|
315
330
|
reflectionMergePartial<UnitQualificationAccess>(this, message, value);
|
|
@@ -320,17 +335,17 @@ class UnitQualificationAccess$Type extends MessageType<UnitQualificationAccess>
|
|
|
320
335
|
while (reader.pos < end) {
|
|
321
336
|
let [fieldNo, wireType] = reader.tag();
|
|
322
337
|
switch (fieldNo) {
|
|
323
|
-
case /* uint64 id
|
|
324
|
-
message.id = reader.uint64().
|
|
338
|
+
case /* uint64 id */ 1:
|
|
339
|
+
message.id = reader.uint64().toNumber();
|
|
325
340
|
break;
|
|
326
341
|
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
327
342
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
328
343
|
break;
|
|
329
|
-
case /* uint64 target_id
|
|
330
|
-
message.targetId = reader.uint64().
|
|
344
|
+
case /* uint64 target_id */ 3:
|
|
345
|
+
message.targetId = reader.uint64().toNumber();
|
|
331
346
|
break;
|
|
332
|
-
case /* uint64 qualification_id
|
|
333
|
-
message.qualificationId = reader.uint64().
|
|
347
|
+
case /* uint64 qualification_id */ 4:
|
|
348
|
+
message.qualificationId = reader.uint64().toNumber();
|
|
334
349
|
break;
|
|
335
350
|
case /* optional resources.qualifications.QualificationShort qualification */ 5:
|
|
336
351
|
message.qualification = QualificationShort.internalBinaryRead(reader, reader.uint32(), options, message.qualification);
|
|
@@ -350,17 +365,17 @@ class UnitQualificationAccess$Type extends MessageType<UnitQualificationAccess>
|
|
|
350
365
|
return message;
|
|
351
366
|
}
|
|
352
367
|
internalBinaryWrite(message: UnitQualificationAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
353
|
-
/* uint64 id = 1
|
|
354
|
-
if (message.id !==
|
|
368
|
+
/* uint64 id = 1; */
|
|
369
|
+
if (message.id !== 0)
|
|
355
370
|
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
356
371
|
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
357
372
|
if (message.createdAt)
|
|
358
373
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
359
|
-
/* uint64 target_id = 3
|
|
360
|
-
if (message.targetId !==
|
|
374
|
+
/* uint64 target_id = 3; */
|
|
375
|
+
if (message.targetId !== 0)
|
|
361
376
|
writer.tag(3, WireType.Varint).uint64(message.targetId);
|
|
362
|
-
/* uint64 qualification_id = 4
|
|
363
|
-
if (message.qualificationId !==
|
|
377
|
+
/* uint64 qualification_id = 4; */
|
|
378
|
+
if (message.qualificationId !== 0)
|
|
364
379
|
writer.tag(4, WireType.Varint).uint64(message.qualificationId);
|
|
365
380
|
/* optional resources.qualifications.QualificationShort qualification = 5; */
|
|
366
381
|
if (message.qualification)
|