intelica-library-components 1.1.72 → 1.1.74
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.
|
@@ -698,12 +698,12 @@ const ResponseHeadersInterceptor = (req, next) => {
|
|
|
698
698
|
if (event instanceof HttpResponse) {
|
|
699
699
|
const Domain = window.location.hostname.split(".").slice(-2).join(".");
|
|
700
700
|
const Secure = !Domain.includes("localhost");
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
701
|
+
if (!Secure) {
|
|
702
|
+
const headers = event.headers;
|
|
703
|
+
const newToken = headers.get("TokenNew");
|
|
704
|
+
if (newToken != null && newToken != "")
|
|
705
|
+
setCookie("token", newToken, CookieAttributesGeneral);
|
|
706
|
+
}
|
|
707
707
|
}
|
|
708
708
|
}));
|
|
709
709
|
};
|
|
@@ -10795,6 +10795,9 @@ class NotificationService {
|
|
|
10795
10795
|
markAsHidden(recipientId) {
|
|
10796
10796
|
return this.http.post(`${this.path}/users/recipients/${recipientId}/hidden`, {}, { headers: this.defaultHeaders });
|
|
10797
10797
|
}
|
|
10798
|
+
htmlPreview(request) {
|
|
10799
|
+
return this.http.post(`${this.path}/html/preview`, request, { headers: this.defaultHeaders, responseType: "text" });
|
|
10800
|
+
}
|
|
10798
10801
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NotificationService, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10799
10802
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NotificationService, providedIn: "root" });
|
|
10800
10803
|
}
|
|
@@ -11200,6 +11203,10 @@ class NotificationOrchestratorService {
|
|
|
11200
11203
|
const result = await firstValueFrom(this.notificationService.markAsHidden(recipientId));
|
|
11201
11204
|
return result;
|
|
11202
11205
|
}
|
|
11206
|
+
async htmlPreview(request) {
|
|
11207
|
+
const result = await firstValueFrom(this.notificationService.htmlPreview(request));
|
|
11208
|
+
return result;
|
|
11209
|
+
}
|
|
11203
11210
|
async getNotificacionsByUser(userId) {
|
|
11204
11211
|
const items = await firstValueFrom(this.notificationService.getNotificacionsByUser(userId));
|
|
11205
11212
|
return items;
|