@fctc/interface-logic 1.3.0 → 1.3.2
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/api-type-cZ3zwGsZ.d.mts +86 -0
- package/dist/api-type-cZ3zwGsZ.d.ts +86 -0
- package/dist/configs.d.mts +15 -0
- package/dist/configs.d.ts +15 -0
- package/dist/configs.js +2386 -0
- package/dist/configs.mjs +2349 -0
- package/dist/constants.d.mts +131 -0
- package/dist/constants.d.ts +131 -0
- package/dist/constants.js +205 -0
- package/dist/constants.mjs +166 -0
- package/dist/environment.d.mts +55 -0
- package/dist/environment.d.ts +55 -0
- package/dist/environment.js +3094 -0
- package/dist/environment.mjs +3054 -0
- package/dist/hooks.d.mts +370 -0
- package/dist/hooks.d.ts +370 -0
- package/dist/{index.js → hooks.js} +10 -1242
- package/dist/{index.mjs → hooks.mjs} +5 -1093
- package/dist/provider.d.mts +15 -0
- package/dist/provider.d.ts +15 -0
- package/dist/provider.js +3603 -0
- package/dist/provider.mjs +3564 -0
- package/dist/services.d.mts +268 -0
- package/dist/services.d.ts +268 -0
- package/dist/services.js +4661 -0
- package/dist/services.mjs +4616 -0
- package/dist/store.d.mts +643 -0
- package/dist/store.d.ts +643 -0
- package/dist/store.js +814 -0
- package/dist/store.mjs +709 -0
- package/dist/utils.d.mts +93 -0
- package/dist/utils.d.ts +93 -0
- package/dist/utils.js +2962 -0
- package/dist/utils.mjs +2896 -0
- package/package.json +6 -17
- package/dist/index.d.mts +0 -1709
- package/dist/index.d.ts +0 -1709
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
interface LoginCredentialBody {
|
|
2
|
+
email: string;
|
|
3
|
+
password: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ResetPasswordRequest {
|
|
7
|
+
password: string;
|
|
8
|
+
confirmPassword: string;
|
|
9
|
+
}
|
|
10
|
+
interface UpdatePasswordRequest {
|
|
11
|
+
newPassword: string;
|
|
12
|
+
oldPassword: string;
|
|
13
|
+
}
|
|
14
|
+
interface ForgotPasswordBody {
|
|
15
|
+
data: ResetPasswordRequest;
|
|
16
|
+
token: string | null;
|
|
17
|
+
}
|
|
18
|
+
interface updatePasswordBody {
|
|
19
|
+
data: UpdatePasswordRequest;
|
|
20
|
+
token: string | null;
|
|
21
|
+
}
|
|
22
|
+
interface SocialTokenBody {
|
|
23
|
+
state: object;
|
|
24
|
+
access_token: string;
|
|
25
|
+
db: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface Specification {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
interface ContextApi {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
interface GetListParams {
|
|
35
|
+
model: string;
|
|
36
|
+
ids?: number[];
|
|
37
|
+
specification?: Specification;
|
|
38
|
+
domain?: any[];
|
|
39
|
+
offset?: number;
|
|
40
|
+
order?: string;
|
|
41
|
+
context?: ContextApi;
|
|
42
|
+
limit?: number;
|
|
43
|
+
}
|
|
44
|
+
interface GetDetailParams {
|
|
45
|
+
ids?: number[];
|
|
46
|
+
model?: string;
|
|
47
|
+
specification?: Specification;
|
|
48
|
+
context?: ContextApi;
|
|
49
|
+
}
|
|
50
|
+
interface SaveParams {
|
|
51
|
+
model: string;
|
|
52
|
+
ids?: number[] | [];
|
|
53
|
+
data?: Record<string, any>;
|
|
54
|
+
specification?: Specification;
|
|
55
|
+
context?: ContextApi;
|
|
56
|
+
}
|
|
57
|
+
interface DeleteParams {
|
|
58
|
+
ids?: number[];
|
|
59
|
+
model: string;
|
|
60
|
+
}
|
|
61
|
+
interface OnChangeParams {
|
|
62
|
+
ids?: number[];
|
|
63
|
+
model: string;
|
|
64
|
+
object?: Record<string, any>;
|
|
65
|
+
specification: Specification;
|
|
66
|
+
context?: ContextApi;
|
|
67
|
+
fieldChange?: string[];
|
|
68
|
+
}
|
|
69
|
+
interface ViewData {
|
|
70
|
+
models?: {
|
|
71
|
+
[key: string]: {
|
|
72
|
+
[key: string]: {
|
|
73
|
+
type: string;
|
|
74
|
+
relation?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
type GetSelectionType = {
|
|
80
|
+
domain: any;
|
|
81
|
+
context: any;
|
|
82
|
+
model: string;
|
|
83
|
+
specification?: any;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetSelectionType as b, SocialTokenBody as c, updatePasswordBody as u };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
interface LoginCredentialBody {
|
|
2
|
+
email: string;
|
|
3
|
+
password: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ResetPasswordRequest {
|
|
7
|
+
password: string;
|
|
8
|
+
confirmPassword: string;
|
|
9
|
+
}
|
|
10
|
+
interface UpdatePasswordRequest {
|
|
11
|
+
newPassword: string;
|
|
12
|
+
oldPassword: string;
|
|
13
|
+
}
|
|
14
|
+
interface ForgotPasswordBody {
|
|
15
|
+
data: ResetPasswordRequest;
|
|
16
|
+
token: string | null;
|
|
17
|
+
}
|
|
18
|
+
interface updatePasswordBody {
|
|
19
|
+
data: UpdatePasswordRequest;
|
|
20
|
+
token: string | null;
|
|
21
|
+
}
|
|
22
|
+
interface SocialTokenBody {
|
|
23
|
+
state: object;
|
|
24
|
+
access_token: string;
|
|
25
|
+
db: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface Specification {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
interface ContextApi {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
interface GetListParams {
|
|
35
|
+
model: string;
|
|
36
|
+
ids?: number[];
|
|
37
|
+
specification?: Specification;
|
|
38
|
+
domain?: any[];
|
|
39
|
+
offset?: number;
|
|
40
|
+
order?: string;
|
|
41
|
+
context?: ContextApi;
|
|
42
|
+
limit?: number;
|
|
43
|
+
}
|
|
44
|
+
interface GetDetailParams {
|
|
45
|
+
ids?: number[];
|
|
46
|
+
model?: string;
|
|
47
|
+
specification?: Specification;
|
|
48
|
+
context?: ContextApi;
|
|
49
|
+
}
|
|
50
|
+
interface SaveParams {
|
|
51
|
+
model: string;
|
|
52
|
+
ids?: number[] | [];
|
|
53
|
+
data?: Record<string, any>;
|
|
54
|
+
specification?: Specification;
|
|
55
|
+
context?: ContextApi;
|
|
56
|
+
}
|
|
57
|
+
interface DeleteParams {
|
|
58
|
+
ids?: number[];
|
|
59
|
+
model: string;
|
|
60
|
+
}
|
|
61
|
+
interface OnChangeParams {
|
|
62
|
+
ids?: number[];
|
|
63
|
+
model: string;
|
|
64
|
+
object?: Record<string, any>;
|
|
65
|
+
specification: Specification;
|
|
66
|
+
context?: ContextApi;
|
|
67
|
+
fieldChange?: string[];
|
|
68
|
+
}
|
|
69
|
+
interface ViewData {
|
|
70
|
+
models?: {
|
|
71
|
+
[key: string]: {
|
|
72
|
+
[key: string]: {
|
|
73
|
+
type: string;
|
|
74
|
+
relation?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
type GetSelectionType = {
|
|
80
|
+
domain: any;
|
|
81
|
+
context: any;
|
|
82
|
+
model: string;
|
|
83
|
+
specification?: any;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetSelectionType as b, SocialTokenBody as c, updatePasswordBody as u };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnvStore } from './environment.mjs';
|
|
2
|
+
import '@reduxjs/toolkit';
|
|
3
|
+
|
|
4
|
+
declare const axiosClient: {
|
|
5
|
+
init(config: EnvStore): {
|
|
6
|
+
get: (url: string, headers: any) => Promise<any>;
|
|
7
|
+
post: (url: string, body: any, headers: any) => Promise<any>;
|
|
8
|
+
post_excel: (url: string, body: any, headers: any) => Promise<any>;
|
|
9
|
+
put: (url: string, body: any, headers: any) => Promise<any>;
|
|
10
|
+
patch: (url: string, body: any) => Promise<any>;
|
|
11
|
+
delete: (url: string, body: any) => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { axiosClient };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnvStore } from './environment.js';
|
|
2
|
+
import '@reduxjs/toolkit';
|
|
3
|
+
|
|
4
|
+
declare const axiosClient: {
|
|
5
|
+
init(config: EnvStore): {
|
|
6
|
+
get: (url: string, headers: any) => Promise<any>;
|
|
7
|
+
post: (url: string, body: any, headers: any) => Promise<any>;
|
|
8
|
+
post_excel: (url: string, body: any, headers: any) => Promise<any>;
|
|
9
|
+
put: (url: string, body: any, headers: any) => Promise<any>;
|
|
10
|
+
patch: (url: string, body: any) => Promise<any>;
|
|
11
|
+
delete: (url: string, body: any) => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { axiosClient };
|