@fluxhub/fluxhub-lib 22.0.4 → 22.0.5
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, OnDestroy, ChangeDetectorRef, OnInit, QueryList, DoCheck } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, OnDestroy, ChangeDetectorRef, OnInit, QueryList, InjectionToken, DoCheck } 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 { TranslateService } from '@ngx-translate/core';
|
|
@@ -210,6 +210,7 @@ declare class QueryService {
|
|
|
210
210
|
private app_s;
|
|
211
211
|
private uti_s;
|
|
212
212
|
headers?: HttpHeaders | null;
|
|
213
|
+
private reporter;
|
|
213
214
|
url: string | null;
|
|
214
215
|
constructor(http: HttpClient, toastr: ToastrService, app_s: AppService, uti_s: UtilityService);
|
|
215
216
|
/**
|
|
@@ -1061,6 +1062,7 @@ declare class GridService {
|
|
|
1061
1062
|
private toastr;
|
|
1062
1063
|
private uti_s;
|
|
1063
1064
|
headers?: HttpHeaders | null;
|
|
1065
|
+
private reporter;
|
|
1064
1066
|
constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, uti_s: UtilityService);
|
|
1065
1067
|
url: string | null;
|
|
1066
1068
|
doQuery(queryp: QGParam, displayError?: boolean, url_sec?: string | null): Observable<QGResult>;
|
|
@@ -3734,6 +3736,45 @@ declare class AppMakerService {
|
|
|
3734
3736
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppMakerService>;
|
|
3735
3737
|
}
|
|
3736
3738
|
|
|
3739
|
+
/**
|
|
3740
|
+
* Segnalazione di un errore dei servizi dati della libreria (query, griglie).
|
|
3741
|
+
*
|
|
3742
|
+
* La libreria non dipende da nessun SDK di monitoraggio: il portale che vuole
|
|
3743
|
+
* raccogliere gli errori fornisce FH_ERROR_REPORTER (es. con @sentry/angular verso
|
|
3744
|
+
* Rustrak) e decide cosa farne. Senza provider non succede niente.
|
|
3745
|
+
*/
|
|
3746
|
+
interface FHErrorReport {
|
|
3747
|
+
/** 'ko' = risposta { result_msg: 'KO' }, 'http' = errore di trasporto (5xx, rete), 'empty' = risposta vuota */
|
|
3748
|
+
kind: 'ko' | 'http' | 'empty';
|
|
3749
|
+
/** Servizio che ha fatto la chiamata */
|
|
3750
|
+
service: 'query' | 'grid';
|
|
3751
|
+
/** Endpoint chiamato, senza host (es. /doquery, /dogridn, /doexportn) */
|
|
3752
|
+
endpoint: string;
|
|
3753
|
+
/** Chiave della query o della griglia (mai i valori dei parametri) */
|
|
3754
|
+
key: string;
|
|
3755
|
+
/** Messaggio d'errore restituito dal server */
|
|
3756
|
+
message: string;
|
|
3757
|
+
/** Status HTTP, solo per kind='http' */
|
|
3758
|
+
status?: number;
|
|
3759
|
+
/**
|
|
3760
|
+
* Id dell'evento gia' registrato dal server (header X-FH-Event-Id). Se valorizzato
|
|
3761
|
+
* l'errore e' gia' stato raccolto lato backend con stack trace e chiave: il
|
|
3762
|
+
* reporter non dovrebbe mandarne un secondo, al massimo un breadcrumb.
|
|
3763
|
+
*/
|
|
3764
|
+
serverEventId: string | null;
|
|
3765
|
+
/** Pagina del portale da cui e' partita la chiamata */
|
|
3766
|
+
route: string;
|
|
3767
|
+
/** false se il chiamante ha chiesto di non mostrare il toast d'errore */
|
|
3768
|
+
displayError: boolean;
|
|
3769
|
+
}
|
|
3770
|
+
type FHErrorReporter = (report: FHErrorReport) => void;
|
|
3771
|
+
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
3772
|
+
declare const FH_ERROR_REPORTER: InjectionToken<FHErrorReporter>;
|
|
3773
|
+
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
3774
|
+
declare const FH_EVENT_ID_HEADER = "X-FH-Event-Id";
|
|
3775
|
+
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
3776
|
+
declare const FH_ROUTE_HEADER = "X-FH-Route";
|
|
3777
|
+
|
|
3737
3778
|
/** Motivo per cui un avanzamento headless non e' andato a buon fine. */
|
|
3738
3779
|
type WkfProceedReason = 'OK' | 'NO_DOC' | 'CLOSED' | 'TASKS_OPEN' | 'NO_LEVELS' | 'NO_CURRENT_LEVEL' | 'NO_TRANSITION' | 'MULTIPLE_TRANSITIONS' | 'NO_RECIPIENTS' | 'MANUAL_ASSIGNMENT';
|
|
3739
3780
|
interface WkfProceedResult {
|
|
@@ -5392,5 +5433,5 @@ declare class FHAiAssistantComponent implements OnInit {
|
|
|
5392
5433
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHAiAssistantComponent, "FHAiAssistant", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "openLabel": { "alias": "openLabel"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "dock": { "alias": "dock"; "required": false; }; "startOpen": { "alias": "startOpen"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "tagLabel": { "alias": "tagLabel"; "required": false; }; "welcomeTitle": { "alias": "welcomeTitle"; "required": false; }; "welcomeSubtitle": { "alias": "welcomeSubtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "path": { "alias": "path"; "required": false; }; "model": { "alias": "model"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; "forwardAuth": { "alias": "forwardAuth"; "required": false; }; "context": { "alias": "context"; "required": false; }; "systemPrompt": { "alias": "systemPrompt"; "required": false; }; }, {}, never, never, true, never>;
|
|
5393
5434
|
}
|
|
5394
5435
|
|
|
5395
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, 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, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
|
|
5396
|
-
export type { DialogBeforeCloseEvent, DialogButton, FHAiChunk, FHAiContext, FHAiMessage, FHAiRequestOptions, FHAiRole, FHAiSource, FHGridColumn, FHLauncherApp, FHLauncherCategory, FHSearchListData, FHSearchListItem, FHTaskExternalHint, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, FiltroMailArchiviata, WkfCompleteTaskOptions, WkfFieldType, WkfFieldValue, WkfProceedOptions, WkfProceedReason, WkfProceedResult, WkfTaskResult };
|
|
5436
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, 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, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
|
|
5437
|
+
export type { DialogBeforeCloseEvent, DialogButton, FHAiChunk, FHAiContext, FHAiMessage, FHAiRequestOptions, FHAiRole, FHAiSource, FHErrorReport, FHErrorReporter, FHGridColumn, FHLauncherApp, FHLauncherCategory, FHSearchListData, FHSearchListItem, FHTaskExternalHint, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, FiltroMailArchiviata, WkfCompleteTaskOptions, WkfFieldType, WkfFieldValue, WkfProceedOptions, WkfProceedReason, WkfProceedResult, WkfTaskResult };
|