intelica-library-components 1.1.39 → 1.1.40

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.
@@ -10528,6 +10528,9 @@ class NotificationService {
10528
10528
  markAsRead(recipientId) {
10529
10529
  return this.http.post(`${this.path}/users/recipients/${recipientId}/read`, {}, { headers: this.defaultHeaders });
10530
10530
  }
10531
+ markAsHidden(recipientId) {
10532
+ return this.http.post(`${this.path}/users/recipients/${recipientId}/hidden`, {}, { headers: this.defaultHeaders });
10533
+ }
10531
10534
  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 });
10532
10535
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NotificationService, providedIn: "root" });
10533
10536
  }
@@ -10610,6 +10613,8 @@ class NotificationSignalRService {
10610
10613
  if (this.startPromise)
10611
10614
  return this.startPromise;
10612
10615
  this.hubConnection = new signalR.HubConnectionBuilder().withUrl(this.path).withAutomaticReconnect().build();
10616
+ this.hubConnection.keepAliveIntervalInMilliseconds = 15_000;
10617
+ this.hubConnection.serverTimeoutInMilliseconds = 120_000;
10613
10618
  this.registerListeners();
10614
10619
  this.registerReconnectHandlers();
10615
10620
  this.startPromise = this.hubConnection.start().catch(err => {
@@ -10876,6 +10881,7 @@ class NotificationOrchestratorService {
10876
10881
  });
10877
10882
  await this.subscribeToJob(this.currentJobId);
10878
10883
  const notifications = notificationDraft.map(draft => ({
10884
+ origin: draft.origin,
10879
10885
  originReference: `${draft.originReference}-${job.jobId}`,
10880
10886
  notificationTypeCode: draft.notificationTypeCode,
10881
10887
  destination: draft.destination,
@@ -10903,6 +10909,7 @@ class NotificationOrchestratorService {
10903
10909
  totalCount,
10904
10910
  totalNotificationsCount,
10905
10911
  notifications: notificationDraft.map(draft => ({
10912
+ origin: draft.origin,
10906
10913
  originReference: draft.originReference,
10907
10914
  notificationTypeCode: draft.notificationTypeCode,
10908
10915
  destination: draft.destination,
@@ -10924,6 +10931,10 @@ class NotificationOrchestratorService {
10924
10931
  const result = await firstValueFrom(this.notificationService.markAsRead(recipientId));
10925
10932
  return result;
10926
10933
  }
10934
+ async markAsHidden(recipientId) {
10935
+ const result = await firstValueFrom(this.notificationService.markAsHidden(recipientId));
10936
+ return result;
10937
+ }
10927
10938
  async getNotificacionsByUser(userId) {
10928
10939
  const items = await firstValueFrom(this.notificationService.getNotificacionsByUser(userId));
10929
10940
  return items;