@fluxhub/fluxhub-lib 21.0.0 → 21.0.1
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { HttpHeaders, HttpClient, HttpInterceptor, HttpRequest, HttpHandler, Htt
|
|
|
2
2
|
import { Router, ActivatedRouteSnapshot, RouterStateSnapshot, ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { ToastrService } from 'ngx-toastr';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, ChangeDetectorRef, InjectionToken } from '@angular/core';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { Title, DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
8
8
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
@@ -200,6 +200,7 @@ declare class QueryService {
|
|
|
200
200
|
private app_s;
|
|
201
201
|
private uti_s;
|
|
202
202
|
headers?: HttpHeaders | null;
|
|
203
|
+
private reporter;
|
|
203
204
|
url: string | null;
|
|
204
205
|
constructor(http: HttpClient, toastr: ToastrService, app_s: AppService, uti_s: UtilityService);
|
|
205
206
|
/**
|
|
@@ -842,6 +843,7 @@ declare class GridService {
|
|
|
842
843
|
private toastr;
|
|
843
844
|
private uti_s;
|
|
844
845
|
headers?: HttpHeaders | null;
|
|
846
|
+
private reporter;
|
|
845
847
|
constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, uti_s: UtilityService);
|
|
846
848
|
url: string | null;
|
|
847
849
|
doQuery(queryp: QGParam, displayError?: boolean, url_sec?: string | null): Observable<QGResult>;
|
|
@@ -2964,6 +2966,45 @@ declare class AppMakerService {
|
|
|
2964
2966
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppMakerService>;
|
|
2965
2967
|
}
|
|
2966
2968
|
|
|
2969
|
+
/**
|
|
2970
|
+
* Segnalazione di un errore dei servizi dati della libreria (query, griglie).
|
|
2971
|
+
*
|
|
2972
|
+
* La libreria non dipende da nessun SDK di monitoraggio: il portale che vuole
|
|
2973
|
+
* raccogliere gli errori fornisce FH_ERROR_REPORTER (es. con @sentry/angular verso
|
|
2974
|
+
* Rustrak) e decide cosa farne. Senza provider non succede niente.
|
|
2975
|
+
*/
|
|
2976
|
+
interface FHErrorReport {
|
|
2977
|
+
/** 'ko' = risposta { result_msg: 'KO' }, 'http' = errore di trasporto (5xx, rete), 'empty' = risposta vuota */
|
|
2978
|
+
kind: 'ko' | 'http' | 'empty';
|
|
2979
|
+
/** Servizio che ha fatto la chiamata */
|
|
2980
|
+
service: 'query' | 'grid';
|
|
2981
|
+
/** Endpoint chiamato, senza host (es. /doquery, /dogridn, /doexportn) */
|
|
2982
|
+
endpoint: string;
|
|
2983
|
+
/** Chiave della query o della griglia (mai i valori dei parametri) */
|
|
2984
|
+
key: string;
|
|
2985
|
+
/** Messaggio d'errore restituito dal server */
|
|
2986
|
+
message: string;
|
|
2987
|
+
/** Status HTTP, solo per kind='http' */
|
|
2988
|
+
status?: number;
|
|
2989
|
+
/**
|
|
2990
|
+
* Id dell'evento gia' registrato dal server (header X-FH-Event-Id). Se valorizzato
|
|
2991
|
+
* l'errore e' gia' stato raccolto lato backend con stack trace e chiave: il
|
|
2992
|
+
* reporter non dovrebbe mandarne un secondo, al massimo un breadcrumb.
|
|
2993
|
+
*/
|
|
2994
|
+
serverEventId: string | null;
|
|
2995
|
+
/** Pagina del portale da cui e' partita la chiamata */
|
|
2996
|
+
route: string;
|
|
2997
|
+
/** false se il chiamante ha chiesto di non mostrare il toast d'errore */
|
|
2998
|
+
displayError: boolean;
|
|
2999
|
+
}
|
|
3000
|
+
type FHErrorReporter = (report: FHErrorReport) => void;
|
|
3001
|
+
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
3002
|
+
declare const FH_ERROR_REPORTER: InjectionToken<FHErrorReporter>;
|
|
3003
|
+
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
3004
|
+
declare const FH_EVENT_ID_HEADER = "X-FH-Event-Id";
|
|
3005
|
+
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
3006
|
+
declare const FH_ROUTE_HEADER = "X-FH-Route";
|
|
3007
|
+
|
|
2967
3008
|
declare abstract class FHWorkflowView {
|
|
2968
3009
|
private app_s;
|
|
2969
3010
|
private m_service;
|
|
@@ -3357,5 +3398,5 @@ declare class QueryOpenService {
|
|
|
3357
3398
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueryOpenService>;
|
|
3358
3399
|
}
|
|
3359
3400
|
|
|
3360
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent };
|
|
3361
|
-
export type { FHGridColumn };
|
|
3401
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowView, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent };
|
|
3402
|
+
export type { FHErrorReport, FHErrorReporter, FHGridColumn };
|