@fivenet-app/gen 0.9.4-0 → 2025.4.8
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 +2 -2
- package/perms.ts +7 -11
- package/resources/accounts/accounts.ts +1 -1
- package/resources/accounts/oauth2.ts +1 -1
- package/resources/calendar/access.ts +3 -3
- package/resources/calendar/calendar.ts +3 -1
- package/resources/centrum/access.ts +19 -4
- package/resources/centrum/attributes.ts +182 -0
- package/resources/centrum/dispatches.ts +11 -9
- package/resources/centrum/disponents.ts +81 -0
- package/resources/centrum/settings.ts +5 -1
- package/resources/centrum/units.ts +9 -9
- 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 +7 -5
- package/resources/documents/activity.ts +3 -1
- package/resources/documents/category.ts +1 -1
- package/resources/documents/comment.ts +1 -1
- package/resources/documents/documents.ts +3 -3
- package/resources/documents/requests.ts +1 -1
- package/resources/documents/templates.ts +18 -3
- package/resources/documents/workflow.ts +3 -1
- package/resources/filestore/file.ts +1 -1
- package/resources/internet/access.ts +47 -47
- package/resources/internet/ads.ts +1 -1
- package/resources/internet/domain.ts +44 -11
- package/resources/internet/page.ts +194 -4
- package/resources/internet/search.ts +34 -10
- package/resources/jobs/activity.ts +3 -1
- package/resources/jobs/colleagues.ts +1 -1
- package/resources/jobs/conduct.ts +1 -1
- package/resources/jobs/labels.ts +1 -1
- package/resources/jobs/timeclock.ts +1 -1
- package/resources/laws/laws.ts +1 -1
- package/resources/livemap/livemap.ts +313 -294
- package/resources/livemap/tracker.ts +1 -1
- package/resources/mailer/access.ts +4 -4
- package/resources/mailer/email.ts +1 -1
- package/resources/mailer/events.ts +1 -1
- package/resources/mailer/message.ts +127 -21
- package/resources/mailer/settings.ts +1 -1
- package/resources/mailer/template.ts +1 -1
- package/resources/mailer/thread.ts +1 -1
- package/resources/notifications/events.ts +74 -2
- package/resources/notifications/notifications.ts +3 -1
- package/resources/permissions/permissions.ts +174 -3
- package/resources/qualifications/access.ts +18 -9
- package/resources/qualifications/exam.ts +186 -4
- package/resources/qualifications/qualifications.ts +35 -7
- package/resources/rector/audit.ts +1 -1
- 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 +1 -1
- package/resources/sync/data.ts +1 -1
- package/resources/timestamp/timestamp.ts +1 -1
- package/resources/users/activity.ts +3 -1
- package/resources/users/job_props.ts +3 -1
- package/resources/users/job_settings.ts +47 -3
- package/resources/users/jobs.ts +1 -1
- package/resources/users/labels.ts +3 -1
- package/resources/users/licenses.ts +3 -3
- package/resources/users/props.ts +1 -1
- package/resources/users/users.ts +1 -1
- package/resources/vehicles/vehicles.ts +38 -5
- package/resources/wiki/access.ts +4 -8
- package/resources/wiki/activity.ts +3 -1
- package/resources/wiki/page.ts +1 -1
- package/services/auth/auth.client.ts +7 -1
- package/services/auth/auth.ts +94 -17
- package/services/calendar/calendar.client.ts +44 -27
- package/services/calendar/calendar.ts +175 -25
- package/services/centrum/centrum.client.ts +1 -1
- package/services/centrum/centrum.ts +156 -13
- package/services/citizenstore/citizenstore.client.ts +1 -1
- package/services/citizenstore/citizenstore.ts +1 -1
- 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 +3 -3
- package/services/docstore/docstore.ts +212 -17
- package/services/internet/ads.client.ts +1 -1
- package/services/internet/ads.ts +1 -1
- package/services/internet/domain.client.ts +13 -30
- package/services/internet/domain.ts +159 -196
- package/services/internet/internet.client.ts +1 -1
- package/services/internet/internet.ts +13 -2
- package/services/jobs/conduct.client.ts +1 -1
- package/services/jobs/conduct.ts +15 -2
- package/services/jobs/jobs.client.ts +1 -1
- package/services/jobs/jobs.ts +29 -3
- package/services/jobs/timeclock.client.ts +1 -1
- package/services/jobs/timeclock.ts +19 -19
- package/services/livemapper/livemap.client.ts +1 -1
- package/services/livemapper/livemap.ts +129 -27
- package/services/mailer/mailer.client.ts +1 -1
- package/services/mailer/mailer.ts +57 -5
- package/services/notificator/notificator.client.ts +1 -1
- package/services/notificator/notificator.ts +15 -2
- package/services/qualifications/qualifications.client.ts +11 -11
- package/services/qualifications/qualifications.ts +82 -7
- 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 +29 -3
- package/services/rector/rector.client.ts +1 -1
- package/services/rector/rector.ts +72 -7
- package/services/stats/stats.client.ts +1 -1
- package/services/stats/stats.ts +16 -3
- package/services/sync/sync.client.ts +7 -1
- package/services/sync/sync.ts +58 -6
- package/services/wiki/wiki.client.ts +3 -3
- package/services/wiki/wiki.ts +15 -2
- package/svcs.ts +8 -4
- package/resources/centrum/general.ts +0 -231
package/services/sync/sync.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 "services/sync/sync.proto" (package "services.sync", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
import { WireType } from "@protobuf-ts/runtime";
|
|
6
6
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
7
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
8
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
9
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
11
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
@@ -289,7 +289,20 @@ class GetStatusRequest$Type extends MessageType<GetStatusRequest> {
|
|
|
289
289
|
return message;
|
|
290
290
|
}
|
|
291
291
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStatusRequest): GetStatusRequest {
|
|
292
|
-
|
|
292
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
293
|
+
while (reader.pos < end) {
|
|
294
|
+
let [fieldNo, wireType] = reader.tag();
|
|
295
|
+
switch (fieldNo) {
|
|
296
|
+
default:
|
|
297
|
+
let u = options.readUnknownField;
|
|
298
|
+
if (u === "throw")
|
|
299
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
300
|
+
let d = reader.skip(wireType);
|
|
301
|
+
if (u !== false)
|
|
302
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
293
306
|
}
|
|
294
307
|
internalBinaryWrite(message: GetStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
295
308
|
let u = options.writeUnknownFields;
|
|
@@ -501,7 +514,20 @@ class AddActivityResponse$Type extends MessageType<AddActivityResponse> {
|
|
|
501
514
|
return message;
|
|
502
515
|
}
|
|
503
516
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddActivityResponse): AddActivityResponse {
|
|
504
|
-
|
|
517
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
518
|
+
while (reader.pos < end) {
|
|
519
|
+
let [fieldNo, wireType] = reader.tag();
|
|
520
|
+
switch (fieldNo) {
|
|
521
|
+
default:
|
|
522
|
+
let u = options.readUnknownField;
|
|
523
|
+
if (u === "throw")
|
|
524
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
525
|
+
let d = reader.skip(wireType);
|
|
526
|
+
if (u !== false)
|
|
527
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return message;
|
|
505
531
|
}
|
|
506
532
|
internalBinaryWrite(message: AddActivityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
507
533
|
let u = options.writeUnknownFields;
|
|
@@ -703,7 +729,20 @@ class TransferAccountResponse$Type extends MessageType<TransferAccountResponse>
|
|
|
703
729
|
return message;
|
|
704
730
|
}
|
|
705
731
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransferAccountResponse): TransferAccountResponse {
|
|
706
|
-
|
|
732
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
733
|
+
while (reader.pos < end) {
|
|
734
|
+
let [fieldNo, wireType] = reader.tag();
|
|
735
|
+
switch (fieldNo) {
|
|
736
|
+
default:
|
|
737
|
+
let u = options.readUnknownField;
|
|
738
|
+
if (u === "throw")
|
|
739
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
740
|
+
let d = reader.skip(wireType);
|
|
741
|
+
if (u !== false)
|
|
742
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return message;
|
|
707
746
|
}
|
|
708
747
|
internalBinaryWrite(message: TransferAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
709
748
|
let u = options.writeUnknownFields;
|
|
@@ -972,7 +1011,20 @@ class StreamRequest$Type extends MessageType<StreamRequest> {
|
|
|
972
1011
|
return message;
|
|
973
1012
|
}
|
|
974
1013
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamRequest): StreamRequest {
|
|
975
|
-
|
|
1014
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1015
|
+
while (reader.pos < end) {
|
|
1016
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1017
|
+
switch (fieldNo) {
|
|
1018
|
+
default:
|
|
1019
|
+
let u = options.readUnknownField;
|
|
1020
|
+
if (u === "throw")
|
|
1021
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1022
|
+
let d = reader.skip(wireType);
|
|
1023
|
+
if (u !== false)
|
|
1024
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return message;
|
|
976
1028
|
}
|
|
977
1029
|
internalBinaryWrite(message: StreamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
978
1030
|
let u = options.writeUnknownFields;
|
|
@@ -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 "services/wiki/wiki.proto" (package "services.wiki", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -42,7 +42,7 @@ export interface IWikiServiceClient {
|
|
|
42
42
|
*/
|
|
43
43
|
createPage(input: CreatePageRequest, options?: RpcOptions): UnaryCall<CreatePageRequest, CreatePageResponse>;
|
|
44
44
|
/**
|
|
45
|
-
* @perm
|
|
45
|
+
* @perm: Name=ListPages
|
|
46
46
|
*
|
|
47
47
|
* @generated from protobuf rpc: UpdatePage(services.wiki.UpdatePageRequest) returns (services.wiki.UpdatePageResponse);
|
|
48
48
|
*/
|
|
@@ -97,7 +97,7 @@ export class WikiServiceClient implements IWikiServiceClient, ServiceInfo {
|
|
|
97
97
|
return stackIntercept<CreatePageRequest, CreatePageResponse>("unary", this._transport, method, opt, input);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* @perm
|
|
100
|
+
* @perm: Name=ListPages
|
|
101
101
|
*
|
|
102
102
|
* @generated from protobuf rpc: UpdatePage(services.wiki.UpdatePageRequest) returns (services.wiki.UpdatePageResponse);
|
|
103
103
|
*/
|
package/services/wiki/wiki.ts
CHANGED
|
@@ -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 "services/wiki/wiki.proto" (package "services.wiki", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -615,7 +615,20 @@ class DeletePageResponse$Type extends MessageType<DeletePageResponse> {
|
|
|
615
615
|
return message;
|
|
616
616
|
}
|
|
617
617
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePageResponse): DeletePageResponse {
|
|
618
|
-
|
|
618
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
619
|
+
while (reader.pos < end) {
|
|
620
|
+
let [fieldNo, wireType] = reader.tag();
|
|
621
|
+
switch (fieldNo) {
|
|
622
|
+
default:
|
|
623
|
+
let u = options.readUnknownField;
|
|
624
|
+
if (u === "throw")
|
|
625
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
626
|
+
let d = reader.skip(wireType);
|
|
627
|
+
if (u !== false)
|
|
628
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return message;
|
|
619
632
|
}
|
|
620
633
|
internalBinaryWrite(message: DeletePageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
621
634
|
let u = options.writeUnknownFields;
|
package/svcs.ts
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
// source: resources/calendar/access.proto
|
|
5
5
|
// source: resources/calendar/calendar.proto
|
|
6
6
|
// source: resources/centrum/access.proto
|
|
7
|
+
// source: resources/centrum/attributes.proto
|
|
7
8
|
// source: resources/centrum/dispatches.proto
|
|
8
|
-
// source: resources/centrum/
|
|
9
|
+
// source: resources/centrum/disponents.proto
|
|
9
10
|
// source: resources/centrum/settings.proto
|
|
10
11
|
// source: resources/centrum/units.proto
|
|
12
|
+
// source: resources/centrum/user_unit.proto
|
|
11
13
|
// source: resources/common/error.proto
|
|
12
14
|
// source: resources/common/i18n.proto
|
|
13
15
|
// source: resources/common/uuid.proto
|
|
@@ -15,6 +17,7 @@
|
|
|
15
17
|
// source: resources/common/cron/cron.proto
|
|
16
18
|
// source: resources/common/database/database.proto
|
|
17
19
|
// source: resources/common/grpcws/grpcws.proto
|
|
20
|
+
// source: resources/common/tests/objects.proto
|
|
18
21
|
// source: resources/documents/access.proto
|
|
19
22
|
// source: resources/documents/activity.proto
|
|
20
23
|
// source: resources/documents/category.proto
|
|
@@ -51,6 +54,7 @@
|
|
|
51
54
|
// source: resources/qualifications/exam.proto
|
|
52
55
|
// source: resources/qualifications/qualifications.proto
|
|
53
56
|
// source: resources/rector/audit.proto
|
|
57
|
+
// source: resources/rector/banner.proto
|
|
54
58
|
// source: resources/rector/config.proto
|
|
55
59
|
// source: resources/stats/stats.proto
|
|
56
60
|
// source: resources/sync/activity.proto
|
|
@@ -135,7 +139,8 @@ export const grpcMethods = [
|
|
|
135
139
|
'AuthService/SetSuperUserMode',
|
|
136
140
|
'CalendarService/ListCalendars',
|
|
137
141
|
'CalendarService/GetCalendar',
|
|
138
|
-
'CalendarService/
|
|
142
|
+
'CalendarService/CreateCalendar',
|
|
143
|
+
'CalendarService/UpdateCalendar',
|
|
139
144
|
'CalendarService/DeleteCalendar',
|
|
140
145
|
'CalendarService/ListCalendarEntries',
|
|
141
146
|
'CalendarService/GetUpcomingEntries',
|
|
@@ -218,10 +223,9 @@ export const grpcMethods = [
|
|
|
218
223
|
'DocStoreService/SetDocumentReminder',
|
|
219
224
|
'DomainService/ListTLDs',
|
|
220
225
|
'DomainService/CheckDomainAvailability',
|
|
221
|
-
'DomainService/ListDomains',
|
|
222
226
|
'DomainService/RegisterDomain',
|
|
227
|
+
'DomainService/ListDomains',
|
|
223
228
|
'DomainService/UpdateDomain',
|
|
224
|
-
'DomainService/TransferDomain',
|
|
225
229
|
'InternetService/Search',
|
|
226
230
|
'InternetService/GetPage',
|
|
227
231
|
'JobsConductService/ListConductEntries',
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
-
// @generated from protobuf file "resources/centrum/general.proto" (package "resources.centrum", syntax proto3)
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { Timestamp } from "../timestamp/timestamp";
|
|
14
|
-
import { Colleague } from "../jobs/colleagues";
|
|
15
|
-
/**
|
|
16
|
-
* @generated from protobuf message resources.centrum.Attributes
|
|
17
|
-
*/
|
|
18
|
-
export interface Attributes {
|
|
19
|
-
/**
|
|
20
|
-
* @sanitize: method=StripTags
|
|
21
|
-
*
|
|
22
|
-
* @generated from protobuf field: repeated string list = 1;
|
|
23
|
-
*/
|
|
24
|
-
list: string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf message resources.centrum.Disponents
|
|
28
|
-
*/
|
|
29
|
-
export interface Disponents {
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf field: string job = 1;
|
|
32
|
-
*/
|
|
33
|
-
job: string;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf field: repeated resources.jobs.Colleague disponents = 2;
|
|
36
|
-
*/
|
|
37
|
-
disponents: Colleague[];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @generated from protobuf message resources.centrum.UserUnitMapping
|
|
41
|
-
*/
|
|
42
|
-
export interface UserUnitMapping {
|
|
43
|
-
/**
|
|
44
|
-
* @generated from protobuf field: uint64 unit_id = 1;
|
|
45
|
-
*/
|
|
46
|
-
unitId: number;
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: string job = 2;
|
|
49
|
-
*/
|
|
50
|
-
job: string;
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf field: int32 user_id = 3;
|
|
53
|
-
*/
|
|
54
|
-
userId: number;
|
|
55
|
-
/**
|
|
56
|
-
* @generated from protobuf field: resources.timestamp.Timestamp created_at = 4;
|
|
57
|
-
*/
|
|
58
|
-
createdAt?: Timestamp;
|
|
59
|
-
}
|
|
60
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
61
|
-
class Attributes$Type extends MessageType<Attributes> {
|
|
62
|
-
constructor() {
|
|
63
|
-
super("resources.centrum.Attributes", [
|
|
64
|
-
{ no: 1, name: "list", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
65
|
-
]);
|
|
66
|
-
}
|
|
67
|
-
create(value?: PartialMessage<Attributes>): Attributes {
|
|
68
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
69
|
-
message.list = [];
|
|
70
|
-
if (value !== undefined)
|
|
71
|
-
reflectionMergePartial<Attributes>(this, message, value);
|
|
72
|
-
return message;
|
|
73
|
-
}
|
|
74
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Attributes): Attributes {
|
|
75
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
76
|
-
while (reader.pos < end) {
|
|
77
|
-
let [fieldNo, wireType] = reader.tag();
|
|
78
|
-
switch (fieldNo) {
|
|
79
|
-
case /* repeated string list */ 1:
|
|
80
|
-
message.list.push(reader.string());
|
|
81
|
-
break;
|
|
82
|
-
default:
|
|
83
|
-
let u = options.readUnknownField;
|
|
84
|
-
if (u === "throw")
|
|
85
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
86
|
-
let d = reader.skip(wireType);
|
|
87
|
-
if (u !== false)
|
|
88
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return message;
|
|
92
|
-
}
|
|
93
|
-
internalBinaryWrite(message: Attributes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
94
|
-
/* repeated string list = 1; */
|
|
95
|
-
for (let i = 0; i < message.list.length; i++)
|
|
96
|
-
writer.tag(1, WireType.LengthDelimited).string(message.list[i]);
|
|
97
|
-
let u = options.writeUnknownFields;
|
|
98
|
-
if (u !== false)
|
|
99
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
100
|
-
return writer;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @generated MessageType for protobuf message resources.centrum.Attributes
|
|
105
|
-
*/
|
|
106
|
-
export const Attributes = new Attributes$Type();
|
|
107
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
108
|
-
class Disponents$Type extends MessageType<Disponents> {
|
|
109
|
-
constructor() {
|
|
110
|
-
super("resources.centrum.Disponents", [
|
|
111
|
-
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
112
|
-
{ no: 2, name: "disponents", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Colleague }
|
|
113
|
-
]);
|
|
114
|
-
}
|
|
115
|
-
create(value?: PartialMessage<Disponents>): Disponents {
|
|
116
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
117
|
-
message.job = "";
|
|
118
|
-
message.disponents = [];
|
|
119
|
-
if (value !== undefined)
|
|
120
|
-
reflectionMergePartial<Disponents>(this, message, value);
|
|
121
|
-
return message;
|
|
122
|
-
}
|
|
123
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Disponents): Disponents {
|
|
124
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
125
|
-
while (reader.pos < end) {
|
|
126
|
-
let [fieldNo, wireType] = reader.tag();
|
|
127
|
-
switch (fieldNo) {
|
|
128
|
-
case /* string job */ 1:
|
|
129
|
-
message.job = reader.string();
|
|
130
|
-
break;
|
|
131
|
-
case /* repeated resources.jobs.Colleague disponents */ 2:
|
|
132
|
-
message.disponents.push(Colleague.internalBinaryRead(reader, reader.uint32(), options));
|
|
133
|
-
break;
|
|
134
|
-
default:
|
|
135
|
-
let u = options.readUnknownField;
|
|
136
|
-
if (u === "throw")
|
|
137
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
138
|
-
let d = reader.skip(wireType);
|
|
139
|
-
if (u !== false)
|
|
140
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return message;
|
|
144
|
-
}
|
|
145
|
-
internalBinaryWrite(message: Disponents, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
146
|
-
/* string job = 1; */
|
|
147
|
-
if (message.job !== "")
|
|
148
|
-
writer.tag(1, WireType.LengthDelimited).string(message.job);
|
|
149
|
-
/* repeated resources.jobs.Colleague disponents = 2; */
|
|
150
|
-
for (let i = 0; i < message.disponents.length; i++)
|
|
151
|
-
Colleague.internalBinaryWrite(message.disponents[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
152
|
-
let u = options.writeUnknownFields;
|
|
153
|
-
if (u !== false)
|
|
154
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
155
|
-
return writer;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* @generated MessageType for protobuf message resources.centrum.Disponents
|
|
160
|
-
*/
|
|
161
|
-
export const Disponents = new Disponents$Type();
|
|
162
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
163
|
-
class UserUnitMapping$Type extends MessageType<UserUnitMapping> {
|
|
164
|
-
constructor() {
|
|
165
|
-
super("resources.centrum.UserUnitMapping", [
|
|
166
|
-
{ no: 1, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
167
|
-
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
168
|
-
{ no: 3, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } },
|
|
169
|
-
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp }
|
|
170
|
-
]);
|
|
171
|
-
}
|
|
172
|
-
create(value?: PartialMessage<UserUnitMapping>): UserUnitMapping {
|
|
173
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
174
|
-
message.unitId = 0;
|
|
175
|
-
message.job = "";
|
|
176
|
-
message.userId = 0;
|
|
177
|
-
if (value !== undefined)
|
|
178
|
-
reflectionMergePartial<UserUnitMapping>(this, message, value);
|
|
179
|
-
return message;
|
|
180
|
-
}
|
|
181
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserUnitMapping): UserUnitMapping {
|
|
182
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
183
|
-
while (reader.pos < end) {
|
|
184
|
-
let [fieldNo, wireType] = reader.tag();
|
|
185
|
-
switch (fieldNo) {
|
|
186
|
-
case /* uint64 unit_id */ 1:
|
|
187
|
-
message.unitId = reader.uint64().toNumber();
|
|
188
|
-
break;
|
|
189
|
-
case /* string job */ 2:
|
|
190
|
-
message.job = reader.string();
|
|
191
|
-
break;
|
|
192
|
-
case /* int32 user_id */ 3:
|
|
193
|
-
message.userId = reader.int32();
|
|
194
|
-
break;
|
|
195
|
-
case /* resources.timestamp.Timestamp created_at */ 4:
|
|
196
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
197
|
-
break;
|
|
198
|
-
default:
|
|
199
|
-
let u = options.readUnknownField;
|
|
200
|
-
if (u === "throw")
|
|
201
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
202
|
-
let d = reader.skip(wireType);
|
|
203
|
-
if (u !== false)
|
|
204
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return message;
|
|
208
|
-
}
|
|
209
|
-
internalBinaryWrite(message: UserUnitMapping, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
210
|
-
/* uint64 unit_id = 1; */
|
|
211
|
-
if (message.unitId !== 0)
|
|
212
|
-
writer.tag(1, WireType.Varint).uint64(message.unitId);
|
|
213
|
-
/* string job = 2; */
|
|
214
|
-
if (message.job !== "")
|
|
215
|
-
writer.tag(2, WireType.LengthDelimited).string(message.job);
|
|
216
|
-
/* int32 user_id = 3; */
|
|
217
|
-
if (message.userId !== 0)
|
|
218
|
-
writer.tag(3, WireType.Varint).int32(message.userId);
|
|
219
|
-
/* resources.timestamp.Timestamp created_at = 4; */
|
|
220
|
-
if (message.createdAt)
|
|
221
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
222
|
-
let u = options.writeUnknownFields;
|
|
223
|
-
if (u !== false)
|
|
224
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
225
|
-
return writer;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* @generated MessageType for protobuf message resources.centrum.UserUnitMapping
|
|
230
|
-
*/
|
|
231
|
-
export const UserUnitMapping = new UserUnitMapping$Type();
|