@fivenet-app/gen 2025.5.2 → 2025.9.1
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/buf/validate/validate.ts +11301 -0
- package/clients.ts +157 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +208 -0
- package/codegen/sanitizer/sanitizer.ts +80 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +85 -159
- package/resources/accounts/accounts.ts +26 -25
- package/resources/accounts/oauth2.ts +30 -29
- package/resources/audit/audit.ts +36 -35
- package/resources/calendar/access.ts +49 -48
- package/resources/calendar/calendar.ts +122 -126
- package/resources/centrum/access.ts +345 -0
- package/resources/centrum/attributes.ts +8 -11
- package/resources/centrum/dispatchers.ts +149 -0
- package/resources/centrum/dispatches.ts +252 -115
- package/resources/centrum/settings.ts +384 -34
- package/resources/centrum/units.ts +112 -92
- package/resources/centrum/units_access.ts +54 -55
- package/resources/clientconfig/clientconfig.ts +890 -0
- package/resources/collab/collab.ts +817 -0
- package/resources/common/content/content.ts +113 -30
- package/resources/common/cron/cron.ts +43 -31
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/grpcws/grpcws.ts +24 -23
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/common/uuid.ts +4 -3
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/access.ts +52 -53
- package/resources/documents/activity.ts +235 -58
- package/resources/documents/category.ts +20 -27
- package/resources/documents/comment.ts +26 -25
- package/resources/documents/documents.ts +335 -262
- package/resources/documents/pins.ts +127 -0
- package/resources/documents/requests.ts +31 -30
- package/resources/documents/signoff.ts +55 -0
- package/resources/documents/state.ts +69 -0
- package/resources/documents/templates.ts +119 -136
- package/resources/documents/workflow.ts +35 -24
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/jobs/activity.ts +39 -42
- package/resources/jobs/colleagues.ts +67 -60
- package/resources/jobs/conduct.ts +29 -30
- package/resources/jobs/job_props.ts +46 -48
- package/resources/jobs/job_settings.ts +45 -52
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/labels.ts +21 -22
- package/resources/jobs/timeclock.ts +26 -25
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → marker_marker.ts} +43 -310
- package/resources/livemap/user_marker.ts +298 -0
- package/resources/mailer/access.ts +75 -74
- package/resources/mailer/email.ts +24 -27
- package/resources/mailer/events.ts +25 -24
- package/resources/mailer/message.ts +45 -50
- package/resources/mailer/settings.ts +12 -15
- package/resources/mailer/template.ts +25 -28
- package/resources/mailer/thread.ts +70 -71
- package/resources/notifications/client_view.ts +239 -0
- package/resources/notifications/events.ts +50 -101
- package/resources/notifications/notifications.ts +52 -57
- package/resources/permissions/attributes.ts +63 -206
- package/resources/permissions/events.ts +149 -0
- package/resources/permissions/permissions.ts +103 -34
- package/resources/qualifications/access.ts +27 -26
- package/resources/qualifications/exam.ts +188 -126
- package/resources/qualifications/qualifications.ts +370 -303
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +163 -79
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +3 -2
- package/resources/sync/activity.ts +24 -23
- package/resources/sync/data.ts +94 -26
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/user_info.ts +464 -0
- package/resources/users/activity.ts +80 -85
- package/resources/users/labels.ts +18 -21
- package/resources/users/licenses.ts +9 -8
- package/resources/users/props.ts +61 -51
- package/resources/users/users.ts +100 -78
- package/resources/vehicles/activity.ts +231 -0
- package/resources/vehicles/props.ts +103 -0
- package/resources/vehicles/vehicles.ts +28 -15
- package/resources/wiki/access.ts +49 -48
- package/resources/wiki/activity.ts +133 -51
- package/resources/wiki/page.ts +134 -87
- package/services/auth/auth.client.ts +24 -27
- package/services/auth/auth.ts +222 -195
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +110 -109
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +701 -298
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +183 -93
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +65 -44
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +490 -508
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +10 -25
- package/services/jobs/conduct.ts +36 -35
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +108 -91
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +47 -46
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +290 -119
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +213 -216
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +117 -74
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +181 -175
- package/services/settings/accounts.client.ts +10 -25
- package/services/settings/accounts.ts +64 -41
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +4 -3
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +29 -28
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +190 -607
- package/services/settings/system.client.ts +90 -0
- package/services/settings/system.ts +618 -0
- package/services/stats/stats.client.ts +4 -3
- package/services/stats/stats.ts +4 -3
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +82 -52
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +169 -24
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +93 -63
- package/svcs.ts +79 -103
- package/resources/centrum/disponents.ts +0 -81
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "services/notifications/notifications.proto" (package "services.notifications", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
|
+
import { NotificationsService } from "./notifications";
|
|
8
|
+
import type { StreamResponse } from "./notifications";
|
|
9
|
+
import type { StreamRequest } from "./notifications";
|
|
10
|
+
import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
11
|
+
import type { MarkNotificationsResponse } from "./notifications";
|
|
12
|
+
import type { MarkNotificationsRequest } from "./notifications";
|
|
13
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
14
|
+
import type { GetNotificationsResponse } from "./notifications";
|
|
15
|
+
import type { GetNotificationsRequest } from "./notifications";
|
|
16
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
17
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf service services.notifications.NotificationsService
|
|
20
|
+
*/
|
|
21
|
+
export interface INotificationsServiceClient {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf rpc: GetNotifications
|
|
24
|
+
*/
|
|
25
|
+
getNotifications(input: GetNotificationsRequest, options?: RpcOptions): UnaryCall<GetNotificationsRequest, GetNotificationsResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf rpc: MarkNotifications
|
|
28
|
+
*/
|
|
29
|
+
markNotifications(input: MarkNotificationsRequest, options?: RpcOptions): UnaryCall<MarkNotificationsRequest, MarkNotificationsResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf rpc: Stream
|
|
32
|
+
*/
|
|
33
|
+
stream(options?: RpcOptions): DuplexStreamingCall<StreamRequest, StreamResponse>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf service services.notifications.NotificationsService
|
|
37
|
+
*/
|
|
38
|
+
export class NotificationsServiceClient implements INotificationsServiceClient, ServiceInfo {
|
|
39
|
+
typeName = NotificationsService.typeName;
|
|
40
|
+
methods = NotificationsService.methods;
|
|
41
|
+
options = NotificationsService.options;
|
|
42
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf rpc: GetNotifications
|
|
46
|
+
*/
|
|
47
|
+
getNotifications(input: GetNotificationsRequest, options?: RpcOptions): UnaryCall<GetNotificationsRequest, GetNotificationsResponse> {
|
|
48
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
49
|
+
return stackIntercept<GetNotificationsRequest, GetNotificationsResponse>("unary", this._transport, method, opt, input);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf rpc: MarkNotifications
|
|
53
|
+
*/
|
|
54
|
+
markNotifications(input: MarkNotificationsRequest, options?: RpcOptions): UnaryCall<MarkNotificationsRequest, MarkNotificationsResponse> {
|
|
55
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
56
|
+
return stackIntercept<MarkNotificationsRequest, MarkNotificationsResponse>("unary", this._transport, method, opt, input);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf rpc: Stream
|
|
60
|
+
*/
|
|
61
|
+
stream(options?: RpcOptions): DuplexStreamingCall<StreamRequest, StreamResponse> {
|
|
62
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
63
|
+
return stackIntercept<StreamRequest, StreamResponse>("duplex", this._transport, method, opt);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
2
|
-
// @generated from protobuf file "services/
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "services/notifications/notifications.proto" (package "services.notifications", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,86 +12,100 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
11
12
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
13
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
14
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
+
import { ObjectEvent } from "../../resources/notifications/client_view";
|
|
14
16
|
import { MailerEvent } from "../../resources/mailer/events";
|
|
15
17
|
import { SystemEvent } from "../../resources/notifications/events";
|
|
16
18
|
import { JobGradeEvent } from "../../resources/notifications/events";
|
|
17
19
|
import { JobEvent } from "../../resources/notifications/events";
|
|
18
20
|
import { UserEvent } from "../../resources/notifications/events";
|
|
21
|
+
import { ClientView } from "../../resources/notifications/client_view";
|
|
19
22
|
import { Notification } from "../../resources/notifications/notifications";
|
|
20
23
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
21
24
|
import { NotificationCategory } from "../../resources/notifications/notifications";
|
|
22
25
|
import { PaginationRequest } from "../../resources/common/database/database";
|
|
23
26
|
/**
|
|
24
|
-
* @generated from protobuf message services.
|
|
27
|
+
* @generated from protobuf message services.notifications.GetNotificationsRequest
|
|
25
28
|
*/
|
|
26
29
|
export interface GetNotificationsRequest {
|
|
27
30
|
/**
|
|
28
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
31
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
29
32
|
*/
|
|
30
33
|
pagination?: PaginationRequest;
|
|
31
34
|
/**
|
|
32
|
-
* @generated from protobuf field: optional bool include_read = 2
|
|
35
|
+
* @generated from protobuf field: optional bool include_read = 2
|
|
33
36
|
*/
|
|
34
37
|
includeRead?: boolean;
|
|
35
38
|
/**
|
|
36
|
-
* @generated from protobuf field: repeated resources.notifications.NotificationCategory categories = 3
|
|
39
|
+
* @generated from protobuf field: repeated resources.notifications.NotificationCategory categories = 3
|
|
37
40
|
*/
|
|
38
41
|
categories: NotificationCategory[];
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
|
-
* @generated from protobuf message services.
|
|
44
|
+
* @generated from protobuf message services.notifications.GetNotificationsResponse
|
|
42
45
|
*/
|
|
43
46
|
export interface GetNotificationsResponse {
|
|
44
47
|
/**
|
|
45
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
48
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
46
49
|
*/
|
|
47
50
|
pagination?: PaginationResponse;
|
|
48
51
|
/**
|
|
49
|
-
* @generated from protobuf field: repeated resources.notifications.Notification notifications = 2
|
|
52
|
+
* @generated from protobuf field: repeated resources.notifications.Notification notifications = 2
|
|
50
53
|
*/
|
|
51
54
|
notifications: Notification[];
|
|
52
55
|
}
|
|
53
56
|
/**
|
|
54
|
-
* @generated from protobuf message services.
|
|
57
|
+
* @generated from protobuf message services.notifications.MarkNotificationsRequest
|
|
55
58
|
*/
|
|
56
59
|
export interface MarkNotificationsRequest {
|
|
57
60
|
/**
|
|
58
|
-
* @generated from protobuf field: bool unread = 1
|
|
61
|
+
* @generated from protobuf field: bool unread = 1
|
|
59
62
|
*/
|
|
60
63
|
unread: boolean;
|
|
61
64
|
/**
|
|
62
|
-
* @generated from protobuf field: repeated
|
|
65
|
+
* @generated from protobuf field: repeated int64 ids = 2
|
|
63
66
|
*/
|
|
64
67
|
ids: number[];
|
|
65
68
|
/**
|
|
66
|
-
* @generated from protobuf field: optional bool all = 3
|
|
69
|
+
* @generated from protobuf field: optional bool all = 3
|
|
67
70
|
*/
|
|
68
71
|
all?: boolean;
|
|
69
72
|
}
|
|
70
73
|
/**
|
|
71
|
-
* @generated from protobuf message services.
|
|
74
|
+
* @generated from protobuf message services.notifications.MarkNotificationsResponse
|
|
72
75
|
*/
|
|
73
76
|
export interface MarkNotificationsResponse {
|
|
74
77
|
/**
|
|
75
|
-
* @generated from protobuf field:
|
|
78
|
+
* @generated from protobuf field: int64 updated = 1
|
|
76
79
|
*/
|
|
77
80
|
updated: number;
|
|
78
81
|
}
|
|
79
82
|
/**
|
|
80
|
-
* @generated from protobuf message services.
|
|
83
|
+
* @generated from protobuf message services.notifications.StreamRequest
|
|
81
84
|
*/
|
|
82
85
|
export interface StreamRequest {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf oneof: data
|
|
88
|
+
*/
|
|
89
|
+
data: {
|
|
90
|
+
oneofKind: "clientView";
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf field: resources.notifications.ClientView client_view = 1
|
|
93
|
+
*/
|
|
94
|
+
clientView: ClientView;
|
|
95
|
+
} | {
|
|
96
|
+
oneofKind: undefined;
|
|
97
|
+
};
|
|
83
98
|
}
|
|
84
99
|
/**
|
|
85
|
-
* @generated from protobuf message services.
|
|
100
|
+
* @generated from protobuf message services.notifications.StreamResponse
|
|
86
101
|
*/
|
|
87
102
|
export interface StreamResponse {
|
|
88
103
|
/**
|
|
89
|
-
* @generated from protobuf field:
|
|
104
|
+
* @generated from protobuf field: int64 notification_count = 1
|
|
90
105
|
*/
|
|
91
106
|
notificationCount: number;
|
|
92
107
|
/**
|
|
93
|
-
* @generated from protobuf field: optional bool restart = 2
|
|
108
|
+
* @generated from protobuf field: optional bool restart = 2
|
|
94
109
|
*/
|
|
95
110
|
restart?: boolean;
|
|
96
111
|
/**
|
|
@@ -99,33 +114,39 @@ export interface StreamResponse {
|
|
|
99
114
|
data: {
|
|
100
115
|
oneofKind: "userEvent";
|
|
101
116
|
/**
|
|
102
|
-
* @generated from protobuf field: resources.notifications.UserEvent user_event = 3
|
|
117
|
+
* @generated from protobuf field: resources.notifications.UserEvent user_event = 3
|
|
103
118
|
*/
|
|
104
119
|
userEvent: UserEvent;
|
|
105
120
|
} | {
|
|
106
121
|
oneofKind: "jobEvent";
|
|
107
122
|
/**
|
|
108
|
-
* @generated from protobuf field: resources.notifications.JobEvent job_event = 4
|
|
123
|
+
* @generated from protobuf field: resources.notifications.JobEvent job_event = 4
|
|
109
124
|
*/
|
|
110
125
|
jobEvent: JobEvent;
|
|
111
126
|
} | {
|
|
112
127
|
oneofKind: "jobGradeEvent";
|
|
113
128
|
/**
|
|
114
|
-
* @generated from protobuf field: resources.notifications.JobGradeEvent job_grade_event =
|
|
129
|
+
* @generated from protobuf field: resources.notifications.JobGradeEvent job_grade_event = 5
|
|
115
130
|
*/
|
|
116
131
|
jobGradeEvent: JobGradeEvent;
|
|
117
132
|
} | {
|
|
118
133
|
oneofKind: "systemEvent";
|
|
119
134
|
/**
|
|
120
|
-
* @generated from protobuf field: resources.notifications.SystemEvent system_event =
|
|
135
|
+
* @generated from protobuf field: resources.notifications.SystemEvent system_event = 6
|
|
121
136
|
*/
|
|
122
137
|
systemEvent: SystemEvent;
|
|
123
138
|
} | {
|
|
124
139
|
oneofKind: "mailerEvent";
|
|
125
140
|
/**
|
|
126
|
-
* @generated from protobuf field: resources.mailer.MailerEvent mailer_event =
|
|
141
|
+
* @generated from protobuf field: resources.mailer.MailerEvent mailer_event = 7
|
|
127
142
|
*/
|
|
128
143
|
mailerEvent: MailerEvent;
|
|
144
|
+
} | {
|
|
145
|
+
oneofKind: "objectEvent";
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf field: resources.notifications.ObjectEvent object_event = 8
|
|
148
|
+
*/
|
|
149
|
+
objectEvent: ObjectEvent;
|
|
129
150
|
} | {
|
|
130
151
|
oneofKind: undefined;
|
|
131
152
|
};
|
|
@@ -133,10 +154,10 @@ export interface StreamResponse {
|
|
|
133
154
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
134
155
|
class GetNotificationsRequest$Type extends MessageType<GetNotificationsRequest> {
|
|
135
156
|
constructor() {
|
|
136
|
-
super("services.
|
|
137
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
157
|
+
super("services.notifications.GetNotificationsRequest", [
|
|
158
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
138
159
|
{ no: 2, name: "include_read", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
139
|
-
{ no: 3, name: "categories", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.notifications.NotificationCategory", NotificationCategory, "NOTIFICATION_CATEGORY_"], options: { "validate.
|
|
160
|
+
{ no: 3, name: "categories", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.notifications.NotificationCategory", NotificationCategory, "NOTIFICATION_CATEGORY_"], options: { "buf.validate.field": { repeated: { maxItems: "4", items: { enum: { definedOnly: true } } } } } }
|
|
140
161
|
]);
|
|
141
162
|
}
|
|
142
163
|
create(value?: PartialMessage<GetNotificationsRequest>): GetNotificationsRequest {
|
|
@@ -196,15 +217,15 @@ class GetNotificationsRequest$Type extends MessageType<GetNotificationsRequest>
|
|
|
196
217
|
}
|
|
197
218
|
}
|
|
198
219
|
/**
|
|
199
|
-
* @generated MessageType for protobuf message services.
|
|
220
|
+
* @generated MessageType for protobuf message services.notifications.GetNotificationsRequest
|
|
200
221
|
*/
|
|
201
222
|
export const GetNotificationsRequest = new GetNotificationsRequest$Type();
|
|
202
223
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
203
224
|
class GetNotificationsResponse$Type extends MessageType<GetNotificationsResponse> {
|
|
204
225
|
constructor() {
|
|
205
|
-
super("services.
|
|
206
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
207
|
-
{ no: 2, name: "notifications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Notification }
|
|
226
|
+
super("services.notifications.GetNotificationsResponse", [
|
|
227
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
228
|
+
{ no: 2, name: "notifications", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Notification, options: { "codegen.itemslen.enabled": true } }
|
|
208
229
|
]);
|
|
209
230
|
}
|
|
210
231
|
create(value?: PartialMessage<GetNotificationsResponse>): GetNotificationsResponse {
|
|
@@ -250,15 +271,15 @@ class GetNotificationsResponse$Type extends MessageType<GetNotificationsResponse
|
|
|
250
271
|
}
|
|
251
272
|
}
|
|
252
273
|
/**
|
|
253
|
-
* @generated MessageType for protobuf message services.
|
|
274
|
+
* @generated MessageType for protobuf message services.notifications.GetNotificationsResponse
|
|
254
275
|
*/
|
|
255
276
|
export const GetNotificationsResponse = new GetNotificationsResponse$Type();
|
|
256
277
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
257
278
|
class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest> {
|
|
258
279
|
constructor() {
|
|
259
|
-
super("services.
|
|
280
|
+
super("services.notifications.MarkNotificationsRequest", [
|
|
260
281
|
{ no: 1, name: "unread", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
261
|
-
{ no: 2, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T:
|
|
282
|
+
{ no: 2, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { ignore: "IGNORE_IF_ZERO_VALUE", repeated: { minItems: "1", maxItems: "20" } } } },
|
|
262
283
|
{ no: 3, name: "all", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
263
284
|
]);
|
|
264
285
|
}
|
|
@@ -278,12 +299,12 @@ class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest
|
|
|
278
299
|
case /* bool unread */ 1:
|
|
279
300
|
message.unread = reader.bool();
|
|
280
301
|
break;
|
|
281
|
-
case /* repeated
|
|
302
|
+
case /* repeated int64 ids */ 2:
|
|
282
303
|
if (wireType === WireType.LengthDelimited)
|
|
283
304
|
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
284
|
-
message.ids.push(reader.
|
|
305
|
+
message.ids.push(reader.int64().toNumber());
|
|
285
306
|
else
|
|
286
|
-
message.ids.push(reader.
|
|
307
|
+
message.ids.push(reader.int64().toNumber());
|
|
287
308
|
break;
|
|
288
309
|
case /* optional bool all */ 3:
|
|
289
310
|
message.all = reader.bool();
|
|
@@ -303,11 +324,11 @@ class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest
|
|
|
303
324
|
/* bool unread = 1; */
|
|
304
325
|
if (message.unread !== false)
|
|
305
326
|
writer.tag(1, WireType.Varint).bool(message.unread);
|
|
306
|
-
/* repeated
|
|
327
|
+
/* repeated int64 ids = 2; */
|
|
307
328
|
if (message.ids.length) {
|
|
308
329
|
writer.tag(2, WireType.LengthDelimited).fork();
|
|
309
330
|
for (let i = 0; i < message.ids.length; i++)
|
|
310
|
-
writer.
|
|
331
|
+
writer.int64(message.ids[i]);
|
|
311
332
|
writer.join();
|
|
312
333
|
}
|
|
313
334
|
/* optional bool all = 3; */
|
|
@@ -320,14 +341,14 @@ class MarkNotificationsRequest$Type extends MessageType<MarkNotificationsRequest
|
|
|
320
341
|
}
|
|
321
342
|
}
|
|
322
343
|
/**
|
|
323
|
-
* @generated MessageType for protobuf message services.
|
|
344
|
+
* @generated MessageType for protobuf message services.notifications.MarkNotificationsRequest
|
|
324
345
|
*/
|
|
325
346
|
export const MarkNotificationsRequest = new MarkNotificationsRequest$Type();
|
|
326
347
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
327
348
|
class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsResponse> {
|
|
328
349
|
constructor() {
|
|
329
|
-
super("services.
|
|
330
|
-
{ no: 1, name: "updated", kind: "scalar", T:
|
|
350
|
+
super("services.notifications.MarkNotificationsResponse", [
|
|
351
|
+
{ no: 1, name: "updated", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
331
352
|
]);
|
|
332
353
|
}
|
|
333
354
|
create(value?: PartialMessage<MarkNotificationsResponse>): MarkNotificationsResponse {
|
|
@@ -342,8 +363,8 @@ class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsRespon
|
|
|
342
363
|
while (reader.pos < end) {
|
|
343
364
|
let [fieldNo, wireType] = reader.tag();
|
|
344
365
|
switch (fieldNo) {
|
|
345
|
-
case /*
|
|
346
|
-
message.updated = reader.
|
|
366
|
+
case /* int64 updated */ 1:
|
|
367
|
+
message.updated = reader.int64().toNumber();
|
|
347
368
|
break;
|
|
348
369
|
default:
|
|
349
370
|
let u = options.readUnknownField;
|
|
@@ -357,9 +378,9 @@ class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsRespon
|
|
|
357
378
|
return message;
|
|
358
379
|
}
|
|
359
380
|
internalBinaryWrite(message: MarkNotificationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
360
|
-
/*
|
|
381
|
+
/* int64 updated = 1; */
|
|
361
382
|
if (message.updated !== 0)
|
|
362
|
-
writer.tag(1, WireType.Varint).
|
|
383
|
+
writer.tag(1, WireType.Varint).int64(message.updated);
|
|
363
384
|
let u = options.writeUnknownFields;
|
|
364
385
|
if (u !== false)
|
|
365
386
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -367,16 +388,19 @@ class MarkNotificationsResponse$Type extends MessageType<MarkNotificationsRespon
|
|
|
367
388
|
}
|
|
368
389
|
}
|
|
369
390
|
/**
|
|
370
|
-
* @generated MessageType for protobuf message services.
|
|
391
|
+
* @generated MessageType for protobuf message services.notifications.MarkNotificationsResponse
|
|
371
392
|
*/
|
|
372
393
|
export const MarkNotificationsResponse = new MarkNotificationsResponse$Type();
|
|
373
394
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
374
395
|
class StreamRequest$Type extends MessageType<StreamRequest> {
|
|
375
396
|
constructor() {
|
|
376
|
-
super("services.
|
|
397
|
+
super("services.notifications.StreamRequest", [
|
|
398
|
+
{ no: 1, name: "client_view", kind: "message", oneof: "data", T: () => ClientView }
|
|
399
|
+
]);
|
|
377
400
|
}
|
|
378
401
|
create(value?: PartialMessage<StreamRequest>): StreamRequest {
|
|
379
402
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
403
|
+
message.data = { oneofKind: undefined };
|
|
380
404
|
if (value !== undefined)
|
|
381
405
|
reflectionMergePartial<StreamRequest>(this, message, value);
|
|
382
406
|
return message;
|
|
@@ -386,6 +410,12 @@ class StreamRequest$Type extends MessageType<StreamRequest> {
|
|
|
386
410
|
while (reader.pos < end) {
|
|
387
411
|
let [fieldNo, wireType] = reader.tag();
|
|
388
412
|
switch (fieldNo) {
|
|
413
|
+
case /* resources.notifications.ClientView client_view */ 1:
|
|
414
|
+
message.data = {
|
|
415
|
+
oneofKind: "clientView",
|
|
416
|
+
clientView: ClientView.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).clientView)
|
|
417
|
+
};
|
|
418
|
+
break;
|
|
389
419
|
default:
|
|
390
420
|
let u = options.readUnknownField;
|
|
391
421
|
if (u === "throw")
|
|
@@ -398,6 +428,9 @@ class StreamRequest$Type extends MessageType<StreamRequest> {
|
|
|
398
428
|
return message;
|
|
399
429
|
}
|
|
400
430
|
internalBinaryWrite(message: StreamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
431
|
+
/* resources.notifications.ClientView client_view = 1; */
|
|
432
|
+
if (message.data.oneofKind === "clientView")
|
|
433
|
+
ClientView.internalBinaryWrite(message.data.clientView, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
401
434
|
let u = options.writeUnknownFields;
|
|
402
435
|
if (u !== false)
|
|
403
436
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -405,20 +438,21 @@ class StreamRequest$Type extends MessageType<StreamRequest> {
|
|
|
405
438
|
}
|
|
406
439
|
}
|
|
407
440
|
/**
|
|
408
|
-
* @generated MessageType for protobuf message services.
|
|
441
|
+
* @generated MessageType for protobuf message services.notifications.StreamRequest
|
|
409
442
|
*/
|
|
410
443
|
export const StreamRequest = new StreamRequest$Type();
|
|
411
444
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
412
445
|
class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
413
446
|
constructor() {
|
|
414
|
-
super("services.
|
|
415
|
-
{ no: 1, name: "notification_count", kind: "scalar", T:
|
|
447
|
+
super("services.notifications.StreamResponse", [
|
|
448
|
+
{ no: 1, name: "notification_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
416
449
|
{ no: 2, name: "restart", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
417
450
|
{ no: 3, name: "user_event", kind: "message", oneof: "data", T: () => UserEvent },
|
|
418
451
|
{ no: 4, name: "job_event", kind: "message", oneof: "data", T: () => JobEvent },
|
|
419
|
-
{ no:
|
|
420
|
-
{ no:
|
|
421
|
-
{ no:
|
|
452
|
+
{ no: 5, name: "job_grade_event", kind: "message", oneof: "data", T: () => JobGradeEvent },
|
|
453
|
+
{ no: 6, name: "system_event", kind: "message", oneof: "data", T: () => SystemEvent },
|
|
454
|
+
{ no: 7, name: "mailer_event", kind: "message", oneof: "data", T: () => MailerEvent },
|
|
455
|
+
{ no: 8, name: "object_event", kind: "message", oneof: "data", T: () => ObjectEvent }
|
|
422
456
|
]);
|
|
423
457
|
}
|
|
424
458
|
create(value?: PartialMessage<StreamResponse>): StreamResponse {
|
|
@@ -434,8 +468,8 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
434
468
|
while (reader.pos < end) {
|
|
435
469
|
let [fieldNo, wireType] = reader.tag();
|
|
436
470
|
switch (fieldNo) {
|
|
437
|
-
case /*
|
|
438
|
-
message.notificationCount = reader.
|
|
471
|
+
case /* int64 notification_count */ 1:
|
|
472
|
+
message.notificationCount = reader.int64().toNumber();
|
|
439
473
|
break;
|
|
440
474
|
case /* optional bool restart */ 2:
|
|
441
475
|
message.restart = reader.bool();
|
|
@@ -452,24 +486,30 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
452
486
|
jobEvent: JobEvent.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).jobEvent)
|
|
453
487
|
};
|
|
454
488
|
break;
|
|
455
|
-
case /* resources.notifications.JobGradeEvent job_grade_event */
|
|
489
|
+
case /* resources.notifications.JobGradeEvent job_grade_event */ 5:
|
|
456
490
|
message.data = {
|
|
457
491
|
oneofKind: "jobGradeEvent",
|
|
458
492
|
jobGradeEvent: JobGradeEvent.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).jobGradeEvent)
|
|
459
493
|
};
|
|
460
494
|
break;
|
|
461
|
-
case /* resources.notifications.SystemEvent system_event */
|
|
495
|
+
case /* resources.notifications.SystemEvent system_event */ 6:
|
|
462
496
|
message.data = {
|
|
463
497
|
oneofKind: "systemEvent",
|
|
464
498
|
systemEvent: SystemEvent.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).systemEvent)
|
|
465
499
|
};
|
|
466
500
|
break;
|
|
467
|
-
case /* resources.mailer.MailerEvent mailer_event */
|
|
501
|
+
case /* resources.mailer.MailerEvent mailer_event */ 7:
|
|
468
502
|
message.data = {
|
|
469
503
|
oneofKind: "mailerEvent",
|
|
470
504
|
mailerEvent: MailerEvent.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).mailerEvent)
|
|
471
505
|
};
|
|
472
506
|
break;
|
|
507
|
+
case /* resources.notifications.ObjectEvent object_event */ 8:
|
|
508
|
+
message.data = {
|
|
509
|
+
oneofKind: "objectEvent",
|
|
510
|
+
objectEvent: ObjectEvent.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).objectEvent)
|
|
511
|
+
};
|
|
512
|
+
break;
|
|
473
513
|
default:
|
|
474
514
|
let u = options.readUnknownField;
|
|
475
515
|
if (u === "throw")
|
|
@@ -482,9 +522,9 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
482
522
|
return message;
|
|
483
523
|
}
|
|
484
524
|
internalBinaryWrite(message: StreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
485
|
-
/*
|
|
525
|
+
/* int64 notification_count = 1; */
|
|
486
526
|
if (message.notificationCount !== 0)
|
|
487
|
-
writer.tag(1, WireType.Varint).
|
|
527
|
+
writer.tag(1, WireType.Varint).int64(message.notificationCount);
|
|
488
528
|
/* optional bool restart = 2; */
|
|
489
529
|
if (message.restart !== undefined)
|
|
490
530
|
writer.tag(2, WireType.Varint).bool(message.restart);
|
|
@@ -494,15 +534,18 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
494
534
|
/* resources.notifications.JobEvent job_event = 4; */
|
|
495
535
|
if (message.data.oneofKind === "jobEvent")
|
|
496
536
|
JobEvent.internalBinaryWrite(message.data.jobEvent, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
497
|
-
/* resources.notifications.
|
|
537
|
+
/* resources.notifications.JobGradeEvent job_grade_event = 5; */
|
|
538
|
+
if (message.data.oneofKind === "jobGradeEvent")
|
|
539
|
+
JobGradeEvent.internalBinaryWrite(message.data.jobGradeEvent, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
540
|
+
/* resources.notifications.SystemEvent system_event = 6; */
|
|
498
541
|
if (message.data.oneofKind === "systemEvent")
|
|
499
|
-
SystemEvent.internalBinaryWrite(message.data.systemEvent, writer.tag(
|
|
500
|
-
/* resources.mailer.MailerEvent mailer_event =
|
|
542
|
+
SystemEvent.internalBinaryWrite(message.data.systemEvent, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
543
|
+
/* resources.mailer.MailerEvent mailer_event = 7; */
|
|
501
544
|
if (message.data.oneofKind === "mailerEvent")
|
|
502
|
-
MailerEvent.internalBinaryWrite(message.data.mailerEvent, writer.tag(
|
|
503
|
-
/* resources.notifications.
|
|
504
|
-
if (message.data.oneofKind === "
|
|
505
|
-
|
|
545
|
+
MailerEvent.internalBinaryWrite(message.data.mailerEvent, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
546
|
+
/* resources.notifications.ObjectEvent object_event = 8; */
|
|
547
|
+
if (message.data.oneofKind === "objectEvent")
|
|
548
|
+
ObjectEvent.internalBinaryWrite(message.data.objectEvent, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
506
549
|
let u = options.writeUnknownFields;
|
|
507
550
|
if (u !== false)
|
|
508
551
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -510,14 +553,14 @@ class StreamResponse$Type extends MessageType<StreamResponse> {
|
|
|
510
553
|
}
|
|
511
554
|
}
|
|
512
555
|
/**
|
|
513
|
-
* @generated MessageType for protobuf message services.
|
|
556
|
+
* @generated MessageType for protobuf message services.notifications.StreamResponse
|
|
514
557
|
*/
|
|
515
558
|
export const StreamResponse = new StreamResponse$Type();
|
|
516
559
|
/**
|
|
517
|
-
* @generated ServiceType for protobuf service services.
|
|
560
|
+
* @generated ServiceType for protobuf service services.notifications.NotificationsService
|
|
518
561
|
*/
|
|
519
|
-
export const
|
|
520
|
-
{ name: "GetNotifications", options: {}, I: GetNotificationsRequest, O: GetNotificationsResponse },
|
|
521
|
-
{ name: "MarkNotifications", options: {}, I: MarkNotificationsRequest, O: MarkNotificationsResponse },
|
|
522
|
-
{ name: "Stream", serverStreaming: true, options: {}, I: StreamRequest, O: StreamResponse }
|
|
562
|
+
export const NotificationsService = new ServiceType("services.notifications.NotificationsService", [
|
|
563
|
+
{ name: "GetNotifications", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: GetNotificationsRequest, O: GetNotificationsResponse },
|
|
564
|
+
{ name: "MarkNotifications", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: MarkNotificationsRequest, O: MarkNotificationsResponse },
|
|
565
|
+
{ name: "Stream", serverStreaming: true, clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: StreamRequest, O: StreamResponse }
|
|
523
566
|
]);
|