@arsedizioni/ars-utils 22.0.54 → 22.0.55
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +96 -102
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +218 -220
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +18 -33
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +19 -28
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { QueryModel, SendToModel, LoginResult, ApiResult, FolderTree } from '@arsedizioni/ars-utils/core';
|
|
2
2
|
import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.oauth';
|
|
3
|
-
import {
|
|
3
|
+
import { HttpInterceptorFn } from '@angular/common/http';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from '@angular/core';
|
|
7
6
|
import { Signal, WritableSignal } from '@angular/core';
|
|
8
7
|
|
|
@@ -703,32 +702,24 @@ interface EvolutionComplianceActivitiesAddParams extends EvolutionComplianceActi
|
|
|
703
702
|
}
|
|
704
703
|
|
|
705
704
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
*
|
|
705
|
+
* Builds the Evolution auth HTTP interceptor.
|
|
706
|
+
*
|
|
707
|
+
* Takes its two inputs — the Evolution base URI and the service flags — directly
|
|
708
|
+
* as arguments (captured in the closure), so it never injects EvolutionService:
|
|
709
|
+
* registering it does not pull the full Evolution service into the eager bundle.
|
|
710
|
+
*
|
|
711
|
+
* Register it with `withInterceptors`:
|
|
712
|
+
* @example
|
|
713
|
+
* provideHttpClient(withInterceptors([
|
|
714
|
+
* evolutionAuthInterceptor(environment.evolutionServiceUri,
|
|
715
|
+
* EvolutionServiceFlags.DisplayConnectionStateMessages | EvolutionServiceFlags.Embedded),
|
|
716
|
+
* ]))
|
|
717
|
+
*
|
|
718
|
+
* @param serviceUri - Base URI of the Evolution service; only requests starting with it are handled.
|
|
719
|
+
* @param flags - Service flags (e.g. NotifySystemErrors). Defaults to None.
|
|
720
|
+
* @returns An `HttpInterceptorFn` ready to register.
|
|
709
721
|
*/
|
|
710
|
-
declare
|
|
711
|
-
private readonly evolutionService;
|
|
712
|
-
private readonly broadcastService;
|
|
713
|
-
private lastErrorTime;
|
|
714
|
-
/**
|
|
715
|
-
* Intercepts every outgoing HTTP request.
|
|
716
|
-
* When the request targets the Evolution service URI, attaches credentials and
|
|
717
|
-
* a client-ID header, then pipes the response through an error handler.
|
|
718
|
-
* @param request - The outgoing HTTP request.
|
|
719
|
-
* @param next - The next handler in the interceptor chain.
|
|
720
|
-
* @returns An observable of the HTTP event stream.
|
|
721
|
-
*/
|
|
722
|
-
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
723
|
-
/**
|
|
724
|
-
* Processes an HTTP error, broadcasting a user-friendly message when appropriate.
|
|
725
|
-
* Errors are debounced: only one message is sent per `ERROR_DEBOUNCE_MS` window.
|
|
726
|
-
* @param error - The raw error value thrown by the HTTP layer.
|
|
727
|
-
*/
|
|
728
|
-
private handleError;
|
|
729
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EvolutionAuthInterceptor, never>;
|
|
730
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EvolutionAuthInterceptor>;
|
|
731
|
-
}
|
|
722
|
+
declare function evolutionAuthInterceptor(serviceUri: string, flags?: EvolutionServiceFlags): HttpInterceptorFn;
|
|
732
723
|
|
|
733
724
|
/**
|
|
734
725
|
* Authentication service for the Evolution module: login / logout / MFA,
|
|
@@ -992,5 +983,5 @@ declare class EvolutionService {
|
|
|
992
983
|
static ɵprov: i0.ɵɵInjectableDeclaration<EvolutionService>;
|
|
993
984
|
}
|
|
994
985
|
|
|
995
|
-
export { AccountService, ComplianceService, ERPComplianceActivityState, ERPComplianceLawOrigin, ERPComplianceLawState, ERPComplianceLawsSelectionType, ERPComplianceNotificationLimit, ERPComplianceProfileFlags, ERPComplianceProfileRole, ERPComplianceRegisterNotificationType, ERPComplianceRegisterSiteImportOptions, ERPComplianceScope, ERPExportFormat, ERPExportPart, ERPExportSource, ERPExportType, ERPModule, ERPPlace, ERPPlacePermission, ERPRecurrenceFrequencyType,
|
|
986
|
+
export { AccountService, ComplianceService, ERPComplianceActivityState, ERPComplianceLawOrigin, ERPComplianceLawState, ERPComplianceLawsSelectionType, ERPComplianceNotificationLimit, ERPComplianceProfileFlags, ERPComplianceProfileRole, ERPComplianceRegisterNotificationType, ERPComplianceRegisterSiteImportOptions, ERPComplianceScope, ERPExportFormat, ERPExportPart, ERPExportSource, ERPExportType, ERPModule, ERPPlace, ERPPlacePermission, ERPRecurrenceFrequencyType, EvolutionComplianceActivityStates, EvolutionComplianceContextInfo, EvolutionComplianceLawChangeStates, EvolutionComplianceLawOrigins, EvolutionComplianceLawStates, EvolutionComplianceNotificationLimits, EvolutionComplianceNotifications, EvolutionComplianceObligationAuthorities, EvolutionComplianceObligationTypes, EvolutionComplianceProfileFlags, EvolutionComplianceProfileRoles, EvolutionComplianceScopes, EvolutionMessages, EvolutionRecurrenceFrequencyTypes, EvolutionService, EvolutionServiceFlags, LoginService, evolutionAuthInterceptor };
|
|
996
987
|
export type { ComplianceRegisterUsersResultModel, EvolutionChangeContextModel, EvolutionChangeContextResultModel, EvolutionComplianceActivitiesAddParams, EvolutionComplianceActivity, EvolutionComplianceLaswExportParams, EvolutionComplianceLaw, EvolutionComplianceLawDocumentInfo, EvolutionComplianceLawReference, EvolutionComplianceLawsAddParams, EvolutionComplianceRegister, EvolutionComplianceRegisterProfile, EvolutionComplianceRegisterSite, EvolutionContextInfo, EvolutionExportModel, EvolutionLicenceModuleInfo, EvolutionLoginInfo, EvolutionLoginResult, EvolutionPermission, EvolutionPlacePermission, EvolutionPlaceable, EvolutionQueryRegisterProfilesModel, EvolutionRegisterProfileSiteInfo, EvolutionRegisterProfileUserInfo, EvolutionUserInfo, EvolutionUserLink, EvolutionUserModuleInfo };
|