monkey-front-core 0.0.46 → 0.0.50
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/index.mjs +2 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +2 -0
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +8 -3
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +13 -6
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +8 -8
- package/esm2020/lib/core/utils/validators.mjs +26 -13
- package/fesm2015/monkey-front-core.mjs +51 -25
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +52 -27
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/index.d.ts +1 -0
- package/lib/core/interfaces/monkeyecx-config.d.ts +8 -0
- package/lib/core/interfaces/monkeyecx-response-links.d.ts +11 -0
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +2 -1
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +3 -2
- package/lib/core/utils/validators.d.ts +2 -0
- package/monkey-front-core-0.0.50.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.46.tgz +0 -0
|
@@ -16,6 +16,7 @@ export * from './monkeyecx-program';
|
|
|
16
16
|
export * from './monkeyecx-releases';
|
|
17
17
|
export * from './monkeyecx-request-in-progress';
|
|
18
18
|
export * from './monkeyecx-request-paged';
|
|
19
|
+
export * from './monkeyecx-response-links';
|
|
19
20
|
export * from './monkeyecx-response-paged';
|
|
20
21
|
export * from './monkeyecx-service-credentials';
|
|
21
22
|
export * from './monkeyecx-support-options';
|
|
@@ -35,6 +35,13 @@ export interface MonkeyEcxConfigProgram {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
+
export interface MonkeyEcxConfigMarket {
|
|
39
|
+
daysToSearch: number;
|
|
40
|
+
operation: {
|
|
41
|
+
currentDaysToSearch: number;
|
|
42
|
+
maximumDaysToSearch: number;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
38
45
|
export interface MonkeyEcxConfigTheme {
|
|
39
46
|
logos: {
|
|
40
47
|
favicon: string;
|
|
@@ -67,6 +74,7 @@ export interface MonkeyEcxConfigLogs {
|
|
|
67
74
|
}
|
|
68
75
|
export interface MonkeyEcxConfig {
|
|
69
76
|
program?: MonkeyEcxConfigProgram;
|
|
77
|
+
market?: MonkeyEcxConfigMarket;
|
|
70
78
|
theme?: MonkeyEcxConfigTheme;
|
|
71
79
|
support?: MonkeyEcxConfigSupport;
|
|
72
80
|
i18n?: MonkeyEcxConfigi18n;
|
|
@@ -1,7 +1,7 @@
|
|
|
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, MonkeyEcxTokenCredentials, MonkeyEcxTranslateOptions } from '../../interfaces';
|
|
4
|
+
import { MonkeyEcxErrorResponse, MonkeyEcxHandledErrorResponse, MonkeyEcxRequestPaged, MonkeyEcxRequestSchedule, MonkeyEcxResponsePaged, MonkeyEcxResponseLinks, MonkeyEcxTokenCredentials, MonkeyEcxTranslateOptions } 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';
|
|
@@ -28,6 +28,7 @@ export declare class MonkeyEcxCommonsService {
|
|
|
28
28
|
__error: MonkeyEcxErrorResponse | null;
|
|
29
29
|
__handledError: MonkeyEcxHandledErrorResponse | null;
|
|
30
30
|
__page: MonkeyEcxResponsePaged | null;
|
|
31
|
+
__links: MonkeyEcxResponseLinks | null;
|
|
31
32
|
__search: any;
|
|
32
33
|
__requestPaged: MonkeyEcxRequestPaged | null;
|
|
33
34
|
__onSearchChanged$: BehaviorSubject<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { MonkeyEcxRequestPaged } from '../../interfaces';
|
|
1
|
+
import { MonkeyEcxRequestPaged } from '../../interfaces/monkeyecx-request-paged';
|
|
2
2
|
export declare class MonkeyEcxRequestPagedHandling {
|
|
3
3
|
private url?;
|
|
4
4
|
private pagedParams;
|
|
5
|
-
|
|
5
|
+
private links;
|
|
6
|
+
constructor(_url?: string, _pagedParams?: MonkeyEcxRequestPaged, _links?: any);
|
|
6
7
|
private handlePagedValuesFromApi;
|
|
7
8
|
private getUrlParams;
|
|
8
9
|
getRequestWithPagedParams(): string;
|
|
@@ -10,6 +10,7 @@ export declare function comboValidator(control: AbstractControl): ValidationErro
|
|
|
10
10
|
export declare function zipCodeValidator(control: AbstractControl): ValidationErrors | null;
|
|
11
11
|
export declare function documentValidator(control: AbstractControl, country: string): ValidationErrors | null;
|
|
12
12
|
export declare function dateValidator(control: AbstractControl): ValidationErrors | null;
|
|
13
|
+
export declare function valueGreaterThanZero(control: AbstractControl): ValidationErrors | null;
|
|
13
14
|
export declare class Validators {
|
|
14
15
|
static email(control: AbstractControl): ValidationErrors | null;
|
|
15
16
|
static dateRange(control: AbstractControl): ValidationErrors | null;
|
|
@@ -24,4 +25,5 @@ export declare class Validators {
|
|
|
24
25
|
static documentBR(control: AbstractControl): ValidationErrors | null;
|
|
25
26
|
static documentCL(control: AbstractControl): ValidationErrors | null;
|
|
26
27
|
static date(control: AbstractControl): ValidationErrors | null;
|
|
28
|
+
static greaterThanZero(control: AbstractControl): ValidationErrors | null;
|
|
27
29
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|