@fctc/interface-logic 1.8.2 → 1.8.4
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/configs.d.mts +12 -0
- package/dist/configs.d.ts +12 -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 +53 -0
- package/dist/environment.d.ts +53 -0
- package/dist/environment.js +3080 -0
- package/dist/environment.mjs +3042 -0
- package/dist/hooks.d.mts +359 -0
- package/dist/hooks.d.ts +359 -0
- package/dist/{index.js → hooks.js} +203 -1435
- package/dist/{index.mjs → hooks.mjs} +159 -1251
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +16 -0
- package/dist/provider.js +3600 -0
- package/dist/provider.mjs +3561 -0
- package/dist/services.d.mts +255 -0
- package/dist/services.d.ts +255 -0
- package/dist/services.js +4653 -0
- package/dist/services.mjs +4608 -0
- package/dist/store.d.mts +377 -0
- package/dist/store.d.ts +377 -0
- package/dist/store.js +814 -0
- package/dist/store.mjs +709 -0
- package/dist/types.d.mts +17 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +0 -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/dist/view-type-D8ukwj_2.d.mts +113 -0
- package/dist/view-type-D8ukwj_2.d.ts +113 -0
- package/package.json +1 -1
- package/dist/index.d.mts +0 -1681
- package/dist/index.d.ts +0 -1681
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
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 GetAllParams {
|
|
35
|
+
model?: string;
|
|
36
|
+
ids?: number[];
|
|
37
|
+
specification: Specification;
|
|
38
|
+
domain?: any[];
|
|
39
|
+
offset?: number;
|
|
40
|
+
sort: any;
|
|
41
|
+
fields: any;
|
|
42
|
+
groupby: any;
|
|
43
|
+
context?: ContextApi;
|
|
44
|
+
limit?: number;
|
|
45
|
+
}
|
|
46
|
+
interface GetListParams {
|
|
47
|
+
model: string;
|
|
48
|
+
ids?: number[];
|
|
49
|
+
specification?: Specification;
|
|
50
|
+
domain?: any[];
|
|
51
|
+
offset?: number;
|
|
52
|
+
order?: string;
|
|
53
|
+
context?: ContextApi;
|
|
54
|
+
limit?: number;
|
|
55
|
+
}
|
|
56
|
+
interface GetDetailParams {
|
|
57
|
+
ids?: number[];
|
|
58
|
+
model?: string;
|
|
59
|
+
specification?: Specification;
|
|
60
|
+
context?: ContextApi;
|
|
61
|
+
}
|
|
62
|
+
interface SaveParams {
|
|
63
|
+
model: string;
|
|
64
|
+
ids?: number[] | [];
|
|
65
|
+
data?: Record<string, any>;
|
|
66
|
+
specification?: Specification;
|
|
67
|
+
context?: ContextApi;
|
|
68
|
+
path?: string;
|
|
69
|
+
}
|
|
70
|
+
interface DeleteParams {
|
|
71
|
+
ids?: number[];
|
|
72
|
+
model: string;
|
|
73
|
+
}
|
|
74
|
+
interface OnChangeParams {
|
|
75
|
+
ids?: number[];
|
|
76
|
+
model: string;
|
|
77
|
+
object?: Record<string, any>;
|
|
78
|
+
specification: Specification;
|
|
79
|
+
context?: ContextApi;
|
|
80
|
+
fieldChange?: string[];
|
|
81
|
+
}
|
|
82
|
+
interface ViewData {
|
|
83
|
+
models?: {
|
|
84
|
+
[key: string]: {
|
|
85
|
+
[key: string]: {
|
|
86
|
+
type: string;
|
|
87
|
+
relation?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
type GetSelectionType = {
|
|
93
|
+
domain: any;
|
|
94
|
+
context: any;
|
|
95
|
+
model: string;
|
|
96
|
+
specification?: any;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
type View = [number | boolean, string];
|
|
100
|
+
type Option = {
|
|
101
|
+
action_id?: number;
|
|
102
|
+
load_filters?: boolean;
|
|
103
|
+
toolbar?: boolean;
|
|
104
|
+
};
|
|
105
|
+
interface GetViewParams {
|
|
106
|
+
model?: string;
|
|
107
|
+
views?: View[];
|
|
108
|
+
context?: Record<string, any>;
|
|
109
|
+
options?: Option;
|
|
110
|
+
aid?: number | string | null | boolean;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetSelectionType as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SocialTokenBody as S, UpdatePasswordRequest as U, ViewData as V, GetViewParams as a, GetListParams as b, GetDetailParams as c, SaveParams as d, GetAllParams as e, Specification as f, View as g, updatePasswordBody as u };
|
|
@@ -0,0 +1,113 @@
|
|
|
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 GetAllParams {
|
|
35
|
+
model?: string;
|
|
36
|
+
ids?: number[];
|
|
37
|
+
specification: Specification;
|
|
38
|
+
domain?: any[];
|
|
39
|
+
offset?: number;
|
|
40
|
+
sort: any;
|
|
41
|
+
fields: any;
|
|
42
|
+
groupby: any;
|
|
43
|
+
context?: ContextApi;
|
|
44
|
+
limit?: number;
|
|
45
|
+
}
|
|
46
|
+
interface GetListParams {
|
|
47
|
+
model: string;
|
|
48
|
+
ids?: number[];
|
|
49
|
+
specification?: Specification;
|
|
50
|
+
domain?: any[];
|
|
51
|
+
offset?: number;
|
|
52
|
+
order?: string;
|
|
53
|
+
context?: ContextApi;
|
|
54
|
+
limit?: number;
|
|
55
|
+
}
|
|
56
|
+
interface GetDetailParams {
|
|
57
|
+
ids?: number[];
|
|
58
|
+
model?: string;
|
|
59
|
+
specification?: Specification;
|
|
60
|
+
context?: ContextApi;
|
|
61
|
+
}
|
|
62
|
+
interface SaveParams {
|
|
63
|
+
model: string;
|
|
64
|
+
ids?: number[] | [];
|
|
65
|
+
data?: Record<string, any>;
|
|
66
|
+
specification?: Specification;
|
|
67
|
+
context?: ContextApi;
|
|
68
|
+
path?: string;
|
|
69
|
+
}
|
|
70
|
+
interface DeleteParams {
|
|
71
|
+
ids?: number[];
|
|
72
|
+
model: string;
|
|
73
|
+
}
|
|
74
|
+
interface OnChangeParams {
|
|
75
|
+
ids?: number[];
|
|
76
|
+
model: string;
|
|
77
|
+
object?: Record<string, any>;
|
|
78
|
+
specification: Specification;
|
|
79
|
+
context?: ContextApi;
|
|
80
|
+
fieldChange?: string[];
|
|
81
|
+
}
|
|
82
|
+
interface ViewData {
|
|
83
|
+
models?: {
|
|
84
|
+
[key: string]: {
|
|
85
|
+
[key: string]: {
|
|
86
|
+
type: string;
|
|
87
|
+
relation?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
type GetSelectionType = {
|
|
93
|
+
domain: any;
|
|
94
|
+
context: any;
|
|
95
|
+
model: string;
|
|
96
|
+
specification?: any;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
type View = [number | boolean, string];
|
|
100
|
+
type Option = {
|
|
101
|
+
action_id?: number;
|
|
102
|
+
load_filters?: boolean;
|
|
103
|
+
toolbar?: boolean;
|
|
104
|
+
};
|
|
105
|
+
interface GetViewParams {
|
|
106
|
+
model?: string;
|
|
107
|
+
views?: View[];
|
|
108
|
+
context?: Record<string, any>;
|
|
109
|
+
options?: Option;
|
|
110
|
+
aid?: number | string | null | boolean;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetSelectionType as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SocialTokenBody as S, UpdatePasswordRequest as U, ViewData as V, GetViewParams as a, GetListParams as b, GetDetailParams as c, SaveParams as d, GetAllParams as e, Specification as f, View as g, updatePasswordBody as u };
|