@g2gs/contracts 1.0.70 → 1.0.71
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/admin/notification/v1/service_connect.d.ts +80 -0
- package/admin/notification/v1/service_connect.js +80 -0
- package/admin/notification/v1/service_pb.d.ts +347 -0
- package/admin/notification/v1/service_pb.js +104 -0
- package/package.json +1 -1
- package/public/notification/v1/service_connect.d.ts +57 -0
- package/public/notification/v1/service_connect.js +57 -0
- package/public/notification/v1/service_pb.d.ts +214 -0
- package/public/notification/v1/service_pb.js +73 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file admin/notification/v1/service.proto (package admin.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { DisableNotificationRequest, EnableNotificationRequest, GetUnreadCountRequest, GetUnreadCountResponse, ListDisabledSettingsRequest, ListDisabledSettingsResponse, ListNotificationsRequest, ListNotificationsResponse, MarkAllAsReadRequest, MarkAsReadRequest } from "./service_pb.js";
|
|
7
|
+
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service admin.notification.v1.NotificationAdminService
|
|
11
|
+
*/
|
|
12
|
+
export declare const NotificationAdminService: {
|
|
13
|
+
readonly typeName: "admin.notification.v1.NotificationAdminService",
|
|
14
|
+
readonly methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.ListNotifications
|
|
17
|
+
*/
|
|
18
|
+
readonly listNotifications: {
|
|
19
|
+
readonly name: "ListNotifications",
|
|
20
|
+
readonly I: typeof ListNotificationsRequest,
|
|
21
|
+
readonly O: typeof ListNotificationsResponse,
|
|
22
|
+
readonly kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.MarkAsRead
|
|
26
|
+
*/
|
|
27
|
+
readonly markAsRead: {
|
|
28
|
+
readonly name: "MarkAsRead",
|
|
29
|
+
readonly I: typeof MarkAsReadRequest,
|
|
30
|
+
readonly O: typeof Empty,
|
|
31
|
+
readonly kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.MarkAllAsRead
|
|
35
|
+
*/
|
|
36
|
+
readonly markAllAsRead: {
|
|
37
|
+
readonly name: "MarkAllAsRead",
|
|
38
|
+
readonly I: typeof MarkAllAsReadRequest,
|
|
39
|
+
readonly O: typeof Empty,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.GetUnreadCount
|
|
44
|
+
*/
|
|
45
|
+
readonly getUnreadCount: {
|
|
46
|
+
readonly name: "GetUnreadCount",
|
|
47
|
+
readonly I: typeof GetUnreadCountRequest,
|
|
48
|
+
readonly O: typeof GetUnreadCountResponse,
|
|
49
|
+
readonly kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.ListDisabledSettings
|
|
53
|
+
*/
|
|
54
|
+
readonly listDisabledSettings: {
|
|
55
|
+
readonly name: "ListDisabledSettings",
|
|
56
|
+
readonly I: typeof ListDisabledSettingsRequest,
|
|
57
|
+
readonly O: typeof ListDisabledSettingsResponse,
|
|
58
|
+
readonly kind: MethodKind.Unary,
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.DisableNotification
|
|
62
|
+
*/
|
|
63
|
+
readonly disableNotification: {
|
|
64
|
+
readonly name: "DisableNotification",
|
|
65
|
+
readonly I: typeof DisableNotificationRequest,
|
|
66
|
+
readonly O: typeof Empty,
|
|
67
|
+
readonly kind: MethodKind.Unary,
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.EnableNotification
|
|
71
|
+
*/
|
|
72
|
+
readonly enableNotification: {
|
|
73
|
+
readonly name: "EnableNotification",
|
|
74
|
+
readonly I: typeof EnableNotificationRequest,
|
|
75
|
+
readonly O: typeof Empty,
|
|
76
|
+
readonly kind: MethodKind.Unary,
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file admin/notification/v1/service.proto (package admin.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { DisableNotificationRequest, EnableNotificationRequest, GetUnreadCountRequest, GetUnreadCountResponse, ListDisabledSettingsRequest, ListDisabledSettingsResponse, ListNotificationsRequest, ListNotificationsResponse, MarkAllAsReadRequest, MarkAsReadRequest } from "./service_pb.js";
|
|
7
|
+
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service admin.notification.v1.NotificationAdminService
|
|
11
|
+
*/
|
|
12
|
+
export const NotificationAdminService = {
|
|
13
|
+
typeName: "admin.notification.v1.NotificationAdminService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.ListNotifications
|
|
17
|
+
*/
|
|
18
|
+
listNotifications: {
|
|
19
|
+
name: "ListNotifications",
|
|
20
|
+
I: ListNotificationsRequest,
|
|
21
|
+
O: ListNotificationsResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.MarkAsRead
|
|
26
|
+
*/
|
|
27
|
+
markAsRead: {
|
|
28
|
+
name: "MarkAsRead",
|
|
29
|
+
I: MarkAsReadRequest,
|
|
30
|
+
O: Empty,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.MarkAllAsRead
|
|
35
|
+
*/
|
|
36
|
+
markAllAsRead: {
|
|
37
|
+
name: "MarkAllAsRead",
|
|
38
|
+
I: MarkAllAsReadRequest,
|
|
39
|
+
O: Empty,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.GetUnreadCount
|
|
44
|
+
*/
|
|
45
|
+
getUnreadCount: {
|
|
46
|
+
name: "GetUnreadCount",
|
|
47
|
+
I: GetUnreadCountRequest,
|
|
48
|
+
O: GetUnreadCountResponse,
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.ListDisabledSettings
|
|
53
|
+
*/
|
|
54
|
+
listDisabledSettings: {
|
|
55
|
+
name: "ListDisabledSettings",
|
|
56
|
+
I: ListDisabledSettingsRequest,
|
|
57
|
+
O: ListDisabledSettingsResponse,
|
|
58
|
+
kind: MethodKind.Unary,
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.DisableNotification
|
|
62
|
+
*/
|
|
63
|
+
disableNotification: {
|
|
64
|
+
name: "DisableNotification",
|
|
65
|
+
I: DisableNotificationRequest,
|
|
66
|
+
O: Empty,
|
|
67
|
+
kind: MethodKind.Unary,
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.EnableNotification
|
|
71
|
+
*/
|
|
72
|
+
enableNotification: {
|
|
73
|
+
name: "EnableNotification",
|
|
74
|
+
I: EnableNotificationRequest,
|
|
75
|
+
O: Empty,
|
|
76
|
+
kind: MethodKind.Unary,
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file admin/notification/v1/service.proto (package admin.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file admin/notification/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_admin_notification_v1_service: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @generated from message admin.notification.v1.Notification
|
|
16
|
+
*/
|
|
17
|
+
export declare type Notification = Message<"admin.notification.v1.Notification"> & {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: int64 id = 1;
|
|
20
|
+
*/
|
|
21
|
+
id: bigint;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string principal_type = 2;
|
|
25
|
+
*/
|
|
26
|
+
principalType: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string principal_id = 3;
|
|
30
|
+
*/
|
|
31
|
+
principalId: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: string category = 4;
|
|
35
|
+
*/
|
|
36
|
+
category: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: string type = 5;
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: google.protobuf.Struct payload = 6;
|
|
45
|
+
*/
|
|
46
|
+
payload?: JsonObject;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: Timestamp;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: optional google.protobuf.Timestamp read_at = 8;
|
|
55
|
+
*/
|
|
56
|
+
readAt?: Timestamp;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string event_id = 9;
|
|
60
|
+
*/
|
|
61
|
+
eventId: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message admin.notification.v1.Notification.
|
|
66
|
+
* Use `create(NotificationSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export declare const NotificationSchema: GenMessage<Notification>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from message admin.notification.v1.DisabledSetting
|
|
72
|
+
*/
|
|
73
|
+
export declare type DisabledSetting = Message<"admin.notification.v1.DisabledSetting"> & {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string staff_id = 1;
|
|
76
|
+
*/
|
|
77
|
+
staffId: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: string category = 2;
|
|
81
|
+
*/
|
|
82
|
+
category: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* конкретный type или "*" (wildcard)
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: string type = 3;
|
|
88
|
+
*/
|
|
89
|
+
type: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string channel = 4;
|
|
93
|
+
*/
|
|
94
|
+
channel: string;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message admin.notification.v1.DisabledSetting.
|
|
99
|
+
* Use `create(DisabledSettingSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export declare const DisabledSettingSchema: GenMessage<DisabledSetting>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from message admin.notification.v1.ListNotificationsRequest
|
|
105
|
+
*/
|
|
106
|
+
export declare type ListNotificationsRequest = Message<"admin.notification.v1.ListNotificationsRequest"> & {
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: bool only_unread = 1;
|
|
109
|
+
*/
|
|
110
|
+
onlyUnread: boolean;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: uint32 limit = 2;
|
|
114
|
+
*/
|
|
115
|
+
limit: number;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: uint64 offset = 3;
|
|
119
|
+
*/
|
|
120
|
+
offset: bigint;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message admin.notification.v1.ListNotificationsRequest.
|
|
125
|
+
* Use `create(ListNotificationsRequestSchema)` to create a new message.
|
|
126
|
+
*/
|
|
127
|
+
export declare const ListNotificationsRequestSchema: GenMessage<ListNotificationsRequest>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from message admin.notification.v1.ListNotificationsResponse
|
|
131
|
+
*/
|
|
132
|
+
export declare type ListNotificationsResponse = Message<"admin.notification.v1.ListNotificationsResponse"> & {
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: repeated admin.notification.v1.Notification notifications = 1;
|
|
135
|
+
*/
|
|
136
|
+
notifications: Notification[];
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: int64 total = 2;
|
|
140
|
+
*/
|
|
141
|
+
total: bigint;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Describes the message admin.notification.v1.ListNotificationsResponse.
|
|
146
|
+
* Use `create(ListNotificationsResponseSchema)` to create a new message.
|
|
147
|
+
*/
|
|
148
|
+
export declare const ListNotificationsResponseSchema: GenMessage<ListNotificationsResponse>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from message admin.notification.v1.MarkAsReadRequest
|
|
152
|
+
*/
|
|
153
|
+
export declare type MarkAsReadRequest = Message<"admin.notification.v1.MarkAsReadRequest"> & {
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: int64 notification_id = 1;
|
|
156
|
+
*/
|
|
157
|
+
notificationId: bigint;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Describes the message admin.notification.v1.MarkAsReadRequest.
|
|
162
|
+
* Use `create(MarkAsReadRequestSchema)` to create a new message.
|
|
163
|
+
*/
|
|
164
|
+
export declare const MarkAsReadRequestSchema: GenMessage<MarkAsReadRequest>;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @generated from message admin.notification.v1.MarkAllAsReadRequest
|
|
168
|
+
*/
|
|
169
|
+
export declare type MarkAllAsReadRequest = Message<"admin.notification.v1.MarkAllAsReadRequest"> & {
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Describes the message admin.notification.v1.MarkAllAsReadRequest.
|
|
174
|
+
* Use `create(MarkAllAsReadRequestSchema)` to create a new message.
|
|
175
|
+
*/
|
|
176
|
+
export declare const MarkAllAsReadRequestSchema: GenMessage<MarkAllAsReadRequest>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message admin.notification.v1.GetUnreadCountRequest
|
|
180
|
+
*/
|
|
181
|
+
export declare type GetUnreadCountRequest = Message<"admin.notification.v1.GetUnreadCountRequest"> & {
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message admin.notification.v1.GetUnreadCountRequest.
|
|
186
|
+
* Use `create(GetUnreadCountRequestSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export declare const GetUnreadCountRequestSchema: GenMessage<GetUnreadCountRequest>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @generated from message admin.notification.v1.GetUnreadCountResponse
|
|
192
|
+
*/
|
|
193
|
+
export declare type GetUnreadCountResponse = Message<"admin.notification.v1.GetUnreadCountResponse"> & {
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: int64 count = 1;
|
|
196
|
+
*/
|
|
197
|
+
count: bigint;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Describes the message admin.notification.v1.GetUnreadCountResponse.
|
|
202
|
+
* Use `create(GetUnreadCountResponseSchema)` to create a new message.
|
|
203
|
+
*/
|
|
204
|
+
export declare const GetUnreadCountResponseSchema: GenMessage<GetUnreadCountResponse>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message admin.notification.v1.ListDisabledSettingsRequest
|
|
208
|
+
*/
|
|
209
|
+
export declare type ListDisabledSettingsRequest = Message<"admin.notification.v1.ListDisabledSettingsRequest"> & {
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Describes the message admin.notification.v1.ListDisabledSettingsRequest.
|
|
214
|
+
* Use `create(ListDisabledSettingsRequestSchema)` to create a new message.
|
|
215
|
+
*/
|
|
216
|
+
export declare const ListDisabledSettingsRequestSchema: GenMessage<ListDisabledSettingsRequest>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @generated from message admin.notification.v1.ListDisabledSettingsResponse
|
|
220
|
+
*/
|
|
221
|
+
export declare type ListDisabledSettingsResponse = Message<"admin.notification.v1.ListDisabledSettingsResponse"> & {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: repeated admin.notification.v1.DisabledSetting settings = 1;
|
|
224
|
+
*/
|
|
225
|
+
settings: DisabledSetting[];
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Describes the message admin.notification.v1.ListDisabledSettingsResponse.
|
|
230
|
+
* Use `create(ListDisabledSettingsResponseSchema)` to create a new message.
|
|
231
|
+
*/
|
|
232
|
+
export declare const ListDisabledSettingsResponseSchema: GenMessage<ListDisabledSettingsResponse>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @generated from message admin.notification.v1.DisableNotificationRequest
|
|
236
|
+
*/
|
|
237
|
+
export declare type DisableNotificationRequest = Message<"admin.notification.v1.DisableNotificationRequest"> & {
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string category = 1;
|
|
240
|
+
*/
|
|
241
|
+
category: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: string type = 2;
|
|
245
|
+
*/
|
|
246
|
+
type: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @generated from field: string channel = 3;
|
|
250
|
+
*/
|
|
251
|
+
channel: string;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Describes the message admin.notification.v1.DisableNotificationRequest.
|
|
256
|
+
* Use `create(DisableNotificationRequestSchema)` to create a new message.
|
|
257
|
+
*/
|
|
258
|
+
export declare const DisableNotificationRequestSchema: GenMessage<DisableNotificationRequest>;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @generated from message admin.notification.v1.EnableNotificationRequest
|
|
262
|
+
*/
|
|
263
|
+
export declare type EnableNotificationRequest = Message<"admin.notification.v1.EnableNotificationRequest"> & {
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: string category = 1;
|
|
266
|
+
*/
|
|
267
|
+
category: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @generated from field: string type = 2;
|
|
271
|
+
*/
|
|
272
|
+
type: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: string channel = 3;
|
|
276
|
+
*/
|
|
277
|
+
channel: string;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Describes the message admin.notification.v1.EnableNotificationRequest.
|
|
282
|
+
* Use `create(EnableNotificationRequestSchema)` to create a new message.
|
|
283
|
+
*/
|
|
284
|
+
export declare const EnableNotificationRequestSchema: GenMessage<EnableNotificationRequest>;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from service admin.notification.v1.NotificationAdminService
|
|
288
|
+
*/
|
|
289
|
+
export declare const NotificationAdminService: GenService<{
|
|
290
|
+
/**
|
|
291
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.ListNotifications
|
|
292
|
+
*/
|
|
293
|
+
listNotifications: {
|
|
294
|
+
methodKind: "unary";
|
|
295
|
+
input: typeof ListNotificationsRequestSchema;
|
|
296
|
+
output: typeof ListNotificationsResponseSchema;
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.MarkAsRead
|
|
300
|
+
*/
|
|
301
|
+
markAsRead: {
|
|
302
|
+
methodKind: "unary";
|
|
303
|
+
input: typeof MarkAsReadRequestSchema;
|
|
304
|
+
output: typeof EmptySchema;
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.MarkAllAsRead
|
|
308
|
+
*/
|
|
309
|
+
markAllAsRead: {
|
|
310
|
+
methodKind: "unary";
|
|
311
|
+
input: typeof MarkAllAsReadRequestSchema;
|
|
312
|
+
output: typeof EmptySchema;
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.GetUnreadCount
|
|
316
|
+
*/
|
|
317
|
+
getUnreadCount: {
|
|
318
|
+
methodKind: "unary";
|
|
319
|
+
input: typeof GetUnreadCountRequestSchema;
|
|
320
|
+
output: typeof GetUnreadCountResponseSchema;
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.ListDisabledSettings
|
|
324
|
+
*/
|
|
325
|
+
listDisabledSettings: {
|
|
326
|
+
methodKind: "unary";
|
|
327
|
+
input: typeof ListDisabledSettingsRequestSchema;
|
|
328
|
+
output: typeof ListDisabledSettingsResponseSchema;
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.DisableNotification
|
|
332
|
+
*/
|
|
333
|
+
disableNotification: {
|
|
334
|
+
methodKind: "unary";
|
|
335
|
+
input: typeof DisableNotificationRequestSchema;
|
|
336
|
+
output: typeof EmptySchema;
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
* @generated from rpc admin.notification.v1.NotificationAdminService.EnableNotification
|
|
340
|
+
*/
|
|
341
|
+
enableNotification: {
|
|
342
|
+
methodKind: "unary";
|
|
343
|
+
input: typeof EnableNotificationRequestSchema;
|
|
344
|
+
output: typeof EmptySchema;
|
|
345
|
+
},
|
|
346
|
+
}>;
|
|
347
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file admin/notification/v1/service.proto (package admin.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_google_api_annotations } from "../../../google/api/annotations_pb";
|
|
7
|
+
import { file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file admin/notification/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_admin_notification_v1_service = /*@__PURE__*/
|
|
13
|
+
fileDesc("CiNhZG1pbi9ub3RpZmljYXRpb24vdjEvc2VydmljZS5wcm90bxIVYWRtaW4ubm90aWZpY2F0aW9uLnYxIpICCgxOb3RpZmljYXRpb24SCgoCaWQYASABKAMSFgoOcHJpbmNpcGFsX3R5cGUYAiABKAkSFAoMcHJpbmNpcGFsX2lkGAMgASgJEhAKCGNhdGVnb3J5GAQgASgJEgwKBHR5cGUYBSABKAkSKAoHcGF5bG9hZBgGIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSLgoKY3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pY2F0aW9uEjEuYWRtaW4ubm90aWZpY2F0aW9uLnYxLkRpc2FibGVOb3RpZmljYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjSC0+STAi46ASoiKS9hZG1pbi92MS9ub3RpZmljYXRpb25zL3NldHRpbmdzL2Rpc2FibGVkEpQBChJFbmFibGVOb3RpZmljYXRpb24SMC5hZG1pbi5ub3RpZmljYXRpb24udjEuRW5hYmxlTm90aWZpY2F0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSI0gtPkkwIuOgEqKikvYWRtaW4vdjEvbm90aWZpY2F0aW9ucy9zZXR0aW5ncy9kaXNhYmxlZEJMWkpnaXRodWIuY29tL0cyR3MvYXBpLWNvbnRyYWN0cy1nby9hZG1pbi9ub3RpZmljYXRpb24vdjE7YWRtaW5ub3RpZmljYXRpb252MWIGcHJvdG8z", [file_google_api_annotations, file_google_protobuf_empty, file_google_protobuf_timestamp, file_google_protobuf_struct]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message admin.notification.v1.Notification.
|
|
17
|
+
* Use `create(NotificationSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const NotificationSchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_admin_notification_v1_service, 0);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message admin.notification.v1.DisabledSetting.
|
|
24
|
+
* Use `create(DisabledSettingSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const DisabledSettingSchema = /*@__PURE__*/
|
|
27
|
+
messageDesc(file_admin_notification_v1_service, 1);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message admin.notification.v1.ListNotificationsRequest.
|
|
31
|
+
* Use `create(ListNotificationsRequestSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ListNotificationsRequestSchema = /*@__PURE__*/
|
|
34
|
+
messageDesc(file_admin_notification_v1_service, 2);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message admin.notification.v1.ListNotificationsResponse.
|
|
38
|
+
* Use `create(ListNotificationsResponseSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const ListNotificationsResponseSchema = /*@__PURE__*/
|
|
41
|
+
messageDesc(file_admin_notification_v1_service, 3);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message admin.notification.v1.MarkAsReadRequest.
|
|
45
|
+
* Use `create(MarkAsReadRequestSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export const MarkAsReadRequestSchema = /*@__PURE__*/
|
|
48
|
+
messageDesc(file_admin_notification_v1_service, 4);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message admin.notification.v1.MarkAllAsReadRequest.
|
|
52
|
+
* Use `create(MarkAllAsReadRequestSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const MarkAllAsReadRequestSchema = /*@__PURE__*/
|
|
55
|
+
messageDesc(file_admin_notification_v1_service, 5);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message admin.notification.v1.GetUnreadCountRequest.
|
|
59
|
+
* Use `create(GetUnreadCountRequestSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const GetUnreadCountRequestSchema = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_admin_notification_v1_service, 6);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message admin.notification.v1.GetUnreadCountResponse.
|
|
66
|
+
* Use `create(GetUnreadCountResponseSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const GetUnreadCountResponseSchema = /*@__PURE__*/
|
|
69
|
+
messageDesc(file_admin_notification_v1_service, 7);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message admin.notification.v1.ListDisabledSettingsRequest.
|
|
73
|
+
* Use `create(ListDisabledSettingsRequestSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export const ListDisabledSettingsRequestSchema = /*@__PURE__*/
|
|
76
|
+
messageDesc(file_admin_notification_v1_service, 8);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Describes the message admin.notification.v1.ListDisabledSettingsResponse.
|
|
80
|
+
* Use `create(ListDisabledSettingsResponseSchema)` to create a new message.
|
|
81
|
+
*/
|
|
82
|
+
export const ListDisabledSettingsResponseSchema = /*@__PURE__*/
|
|
83
|
+
messageDesc(file_admin_notification_v1_service, 9);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Describes the message admin.notification.v1.DisableNotificationRequest.
|
|
87
|
+
* Use `create(DisableNotificationRequestSchema)` to create a new message.
|
|
88
|
+
*/
|
|
89
|
+
export const DisableNotificationRequestSchema = /*@__PURE__*/
|
|
90
|
+
messageDesc(file_admin_notification_v1_service, 10);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message admin.notification.v1.EnableNotificationRequest.
|
|
94
|
+
* Use `create(EnableNotificationRequestSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export const EnableNotificationRequestSchema = /*@__PURE__*/
|
|
97
|
+
messageDesc(file_admin_notification_v1_service, 11);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from service admin.notification.v1.NotificationAdminService
|
|
101
|
+
*/
|
|
102
|
+
export const NotificationAdminService = /*@__PURE__*/
|
|
103
|
+
serviceDesc(file_admin_notification_v1_service, 0);
|
|
104
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file public/notification/v1/service.proto (package public.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetUnreadCountRequest, GetUnreadCountResponse, ListNotificationsRequest, ListNotificationsResponse, MarkAllAsReadRequest, MarkAsReadRequest } from "./service_pb.js";
|
|
7
|
+
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* NotificationPublicService — инбокс уведомлений для обычных пользователей.
|
|
11
|
+
* Настройки каналов для пользователей недоступны (только для staff).
|
|
12
|
+
* principal берётся из JWT.
|
|
13
|
+
*
|
|
14
|
+
* @generated from service public.notification.v1.NotificationPublicService
|
|
15
|
+
*/
|
|
16
|
+
export declare const NotificationPublicService: {
|
|
17
|
+
readonly typeName: "public.notification.v1.NotificationPublicService",
|
|
18
|
+
readonly methods: {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.ListNotifications
|
|
21
|
+
*/
|
|
22
|
+
readonly listNotifications: {
|
|
23
|
+
readonly name: "ListNotifications",
|
|
24
|
+
readonly I: typeof ListNotificationsRequest,
|
|
25
|
+
readonly O: typeof ListNotificationsResponse,
|
|
26
|
+
readonly kind: MethodKind.Unary,
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.MarkAsRead
|
|
30
|
+
*/
|
|
31
|
+
readonly markAsRead: {
|
|
32
|
+
readonly name: "MarkAsRead",
|
|
33
|
+
readonly I: typeof MarkAsReadRequest,
|
|
34
|
+
readonly O: typeof Empty,
|
|
35
|
+
readonly kind: MethodKind.Unary,
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.MarkAllAsRead
|
|
39
|
+
*/
|
|
40
|
+
readonly markAllAsRead: {
|
|
41
|
+
readonly name: "MarkAllAsRead",
|
|
42
|
+
readonly I: typeof MarkAllAsReadRequest,
|
|
43
|
+
readonly O: typeof Empty,
|
|
44
|
+
readonly kind: MethodKind.Unary,
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.GetUnreadCount
|
|
48
|
+
*/
|
|
49
|
+
readonly getUnreadCount: {
|
|
50
|
+
readonly name: "GetUnreadCount",
|
|
51
|
+
readonly I: typeof GetUnreadCountRequest,
|
|
52
|
+
readonly O: typeof GetUnreadCountResponse,
|
|
53
|
+
readonly kind: MethodKind.Unary,
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1
|
|
2
|
+
// @generated from file public/notification/v1/service.proto (package public.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetUnreadCountRequest, GetUnreadCountResponse, ListNotificationsRequest, ListNotificationsResponse, MarkAllAsReadRequest, MarkAsReadRequest } from "./service_pb.js";
|
|
7
|
+
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* NotificationPublicService — инбокс уведомлений для обычных пользователей.
|
|
11
|
+
* Настройки каналов для пользователей недоступны (только для staff).
|
|
12
|
+
* principal берётся из JWT.
|
|
13
|
+
*
|
|
14
|
+
* @generated from service public.notification.v1.NotificationPublicService
|
|
15
|
+
*/
|
|
16
|
+
export const NotificationPublicService = {
|
|
17
|
+
typeName: "public.notification.v1.NotificationPublicService",
|
|
18
|
+
methods: {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.ListNotifications
|
|
21
|
+
*/
|
|
22
|
+
listNotifications: {
|
|
23
|
+
name: "ListNotifications",
|
|
24
|
+
I: ListNotificationsRequest,
|
|
25
|
+
O: ListNotificationsResponse,
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.MarkAsRead
|
|
30
|
+
*/
|
|
31
|
+
markAsRead: {
|
|
32
|
+
name: "MarkAsRead",
|
|
33
|
+
I: MarkAsReadRequest,
|
|
34
|
+
O: Empty,
|
|
35
|
+
kind: MethodKind.Unary,
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.MarkAllAsRead
|
|
39
|
+
*/
|
|
40
|
+
markAllAsRead: {
|
|
41
|
+
name: "MarkAllAsRead",
|
|
42
|
+
I: MarkAllAsReadRequest,
|
|
43
|
+
O: Empty,
|
|
44
|
+
kind: MethodKind.Unary,
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.GetUnreadCount
|
|
48
|
+
*/
|
|
49
|
+
getUnreadCount: {
|
|
50
|
+
name: "GetUnreadCount",
|
|
51
|
+
I: GetUnreadCountRequest,
|
|
52
|
+
O: GetUnreadCountResponse,
|
|
53
|
+
kind: MethodKind.Unary,
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file public/notification/v1/service.proto (package public.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file public/notification/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_public_notification_v1_service: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @generated from message public.notification.v1.Notification
|
|
16
|
+
*/
|
|
17
|
+
export declare type Notification = Message<"public.notification.v1.Notification"> & {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: int64 id = 1;
|
|
20
|
+
*/
|
|
21
|
+
id: bigint;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string principal_type = 2;
|
|
25
|
+
*/
|
|
26
|
+
principalType: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string principal_id = 3;
|
|
30
|
+
*/
|
|
31
|
+
principalId: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: string category = 4;
|
|
35
|
+
*/
|
|
36
|
+
category: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: string type = 5;
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: google.protobuf.Struct payload = 6;
|
|
45
|
+
*/
|
|
46
|
+
payload?: JsonObject;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: Timestamp;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: optional google.protobuf.Timestamp read_at = 8;
|
|
55
|
+
*/
|
|
56
|
+
readAt?: Timestamp;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string event_id = 9;
|
|
60
|
+
*/
|
|
61
|
+
eventId: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message public.notification.v1.Notification.
|
|
66
|
+
* Use `create(NotificationSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export declare const NotificationSchema: GenMessage<Notification>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from message public.notification.v1.ListNotificationsRequest
|
|
72
|
+
*/
|
|
73
|
+
export declare type ListNotificationsRequest = Message<"public.notification.v1.ListNotificationsRequest"> & {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: bool only_unread = 1;
|
|
76
|
+
*/
|
|
77
|
+
onlyUnread: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: uint32 limit = 2;
|
|
81
|
+
*/
|
|
82
|
+
limit: number;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: uint64 offset = 3;
|
|
86
|
+
*/
|
|
87
|
+
offset: bigint;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Describes the message public.notification.v1.ListNotificationsRequest.
|
|
92
|
+
* Use `create(ListNotificationsRequestSchema)` to create a new message.
|
|
93
|
+
*/
|
|
94
|
+
export declare const ListNotificationsRequestSchema: GenMessage<ListNotificationsRequest>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from message public.notification.v1.ListNotificationsResponse
|
|
98
|
+
*/
|
|
99
|
+
export declare type ListNotificationsResponse = Message<"public.notification.v1.ListNotificationsResponse"> & {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: repeated public.notification.v1.Notification notifications = 1;
|
|
102
|
+
*/
|
|
103
|
+
notifications: Notification[];
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: int64 total = 2;
|
|
107
|
+
*/
|
|
108
|
+
total: bigint;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Describes the message public.notification.v1.ListNotificationsResponse.
|
|
113
|
+
* Use `create(ListNotificationsResponseSchema)` to create a new message.
|
|
114
|
+
*/
|
|
115
|
+
export declare const ListNotificationsResponseSchema: GenMessage<ListNotificationsResponse>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @generated from message public.notification.v1.MarkAsReadRequest
|
|
119
|
+
*/
|
|
120
|
+
export declare type MarkAsReadRequest = Message<"public.notification.v1.MarkAsReadRequest"> & {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: int64 notification_id = 1;
|
|
123
|
+
*/
|
|
124
|
+
notificationId: bigint;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Describes the message public.notification.v1.MarkAsReadRequest.
|
|
129
|
+
* Use `create(MarkAsReadRequestSchema)` to create a new message.
|
|
130
|
+
*/
|
|
131
|
+
export declare const MarkAsReadRequestSchema: GenMessage<MarkAsReadRequest>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @generated from message public.notification.v1.MarkAllAsReadRequest
|
|
135
|
+
*/
|
|
136
|
+
export declare type MarkAllAsReadRequest = Message<"public.notification.v1.MarkAllAsReadRequest"> & {
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message public.notification.v1.MarkAllAsReadRequest.
|
|
141
|
+
* Use `create(MarkAllAsReadRequestSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export declare const MarkAllAsReadRequestSchema: GenMessage<MarkAllAsReadRequest>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message public.notification.v1.GetUnreadCountRequest
|
|
147
|
+
*/
|
|
148
|
+
export declare type GetUnreadCountRequest = Message<"public.notification.v1.GetUnreadCountRequest"> & {
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Describes the message public.notification.v1.GetUnreadCountRequest.
|
|
153
|
+
* Use `create(GetUnreadCountRequestSchema)` to create a new message.
|
|
154
|
+
*/
|
|
155
|
+
export declare const GetUnreadCountRequestSchema: GenMessage<GetUnreadCountRequest>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @generated from message public.notification.v1.GetUnreadCountResponse
|
|
159
|
+
*/
|
|
160
|
+
export declare type GetUnreadCountResponse = Message<"public.notification.v1.GetUnreadCountResponse"> & {
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: int64 count = 1;
|
|
163
|
+
*/
|
|
164
|
+
count: bigint;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Describes the message public.notification.v1.GetUnreadCountResponse.
|
|
169
|
+
* Use `create(GetUnreadCountResponseSchema)` to create a new message.
|
|
170
|
+
*/
|
|
171
|
+
export declare const GetUnreadCountResponseSchema: GenMessage<GetUnreadCountResponse>;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* NotificationPublicService — инбокс уведомлений для обычных пользователей.
|
|
175
|
+
* Настройки каналов для пользователей недоступны (только для staff).
|
|
176
|
+
* principal берётся из JWT.
|
|
177
|
+
*
|
|
178
|
+
* @generated from service public.notification.v1.NotificationPublicService
|
|
179
|
+
*/
|
|
180
|
+
export declare const NotificationPublicService: GenService<{
|
|
181
|
+
/**
|
|
182
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.ListNotifications
|
|
183
|
+
*/
|
|
184
|
+
listNotifications: {
|
|
185
|
+
methodKind: "unary";
|
|
186
|
+
input: typeof ListNotificationsRequestSchema;
|
|
187
|
+
output: typeof ListNotificationsResponseSchema;
|
|
188
|
+
},
|
|
189
|
+
/**
|
|
190
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.MarkAsRead
|
|
191
|
+
*/
|
|
192
|
+
markAsRead: {
|
|
193
|
+
methodKind: "unary";
|
|
194
|
+
input: typeof MarkAsReadRequestSchema;
|
|
195
|
+
output: typeof EmptySchema;
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.MarkAllAsRead
|
|
199
|
+
*/
|
|
200
|
+
markAllAsRead: {
|
|
201
|
+
methodKind: "unary";
|
|
202
|
+
input: typeof MarkAllAsReadRequestSchema;
|
|
203
|
+
output: typeof EmptySchema;
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
* @generated from rpc public.notification.v1.NotificationPublicService.GetUnreadCount
|
|
207
|
+
*/
|
|
208
|
+
getUnreadCount: {
|
|
209
|
+
methodKind: "unary";
|
|
210
|
+
input: typeof GetUnreadCountRequestSchema;
|
|
211
|
+
output: typeof GetUnreadCountResponseSchema;
|
|
212
|
+
},
|
|
213
|
+
}>;
|
|
214
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0
|
|
2
|
+
// @generated from file public/notification/v1/service.proto (package public.notification.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_google_api_annotations } from "../../../google/api/annotations_pb";
|
|
7
|
+
import { file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file public/notification/v1/service.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_public_notification_v1_service = /*@__PURE__*/
|
|
13
|
+
fileDesc("CiRwdWJsaWMvbm90aWZpY2F0aW9uL3YxL3NlcnZpY2UucHJvdG8SFnB1YmxpYy5ub3RpZmljYXRpb24udjEikgIKDE5vdGlmaWNhdGlvbhIKCgJpZBgBIAEoAxIWCg5wcmluY2lwYWxfdHlwZRgCIAEoCRIUCgxwcmluY2lwYWxfaWQYAyABKAkSEAoIY2F0ZWdvcnkYBCABKAkSDAoEdHlwZRgFIAEoCRIoCgdwYXlsb2FkGAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIuCgpjcmVhdGVkX2F0GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwCgdyZWFkX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAiAEBEhAKCGV2ZW50X2lkGAkgASgJQgoKCF9yZWFkX2F0Ik4KGExpc3ROb3RpZmljYXRpb25zUmVxdWVzdBITCgtvbmx5X3VucmVhZBgBIAEoCBINCgVsaW1pdBgCIAEoDRIOCgZvZmZzZXQYAyABKAQiZwoZTGlzdE5vdGlmaWNhdGlvbnNSZXNwb25zZRI7Cg1ub3RpZmljYXRpb25zGAEgAygLMiQucHVibGljLm5vdGlmaWNhdGlvbi52MS5Ob3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RzLWdvL3B1YmxpYy9ub3RpZmljYXRpb24vdjE7cHVibGljbm90aWZpY2F0aW9udjFiBnByb3RvMw", [file_google_api_annotations, file_google_protobuf_empty, file_google_protobuf_timestamp, file_google_protobuf_struct]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message public.notification.v1.Notification.
|
|
17
|
+
* Use `create(NotificationSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const NotificationSchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_public_notification_v1_service, 0);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message public.notification.v1.ListNotificationsRequest.
|
|
24
|
+
* Use `create(ListNotificationsRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const ListNotificationsRequestSchema = /*@__PURE__*/
|
|
27
|
+
messageDesc(file_public_notification_v1_service, 1);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message public.notification.v1.ListNotificationsResponse.
|
|
31
|
+
* Use `create(ListNotificationsResponseSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ListNotificationsResponseSchema = /*@__PURE__*/
|
|
34
|
+
messageDesc(file_public_notification_v1_service, 2);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message public.notification.v1.MarkAsReadRequest.
|
|
38
|
+
* Use `create(MarkAsReadRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const MarkAsReadRequestSchema = /*@__PURE__*/
|
|
41
|
+
messageDesc(file_public_notification_v1_service, 3);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message public.notification.v1.MarkAllAsReadRequest.
|
|
45
|
+
* Use `create(MarkAllAsReadRequestSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export const MarkAllAsReadRequestSchema = /*@__PURE__*/
|
|
48
|
+
messageDesc(file_public_notification_v1_service, 4);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message public.notification.v1.GetUnreadCountRequest.
|
|
52
|
+
* Use `create(GetUnreadCountRequestSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const GetUnreadCountRequestSchema = /*@__PURE__*/
|
|
55
|
+
messageDesc(file_public_notification_v1_service, 5);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message public.notification.v1.GetUnreadCountResponse.
|
|
59
|
+
* Use `create(GetUnreadCountResponseSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const GetUnreadCountResponseSchema = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_public_notification_v1_service, 6);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* NotificationPublicService — инбокс уведомлений для обычных пользователей.
|
|
66
|
+
* Настройки каналов для пользователей недоступны (только для staff).
|
|
67
|
+
* principal берётся из JWT.
|
|
68
|
+
*
|
|
69
|
+
* @generated from service public.notification.v1.NotificationPublicService
|
|
70
|
+
*/
|
|
71
|
+
export const NotificationPublicService = /*@__PURE__*/
|
|
72
|
+
serviceDesc(file_public_notification_v1_service, 0);
|
|
73
|
+
|