@arsedizioni/ars-utils 19.3.14 → 19.3.16
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/clipper.common/common/messages.d.ts +1 -0
- package/core/definitions.d.ts +1 -0
- package/core/messages.d.ts +0 -1
- package/evolution.common/common/messages.d.ts +1 -0
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +6 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +0 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +6 -3
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +6 -3
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +5 -5
- package/support.common/common/messages.d.ts +1 -0
package/core/definitions.d.ts
CHANGED
package/core/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { signal, computed, inject, Injectable, NgModule } from '@angular/core';
|
|
3
3
|
import { HttpClient, HttpHeaders, HttpRequest, HttpErrorResponse } from '@angular/common/http';
|
|
4
|
-
import { BroadcastService, SystemUtils
|
|
4
|
+
import { BroadcastService, SystemUtils } from '@arsedizioni/ars-utils/core';
|
|
5
5
|
import { EMPTY, throwError, of, catchError as catchError$1, switchMap } from 'rxjs';
|
|
6
6
|
import { DialogService } from '@arsedizioni/ars-utils/ui';
|
|
7
7
|
import { catchError, map, finalize } from 'rxjs/operators';
|
|
@@ -10,6 +10,8 @@ const ClipperMessages = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Messages
|
|
12
12
|
*/
|
|
13
|
+
// Error
|
|
14
|
+
ERROR: '§clipper-error',
|
|
13
15
|
// Login
|
|
14
16
|
LOGIN_CHANGED: '§clipper-login-changed',
|
|
15
17
|
LOGIN_COMPLETED: '§clipper-login-completed',
|
|
@@ -3217,11 +3219,12 @@ class ClipperAuthInterceptor {
|
|
|
3217
3219
|
message = (error.error?.message ?? error.message ?? "Impossibile eseguire l'operazione richiesta.").replaceAll("\r\n", "</p><p>");
|
|
3218
3220
|
break;
|
|
3219
3221
|
}
|
|
3220
|
-
this.broadcastService.sendMessage(
|
|
3222
|
+
this.broadcastService.sendMessage(ClipperMessages.ERROR, {
|
|
3221
3223
|
invalidateSession: errorStatus === 405 || errorStatus === 410,
|
|
3222
3224
|
message: message,
|
|
3223
3225
|
title: "Errore in Clipper",
|
|
3224
|
-
errorStatus: errorStatus
|
|
3226
|
+
errorStatus: errorStatus,
|
|
3227
|
+
service: this.clipperService.serviceUri
|
|
3225
3228
|
});
|
|
3226
3229
|
}
|
|
3227
3230
|
}
|