@fctc/interface-logic 3.9.4 → 3.9.6
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 -4
- package/dist/hooks.mjs +7 -4
- package/dist/provider.js +12 -9
- package/dist/provider.mjs +7 -4
- package/dist/services.js +125 -120
- package/dist/services.mjs +122 -117
- package/package.json +1 -1
package/dist/services.js
CHANGED
|
@@ -44,7 +44,7 @@ __export(services_exports, {
|
|
|
44
44
|
module.exports = __toCommonJS(services_exports);
|
|
45
45
|
|
|
46
46
|
// src/services/action-service/index.ts
|
|
47
|
-
var
|
|
47
|
+
var import_react7 = require("react");
|
|
48
48
|
|
|
49
49
|
// src/constants/api/uri-constant.ts
|
|
50
50
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2870,7 +2870,7 @@ function useEnv() {
|
|
|
2870
2870
|
}
|
|
2871
2871
|
|
|
2872
2872
|
// src/provider/service-provider.tsx
|
|
2873
|
-
var
|
|
2873
|
+
var import_react5 = require("react");
|
|
2874
2874
|
|
|
2875
2875
|
// src/hooks/auth/use-forgot-password.ts
|
|
2876
2876
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -2998,6 +2998,9 @@ var import_react_query43 = require("@tanstack/react-query");
|
|
|
2998
2998
|
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2999
2999
|
var import_react_query44 = require("@tanstack/react-query");
|
|
3000
3000
|
|
|
3001
|
+
// src/hooks/model/use-model.ts
|
|
3002
|
+
var import_react4 = require("react");
|
|
3003
|
+
|
|
3001
3004
|
// src/hooks/model/use-onchange-form.ts
|
|
3002
3005
|
var import_react_query45 = require("@tanstack/react-query");
|
|
3003
3006
|
|
|
@@ -3186,16 +3189,16 @@ var import_react_query106 = require("@tanstack/react-query");
|
|
|
3186
3189
|
|
|
3187
3190
|
// src/provider/service-provider.tsx
|
|
3188
3191
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3189
|
-
var ServiceContext = (0,
|
|
3192
|
+
var ServiceContext = (0, import_react5.createContext)(null);
|
|
3190
3193
|
|
|
3191
3194
|
// src/provider/meta-provider.tsx
|
|
3192
|
-
var
|
|
3195
|
+
var import_react6 = require("react");
|
|
3193
3196
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
3194
3197
|
|
|
3195
3198
|
// src/services/action-service/index.ts
|
|
3196
3199
|
function useActionService() {
|
|
3197
3200
|
const { env } = useEnv();
|
|
3198
|
-
const loadAction = (0,
|
|
3201
|
+
const loadAction = (0, import_react7.useCallback)(
|
|
3199
3202
|
async ({
|
|
3200
3203
|
idAction,
|
|
3201
3204
|
context,
|
|
@@ -3219,7 +3222,7 @@ function useActionService() {
|
|
|
3219
3222
|
},
|
|
3220
3223
|
[env]
|
|
3221
3224
|
);
|
|
3222
|
-
const callButton = (0,
|
|
3225
|
+
const callButton = (0, import_react7.useCallback)(
|
|
3223
3226
|
async ({
|
|
3224
3227
|
model,
|
|
3225
3228
|
ids = [],
|
|
@@ -3239,8 +3242,10 @@ function useActionService() {
|
|
|
3239
3242
|
"/call" /* CALL_PATH */,
|
|
3240
3243
|
jsonData,
|
|
3241
3244
|
{
|
|
3242
|
-
headers: {
|
|
3243
|
-
|
|
3245
|
+
headers: {
|
|
3246
|
+
"Content-Type": "application/json",
|
|
3247
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3248
|
+
}
|
|
3244
3249
|
},
|
|
3245
3250
|
service
|
|
3246
3251
|
);
|
|
@@ -3251,7 +3256,7 @@ function useActionService() {
|
|
|
3251
3256
|
},
|
|
3252
3257
|
[env]
|
|
3253
3258
|
);
|
|
3254
|
-
const removeRows = (0,
|
|
3259
|
+
const removeRows = (0, import_react7.useCallback)(
|
|
3255
3260
|
async ({
|
|
3256
3261
|
model,
|
|
3257
3262
|
ids,
|
|
@@ -3277,7 +3282,7 @@ function useActionService() {
|
|
|
3277
3282
|
},
|
|
3278
3283
|
[env]
|
|
3279
3284
|
);
|
|
3280
|
-
const duplicateRecord = (0,
|
|
3285
|
+
const duplicateRecord = (0, import_react7.useCallback)(
|
|
3281
3286
|
async ({
|
|
3282
3287
|
model,
|
|
3283
3288
|
id,
|
|
@@ -3303,7 +3308,7 @@ function useActionService() {
|
|
|
3303
3308
|
},
|
|
3304
3309
|
[env]
|
|
3305
3310
|
);
|
|
3306
|
-
const getPrintReportName = (0,
|
|
3311
|
+
const getPrintReportName = (0, import_react7.useCallback)(
|
|
3307
3312
|
async ({ id }) => {
|
|
3308
3313
|
const jsonData = {
|
|
3309
3314
|
model: "ir.actions.report",
|
|
@@ -3321,7 +3326,7 @@ function useActionService() {
|
|
|
3321
3326
|
},
|
|
3322
3327
|
[env]
|
|
3323
3328
|
);
|
|
3324
|
-
const print = (0,
|
|
3329
|
+
const print = (0, import_react7.useCallback)(
|
|
3325
3330
|
async ({ id, report, db }) => {
|
|
3326
3331
|
const jsonData = {
|
|
3327
3332
|
report,
|
|
@@ -3339,7 +3344,7 @@ function useActionService() {
|
|
|
3339
3344
|
},
|
|
3340
3345
|
[env]
|
|
3341
3346
|
);
|
|
3342
|
-
const runAction = (0,
|
|
3347
|
+
const runAction = (0, import_react7.useCallback)(
|
|
3343
3348
|
async ({
|
|
3344
3349
|
idAction,
|
|
3345
3350
|
context,
|
|
@@ -3362,7 +3367,7 @@ function useActionService() {
|
|
|
3362
3367
|
},
|
|
3363
3368
|
[env]
|
|
3364
3369
|
);
|
|
3365
|
-
const generateSerialNumber = (0,
|
|
3370
|
+
const generateSerialNumber = (0, import_react7.useCallback)(
|
|
3366
3371
|
async ({
|
|
3367
3372
|
kwargs,
|
|
3368
3373
|
context,
|
|
@@ -3400,10 +3405,10 @@ function useActionService() {
|
|
|
3400
3405
|
}
|
|
3401
3406
|
|
|
3402
3407
|
// src/services/auth-service/index.ts
|
|
3403
|
-
var
|
|
3408
|
+
var import_react8 = require("react");
|
|
3404
3409
|
function useAuthService() {
|
|
3405
3410
|
const { env } = useEnv();
|
|
3406
|
-
const login = (0,
|
|
3411
|
+
const login = (0, import_react8.useCallback)(
|
|
3407
3412
|
async (body) => {
|
|
3408
3413
|
const payload = Object.fromEntries(
|
|
3409
3414
|
Object.entries({
|
|
@@ -3428,7 +3433,7 @@ function useAuthService() {
|
|
|
3428
3433
|
},
|
|
3429
3434
|
[env]
|
|
3430
3435
|
);
|
|
3431
|
-
const forgotPassword = (0,
|
|
3436
|
+
const forgotPassword = (0, import_react8.useCallback)(
|
|
3432
3437
|
async (email) => {
|
|
3433
3438
|
const bodyData = {
|
|
3434
3439
|
login: email,
|
|
@@ -3442,7 +3447,7 @@ function useAuthService() {
|
|
|
3442
3447
|
},
|
|
3443
3448
|
[env]
|
|
3444
3449
|
);
|
|
3445
|
-
const forgotPasswordSSO = (0,
|
|
3450
|
+
const forgotPasswordSSO = (0, import_react8.useCallback)(
|
|
3446
3451
|
async ({
|
|
3447
3452
|
email,
|
|
3448
3453
|
with_context,
|
|
@@ -3465,7 +3470,7 @@ function useAuthService() {
|
|
|
3465
3470
|
},
|
|
3466
3471
|
[env]
|
|
3467
3472
|
);
|
|
3468
|
-
const resetPassword = (0,
|
|
3473
|
+
const resetPassword = (0, import_react8.useCallback)(
|
|
3469
3474
|
async (data, token) => {
|
|
3470
3475
|
const bodyData = {
|
|
3471
3476
|
token,
|
|
@@ -3480,7 +3485,7 @@ function useAuthService() {
|
|
|
3480
3485
|
},
|
|
3481
3486
|
[env]
|
|
3482
3487
|
);
|
|
3483
|
-
const resetPasswordSSO = (0,
|
|
3488
|
+
const resetPasswordSSO = (0, import_react8.useCallback)(
|
|
3484
3489
|
async ({
|
|
3485
3490
|
method,
|
|
3486
3491
|
password,
|
|
@@ -3503,7 +3508,7 @@ function useAuthService() {
|
|
|
3503
3508
|
},
|
|
3504
3509
|
[env]
|
|
3505
3510
|
);
|
|
3506
|
-
const updatePassword = (0,
|
|
3511
|
+
const updatePassword = (0, import_react8.useCallback)(
|
|
3507
3512
|
async (data, token) => {
|
|
3508
3513
|
const bodyData = {
|
|
3509
3514
|
token,
|
|
@@ -3518,7 +3523,7 @@ function useAuthService() {
|
|
|
3518
3523
|
},
|
|
3519
3524
|
[env]
|
|
3520
3525
|
);
|
|
3521
|
-
const isValidToken = (0,
|
|
3526
|
+
const isValidToken = (0, import_react8.useCallback)(
|
|
3522
3527
|
async (token) => {
|
|
3523
3528
|
const bodyData = {
|
|
3524
3529
|
token
|
|
@@ -3531,7 +3536,7 @@ function useAuthService() {
|
|
|
3531
3536
|
},
|
|
3532
3537
|
[env]
|
|
3533
3538
|
);
|
|
3534
|
-
const isValidActionToken = (0,
|
|
3539
|
+
const isValidActionToken = (0, import_react8.useCallback)(
|
|
3535
3540
|
async (actionToken) => {
|
|
3536
3541
|
const bodyData = {};
|
|
3537
3542
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -3544,7 +3549,7 @@ function useAuthService() {
|
|
|
3544
3549
|
},
|
|
3545
3550
|
[env]
|
|
3546
3551
|
);
|
|
3547
|
-
const loginSocial = (0,
|
|
3552
|
+
const loginSocial = (0, import_react8.useCallback)(
|
|
3548
3553
|
async ({
|
|
3549
3554
|
db,
|
|
3550
3555
|
state,
|
|
@@ -3562,13 +3567,13 @@ function useAuthService() {
|
|
|
3562
3567
|
},
|
|
3563
3568
|
[env]
|
|
3564
3569
|
);
|
|
3565
|
-
const getProviders = (0,
|
|
3570
|
+
const getProviders = (0, import_react8.useCallback)(
|
|
3566
3571
|
async (db) => {
|
|
3567
3572
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
3568
3573
|
},
|
|
3569
3574
|
[env]
|
|
3570
3575
|
);
|
|
3571
|
-
const getAccessByCode = (0,
|
|
3576
|
+
const getAccessByCode = (0, import_react8.useCallback)(
|
|
3572
3577
|
async (code) => {
|
|
3573
3578
|
const data = new URLSearchParams();
|
|
3574
3579
|
data.append("code", code);
|
|
@@ -3588,7 +3593,7 @@ function useAuthService() {
|
|
|
3588
3593
|
},
|
|
3589
3594
|
[env]
|
|
3590
3595
|
);
|
|
3591
|
-
const logout = (0,
|
|
3596
|
+
const logout = (0, import_react8.useCallback)(
|
|
3592
3597
|
async (service) => {
|
|
3593
3598
|
return env?.requests?.post(
|
|
3594
3599
|
"/logout" /* LOGOUT */,
|
|
@@ -3605,7 +3610,7 @@ function useAuthService() {
|
|
|
3605
3610
|
},
|
|
3606
3611
|
[env]
|
|
3607
3612
|
);
|
|
3608
|
-
const getTenantMapping = (0,
|
|
3613
|
+
const getTenantMapping = (0, import_react8.useCallback)(
|
|
3609
3614
|
async ({ shortName, service }) => {
|
|
3610
3615
|
const bodyData = {
|
|
3611
3616
|
short_name: shortName
|
|
@@ -3623,7 +3628,7 @@ function useAuthService() {
|
|
|
3623
3628
|
},
|
|
3624
3629
|
[env]
|
|
3625
3630
|
);
|
|
3626
|
-
const getToken = (0,
|
|
3631
|
+
const getToken = (0, import_react8.useCallback)(
|
|
3627
3632
|
async ({
|
|
3628
3633
|
phone,
|
|
3629
3634
|
name,
|
|
@@ -3667,10 +3672,10 @@ function useAuthService() {
|
|
|
3667
3672
|
}
|
|
3668
3673
|
|
|
3669
3674
|
// src/services/company-service/index.ts
|
|
3670
|
-
var
|
|
3675
|
+
var import_react9 = require("react");
|
|
3671
3676
|
function useCompanyService() {
|
|
3672
3677
|
const { env } = useEnv();
|
|
3673
|
-
const getCurrentCompany = (0,
|
|
3678
|
+
const getCurrentCompany = (0, import_react9.useCallback)(
|
|
3674
3679
|
async (service) => {
|
|
3675
3680
|
return await env.requests.get(
|
|
3676
3681
|
"/company" /* COMPANY_PATH */,
|
|
@@ -3684,7 +3689,7 @@ function useCompanyService() {
|
|
|
3684
3689
|
},
|
|
3685
3690
|
[env]
|
|
3686
3691
|
);
|
|
3687
|
-
const getInfoCompany = (0,
|
|
3692
|
+
const getInfoCompany = (0, import_react9.useCallback)(
|
|
3688
3693
|
async (id, service) => {
|
|
3689
3694
|
const jsonData = {
|
|
3690
3695
|
ids: [id],
|
|
@@ -3720,10 +3725,10 @@ function useCompanyService() {
|
|
|
3720
3725
|
}
|
|
3721
3726
|
|
|
3722
3727
|
// src/services/excel-service/index.ts
|
|
3723
|
-
var
|
|
3728
|
+
var import_react10 = require("react");
|
|
3724
3729
|
function useExcelService() {
|
|
3725
3730
|
const { env } = useEnv();
|
|
3726
|
-
const uploadFileExcel = (0,
|
|
3731
|
+
const uploadFileExcel = (0, import_react10.useCallback)(
|
|
3727
3732
|
async ({
|
|
3728
3733
|
formData,
|
|
3729
3734
|
service,
|
|
@@ -3740,7 +3745,7 @@ function useExcelService() {
|
|
|
3740
3745
|
},
|
|
3741
3746
|
[env]
|
|
3742
3747
|
);
|
|
3743
|
-
const uploadIdFile = (0,
|
|
3748
|
+
const uploadIdFile = (0, import_react10.useCallback)(
|
|
3744
3749
|
async ({
|
|
3745
3750
|
formData,
|
|
3746
3751
|
service,
|
|
@@ -3757,7 +3762,7 @@ function useExcelService() {
|
|
|
3757
3762
|
},
|
|
3758
3763
|
[env]
|
|
3759
3764
|
);
|
|
3760
|
-
const parsePreview = (0,
|
|
3765
|
+
const parsePreview = (0, import_react10.useCallback)(
|
|
3761
3766
|
async ({
|
|
3762
3767
|
id,
|
|
3763
3768
|
selectedSheet,
|
|
@@ -3806,7 +3811,7 @@ function useExcelService() {
|
|
|
3806
3811
|
},
|
|
3807
3812
|
[env]
|
|
3808
3813
|
);
|
|
3809
|
-
const executeImport = (0,
|
|
3814
|
+
const executeImport = (0, import_react10.useCallback)(
|
|
3810
3815
|
async ({
|
|
3811
3816
|
columns,
|
|
3812
3817
|
fields,
|
|
@@ -3840,7 +3845,7 @@ function useExcelService() {
|
|
|
3840
3845
|
},
|
|
3841
3846
|
[env]
|
|
3842
3847
|
);
|
|
3843
|
-
const getFileExcel = (0,
|
|
3848
|
+
const getFileExcel = (0, import_react10.useCallback)(
|
|
3844
3849
|
async ({
|
|
3845
3850
|
model,
|
|
3846
3851
|
service,
|
|
@@ -3864,7 +3869,7 @@ function useExcelService() {
|
|
|
3864
3869
|
},
|
|
3865
3870
|
[env]
|
|
3866
3871
|
);
|
|
3867
|
-
const getFieldExport = (0,
|
|
3872
|
+
const getFieldExport = (0, import_react10.useCallback)(
|
|
3868
3873
|
async ({
|
|
3869
3874
|
ids,
|
|
3870
3875
|
model,
|
|
@@ -3904,7 +3909,7 @@ function useExcelService() {
|
|
|
3904
3909
|
},
|
|
3905
3910
|
[env]
|
|
3906
3911
|
);
|
|
3907
|
-
const exportExcel = (0,
|
|
3912
|
+
const exportExcel = (0, import_react10.useCallback)(
|
|
3908
3913
|
async ({
|
|
3909
3914
|
model,
|
|
3910
3915
|
domain,
|
|
@@ -3952,10 +3957,10 @@ function useExcelService() {
|
|
|
3952
3957
|
}
|
|
3953
3958
|
|
|
3954
3959
|
// src/services/form-service/index.ts
|
|
3955
|
-
var
|
|
3960
|
+
var import_react11 = require("react");
|
|
3956
3961
|
function useFormService() {
|
|
3957
3962
|
const { env } = useEnv();
|
|
3958
|
-
const getComment = (0,
|
|
3963
|
+
const getComment = (0, import_react11.useCallback)(
|
|
3959
3964
|
async ({ data }) => {
|
|
3960
3965
|
const jsonData = {
|
|
3961
3966
|
thread_id: data.thread_id,
|
|
@@ -3973,7 +3978,7 @@ function useFormService() {
|
|
|
3973
3978
|
},
|
|
3974
3979
|
[env]
|
|
3975
3980
|
);
|
|
3976
|
-
const getThreadData = (0,
|
|
3981
|
+
const getThreadData = (0, import_react11.useCallback)(
|
|
3977
3982
|
async ({
|
|
3978
3983
|
data,
|
|
3979
3984
|
xNode,
|
|
@@ -4000,7 +4005,7 @@ function useFormService() {
|
|
|
4000
4005
|
},
|
|
4001
4006
|
[env]
|
|
4002
4007
|
);
|
|
4003
|
-
const getThreadMessages = (0,
|
|
4008
|
+
const getThreadMessages = (0, import_react11.useCallback)(
|
|
4004
4009
|
async ({
|
|
4005
4010
|
data,
|
|
4006
4011
|
xNode,
|
|
@@ -4026,7 +4031,7 @@ function useFormService() {
|
|
|
4026
4031
|
},
|
|
4027
4032
|
[env]
|
|
4028
4033
|
);
|
|
4029
|
-
const sentComment = (0,
|
|
4034
|
+
const sentComment = (0, import_react11.useCallback)(
|
|
4030
4035
|
async ({ data }) => {
|
|
4031
4036
|
const jsonData = {
|
|
4032
4037
|
context: {
|
|
@@ -4054,7 +4059,7 @@ function useFormService() {
|
|
|
4054
4059
|
},
|
|
4055
4060
|
[env]
|
|
4056
4061
|
);
|
|
4057
|
-
const deleteComment = (0,
|
|
4062
|
+
const deleteComment = (0, import_react11.useCallback)(
|
|
4058
4063
|
async ({ data }) => {
|
|
4059
4064
|
const jsonData = {
|
|
4060
4065
|
attachment_ids: [],
|
|
@@ -4070,7 +4075,7 @@ function useFormService() {
|
|
|
4070
4075
|
},
|
|
4071
4076
|
[env]
|
|
4072
4077
|
);
|
|
4073
|
-
const getImage = (0,
|
|
4078
|
+
const getImage = (0, import_react11.useCallback)(
|
|
4074
4079
|
async ({ data }) => {
|
|
4075
4080
|
return env.requests.get(
|
|
4076
4081
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -4083,7 +4088,7 @@ function useFormService() {
|
|
|
4083
4088
|
},
|
|
4084
4089
|
[env]
|
|
4085
4090
|
);
|
|
4086
|
-
const uploadImage = (0,
|
|
4091
|
+
const uploadImage = (0, import_react11.useCallback)(
|
|
4087
4092
|
async ({
|
|
4088
4093
|
formData,
|
|
4089
4094
|
service,
|
|
@@ -4102,7 +4107,7 @@ function useFormService() {
|
|
|
4102
4107
|
},
|
|
4103
4108
|
[env]
|
|
4104
4109
|
);
|
|
4105
|
-
const uploadFile = (0,
|
|
4110
|
+
const uploadFile = (0, import_react11.useCallback)(
|
|
4106
4111
|
async ({
|
|
4107
4112
|
formData,
|
|
4108
4113
|
service,
|
|
@@ -4121,7 +4126,7 @@ function useFormService() {
|
|
|
4121
4126
|
},
|
|
4122
4127
|
[env]
|
|
4123
4128
|
);
|
|
4124
|
-
const getFormView = (0,
|
|
4129
|
+
const getFormView = (0, import_react11.useCallback)(
|
|
4125
4130
|
async ({ data }) => {
|
|
4126
4131
|
const jsonData = {
|
|
4127
4132
|
model: data.model,
|
|
@@ -4137,7 +4142,7 @@ function useFormService() {
|
|
|
4137
4142
|
},
|
|
4138
4143
|
[env]
|
|
4139
4144
|
);
|
|
4140
|
-
const changeStatus = (0,
|
|
4145
|
+
const changeStatus = (0, import_react11.useCallback)(
|
|
4141
4146
|
async ({ data }) => {
|
|
4142
4147
|
const vals = {
|
|
4143
4148
|
[data.name]: data.stage_id
|
|
@@ -4166,7 +4171,7 @@ function useFormService() {
|
|
|
4166
4171
|
},
|
|
4167
4172
|
[env]
|
|
4168
4173
|
);
|
|
4169
|
-
const getExternalTab = (0,
|
|
4174
|
+
const getExternalTab = (0, import_react11.useCallback)(
|
|
4170
4175
|
async ({ method, context, service, xNode }) => {
|
|
4171
4176
|
return env?.requests?.post(
|
|
4172
4177
|
"/call" /* CALL_PATH */,
|
|
@@ -4201,10 +4206,10 @@ function useFormService() {
|
|
|
4201
4206
|
}
|
|
4202
4207
|
|
|
4203
4208
|
// src/services/kanban-service/index.ts
|
|
4204
|
-
var
|
|
4209
|
+
var import_react12 = require("react");
|
|
4205
4210
|
function useKanbanService() {
|
|
4206
4211
|
const { env } = useEnv();
|
|
4207
|
-
const getGroups = (0,
|
|
4212
|
+
const getGroups = (0, import_react12.useCallback)(
|
|
4208
4213
|
async ({ model, width_context }) => {
|
|
4209
4214
|
const jsonData = {
|
|
4210
4215
|
model,
|
|
@@ -4224,7 +4229,7 @@ function useKanbanService() {
|
|
|
4224
4229
|
},
|
|
4225
4230
|
[env]
|
|
4226
4231
|
);
|
|
4227
|
-
const getProgressBar = (0,
|
|
4232
|
+
const getProgressBar = (0, import_react12.useCallback)(
|
|
4228
4233
|
async ({ field, color, model, width_context }) => {
|
|
4229
4234
|
const jsonData = {
|
|
4230
4235
|
model,
|
|
@@ -4254,11 +4259,11 @@ function useKanbanService() {
|
|
|
4254
4259
|
}
|
|
4255
4260
|
|
|
4256
4261
|
// src/services/model-service/index.ts
|
|
4257
|
-
var
|
|
4262
|
+
var import_react13 = require("react");
|
|
4258
4263
|
var OBJECT_POSITION = 2;
|
|
4259
4264
|
function useModelService() {
|
|
4260
4265
|
const { env } = useEnv();
|
|
4261
|
-
const getListMyBankAccount = (0,
|
|
4266
|
+
const getListMyBankAccount = (0, import_react13.useCallback)(
|
|
4262
4267
|
async ({
|
|
4263
4268
|
domain,
|
|
4264
4269
|
spectification,
|
|
@@ -4282,7 +4287,7 @@ function useModelService() {
|
|
|
4282
4287
|
},
|
|
4283
4288
|
[env]
|
|
4284
4289
|
);
|
|
4285
|
-
const getCurrency = (0,
|
|
4290
|
+
const getCurrency = (0, import_react13.useCallback)(async () => {
|
|
4286
4291
|
const jsonData = {
|
|
4287
4292
|
model: "res.currency",
|
|
4288
4293
|
method: "web_search_read",
|
|
@@ -4302,7 +4307,7 @@ function useModelService() {
|
|
|
4302
4307
|
}
|
|
4303
4308
|
});
|
|
4304
4309
|
}, [env]);
|
|
4305
|
-
const getConversionRate = (0,
|
|
4310
|
+
const getConversionRate = (0, import_react13.useCallback)(async () => {
|
|
4306
4311
|
const jsonData = {
|
|
4307
4312
|
model: "res.currency",
|
|
4308
4313
|
method: "web_search_read",
|
|
@@ -4328,7 +4333,7 @@ function useModelService() {
|
|
|
4328
4333
|
}
|
|
4329
4334
|
});
|
|
4330
4335
|
}, [env]);
|
|
4331
|
-
const getAll = (0,
|
|
4336
|
+
const getAll = (0, import_react13.useCallback)(
|
|
4332
4337
|
async ({
|
|
4333
4338
|
data,
|
|
4334
4339
|
service,
|
|
@@ -4370,7 +4375,7 @@ function useModelService() {
|
|
|
4370
4375
|
},
|
|
4371
4376
|
[env]
|
|
4372
4377
|
);
|
|
4373
|
-
const getListCalendar = (0,
|
|
4378
|
+
const getListCalendar = (0, import_react13.useCallback)(
|
|
4374
4379
|
async ({ data }) => {
|
|
4375
4380
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
4376
4381
|
fields: data.fields,
|
|
@@ -4401,7 +4406,7 @@ function useModelService() {
|
|
|
4401
4406
|
},
|
|
4402
4407
|
[env]
|
|
4403
4408
|
);
|
|
4404
|
-
const getList = (0,
|
|
4409
|
+
const getList = (0, import_react13.useCallback)(
|
|
4405
4410
|
async ({
|
|
4406
4411
|
model,
|
|
4407
4412
|
ids = [],
|
|
@@ -4433,7 +4438,7 @@ function useModelService() {
|
|
|
4433
4438
|
},
|
|
4434
4439
|
[env]
|
|
4435
4440
|
);
|
|
4436
|
-
const getDetail = (0,
|
|
4441
|
+
const getDetail = (0, import_react13.useCallback)(
|
|
4437
4442
|
async ({
|
|
4438
4443
|
ids = [],
|
|
4439
4444
|
model,
|
|
@@ -4465,7 +4470,7 @@ function useModelService() {
|
|
|
4465
4470
|
},
|
|
4466
4471
|
[env]
|
|
4467
4472
|
);
|
|
4468
|
-
const save = (0,
|
|
4473
|
+
const save = (0, import_react13.useCallback)(
|
|
4469
4474
|
async ({
|
|
4470
4475
|
model,
|
|
4471
4476
|
ids = [],
|
|
@@ -4500,7 +4505,7 @@ function useModelService() {
|
|
|
4500
4505
|
},
|
|
4501
4506
|
[env]
|
|
4502
4507
|
);
|
|
4503
|
-
const deleteApi = (0,
|
|
4508
|
+
const deleteApi = (0, import_react13.useCallback)(
|
|
4504
4509
|
async ({ ids = [], model, service }) => {
|
|
4505
4510
|
const jsonData = {
|
|
4506
4511
|
model,
|
|
@@ -4520,7 +4525,7 @@ function useModelService() {
|
|
|
4520
4525
|
},
|
|
4521
4526
|
[env]
|
|
4522
4527
|
);
|
|
4523
|
-
const onChange = (0,
|
|
4528
|
+
const onChange = (0, import_react13.useCallback)(
|
|
4524
4529
|
async ({
|
|
4525
4530
|
ids = [],
|
|
4526
4531
|
model,
|
|
@@ -4556,7 +4561,7 @@ function useModelService() {
|
|
|
4556
4561
|
},
|
|
4557
4562
|
[env]
|
|
4558
4563
|
);
|
|
4559
|
-
const getListFieldsOnchange = (0,
|
|
4564
|
+
const getListFieldsOnchange = (0, import_react13.useCallback)(
|
|
4560
4565
|
async ({
|
|
4561
4566
|
model,
|
|
4562
4567
|
service,
|
|
@@ -4580,7 +4585,7 @@ function useModelService() {
|
|
|
4580
4585
|
},
|
|
4581
4586
|
[env]
|
|
4582
4587
|
);
|
|
4583
|
-
const parseORMOdoo = (0,
|
|
4588
|
+
const parseORMOdoo = (0, import_react13.useCallback)((data) => {
|
|
4584
4589
|
for (const key in data) {
|
|
4585
4590
|
if (key === "display_name") {
|
|
4586
4591
|
delete data[key];
|
|
@@ -4593,7 +4598,7 @@ function useModelService() {
|
|
|
4593
4598
|
}
|
|
4594
4599
|
return { ...data };
|
|
4595
4600
|
}, []);
|
|
4596
|
-
const toDataJS = (0,
|
|
4601
|
+
const toDataJS = (0, import_react13.useCallback)(
|
|
4597
4602
|
(data, viewData, model) => {
|
|
4598
4603
|
for (const key in data) {
|
|
4599
4604
|
if (data[key] === false) {
|
|
@@ -4653,10 +4658,10 @@ function useModelService() {
|
|
|
4653
4658
|
}
|
|
4654
4659
|
|
|
4655
4660
|
// src/services/user-service/index.ts
|
|
4656
|
-
var
|
|
4661
|
+
var import_react14 = require("react");
|
|
4657
4662
|
function useUserService() {
|
|
4658
4663
|
const { env } = useEnv();
|
|
4659
|
-
const getProfile = (0,
|
|
4664
|
+
const getProfile = (0, import_react14.useCallback)(
|
|
4660
4665
|
async (service, path) => {
|
|
4661
4666
|
return env?.requests?.get(
|
|
4662
4667
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -4670,7 +4675,7 @@ function useUserService() {
|
|
|
4670
4675
|
},
|
|
4671
4676
|
[env]
|
|
4672
4677
|
);
|
|
4673
|
-
const getUser = (0,
|
|
4678
|
+
const getUser = (0, import_react14.useCallback)(
|
|
4674
4679
|
async ({ context, id }) => {
|
|
4675
4680
|
const jsonData = {
|
|
4676
4681
|
model: "res.users",
|
|
@@ -4708,7 +4713,7 @@ function useUserService() {
|
|
|
4708
4713
|
},
|
|
4709
4714
|
[env]
|
|
4710
4715
|
);
|
|
4711
|
-
const switchUserLocale = (0,
|
|
4716
|
+
const switchUserLocale = (0, import_react14.useCallback)(
|
|
4712
4717
|
async ({ id, values, service }) => {
|
|
4713
4718
|
const jsonData = {
|
|
4714
4719
|
model: "res.users",
|
|
@@ -4736,10 +4741,10 @@ function useUserService() {
|
|
|
4736
4741
|
}
|
|
4737
4742
|
|
|
4738
4743
|
// src/services/view-service/index.ts
|
|
4739
|
-
var
|
|
4744
|
+
var import_react15 = require("react");
|
|
4740
4745
|
function useViewService() {
|
|
4741
4746
|
const { env } = useEnv();
|
|
4742
|
-
const getView = (0,
|
|
4747
|
+
const getView = (0, import_react15.useCallback)(
|
|
4743
4748
|
async ({
|
|
4744
4749
|
model,
|
|
4745
4750
|
views,
|
|
@@ -4779,7 +4784,7 @@ function useViewService() {
|
|
|
4779
4784
|
},
|
|
4780
4785
|
[env]
|
|
4781
4786
|
);
|
|
4782
|
-
const getMenu = (0,
|
|
4787
|
+
const getMenu = (0, import_react15.useCallback)(
|
|
4783
4788
|
async (context, specification, domain, service) => {
|
|
4784
4789
|
const jsonData = {
|
|
4785
4790
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -4810,7 +4815,7 @@ function useViewService() {
|
|
|
4810
4815
|
},
|
|
4811
4816
|
[env]
|
|
4812
4817
|
);
|
|
4813
|
-
const getActionDetail = (0,
|
|
4818
|
+
const getActionDetail = (0, import_react15.useCallback)(
|
|
4814
4819
|
async (aid, context) => {
|
|
4815
4820
|
const jsonData = {
|
|
4816
4821
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -4840,7 +4845,7 @@ function useViewService() {
|
|
|
4840
4845
|
},
|
|
4841
4846
|
[env]
|
|
4842
4847
|
);
|
|
4843
|
-
const getResequence = (0,
|
|
4848
|
+
const getResequence = (0, import_react15.useCallback)(
|
|
4844
4849
|
async ({
|
|
4845
4850
|
model,
|
|
4846
4851
|
ids,
|
|
@@ -4870,7 +4875,7 @@ function useViewService() {
|
|
|
4870
4875
|
},
|
|
4871
4876
|
[env]
|
|
4872
4877
|
);
|
|
4873
|
-
const getSelectionItem = (0,
|
|
4878
|
+
const getSelectionItem = (0, import_react15.useCallback)(
|
|
4874
4879
|
async ({
|
|
4875
4880
|
data,
|
|
4876
4881
|
service,
|
|
@@ -4907,7 +4912,7 @@ function useViewService() {
|
|
|
4907
4912
|
},
|
|
4908
4913
|
[env]
|
|
4909
4914
|
);
|
|
4910
|
-
const loadMessages = (0,
|
|
4915
|
+
const loadMessages = (0, import_react15.useCallback)(async () => {
|
|
4911
4916
|
return env.requests.post(
|
|
4912
4917
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
4913
4918
|
{},
|
|
@@ -4918,14 +4923,14 @@ function useViewService() {
|
|
|
4918
4923
|
}
|
|
4919
4924
|
);
|
|
4920
4925
|
}, [env]);
|
|
4921
|
-
const getVersion = (0,
|
|
4926
|
+
const getVersion = (0, import_react15.useCallback)(async () => {
|
|
4922
4927
|
return env?.requests?.get("", {
|
|
4923
4928
|
headers: {
|
|
4924
4929
|
"Content-Type": "application/json"
|
|
4925
4930
|
}
|
|
4926
4931
|
});
|
|
4927
4932
|
}, [env]);
|
|
4928
|
-
const grantAccess = (0,
|
|
4933
|
+
const grantAccess = (0, import_react15.useCallback)(
|
|
4929
4934
|
async ({
|
|
4930
4935
|
redirect_uri,
|
|
4931
4936
|
state,
|
|
@@ -4952,7 +4957,7 @@ function useViewService() {
|
|
|
4952
4957
|
},
|
|
4953
4958
|
[env]
|
|
4954
4959
|
);
|
|
4955
|
-
const removeTotpSetUp = (0,
|
|
4960
|
+
const removeTotpSetUp = (0, import_react15.useCallback)(
|
|
4956
4961
|
async ({ method, token }) => {
|
|
4957
4962
|
const jsonData = {
|
|
4958
4963
|
method,
|
|
@@ -4973,7 +4978,7 @@ function useViewService() {
|
|
|
4973
4978
|
},
|
|
4974
4979
|
[env]
|
|
4975
4980
|
);
|
|
4976
|
-
const requestSetupTotp = (0,
|
|
4981
|
+
const requestSetupTotp = (0, import_react15.useCallback)(
|
|
4977
4982
|
async ({ method, token }) => {
|
|
4978
4983
|
const jsonData = {
|
|
4979
4984
|
method,
|
|
@@ -4992,7 +4997,7 @@ function useViewService() {
|
|
|
4992
4997
|
},
|
|
4993
4998
|
[env]
|
|
4994
4999
|
);
|
|
4995
|
-
const settingsWebRead2fa = (0,
|
|
5000
|
+
const settingsWebRead2fa = (0, import_react15.useCallback)(
|
|
4996
5001
|
async ({
|
|
4997
5002
|
method,
|
|
4998
5003
|
model,
|
|
@@ -5020,7 +5025,7 @@ function useViewService() {
|
|
|
5020
5025
|
},
|
|
5021
5026
|
[env]
|
|
5022
5027
|
);
|
|
5023
|
-
const signInSSO = (0,
|
|
5028
|
+
const signInSSO = (0, import_react15.useCallback)(
|
|
5024
5029
|
async ({
|
|
5025
5030
|
redirect_uri,
|
|
5026
5031
|
state,
|
|
@@ -5052,7 +5057,7 @@ function useViewService() {
|
|
|
5052
5057
|
},
|
|
5053
5058
|
[env]
|
|
5054
5059
|
);
|
|
5055
|
-
const verify2FA = (0,
|
|
5060
|
+
const verify2FA = (0, import_react15.useCallback)(
|
|
5056
5061
|
({
|
|
5057
5062
|
method,
|
|
5058
5063
|
with_context,
|
|
@@ -5085,7 +5090,7 @@ function useViewService() {
|
|
|
5085
5090
|
},
|
|
5086
5091
|
[env]
|
|
5087
5092
|
);
|
|
5088
|
-
const get2FAMethods = (0,
|
|
5093
|
+
const get2FAMethods = (0, import_react15.useCallback)(
|
|
5089
5094
|
({ method, with_context }) => {
|
|
5090
5095
|
const jsonData = {
|
|
5091
5096
|
method,
|
|
@@ -5104,7 +5109,7 @@ function useViewService() {
|
|
|
5104
5109
|
},
|
|
5105
5110
|
[env]
|
|
5106
5111
|
);
|
|
5107
|
-
const verifyTotp = (0,
|
|
5112
|
+
const verifyTotp = (0, import_react15.useCallback)(
|
|
5108
5113
|
({
|
|
5109
5114
|
method,
|
|
5110
5115
|
action_token,
|
|
@@ -5129,7 +5134,7 @@ function useViewService() {
|
|
|
5129
5134
|
},
|
|
5130
5135
|
[env]
|
|
5131
5136
|
);
|
|
5132
|
-
const getASession = (0,
|
|
5137
|
+
const getASession = (0, import_react15.useCallback)(
|
|
5133
5138
|
async ({
|
|
5134
5139
|
model,
|
|
5135
5140
|
args,
|
|
@@ -5172,7 +5177,7 @@ function useViewService() {
|
|
|
5172
5177
|
},
|
|
5173
5178
|
[env]
|
|
5174
5179
|
);
|
|
5175
|
-
const updateClosedSession = (0,
|
|
5180
|
+
const updateClosedSession = (0, import_react15.useCallback)(
|
|
5176
5181
|
({
|
|
5177
5182
|
model,
|
|
5178
5183
|
domain,
|
|
@@ -5199,7 +5204,7 @@ function useViewService() {
|
|
|
5199
5204
|
},
|
|
5200
5205
|
[env]
|
|
5201
5206
|
);
|
|
5202
|
-
const manageSession = (0,
|
|
5207
|
+
const manageSession = (0, import_react15.useCallback)(
|
|
5203
5208
|
({
|
|
5204
5209
|
model,
|
|
5205
5210
|
method,
|
|
@@ -5230,7 +5235,7 @@ function useViewService() {
|
|
|
5230
5235
|
},
|
|
5231
5236
|
[env]
|
|
5232
5237
|
);
|
|
5233
|
-
const handleClosingSession = (0,
|
|
5238
|
+
const handleClosingSession = (0, import_react15.useCallback)(
|
|
5234
5239
|
({
|
|
5235
5240
|
model,
|
|
5236
5241
|
method,
|
|
@@ -5259,7 +5264,7 @@ function useViewService() {
|
|
|
5259
5264
|
},
|
|
5260
5265
|
[env]
|
|
5261
5266
|
);
|
|
5262
|
-
const createSession = (0,
|
|
5267
|
+
const createSession = (0, import_react15.useCallback)(
|
|
5263
5268
|
({
|
|
5264
5269
|
model,
|
|
5265
5270
|
configId,
|
|
@@ -5289,7 +5294,7 @@ function useViewService() {
|
|
|
5289
5294
|
},
|
|
5290
5295
|
[env]
|
|
5291
5296
|
);
|
|
5292
|
-
const getPOS = (0,
|
|
5297
|
+
const getPOS = (0, import_react15.useCallback)(
|
|
5293
5298
|
({
|
|
5294
5299
|
model,
|
|
5295
5300
|
args,
|
|
@@ -5347,7 +5352,7 @@ function useViewService() {
|
|
|
5347
5352
|
},
|
|
5348
5353
|
[env]
|
|
5349
5354
|
);
|
|
5350
|
-
const createEntity = (0,
|
|
5355
|
+
const createEntity = (0, import_react15.useCallback)(
|
|
5351
5356
|
({
|
|
5352
5357
|
model,
|
|
5353
5358
|
args,
|
|
@@ -5373,7 +5378,7 @@ function useViewService() {
|
|
|
5373
5378
|
},
|
|
5374
5379
|
[env]
|
|
5375
5380
|
);
|
|
5376
|
-
const addEntity = (0,
|
|
5381
|
+
const addEntity = (0, import_react15.useCallback)(
|
|
5377
5382
|
({
|
|
5378
5383
|
model,
|
|
5379
5384
|
values,
|
|
@@ -5399,7 +5404,7 @@ function useViewService() {
|
|
|
5399
5404
|
},
|
|
5400
5405
|
[env]
|
|
5401
5406
|
);
|
|
5402
|
-
const getList = (0,
|
|
5407
|
+
const getList = (0, import_react15.useCallback)(
|
|
5403
5408
|
({
|
|
5404
5409
|
model,
|
|
5405
5410
|
domain,
|
|
@@ -5433,7 +5438,7 @@ function useViewService() {
|
|
|
5433
5438
|
},
|
|
5434
5439
|
[env]
|
|
5435
5440
|
);
|
|
5436
|
-
const updateEntity = (0,
|
|
5441
|
+
const updateEntity = (0, import_react15.useCallback)(
|
|
5437
5442
|
({
|
|
5438
5443
|
model,
|
|
5439
5444
|
domain,
|
|
@@ -5461,7 +5466,7 @@ function useViewService() {
|
|
|
5461
5466
|
},
|
|
5462
5467
|
[env]
|
|
5463
5468
|
);
|
|
5464
|
-
const deleteEntity = (0,
|
|
5469
|
+
const deleteEntity = (0, import_react15.useCallback)(
|
|
5465
5470
|
({
|
|
5466
5471
|
model,
|
|
5467
5472
|
ids,
|
|
@@ -5488,7 +5493,7 @@ function useViewService() {
|
|
|
5488
5493
|
},
|
|
5489
5494
|
[env]
|
|
5490
5495
|
);
|
|
5491
|
-
const loadDataPosSession = (0,
|
|
5496
|
+
const loadDataPosSession = (0, import_react15.useCallback)(
|
|
5492
5497
|
({
|
|
5493
5498
|
model,
|
|
5494
5499
|
ids,
|
|
@@ -5526,7 +5531,7 @@ function useViewService() {
|
|
|
5526
5531
|
},
|
|
5527
5532
|
[env]
|
|
5528
5533
|
);
|
|
5529
|
-
const getPreparaionDisplayData = (0,
|
|
5534
|
+
const getPreparaionDisplayData = (0, import_react15.useCallback)(
|
|
5530
5535
|
({
|
|
5531
5536
|
ids,
|
|
5532
5537
|
xNode,
|
|
@@ -5551,7 +5556,7 @@ function useViewService() {
|
|
|
5551
5556
|
},
|
|
5552
5557
|
[env]
|
|
5553
5558
|
);
|
|
5554
|
-
const manageOnChange = (0,
|
|
5559
|
+
const manageOnChange = (0, import_react15.useCallback)(
|
|
5555
5560
|
({
|
|
5556
5561
|
model,
|
|
5557
5562
|
ids,
|
|
@@ -5579,7 +5584,7 @@ function useViewService() {
|
|
|
5579
5584
|
},
|
|
5580
5585
|
[env]
|
|
5581
5586
|
);
|
|
5582
|
-
const getOrderLine = (0,
|
|
5587
|
+
const getOrderLine = (0, import_react15.useCallback)(
|
|
5583
5588
|
({
|
|
5584
5589
|
model,
|
|
5585
5590
|
ids,
|
|
@@ -5609,7 +5614,7 @@ function useViewService() {
|
|
|
5609
5614
|
},
|
|
5610
5615
|
[env]
|
|
5611
5616
|
);
|
|
5612
|
-
const getProductImage = (0,
|
|
5617
|
+
const getProductImage = (0, import_react15.useCallback)(
|
|
5613
5618
|
({
|
|
5614
5619
|
model,
|
|
5615
5620
|
fields,
|
|
@@ -5642,7 +5647,7 @@ function useViewService() {
|
|
|
5642
5647
|
},
|
|
5643
5648
|
[env]
|
|
5644
5649
|
);
|
|
5645
|
-
const checkPayment = (0,
|
|
5650
|
+
const checkPayment = (0, import_react15.useCallback)(
|
|
5646
5651
|
({
|
|
5647
5652
|
model,
|
|
5648
5653
|
ids,
|
|
@@ -5670,7 +5675,7 @@ function useViewService() {
|
|
|
5670
5675
|
},
|
|
5671
5676
|
[env]
|
|
5672
5677
|
);
|
|
5673
|
-
const handleCloseSession = (0,
|
|
5678
|
+
const handleCloseSession = (0, import_react15.useCallback)(
|
|
5674
5679
|
({
|
|
5675
5680
|
model,
|
|
5676
5681
|
ids,
|
|
@@ -5697,7 +5702,7 @@ function useViewService() {
|
|
|
5697
5702
|
},
|
|
5698
5703
|
[env]
|
|
5699
5704
|
);
|
|
5700
|
-
const handleClosingDetailSession = (0,
|
|
5705
|
+
const handleClosingDetailSession = (0, import_react15.useCallback)(
|
|
5701
5706
|
({
|
|
5702
5707
|
model,
|
|
5703
5708
|
ids,
|
|
@@ -5726,7 +5731,7 @@ function useViewService() {
|
|
|
5726
5731
|
},
|
|
5727
5732
|
[env]
|
|
5728
5733
|
);
|
|
5729
|
-
const createPosConfig = (0,
|
|
5734
|
+
const createPosConfig = (0, import_react15.useCallback)(
|
|
5730
5735
|
({
|
|
5731
5736
|
model,
|
|
5732
5737
|
name,
|
|
@@ -5755,7 +5760,7 @@ function useViewService() {
|
|
|
5755
5760
|
},
|
|
5756
5761
|
[env]
|
|
5757
5762
|
);
|
|
5758
|
-
const searchJournal = (0,
|
|
5763
|
+
const searchJournal = (0, import_react15.useCallback)(
|
|
5759
5764
|
({
|
|
5760
5765
|
model,
|
|
5761
5766
|
method,
|
|
@@ -5784,7 +5789,7 @@ function useViewService() {
|
|
|
5784
5789
|
},
|
|
5785
5790
|
[env]
|
|
5786
5791
|
);
|
|
5787
|
-
const changeOrderPreparaionState = (0,
|
|
5792
|
+
const changeOrderPreparaionState = (0, import_react15.useCallback)(
|
|
5788
5793
|
({
|
|
5789
5794
|
orderId,
|
|
5790
5795
|
stageId,
|
|
@@ -5815,7 +5820,7 @@ function useViewService() {
|
|
|
5815
5820
|
},
|
|
5816
5821
|
[env]
|
|
5817
5822
|
);
|
|
5818
|
-
const updateOrderStatus = (0,
|
|
5823
|
+
const updateOrderStatus = (0, import_react15.useCallback)(
|
|
5819
5824
|
({
|
|
5820
5825
|
orderId,
|
|
5821
5826
|
state,
|
|
@@ -5840,7 +5845,7 @@ function useViewService() {
|
|
|
5840
5845
|
},
|
|
5841
5846
|
[env]
|
|
5842
5847
|
);
|
|
5843
|
-
const processOrder = (0,
|
|
5848
|
+
const processOrder = (0, import_react15.useCallback)(
|
|
5844
5849
|
({
|
|
5845
5850
|
orderId,
|
|
5846
5851
|
xNode,
|
|
@@ -5867,7 +5872,7 @@ function useViewService() {
|
|
|
5867
5872
|
},
|
|
5868
5873
|
[env]
|
|
5869
5874
|
);
|
|
5870
|
-
const generatePaymentQRInfo = (0,
|
|
5875
|
+
const generatePaymentQRInfo = (0, import_react15.useCallback)(
|
|
5871
5876
|
({
|
|
5872
5877
|
orderId,
|
|
5873
5878
|
amount,
|
|
@@ -5894,7 +5899,7 @@ function useViewService() {
|
|
|
5894
5899
|
},
|
|
5895
5900
|
[env]
|
|
5896
5901
|
);
|
|
5897
|
-
const savePinCode = (0,
|
|
5902
|
+
const savePinCode = (0, import_react15.useCallback)(
|
|
5898
5903
|
({
|
|
5899
5904
|
serialNumber,
|
|
5900
5905
|
pinCode,
|
|
@@ -5919,7 +5924,7 @@ function useViewService() {
|
|
|
5919
5924
|
},
|
|
5920
5925
|
[env]
|
|
5921
5926
|
);
|
|
5922
|
-
const getPinCode = (0,
|
|
5927
|
+
const getPinCode = (0, import_react15.useCallback)(
|
|
5923
5928
|
({
|
|
5924
5929
|
serialNumber,
|
|
5925
5930
|
xNode,
|
|
@@ -5942,7 +5947,7 @@ function useViewService() {
|
|
|
5942
5947
|
},
|
|
5943
5948
|
[env]
|
|
5944
5949
|
);
|
|
5945
|
-
const getNotifications = (0,
|
|
5950
|
+
const getNotifications = (0, import_react15.useCallback)(
|
|
5946
5951
|
async ({
|
|
5947
5952
|
service,
|
|
5948
5953
|
xNode,
|
|
@@ -6010,10 +6015,10 @@ function useViewService() {
|
|
|
6010
6015
|
}
|
|
6011
6016
|
|
|
6012
6017
|
// src/services/dashboard-service/index.ts
|
|
6013
|
-
var
|
|
6018
|
+
var import_react16 = require("react");
|
|
6014
6019
|
function useDashboardService() {
|
|
6015
6020
|
const { env } = useEnv();
|
|
6016
|
-
const readGroup = (0,
|
|
6021
|
+
const readGroup = (0, import_react16.useCallback)(
|
|
6017
6022
|
async ({
|
|
6018
6023
|
service,
|
|
6019
6024
|
xNode,
|
|
@@ -6030,7 +6035,7 @@ function useDashboardService() {
|
|
|
6030
6035
|
},
|
|
6031
6036
|
[env]
|
|
6032
6037
|
);
|
|
6033
|
-
const getDataChart = (0,
|
|
6038
|
+
const getDataChart = (0, import_react16.useCallback)(
|
|
6034
6039
|
async ({
|
|
6035
6040
|
service,
|
|
6036
6041
|
xNode,
|