@fluxhub/fluxhub-lib 22.0.3 → 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 {
|
|
@@ -5043,6 +5084,7 @@ interface FiltroMailArchiviata {
|
|
|
5043
5084
|
* Colonne attese dalla query (vista `v_fh_mail_archiver`):
|
|
5044
5085
|
* id, received_at, subject, sender_name, sender_email, client_name,
|
|
5045
5086
|
* contatti, pratiche, rilevanza, has_attachments, archived_at, archived_by
|
|
5087
|
+
* e, con `mostraNota`, anche `note` (la nota scritta archiviando la mail).
|
|
5046
5088
|
*/
|
|
5047
5089
|
declare class FHMailArchivedComponent implements AfterViewInit {
|
|
5048
5090
|
private _dataService;
|
|
@@ -5086,6 +5128,13 @@ declare class FHMailArchivedComponent implements AfterViewInit {
|
|
|
5086
5128
|
colContatti: string;
|
|
5087
5129
|
colPratiche: string;
|
|
5088
5130
|
colRilevanza: string;
|
|
5131
|
+
/**
|
|
5132
|
+
* Mostra la nota di archiviazione al posto della colonna Cliente. Pensato per gli
|
|
5133
|
+
* elenchi gia' circoscritti a un cliente (scheda account, pratica), dove il cliente
|
|
5134
|
+
* e' lo stesso su ogni riga. La query deve restituire anche `note`.
|
|
5135
|
+
*/
|
|
5136
|
+
mostraNota: boolean;
|
|
5137
|
+
colNota: string;
|
|
5089
5138
|
/**
|
|
5090
5139
|
* Riga aperta. L'anteprima della mail la gestisce il portale: passa dalla utility
|
|
5091
5140
|
* mail_reader via exec_app, che e idraulica del singolo server e non ha senso
|
|
@@ -5104,7 +5153,7 @@ declare class FHMailArchivedComponent implements AfterViewInit {
|
|
|
5104
5153
|
apri(riga: any): void;
|
|
5105
5154
|
stelle(n: any): string;
|
|
5106
5155
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHMailArchivedComponent, never>;
|
|
5107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHMailArchivedComponent, "FHMailArchived", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "valoreBase": { "alias": "valoreBase"; "required": false; }; "valore": { "alias": "valore"; "required": false; }; "filtri": { "alias": "filtri"; "required": false; }; "limite": { "alias": "limite"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tuttiLabel": { "alias": "tuttiLabel"; "required": false; }; "cercaLabel": { "alias": "cercaLabel"; "required": false; }; "cercaPlaceholder": { "alias": "cercaPlaceholder"; "required": false; }; "apriTooltip": { "alias": "apriTooltip"; "required": false; }; "senzaOggetto": { "alias": "senzaOggetto"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "troncatoLabel": { "alias": "troncatoLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "colData": { "alias": "colData"; "required": false; }; "colOggetto": { "alias": "colOggetto"; "required": false; }; "colCliente": { "alias": "colCliente"; "required": false; }; "colContatti": { "alias": "colContatti"; "required": false; }; "colPratiche": { "alias": "colPratiche"; "required": false; }; "colRilevanza": { "alias": "colRilevanza"; "required": false; }; }, { "apriMail": "apriMail"; }, never, never, true, never>;
|
|
5156
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHMailArchivedComponent, "FHMailArchived", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "valoreBase": { "alias": "valoreBase"; "required": false; }; "valore": { "alias": "valore"; "required": false; }; "filtri": { "alias": "filtri"; "required": false; }; "limite": { "alias": "limite"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tuttiLabel": { "alias": "tuttiLabel"; "required": false; }; "cercaLabel": { "alias": "cercaLabel"; "required": false; }; "cercaPlaceholder": { "alias": "cercaPlaceholder"; "required": false; }; "apriTooltip": { "alias": "apriTooltip"; "required": false; }; "senzaOggetto": { "alias": "senzaOggetto"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "troncatoLabel": { "alias": "troncatoLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "colData": { "alias": "colData"; "required": false; }; "colOggetto": { "alias": "colOggetto"; "required": false; }; "colCliente": { "alias": "colCliente"; "required": false; }; "colContatti": { "alias": "colContatti"; "required": false; }; "colPratiche": { "alias": "colPratiche"; "required": false; }; "colRilevanza": { "alias": "colRilevanza"; "required": false; }; "mostraNota": { "alias": "mostraNota"; "required": false; }; "colNota": { "alias": "colNota"; "required": false; }; }, { "apriMail": "apriMail"; }, never, never, true, never>;
|
|
5108
5157
|
}
|
|
5109
5158
|
|
|
5110
5159
|
/**
|
|
@@ -5384,5 +5433,5 @@ declare class FHAiAssistantComponent implements OnInit {
|
|
|
5384
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>;
|
|
5385
5434
|
}
|
|
5386
5435
|
|
|
5387
|
-
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 };
|
|
5388
|
-
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 };
|