@fctc/interface-logic 2.2.8 → 2.2.9
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.js +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/hooks.d.mts +2 -7
- package/dist/hooks.d.ts +2 -7
- package/dist/hooks.js +79 -123
- package/dist/hooks.mjs +35 -78
- package/dist/provider.d.mts +8 -8
- package/dist/provider.d.ts +8 -8
- package/dist/provider.js +80 -123
- package/dist/provider.mjs +36 -79
- package/dist/services.d.mts +1 -2
- package/dist/services.d.ts +1 -2
- package/dist/services.js +40 -66
- package/dist/services.mjs +18 -44
- package/package.json +85 -85
package/dist/services.mjs
CHANGED
|
@@ -2894,29 +2894,26 @@ import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
|
2894
2894
|
// src/hooks/form/use-upload-file.ts
|
|
2895
2895
|
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
2896
2896
|
|
|
2897
|
-
// src/hooks/form/use-get-file.ts
|
|
2898
|
-
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
2899
|
-
|
|
2900
2897
|
// src/hooks/model/use-delete.ts
|
|
2901
2898
|
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
2902
2899
|
|
|
2903
2900
|
// src/hooks/model/use-get-all.ts
|
|
2904
|
-
import { useQuery as
|
|
2901
|
+
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
2905
2902
|
|
|
2906
2903
|
// src/hooks/model/use-get-conversion-rate.ts
|
|
2907
|
-
import { useQuery as
|
|
2904
|
+
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
2908
2905
|
|
|
2909
2906
|
// src/hooks/model/use-get-currency.ts
|
|
2910
|
-
import { useQuery as
|
|
2907
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
2911
2908
|
|
|
2912
2909
|
// src/hooks/model/use-get-detail.ts
|
|
2913
2910
|
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
2914
2911
|
|
|
2915
2912
|
// src/hooks/model/use-get-field-onchange.ts
|
|
2916
|
-
import { useQuery as
|
|
2913
|
+
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
2917
2914
|
|
|
2918
2915
|
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2919
|
-
import { useQuery as
|
|
2916
|
+
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
2920
2917
|
|
|
2921
2918
|
// src/hooks/model/use-onchange-form.ts
|
|
2922
2919
|
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
@@ -2940,37 +2937,37 @@ import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
|
2940
2937
|
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
2941
2938
|
|
|
2942
2939
|
// src/hooks/view/use-get-action-detail.ts
|
|
2943
|
-
import { useQuery as
|
|
2940
|
+
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
2944
2941
|
|
|
2945
2942
|
// src/hooks/view/use-get-calendar.ts
|
|
2946
|
-
import { useQuery as
|
|
2943
|
+
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
2947
2944
|
|
|
2948
2945
|
// src/hooks/view/use-get-groups.ts
|
|
2949
|
-
import { useQuery as
|
|
2946
|
+
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
2950
2947
|
|
|
2951
2948
|
// src/hooks/view/use-get-list-data.ts
|
|
2952
|
-
import { useQuery as
|
|
2949
|
+
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
2953
2950
|
|
|
2954
2951
|
// src/hooks/view/use-get-menu.ts
|
|
2955
|
-
import { useQuery as
|
|
2952
|
+
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
2956
2953
|
|
|
2957
2954
|
// src/hooks/view/use-get-print-report.ts
|
|
2958
2955
|
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
2959
2956
|
|
|
2960
2957
|
// src/hooks/view/use-get-progress-bar.ts
|
|
2961
|
-
import { useQuery as
|
|
2958
|
+
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
2962
2959
|
|
|
2963
2960
|
// src/hooks/view/use-get-selection.ts
|
|
2964
|
-
import { useQuery as
|
|
2961
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
2965
2962
|
|
|
2966
2963
|
// src/hooks/view/use-get-view.ts
|
|
2967
|
-
import { useQuery as
|
|
2964
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
2968
2965
|
|
|
2969
2966
|
// src/hooks/view/use-load-action.ts
|
|
2970
2967
|
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
2971
2968
|
|
|
2972
2969
|
// src/hooks/view/use-load-message.ts
|
|
2973
|
-
import { useQuery as
|
|
2970
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
|
2974
2971
|
|
|
2975
2972
|
// src/hooks/view/use-print.ts
|
|
2976
2973
|
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
@@ -2979,7 +2976,7 @@ import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
|
2979
2976
|
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
2980
2977
|
|
|
2981
2978
|
// src/hooks/view/use-resequence.ts
|
|
2982
|
-
import { useQuery as
|
|
2979
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
|
2983
2980
|
|
|
2984
2981
|
// src/hooks/view/use-run-action.ts
|
|
2985
2982
|
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
@@ -3705,28 +3702,6 @@ function useFormService() {
|
|
|
3705
3702
|
},
|
|
3706
3703
|
[env]
|
|
3707
3704
|
);
|
|
3708
|
-
const getFile = useCallback6(
|
|
3709
|
-
async (idFile, context) => {
|
|
3710
|
-
const jsonData = {
|
|
3711
|
-
model: "ir.attachment",
|
|
3712
|
-
method: "web_read" /* WEB_READ */,
|
|
3713
|
-
ids: [idFile],
|
|
3714
|
-
with_context: context,
|
|
3715
|
-
kwargs: {
|
|
3716
|
-
specification: {
|
|
3717
|
-
name: {},
|
|
3718
|
-
mimetype: {}
|
|
3719
|
-
}
|
|
3720
|
-
}
|
|
3721
|
-
};
|
|
3722
|
-
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
3723
|
-
headers: {
|
|
3724
|
-
"Content-Type": "application/json"
|
|
3725
|
-
}
|
|
3726
|
-
});
|
|
3727
|
-
},
|
|
3728
|
-
[env]
|
|
3729
|
-
);
|
|
3730
3705
|
const getFormView = useCallback6(
|
|
3731
3706
|
async ({ data }) => {
|
|
3732
3707
|
const jsonData = {
|
|
@@ -3780,8 +3755,7 @@ function useFormService() {
|
|
|
3780
3755
|
uploadImage,
|
|
3781
3756
|
getFormView,
|
|
3782
3757
|
changeStatus,
|
|
3783
|
-
uploadFile
|
|
3784
|
-
getFile
|
|
3758
|
+
uploadFile
|
|
3785
3759
|
};
|
|
3786
3760
|
}
|
|
3787
3761
|
|
|
@@ -4334,7 +4308,7 @@ function useViewService() {
|
|
|
4334
4308
|
[env]
|
|
4335
4309
|
);
|
|
4336
4310
|
const getMenu = useCallback10(
|
|
4337
|
-
async (context, specification) => {
|
|
4311
|
+
async (context, specification, domain) => {
|
|
4338
4312
|
const jsonData = {
|
|
4339
4313
|
model: "ir.ui.menu" /* MENU */,
|
|
4340
4314
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4342,7 +4316,7 @@ function useViewService() {
|
|
|
4342
4316
|
with_context: context,
|
|
4343
4317
|
kwargs: {
|
|
4344
4318
|
specification,
|
|
4345
|
-
domain: [
|
|
4319
|
+
domain: domain ?? [
|
|
4346
4320
|
"&",
|
|
4347
4321
|
["is_display", "=", true],
|
|
4348
4322
|
"&",
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./configs": {
|
|
14
|
-
"types": "./dist/configs.d.ts",
|
|
15
|
-
"import": "./dist/configs.mjs",
|
|
16
|
-
"require": "./dist/configs.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
|
-
"./hooks": {
|
|
29
|
-
"types": "./dist/hooks.d.ts",
|
|
30
|
-
"import": "./dist/hooks.mjs",
|
|
31
|
-
"require": "./dist/hooks.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./provider": {
|
|
34
|
-
"types": "./dist/provider.d.ts",
|
|
35
|
-
"import": "./dist/provider.mjs",
|
|
36
|
-
"require": "./dist/provider.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./dist/services.d.ts",
|
|
40
|
-
"import": "./dist/services.mjs",
|
|
41
|
-
"require": "./dist/services.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./store": {
|
|
44
|
-
"types": "./dist/store.d.ts",
|
|
45
|
-
"import": "./dist/store.mjs",
|
|
46
|
-
"require": "./dist/store.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.ts",
|
|
50
|
-
"import": "./dist/utils.mjs",
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"files": [
|
|
60
|
-
"dist"
|
|
61
|
-
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "tsup",
|
|
64
|
-
"test": "jest"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"react": "18.0.0",
|
|
68
|
-
"@tanstack/react-query": "^5.83.0"
|
|
69
|
-
},
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
-
"@tanstack/react-query": "^5.83.0",
|
|
73
|
-
"axios": "^1.11.0",
|
|
74
|
-
"moment": "^2.30.1",
|
|
75
|
-
"react-redux": "^9.2.0"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/react": "^18.3.1",
|
|
79
|
-
"react": "18.0.0",
|
|
80
|
-
"jest": "^29.7.0",
|
|
81
|
-
"tsup": "^8.0.0",
|
|
82
|
-
"typescript": "^5.8.2"
|
|
83
|
-
},
|
|
84
|
-
"packageManager": "yarn@1.22.0"
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "2.2.9",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./configs": {
|
|
14
|
+
"types": "./dist/configs.d.ts",
|
|
15
|
+
"import": "./dist/configs.mjs",
|
|
16
|
+
"require": "./dist/configs.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
|
+
"./hooks": {
|
|
29
|
+
"types": "./dist/hooks.d.ts",
|
|
30
|
+
"import": "./dist/hooks.mjs",
|
|
31
|
+
"require": "./dist/hooks.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./provider": {
|
|
34
|
+
"types": "./dist/provider.d.ts",
|
|
35
|
+
"import": "./dist/provider.mjs",
|
|
36
|
+
"require": "./dist/provider.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./services": {
|
|
39
|
+
"types": "./dist/services.d.ts",
|
|
40
|
+
"import": "./dist/services.mjs",
|
|
41
|
+
"require": "./dist/services.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./store": {
|
|
44
|
+
"types": "./dist/store.d.ts",
|
|
45
|
+
"import": "./dist/store.mjs",
|
|
46
|
+
"require": "./dist/store.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./types": {
|
|
54
|
+
"types": "./dist/types.d.ts",
|
|
55
|
+
"import": "./dist/types.mjs",
|
|
56
|
+
"require": "./dist/types.cjs"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsup",
|
|
64
|
+
"test": "jest"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "18.0.0",
|
|
68
|
+
"@tanstack/react-query": "^5.83.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
+
"@tanstack/react-query": "^5.83.0",
|
|
73
|
+
"axios": "^1.11.0",
|
|
74
|
+
"moment": "^2.30.1",
|
|
75
|
+
"react-redux": "^9.2.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/react": "^18.3.1",
|
|
79
|
+
"react": "18.0.0",
|
|
80
|
+
"jest": "^29.7.0",
|
|
81
|
+
"tsup": "^8.0.0",
|
|
82
|
+
"typescript": "^5.8.2"
|
|
83
|
+
},
|
|
84
|
+
"packageManager": "yarn@1.22.0"
|
|
85
|
+
}
|