@newheap/platform-common 0.20.6 → 1.0.0
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/newheap-platform-common.mjs +633 -379
- package/fesm2022/newheap-platform-common.mjs.map +1 -1
- package/index.d.ts +260 -120
- package/package.json +2 -4
package/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { BrowserOptions } from '@sentry/browser/build/npm/types/client';
|
|
2
|
-
import * as Sentry from '@sentry/angular';
|
|
3
|
-
import { ErrorHandlerOptions } from '@sentry/angular';
|
|
4
1
|
import * as i20 from '@angular/common';
|
|
5
2
|
import { KeyValue } from '@angular/common';
|
|
6
3
|
import { HttpHeaders, HttpParams, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpClient, HttpResponse } from '@angular/common/http';
|
|
@@ -13,7 +10,6 @@ import { OnDestroy, NgZone, InjectionToken, ErrorHandler, Injector, ApplicationR
|
|
|
13
10
|
import { CookieService, CookieOptions, SameSite } from 'ngx-cookie-service';
|
|
14
11
|
import * as i23 from '@angular/forms';
|
|
15
12
|
import { ControlValueAccessor, UntypedFormGroup, UntypedFormControl, NgControl, AbstractControl } from '@angular/forms';
|
|
16
|
-
import * as SentryCore from '@sentry/core';
|
|
17
13
|
import * as i1 from '@angular/router';
|
|
18
14
|
import { Router, Route, Routes, LoadChildren, DefaultExport, CanActivateFn, CanMatchFn, CanActivateChildFn, RedirectFunction, Data, ActivatedRoute, ActivatedRouteSnapshot, NavigationExtras, UrlCreationOptions, UrlTree, RouterStateSnapshot, RouterLink, Params, ParamMap, CanDeactivate, MaybeAsync, GuardResult } from '@angular/router';
|
|
19
15
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
@@ -48,17 +44,14 @@ declare class UserNotificationNhCommonModuleConfig {
|
|
|
48
44
|
pollingInterval: number;
|
|
49
45
|
constructor(init?: Partial<UserNotificationNhCommonModuleConfig>);
|
|
50
46
|
}
|
|
51
|
-
declare class
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
declare class NhErrorLoggingNhCommonModuleConfig {
|
|
60
|
-
sentry: NhSentryErrorLoggingNhCommonModuleConfig;
|
|
61
|
-
constructor(init?: Partial<NhErrorLoggingNhCommonModuleConfig>);
|
|
47
|
+
declare class BackgroundOperationsNhCommonModuleConfig {
|
|
48
|
+
urlSuffix: string;
|
|
49
|
+
hubBaseUrl?: string;
|
|
50
|
+
hubUrlSuffix: string;
|
|
51
|
+
pollingInterval: number;
|
|
52
|
+
liveUpdatesEnabled: boolean;
|
|
53
|
+
listPageSize: number;
|
|
54
|
+
constructor(init?: Partial<BackgroundOperationsNhCommonModuleConfig>);
|
|
62
55
|
}
|
|
63
56
|
declare class NhTranslationNhCommonModuleConfig {
|
|
64
57
|
browserLoaderPrefix: string;
|
|
@@ -93,7 +86,7 @@ declare class NhCommonModuleConfig {
|
|
|
93
86
|
defaultDateTimeFormat: string;
|
|
94
87
|
authentication: AuthenticationNhCommonModuleConfig;
|
|
95
88
|
userNotification: UserNotificationNhCommonModuleConfig;
|
|
96
|
-
|
|
89
|
+
backgroundOperations: BackgroundOperationsNhCommonModuleConfig;
|
|
97
90
|
translation: NhTranslationNhCommonModuleConfig;
|
|
98
91
|
formDropdown: NhFormDropDownNhCommonModuleConfig;
|
|
99
92
|
http: NhHttpNhCommonModuleConfig;
|
|
@@ -531,6 +524,139 @@ declare class NhUserNotificationData {
|
|
|
531
524
|
constructor(init?: Partial<NhUserNotificationData>);
|
|
532
525
|
}
|
|
533
526
|
|
|
527
|
+
type NhBackgroundOperationStatus = 'PendingDispatch' | 'Queued' | 'Running' | 'WaitingForChildren' | 'CancelRequested' | 'RetryScheduled' | 'Succeeded' | 'Failed' | 'Cancelled' | 'TimedOut' | number;
|
|
528
|
+
type NhBackgroundOperationAttemptStatus = 'Queued' | 'Running' | 'Suspended' | 'Succeeded' | 'Failed' | 'Cancelled' | 'Abandoned' | number;
|
|
529
|
+
type NhBackgroundOperationStepStatus = 'Pending' | 'Running' | 'Succeeded' | 'Failed' | 'Skipped' | 'Cancelled' | 'Indeterminate' | number;
|
|
530
|
+
type NhBackgroundOperationAggregationMode = 'Manual' | 'WeightedChildren' | 'ItemCount' | 'Indeterminate' | 'ChildOperations' | number;
|
|
531
|
+
type NhBackgroundOperationEventType = 'StateChanged' | 'StepStarted' | 'StepProgressed' | 'StepCompleted' | 'BatchChanged' | 'RetryScheduled' | 'CancellationRequested' | 'Message' | 'CheckpointChanged' | 'ResultAvailable' | 'ChildrenCreated' | 'ChildrenCompleted' | number;
|
|
532
|
+
type NhBackgroundOperationMessageSeverity = 'Information' | 'Success' | 'Warning' | 'Error' | number;
|
|
533
|
+
interface NhBackgroundOperationAttempt {
|
|
534
|
+
id: string;
|
|
535
|
+
attemptNumber: number;
|
|
536
|
+
status: NhBackgroundOperationAttemptStatus;
|
|
537
|
+
startedAt?: string;
|
|
538
|
+
heartbeatAt?: string;
|
|
539
|
+
completedAt?: string;
|
|
540
|
+
failureCode?: string;
|
|
541
|
+
recoveryReason?: string;
|
|
542
|
+
}
|
|
543
|
+
interface NhBackgroundOperationStep {
|
|
544
|
+
id: string;
|
|
545
|
+
parentStepId?: string;
|
|
546
|
+
stepKey: string;
|
|
547
|
+
titleKey?: string;
|
|
548
|
+
titleArgumentsJson?: string;
|
|
549
|
+
messageKey?: string;
|
|
550
|
+
messageArgumentsJson?: string;
|
|
551
|
+
status: NhBackgroundOperationStepStatus;
|
|
552
|
+
aggregationMode: NhBackgroundOperationAggregationMode;
|
|
553
|
+
weight: number;
|
|
554
|
+
current?: number;
|
|
555
|
+
total?: number;
|
|
556
|
+
percentage?: number;
|
|
557
|
+
discoveredItems: number;
|
|
558
|
+
processedItems: number;
|
|
559
|
+
succeededItems: number;
|
|
560
|
+
failedItems: number;
|
|
561
|
+
skippedItems: number;
|
|
562
|
+
retriedItems: number;
|
|
563
|
+
activeItems: number;
|
|
564
|
+
continueOnChildFailure: boolean;
|
|
565
|
+
displayOrder: number;
|
|
566
|
+
depth: number;
|
|
567
|
+
startedAt?: string;
|
|
568
|
+
completedAt?: string;
|
|
569
|
+
children: NhBackgroundOperationStep[];
|
|
570
|
+
}
|
|
571
|
+
interface NhBackgroundOperationEvent {
|
|
572
|
+
id: string;
|
|
573
|
+
sequence: number;
|
|
574
|
+
stepId?: string;
|
|
575
|
+
stepKey?: string;
|
|
576
|
+
eventType: NhBackgroundOperationEventType;
|
|
577
|
+
severity: NhBackgroundOperationMessageSeverity;
|
|
578
|
+
messageKey?: string;
|
|
579
|
+
messageArgumentsJson?: string;
|
|
580
|
+
snapshotVersion: number;
|
|
581
|
+
creationDateTime: string;
|
|
582
|
+
resultReferenceType?: string;
|
|
583
|
+
resultReferenceId?: string;
|
|
584
|
+
resultUrl?: string;
|
|
585
|
+
isMilestone: boolean;
|
|
586
|
+
}
|
|
587
|
+
interface NhBackgroundOperation {
|
|
588
|
+
id: string;
|
|
589
|
+
creationDateTime: string;
|
|
590
|
+
lastModifiedDateTime: string;
|
|
591
|
+
operationType: string;
|
|
592
|
+
payloadSchemaVersion: number;
|
|
593
|
+
ownerUserId: string;
|
|
594
|
+
divisionId?: string;
|
|
595
|
+
parentOperationId?: string;
|
|
596
|
+
rootOperationId?: string;
|
|
597
|
+
fanOutKey?: string;
|
|
598
|
+
fanOutItemKey?: string;
|
|
599
|
+
status: NhBackgroundOperationStatus;
|
|
600
|
+
queue: string;
|
|
601
|
+
priority: number;
|
|
602
|
+
currentAttemptNumber: number;
|
|
603
|
+
domainObjectType?: string;
|
|
604
|
+
domainObjectId?: string;
|
|
605
|
+
correlationId?: string;
|
|
606
|
+
progressCurrent?: number;
|
|
607
|
+
progressTotal?: number;
|
|
608
|
+
progressPercentage?: number;
|
|
609
|
+
progressPhaseKey?: string;
|
|
610
|
+
progressMessageKey?: string;
|
|
611
|
+
progressMessageArgumentsJson?: string;
|
|
612
|
+
cancelRequestedAt?: string;
|
|
613
|
+
startedAt?: string;
|
|
614
|
+
heartbeatAt?: string;
|
|
615
|
+
completedAt?: string;
|
|
616
|
+
sensitiveDataRedactedAt?: string;
|
|
617
|
+
resultReferenceType?: string;
|
|
618
|
+
resultReferenceId?: string;
|
|
619
|
+
resultUrl?: string;
|
|
620
|
+
failureCode?: string;
|
|
621
|
+
failureMessageKey?: string;
|
|
622
|
+
version: number;
|
|
623
|
+
latestEventSequence: number;
|
|
624
|
+
attempts: NhBackgroundOperationAttempt[];
|
|
625
|
+
steps: NhBackgroundOperationStep[];
|
|
626
|
+
events: NhBackgroundOperationEvent[];
|
|
627
|
+
children: NhBackgroundOperationChild[];
|
|
628
|
+
}
|
|
629
|
+
interface NhBackgroundOperationChild {
|
|
630
|
+
id: string;
|
|
631
|
+
parentOperationId?: string;
|
|
632
|
+
operationType: string;
|
|
633
|
+
fanOutKey?: string;
|
|
634
|
+
fanOutItemKey?: string;
|
|
635
|
+
status: NhBackgroundOperationStatus;
|
|
636
|
+
progressPercentage?: number;
|
|
637
|
+
creationDateTime: string;
|
|
638
|
+
lastModifiedDateTime: string;
|
|
639
|
+
completedAt?: string;
|
|
640
|
+
resultReferenceType?: string;
|
|
641
|
+
resultReferenceId?: string;
|
|
642
|
+
resultUrl?: string;
|
|
643
|
+
failureCode?: string;
|
|
644
|
+
children: NhBackgroundOperationChild[];
|
|
645
|
+
}
|
|
646
|
+
interface NhBackgroundOperationChanged {
|
|
647
|
+
operationId: string;
|
|
648
|
+
version: number;
|
|
649
|
+
latestEventSequence: number;
|
|
650
|
+
status: NhBackgroundOperationStatus;
|
|
651
|
+
divisionId?: string;
|
|
652
|
+
}
|
|
653
|
+
declare class NhBackgroundOperationCollectionHttpRequestOptions extends CollectionHttpRequestOptions {
|
|
654
|
+
constructor(init?: Partial<NhBackgroundOperationCollectionHttpRequestOptions>);
|
|
655
|
+
}
|
|
656
|
+
declare function nhBackgroundOperationStatusName(status: NhBackgroundOperationStatus): string;
|
|
657
|
+
declare function nhBackgroundOperationStepStatusName(status: NhBackgroundOperationStepStatus): string;
|
|
658
|
+
declare function nhBackgroundOperationTranslationSegment(value: string): string;
|
|
659
|
+
|
|
534
660
|
declare const languageToCultureMap: {
|
|
535
661
|
nl: string;
|
|
536
662
|
en: string;
|
|
@@ -1039,105 +1165,6 @@ declare class NhErrorHandlerService implements ErrorHandler {
|
|
|
1039
1165
|
static ɵprov: i0.ɵɵInjectableDeclaration<NhErrorHandlerService>;
|
|
1040
1166
|
}
|
|
1041
1167
|
|
|
1042
|
-
type NhSentryBeforeSendHook = (event: Sentry.ErrorEvent, hint: Sentry.EventHint) => Sentry.ErrorEvent | null | PromiseLike<Sentry.ErrorEvent | null>;
|
|
1043
|
-
type NhSentryBeforeSendLogHook = (event: SentryCore.Log) => SentryCore.Log | null;
|
|
1044
|
-
type NhSentryBeforeSendSpanHook = (span: SentryCore.SpanJSON) => SentryCore.SpanJSON;
|
|
1045
|
-
type NhSentryBeforeSendTransactionHook = (span: SentryCore.TransactionEvent, hint: Sentry.EventHint) => SentryCore.TransactionEvent | null | PromiseLike<SentryCore.TransactionEvent | null>;
|
|
1046
|
-
type NhSentryBeforeBreadcrumbHook = (span: Sentry.Breadcrumb, hint?: Sentry.BreadcrumbHint) => Sentry.Breadcrumb | null;
|
|
1047
|
-
declare const NH_SENTRY_BEFORE_SEND_HOOKS: InjectionToken<NhSentryBeforeSendHook[]>;
|
|
1048
|
-
declare const NH_SENTRY_BEFORE_SEND_LOG_HOOKS: InjectionToken<NhSentryBeforeSendLogHook[]>;
|
|
1049
|
-
declare const NH_SENTRY_BEFORE_SEND_SPAN_HOOKS: InjectionToken<NhSentryBeforeSendSpanHook[]>;
|
|
1050
|
-
declare const NH_SENTRY_BEFORE_SEND_TRANSACTION_HOOKS: InjectionToken<NhSentryBeforeSendTransactionHook[]>;
|
|
1051
|
-
declare const NH_SENTRY_BEFORE_BREADCRUMB_HOOKS: InjectionToken<NhSentryBeforeBreadcrumbHook[]>;
|
|
1052
|
-
declare class NhSentryInitializerService implements OnDestroy {
|
|
1053
|
-
private readonly moduleConfig;
|
|
1054
|
-
private readonly authService;
|
|
1055
|
-
private providedHooksBeforeSend;
|
|
1056
|
-
private providedHooksBeforeSendLog;
|
|
1057
|
-
private providedHooksBeforeSendSpan;
|
|
1058
|
-
private providedHooksBeforeSendTransaction;
|
|
1059
|
-
private providedHooksBeforeBreadcrumb;
|
|
1060
|
-
private _didInitialize;
|
|
1061
|
-
private _sentryConfig;
|
|
1062
|
-
private authorization;
|
|
1063
|
-
private $auth;
|
|
1064
|
-
private runtimeHooksBeforeSend;
|
|
1065
|
-
private runtimeHooksBeforeSendLog;
|
|
1066
|
-
private runtimeHooksBeforeSendSpan;
|
|
1067
|
-
private runtimeHooksBeforeSendTransaction;
|
|
1068
|
-
private runtimeHooksBeforeBreadcrumb;
|
|
1069
|
-
get hooksBeforeSend(): NhSentryBeforeSendHook[];
|
|
1070
|
-
get hooksBeforeSendLog(): NhSentryBeforeSendLogHook[];
|
|
1071
|
-
get hooksBeforeSendSpan(): NhSentryBeforeSendSpanHook[];
|
|
1072
|
-
get hooksBeforeSendTransaction(): NhSentryBeforeSendTransactionHook[];
|
|
1073
|
-
get hooksBeforeBreadcrumb(): NhSentryBeforeBreadcrumbHook[];
|
|
1074
|
-
get isEnabled(): boolean;
|
|
1075
|
-
get isInitializedAndEnabled(): boolean;
|
|
1076
|
-
get sentry(): typeof Sentry;
|
|
1077
|
-
constructor(moduleConfig: NhCommonModuleConfig, authService: NhAuthService, providedHooksBeforeSend?: NhSentryBeforeSendHook[], providedHooksBeforeSendLog?: NhSentryBeforeSendLogHook[], providedHooksBeforeSendSpan?: NhSentryBeforeSendSpanHook[], providedHooksBeforeSendTransaction?: NhSentryBeforeSendTransactionHook[], providedHooksBeforeBreadcrumb?: NhSentryBeforeBreadcrumbHook[]);
|
|
1078
|
-
private authChanged;
|
|
1079
|
-
registerHookBeforeSend(hook: NhSentryBeforeSendHook): void;
|
|
1080
|
-
registerHookBeforeSendLog(hook: NhSentryBeforeSendLogHook): void;
|
|
1081
|
-
registerHookBeforeSendSpan(hook: NhSentryBeforeSendSpanHook): void;
|
|
1082
|
-
registerHookBeforeSendTransaction(hook: NhSentryBeforeSendTransactionHook): void;
|
|
1083
|
-
registerHookBeforeBreadcrumb(hook: NhSentryBeforeBreadcrumbHook): void;
|
|
1084
|
-
private ourBeforeSendHook;
|
|
1085
|
-
initialize(): void;
|
|
1086
|
-
private runHooksBeforeSend;
|
|
1087
|
-
private runHooksBeforeSendLog;
|
|
1088
|
-
private runHooksBeforeSendSpan;
|
|
1089
|
-
private runHooksBeforeSendTransaction;
|
|
1090
|
-
private runHooksBeforeBreadcrumb;
|
|
1091
|
-
ngOnDestroy(): void;
|
|
1092
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NhSentryInitializerService, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1093
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NhSentryInitializerService>;
|
|
1094
|
-
}
|
|
1095
|
-
declare class NhSentryService implements OnDestroy {
|
|
1096
|
-
private readonly moduleConfig;
|
|
1097
|
-
private readonly sentryInitializerService;
|
|
1098
|
-
private _sentryConfig;
|
|
1099
|
-
get isEnabled(): boolean;
|
|
1100
|
-
get isInitializedAndEnabled(): boolean;
|
|
1101
|
-
get sentry(): typeof Sentry;
|
|
1102
|
-
constructor(moduleConfig: NhCommonModuleConfig, sentryInitializerService: NhSentryInitializerService);
|
|
1103
|
-
registerHookBeforeSend(hook: NhSentryBeforeSendHook): void;
|
|
1104
|
-
registerHookBeforeSendLog(hook: NhSentryBeforeSendLogHook): void;
|
|
1105
|
-
registerHookBeforeSendSpan(hook: NhSentryBeforeSendSpanHook): void;
|
|
1106
|
-
registerHookBeforeSendTransaction(hook: NhSentryBeforeSendTransactionHook): void;
|
|
1107
|
-
registerHookBeforeBreadcrumb(hook: NhSentryBeforeBreadcrumbHook): void;
|
|
1108
|
-
ngOnDestroy(): void;
|
|
1109
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NhSentryService, never>;
|
|
1110
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NhSentryService>;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
declare class NhErrorHandlerSentryService implements ErrorHandler, OnDestroy {
|
|
1114
|
-
private readonly moduleConfig;
|
|
1115
|
-
private readonly sentryInitializerService;
|
|
1116
|
-
private _sentryErrorHandler;
|
|
1117
|
-
private _didInitialize;
|
|
1118
|
-
get sentryErrorHandler(): Sentry.SentryErrorHandler | undefined;
|
|
1119
|
-
constructor(moduleConfig: NhCommonModuleConfig, sentryInitializerService: NhSentryInitializerService);
|
|
1120
|
-
initialize(): void;
|
|
1121
|
-
handleError(error: any): void;
|
|
1122
|
-
ngOnDestroy(): void;
|
|
1123
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NhErrorHandlerSentryService, never>;
|
|
1124
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NhErrorHandlerSentryService>;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
declare class NhSentryTraceService implements OnDestroy {
|
|
1128
|
-
private readonly moduleConfig;
|
|
1129
|
-
private readonly sentryInitializerService;
|
|
1130
|
-
private readonly router;
|
|
1131
|
-
private _sentryTraceService;
|
|
1132
|
-
private _didInitialize;
|
|
1133
|
-
get sentryTraceService(): Sentry.TraceService | undefined;
|
|
1134
|
-
constructor(moduleConfig: NhCommonModuleConfig, sentryInitializerService: NhSentryInitializerService, router: Router);
|
|
1135
|
-
initialize(): void;
|
|
1136
|
-
ngOnDestroy(): void;
|
|
1137
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NhSentryTraceService, never>;
|
|
1138
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NhSentryTraceService>;
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
1168
|
declare class NhAppService implements OnDestroy {
|
|
1142
1169
|
private document;
|
|
1143
1170
|
private platformId;
|
|
@@ -1713,6 +1740,7 @@ declare class NhUserNotificationService implements OnDestroy {
|
|
|
1713
1740
|
readonly isRunning$: Observable<boolean>;
|
|
1714
1741
|
private task$;
|
|
1715
1742
|
private taskSub;
|
|
1743
|
+
private runningConsumers;
|
|
1716
1744
|
private userNotificationState;
|
|
1717
1745
|
private readonly userNotificationStateSubject;
|
|
1718
1746
|
readonly userNotificationState$: Observable<NhUserNotificationState>;
|
|
@@ -1735,6 +1763,98 @@ declare class NhUserNotificationService implements OnDestroy {
|
|
|
1735
1763
|
static ɵprov: i0.ɵɵInjectableDeclaration<NhUserNotificationService>;
|
|
1736
1764
|
}
|
|
1737
1765
|
|
|
1766
|
+
declare class NhBackgroundOperationService {
|
|
1767
|
+
private readonly config;
|
|
1768
|
+
private readonly api;
|
|
1769
|
+
private readonly baseUrl;
|
|
1770
|
+
list(request?: NhBackgroundOperationCollectionHttpRequestOptions): Observable<CollectionHttpResponse<NhBackgroundOperation>>;
|
|
1771
|
+
get(operationId: string, eventsAfterSequence?: number): Observable<NhBackgroundOperation>;
|
|
1772
|
+
cancel(operationId: string): Observable<NhBackgroundOperation>;
|
|
1773
|
+
retry(operationId: string): Observable<NhBackgroundOperation>;
|
|
1774
|
+
private joinUrl;
|
|
1775
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhBackgroundOperationService, never>;
|
|
1776
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhBackgroundOperationService>;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
type NhBackgroundOperationConnectionState = 'disabled' | 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
|
|
1780
|
+
declare class NhBackgroundOperationLiveUpdateService implements OnDestroy {
|
|
1781
|
+
private readonly config;
|
|
1782
|
+
private readonly auth;
|
|
1783
|
+
private readonly app;
|
|
1784
|
+
private readonly changedSubject;
|
|
1785
|
+
private readonly resyncSubject;
|
|
1786
|
+
private readonly connectionStateSubject;
|
|
1787
|
+
private readonly authSubscription;
|
|
1788
|
+
private connection?;
|
|
1789
|
+
private connectPromise?;
|
|
1790
|
+
private reconnectTimer?;
|
|
1791
|
+
private consumers;
|
|
1792
|
+
private authorizationScopeKey;
|
|
1793
|
+
readonly changed$: Observable<NhBackgroundOperationChanged>;
|
|
1794
|
+
readonly resync$: Observable<void>;
|
|
1795
|
+
readonly connectionState$: Observable<NhBackgroundOperationConnectionState>;
|
|
1796
|
+
constructor(config: NhCommonModuleConfig, auth: NhAuthService, app: NhAppService);
|
|
1797
|
+
start(): void;
|
|
1798
|
+
stop(): void;
|
|
1799
|
+
ngOnDestroy(): void;
|
|
1800
|
+
private isEnabled;
|
|
1801
|
+
private restart;
|
|
1802
|
+
private ensureConnected;
|
|
1803
|
+
private connectCore;
|
|
1804
|
+
private buildConnection;
|
|
1805
|
+
private stopConnection;
|
|
1806
|
+
private scheduleReconnect;
|
|
1807
|
+
private clearReconnectTimer;
|
|
1808
|
+
private joinUrl;
|
|
1809
|
+
private appendQueryParameter;
|
|
1810
|
+
private getAuthorizationScopeKey;
|
|
1811
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhBackgroundOperationLiveUpdateService, never>;
|
|
1812
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhBackgroundOperationLiveUpdateService>;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
declare class NhBackgroundOperationStore implements OnDestroy {
|
|
1816
|
+
private readonly api;
|
|
1817
|
+
private readonly live;
|
|
1818
|
+
private readonly config;
|
|
1819
|
+
private readonly auth;
|
|
1820
|
+
private readonly operationsSubject;
|
|
1821
|
+
private readonly errorSubject;
|
|
1822
|
+
private readonly subscriptions;
|
|
1823
|
+
private readonly watchedIds;
|
|
1824
|
+
private readonly refreshing;
|
|
1825
|
+
private readonly refreshAgain;
|
|
1826
|
+
private pollingSubscription?;
|
|
1827
|
+
private consumers;
|
|
1828
|
+
private scopeGeneration;
|
|
1829
|
+
private scopeKey;
|
|
1830
|
+
readonly operations$: Observable<readonly NhBackgroundOperation[]>;
|
|
1831
|
+
readonly error$: Observable<unknown | undefined>;
|
|
1832
|
+
readonly connectionState$: Observable<NhBackgroundOperationConnectionState>;
|
|
1833
|
+
constructor(api: NhBackgroundOperationService, live: NhBackgroundOperationLiveUpdateService, config: NhCommonModuleConfig, auth: NhAuthService);
|
|
1834
|
+
watchAll(): Observable<readonly NhBackgroundOperation[]>;
|
|
1835
|
+
watch(operationId: string): Observable<NhBackgroundOperation | undefined>;
|
|
1836
|
+
start(): void;
|
|
1837
|
+
stop(): void;
|
|
1838
|
+
refreshList(): Promise<void>;
|
|
1839
|
+
cancel(operationId: string): Observable<NhBackgroundOperation>;
|
|
1840
|
+
retry(operationId: string): Observable<NhBackgroundOperation>;
|
|
1841
|
+
ngOnDestroy(): void;
|
|
1842
|
+
private loadList;
|
|
1843
|
+
private loadSnapshot;
|
|
1844
|
+
private onLiveChange;
|
|
1845
|
+
private refreshOperation;
|
|
1846
|
+
private mergeSummary;
|
|
1847
|
+
private mergeDetail;
|
|
1848
|
+
private setOperation;
|
|
1849
|
+
private replaceListSnapshot;
|
|
1850
|
+
private onAuthorizationChanged;
|
|
1851
|
+
private getScopeKey;
|
|
1852
|
+
private shouldRemoveAfterError;
|
|
1853
|
+
private removeOperation;
|
|
1854
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhBackgroundOperationStore, never>;
|
|
1855
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhBackgroundOperationStore>;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1738
1858
|
declare class NhContextMenuItem {
|
|
1739
1859
|
type: 'item' | 'divider';
|
|
1740
1860
|
title: string;
|
|
@@ -2358,7 +2478,7 @@ declare class NhErrorComponent {
|
|
|
2358
2478
|
static ɵcmp: i0.ɵɵComponentDeclaration<NhErrorComponent, "nh-error", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "errors": { "alias": "errors"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
2359
2479
|
}
|
|
2360
2480
|
|
|
2361
|
-
declare abstract class NhUserNotificationsAbstractComponent extends NhCollectionBaseComponent<NhUserNotification>
|
|
2481
|
+
declare abstract class NhUserNotificationsAbstractComponent extends NhCollectionBaseComponent<NhUserNotification> {
|
|
2362
2482
|
allowStart: boolean;
|
|
2363
2483
|
allowStop: boolean;
|
|
2364
2484
|
itemsPerPage: number;
|
|
@@ -2374,8 +2494,8 @@ declare abstract class NhUserNotificationsAbstractComponent extends NhCollection
|
|
|
2374
2494
|
protected userNotificationSubscription: rxjs.Subscription;
|
|
2375
2495
|
constructor();
|
|
2376
2496
|
protected onNewNotificationsAvailable(state: NhUserNotificationState): Promise<void>;
|
|
2377
|
-
|
|
2378
|
-
|
|
2497
|
+
appOnInit(): Promise<void>;
|
|
2498
|
+
appOnDestroy(): Promise<void>;
|
|
2379
2499
|
getInitialRequestOptions(): NhUserNotificationCollectionHttpRequestOptions;
|
|
2380
2500
|
getLocalStoragePartialKey(): string | null;
|
|
2381
2501
|
onLoad(requestOptions: NhUserNotificationCollectionHttpRequestOptions): Promise<Observable<CollectionHttpResponse<NhUserNotification>>>;
|
|
@@ -2385,10 +2505,30 @@ declare abstract class NhUserNotificationsAbstractComponent extends NhCollection
|
|
|
2385
2505
|
markAllAsRead(): Promise<TaskResult<unknown>>;
|
|
2386
2506
|
archive(notification: NhUserNotification): Promise<TaskResult<unknown>>;
|
|
2387
2507
|
archiveAll(): Promise<TaskResult<unknown>>;
|
|
2508
|
+
private captureOverview;
|
|
2388
2509
|
static ɵfac: i0.ɵɵFactoryDeclaration<NhUserNotificationsAbstractComponent, never>;
|
|
2389
2510
|
static ɵcmp: i0.ɵɵComponentDeclaration<NhUserNotificationsAbstractComponent, "nh-user-notifications-abstract", never, { "allowStart": { "alias": "allowStart"; "required": false; }; "allowStop": { "alias": "allowStop"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "autoLoadNotificationChanges": { "alias": "autoLoadNotificationChanges"; "required": false; }; "partialLocalStorageKey": { "alias": "partialLocalStorageKey"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
2390
2511
|
}
|
|
2391
2512
|
|
|
2513
|
+
declare class NhBackgroundOperationProgressComponent {
|
|
2514
|
+
operation: NhBackgroundOperation;
|
|
2515
|
+
showEvents: boolean;
|
|
2516
|
+
showActions: boolean;
|
|
2517
|
+
cancelRequested: EventEmitter<string>;
|
|
2518
|
+
retryRequested: EventEmitter<string>;
|
|
2519
|
+
statusKey(status: NhBackgroundOperationStatus): string;
|
|
2520
|
+
stepStatusKey(status: NhBackgroundOperationStepStatus): string;
|
|
2521
|
+
stepTitle(step: NhBackgroundOperationStep): string;
|
|
2522
|
+
percentage(value?: number): number;
|
|
2523
|
+
arguments(json?: string): Record<string, unknown>;
|
|
2524
|
+
hasBatch(step: NhBackgroundOperationStep): boolean;
|
|
2525
|
+
childLabel(child: NhBackgroundOperationChild): string;
|
|
2526
|
+
canCancel(status: NhBackgroundOperationStatus): boolean;
|
|
2527
|
+
canRetry(operation: NhBackgroundOperation): boolean;
|
|
2528
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhBackgroundOperationProgressComponent, never>;
|
|
2529
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhBackgroundOperationProgressComponent, "nh-background-operation-progress", never, { "operation": { "alias": "operation"; "required": true; }; "showEvents": { "alias": "showEvents"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; }, { "cancelRequested": "cancelRequested"; "retryRequested": "retryRequested"; }, never, never, true, never>;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2392
2532
|
declare class NhSearchInputComponent {
|
|
2393
2533
|
value: string | undefined;
|
|
2394
2534
|
onDebounce: EventEmitter<string>;
|
|
@@ -2450,5 +2590,5 @@ declare class NhTranslateBrowserLoader implements TranslateLoader {
|
|
|
2450
2590
|
}
|
|
2451
2591
|
declare function nhTranslateBrowserLoaderFactory(httpClient: HttpClient, transferState: TransferState): NhTranslateBrowserLoader;
|
|
2452
2592
|
|
|
2453
|
-
export { AbstractValueAccessor, AspMvcFormServerSideFormValidator, AuthSessionExpirationInformation, AuthenticateModel, AuthenticationNhCommonModuleConfig, AuthenticationSessionCreateResponse, BaseNhAuthService, CheckAuthenticateSessionModel, Claim, ClaimAuthenticateSessionAccountMutateModel, ClaimAuthenticateSessionAccountViewModel, ClaimTypes, CollectionHttpRequestOptions, CollectionHttpResponse, DefaultMultiSelectSettings, DefaultMultiSelectTexts, EndpointsAuthenticationNhCommonModuleConfig, FilterRequestOptions, FormError, FormValidationResult, HttpDownloadRequestOptions, HttpRequestOptions, HttpRequestOptionsArrayBuffer, HttpRequestOptionsText, ImpersonateAuthenticateModel, IsAllPermissionsGrantedPipe, IsAuthenticatedPipe, IsClaimGrantedPipe, IsDefined, IsGrantedRolePipe, IsOneActiveDivisionPermissionGrantedGuard, IsOneActiveDivisionPermissionGrantedPipe, IsOneActiveDivisionRoleGrantedGuard, IsOneActiveDivisionRoleGrantedPipe, IsOneClaimGrantedPipe, IsOneDivisionPermissionGrantedPipe, IsOneDivisionRoleGrantedPipe, IsOnePermissionGrantedPipe, IsOneRoleGrantedPipe, JsonLdDataChanged, ListSortDirection, MakeProvider, MutationType, NH_ERROR_HANDLERS, NH_ROUTER_LANGUAGE_CHANGE_METHOD, NH_ROUTER_ROOT_ROUTES,
|
|
2454
|
-
export type { AuthenticationFlow, ErrorResult, ICancelNavigationComponent, IClaimAuthenticateSessionAccountViewModel, ICollectionHttpRequestOptions, ICollectionHttpResponse, IFormError, IFormValidationResult, IHttpDownloadRequestOptions, IHttpRequestOptions, INhAccountInformationResponse, INhAuthorization, INhDivision, INhDivisionRole, INhDivisionUser, INhModalComponent, INhUser, ISearchableCollectionHttpRequestOptions, IServerSideFormValidationService, IServerSideFormValidator, ISimpleCollectionHttpRequestOptions, ISimpleCollectionHttpResponse,
|
|
2593
|
+
export { AbstractValueAccessor, AspMvcFormServerSideFormValidator, AuthSessionExpirationInformation, AuthenticateModel, AuthenticationNhCommonModuleConfig, AuthenticationSessionCreateResponse, BackgroundOperationsNhCommonModuleConfig, BaseNhAuthService, CheckAuthenticateSessionModel, Claim, ClaimAuthenticateSessionAccountMutateModel, ClaimAuthenticateSessionAccountViewModel, ClaimTypes, CollectionHttpRequestOptions, CollectionHttpResponse, DefaultMultiSelectSettings, DefaultMultiSelectTexts, EndpointsAuthenticationNhCommonModuleConfig, FilterRequestOptions, FormError, FormValidationResult, HttpDownloadRequestOptions, HttpRequestOptions, HttpRequestOptionsArrayBuffer, HttpRequestOptionsText, ImpersonateAuthenticateModel, IsAllPermissionsGrantedPipe, IsAuthenticatedPipe, IsClaimGrantedPipe, IsDefined, IsGrantedRolePipe, IsOneActiveDivisionPermissionGrantedGuard, IsOneActiveDivisionPermissionGrantedPipe, IsOneActiveDivisionRoleGrantedGuard, IsOneActiveDivisionRoleGrantedPipe, IsOneClaimGrantedPipe, IsOneDivisionPermissionGrantedPipe, IsOneDivisionRoleGrantedPipe, IsOnePermissionGrantedPipe, IsOneRoleGrantedPipe, JsonLdDataChanged, ListSortDirection, MakeProvider, MutationType, NH_ERROR_HANDLERS, NH_ROUTER_LANGUAGE_CHANGE_METHOD, NH_ROUTER_ROOT_ROUTES, NhAccountInformationResponse, NhAngularUtil, NhApiService, NhApiUtil, NhAppService, NhAsyncLock, NhAuthService, NhAuthorization, NhBackgroundOperationCollectionHttpRequestOptions, NhBackgroundOperationLiveUpdateService, NhBackgroundOperationProgressComponent, NhBackgroundOperationService, NhBackgroundOperationStore, NhBaseApiService, NhBooleanToStringPipe, NhBreadCrumb, NhBreadCrumbItem, NhButtonDebounceDirective, NhCanCancelNavigationGuard, NhCollectionBaseComponent, NhCollectionTypeBaseComponent, NhCommonConfig, NhCommonConfigChanged, NhCommonModule, NhCommonModuleConfig, NhConfigCommonService, NhContextMenu, NhContextMenuItem, NhContextMenuService, NhContextMenuServiceConfig, NhCookieService, NhDatePipe, NhDateTimePipe, NhDateUtcPipe, NhDebounceDirective, NhDeduplicateGetRequestsInterceptor, NhDivision, NhDivisionRole, NhDivisionUser, NhEncodeHttpParamsInterceptor, NhEncodingUtil, NhErrorComponent, NhErrorHandlerService, NhFormDropDownComponent, NhFormDropDownNhCommonModuleConfig, NhFormDropDownSettings, NhFormErrorMessageComponent, NhFormHelper, NhHeadService, NhHttpNhCommonModuleConfig, NhHttpUtil, NhInternetConnectionService, NhIsAllPermissionsGrantedGuard, NhIsAuthenticatedGuard, NhIsOneClaimGrantedGuard, NhIsOnePermissionGrantedGuard, NhIsOneRoleGrantedGuard, NhJsonLdComponent, NhJsonLdData, NhJsonLdDataItem, NhJsonLdService, NhLoaderComponent, NhMetaService, NhModalComponent, NhModalComponentClosed, NhModalComponentImpl, NhModalComponentRef, NhModalConfirmComponent, NhModalContentDirective, NhModalLoadingComponent, NhModalMutateBaseComponent, NhModalMutateBaseTypeComponent, NhModalOptions, NhModalService, NhMutateBaseComponent, NhMutateBaseTypeComponent, NhMutex, NhPageBaseComponent, NhPageService, NhPageSettings, NhPageSizeComponent, NhPageTypeBaseComponent, NhRegisterRoute, NhRequestScopedServerHttpInterceptorService, NhRoute, NhRouteInfo, NhRouteNavigationItem, NhRouterLinkDirective, NhRouterService, NhRouterSetupService, NhSearchInputComponent, NhServerHttpInterceptor, NhServerService, NhServerSideFormValidationService, NhSitemap, NhSitemapEntry, NhSitemapEntryItem, NhStringUtil, NhTaskResultFormValidationService, NhTitleService, NhToHeadDirective, NhTranslateBrowserLoader, NhTranslationNhCommonModuleConfig, NhTypedPageBaseComponent, NhTypedPageTypeBaseComponent, NhUrlEncodePipe, NhUser, NhUserNotification, NhUserNotificationCollectionHttpRequestOptions, NhUserNotificationData, NhUserNotificationMessage, NhUserNotificationOverview, NhUserNotificationService, NhUserNotificationState, NhUserNotificationsAbstractComponent, OrderByRequestOptions, PreConnectUrlItem, PreLoadUrlItem, REVIEW_AGGREGATE_RATING_KEY, REVIEW_KEY, RefreshTokenLoginAccountMutateModel, RevertImpersonateAuthenticateModel, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SearchableCollectionHttpRequestOptions, SimpleCollectionHttpRequestOptions, SimpleCollectionHttpResponse, TaskResult, TaskResultItem, TypedNhPageSettings, UserNotificationNhCommonModuleConfig, enumIntValuesToArray, enumKeysToArray, enumStringValuesToArray, enumValuesToArray, getEmptyGuid, getRandomIdentifier, groupBy, languageToCultureMap, nameof, nhBackgroundOperationStatusName, nhBackgroundOperationStepStatusName, nhBackgroundOperationTranslationSegment, nhTranslateBrowserLoaderFactory, uppercaseFirst };
|
|
2594
|
+
export type { AuthenticationFlow, ErrorResult, ICancelNavigationComponent, IClaimAuthenticateSessionAccountViewModel, ICollectionHttpRequestOptions, ICollectionHttpResponse, IFormError, IFormValidationResult, IHttpDownloadRequestOptions, IHttpRequestOptions, INhAccountInformationResponse, INhAuthorization, INhDivision, INhDivisionRole, INhDivisionUser, INhModalComponent, INhUser, ISearchableCollectionHttpRequestOptions, IServerSideFormValidationService, IServerSideFormValidator, ISimpleCollectionHttpRequestOptions, ISimpleCollectionHttpResponse, NhBackgroundOperation, NhBackgroundOperationAggregationMode, NhBackgroundOperationAttempt, NhBackgroundOperationAttemptStatus, NhBackgroundOperationChanged, NhBackgroundOperationChild, NhBackgroundOperationConnectionState, NhBackgroundOperationEvent, NhBackgroundOperationEventType, NhBackgroundOperationMessageSeverity, NhBackgroundOperationStatus, NhBackgroundOperationStep, NhBackgroundOperationStepStatus, NhContextEventWithCoordinates, NhEnumDropDownItem, NhRouterLink, SuccessResult, TypedResult };
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newheap/platform-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.3.28",
|
|
6
6
|
"@angular/core": "^20.3.28",
|
|
7
7
|
"@angular/forms": "^20.3.28",
|
|
8
8
|
"@angular/platform-browser": "^20.3.28",
|
|
9
9
|
"@angular/router": "^20.3.28",
|
|
10
|
+
"@microsoft/signalr": "^10.0.11",
|
|
10
11
|
"@msgpack/msgpack": "^2.8.0",
|
|
11
12
|
"@ngx-translate/core": "^17.0.0",
|
|
12
|
-
"@sentry/angular": "^10.53.1",
|
|
13
|
-
"@sentry/browser": "^10.53.1",
|
|
14
|
-
"@sentry/core": "^10.53.1",
|
|
15
13
|
"@swimlane/ngx-datatable": "^23.0.1",
|
|
16
14
|
"js-base64": "^3.7.7",
|
|
17
15
|
"luxon": "^3.5.0",
|