@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.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_react9 = require("react");
|
|
48
48
|
|
|
49
49
|
// src/constants/api/uri-constant.ts
|
|
50
50
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2881,7 +2881,7 @@ function useEnv() {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
2883
|
// src/provider/service-provider.tsx
|
|
2884
|
-
var
|
|
2884
|
+
var import_react7 = require("react");
|
|
2885
2885
|
|
|
2886
2886
|
// src/hooks/auth/use-forgot-password.ts
|
|
2887
2887
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -3147,87 +3147,90 @@ var import_react_query88 = require("@tanstack/react-query");
|
|
|
3147
3147
|
// src/hooks/view/use-get-product-image.ts
|
|
3148
3148
|
var import_react_query89 = require("@tanstack/react-query");
|
|
3149
3149
|
|
|
3150
|
-
// src/hooks/view/use-
|
|
3150
|
+
// src/hooks/view/use-check-payment.ts
|
|
3151
3151
|
var import_react_query90 = require("@tanstack/react-query");
|
|
3152
3152
|
|
|
3153
|
-
// src/hooks/view/use-
|
|
3153
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
3154
3154
|
var import_react_query91 = require("@tanstack/react-query");
|
|
3155
3155
|
|
|
3156
|
-
// src/hooks/view/use-handle-
|
|
3156
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3157
3157
|
var import_react_query92 = require("@tanstack/react-query");
|
|
3158
3158
|
|
|
3159
|
-
// src/hooks/view/use-
|
|
3159
|
+
// src/hooks/view/use-create-pos-config.ts
|
|
3160
3160
|
var import_react_query93 = require("@tanstack/react-query");
|
|
3161
3161
|
|
|
3162
|
-
// src/hooks/view/use-
|
|
3162
|
+
// src/hooks/view/use-search-journal.ts
|
|
3163
3163
|
var import_react_query94 = require("@tanstack/react-query");
|
|
3164
3164
|
|
|
3165
|
-
// src/hooks/view/
|
|
3165
|
+
// src/hooks/view/useGetPreparaionDisplayData.ts
|
|
3166
3166
|
var import_react_query95 = require("@tanstack/react-query");
|
|
3167
3167
|
|
|
3168
|
-
// src/hooks/view/
|
|
3168
|
+
// src/hooks/view/useChangeOrderPreparaionState.ts
|
|
3169
3169
|
var import_react_query96 = require("@tanstack/react-query");
|
|
3170
3170
|
|
|
3171
|
-
// src/hooks/view/
|
|
3171
|
+
// src/hooks/view/use-update-order-status.ts
|
|
3172
3172
|
var import_react_query97 = require("@tanstack/react-query");
|
|
3173
3173
|
|
|
3174
|
-
// src/hooks/view/use-
|
|
3174
|
+
// src/hooks/view/use-process-order.ts
|
|
3175
3175
|
var import_react_query98 = require("@tanstack/react-query");
|
|
3176
3176
|
|
|
3177
|
-
// src/hooks/view/use-
|
|
3177
|
+
// src/hooks/view/use-generate-payment-qr-info.ts
|
|
3178
3178
|
var import_react_query99 = require("@tanstack/react-query");
|
|
3179
3179
|
|
|
3180
|
-
// src/hooks/view/use-
|
|
3180
|
+
// src/hooks/view/use-save-pin-code.ts
|
|
3181
3181
|
var import_react_query100 = require("@tanstack/react-query");
|
|
3182
3182
|
|
|
3183
|
-
// src/hooks/view/use-
|
|
3183
|
+
// src/hooks/view/use-get-pin-code.ts
|
|
3184
3184
|
var import_react_query101 = require("@tanstack/react-query");
|
|
3185
3185
|
|
|
3186
|
-
// src/hooks/view/use-get-
|
|
3186
|
+
// src/hooks/view/use-get-notifications.ts
|
|
3187
3187
|
var import_react_query102 = require("@tanstack/react-query");
|
|
3188
3188
|
|
|
3189
|
-
// src/hooks/view/use-get-
|
|
3189
|
+
// src/hooks/view/use-get-version.ts
|
|
3190
3190
|
var import_react_query103 = require("@tanstack/react-query");
|
|
3191
3191
|
|
|
3192
|
-
// src/hooks/view/use-
|
|
3192
|
+
// src/hooks/view/use-create-e-invoice.ts
|
|
3193
3193
|
var import_react_query104 = require("@tanstack/react-query");
|
|
3194
3194
|
|
|
3195
|
-
// src/hooks/view/use-
|
|
3195
|
+
// src/hooks/view/use-get-current-user.ts
|
|
3196
3196
|
var import_react_query105 = require("@tanstack/react-query");
|
|
3197
3197
|
|
|
3198
|
-
// src/hooks/view/use-get-
|
|
3198
|
+
// src/hooks/view/use-get-ward.ts
|
|
3199
3199
|
var import_react_query106 = require("@tanstack/react-query");
|
|
3200
3200
|
|
|
3201
|
-
// src/hooks/view/use-get-
|
|
3201
|
+
// src/hooks/view/use-get-city.ts
|
|
3202
3202
|
var import_react_query107 = require("@tanstack/react-query");
|
|
3203
3203
|
|
|
3204
|
-
// src/hooks/view/use-get-
|
|
3204
|
+
// src/hooks/view/use-get-country.ts
|
|
3205
3205
|
var import_react_query108 = require("@tanstack/react-query");
|
|
3206
3206
|
|
|
3207
|
-
// src/hooks/view/use-get-
|
|
3207
|
+
// src/hooks/view/use-get-partner-title.ts
|
|
3208
3208
|
var import_react_query109 = require("@tanstack/react-query");
|
|
3209
3209
|
|
|
3210
|
-
// src/hooks/
|
|
3210
|
+
// src/hooks/chart/use-read-group.ts
|
|
3211
3211
|
var import_react_query110 = require("@tanstack/react-query");
|
|
3212
3212
|
|
|
3213
|
-
// src/hooks/chart/use-
|
|
3213
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
3214
3214
|
var import_react_query111 = require("@tanstack/react-query");
|
|
3215
3215
|
|
|
3216
|
-
// src/hooks/
|
|
3216
|
+
// src/hooks/pos/use-add-entity.ts
|
|
3217
3217
|
var import_react_query112 = require("@tanstack/react-query");
|
|
3218
3218
|
|
|
3219
|
+
// src/services/pos-service/add-entity.ts
|
|
3220
|
+
var import_react6 = require("react");
|
|
3221
|
+
|
|
3219
3222
|
// src/provider/service-provider.tsx
|
|
3220
3223
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3221
|
-
var ServiceContext = (0,
|
|
3224
|
+
var ServiceContext = (0, import_react7.createContext)(null);
|
|
3222
3225
|
|
|
3223
3226
|
// src/provider/meta-provider.tsx
|
|
3224
|
-
var
|
|
3227
|
+
var import_react8 = require("react");
|
|
3225
3228
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
3226
3229
|
|
|
3227
3230
|
// src/services/action-service/index.ts
|
|
3228
3231
|
function useActionService() {
|
|
3229
3232
|
const { env } = useEnv();
|
|
3230
|
-
const loadAction = (0,
|
|
3233
|
+
const loadAction = (0, import_react9.useCallback)(
|
|
3231
3234
|
async ({
|
|
3232
3235
|
idAction,
|
|
3233
3236
|
context,
|
|
@@ -3251,7 +3254,7 @@ function useActionService() {
|
|
|
3251
3254
|
},
|
|
3252
3255
|
[env]
|
|
3253
3256
|
);
|
|
3254
|
-
const callButton = (0,
|
|
3257
|
+
const callButton = (0, import_react9.useCallback)(
|
|
3255
3258
|
async ({
|
|
3256
3259
|
model,
|
|
3257
3260
|
ids = [],
|
|
@@ -3285,7 +3288,7 @@ function useActionService() {
|
|
|
3285
3288
|
},
|
|
3286
3289
|
[env]
|
|
3287
3290
|
);
|
|
3288
|
-
const removeRows = (0,
|
|
3291
|
+
const removeRows = (0, import_react9.useCallback)(
|
|
3289
3292
|
async ({
|
|
3290
3293
|
model,
|
|
3291
3294
|
ids,
|
|
@@ -3311,7 +3314,7 @@ function useActionService() {
|
|
|
3311
3314
|
},
|
|
3312
3315
|
[env]
|
|
3313
3316
|
);
|
|
3314
|
-
const duplicateRecord = (0,
|
|
3317
|
+
const duplicateRecord = (0, import_react9.useCallback)(
|
|
3315
3318
|
async ({
|
|
3316
3319
|
model,
|
|
3317
3320
|
id,
|
|
@@ -3337,7 +3340,7 @@ function useActionService() {
|
|
|
3337
3340
|
},
|
|
3338
3341
|
[env]
|
|
3339
3342
|
);
|
|
3340
|
-
const getPrintReportName = (0,
|
|
3343
|
+
const getPrintReportName = (0, import_react9.useCallback)(
|
|
3341
3344
|
async ({ id }) => {
|
|
3342
3345
|
const jsonData = {
|
|
3343
3346
|
model: "ir.actions.report",
|
|
@@ -3355,7 +3358,7 @@ function useActionService() {
|
|
|
3355
3358
|
},
|
|
3356
3359
|
[env]
|
|
3357
3360
|
);
|
|
3358
|
-
const print = (0,
|
|
3361
|
+
const print = (0, import_react9.useCallback)(
|
|
3359
3362
|
async ({ id, report, db }) => {
|
|
3360
3363
|
const jsonData = {
|
|
3361
3364
|
report,
|
|
@@ -3373,7 +3376,7 @@ function useActionService() {
|
|
|
3373
3376
|
},
|
|
3374
3377
|
[env]
|
|
3375
3378
|
);
|
|
3376
|
-
const runAction = (0,
|
|
3379
|
+
const runAction = (0, import_react9.useCallback)(
|
|
3377
3380
|
async ({
|
|
3378
3381
|
idAction,
|
|
3379
3382
|
context,
|
|
@@ -3400,7 +3403,7 @@ function useActionService() {
|
|
|
3400
3403
|
},
|
|
3401
3404
|
[env]
|
|
3402
3405
|
);
|
|
3403
|
-
const generateSerialNumber = (0,
|
|
3406
|
+
const generateSerialNumber = (0, import_react9.useCallback)(
|
|
3404
3407
|
async ({
|
|
3405
3408
|
kwargs,
|
|
3406
3409
|
context,
|
|
@@ -3438,10 +3441,10 @@ function useActionService() {
|
|
|
3438
3441
|
}
|
|
3439
3442
|
|
|
3440
3443
|
// src/services/auth-service/index.ts
|
|
3441
|
-
var
|
|
3444
|
+
var import_react10 = require("react");
|
|
3442
3445
|
function useAuthService() {
|
|
3443
3446
|
const { env } = useEnv();
|
|
3444
|
-
const login = (0,
|
|
3447
|
+
const login = (0, import_react10.useCallback)(
|
|
3445
3448
|
async (body) => {
|
|
3446
3449
|
const payload = Object.fromEntries(
|
|
3447
3450
|
Object.entries({
|
|
@@ -3466,7 +3469,7 @@ function useAuthService() {
|
|
|
3466
3469
|
},
|
|
3467
3470
|
[env]
|
|
3468
3471
|
);
|
|
3469
|
-
const forgotPassword = (0,
|
|
3472
|
+
const forgotPassword = (0, import_react10.useCallback)(
|
|
3470
3473
|
async (email) => {
|
|
3471
3474
|
const bodyData = {
|
|
3472
3475
|
login: email,
|
|
@@ -3480,7 +3483,7 @@ function useAuthService() {
|
|
|
3480
3483
|
},
|
|
3481
3484
|
[env]
|
|
3482
3485
|
);
|
|
3483
|
-
const forgotPasswordSSO = (0,
|
|
3486
|
+
const forgotPasswordSSO = (0, import_react10.useCallback)(
|
|
3484
3487
|
async ({
|
|
3485
3488
|
email,
|
|
3486
3489
|
with_context,
|
|
@@ -3503,7 +3506,7 @@ function useAuthService() {
|
|
|
3503
3506
|
},
|
|
3504
3507
|
[env]
|
|
3505
3508
|
);
|
|
3506
|
-
const resetPassword = (0,
|
|
3509
|
+
const resetPassword = (0, import_react10.useCallback)(
|
|
3507
3510
|
async (data, token) => {
|
|
3508
3511
|
const bodyData = {
|
|
3509
3512
|
token,
|
|
@@ -3518,7 +3521,7 @@ function useAuthService() {
|
|
|
3518
3521
|
},
|
|
3519
3522
|
[env]
|
|
3520
3523
|
);
|
|
3521
|
-
const resetPasswordSSO = (0,
|
|
3524
|
+
const resetPasswordSSO = (0, import_react10.useCallback)(
|
|
3522
3525
|
async ({
|
|
3523
3526
|
method,
|
|
3524
3527
|
password,
|
|
@@ -3541,7 +3544,7 @@ function useAuthService() {
|
|
|
3541
3544
|
},
|
|
3542
3545
|
[env]
|
|
3543
3546
|
);
|
|
3544
|
-
const updatePassword = (0,
|
|
3547
|
+
const updatePassword = (0, import_react10.useCallback)(
|
|
3545
3548
|
async (data, token) => {
|
|
3546
3549
|
const bodyData = {
|
|
3547
3550
|
token,
|
|
@@ -3556,7 +3559,7 @@ function useAuthService() {
|
|
|
3556
3559
|
},
|
|
3557
3560
|
[env]
|
|
3558
3561
|
);
|
|
3559
|
-
const isValidToken = (0,
|
|
3562
|
+
const isValidToken = (0, import_react10.useCallback)(
|
|
3560
3563
|
async (token) => {
|
|
3561
3564
|
const bodyData = {
|
|
3562
3565
|
token
|
|
@@ -3569,7 +3572,7 @@ function useAuthService() {
|
|
|
3569
3572
|
},
|
|
3570
3573
|
[env]
|
|
3571
3574
|
);
|
|
3572
|
-
const isValidActionToken = (0,
|
|
3575
|
+
const isValidActionToken = (0, import_react10.useCallback)(
|
|
3573
3576
|
async (actionToken) => {
|
|
3574
3577
|
const bodyData = {};
|
|
3575
3578
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -3582,7 +3585,7 @@ function useAuthService() {
|
|
|
3582
3585
|
},
|
|
3583
3586
|
[env]
|
|
3584
3587
|
);
|
|
3585
|
-
const loginSocial = (0,
|
|
3588
|
+
const loginSocial = (0, import_react10.useCallback)(
|
|
3586
3589
|
async ({
|
|
3587
3590
|
db,
|
|
3588
3591
|
state,
|
|
@@ -3600,13 +3603,13 @@ function useAuthService() {
|
|
|
3600
3603
|
},
|
|
3601
3604
|
[env]
|
|
3602
3605
|
);
|
|
3603
|
-
const getProviders = (0,
|
|
3606
|
+
const getProviders = (0, import_react10.useCallback)(
|
|
3604
3607
|
async (db) => {
|
|
3605
3608
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
3606
3609
|
},
|
|
3607
3610
|
[env]
|
|
3608
3611
|
);
|
|
3609
|
-
const getAccessByCode = (0,
|
|
3612
|
+
const getAccessByCode = (0, import_react10.useCallback)(
|
|
3610
3613
|
async (code) => {
|
|
3611
3614
|
const data = new URLSearchParams();
|
|
3612
3615
|
data.append("code", code);
|
|
@@ -3626,7 +3629,7 @@ function useAuthService() {
|
|
|
3626
3629
|
},
|
|
3627
3630
|
[env]
|
|
3628
3631
|
);
|
|
3629
|
-
const logout = (0,
|
|
3632
|
+
const logout = (0, import_react10.useCallback)(
|
|
3630
3633
|
async (service) => {
|
|
3631
3634
|
return env?.requests?.post(
|
|
3632
3635
|
"/logout" /* LOGOUT */,
|
|
@@ -3643,7 +3646,7 @@ function useAuthService() {
|
|
|
3643
3646
|
},
|
|
3644
3647
|
[env]
|
|
3645
3648
|
);
|
|
3646
|
-
const getTenantMapping = (0,
|
|
3649
|
+
const getTenantMapping = (0, import_react10.useCallback)(
|
|
3647
3650
|
async ({ shortName, service }) => {
|
|
3648
3651
|
const bodyData = {
|
|
3649
3652
|
short_name: shortName
|
|
@@ -3661,7 +3664,7 @@ function useAuthService() {
|
|
|
3661
3664
|
},
|
|
3662
3665
|
[env]
|
|
3663
3666
|
);
|
|
3664
|
-
const getToken = (0,
|
|
3667
|
+
const getToken = (0, import_react10.useCallback)(
|
|
3665
3668
|
async ({
|
|
3666
3669
|
phone,
|
|
3667
3670
|
name,
|
|
@@ -3705,10 +3708,10 @@ function useAuthService() {
|
|
|
3705
3708
|
}
|
|
3706
3709
|
|
|
3707
3710
|
// src/services/company-service/index.ts
|
|
3708
|
-
var
|
|
3711
|
+
var import_react11 = require("react");
|
|
3709
3712
|
function useCompanyService() {
|
|
3710
3713
|
const { env } = useEnv();
|
|
3711
|
-
const getCurrentCompany = (0,
|
|
3714
|
+
const getCurrentCompany = (0, import_react11.useCallback)(
|
|
3712
3715
|
async (service, extraHeaders) => {
|
|
3713
3716
|
return await env.requests.get(
|
|
3714
3717
|
"/company" /* COMPANY_PATH */,
|
|
@@ -3725,7 +3728,7 @@ function useCompanyService() {
|
|
|
3725
3728
|
},
|
|
3726
3729
|
[env]
|
|
3727
3730
|
);
|
|
3728
|
-
const getInfoCompany = (0,
|
|
3731
|
+
const getInfoCompany = (0, import_react11.useCallback)(
|
|
3729
3732
|
async (id, service) => {
|
|
3730
3733
|
const jsonData = {
|
|
3731
3734
|
ids: [id],
|
|
@@ -3761,10 +3764,10 @@ function useCompanyService() {
|
|
|
3761
3764
|
}
|
|
3762
3765
|
|
|
3763
3766
|
// src/services/excel-service/index.ts
|
|
3764
|
-
var
|
|
3767
|
+
var import_react12 = require("react");
|
|
3765
3768
|
function useExcelService() {
|
|
3766
3769
|
const { env } = useEnv();
|
|
3767
|
-
const uploadFileExcel = (0,
|
|
3770
|
+
const uploadFileExcel = (0, import_react12.useCallback)(
|
|
3768
3771
|
async ({
|
|
3769
3772
|
formData,
|
|
3770
3773
|
service,
|
|
@@ -3781,7 +3784,7 @@ function useExcelService() {
|
|
|
3781
3784
|
},
|
|
3782
3785
|
[env]
|
|
3783
3786
|
);
|
|
3784
|
-
const uploadIdFile = (0,
|
|
3787
|
+
const uploadIdFile = (0, import_react12.useCallback)(
|
|
3785
3788
|
async ({
|
|
3786
3789
|
formData,
|
|
3787
3790
|
service,
|
|
@@ -3798,7 +3801,7 @@ function useExcelService() {
|
|
|
3798
3801
|
},
|
|
3799
3802
|
[env]
|
|
3800
3803
|
);
|
|
3801
|
-
const parsePreview = (0,
|
|
3804
|
+
const parsePreview = (0, import_react12.useCallback)(
|
|
3802
3805
|
async ({
|
|
3803
3806
|
id,
|
|
3804
3807
|
selectedSheet,
|
|
@@ -3847,7 +3850,7 @@ function useExcelService() {
|
|
|
3847
3850
|
},
|
|
3848
3851
|
[env]
|
|
3849
3852
|
);
|
|
3850
|
-
const executeImport = (0,
|
|
3853
|
+
const executeImport = (0, import_react12.useCallback)(
|
|
3851
3854
|
async ({
|
|
3852
3855
|
columns,
|
|
3853
3856
|
fields,
|
|
@@ -3881,7 +3884,7 @@ function useExcelService() {
|
|
|
3881
3884
|
},
|
|
3882
3885
|
[env]
|
|
3883
3886
|
);
|
|
3884
|
-
const getFileExcel = (0,
|
|
3887
|
+
const getFileExcel = (0, import_react12.useCallback)(
|
|
3885
3888
|
async ({
|
|
3886
3889
|
model,
|
|
3887
3890
|
service,
|
|
@@ -3905,7 +3908,7 @@ function useExcelService() {
|
|
|
3905
3908
|
},
|
|
3906
3909
|
[env]
|
|
3907
3910
|
);
|
|
3908
|
-
const getFieldExport = (0,
|
|
3911
|
+
const getFieldExport = (0, import_react12.useCallback)(
|
|
3909
3912
|
async ({
|
|
3910
3913
|
ids,
|
|
3911
3914
|
model,
|
|
@@ -3945,7 +3948,7 @@ function useExcelService() {
|
|
|
3945
3948
|
},
|
|
3946
3949
|
[env]
|
|
3947
3950
|
);
|
|
3948
|
-
const exportExcel = (0,
|
|
3951
|
+
const exportExcel = (0, import_react12.useCallback)(
|
|
3949
3952
|
async ({
|
|
3950
3953
|
model,
|
|
3951
3954
|
domain,
|
|
@@ -3993,10 +3996,10 @@ function useExcelService() {
|
|
|
3993
3996
|
}
|
|
3994
3997
|
|
|
3995
3998
|
// src/services/form-service/index.ts
|
|
3996
|
-
var
|
|
3999
|
+
var import_react13 = require("react");
|
|
3997
4000
|
function useFormService() {
|
|
3998
4001
|
const { env } = useEnv();
|
|
3999
|
-
const getComment = (0,
|
|
4002
|
+
const getComment = (0, import_react13.useCallback)(
|
|
4000
4003
|
async ({ data }) => {
|
|
4001
4004
|
const jsonData = {
|
|
4002
4005
|
thread_id: data.thread_id,
|
|
@@ -4014,7 +4017,7 @@ function useFormService() {
|
|
|
4014
4017
|
},
|
|
4015
4018
|
[env]
|
|
4016
4019
|
);
|
|
4017
|
-
const getThreadData = (0,
|
|
4020
|
+
const getThreadData = (0, import_react13.useCallback)(
|
|
4018
4021
|
async ({
|
|
4019
4022
|
data,
|
|
4020
4023
|
xNode,
|
|
@@ -4041,7 +4044,7 @@ function useFormService() {
|
|
|
4041
4044
|
},
|
|
4042
4045
|
[env]
|
|
4043
4046
|
);
|
|
4044
|
-
const getThreadMessages = (0,
|
|
4047
|
+
const getThreadMessages = (0, import_react13.useCallback)(
|
|
4045
4048
|
async ({
|
|
4046
4049
|
data,
|
|
4047
4050
|
xNode,
|
|
@@ -4067,7 +4070,7 @@ function useFormService() {
|
|
|
4067
4070
|
},
|
|
4068
4071
|
[env]
|
|
4069
4072
|
);
|
|
4070
|
-
const sentComment = (0,
|
|
4073
|
+
const sentComment = (0, import_react13.useCallback)(
|
|
4071
4074
|
async ({ data }) => {
|
|
4072
4075
|
const jsonData = {
|
|
4073
4076
|
context: {
|
|
@@ -4095,7 +4098,7 @@ function useFormService() {
|
|
|
4095
4098
|
},
|
|
4096
4099
|
[env]
|
|
4097
4100
|
);
|
|
4098
|
-
const deleteComment = (0,
|
|
4101
|
+
const deleteComment = (0, import_react13.useCallback)(
|
|
4099
4102
|
async ({ data }) => {
|
|
4100
4103
|
const jsonData = {
|
|
4101
4104
|
attachment_ids: [],
|
|
@@ -4111,7 +4114,7 @@ function useFormService() {
|
|
|
4111
4114
|
},
|
|
4112
4115
|
[env]
|
|
4113
4116
|
);
|
|
4114
|
-
const getImage = (0,
|
|
4117
|
+
const getImage = (0, import_react13.useCallback)(
|
|
4115
4118
|
async ({ data }) => {
|
|
4116
4119
|
return env.requests.get(
|
|
4117
4120
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -4124,7 +4127,7 @@ function useFormService() {
|
|
|
4124
4127
|
},
|
|
4125
4128
|
[env]
|
|
4126
4129
|
);
|
|
4127
|
-
const uploadImage = (0,
|
|
4130
|
+
const uploadImage = (0, import_react13.useCallback)(
|
|
4128
4131
|
async ({
|
|
4129
4132
|
formData,
|
|
4130
4133
|
service,
|
|
@@ -4143,7 +4146,7 @@ function useFormService() {
|
|
|
4143
4146
|
},
|
|
4144
4147
|
[env]
|
|
4145
4148
|
);
|
|
4146
|
-
const uploadFile = (0,
|
|
4149
|
+
const uploadFile = (0, import_react13.useCallback)(
|
|
4147
4150
|
async ({
|
|
4148
4151
|
formData,
|
|
4149
4152
|
service,
|
|
@@ -4163,7 +4166,7 @@ function useFormService() {
|
|
|
4163
4166
|
},
|
|
4164
4167
|
[env]
|
|
4165
4168
|
);
|
|
4166
|
-
const getFormView = (0,
|
|
4169
|
+
const getFormView = (0, import_react13.useCallback)(
|
|
4167
4170
|
async ({ data }) => {
|
|
4168
4171
|
const jsonData = {
|
|
4169
4172
|
model: data.model,
|
|
@@ -4179,7 +4182,7 @@ function useFormService() {
|
|
|
4179
4182
|
},
|
|
4180
4183
|
[env]
|
|
4181
4184
|
);
|
|
4182
|
-
const changeStatus = (0,
|
|
4185
|
+
const changeStatus = (0, import_react13.useCallback)(
|
|
4183
4186
|
async ({ data }) => {
|
|
4184
4187
|
const vals = {
|
|
4185
4188
|
[data.name]: data.stage_id
|
|
@@ -4208,7 +4211,7 @@ function useFormService() {
|
|
|
4208
4211
|
},
|
|
4209
4212
|
[env]
|
|
4210
4213
|
);
|
|
4211
|
-
const getExternalTab = (0,
|
|
4214
|
+
const getExternalTab = (0, import_react13.useCallback)(
|
|
4212
4215
|
async ({ method, context, service, xNode }) => {
|
|
4213
4216
|
return env?.requests?.post(
|
|
4214
4217
|
"/call" /* CALL_PATH */,
|
|
@@ -4243,10 +4246,10 @@ function useFormService() {
|
|
|
4243
4246
|
}
|
|
4244
4247
|
|
|
4245
4248
|
// src/services/kanban-service/index.ts
|
|
4246
|
-
var
|
|
4249
|
+
var import_react14 = require("react");
|
|
4247
4250
|
function useKanbanService() {
|
|
4248
4251
|
const { env } = useEnv();
|
|
4249
|
-
const getGroups = (0,
|
|
4252
|
+
const getGroups = (0, import_react14.useCallback)(
|
|
4250
4253
|
async ({ model, width_context }) => {
|
|
4251
4254
|
const jsonData = {
|
|
4252
4255
|
model,
|
|
@@ -4266,7 +4269,7 @@ function useKanbanService() {
|
|
|
4266
4269
|
},
|
|
4267
4270
|
[env]
|
|
4268
4271
|
);
|
|
4269
|
-
const getProgressBar = (0,
|
|
4272
|
+
const getProgressBar = (0, import_react14.useCallback)(
|
|
4270
4273
|
async ({ field, color, model, width_context }) => {
|
|
4271
4274
|
const jsonData = {
|
|
4272
4275
|
model,
|
|
@@ -4296,10 +4299,10 @@ function useKanbanService() {
|
|
|
4296
4299
|
}
|
|
4297
4300
|
|
|
4298
4301
|
// src/services/model-service/index.ts
|
|
4299
|
-
var
|
|
4302
|
+
var import_react15 = require("react");
|
|
4300
4303
|
function useModelService() {
|
|
4301
4304
|
const { env } = useEnv();
|
|
4302
|
-
const getListMyBankAccount = (0,
|
|
4305
|
+
const getListMyBankAccount = (0, import_react15.useCallback)(
|
|
4303
4306
|
async ({
|
|
4304
4307
|
domain,
|
|
4305
4308
|
spectification,
|
|
@@ -4323,7 +4326,7 @@ function useModelService() {
|
|
|
4323
4326
|
},
|
|
4324
4327
|
[env]
|
|
4325
4328
|
);
|
|
4326
|
-
const getCurrency = (0,
|
|
4329
|
+
const getCurrency = (0, import_react15.useCallback)(async () => {
|
|
4327
4330
|
const jsonData = {
|
|
4328
4331
|
model: "res.currency",
|
|
4329
4332
|
method: "web_search_read",
|
|
@@ -4343,7 +4346,7 @@ function useModelService() {
|
|
|
4343
4346
|
}
|
|
4344
4347
|
});
|
|
4345
4348
|
}, [env]);
|
|
4346
|
-
const getConversionRate = (0,
|
|
4349
|
+
const getConversionRate = (0, import_react15.useCallback)(async () => {
|
|
4347
4350
|
const jsonData = {
|
|
4348
4351
|
model: "res.currency",
|
|
4349
4352
|
method: "web_search_read",
|
|
@@ -4369,7 +4372,7 @@ function useModelService() {
|
|
|
4369
4372
|
}
|
|
4370
4373
|
});
|
|
4371
4374
|
}, [env]);
|
|
4372
|
-
const getAll = (0,
|
|
4375
|
+
const getAll = (0, import_react15.useCallback)(
|
|
4373
4376
|
async ({
|
|
4374
4377
|
data,
|
|
4375
4378
|
service,
|
|
@@ -4411,7 +4414,7 @@ function useModelService() {
|
|
|
4411
4414
|
},
|
|
4412
4415
|
[env]
|
|
4413
4416
|
);
|
|
4414
|
-
const getListCalendar = (0,
|
|
4417
|
+
const getListCalendar = (0, import_react15.useCallback)(
|
|
4415
4418
|
async ({ data }) => {
|
|
4416
4419
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
4417
4420
|
fields: data.fields,
|
|
@@ -4442,7 +4445,7 @@ function useModelService() {
|
|
|
4442
4445
|
},
|
|
4443
4446
|
[env]
|
|
4444
4447
|
);
|
|
4445
|
-
const getList = (0,
|
|
4448
|
+
const getList = (0, import_react15.useCallback)(
|
|
4446
4449
|
async ({
|
|
4447
4450
|
model,
|
|
4448
4451
|
ids = [],
|
|
@@ -4474,7 +4477,7 @@ function useModelService() {
|
|
|
4474
4477
|
},
|
|
4475
4478
|
[env]
|
|
4476
4479
|
);
|
|
4477
|
-
const getDetail = (0,
|
|
4480
|
+
const getDetail = (0, import_react15.useCallback)(
|
|
4478
4481
|
async ({
|
|
4479
4482
|
ids = [],
|
|
4480
4483
|
model,
|
|
@@ -4506,7 +4509,7 @@ function useModelService() {
|
|
|
4506
4509
|
},
|
|
4507
4510
|
[env]
|
|
4508
4511
|
);
|
|
4509
|
-
const save = (0,
|
|
4512
|
+
const save = (0, import_react15.useCallback)(
|
|
4510
4513
|
async ({
|
|
4511
4514
|
model,
|
|
4512
4515
|
ids = [],
|
|
@@ -4541,7 +4544,7 @@ function useModelService() {
|
|
|
4541
4544
|
},
|
|
4542
4545
|
[env]
|
|
4543
4546
|
);
|
|
4544
|
-
const deleteApi = (0,
|
|
4547
|
+
const deleteApi = (0, import_react15.useCallback)(
|
|
4545
4548
|
async ({ ids = [], model, service }) => {
|
|
4546
4549
|
const jsonData = {
|
|
4547
4550
|
model,
|
|
@@ -4561,7 +4564,7 @@ function useModelService() {
|
|
|
4561
4564
|
},
|
|
4562
4565
|
[env]
|
|
4563
4566
|
);
|
|
4564
|
-
const onChange = (0,
|
|
4567
|
+
const onChange = (0, import_react15.useCallback)(
|
|
4565
4568
|
async ({
|
|
4566
4569
|
ids = [],
|
|
4567
4570
|
model,
|
|
@@ -4597,7 +4600,7 @@ function useModelService() {
|
|
|
4597
4600
|
},
|
|
4598
4601
|
[env]
|
|
4599
4602
|
);
|
|
4600
|
-
const getListFieldsOnchange = (0,
|
|
4603
|
+
const getListFieldsOnchange = (0, import_react15.useCallback)(
|
|
4601
4604
|
async ({
|
|
4602
4605
|
model,
|
|
4603
4606
|
service,
|
|
@@ -4621,7 +4624,7 @@ function useModelService() {
|
|
|
4621
4624
|
},
|
|
4622
4625
|
[env]
|
|
4623
4626
|
);
|
|
4624
|
-
const parseORMOdoo = (0,
|
|
4627
|
+
const parseORMOdoo = (0, import_react15.useCallback)((data) => {
|
|
4625
4628
|
for (const key in data) {
|
|
4626
4629
|
if (key === "display_name") {
|
|
4627
4630
|
delete data[key];
|
|
@@ -4634,7 +4637,7 @@ function useModelService() {
|
|
|
4634
4637
|
}
|
|
4635
4638
|
return { ...data };
|
|
4636
4639
|
}, []);
|
|
4637
|
-
const toDataJS = (0,
|
|
4640
|
+
const toDataJS = (0, import_react15.useCallback)(
|
|
4638
4641
|
(data, viewData, model) => {
|
|
4639
4642
|
for (const key in data) {
|
|
4640
4643
|
if (data[key] === false) {
|
|
@@ -4694,10 +4697,10 @@ function useModelService() {
|
|
|
4694
4697
|
}
|
|
4695
4698
|
|
|
4696
4699
|
// src/services/user-service/index.ts
|
|
4697
|
-
var
|
|
4700
|
+
var import_react16 = require("react");
|
|
4698
4701
|
function useUserService() {
|
|
4699
4702
|
const { env } = useEnv();
|
|
4700
|
-
const getProfile = (0,
|
|
4703
|
+
const getProfile = (0, import_react16.useCallback)(
|
|
4701
4704
|
async (service, path, extraHeaders) => {
|
|
4702
4705
|
return env?.requests?.get(
|
|
4703
4706
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -4714,7 +4717,7 @@ function useUserService() {
|
|
|
4714
4717
|
},
|
|
4715
4718
|
[env]
|
|
4716
4719
|
);
|
|
4717
|
-
const getUser = (0,
|
|
4720
|
+
const getUser = (0, import_react16.useCallback)(
|
|
4718
4721
|
async ({ context, id }) => {
|
|
4719
4722
|
const jsonData = {
|
|
4720
4723
|
model: "res.users",
|
|
@@ -4752,7 +4755,7 @@ function useUserService() {
|
|
|
4752
4755
|
},
|
|
4753
4756
|
[env]
|
|
4754
4757
|
);
|
|
4755
|
-
const switchUserLocale = (0,
|
|
4758
|
+
const switchUserLocale = (0, import_react16.useCallback)(
|
|
4756
4759
|
async ({ id, values, service }) => {
|
|
4757
4760
|
const jsonData = {
|
|
4758
4761
|
model: "res.users",
|
|
@@ -4780,10 +4783,10 @@ function useUserService() {
|
|
|
4780
4783
|
}
|
|
4781
4784
|
|
|
4782
4785
|
// src/services/view-service/index.ts
|
|
4783
|
-
var
|
|
4786
|
+
var import_react17 = require("react");
|
|
4784
4787
|
function useViewService() {
|
|
4785
4788
|
const { env } = useEnv();
|
|
4786
|
-
const getView = (0,
|
|
4789
|
+
const getView = (0, import_react17.useCallback)(
|
|
4787
4790
|
async ({
|
|
4788
4791
|
model,
|
|
4789
4792
|
views,
|
|
@@ -4823,7 +4826,7 @@ function useViewService() {
|
|
|
4823
4826
|
},
|
|
4824
4827
|
[env]
|
|
4825
4828
|
);
|
|
4826
|
-
const getMenu = (0,
|
|
4829
|
+
const getMenu = (0, import_react17.useCallback)(
|
|
4827
4830
|
async (context, specification, domain, service) => {
|
|
4828
4831
|
const jsonData = {
|
|
4829
4832
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -4854,7 +4857,7 @@ function useViewService() {
|
|
|
4854
4857
|
},
|
|
4855
4858
|
[env]
|
|
4856
4859
|
);
|
|
4857
|
-
const getActionDetail = (0,
|
|
4860
|
+
const getActionDetail = (0, import_react17.useCallback)(
|
|
4858
4861
|
async (aid, context) => {
|
|
4859
4862
|
const jsonData = {
|
|
4860
4863
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -4884,7 +4887,7 @@ function useViewService() {
|
|
|
4884
4887
|
},
|
|
4885
4888
|
[env]
|
|
4886
4889
|
);
|
|
4887
|
-
const getResequence = (0,
|
|
4890
|
+
const getResequence = (0, import_react17.useCallback)(
|
|
4888
4891
|
async ({
|
|
4889
4892
|
model,
|
|
4890
4893
|
ids,
|
|
@@ -4914,7 +4917,7 @@ function useViewService() {
|
|
|
4914
4917
|
},
|
|
4915
4918
|
[env]
|
|
4916
4919
|
);
|
|
4917
|
-
const getSelectionItem = (0,
|
|
4920
|
+
const getSelectionItem = (0, import_react17.useCallback)(
|
|
4918
4921
|
async ({
|
|
4919
4922
|
data,
|
|
4920
4923
|
service,
|
|
@@ -4951,7 +4954,7 @@ function useViewService() {
|
|
|
4951
4954
|
},
|
|
4952
4955
|
[env]
|
|
4953
4956
|
);
|
|
4954
|
-
const loadMessages = (0,
|
|
4957
|
+
const loadMessages = (0, import_react17.useCallback)(async () => {
|
|
4955
4958
|
return env.requests.post(
|
|
4956
4959
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
4957
4960
|
{},
|
|
@@ -4962,14 +4965,14 @@ function useViewService() {
|
|
|
4962
4965
|
}
|
|
4963
4966
|
);
|
|
4964
4967
|
}, [env]);
|
|
4965
|
-
const getVersion = (0,
|
|
4968
|
+
const getVersion = (0, import_react17.useCallback)(async () => {
|
|
4966
4969
|
return env?.requests?.get("", {
|
|
4967
4970
|
headers: {
|
|
4968
4971
|
"Content-Type": "application/json"
|
|
4969
4972
|
}
|
|
4970
4973
|
});
|
|
4971
4974
|
}, [env]);
|
|
4972
|
-
const grantAccess = (0,
|
|
4975
|
+
const grantAccess = (0, import_react17.useCallback)(
|
|
4973
4976
|
async ({
|
|
4974
4977
|
redirect_uri,
|
|
4975
4978
|
state,
|
|
@@ -4996,7 +4999,7 @@ function useViewService() {
|
|
|
4996
4999
|
},
|
|
4997
5000
|
[env]
|
|
4998
5001
|
);
|
|
4999
|
-
const removeTotpSetUp = (0,
|
|
5002
|
+
const removeTotpSetUp = (0, import_react17.useCallback)(
|
|
5000
5003
|
async ({ method, token }) => {
|
|
5001
5004
|
const jsonData = {
|
|
5002
5005
|
method,
|
|
@@ -5017,7 +5020,7 @@ function useViewService() {
|
|
|
5017
5020
|
},
|
|
5018
5021
|
[env]
|
|
5019
5022
|
);
|
|
5020
|
-
const requestSetupTotp = (0,
|
|
5023
|
+
const requestSetupTotp = (0, import_react17.useCallback)(
|
|
5021
5024
|
async ({ method, token }) => {
|
|
5022
5025
|
const jsonData = {
|
|
5023
5026
|
method,
|
|
@@ -5036,7 +5039,7 @@ function useViewService() {
|
|
|
5036
5039
|
},
|
|
5037
5040
|
[env]
|
|
5038
5041
|
);
|
|
5039
|
-
const settingsWebRead2fa = (0,
|
|
5042
|
+
const settingsWebRead2fa = (0, import_react17.useCallback)(
|
|
5040
5043
|
async ({
|
|
5041
5044
|
method,
|
|
5042
5045
|
model,
|
|
@@ -5064,7 +5067,7 @@ function useViewService() {
|
|
|
5064
5067
|
},
|
|
5065
5068
|
[env]
|
|
5066
5069
|
);
|
|
5067
|
-
const signInSSO = (0,
|
|
5070
|
+
const signInSSO = (0, import_react17.useCallback)(
|
|
5068
5071
|
async ({
|
|
5069
5072
|
redirect_uri,
|
|
5070
5073
|
state,
|
|
@@ -5096,7 +5099,7 @@ function useViewService() {
|
|
|
5096
5099
|
},
|
|
5097
5100
|
[env]
|
|
5098
5101
|
);
|
|
5099
|
-
const verify2FA = (0,
|
|
5102
|
+
const verify2FA = (0, import_react17.useCallback)(
|
|
5100
5103
|
({
|
|
5101
5104
|
method,
|
|
5102
5105
|
with_context,
|
|
@@ -5129,7 +5132,7 @@ function useViewService() {
|
|
|
5129
5132
|
},
|
|
5130
5133
|
[env]
|
|
5131
5134
|
);
|
|
5132
|
-
const get2FAMethods = (0,
|
|
5135
|
+
const get2FAMethods = (0, import_react17.useCallback)(
|
|
5133
5136
|
({ method, with_context }) => {
|
|
5134
5137
|
const jsonData = {
|
|
5135
5138
|
method,
|
|
@@ -5148,7 +5151,7 @@ function useViewService() {
|
|
|
5148
5151
|
},
|
|
5149
5152
|
[env]
|
|
5150
5153
|
);
|
|
5151
|
-
const verifyTotp = (0,
|
|
5154
|
+
const verifyTotp = (0, import_react17.useCallback)(
|
|
5152
5155
|
({
|
|
5153
5156
|
method,
|
|
5154
5157
|
action_token,
|
|
@@ -5173,7 +5176,7 @@ function useViewService() {
|
|
|
5173
5176
|
},
|
|
5174
5177
|
[env]
|
|
5175
5178
|
);
|
|
5176
|
-
const getASession = (0,
|
|
5179
|
+
const getASession = (0, import_react17.useCallback)(
|
|
5177
5180
|
async ({
|
|
5178
5181
|
model,
|
|
5179
5182
|
args,
|
|
@@ -5216,7 +5219,7 @@ function useViewService() {
|
|
|
5216
5219
|
},
|
|
5217
5220
|
[env]
|
|
5218
5221
|
);
|
|
5219
|
-
const updateClosedSession = (0,
|
|
5222
|
+
const updateClosedSession = (0, import_react17.useCallback)(
|
|
5220
5223
|
({
|
|
5221
5224
|
model,
|
|
5222
5225
|
domain,
|
|
@@ -5243,7 +5246,7 @@ function useViewService() {
|
|
|
5243
5246
|
},
|
|
5244
5247
|
[env]
|
|
5245
5248
|
);
|
|
5246
|
-
const manageSession = (0,
|
|
5249
|
+
const manageSession = (0, import_react17.useCallback)(
|
|
5247
5250
|
({
|
|
5248
5251
|
model,
|
|
5249
5252
|
method,
|
|
@@ -5274,7 +5277,7 @@ function useViewService() {
|
|
|
5274
5277
|
},
|
|
5275
5278
|
[env]
|
|
5276
5279
|
);
|
|
5277
|
-
const handleClosingSession = (0,
|
|
5280
|
+
const handleClosingSession = (0, import_react17.useCallback)(
|
|
5278
5281
|
({
|
|
5279
5282
|
model,
|
|
5280
5283
|
method,
|
|
@@ -5303,7 +5306,7 @@ function useViewService() {
|
|
|
5303
5306
|
},
|
|
5304
5307
|
[env]
|
|
5305
5308
|
);
|
|
5306
|
-
const createSession = (0,
|
|
5309
|
+
const createSession = (0, import_react17.useCallback)(
|
|
5307
5310
|
({
|
|
5308
5311
|
model,
|
|
5309
5312
|
configId,
|
|
@@ -5333,7 +5336,7 @@ function useViewService() {
|
|
|
5333
5336
|
},
|
|
5334
5337
|
[env]
|
|
5335
5338
|
);
|
|
5336
|
-
const getPOS = (0,
|
|
5339
|
+
const getPOS = (0, import_react17.useCallback)(
|
|
5337
5340
|
({
|
|
5338
5341
|
model,
|
|
5339
5342
|
args,
|
|
@@ -5391,7 +5394,7 @@ function useViewService() {
|
|
|
5391
5394
|
},
|
|
5392
5395
|
[env]
|
|
5393
5396
|
);
|
|
5394
|
-
const createEntity = (0,
|
|
5397
|
+
const createEntity = (0, import_react17.useCallback)(
|
|
5395
5398
|
({
|
|
5396
5399
|
model,
|
|
5397
5400
|
args,
|
|
@@ -5417,33 +5420,7 @@ function useViewService() {
|
|
|
5417
5420
|
},
|
|
5418
5421
|
[env]
|
|
5419
5422
|
);
|
|
5420
|
-
const
|
|
5421
|
-
({
|
|
5422
|
-
model,
|
|
5423
|
-
values,
|
|
5424
|
-
xNode,
|
|
5425
|
-
service,
|
|
5426
|
-
isCreateEndpoint = false
|
|
5427
|
-
}) => {
|
|
5428
|
-
const jsonData = {
|
|
5429
|
-
model,
|
|
5430
|
-
values
|
|
5431
|
-
};
|
|
5432
|
-
return env?.requests.post(
|
|
5433
|
-
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
5434
|
-
jsonData,
|
|
5435
|
-
{
|
|
5436
|
-
headers: {
|
|
5437
|
-
"Content-Type": "application/json",
|
|
5438
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
5439
|
-
}
|
|
5440
|
-
},
|
|
5441
|
-
service
|
|
5442
|
-
);
|
|
5443
|
-
},
|
|
5444
|
-
[env]
|
|
5445
|
-
);
|
|
5446
|
-
const getList = (0, import_react16.useCallback)(
|
|
5423
|
+
const getList = (0, import_react17.useCallback)(
|
|
5447
5424
|
({
|
|
5448
5425
|
model,
|
|
5449
5426
|
domain,
|
|
@@ -5477,7 +5454,7 @@ function useViewService() {
|
|
|
5477
5454
|
},
|
|
5478
5455
|
[env]
|
|
5479
5456
|
);
|
|
5480
|
-
const updateEntity = (0,
|
|
5457
|
+
const updateEntity = (0, import_react17.useCallback)(
|
|
5481
5458
|
({
|
|
5482
5459
|
model,
|
|
5483
5460
|
domain,
|
|
@@ -5505,7 +5482,7 @@ function useViewService() {
|
|
|
5505
5482
|
},
|
|
5506
5483
|
[env]
|
|
5507
5484
|
);
|
|
5508
|
-
const deleteEntity = (0,
|
|
5485
|
+
const deleteEntity = (0, import_react17.useCallback)(
|
|
5509
5486
|
({
|
|
5510
5487
|
model,
|
|
5511
5488
|
ids,
|
|
@@ -5532,7 +5509,7 @@ function useViewService() {
|
|
|
5532
5509
|
},
|
|
5533
5510
|
[env]
|
|
5534
5511
|
);
|
|
5535
|
-
const loadDataPosSession = (0,
|
|
5512
|
+
const loadDataPosSession = (0, import_react17.useCallback)(
|
|
5536
5513
|
({
|
|
5537
5514
|
model,
|
|
5538
5515
|
ids,
|
|
@@ -5570,7 +5547,7 @@ function useViewService() {
|
|
|
5570
5547
|
},
|
|
5571
5548
|
[env]
|
|
5572
5549
|
);
|
|
5573
|
-
const getPreparationDisplayData = (0,
|
|
5550
|
+
const getPreparationDisplayData = (0, import_react17.useCallback)(
|
|
5574
5551
|
({
|
|
5575
5552
|
ids,
|
|
5576
5553
|
xNode,
|
|
@@ -5597,7 +5574,7 @@ function useViewService() {
|
|
|
5597
5574
|
},
|
|
5598
5575
|
[env]
|
|
5599
5576
|
);
|
|
5600
|
-
const manageOnChange = (0,
|
|
5577
|
+
const manageOnChange = (0, import_react17.useCallback)(
|
|
5601
5578
|
({
|
|
5602
5579
|
model,
|
|
5603
5580
|
ids,
|
|
@@ -5625,7 +5602,7 @@ function useViewService() {
|
|
|
5625
5602
|
},
|
|
5626
5603
|
[env]
|
|
5627
5604
|
);
|
|
5628
|
-
const getOrderLine = (0,
|
|
5605
|
+
const getOrderLine = (0, import_react17.useCallback)(
|
|
5629
5606
|
({
|
|
5630
5607
|
model,
|
|
5631
5608
|
ids,
|
|
@@ -5655,7 +5632,7 @@ function useViewService() {
|
|
|
5655
5632
|
},
|
|
5656
5633
|
[env]
|
|
5657
5634
|
);
|
|
5658
|
-
const getProductImage = (0,
|
|
5635
|
+
const getProductImage = (0, import_react17.useCallback)(
|
|
5659
5636
|
({
|
|
5660
5637
|
model,
|
|
5661
5638
|
fields,
|
|
@@ -5688,7 +5665,7 @@ function useViewService() {
|
|
|
5688
5665
|
},
|
|
5689
5666
|
[env]
|
|
5690
5667
|
);
|
|
5691
|
-
const checkPayment = (0,
|
|
5668
|
+
const checkPayment = (0, import_react17.useCallback)(
|
|
5692
5669
|
({
|
|
5693
5670
|
model,
|
|
5694
5671
|
ids,
|
|
@@ -5716,7 +5693,7 @@ function useViewService() {
|
|
|
5716
5693
|
},
|
|
5717
5694
|
[env]
|
|
5718
5695
|
);
|
|
5719
|
-
const handleCloseSession = (0,
|
|
5696
|
+
const handleCloseSession = (0, import_react17.useCallback)(
|
|
5720
5697
|
({
|
|
5721
5698
|
model,
|
|
5722
5699
|
ids,
|
|
@@ -5743,7 +5720,7 @@ function useViewService() {
|
|
|
5743
5720
|
},
|
|
5744
5721
|
[env]
|
|
5745
5722
|
);
|
|
5746
|
-
const handleClosingDetailSession = (0,
|
|
5723
|
+
const handleClosingDetailSession = (0, import_react17.useCallback)(
|
|
5747
5724
|
({
|
|
5748
5725
|
model,
|
|
5749
5726
|
ids,
|
|
@@ -5772,7 +5749,7 @@ function useViewService() {
|
|
|
5772
5749
|
},
|
|
5773
5750
|
[env]
|
|
5774
5751
|
);
|
|
5775
|
-
const createPosConfig = (0,
|
|
5752
|
+
const createPosConfig = (0, import_react17.useCallback)(
|
|
5776
5753
|
({
|
|
5777
5754
|
model,
|
|
5778
5755
|
name,
|
|
@@ -5801,7 +5778,7 @@ function useViewService() {
|
|
|
5801
5778
|
},
|
|
5802
5779
|
[env]
|
|
5803
5780
|
);
|
|
5804
|
-
const searchJournal = (0,
|
|
5781
|
+
const searchJournal = (0, import_react17.useCallback)(
|
|
5805
5782
|
({
|
|
5806
5783
|
model,
|
|
5807
5784
|
method,
|
|
@@ -5830,7 +5807,7 @@ function useViewService() {
|
|
|
5830
5807
|
},
|
|
5831
5808
|
[env]
|
|
5832
5809
|
);
|
|
5833
|
-
const changeOrderPreparaionState = (0,
|
|
5810
|
+
const changeOrderPreparaionState = (0, import_react17.useCallback)(
|
|
5834
5811
|
({
|
|
5835
5812
|
orderId,
|
|
5836
5813
|
stageId,
|
|
@@ -5861,7 +5838,7 @@ function useViewService() {
|
|
|
5861
5838
|
},
|
|
5862
5839
|
[env]
|
|
5863
5840
|
);
|
|
5864
|
-
const updateOrderStatus = (0,
|
|
5841
|
+
const updateOrderStatus = (0, import_react17.useCallback)(
|
|
5865
5842
|
({
|
|
5866
5843
|
orderId,
|
|
5867
5844
|
state,
|
|
@@ -5886,7 +5863,7 @@ function useViewService() {
|
|
|
5886
5863
|
},
|
|
5887
5864
|
[env]
|
|
5888
5865
|
);
|
|
5889
|
-
const processOrder = (0,
|
|
5866
|
+
const processOrder = (0, import_react17.useCallback)(
|
|
5890
5867
|
({
|
|
5891
5868
|
orderId,
|
|
5892
5869
|
xNode,
|
|
@@ -5913,7 +5890,7 @@ function useViewService() {
|
|
|
5913
5890
|
},
|
|
5914
5891
|
[env]
|
|
5915
5892
|
);
|
|
5916
|
-
const generatePaymentQRInfo = (0,
|
|
5893
|
+
const generatePaymentQRInfo = (0, import_react17.useCallback)(
|
|
5917
5894
|
({
|
|
5918
5895
|
orderId,
|
|
5919
5896
|
amount,
|
|
@@ -5940,7 +5917,7 @@ function useViewService() {
|
|
|
5940
5917
|
},
|
|
5941
5918
|
[env]
|
|
5942
5919
|
);
|
|
5943
|
-
const savePinCode = (0,
|
|
5920
|
+
const savePinCode = (0, import_react17.useCallback)(
|
|
5944
5921
|
({
|
|
5945
5922
|
serialNumber,
|
|
5946
5923
|
pinCode,
|
|
@@ -5965,7 +5942,7 @@ function useViewService() {
|
|
|
5965
5942
|
},
|
|
5966
5943
|
[env]
|
|
5967
5944
|
);
|
|
5968
|
-
const getPinCode = (0,
|
|
5945
|
+
const getPinCode = (0, import_react17.useCallback)(
|
|
5969
5946
|
({
|
|
5970
5947
|
serialNumber,
|
|
5971
5948
|
xNode,
|
|
@@ -5988,7 +5965,7 @@ function useViewService() {
|
|
|
5988
5965
|
},
|
|
5989
5966
|
[env]
|
|
5990
5967
|
);
|
|
5991
|
-
const getNotifications = (0,
|
|
5968
|
+
const getNotifications = (0, import_react17.useCallback)(
|
|
5992
5969
|
async ({
|
|
5993
5970
|
service,
|
|
5994
5971
|
xNode,
|
|
@@ -6008,7 +5985,7 @@ function useViewService() {
|
|
|
6008
5985
|
},
|
|
6009
5986
|
[env]
|
|
6010
5987
|
);
|
|
6011
|
-
const createEInvoice = (0,
|
|
5988
|
+
const createEInvoice = (0, import_react17.useCallback)(
|
|
6012
5989
|
async ({
|
|
6013
5990
|
service,
|
|
6014
5991
|
xNode,
|
|
@@ -6037,7 +6014,7 @@ function useViewService() {
|
|
|
6037
6014
|
},
|
|
6038
6015
|
[env]
|
|
6039
6016
|
);
|
|
6040
|
-
const getCurrentUser = (0,
|
|
6017
|
+
const getCurrentUser = (0, import_react17.useCallback)(
|
|
6041
6018
|
async ({
|
|
6042
6019
|
service,
|
|
6043
6020
|
xNode,
|
|
@@ -6061,7 +6038,7 @@ function useViewService() {
|
|
|
6061
6038
|
},
|
|
6062
6039
|
[env]
|
|
6063
6040
|
);
|
|
6064
|
-
const getCountry = (0,
|
|
6041
|
+
const getCountry = (0, import_react17.useCallback)(
|
|
6065
6042
|
async ({
|
|
6066
6043
|
service,
|
|
6067
6044
|
xNode,
|
|
@@ -6088,7 +6065,7 @@ function useViewService() {
|
|
|
6088
6065
|
},
|
|
6089
6066
|
[env]
|
|
6090
6067
|
);
|
|
6091
|
-
const getCity = (0,
|
|
6068
|
+
const getCity = (0, import_react17.useCallback)(
|
|
6092
6069
|
async ({
|
|
6093
6070
|
service,
|
|
6094
6071
|
xNode,
|
|
@@ -6115,7 +6092,7 @@ function useViewService() {
|
|
|
6115
6092
|
},
|
|
6116
6093
|
[env]
|
|
6117
6094
|
);
|
|
6118
|
-
const getWard = (0,
|
|
6095
|
+
const getWard = (0, import_react17.useCallback)(
|
|
6119
6096
|
async ({
|
|
6120
6097
|
service,
|
|
6121
6098
|
xNode,
|
|
@@ -6140,7 +6117,7 @@ function useViewService() {
|
|
|
6140
6117
|
},
|
|
6141
6118
|
[env]
|
|
6142
6119
|
);
|
|
6143
|
-
const getPartnerTitle = (0,
|
|
6120
|
+
const getPartnerTitle = (0, import_react17.useCallback)(
|
|
6144
6121
|
async ({
|
|
6145
6122
|
service,
|
|
6146
6123
|
xNode,
|
|
@@ -6197,7 +6174,6 @@ function useViewService() {
|
|
|
6197
6174
|
manageOnChange,
|
|
6198
6175
|
getOrderLine,
|
|
6199
6176
|
getProductImage,
|
|
6200
|
-
addEntity,
|
|
6201
6177
|
checkPayment,
|
|
6202
6178
|
handleCloseSession,
|
|
6203
6179
|
handleClosingDetailSession,
|
|
@@ -6221,10 +6197,10 @@ function useViewService() {
|
|
|
6221
6197
|
}
|
|
6222
6198
|
|
|
6223
6199
|
// src/services/dashboard-service/index.ts
|
|
6224
|
-
var
|
|
6200
|
+
var import_react18 = require("react");
|
|
6225
6201
|
function useDashboardService() {
|
|
6226
6202
|
const { env } = useEnv();
|
|
6227
|
-
const readGroup = (0,
|
|
6203
|
+
const readGroup = (0, import_react18.useCallback)(
|
|
6228
6204
|
async ({
|
|
6229
6205
|
service,
|
|
6230
6206
|
xNode,
|
|
@@ -6241,7 +6217,7 @@ function useDashboardService() {
|
|
|
6241
6217
|
},
|
|
6242
6218
|
[env]
|
|
6243
6219
|
);
|
|
6244
|
-
const getDataChart = (0,
|
|
6220
|
+
const getDataChart = (0, import_react18.useCallback)(
|
|
6245
6221
|
async ({
|
|
6246
6222
|
service,
|
|
6247
6223
|
xNode,
|