@fctc/interface-logic 4.2.4 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks.d.mts +8 -8
- package/dist/hooks.d.ts +8 -8
- package/dist/hooks.js +98 -97
- package/dist/hooks.mjs +92 -91
- package/dist/provider.js +119 -118
- package/dist/provider.mjs +102 -101
- package/dist/services.d.mts +0 -7
- package/dist/services.d.ts +0 -7
- package/dist/services.js +149 -173
- package/dist/services.mjs +145 -169
- package/package.json +1 -1
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 useCallback4 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/constants/api/uri-constant.ts
|
|
5
5
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -3102,68 +3102,65 @@ import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
|
3102
3102
|
// src/hooks/view/use-get-product-image.ts
|
|
3103
3103
|
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
3104
3104
|
|
|
3105
|
-
// src/hooks/view/use-add-entity.ts
|
|
3106
|
-
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
3107
|
-
|
|
3108
3105
|
// src/hooks/view/use-check-payment.ts
|
|
3109
|
-
import { useMutation as
|
|
3106
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
3110
3107
|
|
|
3111
3108
|
// src/hooks/view/use-handle-close-session.ts
|
|
3112
|
-
import { useMutation as
|
|
3109
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
3113
3110
|
|
|
3114
3111
|
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3115
|
-
import { useMutation as
|
|
3112
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
3116
3113
|
|
|
3117
3114
|
// src/hooks/view/use-create-pos-config.ts
|
|
3118
|
-
import { useMutation as
|
|
3115
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
3119
3116
|
|
|
3120
3117
|
// src/hooks/view/use-search-journal.ts
|
|
3121
|
-
import { useMutation as
|
|
3118
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
3122
3119
|
|
|
3123
3120
|
// src/hooks/view/useGetPreparaionDisplayData.ts
|
|
3124
|
-
import { useMutation as
|
|
3121
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
3125
3122
|
|
|
3126
3123
|
// src/hooks/view/useChangeOrderPreparaionState.ts
|
|
3127
|
-
import { useMutation as
|
|
3124
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
3128
3125
|
|
|
3129
3126
|
// src/hooks/view/use-update-order-status.ts
|
|
3130
|
-
import { useMutation as
|
|
3127
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
3131
3128
|
|
|
3132
3129
|
// src/hooks/view/use-process-order.ts
|
|
3133
|
-
import { useMutation as
|
|
3130
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
3134
3131
|
|
|
3135
3132
|
// src/hooks/view/use-generate-payment-qr-info.ts
|
|
3136
|
-
import { useMutation as
|
|
3133
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
3137
3134
|
|
|
3138
3135
|
// src/hooks/view/use-save-pin-code.ts
|
|
3139
|
-
import { useMutation as
|
|
3136
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
3140
3137
|
|
|
3141
3138
|
// src/hooks/view/use-get-pin-code.ts
|
|
3142
|
-
import { useMutation as
|
|
3139
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
3143
3140
|
|
|
3144
3141
|
// src/hooks/view/use-get-notifications.ts
|
|
3145
3142
|
import { useQuery as useQuery23 } from "@tanstack/react-query";
|
|
3146
3143
|
|
|
3147
3144
|
// src/hooks/view/use-get-version.ts
|
|
3148
|
-
import { useMutation as
|
|
3145
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
3149
3146
|
|
|
3150
3147
|
// src/hooks/view/use-create-e-invoice.ts
|
|
3151
|
-
import { useMutation as
|
|
3148
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
3152
3149
|
|
|
3153
3150
|
// src/hooks/view/use-get-current-user.ts
|
|
3154
|
-
import { useMutation as
|
|
3151
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
3155
3152
|
|
|
3156
3153
|
// src/hooks/view/use-get-ward.ts
|
|
3157
|
-
import { useMutation as
|
|
3154
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
3158
3155
|
|
|
3159
3156
|
// src/hooks/view/use-get-city.ts
|
|
3160
|
-
import { useMutation as
|
|
3157
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
3161
3158
|
|
|
3162
3159
|
// src/hooks/view/use-get-country.ts
|
|
3163
|
-
import { useMutation as
|
|
3160
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
3164
3161
|
|
|
3165
3162
|
// src/hooks/view/use-get-partner-title.ts
|
|
3166
|
-
import { useMutation as
|
|
3163
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
3167
3164
|
|
|
3168
3165
|
// src/hooks/chart/use-read-group.ts
|
|
3169
3166
|
import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
@@ -3171,6 +3168,12 @@ import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
|
3171
3168
|
// src/hooks/chart/use-get-data-chart.ts
|
|
3172
3169
|
import { useQuery as useQuery25 } from "@tanstack/react-query";
|
|
3173
3170
|
|
|
3171
|
+
// src/hooks/pos/use-add-entity.ts
|
|
3172
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
3173
|
+
|
|
3174
|
+
// src/services/pos-service/add-entity.ts
|
|
3175
|
+
import { useCallback as useCallback3 } from "react";
|
|
3176
|
+
|
|
3174
3177
|
// src/provider/service-provider.tsx
|
|
3175
3178
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3176
3179
|
var ServiceContext = createContext2(null);
|
|
@@ -3182,7 +3185,7 @@ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
|
|
|
3182
3185
|
// src/services/action-service/index.ts
|
|
3183
3186
|
function useActionService() {
|
|
3184
3187
|
const { env } = useEnv();
|
|
3185
|
-
const loadAction =
|
|
3188
|
+
const loadAction = useCallback4(
|
|
3186
3189
|
async ({
|
|
3187
3190
|
idAction,
|
|
3188
3191
|
context,
|
|
@@ -3206,7 +3209,7 @@ function useActionService() {
|
|
|
3206
3209
|
},
|
|
3207
3210
|
[env]
|
|
3208
3211
|
);
|
|
3209
|
-
const callButton =
|
|
3212
|
+
const callButton = useCallback4(
|
|
3210
3213
|
async ({
|
|
3211
3214
|
model,
|
|
3212
3215
|
ids = [],
|
|
@@ -3240,7 +3243,7 @@ function useActionService() {
|
|
|
3240
3243
|
},
|
|
3241
3244
|
[env]
|
|
3242
3245
|
);
|
|
3243
|
-
const removeRows =
|
|
3246
|
+
const removeRows = useCallback4(
|
|
3244
3247
|
async ({
|
|
3245
3248
|
model,
|
|
3246
3249
|
ids,
|
|
@@ -3266,7 +3269,7 @@ function useActionService() {
|
|
|
3266
3269
|
},
|
|
3267
3270
|
[env]
|
|
3268
3271
|
);
|
|
3269
|
-
const duplicateRecord =
|
|
3272
|
+
const duplicateRecord = useCallback4(
|
|
3270
3273
|
async ({
|
|
3271
3274
|
model,
|
|
3272
3275
|
id,
|
|
@@ -3292,7 +3295,7 @@ function useActionService() {
|
|
|
3292
3295
|
},
|
|
3293
3296
|
[env]
|
|
3294
3297
|
);
|
|
3295
|
-
const getPrintReportName =
|
|
3298
|
+
const getPrintReportName = useCallback4(
|
|
3296
3299
|
async ({ id }) => {
|
|
3297
3300
|
const jsonData = {
|
|
3298
3301
|
model: "ir.actions.report",
|
|
@@ -3310,7 +3313,7 @@ function useActionService() {
|
|
|
3310
3313
|
},
|
|
3311
3314
|
[env]
|
|
3312
3315
|
);
|
|
3313
|
-
const print =
|
|
3316
|
+
const print = useCallback4(
|
|
3314
3317
|
async ({ id, report, db }) => {
|
|
3315
3318
|
const jsonData = {
|
|
3316
3319
|
report,
|
|
@@ -3328,7 +3331,7 @@ function useActionService() {
|
|
|
3328
3331
|
},
|
|
3329
3332
|
[env]
|
|
3330
3333
|
);
|
|
3331
|
-
const runAction =
|
|
3334
|
+
const runAction = useCallback4(
|
|
3332
3335
|
async ({
|
|
3333
3336
|
idAction,
|
|
3334
3337
|
context,
|
|
@@ -3355,7 +3358,7 @@ function useActionService() {
|
|
|
3355
3358
|
},
|
|
3356
3359
|
[env]
|
|
3357
3360
|
);
|
|
3358
|
-
const generateSerialNumber =
|
|
3361
|
+
const generateSerialNumber = useCallback4(
|
|
3359
3362
|
async ({
|
|
3360
3363
|
kwargs,
|
|
3361
3364
|
context,
|
|
@@ -3393,10 +3396,10 @@ function useActionService() {
|
|
|
3393
3396
|
}
|
|
3394
3397
|
|
|
3395
3398
|
// src/services/auth-service/index.ts
|
|
3396
|
-
import { useCallback as
|
|
3399
|
+
import { useCallback as useCallback5 } from "react";
|
|
3397
3400
|
function useAuthService() {
|
|
3398
3401
|
const { env } = useEnv();
|
|
3399
|
-
const login =
|
|
3402
|
+
const login = useCallback5(
|
|
3400
3403
|
async (body) => {
|
|
3401
3404
|
const payload = Object.fromEntries(
|
|
3402
3405
|
Object.entries({
|
|
@@ -3421,7 +3424,7 @@ function useAuthService() {
|
|
|
3421
3424
|
},
|
|
3422
3425
|
[env]
|
|
3423
3426
|
);
|
|
3424
|
-
const forgotPassword =
|
|
3427
|
+
const forgotPassword = useCallback5(
|
|
3425
3428
|
async (email) => {
|
|
3426
3429
|
const bodyData = {
|
|
3427
3430
|
login: email,
|
|
@@ -3435,7 +3438,7 @@ function useAuthService() {
|
|
|
3435
3438
|
},
|
|
3436
3439
|
[env]
|
|
3437
3440
|
);
|
|
3438
|
-
const forgotPasswordSSO =
|
|
3441
|
+
const forgotPasswordSSO = useCallback5(
|
|
3439
3442
|
async ({
|
|
3440
3443
|
email,
|
|
3441
3444
|
with_context,
|
|
@@ -3458,7 +3461,7 @@ function useAuthService() {
|
|
|
3458
3461
|
},
|
|
3459
3462
|
[env]
|
|
3460
3463
|
);
|
|
3461
|
-
const resetPassword =
|
|
3464
|
+
const resetPassword = useCallback5(
|
|
3462
3465
|
async (data, token) => {
|
|
3463
3466
|
const bodyData = {
|
|
3464
3467
|
token,
|
|
@@ -3473,7 +3476,7 @@ function useAuthService() {
|
|
|
3473
3476
|
},
|
|
3474
3477
|
[env]
|
|
3475
3478
|
);
|
|
3476
|
-
const resetPasswordSSO =
|
|
3479
|
+
const resetPasswordSSO = useCallback5(
|
|
3477
3480
|
async ({
|
|
3478
3481
|
method,
|
|
3479
3482
|
password,
|
|
@@ -3496,7 +3499,7 @@ function useAuthService() {
|
|
|
3496
3499
|
},
|
|
3497
3500
|
[env]
|
|
3498
3501
|
);
|
|
3499
|
-
const updatePassword =
|
|
3502
|
+
const updatePassword = useCallback5(
|
|
3500
3503
|
async (data, token) => {
|
|
3501
3504
|
const bodyData = {
|
|
3502
3505
|
token,
|
|
@@ -3511,7 +3514,7 @@ function useAuthService() {
|
|
|
3511
3514
|
},
|
|
3512
3515
|
[env]
|
|
3513
3516
|
);
|
|
3514
|
-
const isValidToken =
|
|
3517
|
+
const isValidToken = useCallback5(
|
|
3515
3518
|
async (token) => {
|
|
3516
3519
|
const bodyData = {
|
|
3517
3520
|
token
|
|
@@ -3524,7 +3527,7 @@ function useAuthService() {
|
|
|
3524
3527
|
},
|
|
3525
3528
|
[env]
|
|
3526
3529
|
);
|
|
3527
|
-
const isValidActionToken =
|
|
3530
|
+
const isValidActionToken = useCallback5(
|
|
3528
3531
|
async (actionToken) => {
|
|
3529
3532
|
const bodyData = {};
|
|
3530
3533
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -3537,7 +3540,7 @@ function useAuthService() {
|
|
|
3537
3540
|
},
|
|
3538
3541
|
[env]
|
|
3539
3542
|
);
|
|
3540
|
-
const loginSocial =
|
|
3543
|
+
const loginSocial = useCallback5(
|
|
3541
3544
|
async ({
|
|
3542
3545
|
db,
|
|
3543
3546
|
state,
|
|
@@ -3555,13 +3558,13 @@ function useAuthService() {
|
|
|
3555
3558
|
},
|
|
3556
3559
|
[env]
|
|
3557
3560
|
);
|
|
3558
|
-
const getProviders =
|
|
3561
|
+
const getProviders = useCallback5(
|
|
3559
3562
|
async (db) => {
|
|
3560
3563
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
3561
3564
|
},
|
|
3562
3565
|
[env]
|
|
3563
3566
|
);
|
|
3564
|
-
const getAccessByCode =
|
|
3567
|
+
const getAccessByCode = useCallback5(
|
|
3565
3568
|
async (code) => {
|
|
3566
3569
|
const data = new URLSearchParams();
|
|
3567
3570
|
data.append("code", code);
|
|
@@ -3581,7 +3584,7 @@ function useAuthService() {
|
|
|
3581
3584
|
},
|
|
3582
3585
|
[env]
|
|
3583
3586
|
);
|
|
3584
|
-
const logout =
|
|
3587
|
+
const logout = useCallback5(
|
|
3585
3588
|
async (service) => {
|
|
3586
3589
|
return env?.requests?.post(
|
|
3587
3590
|
"/logout" /* LOGOUT */,
|
|
@@ -3598,7 +3601,7 @@ function useAuthService() {
|
|
|
3598
3601
|
},
|
|
3599
3602
|
[env]
|
|
3600
3603
|
);
|
|
3601
|
-
const getTenantMapping =
|
|
3604
|
+
const getTenantMapping = useCallback5(
|
|
3602
3605
|
async ({ shortName, service }) => {
|
|
3603
3606
|
const bodyData = {
|
|
3604
3607
|
short_name: shortName
|
|
@@ -3616,7 +3619,7 @@ function useAuthService() {
|
|
|
3616
3619
|
},
|
|
3617
3620
|
[env]
|
|
3618
3621
|
);
|
|
3619
|
-
const getToken =
|
|
3622
|
+
const getToken = useCallback5(
|
|
3620
3623
|
async ({
|
|
3621
3624
|
phone,
|
|
3622
3625
|
name,
|
|
@@ -3660,10 +3663,10 @@ function useAuthService() {
|
|
|
3660
3663
|
}
|
|
3661
3664
|
|
|
3662
3665
|
// src/services/company-service/index.ts
|
|
3663
|
-
import { useCallback as
|
|
3666
|
+
import { useCallback as useCallback6 } from "react";
|
|
3664
3667
|
function useCompanyService() {
|
|
3665
3668
|
const { env } = useEnv();
|
|
3666
|
-
const getCurrentCompany =
|
|
3669
|
+
const getCurrentCompany = useCallback6(
|
|
3667
3670
|
async (service, extraHeaders) => {
|
|
3668
3671
|
return await env.requests.get(
|
|
3669
3672
|
"/company" /* COMPANY_PATH */,
|
|
@@ -3680,7 +3683,7 @@ function useCompanyService() {
|
|
|
3680
3683
|
},
|
|
3681
3684
|
[env]
|
|
3682
3685
|
);
|
|
3683
|
-
const getInfoCompany =
|
|
3686
|
+
const getInfoCompany = useCallback6(
|
|
3684
3687
|
async (id, service) => {
|
|
3685
3688
|
const jsonData = {
|
|
3686
3689
|
ids: [id],
|
|
@@ -3716,10 +3719,10 @@ function useCompanyService() {
|
|
|
3716
3719
|
}
|
|
3717
3720
|
|
|
3718
3721
|
// src/services/excel-service/index.ts
|
|
3719
|
-
import { useCallback as
|
|
3722
|
+
import { useCallback as useCallback7 } from "react";
|
|
3720
3723
|
function useExcelService() {
|
|
3721
3724
|
const { env } = useEnv();
|
|
3722
|
-
const uploadFileExcel =
|
|
3725
|
+
const uploadFileExcel = useCallback7(
|
|
3723
3726
|
async ({
|
|
3724
3727
|
formData,
|
|
3725
3728
|
service,
|
|
@@ -3736,7 +3739,7 @@ function useExcelService() {
|
|
|
3736
3739
|
},
|
|
3737
3740
|
[env]
|
|
3738
3741
|
);
|
|
3739
|
-
const uploadIdFile =
|
|
3742
|
+
const uploadIdFile = useCallback7(
|
|
3740
3743
|
async ({
|
|
3741
3744
|
formData,
|
|
3742
3745
|
service,
|
|
@@ -3753,7 +3756,7 @@ function useExcelService() {
|
|
|
3753
3756
|
},
|
|
3754
3757
|
[env]
|
|
3755
3758
|
);
|
|
3756
|
-
const parsePreview =
|
|
3759
|
+
const parsePreview = useCallback7(
|
|
3757
3760
|
async ({
|
|
3758
3761
|
id,
|
|
3759
3762
|
selectedSheet,
|
|
@@ -3802,7 +3805,7 @@ function useExcelService() {
|
|
|
3802
3805
|
},
|
|
3803
3806
|
[env]
|
|
3804
3807
|
);
|
|
3805
|
-
const executeImport =
|
|
3808
|
+
const executeImport = useCallback7(
|
|
3806
3809
|
async ({
|
|
3807
3810
|
columns,
|
|
3808
3811
|
fields,
|
|
@@ -3836,7 +3839,7 @@ function useExcelService() {
|
|
|
3836
3839
|
},
|
|
3837
3840
|
[env]
|
|
3838
3841
|
);
|
|
3839
|
-
const getFileExcel =
|
|
3842
|
+
const getFileExcel = useCallback7(
|
|
3840
3843
|
async ({
|
|
3841
3844
|
model,
|
|
3842
3845
|
service,
|
|
@@ -3860,7 +3863,7 @@ function useExcelService() {
|
|
|
3860
3863
|
},
|
|
3861
3864
|
[env]
|
|
3862
3865
|
);
|
|
3863
|
-
const getFieldExport =
|
|
3866
|
+
const getFieldExport = useCallback7(
|
|
3864
3867
|
async ({
|
|
3865
3868
|
ids,
|
|
3866
3869
|
model,
|
|
@@ -3900,7 +3903,7 @@ function useExcelService() {
|
|
|
3900
3903
|
},
|
|
3901
3904
|
[env]
|
|
3902
3905
|
);
|
|
3903
|
-
const exportExcel =
|
|
3906
|
+
const exportExcel = useCallback7(
|
|
3904
3907
|
async ({
|
|
3905
3908
|
model,
|
|
3906
3909
|
domain,
|
|
@@ -3948,10 +3951,10 @@ function useExcelService() {
|
|
|
3948
3951
|
}
|
|
3949
3952
|
|
|
3950
3953
|
// src/services/form-service/index.ts
|
|
3951
|
-
import { useCallback as
|
|
3954
|
+
import { useCallback as useCallback8 } from "react";
|
|
3952
3955
|
function useFormService() {
|
|
3953
3956
|
const { env } = useEnv();
|
|
3954
|
-
const getComment =
|
|
3957
|
+
const getComment = useCallback8(
|
|
3955
3958
|
async ({ data }) => {
|
|
3956
3959
|
const jsonData = {
|
|
3957
3960
|
thread_id: data.thread_id,
|
|
@@ -3969,7 +3972,7 @@ function useFormService() {
|
|
|
3969
3972
|
},
|
|
3970
3973
|
[env]
|
|
3971
3974
|
);
|
|
3972
|
-
const getThreadData =
|
|
3975
|
+
const getThreadData = useCallback8(
|
|
3973
3976
|
async ({
|
|
3974
3977
|
data,
|
|
3975
3978
|
xNode,
|
|
@@ -3996,7 +3999,7 @@ function useFormService() {
|
|
|
3996
3999
|
},
|
|
3997
4000
|
[env]
|
|
3998
4001
|
);
|
|
3999
|
-
const getThreadMessages =
|
|
4002
|
+
const getThreadMessages = useCallback8(
|
|
4000
4003
|
async ({
|
|
4001
4004
|
data,
|
|
4002
4005
|
xNode,
|
|
@@ -4022,7 +4025,7 @@ function useFormService() {
|
|
|
4022
4025
|
},
|
|
4023
4026
|
[env]
|
|
4024
4027
|
);
|
|
4025
|
-
const sentComment =
|
|
4028
|
+
const sentComment = useCallback8(
|
|
4026
4029
|
async ({ data }) => {
|
|
4027
4030
|
const jsonData = {
|
|
4028
4031
|
context: {
|
|
@@ -4050,7 +4053,7 @@ function useFormService() {
|
|
|
4050
4053
|
},
|
|
4051
4054
|
[env]
|
|
4052
4055
|
);
|
|
4053
|
-
const deleteComment =
|
|
4056
|
+
const deleteComment = useCallback8(
|
|
4054
4057
|
async ({ data }) => {
|
|
4055
4058
|
const jsonData = {
|
|
4056
4059
|
attachment_ids: [],
|
|
@@ -4066,7 +4069,7 @@ function useFormService() {
|
|
|
4066
4069
|
},
|
|
4067
4070
|
[env]
|
|
4068
4071
|
);
|
|
4069
|
-
const getImage =
|
|
4072
|
+
const getImage = useCallback8(
|
|
4070
4073
|
async ({ data }) => {
|
|
4071
4074
|
return env.requests.get(
|
|
4072
4075
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -4079,7 +4082,7 @@ function useFormService() {
|
|
|
4079
4082
|
},
|
|
4080
4083
|
[env]
|
|
4081
4084
|
);
|
|
4082
|
-
const uploadImage =
|
|
4085
|
+
const uploadImage = useCallback8(
|
|
4083
4086
|
async ({
|
|
4084
4087
|
formData,
|
|
4085
4088
|
service,
|
|
@@ -4098,7 +4101,7 @@ function useFormService() {
|
|
|
4098
4101
|
},
|
|
4099
4102
|
[env]
|
|
4100
4103
|
);
|
|
4101
|
-
const uploadFile =
|
|
4104
|
+
const uploadFile = useCallback8(
|
|
4102
4105
|
async ({
|
|
4103
4106
|
formData,
|
|
4104
4107
|
service,
|
|
@@ -4118,7 +4121,7 @@ function useFormService() {
|
|
|
4118
4121
|
},
|
|
4119
4122
|
[env]
|
|
4120
4123
|
);
|
|
4121
|
-
const getFormView =
|
|
4124
|
+
const getFormView = useCallback8(
|
|
4122
4125
|
async ({ data }) => {
|
|
4123
4126
|
const jsonData = {
|
|
4124
4127
|
model: data.model,
|
|
@@ -4134,7 +4137,7 @@ function useFormService() {
|
|
|
4134
4137
|
},
|
|
4135
4138
|
[env]
|
|
4136
4139
|
);
|
|
4137
|
-
const changeStatus =
|
|
4140
|
+
const changeStatus = useCallback8(
|
|
4138
4141
|
async ({ data }) => {
|
|
4139
4142
|
const vals = {
|
|
4140
4143
|
[data.name]: data.stage_id
|
|
@@ -4163,7 +4166,7 @@ function useFormService() {
|
|
|
4163
4166
|
},
|
|
4164
4167
|
[env]
|
|
4165
4168
|
);
|
|
4166
|
-
const getExternalTab =
|
|
4169
|
+
const getExternalTab = useCallback8(
|
|
4167
4170
|
async ({ method, context, service, xNode }) => {
|
|
4168
4171
|
return env?.requests?.post(
|
|
4169
4172
|
"/call" /* CALL_PATH */,
|
|
@@ -4198,10 +4201,10 @@ function useFormService() {
|
|
|
4198
4201
|
}
|
|
4199
4202
|
|
|
4200
4203
|
// src/services/kanban-service/index.ts
|
|
4201
|
-
import { useCallback as
|
|
4204
|
+
import { useCallback as useCallback9 } from "react";
|
|
4202
4205
|
function useKanbanService() {
|
|
4203
4206
|
const { env } = useEnv();
|
|
4204
|
-
const getGroups =
|
|
4207
|
+
const getGroups = useCallback9(
|
|
4205
4208
|
async ({ model, width_context }) => {
|
|
4206
4209
|
const jsonData = {
|
|
4207
4210
|
model,
|
|
@@ -4221,7 +4224,7 @@ function useKanbanService() {
|
|
|
4221
4224
|
},
|
|
4222
4225
|
[env]
|
|
4223
4226
|
);
|
|
4224
|
-
const getProgressBar =
|
|
4227
|
+
const getProgressBar = useCallback9(
|
|
4225
4228
|
async ({ field, color, model, width_context }) => {
|
|
4226
4229
|
const jsonData = {
|
|
4227
4230
|
model,
|
|
@@ -4251,10 +4254,10 @@ function useKanbanService() {
|
|
|
4251
4254
|
}
|
|
4252
4255
|
|
|
4253
4256
|
// src/services/model-service/index.ts
|
|
4254
|
-
import { useCallback as
|
|
4257
|
+
import { useCallback as useCallback10 } from "react";
|
|
4255
4258
|
function useModelService() {
|
|
4256
4259
|
const { env } = useEnv();
|
|
4257
|
-
const getListMyBankAccount =
|
|
4260
|
+
const getListMyBankAccount = useCallback10(
|
|
4258
4261
|
async ({
|
|
4259
4262
|
domain,
|
|
4260
4263
|
spectification,
|
|
@@ -4278,7 +4281,7 @@ function useModelService() {
|
|
|
4278
4281
|
},
|
|
4279
4282
|
[env]
|
|
4280
4283
|
);
|
|
4281
|
-
const getCurrency =
|
|
4284
|
+
const getCurrency = useCallback10(async () => {
|
|
4282
4285
|
const jsonData = {
|
|
4283
4286
|
model: "res.currency",
|
|
4284
4287
|
method: "web_search_read",
|
|
@@ -4298,7 +4301,7 @@ function useModelService() {
|
|
|
4298
4301
|
}
|
|
4299
4302
|
});
|
|
4300
4303
|
}, [env]);
|
|
4301
|
-
const getConversionRate =
|
|
4304
|
+
const getConversionRate = useCallback10(async () => {
|
|
4302
4305
|
const jsonData = {
|
|
4303
4306
|
model: "res.currency",
|
|
4304
4307
|
method: "web_search_read",
|
|
@@ -4324,7 +4327,7 @@ function useModelService() {
|
|
|
4324
4327
|
}
|
|
4325
4328
|
});
|
|
4326
4329
|
}, [env]);
|
|
4327
|
-
const getAll =
|
|
4330
|
+
const getAll = useCallback10(
|
|
4328
4331
|
async ({
|
|
4329
4332
|
data,
|
|
4330
4333
|
service,
|
|
@@ -4366,7 +4369,7 @@ function useModelService() {
|
|
|
4366
4369
|
},
|
|
4367
4370
|
[env]
|
|
4368
4371
|
);
|
|
4369
|
-
const getListCalendar =
|
|
4372
|
+
const getListCalendar = useCallback10(
|
|
4370
4373
|
async ({ data }) => {
|
|
4371
4374
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
4372
4375
|
fields: data.fields,
|
|
@@ -4397,7 +4400,7 @@ function useModelService() {
|
|
|
4397
4400
|
},
|
|
4398
4401
|
[env]
|
|
4399
4402
|
);
|
|
4400
|
-
const getList =
|
|
4403
|
+
const getList = useCallback10(
|
|
4401
4404
|
async ({
|
|
4402
4405
|
model,
|
|
4403
4406
|
ids = [],
|
|
@@ -4429,7 +4432,7 @@ function useModelService() {
|
|
|
4429
4432
|
},
|
|
4430
4433
|
[env]
|
|
4431
4434
|
);
|
|
4432
|
-
const getDetail =
|
|
4435
|
+
const getDetail = useCallback10(
|
|
4433
4436
|
async ({
|
|
4434
4437
|
ids = [],
|
|
4435
4438
|
model,
|
|
@@ -4461,7 +4464,7 @@ function useModelService() {
|
|
|
4461
4464
|
},
|
|
4462
4465
|
[env]
|
|
4463
4466
|
);
|
|
4464
|
-
const save =
|
|
4467
|
+
const save = useCallback10(
|
|
4465
4468
|
async ({
|
|
4466
4469
|
model,
|
|
4467
4470
|
ids = [],
|
|
@@ -4496,7 +4499,7 @@ function useModelService() {
|
|
|
4496
4499
|
},
|
|
4497
4500
|
[env]
|
|
4498
4501
|
);
|
|
4499
|
-
const deleteApi =
|
|
4502
|
+
const deleteApi = useCallback10(
|
|
4500
4503
|
async ({ ids = [], model, service }) => {
|
|
4501
4504
|
const jsonData = {
|
|
4502
4505
|
model,
|
|
@@ -4516,7 +4519,7 @@ function useModelService() {
|
|
|
4516
4519
|
},
|
|
4517
4520
|
[env]
|
|
4518
4521
|
);
|
|
4519
|
-
const onChange =
|
|
4522
|
+
const onChange = useCallback10(
|
|
4520
4523
|
async ({
|
|
4521
4524
|
ids = [],
|
|
4522
4525
|
model,
|
|
@@ -4552,7 +4555,7 @@ function useModelService() {
|
|
|
4552
4555
|
},
|
|
4553
4556
|
[env]
|
|
4554
4557
|
);
|
|
4555
|
-
const getListFieldsOnchange =
|
|
4558
|
+
const getListFieldsOnchange = useCallback10(
|
|
4556
4559
|
async ({
|
|
4557
4560
|
model,
|
|
4558
4561
|
service,
|
|
@@ -4576,7 +4579,7 @@ function useModelService() {
|
|
|
4576
4579
|
},
|
|
4577
4580
|
[env]
|
|
4578
4581
|
);
|
|
4579
|
-
const parseORMOdoo =
|
|
4582
|
+
const parseORMOdoo = useCallback10((data) => {
|
|
4580
4583
|
for (const key in data) {
|
|
4581
4584
|
if (key === "display_name") {
|
|
4582
4585
|
delete data[key];
|
|
@@ -4589,7 +4592,7 @@ function useModelService() {
|
|
|
4589
4592
|
}
|
|
4590
4593
|
return { ...data };
|
|
4591
4594
|
}, []);
|
|
4592
|
-
const toDataJS =
|
|
4595
|
+
const toDataJS = useCallback10(
|
|
4593
4596
|
(data, viewData, model) => {
|
|
4594
4597
|
for (const key in data) {
|
|
4595
4598
|
if (data[key] === false) {
|
|
@@ -4649,10 +4652,10 @@ function useModelService() {
|
|
|
4649
4652
|
}
|
|
4650
4653
|
|
|
4651
4654
|
// src/services/user-service/index.ts
|
|
4652
|
-
import { useCallback as
|
|
4655
|
+
import { useCallback as useCallback11 } from "react";
|
|
4653
4656
|
function useUserService() {
|
|
4654
4657
|
const { env } = useEnv();
|
|
4655
|
-
const getProfile =
|
|
4658
|
+
const getProfile = useCallback11(
|
|
4656
4659
|
async (service, path, extraHeaders) => {
|
|
4657
4660
|
return env?.requests?.get(
|
|
4658
4661
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -4669,7 +4672,7 @@ function useUserService() {
|
|
|
4669
4672
|
},
|
|
4670
4673
|
[env]
|
|
4671
4674
|
);
|
|
4672
|
-
const getUser =
|
|
4675
|
+
const getUser = useCallback11(
|
|
4673
4676
|
async ({ context, id }) => {
|
|
4674
4677
|
const jsonData = {
|
|
4675
4678
|
model: "res.users",
|
|
@@ -4707,7 +4710,7 @@ function useUserService() {
|
|
|
4707
4710
|
},
|
|
4708
4711
|
[env]
|
|
4709
4712
|
);
|
|
4710
|
-
const switchUserLocale =
|
|
4713
|
+
const switchUserLocale = useCallback11(
|
|
4711
4714
|
async ({ id, values, service }) => {
|
|
4712
4715
|
const jsonData = {
|
|
4713
4716
|
model: "res.users",
|
|
@@ -4735,10 +4738,10 @@ function useUserService() {
|
|
|
4735
4738
|
}
|
|
4736
4739
|
|
|
4737
4740
|
// src/services/view-service/index.ts
|
|
4738
|
-
import { useCallback as
|
|
4741
|
+
import { useCallback as useCallback12 } from "react";
|
|
4739
4742
|
function useViewService() {
|
|
4740
4743
|
const { env } = useEnv();
|
|
4741
|
-
const getView =
|
|
4744
|
+
const getView = useCallback12(
|
|
4742
4745
|
async ({
|
|
4743
4746
|
model,
|
|
4744
4747
|
views,
|
|
@@ -4778,7 +4781,7 @@ function useViewService() {
|
|
|
4778
4781
|
},
|
|
4779
4782
|
[env]
|
|
4780
4783
|
);
|
|
4781
|
-
const getMenu =
|
|
4784
|
+
const getMenu = useCallback12(
|
|
4782
4785
|
async (context, specification, domain, service) => {
|
|
4783
4786
|
const jsonData = {
|
|
4784
4787
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -4809,7 +4812,7 @@ function useViewService() {
|
|
|
4809
4812
|
},
|
|
4810
4813
|
[env]
|
|
4811
4814
|
);
|
|
4812
|
-
const getActionDetail =
|
|
4815
|
+
const getActionDetail = useCallback12(
|
|
4813
4816
|
async (aid, context) => {
|
|
4814
4817
|
const jsonData = {
|
|
4815
4818
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -4839,7 +4842,7 @@ function useViewService() {
|
|
|
4839
4842
|
},
|
|
4840
4843
|
[env]
|
|
4841
4844
|
);
|
|
4842
|
-
const getResequence =
|
|
4845
|
+
const getResequence = useCallback12(
|
|
4843
4846
|
async ({
|
|
4844
4847
|
model,
|
|
4845
4848
|
ids,
|
|
@@ -4869,7 +4872,7 @@ function useViewService() {
|
|
|
4869
4872
|
},
|
|
4870
4873
|
[env]
|
|
4871
4874
|
);
|
|
4872
|
-
const getSelectionItem =
|
|
4875
|
+
const getSelectionItem = useCallback12(
|
|
4873
4876
|
async ({
|
|
4874
4877
|
data,
|
|
4875
4878
|
service,
|
|
@@ -4906,7 +4909,7 @@ function useViewService() {
|
|
|
4906
4909
|
},
|
|
4907
4910
|
[env]
|
|
4908
4911
|
);
|
|
4909
|
-
const loadMessages =
|
|
4912
|
+
const loadMessages = useCallback12(async () => {
|
|
4910
4913
|
return env.requests.post(
|
|
4911
4914
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
4912
4915
|
{},
|
|
@@ -4917,14 +4920,14 @@ function useViewService() {
|
|
|
4917
4920
|
}
|
|
4918
4921
|
);
|
|
4919
4922
|
}, [env]);
|
|
4920
|
-
const getVersion =
|
|
4923
|
+
const getVersion = useCallback12(async () => {
|
|
4921
4924
|
return env?.requests?.get("", {
|
|
4922
4925
|
headers: {
|
|
4923
4926
|
"Content-Type": "application/json"
|
|
4924
4927
|
}
|
|
4925
4928
|
});
|
|
4926
4929
|
}, [env]);
|
|
4927
|
-
const grantAccess =
|
|
4930
|
+
const grantAccess = useCallback12(
|
|
4928
4931
|
async ({
|
|
4929
4932
|
redirect_uri,
|
|
4930
4933
|
state,
|
|
@@ -4951,7 +4954,7 @@ function useViewService() {
|
|
|
4951
4954
|
},
|
|
4952
4955
|
[env]
|
|
4953
4956
|
);
|
|
4954
|
-
const removeTotpSetUp =
|
|
4957
|
+
const removeTotpSetUp = useCallback12(
|
|
4955
4958
|
async ({ method, token }) => {
|
|
4956
4959
|
const jsonData = {
|
|
4957
4960
|
method,
|
|
@@ -4972,7 +4975,7 @@ function useViewService() {
|
|
|
4972
4975
|
},
|
|
4973
4976
|
[env]
|
|
4974
4977
|
);
|
|
4975
|
-
const requestSetupTotp =
|
|
4978
|
+
const requestSetupTotp = useCallback12(
|
|
4976
4979
|
async ({ method, token }) => {
|
|
4977
4980
|
const jsonData = {
|
|
4978
4981
|
method,
|
|
@@ -4991,7 +4994,7 @@ function useViewService() {
|
|
|
4991
4994
|
},
|
|
4992
4995
|
[env]
|
|
4993
4996
|
);
|
|
4994
|
-
const settingsWebRead2fa =
|
|
4997
|
+
const settingsWebRead2fa = useCallback12(
|
|
4995
4998
|
async ({
|
|
4996
4999
|
method,
|
|
4997
5000
|
model,
|
|
@@ -5019,7 +5022,7 @@ function useViewService() {
|
|
|
5019
5022
|
},
|
|
5020
5023
|
[env]
|
|
5021
5024
|
);
|
|
5022
|
-
const signInSSO =
|
|
5025
|
+
const signInSSO = useCallback12(
|
|
5023
5026
|
async ({
|
|
5024
5027
|
redirect_uri,
|
|
5025
5028
|
state,
|
|
@@ -5051,7 +5054,7 @@ function useViewService() {
|
|
|
5051
5054
|
},
|
|
5052
5055
|
[env]
|
|
5053
5056
|
);
|
|
5054
|
-
const verify2FA =
|
|
5057
|
+
const verify2FA = useCallback12(
|
|
5055
5058
|
({
|
|
5056
5059
|
method,
|
|
5057
5060
|
with_context,
|
|
@@ -5084,7 +5087,7 @@ function useViewService() {
|
|
|
5084
5087
|
},
|
|
5085
5088
|
[env]
|
|
5086
5089
|
);
|
|
5087
|
-
const get2FAMethods =
|
|
5090
|
+
const get2FAMethods = useCallback12(
|
|
5088
5091
|
({ method, with_context }) => {
|
|
5089
5092
|
const jsonData = {
|
|
5090
5093
|
method,
|
|
@@ -5103,7 +5106,7 @@ function useViewService() {
|
|
|
5103
5106
|
},
|
|
5104
5107
|
[env]
|
|
5105
5108
|
);
|
|
5106
|
-
const verifyTotp =
|
|
5109
|
+
const verifyTotp = useCallback12(
|
|
5107
5110
|
({
|
|
5108
5111
|
method,
|
|
5109
5112
|
action_token,
|
|
@@ -5128,7 +5131,7 @@ function useViewService() {
|
|
|
5128
5131
|
},
|
|
5129
5132
|
[env]
|
|
5130
5133
|
);
|
|
5131
|
-
const getASession =
|
|
5134
|
+
const getASession = useCallback12(
|
|
5132
5135
|
async ({
|
|
5133
5136
|
model,
|
|
5134
5137
|
args,
|
|
@@ -5171,7 +5174,7 @@ function useViewService() {
|
|
|
5171
5174
|
},
|
|
5172
5175
|
[env]
|
|
5173
5176
|
);
|
|
5174
|
-
const updateClosedSession =
|
|
5177
|
+
const updateClosedSession = useCallback12(
|
|
5175
5178
|
({
|
|
5176
5179
|
model,
|
|
5177
5180
|
domain,
|
|
@@ -5198,7 +5201,7 @@ function useViewService() {
|
|
|
5198
5201
|
},
|
|
5199
5202
|
[env]
|
|
5200
5203
|
);
|
|
5201
|
-
const manageSession =
|
|
5204
|
+
const manageSession = useCallback12(
|
|
5202
5205
|
({
|
|
5203
5206
|
model,
|
|
5204
5207
|
method,
|
|
@@ -5229,7 +5232,7 @@ function useViewService() {
|
|
|
5229
5232
|
},
|
|
5230
5233
|
[env]
|
|
5231
5234
|
);
|
|
5232
|
-
const handleClosingSession =
|
|
5235
|
+
const handleClosingSession = useCallback12(
|
|
5233
5236
|
({
|
|
5234
5237
|
model,
|
|
5235
5238
|
method,
|
|
@@ -5258,7 +5261,7 @@ function useViewService() {
|
|
|
5258
5261
|
},
|
|
5259
5262
|
[env]
|
|
5260
5263
|
);
|
|
5261
|
-
const createSession =
|
|
5264
|
+
const createSession = useCallback12(
|
|
5262
5265
|
({
|
|
5263
5266
|
model,
|
|
5264
5267
|
configId,
|
|
@@ -5288,7 +5291,7 @@ function useViewService() {
|
|
|
5288
5291
|
},
|
|
5289
5292
|
[env]
|
|
5290
5293
|
);
|
|
5291
|
-
const getPOS =
|
|
5294
|
+
const getPOS = useCallback12(
|
|
5292
5295
|
({
|
|
5293
5296
|
model,
|
|
5294
5297
|
args,
|
|
@@ -5346,7 +5349,7 @@ function useViewService() {
|
|
|
5346
5349
|
},
|
|
5347
5350
|
[env]
|
|
5348
5351
|
);
|
|
5349
|
-
const createEntity =
|
|
5352
|
+
const createEntity = useCallback12(
|
|
5350
5353
|
({
|
|
5351
5354
|
model,
|
|
5352
5355
|
args,
|
|
@@ -5372,33 +5375,7 @@ function useViewService() {
|
|
|
5372
5375
|
},
|
|
5373
5376
|
[env]
|
|
5374
5377
|
);
|
|
5375
|
-
const
|
|
5376
|
-
({
|
|
5377
|
-
model,
|
|
5378
|
-
values,
|
|
5379
|
-
xNode,
|
|
5380
|
-
service,
|
|
5381
|
-
isCreateEndpoint = false
|
|
5382
|
-
}) => {
|
|
5383
|
-
const jsonData = {
|
|
5384
|
-
model,
|
|
5385
|
-
values
|
|
5386
|
-
};
|
|
5387
|
-
return env?.requests.post(
|
|
5388
|
-
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
5389
|
-
jsonData,
|
|
5390
|
-
{
|
|
5391
|
-
headers: {
|
|
5392
|
-
"Content-Type": "application/json",
|
|
5393
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
5394
|
-
}
|
|
5395
|
-
},
|
|
5396
|
-
service
|
|
5397
|
-
);
|
|
5398
|
-
},
|
|
5399
|
-
[env]
|
|
5400
|
-
);
|
|
5401
|
-
const getList = useCallback11(
|
|
5378
|
+
const getList = useCallback12(
|
|
5402
5379
|
({
|
|
5403
5380
|
model,
|
|
5404
5381
|
domain,
|
|
@@ -5432,7 +5409,7 @@ function useViewService() {
|
|
|
5432
5409
|
},
|
|
5433
5410
|
[env]
|
|
5434
5411
|
);
|
|
5435
|
-
const updateEntity =
|
|
5412
|
+
const updateEntity = useCallback12(
|
|
5436
5413
|
({
|
|
5437
5414
|
model,
|
|
5438
5415
|
domain,
|
|
@@ -5460,7 +5437,7 @@ function useViewService() {
|
|
|
5460
5437
|
},
|
|
5461
5438
|
[env]
|
|
5462
5439
|
);
|
|
5463
|
-
const deleteEntity =
|
|
5440
|
+
const deleteEntity = useCallback12(
|
|
5464
5441
|
({
|
|
5465
5442
|
model,
|
|
5466
5443
|
ids,
|
|
@@ -5487,7 +5464,7 @@ function useViewService() {
|
|
|
5487
5464
|
},
|
|
5488
5465
|
[env]
|
|
5489
5466
|
);
|
|
5490
|
-
const loadDataPosSession =
|
|
5467
|
+
const loadDataPosSession = useCallback12(
|
|
5491
5468
|
({
|
|
5492
5469
|
model,
|
|
5493
5470
|
ids,
|
|
@@ -5525,7 +5502,7 @@ function useViewService() {
|
|
|
5525
5502
|
},
|
|
5526
5503
|
[env]
|
|
5527
5504
|
);
|
|
5528
|
-
const getPreparationDisplayData =
|
|
5505
|
+
const getPreparationDisplayData = useCallback12(
|
|
5529
5506
|
({
|
|
5530
5507
|
ids,
|
|
5531
5508
|
xNode,
|
|
@@ -5552,7 +5529,7 @@ function useViewService() {
|
|
|
5552
5529
|
},
|
|
5553
5530
|
[env]
|
|
5554
5531
|
);
|
|
5555
|
-
const manageOnChange =
|
|
5532
|
+
const manageOnChange = useCallback12(
|
|
5556
5533
|
({
|
|
5557
5534
|
model,
|
|
5558
5535
|
ids,
|
|
@@ -5580,7 +5557,7 @@ function useViewService() {
|
|
|
5580
5557
|
},
|
|
5581
5558
|
[env]
|
|
5582
5559
|
);
|
|
5583
|
-
const getOrderLine =
|
|
5560
|
+
const getOrderLine = useCallback12(
|
|
5584
5561
|
({
|
|
5585
5562
|
model,
|
|
5586
5563
|
ids,
|
|
@@ -5610,7 +5587,7 @@ function useViewService() {
|
|
|
5610
5587
|
},
|
|
5611
5588
|
[env]
|
|
5612
5589
|
);
|
|
5613
|
-
const getProductImage =
|
|
5590
|
+
const getProductImage = useCallback12(
|
|
5614
5591
|
({
|
|
5615
5592
|
model,
|
|
5616
5593
|
fields,
|
|
@@ -5643,7 +5620,7 @@ function useViewService() {
|
|
|
5643
5620
|
},
|
|
5644
5621
|
[env]
|
|
5645
5622
|
);
|
|
5646
|
-
const checkPayment =
|
|
5623
|
+
const checkPayment = useCallback12(
|
|
5647
5624
|
({
|
|
5648
5625
|
model,
|
|
5649
5626
|
ids,
|
|
@@ -5671,7 +5648,7 @@ function useViewService() {
|
|
|
5671
5648
|
},
|
|
5672
5649
|
[env]
|
|
5673
5650
|
);
|
|
5674
|
-
const handleCloseSession =
|
|
5651
|
+
const handleCloseSession = useCallback12(
|
|
5675
5652
|
({
|
|
5676
5653
|
model,
|
|
5677
5654
|
ids,
|
|
@@ -5698,7 +5675,7 @@ function useViewService() {
|
|
|
5698
5675
|
},
|
|
5699
5676
|
[env]
|
|
5700
5677
|
);
|
|
5701
|
-
const handleClosingDetailSession =
|
|
5678
|
+
const handleClosingDetailSession = useCallback12(
|
|
5702
5679
|
({
|
|
5703
5680
|
model,
|
|
5704
5681
|
ids,
|
|
@@ -5727,7 +5704,7 @@ function useViewService() {
|
|
|
5727
5704
|
},
|
|
5728
5705
|
[env]
|
|
5729
5706
|
);
|
|
5730
|
-
const createPosConfig =
|
|
5707
|
+
const createPosConfig = useCallback12(
|
|
5731
5708
|
({
|
|
5732
5709
|
model,
|
|
5733
5710
|
name,
|
|
@@ -5756,7 +5733,7 @@ function useViewService() {
|
|
|
5756
5733
|
},
|
|
5757
5734
|
[env]
|
|
5758
5735
|
);
|
|
5759
|
-
const searchJournal =
|
|
5736
|
+
const searchJournal = useCallback12(
|
|
5760
5737
|
({
|
|
5761
5738
|
model,
|
|
5762
5739
|
method,
|
|
@@ -5785,7 +5762,7 @@ function useViewService() {
|
|
|
5785
5762
|
},
|
|
5786
5763
|
[env]
|
|
5787
5764
|
);
|
|
5788
|
-
const changeOrderPreparaionState =
|
|
5765
|
+
const changeOrderPreparaionState = useCallback12(
|
|
5789
5766
|
({
|
|
5790
5767
|
orderId,
|
|
5791
5768
|
stageId,
|
|
@@ -5816,7 +5793,7 @@ function useViewService() {
|
|
|
5816
5793
|
},
|
|
5817
5794
|
[env]
|
|
5818
5795
|
);
|
|
5819
|
-
const updateOrderStatus =
|
|
5796
|
+
const updateOrderStatus = useCallback12(
|
|
5820
5797
|
({
|
|
5821
5798
|
orderId,
|
|
5822
5799
|
state,
|
|
@@ -5841,7 +5818,7 @@ function useViewService() {
|
|
|
5841
5818
|
},
|
|
5842
5819
|
[env]
|
|
5843
5820
|
);
|
|
5844
|
-
const processOrder =
|
|
5821
|
+
const processOrder = useCallback12(
|
|
5845
5822
|
({
|
|
5846
5823
|
orderId,
|
|
5847
5824
|
xNode,
|
|
@@ -5868,7 +5845,7 @@ function useViewService() {
|
|
|
5868
5845
|
},
|
|
5869
5846
|
[env]
|
|
5870
5847
|
);
|
|
5871
|
-
const generatePaymentQRInfo =
|
|
5848
|
+
const generatePaymentQRInfo = useCallback12(
|
|
5872
5849
|
({
|
|
5873
5850
|
orderId,
|
|
5874
5851
|
amount,
|
|
@@ -5895,7 +5872,7 @@ function useViewService() {
|
|
|
5895
5872
|
},
|
|
5896
5873
|
[env]
|
|
5897
5874
|
);
|
|
5898
|
-
const savePinCode =
|
|
5875
|
+
const savePinCode = useCallback12(
|
|
5899
5876
|
({
|
|
5900
5877
|
serialNumber,
|
|
5901
5878
|
pinCode,
|
|
@@ -5920,7 +5897,7 @@ function useViewService() {
|
|
|
5920
5897
|
},
|
|
5921
5898
|
[env]
|
|
5922
5899
|
);
|
|
5923
|
-
const getPinCode =
|
|
5900
|
+
const getPinCode = useCallback12(
|
|
5924
5901
|
({
|
|
5925
5902
|
serialNumber,
|
|
5926
5903
|
xNode,
|
|
@@ -5943,7 +5920,7 @@ function useViewService() {
|
|
|
5943
5920
|
},
|
|
5944
5921
|
[env]
|
|
5945
5922
|
);
|
|
5946
|
-
const getNotifications =
|
|
5923
|
+
const getNotifications = useCallback12(
|
|
5947
5924
|
async ({
|
|
5948
5925
|
service,
|
|
5949
5926
|
xNode,
|
|
@@ -5963,7 +5940,7 @@ function useViewService() {
|
|
|
5963
5940
|
},
|
|
5964
5941
|
[env]
|
|
5965
5942
|
);
|
|
5966
|
-
const createEInvoice =
|
|
5943
|
+
const createEInvoice = useCallback12(
|
|
5967
5944
|
async ({
|
|
5968
5945
|
service,
|
|
5969
5946
|
xNode,
|
|
@@ -5992,7 +5969,7 @@ function useViewService() {
|
|
|
5992
5969
|
},
|
|
5993
5970
|
[env]
|
|
5994
5971
|
);
|
|
5995
|
-
const getCurrentUser =
|
|
5972
|
+
const getCurrentUser = useCallback12(
|
|
5996
5973
|
async ({
|
|
5997
5974
|
service,
|
|
5998
5975
|
xNode,
|
|
@@ -6016,7 +5993,7 @@ function useViewService() {
|
|
|
6016
5993
|
},
|
|
6017
5994
|
[env]
|
|
6018
5995
|
);
|
|
6019
|
-
const getCountry =
|
|
5996
|
+
const getCountry = useCallback12(
|
|
6020
5997
|
async ({
|
|
6021
5998
|
service,
|
|
6022
5999
|
xNode,
|
|
@@ -6043,7 +6020,7 @@ function useViewService() {
|
|
|
6043
6020
|
},
|
|
6044
6021
|
[env]
|
|
6045
6022
|
);
|
|
6046
|
-
const getCity =
|
|
6023
|
+
const getCity = useCallback12(
|
|
6047
6024
|
async ({
|
|
6048
6025
|
service,
|
|
6049
6026
|
xNode,
|
|
@@ -6070,7 +6047,7 @@ function useViewService() {
|
|
|
6070
6047
|
},
|
|
6071
6048
|
[env]
|
|
6072
6049
|
);
|
|
6073
|
-
const getWard =
|
|
6050
|
+
const getWard = useCallback12(
|
|
6074
6051
|
async ({
|
|
6075
6052
|
service,
|
|
6076
6053
|
xNode,
|
|
@@ -6095,7 +6072,7 @@ function useViewService() {
|
|
|
6095
6072
|
},
|
|
6096
6073
|
[env]
|
|
6097
6074
|
);
|
|
6098
|
-
const getPartnerTitle =
|
|
6075
|
+
const getPartnerTitle = useCallback12(
|
|
6099
6076
|
async ({
|
|
6100
6077
|
service,
|
|
6101
6078
|
xNode,
|
|
@@ -6152,7 +6129,6 @@ function useViewService() {
|
|
|
6152
6129
|
manageOnChange,
|
|
6153
6130
|
getOrderLine,
|
|
6154
6131
|
getProductImage,
|
|
6155
|
-
addEntity,
|
|
6156
6132
|
checkPayment,
|
|
6157
6133
|
handleCloseSession,
|
|
6158
6134
|
handleClosingDetailSession,
|
|
@@ -6176,10 +6152,10 @@ function useViewService() {
|
|
|
6176
6152
|
}
|
|
6177
6153
|
|
|
6178
6154
|
// src/services/dashboard-service/index.ts
|
|
6179
|
-
import { useCallback as
|
|
6155
|
+
import { useCallback as useCallback13 } from "react";
|
|
6180
6156
|
function useDashboardService() {
|
|
6181
6157
|
const { env } = useEnv();
|
|
6182
|
-
const readGroup =
|
|
6158
|
+
const readGroup = useCallback13(
|
|
6183
6159
|
async ({
|
|
6184
6160
|
service,
|
|
6185
6161
|
xNode,
|
|
@@ -6196,7 +6172,7 @@ function useDashboardService() {
|
|
|
6196
6172
|
},
|
|
6197
6173
|
[env]
|
|
6198
6174
|
);
|
|
6199
|
-
const getDataChart =
|
|
6175
|
+
const getDataChart = useCallback13(
|
|
6200
6176
|
async ({
|
|
6201
6177
|
service,
|
|
6202
6178
|
xNode,
|