Добавить поддержку уведомлений

This commit is contained in:
2026-08-21 13:23:41 +03:00
parent 23bdadab56
commit 97f90167f1
23 changed files with 1177 additions and 63 deletions
+8
View File
@@ -2862,6 +2862,14 @@ export class AuthService {
return response.payload || {};
}
async getNotifications(limit = 50) {
const payload = {};
if (Number.isFinite(Number(limit))) payload.limit = Math.max(1, Math.min(200, Number(limit)));
const response = await this.ws.request('GetNotifications', payload);
if (response.status !== 200) throw opError('GetNotifications', response);
return response.payload || {};
}
async getUserConnectionsGraph(login) {
const response = await this.ws.request('GetUserConnectionsGraph', { login });
if (response.status !== 200) throw opError('GetUserConnectionsGraph', response);