intelica-library-components 1.1.82 → 1.1.84
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
|
-
|
|
10790
|
-
return this.http.get(`${this.path}/users
|
|
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
|
}
|
|
@@ -11199,6 +11202,10 @@ class NotificationOrchestratorService {
|
|
|
11199
11202
|
const result = await firstValueFrom(this.notificationService.markAsRead(recipientId));
|
|
11200
11203
|
return result;
|
|
11201
11204
|
}
|
|
11205
|
+
async markAllAsRead() {
|
|
11206
|
+
const result = await firstValueFrom(this.notificationService.markAllAsRead());
|
|
11207
|
+
return result;
|
|
11208
|
+
}
|
|
11202
11209
|
async markAsHidden(recipientId) {
|
|
11203
11210
|
const result = await firstValueFrom(this.notificationService.markAsHidden(recipientId));
|
|
11204
11211
|
return result;
|
|
@@ -11207,8 +11214,8 @@ class NotificationOrchestratorService {
|
|
|
11207
11214
|
const result = await firstValueFrom(this.notificationService.htmlPreview(request));
|
|
11208
11215
|
return result;
|
|
11209
11216
|
}
|
|
11210
|
-
async
|
|
11211
|
-
const items = await firstValueFrom(this.notificationService.
|
|
11217
|
+
async getUserNotificacions() {
|
|
11218
|
+
const items = await firstValueFrom(this.notificationService.getUserNotificacions());
|
|
11212
11219
|
return items;
|
|
11213
11220
|
}
|
|
11214
11221
|
resetLocal() {
|