@fctc/interface-logic 2.3.1 → 2.3.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/configs.d.mts +6 -6
- package/dist/configs.d.ts +6 -6
- package/dist/configs.js +18 -48
- package/dist/configs.mjs +18 -48
- package/dist/constants.d.mts +1 -3
- package/dist/constants.d.ts +1 -3
- package/dist/constants.js +1 -3
- package/dist/constants.mjs +1 -3
- package/dist/environment.js +18 -48
- package/dist/environment.mjs +18 -48
- package/dist/hooks.d.mts +7 -28
- package/dist/hooks.d.ts +7 -28
- package/dist/hooks.js +196 -361
- package/dist/hooks.mjs +166 -329
- package/dist/provider.d.mts +10 -12
- package/dist/provider.d.ts +10 -12
- package/dist/provider.js +216 -409
- package/dist/provider.mjs +186 -379
- package/dist/services.d.mts +16 -33
- package/dist/services.d.ts +16 -33
- package/dist/services.js +126 -248
- package/dist/services.mjs +111 -233
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.mts +2 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +3 -2
- package/dist/utils.mjs +3 -2
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-BGJfDe73.d.mts} +0 -5
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-BGJfDe73.d.ts} +0 -5
- package/package.json +85 -85
package/dist/hooks.mjs
CHANGED
|
@@ -17,8 +17,7 @@ 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["
|
|
21
|
-
UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
|
|
20
|
+
UriConstants2["UPLOAD_FILE_PATH"] = `/upload/file`;
|
|
22
21
|
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
|
23
22
|
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
|
24
23
|
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
|
@@ -26,7 +25,6 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
26
25
|
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
|
27
26
|
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
|
28
27
|
UriConstants2["TOKEN"] = `/check_token`;
|
|
29
|
-
UriConstants2["VALIDATE_ACTION_TOKEN"] = `/action-token/validate`;
|
|
30
28
|
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
|
31
29
|
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
|
32
30
|
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
|
@@ -2841,21 +2839,15 @@ function useActionService() {
|
|
|
2841
2839
|
const loadAction = useCallback2(
|
|
2842
2840
|
async ({
|
|
2843
2841
|
idAction,
|
|
2844
|
-
context
|
|
2845
|
-
service
|
|
2842
|
+
context
|
|
2846
2843
|
}) => {
|
|
2847
2844
|
const jsonData = {
|
|
2848
2845
|
action_id: idAction,
|
|
2849
2846
|
with_context: { ...context }
|
|
2850
2847
|
};
|
|
2851
|
-
return env.requests.post(
|
|
2852
|
-
"/
|
|
2853
|
-
|
|
2854
|
-
{
|
|
2855
|
-
headers: { "Content-Type": "application/json" }
|
|
2856
|
-
},
|
|
2857
|
-
service
|
|
2858
|
-
);
|
|
2848
|
+
return env.requests.post("/load_action" /* LOAD_ACTION */, jsonData, {
|
|
2849
|
+
headers: { "Content-Type": "application/json" }
|
|
2850
|
+
});
|
|
2859
2851
|
},
|
|
2860
2852
|
[env]
|
|
2861
2853
|
);
|
|
@@ -2864,8 +2856,7 @@ function useActionService() {
|
|
|
2864
2856
|
model,
|
|
2865
2857
|
ids = [],
|
|
2866
2858
|
context,
|
|
2867
|
-
method
|
|
2868
|
-
service
|
|
2859
|
+
method
|
|
2869
2860
|
}) => {
|
|
2870
2861
|
try {
|
|
2871
2862
|
const jsonData = {
|
|
@@ -2874,14 +2865,9 @@ function useActionService() {
|
|
|
2874
2865
|
ids,
|
|
2875
2866
|
with_context: context
|
|
2876
2867
|
};
|
|
2877
|
-
return env.requests.post(
|
|
2878
|
-
"/
|
|
2879
|
-
|
|
2880
|
-
{
|
|
2881
|
-
headers: { "Content-Type": "application/json" }
|
|
2882
|
-
},
|
|
2883
|
-
service
|
|
2884
|
-
);
|
|
2868
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
2869
|
+
headers: { "Content-Type": "application/json" }
|
|
2870
|
+
});
|
|
2885
2871
|
} catch (error) {
|
|
2886
2872
|
console.error("Error when calling button action:", error);
|
|
2887
2873
|
throw error;
|
|
@@ -2893,8 +2879,7 @@ function useActionService() {
|
|
|
2893
2879
|
async ({
|
|
2894
2880
|
model,
|
|
2895
2881
|
ids,
|
|
2896
|
-
context
|
|
2897
|
-
service
|
|
2882
|
+
context
|
|
2898
2883
|
}) => {
|
|
2899
2884
|
const jsonData = {
|
|
2900
2885
|
model,
|
|
@@ -2902,14 +2887,9 @@ function useActionService() {
|
|
|
2902
2887
|
ids,
|
|
2903
2888
|
with_context: context
|
|
2904
2889
|
};
|
|
2905
|
-
return env.requests.post(
|
|
2906
|
-
"/
|
|
2907
|
-
|
|
2908
|
-
{
|
|
2909
|
-
headers: { "Content-Type": "application/json" }
|
|
2910
|
-
},
|
|
2911
|
-
service
|
|
2912
|
-
);
|
|
2890
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
2891
|
+
headers: { "Content-Type": "application/json" }
|
|
2892
|
+
});
|
|
2913
2893
|
},
|
|
2914
2894
|
[env]
|
|
2915
2895
|
);
|
|
@@ -2917,8 +2897,7 @@ function useActionService() {
|
|
|
2917
2897
|
async ({
|
|
2918
2898
|
model,
|
|
2919
2899
|
id,
|
|
2920
|
-
context
|
|
2921
|
-
service
|
|
2900
|
+
context
|
|
2922
2901
|
}) => {
|
|
2923
2902
|
const jsonData = {
|
|
2924
2903
|
model,
|
|
@@ -2926,14 +2905,9 @@ function useActionService() {
|
|
|
2926
2905
|
ids: id,
|
|
2927
2906
|
with_context: context
|
|
2928
2907
|
};
|
|
2929
|
-
return env.requests.post(
|
|
2930
|
-
"/
|
|
2931
|
-
|
|
2932
|
-
{
|
|
2933
|
-
headers: { "Content-Type": "application/json" }
|
|
2934
|
-
},
|
|
2935
|
-
service
|
|
2936
|
-
);
|
|
2908
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
2909
|
+
headers: { "Content-Type": "application/json" }
|
|
2910
|
+
});
|
|
2937
2911
|
},
|
|
2938
2912
|
[env]
|
|
2939
2913
|
);
|
|
@@ -2976,21 +2950,15 @@ function useActionService() {
|
|
|
2976
2950
|
const runAction = useCallback2(
|
|
2977
2951
|
async ({
|
|
2978
2952
|
idAction,
|
|
2979
|
-
context
|
|
2980
|
-
service
|
|
2953
|
+
context
|
|
2981
2954
|
}) => {
|
|
2982
2955
|
const jsonData = {
|
|
2983
2956
|
action_id: idAction,
|
|
2984
2957
|
with_context: { ...context }
|
|
2985
2958
|
};
|
|
2986
|
-
return env.requests.post(
|
|
2987
|
-
"/
|
|
2988
|
-
|
|
2989
|
-
{
|
|
2990
|
-
headers: { "Content-Type": "application/json" }
|
|
2991
|
-
},
|
|
2992
|
-
service
|
|
2993
|
-
);
|
|
2959
|
+
return env.requests.post("/run_action" /* RUN_ACTION_PATH */, jsonData, {
|
|
2960
|
+
headers: { "Content-Type": "application/json" }
|
|
2961
|
+
});
|
|
2994
2962
|
},
|
|
2995
2963
|
[env]
|
|
2996
2964
|
);
|
|
@@ -3133,15 +3101,18 @@ function useAuthService() {
|
|
|
3133
3101
|
[env]
|
|
3134
3102
|
);
|
|
3135
3103
|
const isValidActionToken = useCallback3(
|
|
3136
|
-
async (actionToken) => {
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3104
|
+
async (actionToken, path) => {
|
|
3105
|
+
return env?.requests?.post(
|
|
3106
|
+
path,
|
|
3107
|
+
{},
|
|
3108
|
+
{
|
|
3109
|
+
headers: {
|
|
3110
|
+
"Content-Type": "application/json"
|
|
3111
|
+
},
|
|
3112
|
+
useActionToken: true,
|
|
3113
|
+
actionToken
|
|
3114
|
+
}
|
|
3115
|
+
);
|
|
3145
3116
|
},
|
|
3146
3117
|
[env]
|
|
3147
3118
|
);
|
|
@@ -3177,14 +3148,13 @@ function useAuthService() {
|
|
|
3177
3148
|
data.append("client_id", env?.config?.clientId || "");
|
|
3178
3149
|
data.append("redirect_uri", env?.config?.redirectUri || "");
|
|
3179
3150
|
return env?.requests?.post(
|
|
3180
|
-
"/token" /* TOKEN_BY_CODE
|
|
3151
|
+
`${env?.baseUrl?.replace("/mms/", "/id/")}/${"/token" /* TOKEN_BY_CODE */}`,
|
|
3181
3152
|
data,
|
|
3182
3153
|
{
|
|
3183
3154
|
headers: {
|
|
3184
3155
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
3185
3156
|
}
|
|
3186
|
-
}
|
|
3187
|
-
"id"
|
|
3157
|
+
}
|
|
3188
3158
|
);
|
|
3189
3159
|
},
|
|
3190
3160
|
[env]
|
|
@@ -3267,15 +3237,15 @@ function useCompanyService() {
|
|
|
3267
3237
|
import { useCallback as useCallback5 } from "react";
|
|
3268
3238
|
function useExcelService() {
|
|
3269
3239
|
const { env } = useEnv();
|
|
3270
|
-
const
|
|
3240
|
+
const uploadFile = useCallback5(
|
|
3271
3241
|
async ({ formData }) => {
|
|
3272
|
-
return env.requests.post("/upload/file" /*
|
|
3242
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3273
3243
|
},
|
|
3274
3244
|
[env]
|
|
3275
3245
|
);
|
|
3276
3246
|
const uploadIdFile = useCallback5(
|
|
3277
3247
|
async ({ formData }) => {
|
|
3278
|
-
return env.requests.post("/upload/file" /*
|
|
3248
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData, {
|
|
3279
3249
|
headers: {
|
|
3280
3250
|
"Content-Type": "multipart/form-data"
|
|
3281
3251
|
}
|
|
@@ -3423,7 +3393,7 @@ function useExcelService() {
|
|
|
3423
3393
|
[env]
|
|
3424
3394
|
);
|
|
3425
3395
|
return {
|
|
3426
|
-
|
|
3396
|
+
uploadFile,
|
|
3427
3397
|
uploadIdFile,
|
|
3428
3398
|
parsePreview,
|
|
3429
3399
|
executeImport,
|
|
@@ -3518,41 +3488,6 @@ function useFormService() {
|
|
|
3518
3488
|
},
|
|
3519
3489
|
[env]
|
|
3520
3490
|
);
|
|
3521
|
-
const uploadFile = useCallback6(
|
|
3522
|
-
async ({ formData }) => {
|
|
3523
|
-
return env.requests.post("/web/binary/upload_attachment" /* UPLOAD_FILE_PATH */, formData);
|
|
3524
|
-
},
|
|
3525
|
-
[env]
|
|
3526
|
-
);
|
|
3527
|
-
const saveFile = useCallback6(
|
|
3528
|
-
async ({
|
|
3529
|
-
model,
|
|
3530
|
-
idForm,
|
|
3531
|
-
idFile,
|
|
3532
|
-
context
|
|
3533
|
-
}) => {
|
|
3534
|
-
const jsonData = {
|
|
3535
|
-
model,
|
|
3536
|
-
method: "web_save" /* WEB_SAVE */,
|
|
3537
|
-
ids: [
|
|
3538
|
-
[idForm],
|
|
3539
|
-
{
|
|
3540
|
-
attachment_ids: [[4, idFile]]
|
|
3541
|
-
}
|
|
3542
|
-
],
|
|
3543
|
-
kwargs: {
|
|
3544
|
-
context,
|
|
3545
|
-
specification: {}
|
|
3546
|
-
}
|
|
3547
|
-
};
|
|
3548
|
-
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3549
|
-
headers: {
|
|
3550
|
-
"Content-Type": "application/json"
|
|
3551
|
-
}
|
|
3552
|
-
});
|
|
3553
|
-
},
|
|
3554
|
-
[env]
|
|
3555
|
-
);
|
|
3556
3491
|
const getFormView = useCallback6(
|
|
3557
3492
|
async ({ data }) => {
|
|
3558
3493
|
const jsonData = {
|
|
@@ -3605,9 +3540,7 @@ function useFormService() {
|
|
|
3605
3540
|
getImage,
|
|
3606
3541
|
uploadImage,
|
|
3607
3542
|
getFormView,
|
|
3608
|
-
changeStatus
|
|
3609
|
-
uploadFile,
|
|
3610
|
-
saveFile
|
|
3543
|
+
changeStatus
|
|
3611
3544
|
};
|
|
3612
3545
|
}
|
|
3613
3546
|
|
|
@@ -3740,7 +3673,7 @@ function useModelService() {
|
|
|
3740
3673
|
});
|
|
3741
3674
|
}, [env]);
|
|
3742
3675
|
const getAll = useCallback8(
|
|
3743
|
-
async ({ data
|
|
3676
|
+
async ({ data }) => {
|
|
3744
3677
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3745
3678
|
fields: data.fields,
|
|
3746
3679
|
groupby: data.groupby
|
|
@@ -3761,16 +3694,11 @@ function useModelService() {
|
|
|
3761
3694
|
...jsonReadGroup
|
|
3762
3695
|
}
|
|
3763
3696
|
};
|
|
3764
|
-
return env.requests.post(
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
"Content-Type": "application/json"
|
|
3770
|
-
}
|
|
3771
|
-
},
|
|
3772
|
-
service
|
|
3773
|
-
);
|
|
3697
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3698
|
+
headers: {
|
|
3699
|
+
"Content-Type": "application/json"
|
|
3700
|
+
}
|
|
3701
|
+
});
|
|
3774
3702
|
},
|
|
3775
3703
|
[env]
|
|
3776
3704
|
);
|
|
@@ -3838,13 +3766,7 @@ function useModelService() {
|
|
|
3838
3766
|
[env]
|
|
3839
3767
|
);
|
|
3840
3768
|
const getDetail = useCallback8(
|
|
3841
|
-
async ({
|
|
3842
|
-
ids = [],
|
|
3843
|
-
model,
|
|
3844
|
-
specification,
|
|
3845
|
-
context,
|
|
3846
|
-
service
|
|
3847
|
-
}) => {
|
|
3769
|
+
async ({ ids = [], model, specification, context }) => {
|
|
3848
3770
|
const jsonData = {
|
|
3849
3771
|
model,
|
|
3850
3772
|
method: "web_read" /* WEB_READ */,
|
|
@@ -3854,16 +3776,11 @@ function useModelService() {
|
|
|
3854
3776
|
specification
|
|
3855
3777
|
}
|
|
3856
3778
|
};
|
|
3857
|
-
return env.requests.post(
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
"Content-Type": "application/json"
|
|
3863
|
-
}
|
|
3864
|
-
},
|
|
3865
|
-
service
|
|
3866
|
-
);
|
|
3779
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3780
|
+
headers: {
|
|
3781
|
+
"Content-Type": "application/json"
|
|
3782
|
+
}
|
|
3783
|
+
});
|
|
3867
3784
|
},
|
|
3868
3785
|
[env]
|
|
3869
3786
|
);
|
|
@@ -3874,8 +3791,7 @@ function useModelService() {
|
|
|
3874
3791
|
data = {},
|
|
3875
3792
|
specification = {},
|
|
3876
3793
|
context = {},
|
|
3877
|
-
path
|
|
3878
|
-
service
|
|
3794
|
+
path
|
|
3879
3795
|
}) => {
|
|
3880
3796
|
const jsonData = {
|
|
3881
3797
|
model,
|
|
@@ -3887,36 +3803,26 @@ function useModelService() {
|
|
|
3887
3803
|
specification
|
|
3888
3804
|
}
|
|
3889
3805
|
};
|
|
3890
|
-
return env.requests.post(
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
"Content-Type": "application/json"
|
|
3896
|
-
}
|
|
3897
|
-
},
|
|
3898
|
-
service
|
|
3899
|
-
);
|
|
3806
|
+
return env.requests.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
3807
|
+
headers: {
|
|
3808
|
+
"Content-Type": "application/json"
|
|
3809
|
+
}
|
|
3810
|
+
});
|
|
3900
3811
|
},
|
|
3901
3812
|
[env]
|
|
3902
3813
|
);
|
|
3903
3814
|
const deleteApi = useCallback8(
|
|
3904
|
-
async ({ ids = [], model
|
|
3815
|
+
async ({ ids = [], model }) => {
|
|
3905
3816
|
const jsonData = {
|
|
3906
3817
|
model,
|
|
3907
3818
|
method: "unlink" /* UNLINK */,
|
|
3908
3819
|
ids
|
|
3909
3820
|
};
|
|
3910
|
-
return env.requests.post(
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
"Content-Type": "application/json"
|
|
3916
|
-
}
|
|
3917
|
-
},
|
|
3918
|
-
service
|
|
3919
|
-
);
|
|
3821
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3822
|
+
headers: {
|
|
3823
|
+
"Content-Type": "application/json"
|
|
3824
|
+
}
|
|
3825
|
+
});
|
|
3920
3826
|
},
|
|
3921
3827
|
[env]
|
|
3922
3828
|
);
|
|
@@ -3927,8 +3833,7 @@ function useModelService() {
|
|
|
3927
3833
|
object,
|
|
3928
3834
|
specification,
|
|
3929
3835
|
context,
|
|
3930
|
-
fieldChange
|
|
3931
|
-
service
|
|
3836
|
+
fieldChange
|
|
3932
3837
|
}) => {
|
|
3933
3838
|
const jsonData = {
|
|
3934
3839
|
model,
|
|
@@ -3941,35 +3846,25 @@ function useModelService() {
|
|
|
3941
3846
|
specification
|
|
3942
3847
|
]
|
|
3943
3848
|
};
|
|
3944
|
-
return env.requests.post(
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
"Content-Type": "application/json"
|
|
3950
|
-
}
|
|
3951
|
-
},
|
|
3952
|
-
service
|
|
3953
|
-
);
|
|
3849
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3850
|
+
headers: {
|
|
3851
|
+
"Content-Type": "application/json"
|
|
3852
|
+
}
|
|
3853
|
+
});
|
|
3954
3854
|
},
|
|
3955
3855
|
[env]
|
|
3956
3856
|
);
|
|
3957
3857
|
const getListFieldsOnchange = useCallback8(
|
|
3958
|
-
async ({ model
|
|
3858
|
+
async ({ model }) => {
|
|
3959
3859
|
const jsonData = {
|
|
3960
3860
|
model,
|
|
3961
3861
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
3962
3862
|
};
|
|
3963
|
-
return env.requests.post(
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
"Content-Type": "application/json"
|
|
3969
|
-
}
|
|
3970
|
-
},
|
|
3971
|
-
service
|
|
3972
|
-
);
|
|
3863
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3864
|
+
headers: {
|
|
3865
|
+
"Content-Type": "application/json"
|
|
3866
|
+
}
|
|
3867
|
+
});
|
|
3973
3868
|
},
|
|
3974
3869
|
[env]
|
|
3975
3870
|
);
|
|
@@ -4129,8 +4024,7 @@ function useViewService() {
|
|
|
4129
4024
|
views,
|
|
4130
4025
|
context = {},
|
|
4131
4026
|
options = {},
|
|
4132
|
-
aid
|
|
4133
|
-
service
|
|
4027
|
+
aid
|
|
4134
4028
|
}) => {
|
|
4135
4029
|
const defaultOptions = {
|
|
4136
4030
|
load_filters: true,
|
|
@@ -4146,16 +4040,11 @@ function useViewService() {
|
|
|
4146
4040
|
},
|
|
4147
4041
|
with_context: context
|
|
4148
4042
|
};
|
|
4149
|
-
return env?.requests?.post(
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
"Content-Type": "application/json"
|
|
4155
|
-
}
|
|
4156
|
-
},
|
|
4157
|
-
service
|
|
4158
|
-
);
|
|
4043
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonDataView, {
|
|
4044
|
+
headers: {
|
|
4045
|
+
"Content-Type": "application/json"
|
|
4046
|
+
}
|
|
4047
|
+
});
|
|
4159
4048
|
},
|
|
4160
4049
|
[env]
|
|
4161
4050
|
);
|
|
@@ -4238,7 +4127,7 @@ function useViewService() {
|
|
|
4238
4127
|
[env]
|
|
4239
4128
|
);
|
|
4240
4129
|
const getSelectionItem = useCallback10(
|
|
4241
|
-
async ({ data
|
|
4130
|
+
async ({ data }) => {
|
|
4242
4131
|
const jsonData = {
|
|
4243
4132
|
model: data.model,
|
|
4244
4133
|
ids: [],
|
|
@@ -4256,16 +4145,11 @@ function useViewService() {
|
|
|
4256
4145
|
}
|
|
4257
4146
|
}
|
|
4258
4147
|
};
|
|
4259
|
-
return env?.requests.post(
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
"Content-Type": "application/json"
|
|
4265
|
-
}
|
|
4266
|
-
},
|
|
4267
|
-
service
|
|
4268
|
-
);
|
|
4148
|
+
return env?.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
4149
|
+
headers: {
|
|
4150
|
+
"Content-Type": "application/json"
|
|
4151
|
+
}
|
|
4152
|
+
});
|
|
4269
4153
|
},
|
|
4270
4154
|
[env]
|
|
4271
4155
|
);
|
|
@@ -4624,8 +4508,11 @@ import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
|
4624
4508
|
var useValidateActionToken = () => {
|
|
4625
4509
|
const { isValidActionToken } = useAuthService();
|
|
4626
4510
|
return useMutation12({
|
|
4627
|
-
mutationFn: ({
|
|
4628
|
-
|
|
4511
|
+
mutationFn: ({
|
|
4512
|
+
actionToken,
|
|
4513
|
+
path
|
|
4514
|
+
}) => {
|
|
4515
|
+
return isValidActionToken(actionToken, path);
|
|
4629
4516
|
}
|
|
4630
4517
|
});
|
|
4631
4518
|
};
|
|
@@ -4771,17 +4658,17 @@ var useParsePreview = () => {
|
|
|
4771
4658
|
};
|
|
4772
4659
|
var use_parse_preview_default = useParsePreview;
|
|
4773
4660
|
|
|
4774
|
-
// src/hooks/excel/use-upload-file
|
|
4661
|
+
// src/hooks/excel/use-upload-file.ts
|
|
4775
4662
|
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
4776
|
-
var
|
|
4777
|
-
const {
|
|
4663
|
+
var useUploadFile = () => {
|
|
4664
|
+
const { uploadFile } = useExcelService();
|
|
4778
4665
|
return useMutation18({
|
|
4779
|
-
mutationFn: ({ formData }) =>
|
|
4666
|
+
mutationFn: ({ formData }) => uploadFile({
|
|
4780
4667
|
formData
|
|
4781
4668
|
})
|
|
4782
4669
|
});
|
|
4783
4670
|
};
|
|
4784
|
-
var
|
|
4671
|
+
var use_upload_file_default = useUploadFile;
|
|
4785
4672
|
|
|
4786
4673
|
// src/hooks/excel/use-upload-id-file.ts
|
|
4787
4674
|
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
@@ -4928,39 +4815,12 @@ var useUploadImage = () => {
|
|
|
4928
4815
|
};
|
|
4929
4816
|
var use_upload_image_default = useUploadImage;
|
|
4930
4817
|
|
|
4931
|
-
// src/hooks/form/use-upload-file.ts
|
|
4932
|
-
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
4933
|
-
var useUploadFile = () => {
|
|
4934
|
-
const { uploadFile } = useFormService();
|
|
4935
|
-
return useMutation25({
|
|
4936
|
-
mutationFn: ({ formData }) => uploadFile({
|
|
4937
|
-
formData
|
|
4938
|
-
})
|
|
4939
|
-
});
|
|
4940
|
-
};
|
|
4941
|
-
var use_upload_file_default = useUploadFile;
|
|
4942
|
-
|
|
4943
|
-
// src/hooks/form/use-save-file.ts
|
|
4944
|
-
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
4945
|
-
var useSaveFile = () => {
|
|
4946
|
-
const { saveFile } = useFormService();
|
|
4947
|
-
return useMutation26({
|
|
4948
|
-
mutationFn: ({
|
|
4949
|
-
model,
|
|
4950
|
-
idForm,
|
|
4951
|
-
idFile,
|
|
4952
|
-
context
|
|
4953
|
-
}) => saveFile({ model, idForm, idFile, context })
|
|
4954
|
-
});
|
|
4955
|
-
};
|
|
4956
|
-
var use_save_file_default = useSaveFile;
|
|
4957
|
-
|
|
4958
4818
|
// src/hooks/model/use-delete.ts
|
|
4959
|
-
import { useMutation as
|
|
4819
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
4960
4820
|
var useDelete = () => {
|
|
4961
4821
|
const { deleteApi } = useModelService();
|
|
4962
|
-
return
|
|
4963
|
-
mutationFn: ({ ids, model
|
|
4822
|
+
return useMutation25({
|
|
4823
|
+
mutationFn: ({ ids, model }) => deleteApi({ ids, model })
|
|
4964
4824
|
});
|
|
4965
4825
|
};
|
|
4966
4826
|
var use_delete_default = useDelete;
|
|
@@ -5015,22 +4875,20 @@ var useGetCurrency = () => {
|
|
|
5015
4875
|
var use_get_currency_default = useGetCurrency;
|
|
5016
4876
|
|
|
5017
4877
|
// src/hooks/model/use-get-detail.ts
|
|
5018
|
-
import { useMutation as
|
|
4878
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
5019
4879
|
var useGetDetail = () => {
|
|
5020
4880
|
const { getDetail } = useModelService();
|
|
5021
|
-
return
|
|
4881
|
+
return useMutation26({
|
|
5022
4882
|
mutationFn: ({
|
|
5023
4883
|
model,
|
|
5024
4884
|
ids,
|
|
5025
4885
|
specification,
|
|
5026
|
-
context
|
|
5027
|
-
service
|
|
4886
|
+
context
|
|
5028
4887
|
}) => getDetail({
|
|
5029
4888
|
model,
|
|
5030
4889
|
ids,
|
|
5031
4890
|
specification,
|
|
5032
|
-
context
|
|
5033
|
-
service
|
|
4891
|
+
context
|
|
5034
4892
|
})
|
|
5035
4893
|
});
|
|
5036
4894
|
};
|
|
@@ -5038,16 +4896,12 @@ var use_get_detail_default = useGetDetail;
|
|
|
5038
4896
|
|
|
5039
4897
|
// src/hooks/model/use-get-field-onchange.ts
|
|
5040
4898
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
5041
|
-
var useGetFieldOnChange = ({
|
|
5042
|
-
model,
|
|
5043
|
-
service
|
|
5044
|
-
}) => {
|
|
4899
|
+
var useGetFieldOnChange = ({ model }) => {
|
|
5045
4900
|
const { getListFieldsOnchange } = useModelService();
|
|
5046
4901
|
return useQuery9({
|
|
5047
4902
|
queryKey: [`field-onchange-${model}`, model],
|
|
5048
4903
|
queryFn: () => getListFieldsOnchange({
|
|
5049
|
-
model
|
|
5050
|
-
service
|
|
4904
|
+
model
|
|
5051
4905
|
}).then((res) => {
|
|
5052
4906
|
if (res) {
|
|
5053
4907
|
return res;
|
|
@@ -5129,8 +4983,7 @@ var BaseModel = class {
|
|
|
5129
4983
|
spec[field?.name] = {
|
|
5130
4984
|
fields: {
|
|
5131
4985
|
id: {},
|
|
5132
|
-
display_name: {}
|
|
5133
|
-
...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
|
|
4986
|
+
display_name: {}
|
|
5134
4987
|
}
|
|
5135
4988
|
};
|
|
5136
4989
|
}
|
|
@@ -5221,64 +5074,61 @@ var useOdooDataTransform = () => {
|
|
|
5221
5074
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
5222
5075
|
|
|
5223
5076
|
// src/hooks/model/use-onchange-form.ts
|
|
5224
|
-
import { useMutation as
|
|
5077
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
5225
5078
|
var useOnChangeForm = () => {
|
|
5226
5079
|
const { onChange } = useModelService();
|
|
5227
|
-
return
|
|
5080
|
+
return useMutation27({
|
|
5228
5081
|
mutationFn: ({
|
|
5229
5082
|
ids,
|
|
5230
5083
|
model,
|
|
5231
5084
|
specification,
|
|
5232
5085
|
context,
|
|
5233
5086
|
object,
|
|
5234
|
-
fieldChange
|
|
5235
|
-
service
|
|
5087
|
+
fieldChange
|
|
5236
5088
|
}) => onChange({
|
|
5237
5089
|
ids,
|
|
5238
5090
|
model,
|
|
5239
5091
|
specification,
|
|
5240
5092
|
context,
|
|
5241
5093
|
object,
|
|
5242
|
-
fieldChange
|
|
5243
|
-
service
|
|
5094
|
+
fieldChange
|
|
5244
5095
|
})
|
|
5245
5096
|
});
|
|
5246
5097
|
};
|
|
5247
5098
|
var use_onchange_form_default = useOnChangeForm;
|
|
5248
5099
|
|
|
5249
5100
|
// src/hooks/model/use-save.ts
|
|
5250
|
-
import { useMutation as
|
|
5101
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
5251
5102
|
var useSave = () => {
|
|
5252
5103
|
const { save } = useModelService();
|
|
5253
|
-
return
|
|
5104
|
+
return useMutation28({
|
|
5254
5105
|
mutationFn: ({
|
|
5255
5106
|
ids,
|
|
5256
5107
|
model,
|
|
5257
5108
|
data,
|
|
5258
5109
|
specification,
|
|
5259
5110
|
context,
|
|
5260
|
-
path
|
|
5261
|
-
|
|
5262
|
-
}) => save({ ids, model, data, specification, context, path, service })
|
|
5111
|
+
path
|
|
5112
|
+
}) => save({ ids, model, data, specification, context, path })
|
|
5263
5113
|
});
|
|
5264
5114
|
};
|
|
5265
5115
|
var use_save_default = useSave;
|
|
5266
5116
|
|
|
5267
5117
|
// src/hooks/user/use-get-profile.ts
|
|
5268
|
-
import { useMutation as
|
|
5118
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
5269
5119
|
var useGetProfile = (path) => {
|
|
5270
5120
|
const { getProfile } = useUserService();
|
|
5271
|
-
return
|
|
5121
|
+
return useMutation29({
|
|
5272
5122
|
mutationFn: () => getProfile(path)
|
|
5273
5123
|
});
|
|
5274
5124
|
};
|
|
5275
5125
|
var use_get_profile_default = useGetProfile;
|
|
5276
5126
|
|
|
5277
5127
|
// src/hooks/user/use-get-user.ts
|
|
5278
|
-
import { useMutation as
|
|
5128
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
5279
5129
|
var useGetUser = () => {
|
|
5280
5130
|
const { getUser } = useUserService();
|
|
5281
|
-
return
|
|
5131
|
+
return useMutation30({
|
|
5282
5132
|
mutationFn: ({ id, context }) => getUser({
|
|
5283
5133
|
id,
|
|
5284
5134
|
context
|
|
@@ -5288,10 +5138,10 @@ var useGetUser = () => {
|
|
|
5288
5138
|
var use_get_user_default = useGetUser;
|
|
5289
5139
|
|
|
5290
5140
|
// src/hooks/user/use-switch-locale.ts
|
|
5291
|
-
import { useMutation as
|
|
5141
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
5292
5142
|
var useSwitchLocale = () => {
|
|
5293
5143
|
const { switchUserLocale } = useUserService();
|
|
5294
|
-
return
|
|
5144
|
+
return useMutation31({
|
|
5295
5145
|
mutationFn: ({ data }) => {
|
|
5296
5146
|
return switchUserLocale({
|
|
5297
5147
|
id: data.id,
|
|
@@ -5303,22 +5153,20 @@ var useSwitchLocale = () => {
|
|
|
5303
5153
|
var use_switch_locale_default = useSwitchLocale;
|
|
5304
5154
|
|
|
5305
5155
|
// src/hooks/view/use-button.ts
|
|
5306
|
-
import { useMutation as
|
|
5156
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
5307
5157
|
var useButton = () => {
|
|
5308
5158
|
const { callButton } = useActionService();
|
|
5309
|
-
return
|
|
5159
|
+
return useMutation32({
|
|
5310
5160
|
mutationFn: ({
|
|
5311
5161
|
model,
|
|
5312
5162
|
ids,
|
|
5313
5163
|
context,
|
|
5314
|
-
method
|
|
5315
|
-
service
|
|
5164
|
+
method
|
|
5316
5165
|
}) => callButton({
|
|
5317
5166
|
model,
|
|
5318
5167
|
ids,
|
|
5319
5168
|
context,
|
|
5320
|
-
method
|
|
5321
|
-
service
|
|
5169
|
+
method
|
|
5322
5170
|
}),
|
|
5323
5171
|
onSuccess: (response) => {
|
|
5324
5172
|
return response;
|
|
@@ -5328,20 +5176,18 @@ var useButton = () => {
|
|
|
5328
5176
|
var use_button_default = useButton;
|
|
5329
5177
|
|
|
5330
5178
|
// src/hooks/view/use-duplicate-record.ts
|
|
5331
|
-
import { useMutation as
|
|
5179
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
5332
5180
|
var useDuplicateRecord = () => {
|
|
5333
5181
|
const { duplicateRecord } = useActionService();
|
|
5334
|
-
return
|
|
5182
|
+
return useMutation33({
|
|
5335
5183
|
mutationFn: ({
|
|
5336
5184
|
id,
|
|
5337
5185
|
model,
|
|
5338
|
-
context
|
|
5339
|
-
service
|
|
5186
|
+
context
|
|
5340
5187
|
}) => duplicateRecord({
|
|
5341
5188
|
id,
|
|
5342
5189
|
model,
|
|
5343
|
-
context
|
|
5344
|
-
service
|
|
5190
|
+
context
|
|
5345
5191
|
})
|
|
5346
5192
|
});
|
|
5347
5193
|
};
|
|
@@ -5424,11 +5270,11 @@ var use_get_groups_default = useGetGroups;
|
|
|
5424
5270
|
|
|
5425
5271
|
// src/hooks/view/use-get-list-data.ts
|
|
5426
5272
|
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
5427
|
-
var useGetListData = (listDataProps, queryKey, enabled
|
|
5273
|
+
var useGetListData = (listDataProps, queryKey, enabled) => {
|
|
5428
5274
|
const { getAll } = useModelService();
|
|
5429
5275
|
return useQuery14({
|
|
5430
5276
|
queryKey,
|
|
5431
|
-
queryFn: () => getAll({ data: listDataProps
|
|
5277
|
+
queryFn: () => getAll({ data: listDataProps }).then((res) => {
|
|
5432
5278
|
if (res) {
|
|
5433
5279
|
return res;
|
|
5434
5280
|
}
|
|
@@ -5461,10 +5307,10 @@ var useGetMenu = (context, specification, enabled) => {
|
|
|
5461
5307
|
var use_get_menu_default = useGetMenu;
|
|
5462
5308
|
|
|
5463
5309
|
// src/hooks/view/use-get-print-report.ts
|
|
5464
|
-
import { useMutation as
|
|
5310
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
5465
5311
|
var useGetPrintReport = () => {
|
|
5466
5312
|
const { getPrintReportName } = useActionService();
|
|
5467
|
-
return
|
|
5313
|
+
return useMutation34({
|
|
5468
5314
|
mutationFn: ({ id }) => getPrintReportName({
|
|
5469
5315
|
id
|
|
5470
5316
|
})
|
|
@@ -5504,13 +5350,12 @@ import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
|
5504
5350
|
var useGetSelection = ({
|
|
5505
5351
|
data,
|
|
5506
5352
|
queryKey,
|
|
5507
|
-
enabled
|
|
5508
|
-
service
|
|
5353
|
+
enabled
|
|
5509
5354
|
}) => {
|
|
5510
5355
|
const { getSelectionItem } = useViewService();
|
|
5511
5356
|
return useQuery17({
|
|
5512
5357
|
queryKey,
|
|
5513
|
-
queryFn: () => getSelectionItem({ data
|
|
5358
|
+
queryFn: () => getSelectionItem({ data }),
|
|
5514
5359
|
enabled,
|
|
5515
5360
|
refetchOnWindowFocus: false
|
|
5516
5361
|
});
|
|
@@ -5532,19 +5377,17 @@ var useGetView = (viewParams, actData) => {
|
|
|
5532
5377
|
var use_get_view_default = useGetView;
|
|
5533
5378
|
|
|
5534
5379
|
// src/hooks/view/use-load-action.ts
|
|
5535
|
-
import { useMutation as
|
|
5380
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
5536
5381
|
var useLoadAction = () => {
|
|
5537
5382
|
const { loadAction } = useActionService();
|
|
5538
|
-
return
|
|
5383
|
+
return useMutation35({
|
|
5539
5384
|
mutationFn: ({
|
|
5540
5385
|
idAction,
|
|
5541
|
-
context
|
|
5542
|
-
service
|
|
5386
|
+
context
|
|
5543
5387
|
}) => {
|
|
5544
5388
|
return loadAction({
|
|
5545
5389
|
idAction,
|
|
5546
|
-
context
|
|
5547
|
-
service
|
|
5390
|
+
context
|
|
5548
5391
|
});
|
|
5549
5392
|
}
|
|
5550
5393
|
});
|
|
@@ -5564,10 +5407,10 @@ var useLoadMessage = () => {
|
|
|
5564
5407
|
var use_load_message_default = useLoadMessage;
|
|
5565
5408
|
|
|
5566
5409
|
// src/hooks/view/use-print.ts
|
|
5567
|
-
import { useMutation as
|
|
5410
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
5568
5411
|
var usePrint = () => {
|
|
5569
5412
|
const { print } = useActionService();
|
|
5570
|
-
return
|
|
5413
|
+
return useMutation36({
|
|
5571
5414
|
mutationFn: ({ id, report, db }) => print({
|
|
5572
5415
|
id,
|
|
5573
5416
|
report,
|
|
@@ -5578,20 +5421,18 @@ var usePrint = () => {
|
|
|
5578
5421
|
var use_print_default = usePrint;
|
|
5579
5422
|
|
|
5580
5423
|
// src/hooks/view/use-remove-row.ts
|
|
5581
|
-
import { useMutation as
|
|
5424
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
5582
5425
|
var useRemoveRow = () => {
|
|
5583
5426
|
const { removeRows } = useActionService();
|
|
5584
|
-
return
|
|
5427
|
+
return useMutation37({
|
|
5585
5428
|
mutationFn: ({
|
|
5586
5429
|
model,
|
|
5587
5430
|
ids,
|
|
5588
|
-
context
|
|
5589
|
-
service
|
|
5431
|
+
context
|
|
5590
5432
|
}) => removeRows({
|
|
5591
5433
|
model,
|
|
5592
5434
|
ids,
|
|
5593
|
-
context
|
|
5594
|
-
service
|
|
5435
|
+
context
|
|
5595
5436
|
})
|
|
5596
5437
|
});
|
|
5597
5438
|
};
|
|
@@ -5616,28 +5457,26 @@ var useGetResequence = (model, resIds, context, offset) => {
|
|
|
5616
5457
|
var use_resequence_default = useGetResequence;
|
|
5617
5458
|
|
|
5618
5459
|
// src/hooks/view/use-run-action.ts
|
|
5619
|
-
import { useMutation as
|
|
5460
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
5620
5461
|
var useRunAction = () => {
|
|
5621
5462
|
const { runAction } = useActionService();
|
|
5622
|
-
return
|
|
5463
|
+
return useMutation38({
|
|
5623
5464
|
mutationFn: ({
|
|
5624
5465
|
idAction,
|
|
5625
|
-
context
|
|
5626
|
-
service
|
|
5466
|
+
context
|
|
5627
5467
|
}) => runAction({
|
|
5628
5468
|
idAction,
|
|
5629
|
-
context
|
|
5630
|
-
service
|
|
5469
|
+
context
|
|
5631
5470
|
})
|
|
5632
5471
|
});
|
|
5633
5472
|
};
|
|
5634
5473
|
var use_run_action_default = useRunAction;
|
|
5635
5474
|
|
|
5636
5475
|
// src/hooks/view/use-signin-sso.ts
|
|
5637
|
-
import { useMutation as
|
|
5476
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
5638
5477
|
var useSignInSSO = () => {
|
|
5639
5478
|
const { signInSSO } = useViewService();
|
|
5640
|
-
return
|
|
5479
|
+
return useMutation39({
|
|
5641
5480
|
mutationFn: ({
|
|
5642
5481
|
redirect_uri,
|
|
5643
5482
|
state,
|
|
@@ -5660,10 +5499,10 @@ var useSignInSSO = () => {
|
|
|
5660
5499
|
var use_signin_sso_default = useSignInSSO;
|
|
5661
5500
|
|
|
5662
5501
|
// src/hooks/view/use-verify-2FA.ts
|
|
5663
|
-
import { useMutation as
|
|
5502
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
5664
5503
|
var useVerify2FA = () => {
|
|
5665
5504
|
const { verify2FA } = useViewService();
|
|
5666
|
-
return
|
|
5505
|
+
return useMutation40({
|
|
5667
5506
|
mutationFn: ({
|
|
5668
5507
|
method,
|
|
5669
5508
|
with_context,
|
|
@@ -5684,10 +5523,10 @@ var useVerify2FA = () => {
|
|
|
5684
5523
|
var use_verify_2FA_default = useVerify2FA;
|
|
5685
5524
|
|
|
5686
5525
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
5687
|
-
import { useMutation as
|
|
5526
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
5688
5527
|
var useGet2FAMethods = () => {
|
|
5689
5528
|
const { get2FAMethods } = useViewService();
|
|
5690
|
-
return
|
|
5529
|
+
return useMutation41({
|
|
5691
5530
|
mutationFn: ({
|
|
5692
5531
|
method,
|
|
5693
5532
|
with_context
|
|
@@ -5702,10 +5541,10 @@ var useGet2FAMethods = () => {
|
|
|
5702
5541
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
5703
5542
|
|
|
5704
5543
|
// src/hooks/view/use-grant-access.ts
|
|
5705
|
-
import { useMutation as
|
|
5544
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
5706
5545
|
var useGrantAccess = () => {
|
|
5707
5546
|
const { grantAccess } = useViewService();
|
|
5708
|
-
return
|
|
5547
|
+
return useMutation42({
|
|
5709
5548
|
mutationFn: ({
|
|
5710
5549
|
redirect_uri,
|
|
5711
5550
|
state,
|
|
@@ -5724,10 +5563,10 @@ var useGrantAccess = () => {
|
|
|
5724
5563
|
var use_grant_access_default = useGrantAccess;
|
|
5725
5564
|
|
|
5726
5565
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
5727
|
-
import { useMutation as
|
|
5566
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
5728
5567
|
var useRemoveTotpSetup = () => {
|
|
5729
5568
|
const { removeTotpSetUp } = useViewService();
|
|
5730
|
-
return
|
|
5569
|
+
return useMutation43({
|
|
5731
5570
|
mutationFn: ({ method, token }) => {
|
|
5732
5571
|
return removeTotpSetUp({
|
|
5733
5572
|
method,
|
|
@@ -5739,10 +5578,10 @@ var useRemoveTotpSetup = () => {
|
|
|
5739
5578
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
5740
5579
|
|
|
5741
5580
|
// src/hooks/view/use-request-setup-totp.ts
|
|
5742
|
-
import { useMutation as
|
|
5581
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
5743
5582
|
var useRequestSetupTotp = () => {
|
|
5744
5583
|
const { requestSetupTotp } = useViewService();
|
|
5745
|
-
return
|
|
5584
|
+
return useMutation44({
|
|
5746
5585
|
mutationFn: ({ method, token }) => {
|
|
5747
5586
|
return requestSetupTotp({
|
|
5748
5587
|
method,
|
|
@@ -5754,10 +5593,10 @@ var useRequestSetupTotp = () => {
|
|
|
5754
5593
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
5755
5594
|
|
|
5756
5595
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
5757
|
-
import { useMutation as
|
|
5596
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
5758
5597
|
var useSettingsWebRead2fa = () => {
|
|
5759
5598
|
const { settingsWebRead2fa } = useViewService();
|
|
5760
|
-
return
|
|
5599
|
+
return useMutation45({
|
|
5761
5600
|
mutationFn: ({
|
|
5762
5601
|
method,
|
|
5763
5602
|
token,
|
|
@@ -5776,10 +5615,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
5776
5615
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
5777
5616
|
|
|
5778
5617
|
// src/hooks/view/use-verify-totp.ts
|
|
5779
|
-
import { useMutation as
|
|
5618
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
5780
5619
|
var useVerifyTotp = () => {
|
|
5781
5620
|
const { verifyTotp } = useViewService();
|
|
5782
|
-
return
|
|
5621
|
+
return useMutation46({
|
|
5783
5622
|
mutationFn: ({
|
|
5784
5623
|
method,
|
|
5785
5624
|
action_token,
|
|
@@ -5852,14 +5691,12 @@ export {
|
|
|
5852
5691
|
use_reset_password_sso_default as useResetPasswordSSO,
|
|
5853
5692
|
use_run_action_default as useRunAction,
|
|
5854
5693
|
use_save_default as useSave,
|
|
5855
|
-
use_save_file_default as useSaveFile,
|
|
5856
5694
|
use_send_comment_default as useSendComment,
|
|
5857
5695
|
use_settings_web_read_2fa_default as useSettingsWebRead2fa,
|
|
5858
5696
|
use_signin_sso_default as useSignInSSO,
|
|
5859
5697
|
use_switch_locale_default as useSwitchLocale,
|
|
5860
5698
|
use_update_password_default as useUpdatePassword,
|
|
5861
5699
|
use_upload_file_default as useUploadFile,
|
|
5862
|
-
use_upload_file_excel_default as useUploadFileExcel,
|
|
5863
5700
|
use_upload_id_file_default as useUploadIdFile,
|
|
5864
5701
|
use_upload_image_default as useUploadImage,
|
|
5865
5702
|
use_validate_action_token_default as useValidateActionToken,
|