@smals-belgium-shared/vidis-diarynote 4.2.2-snapshot.11 → 4.2.2-snapshot.12

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.
package/CHANGELOG.md CHANGED
@@ -287,6 +287,7 @@
287
287
  ## __RELEASE_VERSION__ (__RELEASE_DATE__)
288
288
 
289
289
  * Upgrade project to Angular version 22
290
+ * Migrate report error to use API v3.
290
291
 
291
292
  ### vidis-medication-scheme-list:
292
293
  * Styling correction for mobile view.
package/diarynote.js CHANGED
@@ -31530,7 +31530,7 @@ var m0e = (() => {
31530
31530
  this.http = w(Bl), this.authService = w(po).getInstance(), this.apiUrl = w(Gu).getEnvironmentVariable("apiUrl");
31531
31531
  }
31532
31532
  reportError(i) {
31533
- return this.http.post(`${this.apiUrl}/v2/report/error`, i, { headers: { [Oo.userType]: Or.getUserType({ isProfessional: this.authService.isProfessional }), [Oo.clientType]: ek() ? Or.clientType.mobileApp : Or.clientType.webApp } });
31533
+ return this.http.post(`${this.apiUrl}/v3/report/error`, i, { headers: { [Oo.userType]: Or.getUserType({ isProfessional: this.authService.isProfessional }), [Oo.clientType]: ek() ? Or.clientType.mobileApp : Or.clientType.webApp } });
31534
31534
  }
31535
31535
  };
31536
31536
  t.ɵfac = function(i) {
@@ -31864,7 +31864,7 @@ var Y0e = (() => {
31864
31864
  reportVidisError(i) {
31865
31865
  let a = { backendTraceId: "", errorMessage: i.message, pageUrl: window.location.href, timestamp: this.formatDateWithZone() };
31866
31866
  this.errorServiceSelector.getInstance().reportError(a).subscribe({ next: (r) => {
31867
- (r == null ? void 0 : r.status) === "ok" ? this.snackbarService.showSuccess("commons.errors.report-message-confirm-toast") : this.snackbarService.showError("commons.errors..general");
31867
+ (r == null ? void 0 : r.status) === "ok" ? this.snackbarService.showSuccess("commons.errors.report-message-confirm-toast") : this.snackbarService.showError("commons.errors.general");
31868
31868
  }, error: () => {
31869
31869
  this.snackbarService.showError("commons.errors.general");
31870
31870
  } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smals-belgium-shared/vidis-diarynote",
3
- "version": "4.2.2-snapshot.11",
3
+ "version": "4.2.2-snapshot.12",
4
4
  "description": "Diary notes web component",
5
5
  "main": "diarynote.js",
6
6
  "types": "types/main.d.ts",