@fivenet-app/gen 2025.4.8 → 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 -91
- 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 +4 -727
- 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 +1 -1
- package/services/calendar/calendar.ts +6 -6
- 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} +163 -180
- 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 +1 -1
- 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 +1 -1
- package/services/wiki/wiki.ts +3 -3
- package/svcs.ts +247 -235
- package/services/rector/rector.client.ts +0 -211
package/services/auth/auth.ts
CHANGED
|
@@ -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/auth/auth.proto" (package "services.auth", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -12,7 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
|
12
12
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
13
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
14
|
import { User } from "../../resources/users/users";
|
|
15
|
-
import { JobProps } from "../../resources/
|
|
15
|
+
import { JobProps } from "../../resources/jobs/job_props";
|
|
16
16
|
import { Character } from "../../resources/accounts/accounts";
|
|
17
17
|
import { OAuth2Account } from "../../resources/accounts/oauth2";
|
|
18
18
|
import { OAuth2Provider } from "../../resources/accounts/oauth2";
|
|
@@ -190,7 +190,7 @@ export interface ChooseCharacterResponse {
|
|
|
190
190
|
*/
|
|
191
191
|
permissions: string[];
|
|
192
192
|
/**
|
|
193
|
-
* @generated from protobuf field: resources.
|
|
193
|
+
* @generated from protobuf field: resources.jobs.JobProps job_props = 3;
|
|
194
194
|
*/
|
|
195
195
|
jobProps?: JobProps;
|
|
196
196
|
/**
|
|
@@ -235,9 +235,9 @@ export interface DeleteOAuth2ConnectionResponse {
|
|
|
235
235
|
success: boolean;
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* @generated from protobuf message services.auth.
|
|
238
|
+
* @generated from protobuf message services.auth.SetSuperuserModeRequest
|
|
239
239
|
*/
|
|
240
|
-
export interface
|
|
240
|
+
export interface SetSuperuserModeRequest {
|
|
241
241
|
/**
|
|
242
242
|
* @generated from protobuf field: bool superuser = 1;
|
|
243
243
|
*/
|
|
@@ -248,9 +248,9 @@ export interface SetSuperUserModeRequest {
|
|
|
248
248
|
job?: string;
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
|
-
* @generated from protobuf message services.auth.
|
|
251
|
+
* @generated from protobuf message services.auth.SetSuperuserModeResponse
|
|
252
252
|
*/
|
|
253
|
-
export interface
|
|
253
|
+
export interface SetSuperuserModeResponse {
|
|
254
254
|
/**
|
|
255
255
|
* @generated from protobuf field: resources.timestamp.Timestamp expires = 1;
|
|
256
256
|
*/
|
|
@@ -260,7 +260,7 @@ export interface SetSuperUserModeResponse {
|
|
|
260
260
|
*/
|
|
261
261
|
permissions: string[];
|
|
262
262
|
/**
|
|
263
|
-
* @generated from protobuf field: optional resources.
|
|
263
|
+
* @generated from protobuf field: optional resources.jobs.JobProps job_props = 3;
|
|
264
264
|
*/
|
|
265
265
|
jobProps?: JobProps;
|
|
266
266
|
/**
|
|
@@ -824,8 +824,8 @@ class GetAccountInfoResponse$Type extends MessageType<GetAccountInfoResponse> {
|
|
|
824
824
|
constructor() {
|
|
825
825
|
super("services.auth.GetAccountInfoResponse", [
|
|
826
826
|
{ no: 1, name: "account", kind: "message", T: () => Account },
|
|
827
|
-
{ no: 2, name: "oauth2_providers", kind: "message", repeat:
|
|
828
|
-
{ no: 3, name: "oauth2_connections", kind: "message", repeat:
|
|
827
|
+
{ no: 2, name: "oauth2_providers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Provider },
|
|
828
|
+
{ no: 3, name: "oauth2_connections", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OAuth2Account }
|
|
829
829
|
]);
|
|
830
830
|
}
|
|
831
831
|
create(value?: PartialMessage<GetAccountInfoResponse>): GetAccountInfoResponse {
|
|
@@ -923,7 +923,7 @@ export const GetCharactersRequest = new GetCharactersRequest$Type();
|
|
|
923
923
|
class GetCharactersResponse$Type extends MessageType<GetCharactersResponse> {
|
|
924
924
|
constructor() {
|
|
925
925
|
super("services.auth.GetCharactersResponse", [
|
|
926
|
-
{ no: 1, name: "chars", kind: "message", repeat:
|
|
926
|
+
{ no: 1, name: "chars", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Character }
|
|
927
927
|
]);
|
|
928
928
|
}
|
|
929
929
|
create(value?: PartialMessage<GetCharactersResponse>): GetCharactersResponse {
|
|
@@ -1043,7 +1043,7 @@ class ChooseCharacterResponse$Type extends MessageType<ChooseCharacterResponse>
|
|
|
1043
1043
|
case /* repeated string permissions */ 2:
|
|
1044
1044
|
message.permissions.push(reader.string());
|
|
1045
1045
|
break;
|
|
1046
|
-
case /* resources.
|
|
1046
|
+
case /* resources.jobs.JobProps job_props */ 3:
|
|
1047
1047
|
message.jobProps = JobProps.internalBinaryRead(reader, reader.uint32(), options, message.jobProps);
|
|
1048
1048
|
break;
|
|
1049
1049
|
case /* resources.users.User char */ 4:
|
|
@@ -1070,7 +1070,7 @@ class ChooseCharacterResponse$Type extends MessageType<ChooseCharacterResponse>
|
|
|
1070
1070
|
/* repeated string permissions = 2; */
|
|
1071
1071
|
for (let i = 0; i < message.permissions.length; i++)
|
|
1072
1072
|
writer.tag(2, WireType.LengthDelimited).string(message.permissions[i]);
|
|
1073
|
-
/* resources.
|
|
1073
|
+
/* resources.jobs.JobProps job_props = 3; */
|
|
1074
1074
|
if (message.jobProps)
|
|
1075
1075
|
JobProps.internalBinaryWrite(message.jobProps, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1076
1076
|
/* resources.users.User char = 4; */
|
|
@@ -1269,21 +1269,21 @@ class DeleteOAuth2ConnectionResponse$Type extends MessageType<DeleteOAuth2Connec
|
|
|
1269
1269
|
*/
|
|
1270
1270
|
export const DeleteOAuth2ConnectionResponse = new DeleteOAuth2ConnectionResponse$Type();
|
|
1271
1271
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1272
|
-
class
|
|
1272
|
+
class SetSuperuserModeRequest$Type extends MessageType<SetSuperuserModeRequest> {
|
|
1273
1273
|
constructor() {
|
|
1274
|
-
super("services.auth.
|
|
1274
|
+
super("services.auth.SetSuperuserModeRequest", [
|
|
1275
1275
|
{ no: 1, name: "superuser", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1276
1276
|
{ no: 2, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
|
|
1277
1277
|
]);
|
|
1278
1278
|
}
|
|
1279
|
-
create(value?: PartialMessage<
|
|
1279
|
+
create(value?: PartialMessage<SetSuperuserModeRequest>): SetSuperuserModeRequest {
|
|
1280
1280
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1281
1281
|
message.superuser = false;
|
|
1282
1282
|
if (value !== undefined)
|
|
1283
|
-
reflectionMergePartial<
|
|
1283
|
+
reflectionMergePartial<SetSuperuserModeRequest>(this, message, value);
|
|
1284
1284
|
return message;
|
|
1285
1285
|
}
|
|
1286
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1286
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSuperuserModeRequest): SetSuperuserModeRequest {
|
|
1287
1287
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1288
1288
|
while (reader.pos < end) {
|
|
1289
1289
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1305,7 +1305,7 @@ class SetSuperUserModeRequest$Type extends MessageType<SetSuperUserModeRequest>
|
|
|
1305
1305
|
}
|
|
1306
1306
|
return message;
|
|
1307
1307
|
}
|
|
1308
|
-
internalBinaryWrite(message:
|
|
1308
|
+
internalBinaryWrite(message: SetSuperuserModeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1309
1309
|
/* bool superuser = 1; */
|
|
1310
1310
|
if (message.superuser !== false)
|
|
1311
1311
|
writer.tag(1, WireType.Varint).bool(message.superuser);
|
|
@@ -1319,27 +1319,27 @@ class SetSuperUserModeRequest$Type extends MessageType<SetSuperUserModeRequest>
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
/**
|
|
1322
|
-
* @generated MessageType for protobuf message services.auth.
|
|
1322
|
+
* @generated MessageType for protobuf message services.auth.SetSuperuserModeRequest
|
|
1323
1323
|
*/
|
|
1324
|
-
export const
|
|
1324
|
+
export const SetSuperuserModeRequest = new SetSuperuserModeRequest$Type();
|
|
1325
1325
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1326
|
-
class
|
|
1326
|
+
class SetSuperuserModeResponse$Type extends MessageType<SetSuperuserModeResponse> {
|
|
1327
1327
|
constructor() {
|
|
1328
|
-
super("services.auth.
|
|
1328
|
+
super("services.auth.SetSuperuserModeResponse", [
|
|
1329
1329
|
{ no: 1, name: "expires", kind: "message", T: () => Timestamp },
|
|
1330
1330
|
{ no: 2, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1331
1331
|
{ no: 3, name: "job_props", kind: "message", T: () => JobProps },
|
|
1332
1332
|
{ no: 4, name: "char", kind: "message", T: () => User }
|
|
1333
1333
|
]);
|
|
1334
1334
|
}
|
|
1335
|
-
create(value?: PartialMessage<
|
|
1335
|
+
create(value?: PartialMessage<SetSuperuserModeResponse>): SetSuperuserModeResponse {
|
|
1336
1336
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1337
1337
|
message.permissions = [];
|
|
1338
1338
|
if (value !== undefined)
|
|
1339
|
-
reflectionMergePartial<
|
|
1339
|
+
reflectionMergePartial<SetSuperuserModeResponse>(this, message, value);
|
|
1340
1340
|
return message;
|
|
1341
1341
|
}
|
|
1342
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
1342
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSuperuserModeResponse): SetSuperuserModeResponse {
|
|
1343
1343
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
1344
1344
|
while (reader.pos < end) {
|
|
1345
1345
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -1350,7 +1350,7 @@ class SetSuperUserModeResponse$Type extends MessageType<SetSuperUserModeResponse
|
|
|
1350
1350
|
case /* repeated string permissions */ 2:
|
|
1351
1351
|
message.permissions.push(reader.string());
|
|
1352
1352
|
break;
|
|
1353
|
-
case /* optional resources.
|
|
1353
|
+
case /* optional resources.jobs.JobProps job_props */ 3:
|
|
1354
1354
|
message.jobProps = JobProps.internalBinaryRead(reader, reader.uint32(), options, message.jobProps);
|
|
1355
1355
|
break;
|
|
1356
1356
|
case /* resources.users.User char */ 4:
|
|
@@ -1367,14 +1367,14 @@ class SetSuperUserModeResponse$Type extends MessageType<SetSuperUserModeResponse
|
|
|
1367
1367
|
}
|
|
1368
1368
|
return message;
|
|
1369
1369
|
}
|
|
1370
|
-
internalBinaryWrite(message:
|
|
1370
|
+
internalBinaryWrite(message: SetSuperuserModeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1371
1371
|
/* resources.timestamp.Timestamp expires = 1; */
|
|
1372
1372
|
if (message.expires)
|
|
1373
1373
|
Timestamp.internalBinaryWrite(message.expires, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1374
1374
|
/* repeated string permissions = 2; */
|
|
1375
1375
|
for (let i = 0; i < message.permissions.length; i++)
|
|
1376
1376
|
writer.tag(2, WireType.LengthDelimited).string(message.permissions[i]);
|
|
1377
|
-
/* optional resources.
|
|
1377
|
+
/* optional resources.jobs.JobProps job_props = 3; */
|
|
1378
1378
|
if (message.jobProps)
|
|
1379
1379
|
JobProps.internalBinaryWrite(message.jobProps, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1380
1380
|
/* resources.users.User char = 4; */
|
|
@@ -1387,9 +1387,9 @@ class SetSuperUserModeResponse$Type extends MessageType<SetSuperUserModeResponse
|
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
/**
|
|
1390
|
-
* @generated MessageType for protobuf message services.auth.
|
|
1390
|
+
* @generated MessageType for protobuf message services.auth.SetSuperuserModeResponse
|
|
1391
1391
|
*/
|
|
1392
|
-
export const
|
|
1392
|
+
export const SetSuperuserModeResponse = new SetSuperuserModeResponse$Type();
|
|
1393
1393
|
/**
|
|
1394
1394
|
* @generated ServiceType for protobuf service services.auth.AuthService
|
|
1395
1395
|
*/
|
|
@@ -1404,5 +1404,5 @@ export const AuthService = new ServiceType("services.auth.AuthService", [
|
|
|
1404
1404
|
{ name: "ChooseCharacter", options: {}, I: ChooseCharacterRequest, O: ChooseCharacterResponse },
|
|
1405
1405
|
{ name: "GetAccountInfo", options: {}, I: GetAccountInfoRequest, O: GetAccountInfoResponse },
|
|
1406
1406
|
{ name: "DeleteOAuth2Connection", options: {}, I: DeleteOAuth2ConnectionRequest, O: DeleteOAuth2ConnectionResponse },
|
|
1407
|
-
{ name: "
|
|
1407
|
+
{ name: "SetSuperuserMode", options: {}, I: SetSuperuserModeRequest, O: SetSuperuserModeResponse }
|
|
1408
1408
|
]);
|
|
@@ -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 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/calendar/calendar.proto" (package "services.calendar", syntax proto3)
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -422,7 +422,7 @@ class ListCalendarsResponse$Type extends MessageType<ListCalendarsResponse> {
|
|
|
422
422
|
constructor() {
|
|
423
423
|
super("services.calendar.ListCalendarsResponse", [
|
|
424
424
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
|
|
425
|
-
{ no: 2, name: "calendars", kind: "message", repeat:
|
|
425
|
+
{ no: 2, name: "calendars", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Calendar }
|
|
426
426
|
]);
|
|
427
427
|
}
|
|
428
428
|
create(value?: PartialMessage<ListCalendarsResponse>): ListCalendarsResponse {
|
|
@@ -922,7 +922,7 @@ export const ListCalendarEntriesRequest = new ListCalendarEntriesRequest$Type();
|
|
|
922
922
|
class ListCalendarEntriesResponse$Type extends MessageType<ListCalendarEntriesResponse> {
|
|
923
923
|
constructor() {
|
|
924
924
|
super("services.calendar.ListCalendarEntriesResponse", [
|
|
925
|
-
{ no: 1, name: "entries", kind: "message", repeat:
|
|
925
|
+
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntry }
|
|
926
926
|
]);
|
|
927
927
|
}
|
|
928
928
|
create(value?: PartialMessage<ListCalendarEntriesResponse>): ListCalendarEntriesResponse {
|
|
@@ -1016,7 +1016,7 @@ export const GetUpcomingEntriesRequest = new GetUpcomingEntriesRequest$Type();
|
|
|
1016
1016
|
class GetUpcomingEntriesResponse$Type extends MessageType<GetUpcomingEntriesResponse> {
|
|
1017
1017
|
constructor() {
|
|
1018
1018
|
super("services.calendar.GetUpcomingEntriesResponse", [
|
|
1019
|
-
{ no: 1, name: "entries", kind: "message", repeat:
|
|
1019
|
+
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntry }
|
|
1020
1020
|
]);
|
|
1021
1021
|
}
|
|
1022
1022
|
create(value?: PartialMessage<GetUpcomingEntriesResponse>): GetUpcomingEntriesResponse {
|
|
@@ -1505,7 +1505,7 @@ class ListCalendarEntryRSVPResponse$Type extends MessageType<ListCalendarEntryRS
|
|
|
1505
1505
|
constructor() {
|
|
1506
1506
|
super("services.calendar.ListCalendarEntryRSVPResponse", [
|
|
1507
1507
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
|
|
1508
|
-
{ no: 2, name: "entries", kind: "message", repeat:
|
|
1508
|
+
{ no: 2, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarEntryRSVP }
|
|
1509
1509
|
]);
|
|
1510
1510
|
}
|
|
1511
1511
|
create(value?: PartialMessage<ListCalendarEntryRSVPResponse>): ListCalendarEntryRSVPResponse {
|
|
@@ -1712,7 +1712,7 @@ class ListSubscriptionsResponse$Type extends MessageType<ListSubscriptionsRespon
|
|
|
1712
1712
|
constructor() {
|
|
1713
1713
|
super("services.calendar.ListSubscriptionsResponse", [
|
|
1714
1714
|
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "validate.rules": { message: { required: true } } } },
|
|
1715
|
-
{ no: 2, name: "subs", kind: "message", repeat:
|
|
1715
|
+
{ no: 2, name: "subs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarSub }
|
|
1716
1716
|
]);
|
|
1717
1717
|
}
|
|
1718
1718
|
create(value?: PartialMessage<ListSubscriptionsResponse>): ListSubscriptionsResponse {
|
|
@@ -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
|
}
|