intelica-library-components 1.1.82 → 1.1.83

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.
@@ -10786,12 +10786,15 @@ class NotificationService {
10786
10786
  constructor(http) {
10787
10787
  this.http = http;
10788
10788
  }
10789
- getNotificacionsByUser(userId) {
10790
- return this.http.get(`${this.path}/users/${encodeURIComponent(userId)}`, { headers: this.defaultHeaders });
10789
+ getUserNotificacions() {
10790
+ return this.http.get(`${this.path}/users/notifications`, { headers: this.defaultHeaders });
10791
10791
  }
10792
10792
  markAsRead(recipientId) {
10793
10793
  return this.http.post(`${this.path}/users/recipients/${recipientId}/read`, {}, { headers: this.defaultHeaders });
10794
10794
  }
10795
+ markAllAsRead() {
10796
+ return this.http.post(`${this.path}/users/recipients/read/all`, {}, { headers: this.defaultHeaders });
10797
+ }
10795
10798
  markAsHidden(recipientId) {
10796
10799
  return this.http.post(`${this.path}/users/recipients/${recipientId}/hidden`, {}, { headers: this.defaultHeaders });
10797
10800
  }
@@ -11207,8 +11210,8 @@ class NotificationOrchestratorService {
11207
11210
  const result = await firstValueFrom(this.notificationService.htmlPreview(request));
11208
11211
  return result;
11209
11212
  }
11210
- async getNotificacionsByUser(userId) {
11211
- const items = await firstValueFrom(this.notificationService.getNotificacionsByUser(userId));
11213
+ async getUserNotificacions() {
11214
+ const items = await firstValueFrom(this.notificationService.getUserNotificacions());
11212
11215
  return items;
11213
11216
  }
11214
11217
  resetLocal() {