herum-shared 0.1.28 → 0.1.31
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/herum-shared-mongo.mjs +12 -25
- package/fesm2022/herum-shared-mongo.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +12 -25
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +2 -3
- package/mongo/index.d.ts +2 -3
- package/package.json +1 -9
- package/fesm2022/herum-shared-mongo-molecules.mjs +0 -269
- package/fesm2022/herum-shared-mongo-molecules.mjs.map +0 -1
- package/fesm2022/herum-shared-mongo-services.mjs +0 -441
- package/fesm2022/herum-shared-mongo-services.mjs.map +0 -1
- package/mongo/molecules/index.d.ts +0 -76
- package/mongo/services/index.d.ts +0 -98
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
-
import { FailedDependentsRequestsContext, CommonDependentsToast, ToastHttpResponseDependencies, ComplexObservableArrowFunctions, DependentMetadata, ObservableArrowFunction, Toast, ToastTemplate, ToastStatus, UploadProgressMetadata } from 'herum-shared/herum-types';
|
|
5
|
-
import { EnvironmentConfig } from 'herum-shared/environment';
|
|
6
|
-
import { UtilsService } from 'herum-shared/services';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
|
|
9
|
-
declare class ErrorsHandlerService {
|
|
10
|
-
private dialog;
|
|
11
|
-
private http;
|
|
12
|
-
private utilsService;
|
|
13
|
-
private environmentConfig;
|
|
14
|
-
isErrorPopupCurrentlyOpened: boolean;
|
|
15
|
-
failedReportUploadProgressRequests: HttpRequest<any>[];
|
|
16
|
-
failedDependentsRequestsContext: FailedDependentsRequestsContext;
|
|
17
|
-
dependentRequestId$: Subject<string>;
|
|
18
|
-
reportUploadProgressRequest$: Subject<string>;
|
|
19
|
-
commonDependentsErrorToast$: Subject<CommonDependentsToast>;
|
|
20
|
-
errorToast$: Subject<ToastHttpResponseDependencies>;
|
|
21
|
-
constructor(dialog: MatDialog, http: HttpClient, utilsService: UtilsService, environmentConfig: EnvironmentConfig);
|
|
22
|
-
handleError(errorStatus: number, errorData?: any): void;
|
|
23
|
-
setFailedReportUploadProgressRequests(failedReportUploadProgressRequest: HttpRequest<any>): void;
|
|
24
|
-
private handleUnauthorizedError;
|
|
25
|
-
private handleConflictError;
|
|
26
|
-
private handleForbiddenError;
|
|
27
|
-
private handleTimeoutError;
|
|
28
|
-
private handleInternalServerError;
|
|
29
|
-
private handleDependentRequestError;
|
|
30
|
-
private handleReportUploadProgressRequestError;
|
|
31
|
-
private isErrorToastNeeded;
|
|
32
|
-
private handleErrorToast;
|
|
33
|
-
setChainedFailedObservableFunctions(dependentId: string, error: HttpErrorResponse, failedComplexObservableArrowFunctions: ComplexObservableArrowFunctions, initialValue?: any): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorsHandlerService, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorsHandlerService>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare class DependentsService {
|
|
39
|
-
private errorsHandlerService;
|
|
40
|
-
dependentMetadata: DependentMetadata;
|
|
41
|
-
constructor(errorsHandlerService: ErrorsHandlerService);
|
|
42
|
-
chainObservableFunctions(complexFunctions: ComplexObservableArrowFunctions, initialValue?: any): any;
|
|
43
|
-
private setInitialObservable;
|
|
44
|
-
private handleInitialComplexFunction;
|
|
45
|
-
private handleInitialFunction;
|
|
46
|
-
private chainObservables;
|
|
47
|
-
private handleCurrentChainedComplexObservable;
|
|
48
|
-
handleCurrentChainedObservable(complexFunctions: ComplexObservableArrowFunctions, currentFunction: ObservableArrowFunction, result: any, functionsIndex: number): any;
|
|
49
|
-
private calculateNumberOfObservableFunctions;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DependentsService, never>;
|
|
51
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DependentsService>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare class ToastsService {
|
|
55
|
-
private errorsHandlerService;
|
|
56
|
-
private utilsService;
|
|
57
|
-
private environmentConfig;
|
|
58
|
-
toast$: BehaviorSubject<Toast>;
|
|
59
|
-
toastId: number;
|
|
60
|
-
toastsTemplates: {
|
|
61
|
-
[key: string]: ToastTemplate;
|
|
62
|
-
};
|
|
63
|
-
constructor(errorsHandlerService: ErrorsHandlerService, utilsService: UtilsService, environmentConfig: EnvironmentConfig);
|
|
64
|
-
createToastBasedOnHttpResponse(toastHttpResponseDependencies: ToastHttpResponseDependencies): void;
|
|
65
|
-
findErrorMessageByStatusCode(statusCode: string, mongoMethodDisplayedName: string): string;
|
|
66
|
-
showErrorToast(toastContextKey: string): void;
|
|
67
|
-
showSuccessToast(toastContextKey: string): void;
|
|
68
|
-
showInformationToast(toastContextKey: string): void;
|
|
69
|
-
showOnDemandToast(toastContextKey: string, status: ToastStatus, toastStorageKey?: string): void;
|
|
70
|
-
private hasToastAlreadyShownAndShouldShowOnce;
|
|
71
|
-
showToast(title: string, content: string, status: ToastStatus): void;
|
|
72
|
-
private setToastStatus;
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastsService, never>;
|
|
74
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ToastsService>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare class UploadsManagerService {
|
|
78
|
-
private errorsHandlerService;
|
|
79
|
-
private dependentsService;
|
|
80
|
-
private http;
|
|
81
|
-
private toastsService;
|
|
82
|
-
uploadsManagerTitle$: BehaviorSubject<string>;
|
|
83
|
-
uploadsProgressMetadata$: BehaviorSubject<UploadProgressMetadata[]>;
|
|
84
|
-
constructor(errorsHandlerService: ErrorsHandlerService, dependentsService: DependentsService, http: HttpClient, toastsService: ToastsService);
|
|
85
|
-
private setSubscriptions;
|
|
86
|
-
private updateUploadProgressStatus;
|
|
87
|
-
retryFailedUploads(): Observable<any>[];
|
|
88
|
-
retryFailedUpload(uploadProgressId: string): Observable<any>;
|
|
89
|
-
private handleFailedDependentRequest;
|
|
90
|
-
private handleFailedReportUploadRequest;
|
|
91
|
-
addOrUpdateUploadProgressMetadata(uploadProgressMetadata: UploadProgressMetadata): void;
|
|
92
|
-
getUploadProgressById(uploadProgressId: string): UploadProgressMetadata;
|
|
93
|
-
createNewToastBasedOnHttpRequest(commonDependentsToast: CommonDependentsToast): void;
|
|
94
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadsManagerService, never>;
|
|
95
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UploadsManagerService>;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export { DependentsService, ErrorsHandlerService, ToastsService, UploadsManagerService };
|