intelica-library-components 1.1.83 → 1.1.85

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.
@@ -10790,13 +10790,13 @@ class NotificationService {
10790
10790
  return this.http.get(`${this.path}/users/notifications`, { headers: this.defaultHeaders });
10791
10791
  }
10792
10792
  markAsRead(recipientId) {
10793
- return this.http.post(`${this.path}/users/recipients/${recipientId}/read`, {}, { headers: this.defaultHeaders });
10793
+ return this.http.put(`${this.path}/users/recipients/${recipientId}/read`, {}, { headers: this.defaultHeaders });
10794
10794
  }
10795
10795
  markAllAsRead() {
10796
- return this.http.post(`${this.path}/users/recipients/read/all`, {}, { headers: this.defaultHeaders });
10796
+ return this.http.put(`${this.path}/users/recipients/read/all`, {}, { headers: this.defaultHeaders });
10797
10797
  }
10798
10798
  markAsHidden(recipientId) {
10799
- return this.http.post(`${this.path}/users/recipients/${recipientId}/hidden`, {}, { headers: this.defaultHeaders });
10799
+ return this.http.put(`${this.path}/users/recipients/${recipientId}/hidden`, {}, { headers: this.defaultHeaders });
10800
10800
  }
10801
10801
  htmlPreview(request) {
10802
10802
  return this.http.post(`${this.path}/html/preview`, request, { headers: this.defaultHeaders, responseType: "text" });
@@ -11202,6 +11202,10 @@ class NotificationOrchestratorService {
11202
11202
  const result = await firstValueFrom(this.notificationService.markAsRead(recipientId));
11203
11203
  return result;
11204
11204
  }
11205
+ async markAllAsRead() {
11206
+ const result = await firstValueFrom(this.notificationService.markAllAsRead());
11207
+ return result;
11208
+ }
11205
11209
  async markAsHidden(recipientId) {
11206
11210
  const result = await firstValueFrom(this.notificationService.markAsHidden(recipientId));
11207
11211
  return result;