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

This commit is contained in:
2026-08-21 14:11:47 +03:00
parent 19362b950a
commit d3e6aa2be2
23 changed files with 744 additions and 116 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);