intelica-library-components 1.1.87 → 1.1.89
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.
|
@@ -6008,6 +6008,7 @@ class TableFetchComponent {
|
|
|
6008
6008
|
return Boolean(this.AdditionalTemplate) || this.ShowSearch || Boolean(this.AdditionalCentralTemplate) || Boolean(this.AdditionalExtendedTemplate);
|
|
6009
6009
|
}
|
|
6010
6010
|
onChangeSelectPage(event) {
|
|
6011
|
+
this.IsPaginatorInputSearch = true;
|
|
6011
6012
|
const eventValue = event.target.value;
|
|
6012
6013
|
if (eventValue === "" || isNaN(parseInt(eventValue)) || eventValue === "0" || eventValue.indexOf("-") >= 0) {
|
|
6013
6014
|
this.CurrentPage = 1;
|
|
@@ -10777,29 +10778,32 @@ class NotificationService {
|
|
|
10777
10778
|
http;
|
|
10778
10779
|
configService = inject(ConfigService);
|
|
10779
10780
|
path = `${this.configService.environment?.notificationsPath}/Notifications`;
|
|
10780
|
-
|
|
10781
|
+
/*
|
|
10782
|
+
private readonly defaultHeaders = new HttpHeaders({
|
|
10781
10783
|
refreshtoken: "f06c110a-ea4e-44a9-896f-210f3b387e57",
|
|
10782
10784
|
languagecode: "EN",
|
|
10783
10785
|
pageRoot: "",
|
|
10784
|
-
authorization:
|
|
10786
|
+
authorization:
|
|
10787
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcmVmZXJyZWRfdXNlcm5hbWUiOiJBbGV4YW5kZXIiLCJmdWxsTmFtZSI6IkFsZXhhbmRlciBUb3JyZSIsInN1YiI6Ijg3ZTQxYzZlLWNmN2EtNDk4MC05YTQ1LThjZjllNWMwOGMzZCIsImVtYWlsIjoiam9oYW4uY2FyYm9uZWxAaW50ZWxpY2EuY29tIiwiYnVzaW5lc3NVc2VyQ2xpZW50R3JvdXBJRCI6ImNlMjE5NDAyLWQyMDAtNGU1Yy1iNzE0LWJkNDJiMjZhNzNkNSIsImJhbmtzSUQiOiJnUlZPUEt6V3BNbHQ2NFE3OWdDcUxlQ1pFeWp2RjVFQVo0TmNMVTQvZlhJMVlvbERPeEFOV0NWTUpFYkJYRDJQUHkvUi8xdDVQVHBFZ08vcFFPcnMwVnNNeWRONkVocEY5MzRCRDJFRXhlelVyakZWWVduWitrcCtObGRLOU56VWg4VjZaRjBVTzEyN0JIaG12aGhUNzZMRm51Zm9nSndUTHVuOW5qMFpEaSsxV3MxTHkzZytzWkNYSVdTelR3QjBEc1g5Y2tXSTJrWmFHeWhHVlFhTlliT3hGYzU5UU9xV0pxQUJqdmVBdFNEaGNQdFZta3RIOXFaaEJ5Tkphdkh5R1pkWWJScXovcUZPOW1HUC92NjVScFZ5djNwejhCZUtvMVlJVW5vSUFqSU9udzRTMEkzcmxaSTNrTExBRFFOdnhBSk81NjgvZTVvdWlVZFd3SDlJd2c9PSIsImlzSW50ZWxpY2EiOiIxIiwiY2xpZW50R3JvdXBJRCI6ImU5ZDc1ODY3LTZkMDQtNGNiMC1iZjMxLTE5MmI5Y2VjMzVkYSIsImNsaWVudElEIjoiMDYzMGU0MDEtMzk1Ny00OTU5LTljYTUtYjM1MGVkNmU5Yjk2IiwiYm5rR3JvdXBJRCI6IjAiLCJpbXJwUHJvamVjdElEIjoiMTAwNjMyIiwiZXhwIjoxNzY4ODU3MTUwLCJpc3MiOiJpbnRlbGljYS5jb20iLCJhdWQiOiJpbnRlbGljYS5jb20ifQ.n0BGAUHrp6BiA_XpgTw6WdresOk_C3aaON7V7AcF5uo",
|
|
10785
10788
|
});
|
|
10789
|
+
*/
|
|
10786
10790
|
constructor(http) {
|
|
10787
10791
|
this.http = http;
|
|
10788
10792
|
}
|
|
10789
10793
|
getUserNotificacions() {
|
|
10790
|
-
return this.http.get(`${this.path}/users/notifications
|
|
10794
|
+
return this.http.get(`${this.path}/users/notifications`);
|
|
10791
10795
|
}
|
|
10792
10796
|
markAsRead(recipientId) {
|
|
10793
|
-
return this.http.put(`${this.path}/users/recipients/${recipientId}/read`, {}
|
|
10797
|
+
return this.http.put(`${this.path}/users/recipients/${recipientId}/read`, {});
|
|
10794
10798
|
}
|
|
10795
10799
|
markAllAsRead() {
|
|
10796
|
-
return this.http.put(`${this.path}/users/recipients/read/all`, {}
|
|
10800
|
+
return this.http.put(`${this.path}/users/recipients/read/all`, {});
|
|
10797
10801
|
}
|
|
10798
10802
|
markAsHidden(recipientId) {
|
|
10799
|
-
return this.http.put(`${this.path}/users/recipients/${recipientId}/hidden`, {}
|
|
10803
|
+
return this.http.put(`${this.path}/users/recipients/${recipientId}/hidden`, {});
|
|
10800
10804
|
}
|
|
10801
10805
|
htmlPreview(request) {
|
|
10802
|
-
return this.http.post(`${this.path}/html/preview`, request, {
|
|
10806
|
+
return this.http.post(`${this.path}/html/preview`, request, { responseType: "text" });
|
|
10803
10807
|
}
|
|
10804
10808
|
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 });
|
|
10805
10809
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NotificationService, providedIn: "root" });
|
|
@@ -10813,43 +10817,42 @@ class NotificationJobService {
|
|
|
10813
10817
|
http;
|
|
10814
10818
|
configService = inject(ConfigService);
|
|
10815
10819
|
path = `${this.configService.environment?.notificationsPath}/NotificationJobs`;
|
|
10816
|
-
|
|
10820
|
+
/*
|
|
10821
|
+
private readonly defaultHeaders = new HttpHeaders({
|
|
10817
10822
|
refreshtoken: "f06c110a-ea4e-44a9-896f-210f3b387e57",
|
|
10818
10823
|
languagecode: "EN",
|
|
10819
10824
|
pageRoot: "",
|
|
10820
|
-
authorization:
|
|
10825
|
+
authorization:
|
|
10826
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcmVmZXJyZWRfdXNlcm5hbWUiOiJBbGV4YW5kZXIiLCJmdWxs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10827
|
});
|
|
10828
|
+
*/
|
|
10822
10829
|
constructor(http) {
|
|
10823
10830
|
this.http = http;
|
|
10824
10831
|
}
|
|
10825
10832
|
createJobNotifications(payload) {
|
|
10826
|
-
return this.http.post(`${this.path}/notifications`, payload, {
|
|
10827
|
-
headers: this.defaultHeaders,
|
|
10828
|
-
});
|
|
10833
|
+
return this.http.post(`${this.path}/notifications`, payload, {});
|
|
10829
10834
|
}
|
|
10830
10835
|
createJob(payload) {
|
|
10831
|
-
return this.http.post(`${this.path}`, payload, {
|
|
10832
|
-
headers: this.defaultHeaders,
|
|
10833
|
-
});
|
|
10836
|
+
return this.http.post(`${this.path}`, payload, {});
|
|
10834
10837
|
}
|
|
10835
10838
|
getJob(jobId) {
|
|
10836
10839
|
return this.http.get(`${this.path}/${jobId}`);
|
|
10837
10840
|
}
|
|
10838
10841
|
createNotifications(jobId, payload) {
|
|
10839
|
-
return this.http.post(`${this.path}/${jobId}/notifications`, payload, {
|
|
10842
|
+
return this.http.post(`${this.path}/${jobId}/notifications`, payload, {});
|
|
10840
10843
|
}
|
|
10841
10844
|
getActiveJob(featureCode, origin) {
|
|
10842
10845
|
let url = `${this.path}/active?featureCode=${encodeURIComponent(featureCode)}`;
|
|
10843
10846
|
if (origin) {
|
|
10844
10847
|
url += `&origin=${encodeURIComponent(origin)}`;
|
|
10845
10848
|
}
|
|
10846
|
-
return this.http.get(url, {
|
|
10849
|
+
return this.http.get(url, {}).pipe(map(list => (Array.isArray(list) && list.length > 0 ? list[0] : null)), catchError(err => {
|
|
10847
10850
|
console.error("Error obteniendo active jobs", err);
|
|
10848
10851
|
return of(null);
|
|
10849
10852
|
}));
|
|
10850
10853
|
}
|
|
10851
10854
|
getRecipients(jobId) {
|
|
10852
|
-
return this.http.get(`${this.path}/${jobId}/recipients`, {
|
|
10855
|
+
return this.http.get(`${this.path}/${jobId}/recipients`, {});
|
|
10853
10856
|
}
|
|
10854
10857
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NotificationJobService, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10855
10858
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NotificationJobService, providedIn: "root" });
|