@fivenet-app/gen 0.9.5-0 → 2025.5.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/README.md +7 -1
- package/clients.ts +48 -42
- package/google/protobuf/any.ts +1 -1
- package/google/protobuf/descriptor.ts +108 -50
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +3 -2
- package/perms.ts +96 -99
- package/resources/accounts/accounts.ts +39 -3
- package/resources/accounts/oauth2.ts +6 -6
- package/resources/{rector → audit}/audit.ts +22 -23
- package/resources/calendar/access.ts +4 -4
- package/resources/calendar/calendar.ts +1 -1
- package/resources/centrum/attributes.ts +6 -2
- package/resources/centrum/dispatches.ts +4 -4
- package/resources/centrum/disponents.ts +2 -2
- package/resources/centrum/settings.ts +3 -3
- package/resources/centrum/units.ts +4 -4
- package/resources/centrum/{access.ts → units_access.ts} +4 -4
- package/resources/centrum/user_unit.ts +2 -2
- package/resources/common/content/content.ts +2 -2
- package/resources/common/cron/cron.ts +53 -12
- package/resources/common/database/database.ts +1 -1
- package/resources/common/error.ts +1 -1
- package/resources/common/grpcws/grpcws.ts +1 -1
- package/resources/common/i18n.ts +1 -1
- package/resources/common/tests/objects.ts +1 -1
- package/resources/common/uuid.ts +1 -1
- package/resources/documents/access.ts +4 -4
- package/resources/documents/activity.ts +7 -7
- package/resources/documents/category.ts +49 -26
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +1 -1
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +5 -5
- package/resources/documents/workflow.ts +2 -2
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +4 -4
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +1 -1
- package/resources/internet/page.ts +3 -3
- package/resources/internet/search.ts +1 -1
- package/resources/jobs/activity.ts +114 -114
- package/resources/jobs/colleagues.ts +59 -48
- package/resources/jobs/conduct.ts +52 -41
- package/resources/{users → jobs}/job_props.ts +28 -29
- package/resources/{users → jobs}/job_settings.ts +54 -54
- package/resources/{users → jobs}/jobs.ts +12 -12
- package/resources/jobs/labels.ts +29 -17
- package/resources/jobs/timeclock.ts +7 -7
- package/resources/laws/laws.ts +2 -2
- package/resources/livemap/livemap.ts +1 -1
- package/resources/livemap/tracker.ts +3 -3
- package/resources/mailer/access.ts +5 -5
- package/resources/mailer/email.ts +11 -23
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +2 -2
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +2 -2
- package/resources/notifications/events.ts +9 -9
- package/resources/notifications/notifications.ts +1 -1
- package/resources/permissions/attributes.ts +689 -0
- package/resources/permissions/permissions.ts +16 -570
- package/resources/qualifications/access.ts +2 -2
- package/resources/qualifications/exam.ts +7 -7
- package/resources/qualifications/qualifications.ts +9 -9
- package/resources/{rector → settings}/banner.ts +5 -5
- package/resources/{rector → settings}/config.ts +83 -83
- package/resources/stats/stats.ts +1 -1
- package/resources/sync/activity.ts +20 -20
- package/resources/sync/data.ts +26 -26
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +196 -196
- package/resources/users/labels.ts +28 -28
- package/resources/users/licenses.ts +12 -12
- package/resources/users/props.ts +28 -17
- package/resources/users/users.ts +2 -2
- package/resources/vehicles/vehicles.ts +4 -4
- package/resources/wiki/access.ts +4 -4
- package/resources/wiki/activity.ts +7 -7
- package/resources/wiki/page.ts +2 -2
- package/services/auth/auth.client.ts +8 -8
- package/services/auth/auth.ts +32 -32
- package/services/calendar/calendar.client.ts +44 -27
- package/services/calendar/calendar.ts +138 -27
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +8 -8
- package/services/{citizenstore/citizenstore.client.ts → citizens/citizens.client.ts} +37 -37
- package/services/{citizenstore/citizenstore.ts → citizens/citizens.ts} +72 -72
- package/services/completor/completor.client.ts +1 -1
- package/services/completor/completor.ts +17 -17
- package/services/{docstore/docstore.client.ts → documents/documents.client.ts} +165 -182
- package/services/{docstore/docstore.ts → documents/documents.ts} +280 -377
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +2 -2
- package/services/internet/domain.client.ts +1 -1
- package/services/internet/domain.ts +3 -3
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +2 -2
- package/services/jobs/conduct.client.ts +9 -9
- package/services/jobs/conduct.ts +4 -4
- package/services/jobs/jobs.client.ts +15 -15
- package/services/jobs/jobs.ts +77 -77
- package/services/jobs/timeclock.client.ts +9 -9
- package/services/jobs/timeclock.ts +15 -15
- package/services/{livemapper → livemap}/livemap.client.ts +16 -16
- package/services/{livemapper → livemap}/livemap.ts +63 -52
- package/services/mailer/mailer.client.ts +5 -5
- package/services/mailer/mailer.ts +6 -6
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +5 -5
- package/services/qualifications/qualifications.client.ts +9 -9
- package/services/qualifications/qualifications.ts +4 -4
- package/services/settings/accounts.client.ts +92 -0
- package/services/settings/accounts.ts +526 -0
- package/services/{rector → settings}/config.client.ts +18 -18
- package/services/{rector → settings}/config.ts +26 -26
- package/services/settings/cron.client.ts +41 -0
- package/services/settings/cron.ts +119 -0
- package/services/{rector → settings}/filestore.client.ts +22 -22
- package/services/{rector → settings}/filestore.ts +23 -23
- package/services/{rector → settings}/laws.client.ts +26 -26
- package/services/{rector → settings}/laws.ts +28 -28
- package/services/settings/settings.client.ts +262 -0
- package/services/{rector/rector.ts → settings/settings.ts} +558 -149
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +1 -1
- package/services/sync/sync.client.ts +1 -1
- package/services/sync/sync.ts +33 -33
- package/services/{dmv → vehicles}/vehicles.client.ts +12 -12
- package/services/{dmv → vehicles}/vehicles.ts +11 -11
- package/services/wiki/wiki.client.ts +3 -3
- package/services/wiki/wiki.ts +3 -3
- package/svcs.ts +247 -234
- package/services/rector/rector.client.ts +0 -211
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "services/calendar/calendar.proto" (package "services.calendar", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -74,18 +74,36 @@ export interface GetCalendarResponse {
|
|
|
74
74
|
calendar?: Calendar;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* @generated from protobuf message services.calendar.
|
|
77
|
+
* @generated from protobuf message services.calendar.CreateCalendarRequest
|
|
78
78
|
*/
|
|
79
|
-
export interface
|
|
79
|
+
export interface CreateCalendarRequest {
|
|
80
80
|
/**
|
|
81
81
|
* @generated from protobuf field: resources.calendar.Calendar calendar = 1;
|
|
82
82
|
*/
|
|
83
83
|
calendar?: Calendar;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* @generated from protobuf message services.calendar.
|
|
86
|
+
* @generated from protobuf message services.calendar.CreateCalendarResponse
|
|
87
87
|
*/
|
|
88
|
-
export interface
|
|
88
|
+
export interface CreateCalendarResponse {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: resources.calendar.Calendar calendar = 1;
|
|
91
|
+
*/
|
|
92
|
+
calendar?: Calendar;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf message services.calendar.UpdateCalendarRequest
|
|
96
|
+
*/
|
|
97
|
+
export interface UpdateCalendarRequest {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: resources.calendar.Calendar calendar = 1;
|
|
100
|
+
*/
|
|
101
|
+
calendar?: Calendar;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf message services.calendar.UpdateCalendarResponse
|
|
105
|
+
*/
|
|
106
|
+
export interface UpdateCalendarResponse {
|
|
89
107
|
/**
|
|
90
108
|
* @generated from protobuf field: resources.calendar.Calendar calendar = 1;
|
|
91
109
|
*/
|
|
@@ -404,7 +422,7 @@ class ListCalendarsResponse$Type extends MessageType<ListCalendarsResponse> {
|
|
|
404
422
|
constructor() {
|
|
405
423
|
super("services.calendar.ListCalendarsResponse", [
|
|
406
424
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
|
|
407
|
-
{ no: 2, name: "calendars", kind: "message", repeat:
|
|
425
|
+
{ no: 2, name: "calendars", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Calendar }
|
|
408
426
|
]);
|
|
409
427
|
}
|
|
410
428
|
create(value?: PartialMessage<ListCalendarsResponse>): ListCalendarsResponse {
|
|
@@ -547,19 +565,111 @@ class GetCalendarResponse$Type extends MessageType<GetCalendarResponse> {
|
|
|
547
565
|
*/
|
|
548
566
|
export const GetCalendarResponse = new GetCalendarResponse$Type();
|
|
549
567
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
550
|
-
class
|
|
568
|
+
class CreateCalendarRequest$Type extends MessageType<CreateCalendarRequest> {
|
|
569
|
+
constructor() {
|
|
570
|
+
super("services.calendar.CreateCalendarRequest", [
|
|
571
|
+
{ no: 1, name: "calendar", kind: "message", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
572
|
+
]);
|
|
573
|
+
}
|
|
574
|
+
create(value?: PartialMessage<CreateCalendarRequest>): CreateCalendarRequest {
|
|
575
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
576
|
+
if (value !== undefined)
|
|
577
|
+
reflectionMergePartial<CreateCalendarRequest>(this, message, value);
|
|
578
|
+
return message;
|
|
579
|
+
}
|
|
580
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateCalendarRequest): CreateCalendarRequest {
|
|
581
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
582
|
+
while (reader.pos < end) {
|
|
583
|
+
let [fieldNo, wireType] = reader.tag();
|
|
584
|
+
switch (fieldNo) {
|
|
585
|
+
case /* resources.calendar.Calendar calendar */ 1:
|
|
586
|
+
message.calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
587
|
+
break;
|
|
588
|
+
default:
|
|
589
|
+
let u = options.readUnknownField;
|
|
590
|
+
if (u === "throw")
|
|
591
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
592
|
+
let d = reader.skip(wireType);
|
|
593
|
+
if (u !== false)
|
|
594
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return message;
|
|
598
|
+
}
|
|
599
|
+
internalBinaryWrite(message: CreateCalendarRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
600
|
+
/* resources.calendar.Calendar calendar = 1; */
|
|
601
|
+
if (message.calendar)
|
|
602
|
+
Calendar.internalBinaryWrite(message.calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
603
|
+
let u = options.writeUnknownFields;
|
|
604
|
+
if (u !== false)
|
|
605
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
606
|
+
return writer;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* @generated MessageType for protobuf message services.calendar.CreateCalendarRequest
|
|
611
|
+
*/
|
|
612
|
+
export const CreateCalendarRequest = new CreateCalendarRequest$Type();
|
|
613
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
614
|
+
class CreateCalendarResponse$Type extends MessageType<CreateCalendarResponse> {
|
|
615
|
+
constructor() {
|
|
616
|
+
super("services.calendar.CreateCalendarResponse", [
|
|
617
|
+
{ no: 1, name: "calendar", kind: "message", T: () => Calendar }
|
|
618
|
+
]);
|
|
619
|
+
}
|
|
620
|
+
create(value?: PartialMessage<CreateCalendarResponse>): CreateCalendarResponse {
|
|
621
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
622
|
+
if (value !== undefined)
|
|
623
|
+
reflectionMergePartial<CreateCalendarResponse>(this, message, value);
|
|
624
|
+
return message;
|
|
625
|
+
}
|
|
626
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateCalendarResponse): CreateCalendarResponse {
|
|
627
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
628
|
+
while (reader.pos < end) {
|
|
629
|
+
let [fieldNo, wireType] = reader.tag();
|
|
630
|
+
switch (fieldNo) {
|
|
631
|
+
case /* resources.calendar.Calendar calendar */ 1:
|
|
632
|
+
message.calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.calendar);
|
|
633
|
+
break;
|
|
634
|
+
default:
|
|
635
|
+
let u = options.readUnknownField;
|
|
636
|
+
if (u === "throw")
|
|
637
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
638
|
+
let d = reader.skip(wireType);
|
|
639
|
+
if (u !== false)
|
|
640
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return message;
|
|
644
|
+
}
|
|
645
|
+
internalBinaryWrite(message: CreateCalendarResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
646
|
+
/* resources.calendar.Calendar calendar = 1; */
|
|
647
|
+
if (message.calendar)
|
|
648
|
+
Calendar.internalBinaryWrite(message.calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
649
|
+
let u = options.writeUnknownFields;
|
|
650
|
+
if (u !== false)
|
|
651
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
652
|
+
return writer;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* @generated MessageType for protobuf message services.calendar.CreateCalendarResponse
|
|
657
|
+
*/
|
|
658
|
+
export const CreateCalendarResponse = new CreateCalendarResponse$Type();
|
|
659
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
660
|
+
class UpdateCalendarRequest$Type extends MessageType<UpdateCalendarRequest> {
|
|
551
661
|
constructor() {
|
|
552
|
-
super("services.calendar.
|
|
662
|
+
super("services.calendar.UpdateCalendarRequest", [
|
|
553
663
|
{ no: 1, name: "calendar", kind: "message", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
554
664
|
]);
|
|
555
665
|
}
|
|
556
|
-
create(value?: PartialMessage<
|
|
666
|
+
create(value?: PartialMessage<UpdateCalendarRequest>): UpdateCalendarRequest {
|
|
557
667
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
558
668
|
if (value !== undefined)
|
|
559
|
-
reflectionMergePartial<
|
|
669
|
+
reflectionMergePartial<UpdateCalendarRequest>(this, message, value);
|
|
560
670
|
return message;
|
|
561
671
|
}
|
|
562
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
672
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCalendarRequest): UpdateCalendarRequest {
|
|
563
673
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
564
674
|
while (reader.pos < end) {
|
|
565
675
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -578,7 +688,7 @@ class CreateOrUpdateCalendarRequest$Type extends MessageType<CreateOrUpdateCalen
|
|
|
578
688
|
}
|
|
579
689
|
return message;
|
|
580
690
|
}
|
|
581
|
-
internalBinaryWrite(message:
|
|
691
|
+
internalBinaryWrite(message: UpdateCalendarRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
582
692
|
/* resources.calendar.Calendar calendar = 1; */
|
|
583
693
|
if (message.calendar)
|
|
584
694
|
Calendar.internalBinaryWrite(message.calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -589,23 +699,23 @@ class CreateOrUpdateCalendarRequest$Type extends MessageType<CreateOrUpdateCalen
|
|
|
589
699
|
}
|
|
590
700
|
}
|
|
591
701
|
/**
|
|
592
|
-
* @generated MessageType for protobuf message services.calendar.
|
|
702
|
+
* @generated MessageType for protobuf message services.calendar.UpdateCalendarRequest
|
|
593
703
|
*/
|
|
594
|
-
export const
|
|
704
|
+
export const UpdateCalendarRequest = new UpdateCalendarRequest$Type();
|
|
595
705
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
596
|
-
class
|
|
706
|
+
class UpdateCalendarResponse$Type extends MessageType<UpdateCalendarResponse> {
|
|
597
707
|
constructor() {
|
|
598
|
-
super("services.calendar.
|
|
708
|
+
super("services.calendar.UpdateCalendarResponse", [
|
|
599
709
|
{ no: 1, name: "calendar", kind: "message", T: () => Calendar }
|
|
600
710
|
]);
|
|
601
711
|
}
|
|
602
|
-
create(value?: PartialMessage<
|
|
712
|
+
create(value?: PartialMessage<UpdateCalendarResponse>): UpdateCalendarResponse {
|
|
603
713
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
604
714
|
if (value !== undefined)
|
|
605
|
-
reflectionMergePartial<
|
|
715
|
+
reflectionMergePartial<UpdateCalendarResponse>(this, message, value);
|
|
606
716
|
return message;
|
|
607
717
|
}
|
|
608
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
718
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCalendarResponse): UpdateCalendarResponse {
|
|
609
719
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
610
720
|
while (reader.pos < end) {
|
|
611
721
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -624,7 +734,7 @@ class CreateOrUpdateCalendarResponse$Type extends MessageType<CreateOrUpdateCale
|
|
|
624
734
|
}
|
|
625
735
|
return message;
|
|
626
736
|
}
|
|
627
|
-
internalBinaryWrite(message:
|
|
737
|
+
internalBinaryWrite(message: UpdateCalendarResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
628
738
|
/* resources.calendar.Calendar calendar = 1; */
|
|
629
739
|
if (message.calendar)
|
|
630
740
|
Calendar.internalBinaryWrite(message.calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -635,9 +745,9 @@ class CreateOrUpdateCalendarResponse$Type extends MessageType<CreateOrUpdateCale
|
|
|
635
745
|
}
|
|
636
746
|
}
|
|
637
747
|
/**
|
|
638
|
-
* @generated MessageType for protobuf message services.calendar.
|
|
748
|
+
* @generated MessageType for protobuf message services.calendar.UpdateCalendarResponse
|
|
639
749
|
*/
|
|
640
|
-
export const
|
|
750
|
+
export const UpdateCalendarResponse = new UpdateCalendarResponse$Type();
|
|
641
751
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
642
752
|
class DeleteCalendarRequest$Type extends MessageType<DeleteCalendarRequest> {
|
|
643
753
|
constructor() {
|
|
@@ -812,7 +922,7 @@ export const ListCalendarEntriesRequest = new ListCalendarEntriesRequest$Type();
|
|
|
812
922
|
class ListCalendarEntriesResponse$Type extends MessageType<ListCalendarEntriesResponse> {
|
|
813
923
|
constructor() {
|
|
814
924
|
super("services.calendar.ListCalendarEntriesResponse", [
|
|
815
|
-
{ no: 1, name: "entries", kind: "message", repeat:
|
|
925
|
+
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntry }
|
|
816
926
|
]);
|
|
817
927
|
}
|
|
818
928
|
create(value?: PartialMessage<ListCalendarEntriesResponse>): ListCalendarEntriesResponse {
|
|
@@ -906,7 +1016,7 @@ export const GetUpcomingEntriesRequest = new GetUpcomingEntriesRequest$Type();
|
|
|
906
1016
|
class GetUpcomingEntriesResponse$Type extends MessageType<GetUpcomingEntriesResponse> {
|
|
907
1017
|
constructor() {
|
|
908
1018
|
super("services.calendar.GetUpcomingEntriesResponse", [
|
|
909
|
-
{ no: 1, name: "entries", kind: "message", repeat:
|
|
1019
|
+
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntry }
|
|
910
1020
|
]);
|
|
911
1021
|
}
|
|
912
1022
|
create(value?: PartialMessage<GetUpcomingEntriesResponse>): GetUpcomingEntriesResponse {
|
|
@@ -1395,7 +1505,7 @@ class ListCalendarEntryRSVPResponse$Type extends MessageType<ListCalendarEntryRS
|
|
|
1395
1505
|
constructor() {
|
|
1396
1506
|
super("services.calendar.ListCalendarEntryRSVPResponse", [
|
|
1397
1507
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
|
|
1398
|
-
{ no: 2, name: "entries", kind: "message", repeat:
|
|
1508
|
+
{ no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntryRSVP }
|
|
1399
1509
|
]);
|
|
1400
1510
|
}
|
|
1401
1511
|
create(value?: PartialMessage<ListCalendarEntryRSVPResponse>): ListCalendarEntryRSVPResponse {
|
|
@@ -1602,7 +1712,7 @@ class ListSubscriptionsResponse$Type extends MessageType<ListSubscriptionsRespon
|
|
|
1602
1712
|
constructor() {
|
|
1603
1713
|
super("services.calendar.ListSubscriptionsResponse", [
|
|
1604
1714
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
|
|
1605
|
-
{ no: 2, name: "subs", kind: "message", repeat:
|
|
1715
|
+
{ no: 2, name: "subs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarSub }
|
|
1606
1716
|
]);
|
|
1607
1717
|
}
|
|
1608
1718
|
create(value?: PartialMessage<ListSubscriptionsResponse>): ListSubscriptionsResponse {
|
|
@@ -1757,7 +1867,8 @@ export const SubscribeToCalendarResponse = new SubscribeToCalendarResponse$Type(
|
|
|
1757
1867
|
export const CalendarService = new ServiceType("services.calendar.CalendarService", [
|
|
1758
1868
|
{ name: "ListCalendars", options: {}, I: ListCalendarsRequest, O: ListCalendarsResponse },
|
|
1759
1869
|
{ name: "GetCalendar", options: {}, I: GetCalendarRequest, O: GetCalendarResponse },
|
|
1760
|
-
{ name: "
|
|
1870
|
+
{ name: "CreateCalendar", options: {}, I: CreateCalendarRequest, O: CreateCalendarResponse },
|
|
1871
|
+
{ name: "UpdateCalendar", options: {}, I: UpdateCalendarRequest, O: UpdateCalendarResponse },
|
|
1761
1872
|
{ name: "DeleteCalendar", options: {}, I: DeleteCalendarRequest, O: DeleteCalendarResponse },
|
|
1762
1873
|
{ name: "ListCalendarEntries", options: {}, I: ListCalendarEntriesRequest, O: ListCalendarEntriesResponse },
|
|
1763
1874
|
{ name: "GetUpcomingEntries", options: {}, I: GetUpcomingEntriesRequest, O: GetUpcomingEntriesResponse },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "services/centrum/centrum.proto" (package "services.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
2
|
// @generated from protobuf file "services/centrum/centrum.proto" (package "services.centrum", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -886,7 +886,7 @@ export const ListUnitsRequest = new ListUnitsRequest$Type();
|
|
|
886
886
|
class ListUnitsResponse$Type extends MessageType<ListUnitsResponse> {
|
|
887
887
|
constructor() {
|
|
888
888
|
super("services.centrum.ListUnitsResponse", [
|
|
889
|
-
{ no: 1, name: "units", kind: "message", repeat:
|
|
889
|
+
{ no: 1, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit }
|
|
890
890
|
]);
|
|
891
891
|
}
|
|
892
892
|
create(value?: PartialMessage<ListUnitsResponse>): ListUnitsResponse {
|
|
@@ -1335,7 +1335,7 @@ class ListUnitActivityResponse$Type extends MessageType<ListUnitActivityResponse
|
|
|
1335
1335
|
constructor() {
|
|
1336
1336
|
super("services.centrum.ListUnitActivityResponse", [
|
|
1337
1337
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
1338
|
-
{ no: 2, name: "activity", kind: "message", repeat:
|
|
1338
|
+
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UnitStatus }
|
|
1339
1339
|
]);
|
|
1340
1340
|
}
|
|
1341
1341
|
create(value?: PartialMessage<ListUnitActivityResponse>): ListUnitActivityResponse {
|
|
@@ -1575,7 +1575,7 @@ class ListDispatchesResponse$Type extends MessageType<ListDispatchesResponse> {
|
|
|
1575
1575
|
constructor() {
|
|
1576
1576
|
super("services.centrum.ListDispatchesResponse", [
|
|
1577
1577
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
1578
|
-
{ no: 2, name: "dispatches", kind: "message", repeat:
|
|
1578
|
+
{ no: 2, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch }
|
|
1579
1579
|
]);
|
|
1580
1580
|
}
|
|
1581
1581
|
create(value?: PartialMessage<ListDispatchesResponse>): ListDispatchesResponse {
|
|
@@ -2214,7 +2214,7 @@ class ListDispatchActivityResponse$Type extends MessageType<ListDispatchActivity
|
|
|
2214
2214
|
constructor() {
|
|
2215
2215
|
super("services.centrum.ListDispatchActivityResponse", [
|
|
2216
2216
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
2217
|
-
{ no: 2, name: "activity", kind: "message", repeat:
|
|
2217
|
+
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchStatus }
|
|
2218
2218
|
]);
|
|
2219
2219
|
}
|
|
2220
2220
|
create(value?: PartialMessage<ListDispatchActivityResponse>): ListDispatchActivityResponse {
|
|
@@ -2469,10 +2469,10 @@ class LatestState$Type extends MessageType<LatestState> {
|
|
|
2469
2469
|
super("services.centrum.LatestState", [
|
|
2470
2470
|
{ no: 1, name: "server_time", kind: "message", T: () => Timestamp },
|
|
2471
2471
|
{ no: 2, name: "settings", kind: "message", T: () => Settings },
|
|
2472
|
-
{ no: 3, name: "disponents", kind: "message", repeat:
|
|
2472
|
+
{ no: 3, name: "disponents", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Colleague },
|
|
2473
2473
|
{ no: 4, name: "own_unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2474
|
-
{ no: 5, name: "units", kind: "message", repeat:
|
|
2475
|
-
{ no: 6, name: "dispatches", kind: "message", repeat:
|
|
2474
|
+
{ no: 5, name: "units", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit },
|
|
2475
|
+
{ no: 6, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch }
|
|
2476
2476
|
]);
|
|
2477
2477
|
}
|
|
2478
2478
|
create(value?: PartialMessage<LatestState>): LatestState {
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "services/
|
|
1
|
+
// @generated by protobuf-ts 2.10.0 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "services/citizens/citizens.proto" (package "services.citizens", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type { SetProfilePictureResponse } from "./
|
|
10
|
-
import type { SetProfilePictureRequest } from "./
|
|
11
|
-
import type { SetUserPropsResponse } from "./
|
|
12
|
-
import type { SetUserPropsRequest } from "./
|
|
13
|
-
import type { ListUserActivityResponse } from "./
|
|
14
|
-
import type { ListUserActivityRequest } from "./
|
|
15
|
-
import type { GetUserResponse } from "./
|
|
16
|
-
import type { GetUserRequest } from "./
|
|
6
|
+
import { CitizensService } from "./citizens";
|
|
7
|
+
import type { ManageLabelsResponse } from "./citizens";
|
|
8
|
+
import type { ManageLabelsRequest } from "./citizens";
|
|
9
|
+
import type { SetProfilePictureResponse } from "./citizens";
|
|
10
|
+
import type { SetProfilePictureRequest } from "./citizens";
|
|
11
|
+
import type { SetUserPropsResponse } from "./citizens";
|
|
12
|
+
import type { SetUserPropsRequest } from "./citizens";
|
|
13
|
+
import type { ListUserActivityResponse } from "./citizens";
|
|
14
|
+
import type { ListUserActivityRequest } from "./citizens";
|
|
15
|
+
import type { GetUserResponse } from "./citizens";
|
|
16
|
+
import type { GetUserRequest } from "./citizens";
|
|
17
17
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
18
|
-
import type { ListCitizensResponse } from "./
|
|
19
|
-
import type { ListCitizensRequest } from "./
|
|
18
|
+
import type { ListCitizensResponse } from "./citizens";
|
|
19
|
+
import type { ListCitizensRequest } from "./citizens";
|
|
20
20
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
21
21
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
22
22
|
/**
|
|
23
|
-
* @generated from protobuf service services.
|
|
23
|
+
* @generated from protobuf service services.citizens.CitizensService
|
|
24
24
|
*/
|
|
25
|
-
export interface
|
|
25
|
+
export interface ICitizensServiceClient {
|
|
26
26
|
/**
|
|
27
27
|
* @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Labels", "UserProps.Email"}
|
|
28
28
|
*
|
|
29
|
-
* @generated from protobuf rpc: ListCitizens(services.
|
|
29
|
+
* @generated from protobuf rpc: ListCitizens(services.citizens.ListCitizensRequest) returns (services.citizens.ListCitizensResponse);
|
|
30
30
|
*/
|
|
31
31
|
listCitizens(input: ListCitizensRequest, options?: RpcOptions): UnaryCall<ListCitizensRequest, ListCitizensResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* @perm: Attrs=Jobs/JobGradeList
|
|
34
34
|
*
|
|
35
|
-
* @generated from protobuf rpc: GetUser(services.
|
|
35
|
+
* @generated from protobuf rpc: GetUser(services.citizens.GetUserRequest) returns (services.citizens.GetUserResponse);
|
|
36
36
|
*/
|
|
37
37
|
getUser(input: GetUserRequest, options?: RpcOptions): UnaryCall<GetUserRequest, GetUserResponse>;
|
|
38
38
|
/**
|
|
39
39
|
* @perm: Attrs=Fields/StringList:[]string{"SourceUser", "Own"}
|
|
40
40
|
*
|
|
41
|
-
* @generated from protobuf rpc: ListUserActivity(services.
|
|
41
|
+
* @generated from protobuf rpc: ListUserActivity(services.citizens.ListUserActivityRequest) returns (services.citizens.ListUserActivityResponse);
|
|
42
42
|
*/
|
|
43
43
|
listUserActivity(input: ListUserActivityRequest, options?: RpcOptions): UnaryCall<ListUserActivityRequest, ListUserActivityResponse>;
|
|
44
44
|
/**
|
|
45
45
|
* @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job", "TrafficInfractionPoints", "MugShot", "Labels"}
|
|
46
46
|
*
|
|
47
|
-
* @generated from protobuf rpc: SetUserProps(services.
|
|
47
|
+
* @generated from protobuf rpc: SetUserProps(services.citizens.SetUserPropsRequest) returns (services.citizens.SetUserPropsResponse);
|
|
48
48
|
*/
|
|
49
49
|
setUserProps(input: SetUserPropsRequest, options?: RpcOptions): UnaryCall<SetUserPropsRequest, SetUserPropsResponse>;
|
|
50
50
|
/**
|
|
51
51
|
* @perm: Name=Any
|
|
52
52
|
*
|
|
53
|
-
* @generated from protobuf rpc: SetProfilePicture(services.
|
|
53
|
+
* @generated from protobuf rpc: SetProfilePicture(services.citizens.SetProfilePictureRequest) returns (services.citizens.SetProfilePictureResponse);
|
|
54
54
|
*/
|
|
55
55
|
setProfilePicture(input: SetProfilePictureRequest, options?: RpcOptions): UnaryCall<SetProfilePictureRequest, SetProfilePictureResponse>;
|
|
56
56
|
/**
|
|
57
57
|
* @perm
|
|
58
58
|
*
|
|
59
|
-
* @generated from protobuf rpc:
|
|
59
|
+
* @generated from protobuf rpc: ManageLabels(services.citizens.ManageLabelsRequest) returns (services.citizens.ManageLabelsResponse);
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
manageLabels(input: ManageLabelsRequest, options?: RpcOptions): UnaryCall<ManageLabelsRequest, ManageLabelsResponse>;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* @generated from protobuf service services.
|
|
64
|
+
* @generated from protobuf service services.citizens.CitizensService
|
|
65
65
|
*/
|
|
66
|
-
export class
|
|
67
|
-
typeName =
|
|
68
|
-
methods =
|
|
69
|
-
options =
|
|
66
|
+
export class CitizensServiceClient implements ICitizensServiceClient, ServiceInfo {
|
|
67
|
+
typeName = CitizensService.typeName;
|
|
68
|
+
methods = CitizensService.methods;
|
|
69
|
+
options = CitizensService.options;
|
|
70
70
|
constructor(private readonly _transport: RpcTransport) {
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Labels", "UserProps.Email"}
|
|
74
74
|
*
|
|
75
|
-
* @generated from protobuf rpc: ListCitizens(services.
|
|
75
|
+
* @generated from protobuf rpc: ListCitizens(services.citizens.ListCitizensRequest) returns (services.citizens.ListCitizensResponse);
|
|
76
76
|
*/
|
|
77
77
|
listCitizens(input: ListCitizensRequest, options?: RpcOptions): UnaryCall<ListCitizensRequest, ListCitizensResponse> {
|
|
78
78
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
@@ -81,7 +81,7 @@ export class CitizenStoreServiceClient implements ICitizenStoreServiceClient, Se
|
|
|
81
81
|
/**
|
|
82
82
|
* @perm: Attrs=Jobs/JobGradeList
|
|
83
83
|
*
|
|
84
|
-
* @generated from protobuf rpc: GetUser(services.
|
|
84
|
+
* @generated from protobuf rpc: GetUser(services.citizens.GetUserRequest) returns (services.citizens.GetUserResponse);
|
|
85
85
|
*/
|
|
86
86
|
getUser(input: GetUserRequest, options?: RpcOptions): UnaryCall<GetUserRequest, GetUserResponse> {
|
|
87
87
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
@@ -90,7 +90,7 @@ export class CitizenStoreServiceClient implements ICitizenStoreServiceClient, Se
|
|
|
90
90
|
/**
|
|
91
91
|
* @perm: Attrs=Fields/StringList:[]string{"SourceUser", "Own"}
|
|
92
92
|
*
|
|
93
|
-
* @generated from protobuf rpc: ListUserActivity(services.
|
|
93
|
+
* @generated from protobuf rpc: ListUserActivity(services.citizens.ListUserActivityRequest) returns (services.citizens.ListUserActivityResponse);
|
|
94
94
|
*/
|
|
95
95
|
listUserActivity(input: ListUserActivityRequest, options?: RpcOptions): UnaryCall<ListUserActivityRequest, ListUserActivityResponse> {
|
|
96
96
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
@@ -99,7 +99,7 @@ export class CitizenStoreServiceClient implements ICitizenStoreServiceClient, Se
|
|
|
99
99
|
/**
|
|
100
100
|
* @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job", "TrafficInfractionPoints", "MugShot", "Labels"}
|
|
101
101
|
*
|
|
102
|
-
* @generated from protobuf rpc: SetUserProps(services.
|
|
102
|
+
* @generated from protobuf rpc: SetUserProps(services.citizens.SetUserPropsRequest) returns (services.citizens.SetUserPropsResponse);
|
|
103
103
|
*/
|
|
104
104
|
setUserProps(input: SetUserPropsRequest, options?: RpcOptions): UnaryCall<SetUserPropsRequest, SetUserPropsResponse> {
|
|
105
105
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
@@ -108,7 +108,7 @@ export class CitizenStoreServiceClient implements ICitizenStoreServiceClient, Se
|
|
|
108
108
|
/**
|
|
109
109
|
* @perm: Name=Any
|
|
110
110
|
*
|
|
111
|
-
* @generated from protobuf rpc: SetProfilePicture(services.
|
|
111
|
+
* @generated from protobuf rpc: SetProfilePicture(services.citizens.SetProfilePictureRequest) returns (services.citizens.SetProfilePictureResponse);
|
|
112
112
|
*/
|
|
113
113
|
setProfilePicture(input: SetProfilePictureRequest, options?: RpcOptions): UnaryCall<SetProfilePictureRequest, SetProfilePictureResponse> {
|
|
114
114
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
@@ -117,10 +117,10 @@ export class CitizenStoreServiceClient implements ICitizenStoreServiceClient, Se
|
|
|
117
117
|
/**
|
|
118
118
|
* @perm
|
|
119
119
|
*
|
|
120
|
-
* @generated from protobuf rpc:
|
|
120
|
+
* @generated from protobuf rpc: ManageLabels(services.citizens.ManageLabelsRequest) returns (services.citizens.ManageLabelsResponse);
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
manageLabels(input: ManageLabelsRequest, options?: RpcOptions): UnaryCall<ManageLabelsRequest, ManageLabelsResponse> {
|
|
123
123
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
124
|
-
return stackIntercept<
|
|
124
|
+
return stackIntercept<ManageLabelsRequest, ManageLabelsResponse>("unary", this._transport, method, opt, input);
|
|
125
125
|
}
|
|
126
126
|
}
|