@fivenet-app/gen 2026.8.5 → 2026.10.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/LICENSE +201 -0
- package/clients.ts +12 -0
- package/codegen/perms/perms.ts +331 -2
- package/google/protobuf/any.ts +47 -103
- package/google/protobuf/descriptor.ts +39 -32
- package/google/protobuf/struct.ts +33 -22
- package/google/protobuf/timestamp.ts +9 -8
- package/package.json +2 -2
- package/perms.ts +41 -13
- package/resources/centrum/dispatches/dispatches.ts +206 -13
- package/resources/centrum/units/units.ts +207 -0
- package/resources/cron/cron.ts +44 -3
- package/resources/documents/templates/templates.ts +3 -3
- package/resources/file/file.ts +3 -3
- package/resources/file/filestore.ts +26 -10
- package/resources/jobs/colleagues/activity/activity.ts +50 -8
- package/resources/jobs/colleagues/colleagues.ts +14 -1
- package/resources/jobs/groups/short/group_member_short.ts +129 -0
- package/resources/jobs/job_asset.ts +116 -0
- package/resources/jobs/user_selector.ts +1 -15
- package/resources/notifications/clientview/clientview.ts +5 -1
- package/resources/notifications/events/events.ts +35 -1
- package/resources/notifications/notifications.ts +322 -2
- package/resources/permissions/attributes/attributes.ts +164 -2
- package/resources/permissions/authorization/authorization.ts +86 -0
- package/resources/permissions/permissions/permissions.ts +16 -1
- package/resources/properties/properties.ts +1648 -0
- package/resources/qualifications/activity/activity.ts +328 -0
- package/resources/qualifications/exam/exam.ts +108 -4
- package/resources/qualifications/qualifications.ts +36 -2
- package/resources/settings/config.ts +3 -3
- package/resources/sync/activity/activity.ts +4 -4
- package/resources/sync/data/data.ts +16 -4
- package/resources/users/activity/activity.ts +220 -3
- package/resources/users/props/props.ts +13 -1
- package/resources/users/user.ts +13 -1
- package/resources/vehicles/activity/activity.ts +222 -3
- package/resources/vehicles/props/props.ts +13 -1
- package/resources/vehicles/vehicles.ts +13 -1
- package/services/auth/auth.ts +61 -67
- package/services/centrum/centrum.ts +103 -1
- package/services/centrum/dispatches.ts +25 -1
- package/services/centrum/units.ts +25 -1
- package/services/citizens/citizens.client.ts +49 -0
- package/services/citizens/citizens.ts +384 -7
- package/services/documents/documents.ts +1 -0
- package/services/documents/templates.ts +12 -1
- package/services/jobs/colleagues.ts +26 -1
- package/services/jobs/conduct.ts +1 -0
- package/services/jobs/groups.ts +62 -4
- package/services/notifications/notifications.client.ts +40 -1
- package/services/notifications/notifications.ts +483 -3
- package/services/qualifications/qualifications.client.ts +20 -7
- package/services/qualifications/qualifications.ts +265 -4
- package/services/settings/job_assets.client.ts +105 -0
- package/services/settings/job_assets.ts +373 -0
- package/services/settings/properties.client.ts +194 -0
- package/services/settings/properties.ts +1555 -0
- package/services/settings/system.ts +29 -9
- package/services/sync/sync.ts +115 -12
- package/services/vehicles/vehicles.client.ts +52 -0
- package/services/vehicles/vehicles.ts +385 -7
- package/svcs.ts +58 -0
package/services/jobs/groups.ts
CHANGED
|
@@ -476,6 +476,12 @@ export interface AddGroupMemberRequest {
|
|
|
476
476
|
* @generated from protobuf field: optional string reason = 3
|
|
477
477
|
*/
|
|
478
478
|
reason?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Suppresses the inbox notification normally sent to the affected user.
|
|
481
|
+
*
|
|
482
|
+
* @generated from protobuf field: bool skip_notification = 4
|
|
483
|
+
*/
|
|
484
|
+
skipNotification: boolean;
|
|
479
485
|
}
|
|
480
486
|
/**
|
|
481
487
|
* @generated from protobuf message services.jobs.AddGroupMemberResponse
|
|
@@ -506,6 +512,12 @@ export interface RemoveGroupMemberRequest {
|
|
|
506
512
|
* @generated from protobuf field: optional string reason = 3
|
|
507
513
|
*/
|
|
508
514
|
reason?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Suppresses the inbox notification normally sent to the affected user.
|
|
517
|
+
*
|
|
518
|
+
* @generated from protobuf field: bool skip_notification = 4
|
|
519
|
+
*/
|
|
520
|
+
skipNotification: boolean;
|
|
509
521
|
}
|
|
510
522
|
/**
|
|
511
523
|
* @generated from protobuf message services.jobs.RemoveGroupMemberResponse
|
|
@@ -592,6 +604,12 @@ export interface AddGroupLeaderRequest {
|
|
|
592
604
|
* @generated from protobuf field: optional string reason = 3
|
|
593
605
|
*/
|
|
594
606
|
reason?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Suppresses the inbox notification normally sent to the affected user.
|
|
609
|
+
*
|
|
610
|
+
* @generated from protobuf field: bool skip_notification = 4
|
|
611
|
+
*/
|
|
612
|
+
skipNotification: boolean;
|
|
595
613
|
}
|
|
596
614
|
/**
|
|
597
615
|
* @generated from protobuf message services.jobs.AddGroupLeaderResponse
|
|
@@ -622,6 +640,12 @@ export interface RemoveGroupLeaderRequest {
|
|
|
622
640
|
* @generated from protobuf field: optional string reason = 3
|
|
623
641
|
*/
|
|
624
642
|
reason?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Suppresses the inbox notification normally sent to the affected user.
|
|
645
|
+
*
|
|
646
|
+
* @generated from protobuf field: bool skip_notification = 4
|
|
647
|
+
*/
|
|
648
|
+
skipNotification: boolean;
|
|
625
649
|
}
|
|
626
650
|
/**
|
|
627
651
|
* @generated from protobuf message services.jobs.RemoveGroupLeaderResponse
|
|
@@ -766,6 +790,8 @@ export interface ListGroupActivityRequest {
|
|
|
766
790
|
*/
|
|
767
791
|
groupId: number;
|
|
768
792
|
/**
|
|
793
|
+
* Activity types to filter by. If empty, all activity types will be returned.
|
|
794
|
+
*
|
|
769
795
|
* @generated from protobuf field: repeated resources.jobs.groups.GroupActivityType types = 4
|
|
770
796
|
*/
|
|
771
797
|
types: GroupActivityType[];
|
|
@@ -2340,13 +2366,15 @@ class AddGroupMemberRequest$Type extends MessageType<AddGroupMemberRequest> {
|
|
|
2340
2366
|
super("services.jobs.AddGroupMemberRequest", [
|
|
2341
2367
|
{ no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2342
2368
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2343
|
-
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2369
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2370
|
+
{ no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2344
2371
|
]);
|
|
2345
2372
|
}
|
|
2346
2373
|
create(value?: PartialMessage<AddGroupMemberRequest>): AddGroupMemberRequest {
|
|
2347
2374
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2348
2375
|
message.groupId = 0;
|
|
2349
2376
|
message.userId = 0;
|
|
2377
|
+
message.skipNotification = false;
|
|
2350
2378
|
if (value !== undefined)
|
|
2351
2379
|
reflectionMergePartial<AddGroupMemberRequest>(this, message, value);
|
|
2352
2380
|
return message;
|
|
@@ -2365,6 +2393,9 @@ class AddGroupMemberRequest$Type extends MessageType<AddGroupMemberRequest> {
|
|
|
2365
2393
|
case /* optional string reason */ 3:
|
|
2366
2394
|
message.reason = reader.string();
|
|
2367
2395
|
break;
|
|
2396
|
+
case /* bool skip_notification */ 4:
|
|
2397
|
+
message.skipNotification = reader.bool();
|
|
2398
|
+
break;
|
|
2368
2399
|
default:
|
|
2369
2400
|
let u = options.readUnknownField;
|
|
2370
2401
|
if (u === "throw")
|
|
@@ -2386,6 +2417,9 @@ class AddGroupMemberRequest$Type extends MessageType<AddGroupMemberRequest> {
|
|
|
2386
2417
|
/* optional string reason = 3; */
|
|
2387
2418
|
if (message.reason !== undefined)
|
|
2388
2419
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
2420
|
+
/* bool skip_notification = 4; */
|
|
2421
|
+
if (message.skipNotification !== false)
|
|
2422
|
+
writer.tag(4, WireType.Varint).bool(message.skipNotification);
|
|
2389
2423
|
let u = options.writeUnknownFields;
|
|
2390
2424
|
if (u !== false)
|
|
2391
2425
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2455,13 +2489,15 @@ class RemoveGroupMemberRequest$Type extends MessageType<RemoveGroupMemberRequest
|
|
|
2455
2489
|
super("services.jobs.RemoveGroupMemberRequest", [
|
|
2456
2490
|
{ no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2457
2491
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2458
|
-
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2492
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2493
|
+
{ no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2459
2494
|
]);
|
|
2460
2495
|
}
|
|
2461
2496
|
create(value?: PartialMessage<RemoveGroupMemberRequest>): RemoveGroupMemberRequest {
|
|
2462
2497
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2463
2498
|
message.groupId = 0;
|
|
2464
2499
|
message.userId = 0;
|
|
2500
|
+
message.skipNotification = false;
|
|
2465
2501
|
if (value !== undefined)
|
|
2466
2502
|
reflectionMergePartial<RemoveGroupMemberRequest>(this, message, value);
|
|
2467
2503
|
return message;
|
|
@@ -2480,6 +2516,9 @@ class RemoveGroupMemberRequest$Type extends MessageType<RemoveGroupMemberRequest
|
|
|
2480
2516
|
case /* optional string reason */ 3:
|
|
2481
2517
|
message.reason = reader.string();
|
|
2482
2518
|
break;
|
|
2519
|
+
case /* bool skip_notification */ 4:
|
|
2520
|
+
message.skipNotification = reader.bool();
|
|
2521
|
+
break;
|
|
2483
2522
|
default:
|
|
2484
2523
|
let u = options.readUnknownField;
|
|
2485
2524
|
if (u === "throw")
|
|
@@ -2501,6 +2540,9 @@ class RemoveGroupMemberRequest$Type extends MessageType<RemoveGroupMemberRequest
|
|
|
2501
2540
|
/* optional string reason = 3; */
|
|
2502
2541
|
if (message.reason !== undefined)
|
|
2503
2542
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
2543
|
+
/* bool skip_notification = 4; */
|
|
2544
|
+
if (message.skipNotification !== false)
|
|
2545
|
+
writer.tag(4, WireType.Varint).bool(message.skipNotification);
|
|
2504
2546
|
let u = options.writeUnknownFields;
|
|
2505
2547
|
if (u !== false)
|
|
2506
2548
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2794,13 +2836,15 @@ class AddGroupLeaderRequest$Type extends MessageType<AddGroupLeaderRequest> {
|
|
|
2794
2836
|
super("services.jobs.AddGroupLeaderRequest", [
|
|
2795
2837
|
{ no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2796
2838
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2797
|
-
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2839
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2840
|
+
{ no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2798
2841
|
]);
|
|
2799
2842
|
}
|
|
2800
2843
|
create(value?: PartialMessage<AddGroupLeaderRequest>): AddGroupLeaderRequest {
|
|
2801
2844
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2802
2845
|
message.groupId = 0;
|
|
2803
2846
|
message.userId = 0;
|
|
2847
|
+
message.skipNotification = false;
|
|
2804
2848
|
if (value !== undefined)
|
|
2805
2849
|
reflectionMergePartial<AddGroupLeaderRequest>(this, message, value);
|
|
2806
2850
|
return message;
|
|
@@ -2819,6 +2863,9 @@ class AddGroupLeaderRequest$Type extends MessageType<AddGroupLeaderRequest> {
|
|
|
2819
2863
|
case /* optional string reason */ 3:
|
|
2820
2864
|
message.reason = reader.string();
|
|
2821
2865
|
break;
|
|
2866
|
+
case /* bool skip_notification */ 4:
|
|
2867
|
+
message.skipNotification = reader.bool();
|
|
2868
|
+
break;
|
|
2822
2869
|
default:
|
|
2823
2870
|
let u = options.readUnknownField;
|
|
2824
2871
|
if (u === "throw")
|
|
@@ -2840,6 +2887,9 @@ class AddGroupLeaderRequest$Type extends MessageType<AddGroupLeaderRequest> {
|
|
|
2840
2887
|
/* optional string reason = 3; */
|
|
2841
2888
|
if (message.reason !== undefined)
|
|
2842
2889
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
2890
|
+
/* bool skip_notification = 4; */
|
|
2891
|
+
if (message.skipNotification !== false)
|
|
2892
|
+
writer.tag(4, WireType.Varint).bool(message.skipNotification);
|
|
2843
2893
|
let u = options.writeUnknownFields;
|
|
2844
2894
|
if (u !== false)
|
|
2845
2895
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2909,13 +2959,15 @@ class RemoveGroupLeaderRequest$Type extends MessageType<RemoveGroupLeaderRequest
|
|
|
2909
2959
|
super("services.jobs.RemoveGroupLeaderRequest", [
|
|
2910
2960
|
{ no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
2911
2961
|
{ no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2912
|
-
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
2962
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2963
|
+
{ no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2913
2964
|
]);
|
|
2914
2965
|
}
|
|
2915
2966
|
create(value?: PartialMessage<RemoveGroupLeaderRequest>): RemoveGroupLeaderRequest {
|
|
2916
2967
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2917
2968
|
message.groupId = 0;
|
|
2918
2969
|
message.userId = 0;
|
|
2970
|
+
message.skipNotification = false;
|
|
2919
2971
|
if (value !== undefined)
|
|
2920
2972
|
reflectionMergePartial<RemoveGroupLeaderRequest>(this, message, value);
|
|
2921
2973
|
return message;
|
|
@@ -2934,6 +2986,9 @@ class RemoveGroupLeaderRequest$Type extends MessageType<RemoveGroupLeaderRequest
|
|
|
2934
2986
|
case /* optional string reason */ 3:
|
|
2935
2987
|
message.reason = reader.string();
|
|
2936
2988
|
break;
|
|
2989
|
+
case /* bool skip_notification */ 4:
|
|
2990
|
+
message.skipNotification = reader.bool();
|
|
2991
|
+
break;
|
|
2937
2992
|
default:
|
|
2938
2993
|
let u = options.readUnknownField;
|
|
2939
2994
|
if (u === "throw")
|
|
@@ -2955,6 +3010,9 @@ class RemoveGroupLeaderRequest$Type extends MessageType<RemoveGroupLeaderRequest
|
|
|
2955
3010
|
/* optional string reason = 3; */
|
|
2956
3011
|
if (message.reason !== undefined)
|
|
2957
3012
|
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
3013
|
+
/* bool skip_notification = 4; */
|
|
3014
|
+
if (message.skipNotification !== false)
|
|
3015
|
+
writer.tag(4, WireType.Varint).bool(message.skipNotification);
|
|
2958
3016
|
let u = options.writeUnknownFields;
|
|
2959
3017
|
if (u !== false)
|
|
2960
3018
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -8,6 +8,12 @@ import { NotificationsService } from "./notifications";
|
|
|
8
8
|
import type { StreamResponse } from "./notifications";
|
|
9
9
|
import type { StreamRequest } from "./notifications";
|
|
10
10
|
import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
11
|
+
import type { UpdateNotificationPreferenceResponse } from "./notifications";
|
|
12
|
+
import type { UpdateNotificationPreferenceRequest } from "./notifications";
|
|
13
|
+
import type { GetNotificationPreferencesResponse } from "./notifications";
|
|
14
|
+
import type { GetNotificationPreferencesRequest } from "./notifications";
|
|
15
|
+
import type { UpdateNotificationStateResponse } from "./notifications";
|
|
16
|
+
import type { UpdateNotificationStateRequest } from "./notifications";
|
|
11
17
|
import type { MarkNotificationsResponse } from "./notifications";
|
|
12
18
|
import type { MarkNotificationsRequest } from "./notifications";
|
|
13
19
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
@@ -27,6 +33,18 @@ export interface INotificationsServiceClient {
|
|
|
27
33
|
* @generated from protobuf rpc: MarkNotifications
|
|
28
34
|
*/
|
|
29
35
|
markNotifications(input: MarkNotificationsRequest, options?: RpcOptions): UnaryCall<MarkNotificationsRequest, MarkNotificationsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf rpc: UpdateNotificationState
|
|
38
|
+
*/
|
|
39
|
+
updateNotificationState(input: UpdateNotificationStateRequest, options?: RpcOptions): UnaryCall<UpdateNotificationStateRequest, UpdateNotificationStateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf rpc: GetNotificationPreferences
|
|
42
|
+
*/
|
|
43
|
+
getNotificationPreferences(input: GetNotificationPreferencesRequest, options?: RpcOptions): UnaryCall<GetNotificationPreferencesRequest, GetNotificationPreferencesResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf rpc: UpdateNotificationPreference
|
|
46
|
+
*/
|
|
47
|
+
updateNotificationPreference(input: UpdateNotificationPreferenceRequest, options?: RpcOptions): UnaryCall<UpdateNotificationPreferenceRequest, UpdateNotificationPreferenceResponse>;
|
|
30
48
|
/**
|
|
31
49
|
* @generated from protobuf rpc: Stream
|
|
32
50
|
*/
|
|
@@ -55,11 +73,32 @@ export class NotificationsServiceClient implements INotificationsServiceClient,
|
|
|
55
73
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
56
74
|
return stackIntercept<MarkNotificationsRequest, MarkNotificationsResponse>("unary", this._transport, method, opt, input);
|
|
57
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf rpc: UpdateNotificationState
|
|
78
|
+
*/
|
|
79
|
+
updateNotificationState(input: UpdateNotificationStateRequest, options?: RpcOptions): UnaryCall<UpdateNotificationStateRequest, UpdateNotificationStateResponse> {
|
|
80
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
81
|
+
return stackIntercept<UpdateNotificationStateRequest, UpdateNotificationStateResponse>("unary", this._transport, method, opt, input);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf rpc: GetNotificationPreferences
|
|
85
|
+
*/
|
|
86
|
+
getNotificationPreferences(input: GetNotificationPreferencesRequest, options?: RpcOptions): UnaryCall<GetNotificationPreferencesRequest, GetNotificationPreferencesResponse> {
|
|
87
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
88
|
+
return stackIntercept<GetNotificationPreferencesRequest, GetNotificationPreferencesResponse>("unary", this._transport, method, opt, input);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf rpc: UpdateNotificationPreference
|
|
92
|
+
*/
|
|
93
|
+
updateNotificationPreference(input: UpdateNotificationPreferenceRequest, options?: RpcOptions): UnaryCall<UpdateNotificationPreferenceRequest, UpdateNotificationPreferenceResponse> {
|
|
94
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
95
|
+
return stackIntercept<UpdateNotificationPreferenceRequest, UpdateNotificationPreferenceResponse>("unary", this._transport, method, opt, input);
|
|
96
|
+
}
|
|
58
97
|
/**
|
|
59
98
|
* @generated from protobuf rpc: Stream
|
|
60
99
|
*/
|
|
61
100
|
stream(options?: RpcOptions): DuplexStreamingCall<StreamRequest, StreamResponse> {
|
|
62
|
-
const method = this.methods[
|
|
101
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
63
102
|
return stackIntercept<StreamRequest, StreamResponse>("duplex", this._transport, method, opt);
|
|
64
103
|
}
|
|
65
104
|
}
|