@fctc/interface-logic 1.0.1 → 1.0.3
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/base-model-type-DvO53Lwi.d.mts +7 -0
- package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
- package/dist/config.d.mts +16 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +2355 -0
- package/dist/config.mjs +2318 -0
- package/dist/constants.d.mts +128 -0
- package/dist/constants.d.ts +128 -0
- package/dist/constants.js +202 -0
- package/dist/constants.mjs +163 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +41 -0
- package/dist/environment.d.ts +41 -0
- package/dist/environment.js +3061 -0
- package/dist/environment.mjs +3021 -0
- package/dist/hook.d.mts +292 -0
- package/dist/hook.d.ts +292 -0
- package/dist/hook.js +5683 -0
- package/dist/hook.mjs +5587 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +1 -1389
- package/dist/index.d.ts +1 -1389
- package/dist/index.js +0 -6856
- package/dist/index.mjs +0 -6629
- package/dist/model.d.mts +35 -0
- package/dist/model.d.ts +35 -0
- package/dist/model.js +3320 -0
- package/dist/model.mjs +3281 -0
- package/dist/provider.d.mts +15 -0
- package/dist/provider.d.ts +15 -0
- package/dist/provider.js +6566 -0
- package/dist/provider.mjs +6550 -0
- package/dist/services.d.mts +224 -0
- package/dist/services.d.ts +224 -0
- package/dist/services.js +4477 -0
- package/dist/services.mjs +4432 -0
- package/dist/session-storage-CxkkEmQh.d.mts +15 -0
- package/dist/session-storage-CxkkEmQh.d.ts +15 -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/types.d.mts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +0 -0
- package/dist/use-get-selection-QZu1jKqa.d.mts +15 -0
- package/dist/use-get-selection-QZu1jKqa.d.ts +15 -0
- package/dist/utils.d.mts +87 -0
- package/dist/utils.d.ts +87 -0
- package/dist/utils.js +2947 -0
- package/dist/utils.mjs +2881 -0
- package/dist/view-type-y6vtF3wg.d.mts +106 -0
- package/dist/view-type-y6vtF3wg.d.ts +106 -0
- package/package.json +55 -13
@@ -0,0 +1,106 @@
|
|
1
|
+
interface Specification {
|
2
|
+
[key: string]: any;
|
3
|
+
}
|
4
|
+
interface ContextApi {
|
5
|
+
[key: string]: any;
|
6
|
+
}
|
7
|
+
interface GetAllParams {
|
8
|
+
model?: string;
|
9
|
+
ids?: number[];
|
10
|
+
specification: Specification;
|
11
|
+
domain?: any[];
|
12
|
+
offset?: number;
|
13
|
+
sort: any;
|
14
|
+
fields: any;
|
15
|
+
groupby: any;
|
16
|
+
context?: ContextApi;
|
17
|
+
limit?: number;
|
18
|
+
}
|
19
|
+
interface GetListParams {
|
20
|
+
model: string;
|
21
|
+
ids?: number[];
|
22
|
+
specification?: Specification;
|
23
|
+
domain?: any[];
|
24
|
+
offset?: number;
|
25
|
+
order?: string;
|
26
|
+
context?: ContextApi;
|
27
|
+
limit?: number;
|
28
|
+
}
|
29
|
+
interface GetDetailParams {
|
30
|
+
ids?: number[];
|
31
|
+
model?: string;
|
32
|
+
specification?: Specification;
|
33
|
+
context?: ContextApi;
|
34
|
+
}
|
35
|
+
interface SaveParams {
|
36
|
+
model: string;
|
37
|
+
ids?: number[] | [];
|
38
|
+
data?: Record<string, any>;
|
39
|
+
specification?: Specification;
|
40
|
+
context?: ContextApi;
|
41
|
+
}
|
42
|
+
interface DeleteParams {
|
43
|
+
ids?: number[];
|
44
|
+
model: string;
|
45
|
+
}
|
46
|
+
interface OnChangeParams {
|
47
|
+
ids?: number[];
|
48
|
+
model: string;
|
49
|
+
object?: Record<string, any>;
|
50
|
+
specification: Specification;
|
51
|
+
context?: ContextApi;
|
52
|
+
fieldChange?: string[];
|
53
|
+
}
|
54
|
+
interface ViewData {
|
55
|
+
models?: {
|
56
|
+
[key: string]: {
|
57
|
+
[key: string]: {
|
58
|
+
type: string;
|
59
|
+
relation?: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
};
|
63
|
+
}
|
64
|
+
|
65
|
+
interface LoginCredentialBody {
|
66
|
+
email: string;
|
67
|
+
password: string;
|
68
|
+
path?: string;
|
69
|
+
}
|
70
|
+
interface ResetPasswordRequest {
|
71
|
+
password: string;
|
72
|
+
confirmPassword: string;
|
73
|
+
}
|
74
|
+
interface UpdatePasswordRequest {
|
75
|
+
newPassword: string;
|
76
|
+
oldPassword: string;
|
77
|
+
}
|
78
|
+
interface ForgotPasswordBody {
|
79
|
+
data: ResetPasswordRequest;
|
80
|
+
token: string | null;
|
81
|
+
}
|
82
|
+
interface updatePasswordBody {
|
83
|
+
data: UpdatePasswordRequest;
|
84
|
+
token: string | null;
|
85
|
+
}
|
86
|
+
interface SocialTokenBody {
|
87
|
+
state: object;
|
88
|
+
access_token: string;
|
89
|
+
db: string;
|
90
|
+
}
|
91
|
+
|
92
|
+
type View = [number | boolean, string];
|
93
|
+
type Option = {
|
94
|
+
action_id?: number;
|
95
|
+
load_filters?: boolean;
|
96
|
+
toolbar?: boolean;
|
97
|
+
};
|
98
|
+
interface GetViewParams {
|
99
|
+
model?: string;
|
100
|
+
views?: View[];
|
101
|
+
context?: Record<string, any>;
|
102
|
+
options?: Option;
|
103
|
+
aid?: number | string | null | boolean;
|
104
|
+
}
|
105
|
+
|
106
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, View as V, GetDetailParams as a, GetListParams as b, GetViewParams as c, SocialTokenBody as d, Specification as e, ViewData as f, updatePasswordBody as u };
|
@@ -0,0 +1,106 @@
|
|
1
|
+
interface Specification {
|
2
|
+
[key: string]: any;
|
3
|
+
}
|
4
|
+
interface ContextApi {
|
5
|
+
[key: string]: any;
|
6
|
+
}
|
7
|
+
interface GetAllParams {
|
8
|
+
model?: string;
|
9
|
+
ids?: number[];
|
10
|
+
specification: Specification;
|
11
|
+
domain?: any[];
|
12
|
+
offset?: number;
|
13
|
+
sort: any;
|
14
|
+
fields: any;
|
15
|
+
groupby: any;
|
16
|
+
context?: ContextApi;
|
17
|
+
limit?: number;
|
18
|
+
}
|
19
|
+
interface GetListParams {
|
20
|
+
model: string;
|
21
|
+
ids?: number[];
|
22
|
+
specification?: Specification;
|
23
|
+
domain?: any[];
|
24
|
+
offset?: number;
|
25
|
+
order?: string;
|
26
|
+
context?: ContextApi;
|
27
|
+
limit?: number;
|
28
|
+
}
|
29
|
+
interface GetDetailParams {
|
30
|
+
ids?: number[];
|
31
|
+
model?: string;
|
32
|
+
specification?: Specification;
|
33
|
+
context?: ContextApi;
|
34
|
+
}
|
35
|
+
interface SaveParams {
|
36
|
+
model: string;
|
37
|
+
ids?: number[] | [];
|
38
|
+
data?: Record<string, any>;
|
39
|
+
specification?: Specification;
|
40
|
+
context?: ContextApi;
|
41
|
+
}
|
42
|
+
interface DeleteParams {
|
43
|
+
ids?: number[];
|
44
|
+
model: string;
|
45
|
+
}
|
46
|
+
interface OnChangeParams {
|
47
|
+
ids?: number[];
|
48
|
+
model: string;
|
49
|
+
object?: Record<string, any>;
|
50
|
+
specification: Specification;
|
51
|
+
context?: ContextApi;
|
52
|
+
fieldChange?: string[];
|
53
|
+
}
|
54
|
+
interface ViewData {
|
55
|
+
models?: {
|
56
|
+
[key: string]: {
|
57
|
+
[key: string]: {
|
58
|
+
type: string;
|
59
|
+
relation?: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
};
|
63
|
+
}
|
64
|
+
|
65
|
+
interface LoginCredentialBody {
|
66
|
+
email: string;
|
67
|
+
password: string;
|
68
|
+
path?: string;
|
69
|
+
}
|
70
|
+
interface ResetPasswordRequest {
|
71
|
+
password: string;
|
72
|
+
confirmPassword: string;
|
73
|
+
}
|
74
|
+
interface UpdatePasswordRequest {
|
75
|
+
newPassword: string;
|
76
|
+
oldPassword: string;
|
77
|
+
}
|
78
|
+
interface ForgotPasswordBody {
|
79
|
+
data: ResetPasswordRequest;
|
80
|
+
token: string | null;
|
81
|
+
}
|
82
|
+
interface updatePasswordBody {
|
83
|
+
data: UpdatePasswordRequest;
|
84
|
+
token: string | null;
|
85
|
+
}
|
86
|
+
interface SocialTokenBody {
|
87
|
+
state: object;
|
88
|
+
access_token: string;
|
89
|
+
db: string;
|
90
|
+
}
|
91
|
+
|
92
|
+
type View = [number | boolean, string];
|
93
|
+
type Option = {
|
94
|
+
action_id?: number;
|
95
|
+
load_filters?: boolean;
|
96
|
+
toolbar?: boolean;
|
97
|
+
};
|
98
|
+
interface GetViewParams {
|
99
|
+
model?: string;
|
100
|
+
views?: View[];
|
101
|
+
context?: Record<string, any>;
|
102
|
+
options?: Option;
|
103
|
+
aid?: number | string | null | boolean;
|
104
|
+
}
|
105
|
+
|
106
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, View as V, GetDetailParams as a, GetListParams as b, GetViewParams as c, SocialTokenBody as d, Specification as e, ViewData as f, updatePasswordBody as u };
|
package/package.json
CHANGED
@@ -1,23 +1,67 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fctc/interface-logic",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.3",
|
4
|
+
"types": "dist/index.d.ts",
|
4
5
|
"main": "dist/index.cjs",
|
5
6
|
"module": "dist/index.mjs",
|
6
|
-
"types": "dist/index.d.ts",
|
7
7
|
"exports": {
|
8
8
|
".": {
|
9
|
+
"types": "./dist/index.d.ts",
|
9
10
|
"import": "./dist/index.mjs",
|
10
11
|
"require": "./dist/index.cjs"
|
11
12
|
},
|
12
|
-
"./
|
13
|
-
"
|
14
|
-
"
|
13
|
+
"./config": {
|
14
|
+
"types": "./dist/index.d.ts",
|
15
|
+
"import": "./dist/config.mjs",
|
16
|
+
"require": "./dist/config.cjs"
|
17
|
+
},
|
18
|
+
"./constants": {
|
19
|
+
"types": "./dist/constants.d.ts",
|
20
|
+
"import": "./dist/constants.mjs",
|
21
|
+
"require": "./dist/constants.cjs"
|
22
|
+
},
|
23
|
+
"./environment": {
|
24
|
+
"types": "./dist/environment.d.ts",
|
25
|
+
"import": "./dist/environment.mjs",
|
26
|
+
"require": "./dist/environment.cjs"
|
27
|
+
},
|
28
|
+
"./hook": {
|
29
|
+
"types": "./dist/hook.d.ts",
|
30
|
+
"import": "./dist/hook.mjs",
|
31
|
+
"require": "./dist/hook.cjs"
|
32
|
+
},
|
33
|
+
"./model": {
|
34
|
+
"types": "./dist/model.d.ts",
|
35
|
+
"import": "./dist/model.mjs",
|
36
|
+
"require": "./dist/model.cjs"
|
15
37
|
},
|
16
|
-
"./
|
17
|
-
"
|
18
|
-
"
|
38
|
+
"./provider": {
|
39
|
+
"types": "./dist/provider.d.ts",
|
40
|
+
"import": "./dist/provider.mjs",
|
41
|
+
"require": "./dist/provider.cjs"
|
42
|
+
},
|
43
|
+
"./services": {
|
44
|
+
"types": "./dist/services.d.ts",
|
45
|
+
"import": "./dist/services.mjs",
|
46
|
+
"require": "./dist/services.cjs"
|
47
|
+
},
|
48
|
+
"./store": {
|
49
|
+
"types": "./dist/store.d.ts",
|
50
|
+
"import": "./dist/store.mjs",
|
51
|
+
"require": "./dist/store.cjs"
|
52
|
+
},
|
53
|
+
"./types": {
|
54
|
+
"types": "./dist/types.d.ts",
|
55
|
+
"import": "./dist/types.mjs",
|
56
|
+
"require": "./dist/types.cjs"
|
57
|
+
},
|
58
|
+
"./utils": {
|
59
|
+
"types": "./dist/utils.d.ts",
|
60
|
+
"import": "./dist/utils.mjs",
|
61
|
+
"require": "./dist/utils.cjs"
|
19
62
|
}
|
20
63
|
},
|
64
|
+
"imports": {},
|
21
65
|
"files": [
|
22
66
|
"dist"
|
23
67
|
],
|
@@ -28,15 +72,13 @@
|
|
28
72
|
"dependencies": {
|
29
73
|
"@reduxjs/toolkit": "^2.8.2",
|
30
74
|
"@tanstack/react-query": "^5.83.0",
|
31
|
-
"@types/react": "^19.1.8",
|
32
75
|
"axios": "^1.11.0",
|
33
76
|
"moment": "^2.30.1",
|
34
|
-
"react": "
|
35
|
-
"react-dom": "18.0.0",
|
36
|
-
"react-redux": "^9.2.0",
|
37
|
-
"tslib": "^2.8.1"
|
77
|
+
"react-redux": "^9.2.0"
|
38
78
|
},
|
39
79
|
"devDependencies": {
|
80
|
+
"@types/react": "^18.3.1",
|
81
|
+
"react": "18.0.0",
|
40
82
|
"jest": "^29.7.0",
|
41
83
|
"tsup": "^8.0.0",
|
42
84
|
"typescript": "^5.8.2"
|