monkey-front-core 0.0.150 → 0.0.153
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/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +23 -22
- package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +12 -1
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +93 -22
- package/esm2020/lib/core/utils/utils.mjs +4 -1
- package/fesm2015/monkey-front-core.mjs +99 -29
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +127 -41
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +2 -0
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +2 -2
- package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +3 -0
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +21 -3
- package/monkey-front-core-0.0.153.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.150.tgz +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
1
2
|
import { MonkeyEcxRequestQueue } from '../request-queue';
|
|
2
3
|
export interface MonkeyEcxRequestSchedule {
|
|
3
4
|
id?: string;
|
|
@@ -6,6 +7,7 @@ export interface MonkeyEcxRequestSchedule {
|
|
|
6
7
|
params?: any;
|
|
7
8
|
data?: any;
|
|
8
9
|
action(data: any, sch: MonkeyEcxRequestSchedule): void;
|
|
10
|
+
errorAction?(data: any, sch: MonkeyEcxRequestSchedule, err?: HttpErrorResponse): void;
|
|
9
11
|
queue?: MonkeyEcxRequestQueue;
|
|
10
12
|
interval?: any;
|
|
11
13
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { MonkeyEcxErrorResponse, MonkeyEcxHandledErrorResponse, MonkeyEcxRequestPaged, MonkeyEcxRequestSchedule, MonkeyEcxResponsePaged, MonkeyEcxResponseLinks, MonkeyEcxTokenCredentials, MonkeyEcxTranslateOptions, MonkeyEcxCountrySecurity } from '../../interfaces';
|
|
4
|
+
import { MonkeyEcxErrorResponse, MonkeyEcxHandledErrorResponse, MonkeyEcxRequestPaged, MonkeyEcxRequestSchedule, MonkeyEcxResponsePaged, MonkeyEcxResponseLinks, MonkeyEcxTokenCredentials, MonkeyEcxTranslateOptions, MonkeyEcxCountrySecurity, MonkeyEcxSavedState } from '../../interfaces';
|
|
5
5
|
import { MonkeyEcxTokenStorageService } from '../storage/monkeyecx-token-storage.service';
|
|
6
6
|
import { MonkeyEcxRequestScheduleService } from '../schedules/monkeyecx-request-schedule.service';
|
|
7
7
|
import { MonkeyEcxRequestQueueHandlingService } from '../request-queue/monkeyecx-request-queue-handling.service';
|
|
8
8
|
import { MonkeyEcxFeatureToggleService } from '../config/monkeyecx-feature-toggle.service';
|
|
9
9
|
import { MonkeyEcxService } from '../monkeyecx-service.service';
|
|
10
|
-
import { MonkeyEcxSavedState } from '../../interfaces';
|
|
11
10
|
export declare class MonkeyEcxCommonsService {
|
|
12
11
|
monkeyecxService?: MonkeyEcxService | undefined;
|
|
13
12
|
tokenStorage?: MonkeyEcxTokenStorageService | undefined;
|
|
@@ -36,6 +35,7 @@ export declare class MonkeyEcxCommonsService {
|
|
|
36
35
|
__onSearchChanged$: BehaviorSubject<any>;
|
|
37
36
|
__onDataChanged$: BehaviorSubject<any>;
|
|
38
37
|
__onLoadingInProgress$: BehaviorSubject<any>;
|
|
38
|
+
__onUploadInProgress$: BehaviorSubject<any>;
|
|
39
39
|
__onDataDeleted$: BehaviorSubject<any>;
|
|
40
40
|
__onErrorChanged$: BehaviorSubject<any>;
|
|
41
41
|
__onGovernmentIdDataChanged$: BehaviorSubject<any>;
|
|
@@ -2,9 +2,12 @@ import { MonkeyEcxRequestSchedule } from '../../interfaces';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MonkeyEcxLoggedHandlingService {
|
|
4
4
|
private schedules;
|
|
5
|
+
private genericSchedules;
|
|
5
6
|
constructor();
|
|
6
7
|
private destroySchedule;
|
|
8
|
+
private destroyGenericSchedule;
|
|
7
9
|
addSchedule(sch: MonkeyEcxRequestSchedule[]): void;
|
|
10
|
+
addGenericSchedule(sch: MonkeyEcxRequestSchedule[]): void;
|
|
8
11
|
destroy(): void;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxLoggedHandlingService, never>;
|
|
10
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxLoggedHandlingService>;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { MonkeyEcxRequestSchedule } from '../../interfaces';
|
|
1
3
|
import { MonkeyEcxService } from '../monkeyecx-service.service';
|
|
2
4
|
import { MonkeyEcxLoggedHandlingService } from '../logged';
|
|
3
|
-
import { MonkeyEcxRequestSchedule } from '../../interfaces';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class MonkeyEcxRequestScheduleService {
|
|
6
7
|
monkeyecxService: MonkeyEcxService;
|
|
7
|
-
private
|
|
8
|
+
private monkeyLoggedHandlingService;
|
|
8
9
|
private schedule;
|
|
9
|
-
|
|
10
|
+
private genericSchedule;
|
|
11
|
+
constructor(monkeyecxService: MonkeyEcxService, monkeyLoggedHandlingService: MonkeyEcxLoggedHandlingService);
|
|
10
12
|
private addToSchedule;
|
|
13
|
+
private addToGenericSchedule;
|
|
11
14
|
private removeFromSchedule;
|
|
15
|
+
private removeFromGenericSchedule;
|
|
12
16
|
private removeFromScheduleById;
|
|
13
17
|
private doCall;
|
|
18
|
+
private doGenericCall;
|
|
14
19
|
setSchedule(q: MonkeyEcxRequestSchedule, delay?: number): {
|
|
15
20
|
id: string;
|
|
16
21
|
interval: number;
|
|
@@ -19,9 +24,22 @@ export declare class MonkeyEcxRequestScheduleService {
|
|
|
19
24
|
params?: any;
|
|
20
25
|
data?: any;
|
|
21
26
|
action(data: any, sch: MonkeyEcxRequestSchedule): void;
|
|
27
|
+
errorAction?(data: any, sch: MonkeyEcxRequestSchedule, err?: HttpErrorResponse | undefined): void;
|
|
28
|
+
queue?: import("../../interfaces").MonkeyEcxRequestQueue | undefined;
|
|
29
|
+
};
|
|
30
|
+
setGenericSchedule(q: MonkeyEcxRequestSchedule, delay?: number): {
|
|
31
|
+
id: string;
|
|
32
|
+
interval: number;
|
|
33
|
+
url: string;
|
|
34
|
+
method: string;
|
|
35
|
+
params?: any;
|
|
36
|
+
data?: any;
|
|
37
|
+
action(data: any, sch: MonkeyEcxRequestSchedule): void;
|
|
38
|
+
errorAction?(data: any, sch: MonkeyEcxRequestSchedule, err?: HttpErrorResponse | undefined): void;
|
|
22
39
|
queue?: import("../../interfaces").MonkeyEcxRequestQueue | undefined;
|
|
23
40
|
};
|
|
24
41
|
removeSchedule(q: MonkeyEcxRequestSchedule): void;
|
|
42
|
+
removeGenericSchedule(q: MonkeyEcxRequestSchedule): void;
|
|
25
43
|
removeScheduleById(id: string): void;
|
|
26
44
|
getScheduleById(id: string): any;
|
|
27
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxRequestScheduleService, never>;
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|