@fctc/interface-logic 3.9.5 → 3.9.7
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/hooks.js +7 -7
- package/dist/hooks.mjs +7 -7
- package/dist/provider.js +12 -12
- package/dist/provider.mjs +7 -7
- package/dist/services.js +125 -123
- package/dist/services.mjs +122 -120
- package/package.json +90 -90
package/dist/services.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/services/action-service/index.ts
|
|
2
|
-
import { useCallback as
|
|
2
|
+
import { useCallback as useCallback3 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/constants/api/uri-constant.ts
|
|
5
5
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2953,6 +2953,9 @@ import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
|
2953
2953
|
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2954
2954
|
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
2955
2955
|
|
|
2956
|
+
// src/hooks/model/use-model.ts
|
|
2957
|
+
import { useCallback as useCallback2 } from "react";
|
|
2958
|
+
|
|
2956
2959
|
// src/hooks/model/use-onchange-form.ts
|
|
2957
2960
|
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
2958
2961
|
|
|
@@ -3150,7 +3153,7 @@ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
|
|
|
3150
3153
|
// src/services/action-service/index.ts
|
|
3151
3154
|
function useActionService() {
|
|
3152
3155
|
const { env } = useEnv();
|
|
3153
|
-
const loadAction =
|
|
3156
|
+
const loadAction = useCallback3(
|
|
3154
3157
|
async ({
|
|
3155
3158
|
idAction,
|
|
3156
3159
|
context,
|
|
@@ -3174,7 +3177,7 @@ function useActionService() {
|
|
|
3174
3177
|
},
|
|
3175
3178
|
[env]
|
|
3176
3179
|
);
|
|
3177
|
-
const callButton =
|
|
3180
|
+
const callButton = useCallback3(
|
|
3178
3181
|
async ({
|
|
3179
3182
|
model,
|
|
3180
3183
|
ids = [],
|
|
@@ -3208,7 +3211,7 @@ function useActionService() {
|
|
|
3208
3211
|
},
|
|
3209
3212
|
[env]
|
|
3210
3213
|
);
|
|
3211
|
-
const removeRows =
|
|
3214
|
+
const removeRows = useCallback3(
|
|
3212
3215
|
async ({
|
|
3213
3216
|
model,
|
|
3214
3217
|
ids,
|
|
@@ -3234,7 +3237,7 @@ function useActionService() {
|
|
|
3234
3237
|
},
|
|
3235
3238
|
[env]
|
|
3236
3239
|
);
|
|
3237
|
-
const duplicateRecord =
|
|
3240
|
+
const duplicateRecord = useCallback3(
|
|
3238
3241
|
async ({
|
|
3239
3242
|
model,
|
|
3240
3243
|
id,
|
|
@@ -3260,7 +3263,7 @@ function useActionService() {
|
|
|
3260
3263
|
},
|
|
3261
3264
|
[env]
|
|
3262
3265
|
);
|
|
3263
|
-
const getPrintReportName =
|
|
3266
|
+
const getPrintReportName = useCallback3(
|
|
3264
3267
|
async ({ id }) => {
|
|
3265
3268
|
const jsonData = {
|
|
3266
3269
|
model: "ir.actions.report",
|
|
@@ -3278,7 +3281,7 @@ function useActionService() {
|
|
|
3278
3281
|
},
|
|
3279
3282
|
[env]
|
|
3280
3283
|
);
|
|
3281
|
-
const print =
|
|
3284
|
+
const print = useCallback3(
|
|
3282
3285
|
async ({ id, report, db }) => {
|
|
3283
3286
|
const jsonData = {
|
|
3284
3287
|
report,
|
|
@@ -3296,7 +3299,7 @@ function useActionService() {
|
|
|
3296
3299
|
},
|
|
3297
3300
|
[env]
|
|
3298
3301
|
);
|
|
3299
|
-
const runAction =
|
|
3302
|
+
const runAction = useCallback3(
|
|
3300
3303
|
async ({
|
|
3301
3304
|
idAction,
|
|
3302
3305
|
context,
|
|
@@ -3319,7 +3322,7 @@ function useActionService() {
|
|
|
3319
3322
|
},
|
|
3320
3323
|
[env]
|
|
3321
3324
|
);
|
|
3322
|
-
const generateSerialNumber =
|
|
3325
|
+
const generateSerialNumber = useCallback3(
|
|
3323
3326
|
async ({
|
|
3324
3327
|
kwargs,
|
|
3325
3328
|
context,
|
|
@@ -3357,10 +3360,10 @@ function useActionService() {
|
|
|
3357
3360
|
}
|
|
3358
3361
|
|
|
3359
3362
|
// src/services/auth-service/index.ts
|
|
3360
|
-
import { useCallback as
|
|
3363
|
+
import { useCallback as useCallback4 } from "react";
|
|
3361
3364
|
function useAuthService() {
|
|
3362
3365
|
const { env } = useEnv();
|
|
3363
|
-
const login =
|
|
3366
|
+
const login = useCallback4(
|
|
3364
3367
|
async (body) => {
|
|
3365
3368
|
const payload = Object.fromEntries(
|
|
3366
3369
|
Object.entries({
|
|
@@ -3385,7 +3388,7 @@ function useAuthService() {
|
|
|
3385
3388
|
},
|
|
3386
3389
|
[env]
|
|
3387
3390
|
);
|
|
3388
|
-
const forgotPassword =
|
|
3391
|
+
const forgotPassword = useCallback4(
|
|
3389
3392
|
async (email) => {
|
|
3390
3393
|
const bodyData = {
|
|
3391
3394
|
login: email,
|
|
@@ -3399,7 +3402,7 @@ function useAuthService() {
|
|
|
3399
3402
|
},
|
|
3400
3403
|
[env]
|
|
3401
3404
|
);
|
|
3402
|
-
const forgotPasswordSSO =
|
|
3405
|
+
const forgotPasswordSSO = useCallback4(
|
|
3403
3406
|
async ({
|
|
3404
3407
|
email,
|
|
3405
3408
|
with_context,
|
|
@@ -3422,7 +3425,7 @@ function useAuthService() {
|
|
|
3422
3425
|
},
|
|
3423
3426
|
[env]
|
|
3424
3427
|
);
|
|
3425
|
-
const resetPassword =
|
|
3428
|
+
const resetPassword = useCallback4(
|
|
3426
3429
|
async (data, token) => {
|
|
3427
3430
|
const bodyData = {
|
|
3428
3431
|
token,
|
|
@@ -3437,7 +3440,7 @@ function useAuthService() {
|
|
|
3437
3440
|
},
|
|
3438
3441
|
[env]
|
|
3439
3442
|
);
|
|
3440
|
-
const resetPasswordSSO =
|
|
3443
|
+
const resetPasswordSSO = useCallback4(
|
|
3441
3444
|
async ({
|
|
3442
3445
|
method,
|
|
3443
3446
|
password,
|
|
@@ -3460,7 +3463,7 @@ function useAuthService() {
|
|
|
3460
3463
|
},
|
|
3461
3464
|
[env]
|
|
3462
3465
|
);
|
|
3463
|
-
const updatePassword =
|
|
3466
|
+
const updatePassword = useCallback4(
|
|
3464
3467
|
async (data, token) => {
|
|
3465
3468
|
const bodyData = {
|
|
3466
3469
|
token,
|
|
@@ -3475,7 +3478,7 @@ function useAuthService() {
|
|
|
3475
3478
|
},
|
|
3476
3479
|
[env]
|
|
3477
3480
|
);
|
|
3478
|
-
const isValidToken =
|
|
3481
|
+
const isValidToken = useCallback4(
|
|
3479
3482
|
async (token) => {
|
|
3480
3483
|
const bodyData = {
|
|
3481
3484
|
token
|
|
@@ -3488,7 +3491,7 @@ function useAuthService() {
|
|
|
3488
3491
|
},
|
|
3489
3492
|
[env]
|
|
3490
3493
|
);
|
|
3491
|
-
const isValidActionToken =
|
|
3494
|
+
const isValidActionToken = useCallback4(
|
|
3492
3495
|
async (actionToken) => {
|
|
3493
3496
|
const bodyData = {};
|
|
3494
3497
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -3501,7 +3504,7 @@ function useAuthService() {
|
|
|
3501
3504
|
},
|
|
3502
3505
|
[env]
|
|
3503
3506
|
);
|
|
3504
|
-
const loginSocial =
|
|
3507
|
+
const loginSocial = useCallback4(
|
|
3505
3508
|
async ({
|
|
3506
3509
|
db,
|
|
3507
3510
|
state,
|
|
@@ -3519,13 +3522,13 @@ function useAuthService() {
|
|
|
3519
3522
|
},
|
|
3520
3523
|
[env]
|
|
3521
3524
|
);
|
|
3522
|
-
const getProviders =
|
|
3525
|
+
const getProviders = useCallback4(
|
|
3523
3526
|
async (db) => {
|
|
3524
3527
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
3525
3528
|
},
|
|
3526
3529
|
[env]
|
|
3527
3530
|
);
|
|
3528
|
-
const getAccessByCode =
|
|
3531
|
+
const getAccessByCode = useCallback4(
|
|
3529
3532
|
async (code) => {
|
|
3530
3533
|
const data = new URLSearchParams();
|
|
3531
3534
|
data.append("code", code);
|
|
@@ -3545,7 +3548,7 @@ function useAuthService() {
|
|
|
3545
3548
|
},
|
|
3546
3549
|
[env]
|
|
3547
3550
|
);
|
|
3548
|
-
const logout =
|
|
3551
|
+
const logout = useCallback4(
|
|
3549
3552
|
async (service) => {
|
|
3550
3553
|
return env?.requests?.post(
|
|
3551
3554
|
"/logout" /* LOGOUT */,
|
|
@@ -3562,7 +3565,7 @@ function useAuthService() {
|
|
|
3562
3565
|
},
|
|
3563
3566
|
[env]
|
|
3564
3567
|
);
|
|
3565
|
-
const getTenantMapping =
|
|
3568
|
+
const getTenantMapping = useCallback4(
|
|
3566
3569
|
async ({ shortName, service }) => {
|
|
3567
3570
|
const bodyData = {
|
|
3568
3571
|
short_name: shortName
|
|
@@ -3580,7 +3583,7 @@ function useAuthService() {
|
|
|
3580
3583
|
},
|
|
3581
3584
|
[env]
|
|
3582
3585
|
);
|
|
3583
|
-
const getToken =
|
|
3586
|
+
const getToken = useCallback4(
|
|
3584
3587
|
async ({
|
|
3585
3588
|
phone,
|
|
3586
3589
|
name,
|
|
@@ -3624,10 +3627,10 @@ function useAuthService() {
|
|
|
3624
3627
|
}
|
|
3625
3628
|
|
|
3626
3629
|
// src/services/company-service/index.ts
|
|
3627
|
-
import { useCallback as
|
|
3630
|
+
import { useCallback as useCallback5 } from "react";
|
|
3628
3631
|
function useCompanyService() {
|
|
3629
3632
|
const { env } = useEnv();
|
|
3630
|
-
const getCurrentCompany =
|
|
3633
|
+
const getCurrentCompany = useCallback5(
|
|
3631
3634
|
async (service) => {
|
|
3632
3635
|
return await env.requests.get(
|
|
3633
3636
|
"/company" /* COMPANY_PATH */,
|
|
@@ -3641,7 +3644,7 @@ function useCompanyService() {
|
|
|
3641
3644
|
},
|
|
3642
3645
|
[env]
|
|
3643
3646
|
);
|
|
3644
|
-
const getInfoCompany =
|
|
3647
|
+
const getInfoCompany = useCallback5(
|
|
3645
3648
|
async (id, service) => {
|
|
3646
3649
|
const jsonData = {
|
|
3647
3650
|
ids: [id],
|
|
@@ -3677,10 +3680,10 @@ function useCompanyService() {
|
|
|
3677
3680
|
}
|
|
3678
3681
|
|
|
3679
3682
|
// src/services/excel-service/index.ts
|
|
3680
|
-
import { useCallback as
|
|
3683
|
+
import { useCallback as useCallback6 } from "react";
|
|
3681
3684
|
function useExcelService() {
|
|
3682
3685
|
const { env } = useEnv();
|
|
3683
|
-
const uploadFileExcel =
|
|
3686
|
+
const uploadFileExcel = useCallback6(
|
|
3684
3687
|
async ({
|
|
3685
3688
|
formData,
|
|
3686
3689
|
service,
|
|
@@ -3697,7 +3700,7 @@ function useExcelService() {
|
|
|
3697
3700
|
},
|
|
3698
3701
|
[env]
|
|
3699
3702
|
);
|
|
3700
|
-
const uploadIdFile =
|
|
3703
|
+
const uploadIdFile = useCallback6(
|
|
3701
3704
|
async ({
|
|
3702
3705
|
formData,
|
|
3703
3706
|
service,
|
|
@@ -3714,7 +3717,7 @@ function useExcelService() {
|
|
|
3714
3717
|
},
|
|
3715
3718
|
[env]
|
|
3716
3719
|
);
|
|
3717
|
-
const parsePreview =
|
|
3720
|
+
const parsePreview = useCallback6(
|
|
3718
3721
|
async ({
|
|
3719
3722
|
id,
|
|
3720
3723
|
selectedSheet,
|
|
@@ -3763,7 +3766,7 @@ function useExcelService() {
|
|
|
3763
3766
|
},
|
|
3764
3767
|
[env]
|
|
3765
3768
|
);
|
|
3766
|
-
const executeImport =
|
|
3769
|
+
const executeImport = useCallback6(
|
|
3767
3770
|
async ({
|
|
3768
3771
|
columns,
|
|
3769
3772
|
fields,
|
|
@@ -3797,7 +3800,7 @@ function useExcelService() {
|
|
|
3797
3800
|
},
|
|
3798
3801
|
[env]
|
|
3799
3802
|
);
|
|
3800
|
-
const getFileExcel =
|
|
3803
|
+
const getFileExcel = useCallback6(
|
|
3801
3804
|
async ({
|
|
3802
3805
|
model,
|
|
3803
3806
|
service,
|
|
@@ -3821,7 +3824,7 @@ function useExcelService() {
|
|
|
3821
3824
|
},
|
|
3822
3825
|
[env]
|
|
3823
3826
|
);
|
|
3824
|
-
const getFieldExport =
|
|
3827
|
+
const getFieldExport = useCallback6(
|
|
3825
3828
|
async ({
|
|
3826
3829
|
ids,
|
|
3827
3830
|
model,
|
|
@@ -3861,7 +3864,7 @@ function useExcelService() {
|
|
|
3861
3864
|
},
|
|
3862
3865
|
[env]
|
|
3863
3866
|
);
|
|
3864
|
-
const exportExcel =
|
|
3867
|
+
const exportExcel = useCallback6(
|
|
3865
3868
|
async ({
|
|
3866
3869
|
model,
|
|
3867
3870
|
domain,
|
|
@@ -3909,10 +3912,10 @@ function useExcelService() {
|
|
|
3909
3912
|
}
|
|
3910
3913
|
|
|
3911
3914
|
// src/services/form-service/index.ts
|
|
3912
|
-
import { useCallback as
|
|
3915
|
+
import { useCallback as useCallback7 } from "react";
|
|
3913
3916
|
function useFormService() {
|
|
3914
3917
|
const { env } = useEnv();
|
|
3915
|
-
const getComment =
|
|
3918
|
+
const getComment = useCallback7(
|
|
3916
3919
|
async ({ data }) => {
|
|
3917
3920
|
const jsonData = {
|
|
3918
3921
|
thread_id: data.thread_id,
|
|
@@ -3930,7 +3933,7 @@ function useFormService() {
|
|
|
3930
3933
|
},
|
|
3931
3934
|
[env]
|
|
3932
3935
|
);
|
|
3933
|
-
const getThreadData =
|
|
3936
|
+
const getThreadData = useCallback7(
|
|
3934
3937
|
async ({
|
|
3935
3938
|
data,
|
|
3936
3939
|
xNode,
|
|
@@ -3957,7 +3960,7 @@ function useFormService() {
|
|
|
3957
3960
|
},
|
|
3958
3961
|
[env]
|
|
3959
3962
|
);
|
|
3960
|
-
const getThreadMessages =
|
|
3963
|
+
const getThreadMessages = useCallback7(
|
|
3961
3964
|
async ({
|
|
3962
3965
|
data,
|
|
3963
3966
|
xNode,
|
|
@@ -3983,7 +3986,7 @@ function useFormService() {
|
|
|
3983
3986
|
},
|
|
3984
3987
|
[env]
|
|
3985
3988
|
);
|
|
3986
|
-
const sentComment =
|
|
3989
|
+
const sentComment = useCallback7(
|
|
3987
3990
|
async ({ data }) => {
|
|
3988
3991
|
const jsonData = {
|
|
3989
3992
|
context: {
|
|
@@ -4011,7 +4014,7 @@ function useFormService() {
|
|
|
4011
4014
|
},
|
|
4012
4015
|
[env]
|
|
4013
4016
|
);
|
|
4014
|
-
const deleteComment =
|
|
4017
|
+
const deleteComment = useCallback7(
|
|
4015
4018
|
async ({ data }) => {
|
|
4016
4019
|
const jsonData = {
|
|
4017
4020
|
attachment_ids: [],
|
|
@@ -4027,7 +4030,7 @@ function useFormService() {
|
|
|
4027
4030
|
},
|
|
4028
4031
|
[env]
|
|
4029
4032
|
);
|
|
4030
|
-
const getImage =
|
|
4033
|
+
const getImage = useCallback7(
|
|
4031
4034
|
async ({ data }) => {
|
|
4032
4035
|
return env.requests.get(
|
|
4033
4036
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -4040,7 +4043,7 @@ function useFormService() {
|
|
|
4040
4043
|
},
|
|
4041
4044
|
[env]
|
|
4042
4045
|
);
|
|
4043
|
-
const uploadImage =
|
|
4046
|
+
const uploadImage = useCallback7(
|
|
4044
4047
|
async ({
|
|
4045
4048
|
formData,
|
|
4046
4049
|
service,
|
|
@@ -4059,7 +4062,7 @@ function useFormService() {
|
|
|
4059
4062
|
},
|
|
4060
4063
|
[env]
|
|
4061
4064
|
);
|
|
4062
|
-
const uploadFile =
|
|
4065
|
+
const uploadFile = useCallback7(
|
|
4063
4066
|
async ({
|
|
4064
4067
|
formData,
|
|
4065
4068
|
service,
|
|
@@ -4078,7 +4081,7 @@ function useFormService() {
|
|
|
4078
4081
|
},
|
|
4079
4082
|
[env]
|
|
4080
4083
|
);
|
|
4081
|
-
const getFormView =
|
|
4084
|
+
const getFormView = useCallback7(
|
|
4082
4085
|
async ({ data }) => {
|
|
4083
4086
|
const jsonData = {
|
|
4084
4087
|
model: data.model,
|
|
@@ -4094,7 +4097,7 @@ function useFormService() {
|
|
|
4094
4097
|
},
|
|
4095
4098
|
[env]
|
|
4096
4099
|
);
|
|
4097
|
-
const changeStatus =
|
|
4100
|
+
const changeStatus = useCallback7(
|
|
4098
4101
|
async ({ data }) => {
|
|
4099
4102
|
const vals = {
|
|
4100
4103
|
[data.name]: data.stage_id
|
|
@@ -4123,7 +4126,7 @@ function useFormService() {
|
|
|
4123
4126
|
},
|
|
4124
4127
|
[env]
|
|
4125
4128
|
);
|
|
4126
|
-
const getExternalTab =
|
|
4129
|
+
const getExternalTab = useCallback7(
|
|
4127
4130
|
async ({ method, context, service, xNode }) => {
|
|
4128
4131
|
return env?.requests?.post(
|
|
4129
4132
|
"/call" /* CALL_PATH */,
|
|
@@ -4158,10 +4161,10 @@ function useFormService() {
|
|
|
4158
4161
|
}
|
|
4159
4162
|
|
|
4160
4163
|
// src/services/kanban-service/index.ts
|
|
4161
|
-
import { useCallback as
|
|
4164
|
+
import { useCallback as useCallback8 } from "react";
|
|
4162
4165
|
function useKanbanService() {
|
|
4163
4166
|
const { env } = useEnv();
|
|
4164
|
-
const getGroups =
|
|
4167
|
+
const getGroups = useCallback8(
|
|
4165
4168
|
async ({ model, width_context }) => {
|
|
4166
4169
|
const jsonData = {
|
|
4167
4170
|
model,
|
|
@@ -4181,7 +4184,7 @@ function useKanbanService() {
|
|
|
4181
4184
|
},
|
|
4182
4185
|
[env]
|
|
4183
4186
|
);
|
|
4184
|
-
const getProgressBar =
|
|
4187
|
+
const getProgressBar = useCallback8(
|
|
4185
4188
|
async ({ field, color, model, width_context }) => {
|
|
4186
4189
|
const jsonData = {
|
|
4187
4190
|
model,
|
|
@@ -4211,11 +4214,10 @@ function useKanbanService() {
|
|
|
4211
4214
|
}
|
|
4212
4215
|
|
|
4213
4216
|
// src/services/model-service/index.ts
|
|
4214
|
-
import { useCallback as
|
|
4215
|
-
var OBJECT_POSITION = 2;
|
|
4217
|
+
import { useCallback as useCallback9 } from "react";
|
|
4216
4218
|
function useModelService() {
|
|
4217
4219
|
const { env } = useEnv();
|
|
4218
|
-
const getListMyBankAccount =
|
|
4220
|
+
const getListMyBankAccount = useCallback9(
|
|
4219
4221
|
async ({
|
|
4220
4222
|
domain,
|
|
4221
4223
|
spectification,
|
|
@@ -4239,7 +4241,7 @@ function useModelService() {
|
|
|
4239
4241
|
},
|
|
4240
4242
|
[env]
|
|
4241
4243
|
);
|
|
4242
|
-
const getCurrency =
|
|
4244
|
+
const getCurrency = useCallback9(async () => {
|
|
4243
4245
|
const jsonData = {
|
|
4244
4246
|
model: "res.currency",
|
|
4245
4247
|
method: "web_search_read",
|
|
@@ -4259,7 +4261,7 @@ function useModelService() {
|
|
|
4259
4261
|
}
|
|
4260
4262
|
});
|
|
4261
4263
|
}, [env]);
|
|
4262
|
-
const getConversionRate =
|
|
4264
|
+
const getConversionRate = useCallback9(async () => {
|
|
4263
4265
|
const jsonData = {
|
|
4264
4266
|
model: "res.currency",
|
|
4265
4267
|
method: "web_search_read",
|
|
@@ -4285,7 +4287,7 @@ function useModelService() {
|
|
|
4285
4287
|
}
|
|
4286
4288
|
});
|
|
4287
4289
|
}, [env]);
|
|
4288
|
-
const getAll =
|
|
4290
|
+
const getAll = useCallback9(
|
|
4289
4291
|
async ({
|
|
4290
4292
|
data,
|
|
4291
4293
|
service,
|
|
@@ -4327,7 +4329,7 @@ function useModelService() {
|
|
|
4327
4329
|
},
|
|
4328
4330
|
[env]
|
|
4329
4331
|
);
|
|
4330
|
-
const getListCalendar =
|
|
4332
|
+
const getListCalendar = useCallback9(
|
|
4331
4333
|
async ({ data }) => {
|
|
4332
4334
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
4333
4335
|
fields: data.fields,
|
|
@@ -4358,7 +4360,7 @@ function useModelService() {
|
|
|
4358
4360
|
},
|
|
4359
4361
|
[env]
|
|
4360
4362
|
);
|
|
4361
|
-
const getList =
|
|
4363
|
+
const getList = useCallback9(
|
|
4362
4364
|
async ({
|
|
4363
4365
|
model,
|
|
4364
4366
|
ids = [],
|
|
@@ -4390,7 +4392,7 @@ function useModelService() {
|
|
|
4390
4392
|
},
|
|
4391
4393
|
[env]
|
|
4392
4394
|
);
|
|
4393
|
-
const getDetail =
|
|
4395
|
+
const getDetail = useCallback9(
|
|
4394
4396
|
async ({
|
|
4395
4397
|
ids = [],
|
|
4396
4398
|
model,
|
|
@@ -4422,7 +4424,7 @@ function useModelService() {
|
|
|
4422
4424
|
},
|
|
4423
4425
|
[env]
|
|
4424
4426
|
);
|
|
4425
|
-
const save =
|
|
4427
|
+
const save = useCallback9(
|
|
4426
4428
|
async ({
|
|
4427
4429
|
model,
|
|
4428
4430
|
ids = [],
|
|
@@ -4457,7 +4459,7 @@ function useModelService() {
|
|
|
4457
4459
|
},
|
|
4458
4460
|
[env]
|
|
4459
4461
|
);
|
|
4460
|
-
const deleteApi =
|
|
4462
|
+
const deleteApi = useCallback9(
|
|
4461
4463
|
async ({ ids = [], model, service }) => {
|
|
4462
4464
|
const jsonData = {
|
|
4463
4465
|
model,
|
|
@@ -4477,7 +4479,7 @@ function useModelService() {
|
|
|
4477
4479
|
},
|
|
4478
4480
|
[env]
|
|
4479
4481
|
);
|
|
4480
|
-
const onChange =
|
|
4482
|
+
const onChange = useCallback9(
|
|
4481
4483
|
async ({
|
|
4482
4484
|
ids = [],
|
|
4483
4485
|
model,
|
|
@@ -4513,7 +4515,7 @@ function useModelService() {
|
|
|
4513
4515
|
},
|
|
4514
4516
|
[env]
|
|
4515
4517
|
);
|
|
4516
|
-
const getListFieldsOnchange =
|
|
4518
|
+
const getListFieldsOnchange = useCallback9(
|
|
4517
4519
|
async ({
|
|
4518
4520
|
model,
|
|
4519
4521
|
service,
|
|
@@ -4537,7 +4539,7 @@ function useModelService() {
|
|
|
4537
4539
|
},
|
|
4538
4540
|
[env]
|
|
4539
4541
|
);
|
|
4540
|
-
const parseORMOdoo =
|
|
4542
|
+
const parseORMOdoo = useCallback9((data) => {
|
|
4541
4543
|
for (const key in data) {
|
|
4542
4544
|
if (key === "display_name") {
|
|
4543
4545
|
delete data[key];
|
|
@@ -4550,7 +4552,7 @@ function useModelService() {
|
|
|
4550
4552
|
}
|
|
4551
4553
|
return { ...data };
|
|
4552
4554
|
}, []);
|
|
4553
|
-
const toDataJS =
|
|
4555
|
+
const toDataJS = useCallback9(
|
|
4554
4556
|
(data, viewData, model) => {
|
|
4555
4557
|
for (const key in data) {
|
|
4556
4558
|
if (data[key] === false) {
|
|
@@ -4571,19 +4573,19 @@ function useModelService() {
|
|
|
4571
4573
|
if (relation !== void 0) {
|
|
4572
4574
|
if (viewData?.models?.[relation]) {
|
|
4573
4575
|
if (item?.length >= 3) {
|
|
4574
|
-
return toDataJS(item[
|
|
4576
|
+
return toDataJS(item[2], viewData, relation);
|
|
4575
4577
|
} else {
|
|
4576
4578
|
return toDataJS(item, viewData, relation);
|
|
4577
4579
|
}
|
|
4578
4580
|
} else {
|
|
4579
4581
|
if (item?.length >= 3) {
|
|
4580
|
-
return item[
|
|
4581
|
-
} else {
|
|
4582
|
+
return item[2];
|
|
4583
|
+
} else if (item !== 0) {
|
|
4582
4584
|
return item;
|
|
4583
4585
|
}
|
|
4584
4586
|
}
|
|
4585
4587
|
}
|
|
4586
|
-
});
|
|
4588
|
+
})?.filter(Boolean);
|
|
4587
4589
|
}
|
|
4588
4590
|
}
|
|
4589
4591
|
}
|
|
@@ -4610,10 +4612,10 @@ function useModelService() {
|
|
|
4610
4612
|
}
|
|
4611
4613
|
|
|
4612
4614
|
// src/services/user-service/index.ts
|
|
4613
|
-
import { useCallback as
|
|
4615
|
+
import { useCallback as useCallback10 } from "react";
|
|
4614
4616
|
function useUserService() {
|
|
4615
4617
|
const { env } = useEnv();
|
|
4616
|
-
const getProfile =
|
|
4618
|
+
const getProfile = useCallback10(
|
|
4617
4619
|
async (service, path) => {
|
|
4618
4620
|
return env?.requests?.get(
|
|
4619
4621
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -4627,7 +4629,7 @@ function useUserService() {
|
|
|
4627
4629
|
},
|
|
4628
4630
|
[env]
|
|
4629
4631
|
);
|
|
4630
|
-
const getUser =
|
|
4632
|
+
const getUser = useCallback10(
|
|
4631
4633
|
async ({ context, id }) => {
|
|
4632
4634
|
const jsonData = {
|
|
4633
4635
|
model: "res.users",
|
|
@@ -4665,7 +4667,7 @@ function useUserService() {
|
|
|
4665
4667
|
},
|
|
4666
4668
|
[env]
|
|
4667
4669
|
);
|
|
4668
|
-
const switchUserLocale =
|
|
4670
|
+
const switchUserLocale = useCallback10(
|
|
4669
4671
|
async ({ id, values, service }) => {
|
|
4670
4672
|
const jsonData = {
|
|
4671
4673
|
model: "res.users",
|
|
@@ -4693,10 +4695,10 @@ function useUserService() {
|
|
|
4693
4695
|
}
|
|
4694
4696
|
|
|
4695
4697
|
// src/services/view-service/index.ts
|
|
4696
|
-
import { useCallback as
|
|
4698
|
+
import { useCallback as useCallback11 } from "react";
|
|
4697
4699
|
function useViewService() {
|
|
4698
4700
|
const { env } = useEnv();
|
|
4699
|
-
const getView =
|
|
4701
|
+
const getView = useCallback11(
|
|
4700
4702
|
async ({
|
|
4701
4703
|
model,
|
|
4702
4704
|
views,
|
|
@@ -4736,7 +4738,7 @@ function useViewService() {
|
|
|
4736
4738
|
},
|
|
4737
4739
|
[env]
|
|
4738
4740
|
);
|
|
4739
|
-
const getMenu =
|
|
4741
|
+
const getMenu = useCallback11(
|
|
4740
4742
|
async (context, specification, domain, service) => {
|
|
4741
4743
|
const jsonData = {
|
|
4742
4744
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -4767,7 +4769,7 @@ function useViewService() {
|
|
|
4767
4769
|
},
|
|
4768
4770
|
[env]
|
|
4769
4771
|
);
|
|
4770
|
-
const getActionDetail =
|
|
4772
|
+
const getActionDetail = useCallback11(
|
|
4771
4773
|
async (aid, context) => {
|
|
4772
4774
|
const jsonData = {
|
|
4773
4775
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -4797,7 +4799,7 @@ function useViewService() {
|
|
|
4797
4799
|
},
|
|
4798
4800
|
[env]
|
|
4799
4801
|
);
|
|
4800
|
-
const getResequence =
|
|
4802
|
+
const getResequence = useCallback11(
|
|
4801
4803
|
async ({
|
|
4802
4804
|
model,
|
|
4803
4805
|
ids,
|
|
@@ -4827,7 +4829,7 @@ function useViewService() {
|
|
|
4827
4829
|
},
|
|
4828
4830
|
[env]
|
|
4829
4831
|
);
|
|
4830
|
-
const getSelectionItem =
|
|
4832
|
+
const getSelectionItem = useCallback11(
|
|
4831
4833
|
async ({
|
|
4832
4834
|
data,
|
|
4833
4835
|
service,
|
|
@@ -4864,7 +4866,7 @@ function useViewService() {
|
|
|
4864
4866
|
},
|
|
4865
4867
|
[env]
|
|
4866
4868
|
);
|
|
4867
|
-
const loadMessages =
|
|
4869
|
+
const loadMessages = useCallback11(async () => {
|
|
4868
4870
|
return env.requests.post(
|
|
4869
4871
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
4870
4872
|
{},
|
|
@@ -4875,14 +4877,14 @@ function useViewService() {
|
|
|
4875
4877
|
}
|
|
4876
4878
|
);
|
|
4877
4879
|
}, [env]);
|
|
4878
|
-
const getVersion =
|
|
4880
|
+
const getVersion = useCallback11(async () => {
|
|
4879
4881
|
return env?.requests?.get("", {
|
|
4880
4882
|
headers: {
|
|
4881
4883
|
"Content-Type": "application/json"
|
|
4882
4884
|
}
|
|
4883
4885
|
});
|
|
4884
4886
|
}, [env]);
|
|
4885
|
-
const grantAccess =
|
|
4887
|
+
const grantAccess = useCallback11(
|
|
4886
4888
|
async ({
|
|
4887
4889
|
redirect_uri,
|
|
4888
4890
|
state,
|
|
@@ -4909,7 +4911,7 @@ function useViewService() {
|
|
|
4909
4911
|
},
|
|
4910
4912
|
[env]
|
|
4911
4913
|
);
|
|
4912
|
-
const removeTotpSetUp =
|
|
4914
|
+
const removeTotpSetUp = useCallback11(
|
|
4913
4915
|
async ({ method, token }) => {
|
|
4914
4916
|
const jsonData = {
|
|
4915
4917
|
method,
|
|
@@ -4930,7 +4932,7 @@ function useViewService() {
|
|
|
4930
4932
|
},
|
|
4931
4933
|
[env]
|
|
4932
4934
|
);
|
|
4933
|
-
const requestSetupTotp =
|
|
4935
|
+
const requestSetupTotp = useCallback11(
|
|
4934
4936
|
async ({ method, token }) => {
|
|
4935
4937
|
const jsonData = {
|
|
4936
4938
|
method,
|
|
@@ -4949,7 +4951,7 @@ function useViewService() {
|
|
|
4949
4951
|
},
|
|
4950
4952
|
[env]
|
|
4951
4953
|
);
|
|
4952
|
-
const settingsWebRead2fa =
|
|
4954
|
+
const settingsWebRead2fa = useCallback11(
|
|
4953
4955
|
async ({
|
|
4954
4956
|
method,
|
|
4955
4957
|
model,
|
|
@@ -4977,7 +4979,7 @@ function useViewService() {
|
|
|
4977
4979
|
},
|
|
4978
4980
|
[env]
|
|
4979
4981
|
);
|
|
4980
|
-
const signInSSO =
|
|
4982
|
+
const signInSSO = useCallback11(
|
|
4981
4983
|
async ({
|
|
4982
4984
|
redirect_uri,
|
|
4983
4985
|
state,
|
|
@@ -5009,7 +5011,7 @@ function useViewService() {
|
|
|
5009
5011
|
},
|
|
5010
5012
|
[env]
|
|
5011
5013
|
);
|
|
5012
|
-
const verify2FA =
|
|
5014
|
+
const verify2FA = useCallback11(
|
|
5013
5015
|
({
|
|
5014
5016
|
method,
|
|
5015
5017
|
with_context,
|
|
@@ -5042,7 +5044,7 @@ function useViewService() {
|
|
|
5042
5044
|
},
|
|
5043
5045
|
[env]
|
|
5044
5046
|
);
|
|
5045
|
-
const get2FAMethods =
|
|
5047
|
+
const get2FAMethods = useCallback11(
|
|
5046
5048
|
({ method, with_context }) => {
|
|
5047
5049
|
const jsonData = {
|
|
5048
5050
|
method,
|
|
@@ -5061,7 +5063,7 @@ function useViewService() {
|
|
|
5061
5063
|
},
|
|
5062
5064
|
[env]
|
|
5063
5065
|
);
|
|
5064
|
-
const verifyTotp =
|
|
5066
|
+
const verifyTotp = useCallback11(
|
|
5065
5067
|
({
|
|
5066
5068
|
method,
|
|
5067
5069
|
action_token,
|
|
@@ -5086,7 +5088,7 @@ function useViewService() {
|
|
|
5086
5088
|
},
|
|
5087
5089
|
[env]
|
|
5088
5090
|
);
|
|
5089
|
-
const getASession =
|
|
5091
|
+
const getASession = useCallback11(
|
|
5090
5092
|
async ({
|
|
5091
5093
|
model,
|
|
5092
5094
|
args,
|
|
@@ -5129,7 +5131,7 @@ function useViewService() {
|
|
|
5129
5131
|
},
|
|
5130
5132
|
[env]
|
|
5131
5133
|
);
|
|
5132
|
-
const updateClosedSession =
|
|
5134
|
+
const updateClosedSession = useCallback11(
|
|
5133
5135
|
({
|
|
5134
5136
|
model,
|
|
5135
5137
|
domain,
|
|
@@ -5156,7 +5158,7 @@ function useViewService() {
|
|
|
5156
5158
|
},
|
|
5157
5159
|
[env]
|
|
5158
5160
|
);
|
|
5159
|
-
const manageSession =
|
|
5161
|
+
const manageSession = useCallback11(
|
|
5160
5162
|
({
|
|
5161
5163
|
model,
|
|
5162
5164
|
method,
|
|
@@ -5187,7 +5189,7 @@ function useViewService() {
|
|
|
5187
5189
|
},
|
|
5188
5190
|
[env]
|
|
5189
5191
|
);
|
|
5190
|
-
const handleClosingSession =
|
|
5192
|
+
const handleClosingSession = useCallback11(
|
|
5191
5193
|
({
|
|
5192
5194
|
model,
|
|
5193
5195
|
method,
|
|
@@ -5216,7 +5218,7 @@ function useViewService() {
|
|
|
5216
5218
|
},
|
|
5217
5219
|
[env]
|
|
5218
5220
|
);
|
|
5219
|
-
const createSession =
|
|
5221
|
+
const createSession = useCallback11(
|
|
5220
5222
|
({
|
|
5221
5223
|
model,
|
|
5222
5224
|
configId,
|
|
@@ -5246,7 +5248,7 @@ function useViewService() {
|
|
|
5246
5248
|
},
|
|
5247
5249
|
[env]
|
|
5248
5250
|
);
|
|
5249
|
-
const getPOS =
|
|
5251
|
+
const getPOS = useCallback11(
|
|
5250
5252
|
({
|
|
5251
5253
|
model,
|
|
5252
5254
|
args,
|
|
@@ -5304,7 +5306,7 @@ function useViewService() {
|
|
|
5304
5306
|
},
|
|
5305
5307
|
[env]
|
|
5306
5308
|
);
|
|
5307
|
-
const createEntity =
|
|
5309
|
+
const createEntity = useCallback11(
|
|
5308
5310
|
({
|
|
5309
5311
|
model,
|
|
5310
5312
|
args,
|
|
@@ -5330,7 +5332,7 @@ function useViewService() {
|
|
|
5330
5332
|
},
|
|
5331
5333
|
[env]
|
|
5332
5334
|
);
|
|
5333
|
-
const addEntity =
|
|
5335
|
+
const addEntity = useCallback11(
|
|
5334
5336
|
({
|
|
5335
5337
|
model,
|
|
5336
5338
|
values,
|
|
@@ -5356,7 +5358,7 @@ function useViewService() {
|
|
|
5356
5358
|
},
|
|
5357
5359
|
[env]
|
|
5358
5360
|
);
|
|
5359
|
-
const getList =
|
|
5361
|
+
const getList = useCallback11(
|
|
5360
5362
|
({
|
|
5361
5363
|
model,
|
|
5362
5364
|
domain,
|
|
@@ -5390,7 +5392,7 @@ function useViewService() {
|
|
|
5390
5392
|
},
|
|
5391
5393
|
[env]
|
|
5392
5394
|
);
|
|
5393
|
-
const updateEntity =
|
|
5395
|
+
const updateEntity = useCallback11(
|
|
5394
5396
|
({
|
|
5395
5397
|
model,
|
|
5396
5398
|
domain,
|
|
@@ -5418,7 +5420,7 @@ function useViewService() {
|
|
|
5418
5420
|
},
|
|
5419
5421
|
[env]
|
|
5420
5422
|
);
|
|
5421
|
-
const deleteEntity =
|
|
5423
|
+
const deleteEntity = useCallback11(
|
|
5422
5424
|
({
|
|
5423
5425
|
model,
|
|
5424
5426
|
ids,
|
|
@@ -5445,7 +5447,7 @@ function useViewService() {
|
|
|
5445
5447
|
},
|
|
5446
5448
|
[env]
|
|
5447
5449
|
);
|
|
5448
|
-
const loadDataPosSession =
|
|
5450
|
+
const loadDataPosSession = useCallback11(
|
|
5449
5451
|
({
|
|
5450
5452
|
model,
|
|
5451
5453
|
ids,
|
|
@@ -5483,7 +5485,7 @@ function useViewService() {
|
|
|
5483
5485
|
},
|
|
5484
5486
|
[env]
|
|
5485
5487
|
);
|
|
5486
|
-
const getPreparaionDisplayData =
|
|
5488
|
+
const getPreparaionDisplayData = useCallback11(
|
|
5487
5489
|
({
|
|
5488
5490
|
ids,
|
|
5489
5491
|
xNode,
|
|
@@ -5508,7 +5510,7 @@ function useViewService() {
|
|
|
5508
5510
|
},
|
|
5509
5511
|
[env]
|
|
5510
5512
|
);
|
|
5511
|
-
const manageOnChange =
|
|
5513
|
+
const manageOnChange = useCallback11(
|
|
5512
5514
|
({
|
|
5513
5515
|
model,
|
|
5514
5516
|
ids,
|
|
@@ -5536,7 +5538,7 @@ function useViewService() {
|
|
|
5536
5538
|
},
|
|
5537
5539
|
[env]
|
|
5538
5540
|
);
|
|
5539
|
-
const getOrderLine =
|
|
5541
|
+
const getOrderLine = useCallback11(
|
|
5540
5542
|
({
|
|
5541
5543
|
model,
|
|
5542
5544
|
ids,
|
|
@@ -5566,7 +5568,7 @@ function useViewService() {
|
|
|
5566
5568
|
},
|
|
5567
5569
|
[env]
|
|
5568
5570
|
);
|
|
5569
|
-
const getProductImage =
|
|
5571
|
+
const getProductImage = useCallback11(
|
|
5570
5572
|
({
|
|
5571
5573
|
model,
|
|
5572
5574
|
fields,
|
|
@@ -5599,7 +5601,7 @@ function useViewService() {
|
|
|
5599
5601
|
},
|
|
5600
5602
|
[env]
|
|
5601
5603
|
);
|
|
5602
|
-
const checkPayment =
|
|
5604
|
+
const checkPayment = useCallback11(
|
|
5603
5605
|
({
|
|
5604
5606
|
model,
|
|
5605
5607
|
ids,
|
|
@@ -5627,7 +5629,7 @@ function useViewService() {
|
|
|
5627
5629
|
},
|
|
5628
5630
|
[env]
|
|
5629
5631
|
);
|
|
5630
|
-
const handleCloseSession =
|
|
5632
|
+
const handleCloseSession = useCallback11(
|
|
5631
5633
|
({
|
|
5632
5634
|
model,
|
|
5633
5635
|
ids,
|
|
@@ -5654,7 +5656,7 @@ function useViewService() {
|
|
|
5654
5656
|
},
|
|
5655
5657
|
[env]
|
|
5656
5658
|
);
|
|
5657
|
-
const handleClosingDetailSession =
|
|
5659
|
+
const handleClosingDetailSession = useCallback11(
|
|
5658
5660
|
({
|
|
5659
5661
|
model,
|
|
5660
5662
|
ids,
|
|
@@ -5683,7 +5685,7 @@ function useViewService() {
|
|
|
5683
5685
|
},
|
|
5684
5686
|
[env]
|
|
5685
5687
|
);
|
|
5686
|
-
const createPosConfig =
|
|
5688
|
+
const createPosConfig = useCallback11(
|
|
5687
5689
|
({
|
|
5688
5690
|
model,
|
|
5689
5691
|
name,
|
|
@@ -5712,7 +5714,7 @@ function useViewService() {
|
|
|
5712
5714
|
},
|
|
5713
5715
|
[env]
|
|
5714
5716
|
);
|
|
5715
|
-
const searchJournal =
|
|
5717
|
+
const searchJournal = useCallback11(
|
|
5716
5718
|
({
|
|
5717
5719
|
model,
|
|
5718
5720
|
method,
|
|
@@ -5741,7 +5743,7 @@ function useViewService() {
|
|
|
5741
5743
|
},
|
|
5742
5744
|
[env]
|
|
5743
5745
|
);
|
|
5744
|
-
const changeOrderPreparaionState =
|
|
5746
|
+
const changeOrderPreparaionState = useCallback11(
|
|
5745
5747
|
({
|
|
5746
5748
|
orderId,
|
|
5747
5749
|
stageId,
|
|
@@ -5772,7 +5774,7 @@ function useViewService() {
|
|
|
5772
5774
|
},
|
|
5773
5775
|
[env]
|
|
5774
5776
|
);
|
|
5775
|
-
const updateOrderStatus =
|
|
5777
|
+
const updateOrderStatus = useCallback11(
|
|
5776
5778
|
({
|
|
5777
5779
|
orderId,
|
|
5778
5780
|
state,
|
|
@@ -5797,7 +5799,7 @@ function useViewService() {
|
|
|
5797
5799
|
},
|
|
5798
5800
|
[env]
|
|
5799
5801
|
);
|
|
5800
|
-
const processOrder =
|
|
5802
|
+
const processOrder = useCallback11(
|
|
5801
5803
|
({
|
|
5802
5804
|
orderId,
|
|
5803
5805
|
xNode,
|
|
@@ -5824,7 +5826,7 @@ function useViewService() {
|
|
|
5824
5826
|
},
|
|
5825
5827
|
[env]
|
|
5826
5828
|
);
|
|
5827
|
-
const generatePaymentQRInfo =
|
|
5829
|
+
const generatePaymentQRInfo = useCallback11(
|
|
5828
5830
|
({
|
|
5829
5831
|
orderId,
|
|
5830
5832
|
amount,
|
|
@@ -5851,7 +5853,7 @@ function useViewService() {
|
|
|
5851
5853
|
},
|
|
5852
5854
|
[env]
|
|
5853
5855
|
);
|
|
5854
|
-
const savePinCode =
|
|
5856
|
+
const savePinCode = useCallback11(
|
|
5855
5857
|
({
|
|
5856
5858
|
serialNumber,
|
|
5857
5859
|
pinCode,
|
|
@@ -5876,7 +5878,7 @@ function useViewService() {
|
|
|
5876
5878
|
},
|
|
5877
5879
|
[env]
|
|
5878
5880
|
);
|
|
5879
|
-
const getPinCode =
|
|
5881
|
+
const getPinCode = useCallback11(
|
|
5880
5882
|
({
|
|
5881
5883
|
serialNumber,
|
|
5882
5884
|
xNode,
|
|
@@ -5899,7 +5901,7 @@ function useViewService() {
|
|
|
5899
5901
|
},
|
|
5900
5902
|
[env]
|
|
5901
5903
|
);
|
|
5902
|
-
const getNotifications =
|
|
5904
|
+
const getNotifications = useCallback11(
|
|
5903
5905
|
async ({
|
|
5904
5906
|
service,
|
|
5905
5907
|
xNode,
|
|
@@ -5967,10 +5969,10 @@ function useViewService() {
|
|
|
5967
5969
|
}
|
|
5968
5970
|
|
|
5969
5971
|
// src/services/dashboard-service/index.ts
|
|
5970
|
-
import { useCallback as
|
|
5972
|
+
import { useCallback as useCallback12 } from "react";
|
|
5971
5973
|
function useDashboardService() {
|
|
5972
5974
|
const { env } = useEnv();
|
|
5973
|
-
const readGroup =
|
|
5975
|
+
const readGroup = useCallback12(
|
|
5974
5976
|
async ({
|
|
5975
5977
|
service,
|
|
5976
5978
|
xNode,
|
|
@@ -5987,7 +5989,7 @@ function useDashboardService() {
|
|
|
5987
5989
|
},
|
|
5988
5990
|
[env]
|
|
5989
5991
|
);
|
|
5990
|
-
const getDataChart =
|
|
5992
|
+
const getDataChart = useCallback12(
|
|
5991
5993
|
async ({
|
|
5992
5994
|
service,
|
|
5993
5995
|
xNode,
|