@fctc/interface-logic 2.3.3 → 2.3.5
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 +6 -6
- package/dist/configs.d.ts +6 -6
- package/dist/configs.js +48 -18
- package/dist/configs.mjs +48 -18
- package/dist/constants.d.mts +3 -1
- package/dist/constants.d.ts +3 -1
- package/dist/constants.js +3 -1
- package/dist/constants.mjs +3 -1
- package/dist/environment.js +48 -18
- package/dist/environment.mjs +48 -18
- package/dist/hooks.d.mts +22 -8
- package/dist/hooks.d.ts +22 -8
- package/dist/hooks.js +319 -200
- package/dist/hooks.mjs +288 -170
- package/dist/provider.d.mts +5 -3
- package/dist/provider.d.ts +5 -3
- package/dist/provider.js +368 -220
- package/dist/provider.mjs +338 -190
- package/dist/services.d.mts +28 -17
- package/dist/services.d.ts +28 -17
- package/dist/services.js +218 -128
- package/dist/services.mjs +203 -113
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.js +3 -1
- package/dist/utils.mjs +3 -1
- package/dist/{view-type-BGJfDe73.d.mts → view-type-p4JdAOsz.d.mts} +5 -0
- package/dist/{view-type-BGJfDe73.d.ts → view-type-p4JdAOsz.d.ts} +5 -0
- package/package.json +1 -1
package/dist/hooks.mjs
CHANGED
|
@@ -17,7 +17,8 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
17
17
|
UriConstants2["LOAD_ACTION"] = `/load_action`;
|
|
18
18
|
UriConstants2["REPORT_PATH"] = `/report`;
|
|
19
19
|
UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
|
|
20
|
-
UriConstants2["
|
|
20
|
+
UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
|
|
21
|
+
UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
|
|
21
22
|
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
|
22
23
|
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
|
23
24
|
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
|
@@ -25,6 +26,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
25
26
|
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
|
26
27
|
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
|
27
28
|
UriConstants2["TOKEN"] = `/check_token`;
|
|
29
|
+
UriConstants2["VALIDATE_ACTION_TOKEN"] = `/action-token/validate`;
|
|
28
30
|
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
|
29
31
|
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
|
30
32
|
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
|
@@ -2839,15 +2841,21 @@ function useActionService() {
|
|
|
2839
2841
|
const loadAction = useCallback2(
|
|
2840
2842
|
async ({
|
|
2841
2843
|
idAction,
|
|
2842
|
-
context
|
|
2844
|
+
context,
|
|
2845
|
+
service
|
|
2843
2846
|
}) => {
|
|
2844
2847
|
const jsonData = {
|
|
2845
2848
|
action_id: idAction,
|
|
2846
2849
|
with_context: { ...context }
|
|
2847
2850
|
};
|
|
2848
|
-
return env.requests.post(
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
+
return env.requests.post(
|
|
2852
|
+
"/load_action" /* LOAD_ACTION */,
|
|
2853
|
+
jsonData,
|
|
2854
|
+
{
|
|
2855
|
+
headers: { "Content-Type": "application/json" }
|
|
2856
|
+
},
|
|
2857
|
+
service
|
|
2858
|
+
);
|
|
2851
2859
|
},
|
|
2852
2860
|
[env]
|
|
2853
2861
|
);
|
|
@@ -2856,7 +2864,8 @@ function useActionService() {
|
|
|
2856
2864
|
model,
|
|
2857
2865
|
ids = [],
|
|
2858
2866
|
context,
|
|
2859
|
-
method
|
|
2867
|
+
method,
|
|
2868
|
+
service
|
|
2860
2869
|
}) => {
|
|
2861
2870
|
try {
|
|
2862
2871
|
const jsonData = {
|
|
@@ -2865,9 +2874,14 @@ function useActionService() {
|
|
|
2865
2874
|
ids,
|
|
2866
2875
|
with_context: context
|
|
2867
2876
|
};
|
|
2868
|
-
return env.requests.post(
|
|
2869
|
-
|
|
2870
|
-
|
|
2877
|
+
return env.requests.post(
|
|
2878
|
+
"/call" /* CALL_PATH */,
|
|
2879
|
+
jsonData,
|
|
2880
|
+
{
|
|
2881
|
+
headers: { "Content-Type": "application/json" }
|
|
2882
|
+
},
|
|
2883
|
+
service
|
|
2884
|
+
);
|
|
2871
2885
|
} catch (error) {
|
|
2872
2886
|
console.error("Error when calling button action:", error);
|
|
2873
2887
|
throw error;
|
|
@@ -2879,7 +2893,8 @@ function useActionService() {
|
|
|
2879
2893
|
async ({
|
|
2880
2894
|
model,
|
|
2881
2895
|
ids,
|
|
2882
|
-
context
|
|
2896
|
+
context,
|
|
2897
|
+
service
|
|
2883
2898
|
}) => {
|
|
2884
2899
|
const jsonData = {
|
|
2885
2900
|
model,
|
|
@@ -2887,9 +2902,14 @@ function useActionService() {
|
|
|
2887
2902
|
ids,
|
|
2888
2903
|
with_context: context
|
|
2889
2904
|
};
|
|
2890
|
-
return env.requests.post(
|
|
2891
|
-
|
|
2892
|
-
|
|
2905
|
+
return env.requests.post(
|
|
2906
|
+
"/call" /* CALL_PATH */,
|
|
2907
|
+
jsonData,
|
|
2908
|
+
{
|
|
2909
|
+
headers: { "Content-Type": "application/json" }
|
|
2910
|
+
},
|
|
2911
|
+
service
|
|
2912
|
+
);
|
|
2893
2913
|
},
|
|
2894
2914
|
[env]
|
|
2895
2915
|
);
|
|
@@ -2897,7 +2917,8 @@ function useActionService() {
|
|
|
2897
2917
|
async ({
|
|
2898
2918
|
model,
|
|
2899
2919
|
id,
|
|
2900
|
-
context
|
|
2920
|
+
context,
|
|
2921
|
+
service
|
|
2901
2922
|
}) => {
|
|
2902
2923
|
const jsonData = {
|
|
2903
2924
|
model,
|
|
@@ -2905,9 +2926,14 @@ function useActionService() {
|
|
|
2905
2926
|
ids: id,
|
|
2906
2927
|
with_context: context
|
|
2907
2928
|
};
|
|
2908
|
-
return env.requests.post(
|
|
2909
|
-
|
|
2910
|
-
|
|
2929
|
+
return env.requests.post(
|
|
2930
|
+
"/call" /* CALL_PATH */,
|
|
2931
|
+
jsonData,
|
|
2932
|
+
{
|
|
2933
|
+
headers: { "Content-Type": "application/json" }
|
|
2934
|
+
},
|
|
2935
|
+
service
|
|
2936
|
+
);
|
|
2911
2937
|
},
|
|
2912
2938
|
[env]
|
|
2913
2939
|
);
|
|
@@ -2950,15 +2976,21 @@ function useActionService() {
|
|
|
2950
2976
|
const runAction = useCallback2(
|
|
2951
2977
|
async ({
|
|
2952
2978
|
idAction,
|
|
2953
|
-
context
|
|
2979
|
+
context,
|
|
2980
|
+
service
|
|
2954
2981
|
}) => {
|
|
2955
2982
|
const jsonData = {
|
|
2956
2983
|
action_id: idAction,
|
|
2957
2984
|
with_context: { ...context }
|
|
2958
2985
|
};
|
|
2959
|
-
return env.requests.post(
|
|
2960
|
-
|
|
2961
|
-
|
|
2986
|
+
return env.requests.post(
|
|
2987
|
+
"/run_action" /* RUN_ACTION_PATH */,
|
|
2988
|
+
jsonData,
|
|
2989
|
+
{
|
|
2990
|
+
headers: { "Content-Type": "application/json" }
|
|
2991
|
+
},
|
|
2992
|
+
service
|
|
2993
|
+
);
|
|
2962
2994
|
},
|
|
2963
2995
|
[env]
|
|
2964
2996
|
);
|
|
@@ -3101,18 +3133,15 @@ function useAuthService() {
|
|
|
3101
3133
|
[env]
|
|
3102
3134
|
);
|
|
3103
3135
|
const isValidActionToken = useCallback3(
|
|
3104
|
-
async (actionToken
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
{
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
actionToken
|
|
3114
|
-
}
|
|
3115
|
-
);
|
|
3136
|
+
async (actionToken) => {
|
|
3137
|
+
const bodyData = {};
|
|
3138
|
+
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
3139
|
+
headers: {
|
|
3140
|
+
"Content-Type": "application/json"
|
|
3141
|
+
},
|
|
3142
|
+
useActionToken: true,
|
|
3143
|
+
actionToken
|
|
3144
|
+
});
|
|
3116
3145
|
},
|
|
3117
3146
|
[env]
|
|
3118
3147
|
);
|
|
@@ -3148,13 +3177,14 @@ function useAuthService() {
|
|
|
3148
3177
|
data.append("client_id", env?.config?.clientId || "");
|
|
3149
3178
|
data.append("redirect_uri", env?.config?.redirectUri || "");
|
|
3150
3179
|
return env?.requests?.post(
|
|
3151
|
-
|
|
3180
|
+
"/token" /* TOKEN_BY_CODE */,
|
|
3152
3181
|
data,
|
|
3153
3182
|
{
|
|
3154
3183
|
headers: {
|
|
3155
3184
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
3156
3185
|
}
|
|
3157
|
-
}
|
|
3186
|
+
},
|
|
3187
|
+
"id"
|
|
3158
3188
|
);
|
|
3159
3189
|
},
|
|
3160
3190
|
[env]
|
|
@@ -3237,15 +3267,15 @@ function useCompanyService() {
|
|
|
3237
3267
|
import { useCallback as useCallback5 } from "react";
|
|
3238
3268
|
function useExcelService() {
|
|
3239
3269
|
const { env } = useEnv();
|
|
3240
|
-
const
|
|
3270
|
+
const uploadFileExcel = useCallback5(
|
|
3241
3271
|
async ({ formData }) => {
|
|
3242
|
-
return env.requests.post("/upload/file" /*
|
|
3272
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_EXCEL_PATH */, formData);
|
|
3243
3273
|
},
|
|
3244
3274
|
[env]
|
|
3245
3275
|
);
|
|
3246
3276
|
const uploadIdFile = useCallback5(
|
|
3247
3277
|
async ({ formData }) => {
|
|
3248
|
-
return env.requests.post("/upload/file" /*
|
|
3278
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_EXCEL_PATH */, formData, {
|
|
3249
3279
|
headers: {
|
|
3250
3280
|
"Content-Type": "multipart/form-data"
|
|
3251
3281
|
}
|
|
@@ -3393,7 +3423,7 @@ function useExcelService() {
|
|
|
3393
3423
|
[env]
|
|
3394
3424
|
);
|
|
3395
3425
|
return {
|
|
3396
|
-
|
|
3426
|
+
uploadFileExcel,
|
|
3397
3427
|
uploadIdFile,
|
|
3398
3428
|
parsePreview,
|
|
3399
3429
|
executeImport,
|
|
@@ -3488,6 +3518,12 @@ function useFormService() {
|
|
|
3488
3518
|
},
|
|
3489
3519
|
[env]
|
|
3490
3520
|
);
|
|
3521
|
+
const uploadFile = useCallback6(
|
|
3522
|
+
async ({ formData }) => {
|
|
3523
|
+
return env.requests.post("/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */, formData);
|
|
3524
|
+
},
|
|
3525
|
+
[env]
|
|
3526
|
+
);
|
|
3491
3527
|
const getFormView = useCallback6(
|
|
3492
3528
|
async ({ data }) => {
|
|
3493
3529
|
const jsonData = {
|
|
@@ -3540,7 +3576,8 @@ function useFormService() {
|
|
|
3540
3576
|
getImage,
|
|
3541
3577
|
uploadImage,
|
|
3542
3578
|
getFormView,
|
|
3543
|
-
changeStatus
|
|
3579
|
+
changeStatus,
|
|
3580
|
+
uploadFile
|
|
3544
3581
|
};
|
|
3545
3582
|
}
|
|
3546
3583
|
|
|
@@ -3673,7 +3710,7 @@ function useModelService() {
|
|
|
3673
3710
|
});
|
|
3674
3711
|
}, [env]);
|
|
3675
3712
|
const getAll = useCallback8(
|
|
3676
|
-
async ({ data }) => {
|
|
3713
|
+
async ({ data, service }) => {
|
|
3677
3714
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3678
3715
|
fields: data.fields,
|
|
3679
3716
|
groupby: data.groupby
|
|
@@ -3694,11 +3731,16 @@ function useModelService() {
|
|
|
3694
3731
|
...jsonReadGroup
|
|
3695
3732
|
}
|
|
3696
3733
|
};
|
|
3697
|
-
return env.requests.post(
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3734
|
+
return env.requests.post(
|
|
3735
|
+
"/call" /* CALL_PATH */,
|
|
3736
|
+
jsonData,
|
|
3737
|
+
{
|
|
3738
|
+
headers: {
|
|
3739
|
+
"Content-Type": "application/json"
|
|
3740
|
+
}
|
|
3741
|
+
},
|
|
3742
|
+
service
|
|
3743
|
+
);
|
|
3702
3744
|
},
|
|
3703
3745
|
[env]
|
|
3704
3746
|
);
|
|
@@ -3766,7 +3808,13 @@ function useModelService() {
|
|
|
3766
3808
|
[env]
|
|
3767
3809
|
);
|
|
3768
3810
|
const getDetail = useCallback8(
|
|
3769
|
-
async ({
|
|
3811
|
+
async ({
|
|
3812
|
+
ids = [],
|
|
3813
|
+
model,
|
|
3814
|
+
specification,
|
|
3815
|
+
context,
|
|
3816
|
+
service
|
|
3817
|
+
}) => {
|
|
3770
3818
|
const jsonData = {
|
|
3771
3819
|
model,
|
|
3772
3820
|
method: "web_read" /* WEB_READ */,
|
|
@@ -3776,11 +3824,16 @@ function useModelService() {
|
|
|
3776
3824
|
specification
|
|
3777
3825
|
}
|
|
3778
3826
|
};
|
|
3779
|
-
return env.requests.post(
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3827
|
+
return env.requests.post(
|
|
3828
|
+
"/call" /* CALL_PATH */,
|
|
3829
|
+
jsonData,
|
|
3830
|
+
{
|
|
3831
|
+
headers: {
|
|
3832
|
+
"Content-Type": "application/json"
|
|
3833
|
+
}
|
|
3834
|
+
},
|
|
3835
|
+
service
|
|
3836
|
+
);
|
|
3784
3837
|
},
|
|
3785
3838
|
[env]
|
|
3786
3839
|
);
|
|
@@ -3791,7 +3844,8 @@ function useModelService() {
|
|
|
3791
3844
|
data = {},
|
|
3792
3845
|
specification = {},
|
|
3793
3846
|
context = {},
|
|
3794
|
-
path
|
|
3847
|
+
path,
|
|
3848
|
+
service
|
|
3795
3849
|
}) => {
|
|
3796
3850
|
const jsonData = {
|
|
3797
3851
|
model,
|
|
@@ -3803,26 +3857,36 @@ function useModelService() {
|
|
|
3803
3857
|
specification
|
|
3804
3858
|
}
|
|
3805
3859
|
};
|
|
3806
|
-
return env.requests.post(
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3860
|
+
return env.requests.post(
|
|
3861
|
+
path ?? "/call" /* CALL_PATH */,
|
|
3862
|
+
jsonData,
|
|
3863
|
+
{
|
|
3864
|
+
headers: {
|
|
3865
|
+
"Content-Type": "application/json"
|
|
3866
|
+
}
|
|
3867
|
+
},
|
|
3868
|
+
service
|
|
3869
|
+
);
|
|
3811
3870
|
},
|
|
3812
3871
|
[env]
|
|
3813
3872
|
);
|
|
3814
3873
|
const deleteApi = useCallback8(
|
|
3815
|
-
async ({ ids = [], model }) => {
|
|
3874
|
+
async ({ ids = [], model, service }) => {
|
|
3816
3875
|
const jsonData = {
|
|
3817
3876
|
model,
|
|
3818
3877
|
method: "unlink" /* UNLINK */,
|
|
3819
3878
|
ids
|
|
3820
3879
|
};
|
|
3821
|
-
return env.requests.post(
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3880
|
+
return env.requests.post(
|
|
3881
|
+
"/call" /* CALL_PATH */,
|
|
3882
|
+
jsonData,
|
|
3883
|
+
{
|
|
3884
|
+
headers: {
|
|
3885
|
+
"Content-Type": "application/json"
|
|
3886
|
+
}
|
|
3887
|
+
},
|
|
3888
|
+
service
|
|
3889
|
+
);
|
|
3826
3890
|
},
|
|
3827
3891
|
[env]
|
|
3828
3892
|
);
|
|
@@ -3833,7 +3897,8 @@ function useModelService() {
|
|
|
3833
3897
|
object,
|
|
3834
3898
|
specification,
|
|
3835
3899
|
context,
|
|
3836
|
-
fieldChange
|
|
3900
|
+
fieldChange,
|
|
3901
|
+
service
|
|
3837
3902
|
}) => {
|
|
3838
3903
|
const jsonData = {
|
|
3839
3904
|
model,
|
|
@@ -3846,25 +3911,35 @@ function useModelService() {
|
|
|
3846
3911
|
specification
|
|
3847
3912
|
]
|
|
3848
3913
|
};
|
|
3849
|
-
return env.requests.post(
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3914
|
+
return env.requests.post(
|
|
3915
|
+
"/call" /* CALL_PATH */,
|
|
3916
|
+
jsonData,
|
|
3917
|
+
{
|
|
3918
|
+
headers: {
|
|
3919
|
+
"Content-Type": "application/json"
|
|
3920
|
+
}
|
|
3921
|
+
},
|
|
3922
|
+
service
|
|
3923
|
+
);
|
|
3854
3924
|
},
|
|
3855
3925
|
[env]
|
|
3856
3926
|
);
|
|
3857
3927
|
const getListFieldsOnchange = useCallback8(
|
|
3858
|
-
async ({ model }) => {
|
|
3928
|
+
async ({ model, service }) => {
|
|
3859
3929
|
const jsonData = {
|
|
3860
3930
|
model,
|
|
3861
3931
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
3862
3932
|
};
|
|
3863
|
-
return env.requests.post(
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3933
|
+
return env.requests.post(
|
|
3934
|
+
"/call" /* CALL_PATH */,
|
|
3935
|
+
jsonData,
|
|
3936
|
+
{
|
|
3937
|
+
headers: {
|
|
3938
|
+
"Content-Type": "application/json"
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
service
|
|
3942
|
+
);
|
|
3868
3943
|
},
|
|
3869
3944
|
[env]
|
|
3870
3945
|
);
|
|
@@ -4024,7 +4099,8 @@ function useViewService() {
|
|
|
4024
4099
|
views,
|
|
4025
4100
|
context = {},
|
|
4026
4101
|
options = {},
|
|
4027
|
-
aid
|
|
4102
|
+
aid,
|
|
4103
|
+
service
|
|
4028
4104
|
}) => {
|
|
4029
4105
|
const defaultOptions = {
|
|
4030
4106
|
load_filters: true,
|
|
@@ -4040,16 +4116,22 @@ function useViewService() {
|
|
|
4040
4116
|
},
|
|
4041
4117
|
with_context: context
|
|
4042
4118
|
};
|
|
4043
|
-
return env?.requests?.post(
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4119
|
+
return env?.requests?.post(
|
|
4120
|
+
"/call" /* CALL_PATH */,
|
|
4121
|
+
jsonDataView,
|
|
4122
|
+
{
|
|
4123
|
+
headers: {
|
|
4124
|
+
"Content-Type": "application/json"
|
|
4125
|
+
}
|
|
4126
|
+
},
|
|
4127
|
+
service
|
|
4128
|
+
);
|
|
4048
4129
|
},
|
|
4049
4130
|
[env]
|
|
4050
4131
|
);
|
|
4051
4132
|
const getMenu = useCallback10(
|
|
4052
|
-
async (context, specification) => {
|
|
4133
|
+
async (context, specification, domain) => {
|
|
4134
|
+
console.log("domain", domain);
|
|
4053
4135
|
const jsonData = {
|
|
4054
4136
|
model: "ir.ui.menu" /* MENU */,
|
|
4055
4137
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4057,7 +4139,7 @@ function useViewService() {
|
|
|
4057
4139
|
with_context: context,
|
|
4058
4140
|
kwargs: {
|
|
4059
4141
|
specification,
|
|
4060
|
-
domain: [
|
|
4142
|
+
domain: domain ?? [
|
|
4061
4143
|
"&",
|
|
4062
4144
|
["is_display", "=", true],
|
|
4063
4145
|
"&",
|
|
@@ -4127,7 +4209,7 @@ function useViewService() {
|
|
|
4127
4209
|
[env]
|
|
4128
4210
|
);
|
|
4129
4211
|
const getSelectionItem = useCallback10(
|
|
4130
|
-
async ({ data }) => {
|
|
4212
|
+
async ({ data, service }) => {
|
|
4131
4213
|
const jsonData = {
|
|
4132
4214
|
model: data.model,
|
|
4133
4215
|
ids: [],
|
|
@@ -4145,11 +4227,16 @@ function useViewService() {
|
|
|
4145
4227
|
}
|
|
4146
4228
|
}
|
|
4147
4229
|
};
|
|
4148
|
-
return env?.requests.post(
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4230
|
+
return env?.requests.post(
|
|
4231
|
+
"/call" /* CALL_PATH */,
|
|
4232
|
+
jsonData,
|
|
4233
|
+
{
|
|
4234
|
+
headers: {
|
|
4235
|
+
"Content-Type": "application/json"
|
|
4236
|
+
}
|
|
4237
|
+
},
|
|
4238
|
+
service
|
|
4239
|
+
);
|
|
4153
4240
|
},
|
|
4154
4241
|
[env]
|
|
4155
4242
|
);
|
|
@@ -4508,11 +4595,8 @@ import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
|
4508
4595
|
var useValidateActionToken = () => {
|
|
4509
4596
|
const { isValidActionToken } = useAuthService();
|
|
4510
4597
|
return useMutation12({
|
|
4511
|
-
mutationFn: ({
|
|
4512
|
-
actionToken
|
|
4513
|
-
path
|
|
4514
|
-
}) => {
|
|
4515
|
-
return isValidActionToken(actionToken, path);
|
|
4598
|
+
mutationFn: ({ actionToken }) => {
|
|
4599
|
+
return isValidActionToken(actionToken);
|
|
4516
4600
|
}
|
|
4517
4601
|
});
|
|
4518
4602
|
};
|
|
@@ -4658,17 +4742,17 @@ var useParsePreview = () => {
|
|
|
4658
4742
|
};
|
|
4659
4743
|
var use_parse_preview_default = useParsePreview;
|
|
4660
4744
|
|
|
4661
|
-
// src/hooks/excel/use-upload-file.ts
|
|
4745
|
+
// src/hooks/excel/use-upload-file-excel.ts
|
|
4662
4746
|
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
4663
|
-
var
|
|
4664
|
-
const {
|
|
4747
|
+
var useUploadFileExcel = () => {
|
|
4748
|
+
const { uploadFileExcel } = useExcelService();
|
|
4665
4749
|
return useMutation18({
|
|
4666
|
-
mutationFn: ({ formData }) =>
|
|
4750
|
+
mutationFn: ({ formData }) => uploadFileExcel({
|
|
4667
4751
|
formData
|
|
4668
4752
|
})
|
|
4669
4753
|
});
|
|
4670
4754
|
};
|
|
4671
|
-
var
|
|
4755
|
+
var use_upload_file_excel_default = useUploadFileExcel;
|
|
4672
4756
|
|
|
4673
4757
|
// src/hooks/excel/use-upload-id-file.ts
|
|
4674
4758
|
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
@@ -4815,12 +4899,24 @@ var useUploadImage = () => {
|
|
|
4815
4899
|
};
|
|
4816
4900
|
var use_upload_image_default = useUploadImage;
|
|
4817
4901
|
|
|
4818
|
-
// src/hooks/
|
|
4902
|
+
// src/hooks/form/use-upload-file.ts
|
|
4819
4903
|
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
4904
|
+
var useUploadFile = () => {
|
|
4905
|
+
const { uploadFile } = useFormService();
|
|
4906
|
+
return useMutation25({
|
|
4907
|
+
mutationFn: ({ formData }) => uploadFile({
|
|
4908
|
+
formData
|
|
4909
|
+
})
|
|
4910
|
+
});
|
|
4911
|
+
};
|
|
4912
|
+
var use_upload_file_default = useUploadFile;
|
|
4913
|
+
|
|
4914
|
+
// src/hooks/model/use-delete.ts
|
|
4915
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
4820
4916
|
var useDelete = () => {
|
|
4821
4917
|
const { deleteApi } = useModelService();
|
|
4822
|
-
return
|
|
4823
|
-
mutationFn: ({ ids, model }) => deleteApi({ ids, model })
|
|
4918
|
+
return useMutation26({
|
|
4919
|
+
mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
|
|
4824
4920
|
});
|
|
4825
4921
|
};
|
|
4826
4922
|
var use_delete_default = useDelete;
|
|
@@ -4875,20 +4971,22 @@ var useGetCurrency = () => {
|
|
|
4875
4971
|
var use_get_currency_default = useGetCurrency;
|
|
4876
4972
|
|
|
4877
4973
|
// src/hooks/model/use-get-detail.ts
|
|
4878
|
-
import { useMutation as
|
|
4974
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
4879
4975
|
var useGetDetail = () => {
|
|
4880
4976
|
const { getDetail } = useModelService();
|
|
4881
|
-
return
|
|
4977
|
+
return useMutation27({
|
|
4882
4978
|
mutationFn: ({
|
|
4883
4979
|
model,
|
|
4884
4980
|
ids,
|
|
4885
4981
|
specification,
|
|
4886
|
-
context
|
|
4982
|
+
context,
|
|
4983
|
+
service
|
|
4887
4984
|
}) => getDetail({
|
|
4888
4985
|
model,
|
|
4889
4986
|
ids,
|
|
4890
4987
|
specification,
|
|
4891
|
-
context
|
|
4988
|
+
context,
|
|
4989
|
+
service
|
|
4892
4990
|
})
|
|
4893
4991
|
});
|
|
4894
4992
|
};
|
|
@@ -4896,12 +4994,16 @@ var use_get_detail_default = useGetDetail;
|
|
|
4896
4994
|
|
|
4897
4995
|
// src/hooks/model/use-get-field-onchange.ts
|
|
4898
4996
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
4899
|
-
var useGetFieldOnChange = ({
|
|
4997
|
+
var useGetFieldOnChange = ({
|
|
4998
|
+
model,
|
|
4999
|
+
service
|
|
5000
|
+
}) => {
|
|
4900
5001
|
const { getListFieldsOnchange } = useModelService();
|
|
4901
5002
|
return useQuery9({
|
|
4902
5003
|
queryKey: [`field-onchange-${model}`, model],
|
|
4903
5004
|
queryFn: () => getListFieldsOnchange({
|
|
4904
|
-
model
|
|
5005
|
+
model,
|
|
5006
|
+
service
|
|
4905
5007
|
}).then((res) => {
|
|
4906
5008
|
if (res) {
|
|
4907
5009
|
return res;
|
|
@@ -4983,7 +5085,8 @@ var BaseModel = class {
|
|
|
4983
5085
|
spec[field?.name] = {
|
|
4984
5086
|
fields: {
|
|
4985
5087
|
id: {},
|
|
4986
|
-
display_name: {}
|
|
5088
|
+
display_name: {},
|
|
5089
|
+
...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
|
|
4987
5090
|
}
|
|
4988
5091
|
};
|
|
4989
5092
|
}
|
|
@@ -5074,61 +5177,64 @@ var useOdooDataTransform = () => {
|
|
|
5074
5177
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
5075
5178
|
|
|
5076
5179
|
// src/hooks/model/use-onchange-form.ts
|
|
5077
|
-
import { useMutation as
|
|
5180
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
5078
5181
|
var useOnChangeForm = () => {
|
|
5079
5182
|
const { onChange } = useModelService();
|
|
5080
|
-
return
|
|
5183
|
+
return useMutation28({
|
|
5081
5184
|
mutationFn: ({
|
|
5082
5185
|
ids,
|
|
5083
5186
|
model,
|
|
5084
5187
|
specification,
|
|
5085
5188
|
context,
|
|
5086
5189
|
object,
|
|
5087
|
-
fieldChange
|
|
5190
|
+
fieldChange,
|
|
5191
|
+
service
|
|
5088
5192
|
}) => onChange({
|
|
5089
5193
|
ids,
|
|
5090
5194
|
model,
|
|
5091
5195
|
specification,
|
|
5092
5196
|
context,
|
|
5093
5197
|
object,
|
|
5094
|
-
fieldChange
|
|
5198
|
+
fieldChange,
|
|
5199
|
+
service
|
|
5095
5200
|
})
|
|
5096
5201
|
});
|
|
5097
5202
|
};
|
|
5098
5203
|
var use_onchange_form_default = useOnChangeForm;
|
|
5099
5204
|
|
|
5100
5205
|
// src/hooks/model/use-save.ts
|
|
5101
|
-
import { useMutation as
|
|
5206
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
5102
5207
|
var useSave = () => {
|
|
5103
5208
|
const { save } = useModelService();
|
|
5104
|
-
return
|
|
5209
|
+
return useMutation29({
|
|
5105
5210
|
mutationFn: ({
|
|
5106
5211
|
ids,
|
|
5107
5212
|
model,
|
|
5108
5213
|
data,
|
|
5109
5214
|
specification,
|
|
5110
5215
|
context,
|
|
5111
|
-
path
|
|
5112
|
-
|
|
5216
|
+
path,
|
|
5217
|
+
service
|
|
5218
|
+
}) => save({ ids, model, data, specification, context, path, service })
|
|
5113
5219
|
});
|
|
5114
5220
|
};
|
|
5115
5221
|
var use_save_default = useSave;
|
|
5116
5222
|
|
|
5117
5223
|
// src/hooks/user/use-get-profile.ts
|
|
5118
|
-
import { useMutation as
|
|
5224
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
5119
5225
|
var useGetProfile = (path) => {
|
|
5120
5226
|
const { getProfile } = useUserService();
|
|
5121
|
-
return
|
|
5227
|
+
return useMutation30({
|
|
5122
5228
|
mutationFn: () => getProfile(path)
|
|
5123
5229
|
});
|
|
5124
5230
|
};
|
|
5125
5231
|
var use_get_profile_default = useGetProfile;
|
|
5126
5232
|
|
|
5127
5233
|
// src/hooks/user/use-get-user.ts
|
|
5128
|
-
import { useMutation as
|
|
5234
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
5129
5235
|
var useGetUser = () => {
|
|
5130
5236
|
const { getUser } = useUserService();
|
|
5131
|
-
return
|
|
5237
|
+
return useMutation31({
|
|
5132
5238
|
mutationFn: ({ id, context }) => getUser({
|
|
5133
5239
|
id,
|
|
5134
5240
|
context
|
|
@@ -5138,10 +5244,10 @@ var useGetUser = () => {
|
|
|
5138
5244
|
var use_get_user_default = useGetUser;
|
|
5139
5245
|
|
|
5140
5246
|
// src/hooks/user/use-switch-locale.ts
|
|
5141
|
-
import { useMutation as
|
|
5247
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
5142
5248
|
var useSwitchLocale = () => {
|
|
5143
5249
|
const { switchUserLocale } = useUserService();
|
|
5144
|
-
return
|
|
5250
|
+
return useMutation32({
|
|
5145
5251
|
mutationFn: ({ data }) => {
|
|
5146
5252
|
return switchUserLocale({
|
|
5147
5253
|
id: data.id,
|
|
@@ -5153,20 +5259,22 @@ var useSwitchLocale = () => {
|
|
|
5153
5259
|
var use_switch_locale_default = useSwitchLocale;
|
|
5154
5260
|
|
|
5155
5261
|
// src/hooks/view/use-button.ts
|
|
5156
|
-
import { useMutation as
|
|
5262
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
5157
5263
|
var useButton = () => {
|
|
5158
5264
|
const { callButton } = useActionService();
|
|
5159
|
-
return
|
|
5265
|
+
return useMutation33({
|
|
5160
5266
|
mutationFn: ({
|
|
5161
5267
|
model,
|
|
5162
5268
|
ids,
|
|
5163
5269
|
context,
|
|
5164
|
-
method
|
|
5270
|
+
method,
|
|
5271
|
+
service
|
|
5165
5272
|
}) => callButton({
|
|
5166
5273
|
model,
|
|
5167
5274
|
ids,
|
|
5168
5275
|
context,
|
|
5169
|
-
method
|
|
5276
|
+
method,
|
|
5277
|
+
service
|
|
5170
5278
|
}),
|
|
5171
5279
|
onSuccess: (response) => {
|
|
5172
5280
|
return response;
|
|
@@ -5176,18 +5284,20 @@ var useButton = () => {
|
|
|
5176
5284
|
var use_button_default = useButton;
|
|
5177
5285
|
|
|
5178
5286
|
// src/hooks/view/use-duplicate-record.ts
|
|
5179
|
-
import { useMutation as
|
|
5287
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
5180
5288
|
var useDuplicateRecord = () => {
|
|
5181
5289
|
const { duplicateRecord } = useActionService();
|
|
5182
|
-
return
|
|
5290
|
+
return useMutation34({
|
|
5183
5291
|
mutationFn: ({
|
|
5184
5292
|
id,
|
|
5185
5293
|
model,
|
|
5186
|
-
context
|
|
5294
|
+
context,
|
|
5295
|
+
service
|
|
5187
5296
|
}) => duplicateRecord({
|
|
5188
5297
|
id,
|
|
5189
5298
|
model,
|
|
5190
|
-
context
|
|
5299
|
+
context,
|
|
5300
|
+
service
|
|
5191
5301
|
})
|
|
5192
5302
|
});
|
|
5193
5303
|
};
|
|
@@ -5270,11 +5380,11 @@ var use_get_groups_default = useGetGroups;
|
|
|
5270
5380
|
|
|
5271
5381
|
// src/hooks/view/use-get-list-data.ts
|
|
5272
5382
|
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
5273
|
-
var useGetListData = (listDataProps, queryKey, enabled) => {
|
|
5383
|
+
var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
5274
5384
|
const { getAll } = useModelService();
|
|
5275
5385
|
return useQuery14({
|
|
5276
5386
|
queryKey,
|
|
5277
|
-
queryFn: () => getAll({ data: listDataProps }).then((res) => {
|
|
5387
|
+
queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
|
|
5278
5388
|
if (res) {
|
|
5279
5389
|
return res;
|
|
5280
5390
|
}
|
|
@@ -5289,11 +5399,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5289
5399
|
|
|
5290
5400
|
// src/hooks/view/use-get-menu.ts
|
|
5291
5401
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
5292
|
-
var useGetMenu = (context, specification, enabled) => {
|
|
5402
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
5293
5403
|
const { getMenu } = useViewService();
|
|
5294
5404
|
return useQuery15({
|
|
5295
5405
|
queryKey: ["menus" /* MENU */, context],
|
|
5296
|
-
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5406
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
5297
5407
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5298
5408
|
return res?.records;
|
|
5299
5409
|
}
|
|
@@ -5307,10 +5417,10 @@ var useGetMenu = (context, specification, enabled) => {
|
|
|
5307
5417
|
var use_get_menu_default = useGetMenu;
|
|
5308
5418
|
|
|
5309
5419
|
// src/hooks/view/use-get-print-report.ts
|
|
5310
|
-
import { useMutation as
|
|
5420
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
5311
5421
|
var useGetPrintReport = () => {
|
|
5312
5422
|
const { getPrintReportName } = useActionService();
|
|
5313
|
-
return
|
|
5423
|
+
return useMutation35({
|
|
5314
5424
|
mutationFn: ({ id }) => getPrintReportName({
|
|
5315
5425
|
id
|
|
5316
5426
|
})
|
|
@@ -5350,12 +5460,13 @@ import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
|
5350
5460
|
var useGetSelection = ({
|
|
5351
5461
|
data,
|
|
5352
5462
|
queryKey,
|
|
5353
|
-
enabled
|
|
5463
|
+
enabled,
|
|
5464
|
+
service
|
|
5354
5465
|
}) => {
|
|
5355
5466
|
const { getSelectionItem } = useViewService();
|
|
5356
5467
|
return useQuery17({
|
|
5357
5468
|
queryKey,
|
|
5358
|
-
queryFn: () => getSelectionItem({ data }),
|
|
5469
|
+
queryFn: () => getSelectionItem({ data, service }),
|
|
5359
5470
|
enabled,
|
|
5360
5471
|
refetchOnWindowFocus: false
|
|
5361
5472
|
});
|
|
@@ -5377,17 +5488,19 @@ var useGetView = (viewParams, actData) => {
|
|
|
5377
5488
|
var use_get_view_default = useGetView;
|
|
5378
5489
|
|
|
5379
5490
|
// src/hooks/view/use-load-action.ts
|
|
5380
|
-
import { useMutation as
|
|
5491
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
5381
5492
|
var useLoadAction = () => {
|
|
5382
5493
|
const { loadAction } = useActionService();
|
|
5383
|
-
return
|
|
5494
|
+
return useMutation36({
|
|
5384
5495
|
mutationFn: ({
|
|
5385
5496
|
idAction,
|
|
5386
|
-
context
|
|
5497
|
+
context,
|
|
5498
|
+
service
|
|
5387
5499
|
}) => {
|
|
5388
5500
|
return loadAction({
|
|
5389
5501
|
idAction,
|
|
5390
|
-
context
|
|
5502
|
+
context,
|
|
5503
|
+
service
|
|
5391
5504
|
});
|
|
5392
5505
|
}
|
|
5393
5506
|
});
|
|
@@ -5407,10 +5520,10 @@ var useLoadMessage = () => {
|
|
|
5407
5520
|
var use_load_message_default = useLoadMessage;
|
|
5408
5521
|
|
|
5409
5522
|
// src/hooks/view/use-print.ts
|
|
5410
|
-
import { useMutation as
|
|
5523
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
5411
5524
|
var usePrint = () => {
|
|
5412
5525
|
const { print } = useActionService();
|
|
5413
|
-
return
|
|
5526
|
+
return useMutation37({
|
|
5414
5527
|
mutationFn: ({ id, report, db }) => print({
|
|
5415
5528
|
id,
|
|
5416
5529
|
report,
|
|
@@ -5421,18 +5534,20 @@ var usePrint = () => {
|
|
|
5421
5534
|
var use_print_default = usePrint;
|
|
5422
5535
|
|
|
5423
5536
|
// src/hooks/view/use-remove-row.ts
|
|
5424
|
-
import { useMutation as
|
|
5537
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
5425
5538
|
var useRemoveRow = () => {
|
|
5426
5539
|
const { removeRows } = useActionService();
|
|
5427
|
-
return
|
|
5540
|
+
return useMutation38({
|
|
5428
5541
|
mutationFn: ({
|
|
5429
5542
|
model,
|
|
5430
5543
|
ids,
|
|
5431
|
-
context
|
|
5544
|
+
context,
|
|
5545
|
+
service
|
|
5432
5546
|
}) => removeRows({
|
|
5433
5547
|
model,
|
|
5434
5548
|
ids,
|
|
5435
|
-
context
|
|
5549
|
+
context,
|
|
5550
|
+
service
|
|
5436
5551
|
})
|
|
5437
5552
|
});
|
|
5438
5553
|
};
|
|
@@ -5457,26 +5572,28 @@ var useGetResequence = (model, resIds, context, offset) => {
|
|
|
5457
5572
|
var use_resequence_default = useGetResequence;
|
|
5458
5573
|
|
|
5459
5574
|
// src/hooks/view/use-run-action.ts
|
|
5460
|
-
import { useMutation as
|
|
5575
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
5461
5576
|
var useRunAction = () => {
|
|
5462
5577
|
const { runAction } = useActionService();
|
|
5463
|
-
return
|
|
5578
|
+
return useMutation39({
|
|
5464
5579
|
mutationFn: ({
|
|
5465
5580
|
idAction,
|
|
5466
|
-
context
|
|
5581
|
+
context,
|
|
5582
|
+
service
|
|
5467
5583
|
}) => runAction({
|
|
5468
5584
|
idAction,
|
|
5469
|
-
context
|
|
5585
|
+
context,
|
|
5586
|
+
service
|
|
5470
5587
|
})
|
|
5471
5588
|
});
|
|
5472
5589
|
};
|
|
5473
5590
|
var use_run_action_default = useRunAction;
|
|
5474
5591
|
|
|
5475
5592
|
// src/hooks/view/use-signin-sso.ts
|
|
5476
|
-
import { useMutation as
|
|
5593
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
5477
5594
|
var useSignInSSO = () => {
|
|
5478
5595
|
const { signInSSO } = useViewService();
|
|
5479
|
-
return
|
|
5596
|
+
return useMutation40({
|
|
5480
5597
|
mutationFn: ({
|
|
5481
5598
|
redirect_uri,
|
|
5482
5599
|
state,
|
|
@@ -5499,10 +5616,10 @@ var useSignInSSO = () => {
|
|
|
5499
5616
|
var use_signin_sso_default = useSignInSSO;
|
|
5500
5617
|
|
|
5501
5618
|
// src/hooks/view/use-verify-2FA.ts
|
|
5502
|
-
import { useMutation as
|
|
5619
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
5503
5620
|
var useVerify2FA = () => {
|
|
5504
5621
|
const { verify2FA } = useViewService();
|
|
5505
|
-
return
|
|
5622
|
+
return useMutation41({
|
|
5506
5623
|
mutationFn: ({
|
|
5507
5624
|
method,
|
|
5508
5625
|
with_context,
|
|
@@ -5523,10 +5640,10 @@ var useVerify2FA = () => {
|
|
|
5523
5640
|
var use_verify_2FA_default = useVerify2FA;
|
|
5524
5641
|
|
|
5525
5642
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
5526
|
-
import { useMutation as
|
|
5643
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
5527
5644
|
var useGet2FAMethods = () => {
|
|
5528
5645
|
const { get2FAMethods } = useViewService();
|
|
5529
|
-
return
|
|
5646
|
+
return useMutation42({
|
|
5530
5647
|
mutationFn: ({
|
|
5531
5648
|
method,
|
|
5532
5649
|
with_context
|
|
@@ -5541,10 +5658,10 @@ var useGet2FAMethods = () => {
|
|
|
5541
5658
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
5542
5659
|
|
|
5543
5660
|
// src/hooks/view/use-grant-access.ts
|
|
5544
|
-
import { useMutation as
|
|
5661
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
5545
5662
|
var useGrantAccess = () => {
|
|
5546
5663
|
const { grantAccess } = useViewService();
|
|
5547
|
-
return
|
|
5664
|
+
return useMutation43({
|
|
5548
5665
|
mutationFn: ({
|
|
5549
5666
|
redirect_uri,
|
|
5550
5667
|
state,
|
|
@@ -5563,10 +5680,10 @@ var useGrantAccess = () => {
|
|
|
5563
5680
|
var use_grant_access_default = useGrantAccess;
|
|
5564
5681
|
|
|
5565
5682
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
5566
|
-
import { useMutation as
|
|
5683
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
5567
5684
|
var useRemoveTotpSetup = () => {
|
|
5568
5685
|
const { removeTotpSetUp } = useViewService();
|
|
5569
|
-
return
|
|
5686
|
+
return useMutation44({
|
|
5570
5687
|
mutationFn: ({ method, token }) => {
|
|
5571
5688
|
return removeTotpSetUp({
|
|
5572
5689
|
method,
|
|
@@ -5578,10 +5695,10 @@ var useRemoveTotpSetup = () => {
|
|
|
5578
5695
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
5579
5696
|
|
|
5580
5697
|
// src/hooks/view/use-request-setup-totp.ts
|
|
5581
|
-
import { useMutation as
|
|
5698
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
5582
5699
|
var useRequestSetupTotp = () => {
|
|
5583
5700
|
const { requestSetupTotp } = useViewService();
|
|
5584
|
-
return
|
|
5701
|
+
return useMutation45({
|
|
5585
5702
|
mutationFn: ({ method, token }) => {
|
|
5586
5703
|
return requestSetupTotp({
|
|
5587
5704
|
method,
|
|
@@ -5593,10 +5710,10 @@ var useRequestSetupTotp = () => {
|
|
|
5593
5710
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
5594
5711
|
|
|
5595
5712
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
5596
|
-
import { useMutation as
|
|
5713
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
5597
5714
|
var useSettingsWebRead2fa = () => {
|
|
5598
5715
|
const { settingsWebRead2fa } = useViewService();
|
|
5599
|
-
return
|
|
5716
|
+
return useMutation46({
|
|
5600
5717
|
mutationFn: ({
|
|
5601
5718
|
method,
|
|
5602
5719
|
token,
|
|
@@ -5615,10 +5732,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
5615
5732
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
5616
5733
|
|
|
5617
5734
|
// src/hooks/view/use-verify-totp.ts
|
|
5618
|
-
import { useMutation as
|
|
5735
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
5619
5736
|
var useVerifyTotp = () => {
|
|
5620
5737
|
const { verifyTotp } = useViewService();
|
|
5621
|
-
return
|
|
5738
|
+
return useMutation47({
|
|
5622
5739
|
mutationFn: ({
|
|
5623
5740
|
method,
|
|
5624
5741
|
action_token,
|
|
@@ -5697,6 +5814,7 @@ export {
|
|
|
5697
5814
|
use_switch_locale_default as useSwitchLocale,
|
|
5698
5815
|
use_update_password_default as useUpdatePassword,
|
|
5699
5816
|
use_upload_file_default as useUploadFile,
|
|
5817
|
+
use_upload_file_excel_default as useUploadFileExcel,
|
|
5700
5818
|
use_upload_id_file_default as useUploadIdFile,
|
|
5701
5819
|
use_upload_image_default as useUploadImage,
|
|
5702
5820
|
use_validate_action_token_default as useValidateActionToken,
|