halov 0.26.519 → 0.26.521
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/dist/composables/httpTools.d.ts +5 -0
- package/dist/halov.es.js +1360 -1359
- package/dist/halov.umd.cjs +5 -5
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ApiResultT } from '../types/ApiResult';
|
|
2
2
|
import { Action, ActionT } from '../types/HaloTypes';
|
|
3
|
+
export type ExceptionCallback = (ex: any) => boolean | undefined;
|
|
3
4
|
export interface HttpPostOptions {
|
|
4
5
|
url: string;
|
|
5
6
|
data?: object;
|
|
6
7
|
success?: ActionT<any>;
|
|
7
8
|
fail?: ActionT<ApiResultT<any>>;
|
|
8
9
|
callback?: ActionT<ApiResultT<any>>;
|
|
10
|
+
exception?: ExceptionCallback;
|
|
9
11
|
successMessage?: string | boolean;
|
|
10
12
|
failMessage?: string;
|
|
11
13
|
mutexKey?: string | boolean;
|
|
@@ -14,6 +16,7 @@ export interface HttpPostOptions {
|
|
|
14
16
|
export interface HttpGetOptions<T> {
|
|
15
17
|
url: string;
|
|
16
18
|
callback?: ActionT<T | undefined>;
|
|
19
|
+
exception?: ExceptionCallback;
|
|
17
20
|
loadingStatus?: ActionT<boolean>;
|
|
18
21
|
quiet?: boolean;
|
|
19
22
|
}
|
|
@@ -22,6 +25,7 @@ export interface OpenFileOptions {
|
|
|
22
25
|
contentType?: string;
|
|
23
26
|
method?: string;
|
|
24
27
|
loadingStatus?: ActionT<boolean>;
|
|
28
|
+
exception?: ExceptionCallback;
|
|
25
29
|
callback?: Action;
|
|
26
30
|
}
|
|
27
31
|
export interface DownloadFileOptions {
|
|
@@ -29,6 +33,7 @@ export interface DownloadFileOptions {
|
|
|
29
33
|
filename?: string;
|
|
30
34
|
contentType?: string;
|
|
31
35
|
method?: string;
|
|
36
|
+
exception?: ExceptionCallback;
|
|
32
37
|
loadingStatus?: ActionT<boolean>;
|
|
33
38
|
callback?: Action;
|
|
34
39
|
}
|