intelica-library-components 1.1.84 → 1.1.87
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.
|
@@ -462,7 +462,7 @@ const ErrorInterceptor = (req, next) => {
|
|
|
462
462
|
HeaderSettings["PageRoot"] = commonFeatureFlagService.GetPageRoot();
|
|
463
463
|
HeaderSettings["LanguageCode"] = getCookie("language") ?? "";
|
|
464
464
|
HeaderSettings["Environment"] = configService.environment?.environment ?? "";
|
|
465
|
-
HeaderSettings["Access"] = authenticationClientID == "" ? "" : getCookie(authenticationClientID) ?? "";
|
|
465
|
+
HeaderSettings["Access"] = authenticationClientID == "" ? "" : (getCookie(authenticationClientID) ?? "");
|
|
466
466
|
}
|
|
467
467
|
let _request = req.clone({ headers: new HttpHeaders(HeaderSettings) });
|
|
468
468
|
return next(_request).pipe(catchError(handleErrorResponse));
|
|
@@ -485,9 +485,9 @@ const ErrorInterceptor = (req, next) => {
|
|
|
485
485
|
window.location.href = window.location.origin;
|
|
486
486
|
}
|
|
487
487
|
else
|
|
488
|
-
sweetAlertService.messageBox(error.error.
|
|
488
|
+
sweetAlertService.messageBox(error.error.Message);
|
|
489
489
|
return throwError(() => {
|
|
490
|
-
error.error, error.message;
|
|
490
|
+
(error.error, error.message);
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
};
|
|
@@ -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.
|
|
10793
|
+
return this.http.put(`${this.path}/users/recipients/${recipientId}/read`, {}, { headers: this.defaultHeaders });
|
|
10794
10794
|
}
|
|
10795
10795
|
markAllAsRead() {
|
|
10796
|
-
return this.http.
|
|
10796
|
+
return this.http.put(`${this.path}/users/recipients/read/all`, {}, { headers: this.defaultHeaders });
|
|
10797
10797
|
}
|
|
10798
10798
|
markAsHidden(recipientId) {
|
|
10799
|
-
return this.http.
|
|
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" });
|