@fctc/interface-logic 4.4.3 → 4.4.4
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 +214 -218
- package/dist/hooks.mjs +164 -168
- package/dist/provider.js +214 -218
- package/dist/provider.mjs +164 -168
- package/dist/services.js +108 -105
- package/dist/services.mjs +83 -80
- package/package.json +1 -1
package/dist/hooks.mjs
CHANGED
|
@@ -6414,16 +6414,9 @@ var use_isvalid_token_default = useIsValidToken;
|
|
|
6414
6414
|
// src/hooks/auth/use-login-credential.tsx
|
|
6415
6415
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
6416
6416
|
var useLoginCredential = () => {
|
|
6417
|
-
const { login
|
|
6418
|
-
const { env } = useEnv();
|
|
6417
|
+
const { login } = useAuthService();
|
|
6419
6418
|
return useMutation5({
|
|
6420
6419
|
mutationFn: (data) => {
|
|
6421
|
-
if (env.isSupaMode) {
|
|
6422
|
-
return loginSupabase({
|
|
6423
|
-
email: data.email,
|
|
6424
|
-
password: data.password
|
|
6425
|
-
});
|
|
6426
|
-
}
|
|
6427
6420
|
return login(data);
|
|
6428
6421
|
}
|
|
6429
6422
|
});
|
|
@@ -6442,11 +6435,14 @@ var useLoginSocial = () => {
|
|
|
6442
6435
|
};
|
|
6443
6436
|
var use_login_socical_default = useLoginSocial;
|
|
6444
6437
|
|
|
6445
|
-
// src/hooks/auth/use-
|
|
6438
|
+
// src/hooks/auth/use-login-supa.tsx
|
|
6446
6439
|
import { useMutation as useMutation7 } from "@tanstack/react-query";
|
|
6440
|
+
|
|
6441
|
+
// src/hooks/auth/use-reset-password.ts
|
|
6442
|
+
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
|
6447
6443
|
var useResetPassword = () => {
|
|
6448
6444
|
const { resetPassword } = useAuthService();
|
|
6449
|
-
return
|
|
6445
|
+
return useMutation8({
|
|
6450
6446
|
mutationFn: (request) => {
|
|
6451
6447
|
return resetPassword(request.data, request.token);
|
|
6452
6448
|
}
|
|
@@ -6455,10 +6451,10 @@ var useResetPassword = () => {
|
|
|
6455
6451
|
var use_reset_password_default = useResetPassword;
|
|
6456
6452
|
|
|
6457
6453
|
// src/hooks/auth/use-reset-password-sso.ts
|
|
6458
|
-
import { useMutation as
|
|
6454
|
+
import { useMutation as useMutation9 } from "@tanstack/react-query";
|
|
6459
6455
|
var useResetPasswordSSO = () => {
|
|
6460
6456
|
const { resetPasswordSSO } = useAuthService();
|
|
6461
|
-
return
|
|
6457
|
+
return useMutation9({
|
|
6462
6458
|
mutationFn: ({
|
|
6463
6459
|
method,
|
|
6464
6460
|
password,
|
|
@@ -6475,10 +6471,10 @@ var useResetPasswordSSO = () => {
|
|
|
6475
6471
|
var use_reset_password_sso_default = useResetPasswordSSO;
|
|
6476
6472
|
|
|
6477
6473
|
// src/hooks/auth/use-update-password.ts
|
|
6478
|
-
import { useMutation as
|
|
6474
|
+
import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
6479
6475
|
var useUpdatePassword = () => {
|
|
6480
6476
|
const { updatePassword } = useAuthService();
|
|
6481
|
-
return
|
|
6477
|
+
return useMutation10({
|
|
6482
6478
|
mutationFn: (request) => {
|
|
6483
6479
|
return updatePassword(request.data, request.token);
|
|
6484
6480
|
}
|
|
@@ -6487,10 +6483,10 @@ var useUpdatePassword = () => {
|
|
|
6487
6483
|
var use_update_password_default = useUpdatePassword;
|
|
6488
6484
|
|
|
6489
6485
|
// src/hooks/auth/use-logout.ts
|
|
6490
|
-
import { useMutation as
|
|
6486
|
+
import { useMutation as useMutation11 } from "@tanstack/react-query";
|
|
6491
6487
|
var useLogout = () => {
|
|
6492
6488
|
const { logout } = useAuthService();
|
|
6493
|
-
return
|
|
6489
|
+
return useMutation11({
|
|
6494
6490
|
mutationFn: (service) => {
|
|
6495
6491
|
return logout(service);
|
|
6496
6492
|
}
|
|
@@ -6499,10 +6495,10 @@ var useLogout = () => {
|
|
|
6499
6495
|
var use_logout_default = useLogout;
|
|
6500
6496
|
|
|
6501
6497
|
// src/hooks/auth/use-get-access-by-code.ts
|
|
6502
|
-
import { useMutation as
|
|
6498
|
+
import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
6503
6499
|
var useGetAccessByCode = () => {
|
|
6504
6500
|
const { getAccessByCode } = useAuthService();
|
|
6505
|
-
return
|
|
6501
|
+
return useMutation12({
|
|
6506
6502
|
mutationFn: ({ code }) => {
|
|
6507
6503
|
return getAccessByCode(code);
|
|
6508
6504
|
}
|
|
@@ -6511,10 +6507,10 @@ var useGetAccessByCode = () => {
|
|
|
6511
6507
|
var use_get_access_by_code_default = useGetAccessByCode;
|
|
6512
6508
|
|
|
6513
6509
|
// src/hooks/auth/use-validate-action-token.ts
|
|
6514
|
-
import { useMutation as
|
|
6510
|
+
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
6515
6511
|
var useValidateActionToken = () => {
|
|
6516
6512
|
const { isValidActionToken } = useAuthService();
|
|
6517
|
-
return
|
|
6513
|
+
return useMutation13({
|
|
6518
6514
|
mutationFn: ({ actionToken }) => {
|
|
6519
6515
|
return isValidActionToken(actionToken);
|
|
6520
6516
|
}
|
|
@@ -6523,10 +6519,10 @@ var useValidateActionToken = () => {
|
|
|
6523
6519
|
var use_validate_action_token_default = useValidateActionToken;
|
|
6524
6520
|
|
|
6525
6521
|
// src/hooks/auth/use-get-tenant-mapping.ts
|
|
6526
|
-
import { useMutation as
|
|
6522
|
+
import { useMutation as useMutation14 } from "@tanstack/react-query";
|
|
6527
6523
|
var useGetTenantMapping = () => {
|
|
6528
6524
|
const { getTenantMapping } = useAuthService();
|
|
6529
|
-
return
|
|
6525
|
+
return useMutation14({
|
|
6530
6526
|
mutationFn: ({
|
|
6531
6527
|
shortName,
|
|
6532
6528
|
service
|
|
@@ -6538,10 +6534,10 @@ var useGetTenantMapping = () => {
|
|
|
6538
6534
|
var use_get_tenant_mapping_default = useGetTenantMapping;
|
|
6539
6535
|
|
|
6540
6536
|
// src/hooks/auth/use-get-token.ts
|
|
6541
|
-
import { useMutation as
|
|
6537
|
+
import { useMutation as useMutation15 } from "@tanstack/react-query";
|
|
6542
6538
|
var useGetToken = () => {
|
|
6543
6539
|
const { getToken } = useAuthService();
|
|
6544
|
-
return
|
|
6540
|
+
return useMutation15({
|
|
6545
6541
|
mutationFn: ({
|
|
6546
6542
|
phone,
|
|
6547
6543
|
name,
|
|
@@ -6555,20 +6551,20 @@ var useGetToken = () => {
|
|
|
6555
6551
|
var use_get_token_default = useGetToken;
|
|
6556
6552
|
|
|
6557
6553
|
// src/hooks/company/use-get-company-info.ts
|
|
6558
|
-
import { useMutation as
|
|
6554
|
+
import { useMutation as useMutation16 } from "@tanstack/react-query";
|
|
6559
6555
|
var useGetCompanyInfo = () => {
|
|
6560
6556
|
const { getInfoCompany } = useCompanyService();
|
|
6561
|
-
return
|
|
6557
|
+
return useMutation16({
|
|
6562
6558
|
mutationFn: ({ service, id }) => getInfoCompany(id, service)
|
|
6563
6559
|
});
|
|
6564
6560
|
};
|
|
6565
6561
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
6566
6562
|
|
|
6567
6563
|
// src/hooks/company/use-get-current-company.ts
|
|
6568
|
-
import { useMutation as
|
|
6564
|
+
import { useMutation as useMutation17 } from "@tanstack/react-query";
|
|
6569
6565
|
var useGetCurrentCompany = () => {
|
|
6570
6566
|
const { getCurrentCompany } = useCompanyService();
|
|
6571
|
-
return
|
|
6567
|
+
return useMutation17({
|
|
6572
6568
|
mutationFn: ({
|
|
6573
6569
|
service,
|
|
6574
6570
|
extraHeaders
|
|
@@ -6599,10 +6595,10 @@ var useGetListCompany = (companyIDs = []) => {
|
|
|
6599
6595
|
var use_get_list_company_default = useGetListCompany;
|
|
6600
6596
|
|
|
6601
6597
|
// src/hooks/excel/use-export-excel.ts
|
|
6602
|
-
import { useMutation as
|
|
6598
|
+
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
6603
6599
|
var useExportExcel = () => {
|
|
6604
6600
|
const { exportExcel } = useExcelService();
|
|
6605
|
-
return
|
|
6601
|
+
return useMutation18({
|
|
6606
6602
|
mutationFn: ({
|
|
6607
6603
|
model,
|
|
6608
6604
|
domain,
|
|
@@ -6631,10 +6627,10 @@ var useExportExcel = () => {
|
|
|
6631
6627
|
var use_export_excel_default = useExportExcel;
|
|
6632
6628
|
|
|
6633
6629
|
// src/hooks/excel/use-get-field-export.ts
|
|
6634
|
-
import { useMutation as
|
|
6630
|
+
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
6635
6631
|
var useGetFieldExport = () => {
|
|
6636
6632
|
const { getFieldExport } = useExcelService();
|
|
6637
|
-
return
|
|
6633
|
+
return useMutation19({
|
|
6638
6634
|
mutationFn: ({
|
|
6639
6635
|
ids,
|
|
6640
6636
|
model,
|
|
@@ -6694,10 +6690,10 @@ var useGetFileExcel = ({
|
|
|
6694
6690
|
var use_get_file_excel_default = useGetFileExcel;
|
|
6695
6691
|
|
|
6696
6692
|
// src/hooks/excel/use-parse-preview.ts
|
|
6697
|
-
import { useMutation as
|
|
6693
|
+
import { useMutation as useMutation20 } from "@tanstack/react-query";
|
|
6698
6694
|
var useParsePreview = () => {
|
|
6699
6695
|
const { parsePreview } = useExcelService();
|
|
6700
|
-
return
|
|
6696
|
+
return useMutation20({
|
|
6701
6697
|
mutationFn: ({
|
|
6702
6698
|
id,
|
|
6703
6699
|
selectedSheet,
|
|
@@ -6718,10 +6714,10 @@ var useParsePreview = () => {
|
|
|
6718
6714
|
var use_parse_preview_default = useParsePreview;
|
|
6719
6715
|
|
|
6720
6716
|
// src/hooks/excel/use-upload-file-excel.ts
|
|
6721
|
-
import { useMutation as
|
|
6717
|
+
import { useMutation as useMutation21 } from "@tanstack/react-query";
|
|
6722
6718
|
var useUploadFileExcel = () => {
|
|
6723
6719
|
const { uploadFileExcel } = useExcelService();
|
|
6724
|
-
return
|
|
6720
|
+
return useMutation21({
|
|
6725
6721
|
mutationFn: ({
|
|
6726
6722
|
formData,
|
|
6727
6723
|
service,
|
|
@@ -6736,10 +6732,10 @@ var useUploadFileExcel = () => {
|
|
|
6736
6732
|
var use_upload_file_excel_default = useUploadFileExcel;
|
|
6737
6733
|
|
|
6738
6734
|
// src/hooks/excel/use-upload-id-file.ts
|
|
6739
|
-
import { useMutation as
|
|
6735
|
+
import { useMutation as useMutation22 } from "@tanstack/react-query";
|
|
6740
6736
|
var useUploadIdFile = () => {
|
|
6741
6737
|
const { uploadIdFile } = useExcelService();
|
|
6742
|
-
return
|
|
6738
|
+
return useMutation22({
|
|
6743
6739
|
mutationFn: ({
|
|
6744
6740
|
formData,
|
|
6745
6741
|
service,
|
|
@@ -6754,10 +6750,10 @@ var useUploadIdFile = () => {
|
|
|
6754
6750
|
var use_upload_id_file_default = useUploadIdFile;
|
|
6755
6751
|
|
|
6756
6752
|
// src/hooks/excel/uss-execute-import.ts
|
|
6757
|
-
import { useMutation as
|
|
6753
|
+
import { useMutation as useMutation23 } from "@tanstack/react-query";
|
|
6758
6754
|
var useExecuteImport = () => {
|
|
6759
6755
|
const { executeImport } = useExcelService();
|
|
6760
|
-
return
|
|
6756
|
+
return useMutation23({
|
|
6761
6757
|
mutationFn: ({
|
|
6762
6758
|
fields,
|
|
6763
6759
|
columns,
|
|
@@ -6782,10 +6778,10 @@ var useExecuteImport = () => {
|
|
|
6782
6778
|
var uss_execute_import_default = useExecuteImport;
|
|
6783
6779
|
|
|
6784
6780
|
// src/hooks/form/use-change-status.ts
|
|
6785
|
-
import { useMutation as
|
|
6781
|
+
import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
6786
6782
|
var useChangeStatus = () => {
|
|
6787
6783
|
const { changeStatus } = useFormService();
|
|
6788
|
-
return
|
|
6784
|
+
return useMutation24({
|
|
6789
6785
|
mutationFn: ({ data }) => {
|
|
6790
6786
|
return changeStatus({
|
|
6791
6787
|
data
|
|
@@ -6796,10 +6792,10 @@ var useChangeStatus = () => {
|
|
|
6796
6792
|
var use_change_status_default = useChangeStatus;
|
|
6797
6793
|
|
|
6798
6794
|
// src/hooks/form/use-delete-comment.ts
|
|
6799
|
-
import { useMutation as
|
|
6795
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
6800
6796
|
var useDeleteComment = () => {
|
|
6801
6797
|
const { deleteComment } = useFormService();
|
|
6802
|
-
return
|
|
6798
|
+
return useMutation25({
|
|
6803
6799
|
mutationFn: ({ data }) => deleteComment({
|
|
6804
6800
|
data
|
|
6805
6801
|
})
|
|
@@ -6867,10 +6863,10 @@ var useGetImage = ({
|
|
|
6867
6863
|
var use_get_image_default = useGetImage;
|
|
6868
6864
|
|
|
6869
6865
|
// src/hooks/form/use-send-comment.ts
|
|
6870
|
-
import { useMutation as
|
|
6866
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
6871
6867
|
var useSendComment = () => {
|
|
6872
6868
|
const { sentComment } = useFormService();
|
|
6873
|
-
return
|
|
6869
|
+
return useMutation26({
|
|
6874
6870
|
mutationFn: ({ data }) => sentComment({
|
|
6875
6871
|
data
|
|
6876
6872
|
})
|
|
@@ -6879,10 +6875,10 @@ var useSendComment = () => {
|
|
|
6879
6875
|
var use_send_comment_default = useSendComment;
|
|
6880
6876
|
|
|
6881
6877
|
// src/hooks/form/use-upload-image.ts
|
|
6882
|
-
import { useMutation as
|
|
6878
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
6883
6879
|
var useUploadImage = () => {
|
|
6884
6880
|
const { uploadImage } = useFormService();
|
|
6885
|
-
return
|
|
6881
|
+
return useMutation27({
|
|
6886
6882
|
mutationFn: ({
|
|
6887
6883
|
formData,
|
|
6888
6884
|
service,
|
|
@@ -6897,10 +6893,10 @@ var useUploadImage = () => {
|
|
|
6897
6893
|
var use_upload_image_default = useUploadImage;
|
|
6898
6894
|
|
|
6899
6895
|
// src/hooks/form/use-upload-file.ts
|
|
6900
|
-
import { useMutation as
|
|
6896
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
6901
6897
|
var useUploadFile = () => {
|
|
6902
6898
|
const { uploadFile } = useFormService();
|
|
6903
|
-
return
|
|
6899
|
+
return useMutation28({
|
|
6904
6900
|
mutationFn: ({
|
|
6905
6901
|
formData,
|
|
6906
6902
|
service,
|
|
@@ -6991,10 +6987,10 @@ var useGetExternalTabs = ({
|
|
|
6991
6987
|
var use_get_external_tabs_default = useGetExternalTabs;
|
|
6992
6988
|
|
|
6993
6989
|
// src/hooks/model/use-delete.ts
|
|
6994
|
-
import { useMutation as
|
|
6990
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
6995
6991
|
var useDelete = () => {
|
|
6996
6992
|
const { deleteApi } = useModelService();
|
|
6997
|
-
return
|
|
6993
|
+
return useMutation29({
|
|
6998
6994
|
mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
|
|
6999
6995
|
});
|
|
7000
6996
|
};
|
|
@@ -7050,10 +7046,10 @@ var useGetCurrency = () => {
|
|
|
7050
7046
|
var use_get_currency_default = useGetCurrency;
|
|
7051
7047
|
|
|
7052
7048
|
// src/hooks/model/use-get-detail.ts
|
|
7053
|
-
import { useMutation as
|
|
7049
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
7054
7050
|
var useGetDetail = () => {
|
|
7055
7051
|
const { getDetail } = useModelService();
|
|
7056
|
-
return
|
|
7052
|
+
return useMutation30({
|
|
7057
7053
|
mutationFn: ({
|
|
7058
7054
|
model,
|
|
7059
7055
|
ids,
|
|
@@ -7261,10 +7257,10 @@ var useOdooDataTransform = () => {
|
|
|
7261
7257
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
7262
7258
|
|
|
7263
7259
|
// src/hooks/model/use-onchange-form.ts
|
|
7264
|
-
import { useMutation as
|
|
7260
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
7265
7261
|
var useOnChangeForm = () => {
|
|
7266
7262
|
const { onChange } = useModelService();
|
|
7267
|
-
return
|
|
7263
|
+
return useMutation31({
|
|
7268
7264
|
mutationFn: ({
|
|
7269
7265
|
ids,
|
|
7270
7266
|
model,
|
|
@@ -7289,10 +7285,10 @@ var useOnChangeForm = () => {
|
|
|
7289
7285
|
var use_onchange_form_default = useOnChangeForm;
|
|
7290
7286
|
|
|
7291
7287
|
// src/hooks/model/use-save.ts
|
|
7292
|
-
import { useMutation as
|
|
7288
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
7293
7289
|
var useSave = () => {
|
|
7294
7290
|
const { save } = useModelService();
|
|
7295
|
-
return
|
|
7291
|
+
return useMutation32({
|
|
7296
7292
|
mutationFn: ({
|
|
7297
7293
|
ids,
|
|
7298
7294
|
model,
|
|
@@ -7308,20 +7304,20 @@ var useSave = () => {
|
|
|
7308
7304
|
var use_save_default = useSave;
|
|
7309
7305
|
|
|
7310
7306
|
// src/hooks/user/use-get-profile.ts
|
|
7311
|
-
import { useMutation as
|
|
7307
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
7312
7308
|
var useGetProfile = (service, path, extraHeaders) => {
|
|
7313
7309
|
const { getProfile } = useUserService();
|
|
7314
|
-
return
|
|
7310
|
+
return useMutation33({
|
|
7315
7311
|
mutationFn: () => getProfile(service, path, extraHeaders)
|
|
7316
7312
|
});
|
|
7317
7313
|
};
|
|
7318
7314
|
var use_get_profile_default = useGetProfile;
|
|
7319
7315
|
|
|
7320
7316
|
// src/hooks/user/use-get-user.ts
|
|
7321
|
-
import { useMutation as
|
|
7317
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
7322
7318
|
var useGetUser = () => {
|
|
7323
7319
|
const { getUser } = useUserService();
|
|
7324
|
-
return
|
|
7320
|
+
return useMutation34({
|
|
7325
7321
|
mutationFn: ({ id, context }) => getUser({
|
|
7326
7322
|
id,
|
|
7327
7323
|
context
|
|
@@ -7331,10 +7327,10 @@ var useGetUser = () => {
|
|
|
7331
7327
|
var use_get_user_default = useGetUser;
|
|
7332
7328
|
|
|
7333
7329
|
// src/hooks/user/use-switch-locale.ts
|
|
7334
|
-
import { useMutation as
|
|
7330
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
7335
7331
|
var useSwitchLocale = () => {
|
|
7336
7332
|
const { switchUserLocale } = useUserService();
|
|
7337
|
-
return
|
|
7333
|
+
return useMutation35({
|
|
7338
7334
|
mutationFn: ({
|
|
7339
7335
|
data,
|
|
7340
7336
|
service
|
|
@@ -7350,10 +7346,10 @@ var useSwitchLocale = () => {
|
|
|
7350
7346
|
var use_switch_locale_default = useSwitchLocale;
|
|
7351
7347
|
|
|
7352
7348
|
// src/hooks/view/use-button.ts
|
|
7353
|
-
import { useMutation as
|
|
7349
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
7354
7350
|
var useButton = () => {
|
|
7355
7351
|
const { callButton } = useActionService();
|
|
7356
|
-
return
|
|
7352
|
+
return useMutation36({
|
|
7357
7353
|
mutationFn: ({
|
|
7358
7354
|
model,
|
|
7359
7355
|
ids,
|
|
@@ -7377,10 +7373,10 @@ var useButton = () => {
|
|
|
7377
7373
|
var use_button_default = useButton;
|
|
7378
7374
|
|
|
7379
7375
|
// src/hooks/view/use-duplicate-record.ts
|
|
7380
|
-
import { useMutation as
|
|
7376
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
7381
7377
|
var useDuplicateRecord = () => {
|
|
7382
7378
|
const { duplicateRecord } = useActionService();
|
|
7383
|
-
return
|
|
7379
|
+
return useMutation37({
|
|
7384
7380
|
mutationFn: ({
|
|
7385
7381
|
id,
|
|
7386
7382
|
model,
|
|
@@ -7517,10 +7513,10 @@ var useGetMenu = (context, specification, enabled, domain, service) => {
|
|
|
7517
7513
|
var use_get_menu_default = useGetMenu;
|
|
7518
7514
|
|
|
7519
7515
|
// src/hooks/view/use-get-print-report.ts
|
|
7520
|
-
import { useMutation as
|
|
7516
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
7521
7517
|
var useGetPrintReport = () => {
|
|
7522
7518
|
const { getPrintReportName } = useActionService();
|
|
7523
|
-
return
|
|
7519
|
+
return useMutation38({
|
|
7524
7520
|
mutationFn: ({ id }) => getPrintReportName({
|
|
7525
7521
|
id
|
|
7526
7522
|
})
|
|
@@ -7595,10 +7591,10 @@ var useGetView = ({ viewParams, enabled }) => {
|
|
|
7595
7591
|
var use_get_view_default = useGetView;
|
|
7596
7592
|
|
|
7597
7593
|
// src/hooks/view/use-load-action.ts
|
|
7598
|
-
import { useMutation as
|
|
7594
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
7599
7595
|
var useLoadAction = () => {
|
|
7600
7596
|
const { loadAction } = useActionService();
|
|
7601
|
-
return
|
|
7597
|
+
return useMutation39({
|
|
7602
7598
|
mutationFn: ({
|
|
7603
7599
|
idAction,
|
|
7604
7600
|
context,
|
|
@@ -7631,10 +7627,10 @@ var useLoadMessage = () => {
|
|
|
7631
7627
|
var use_load_message_default = useLoadMessage;
|
|
7632
7628
|
|
|
7633
7629
|
// src/hooks/view/use-print.ts
|
|
7634
|
-
import { useMutation as
|
|
7630
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
7635
7631
|
var usePrint = () => {
|
|
7636
7632
|
const { print } = useActionService();
|
|
7637
|
-
return
|
|
7633
|
+
return useMutation40({
|
|
7638
7634
|
mutationFn: ({ id, report, db }) => print({
|
|
7639
7635
|
id,
|
|
7640
7636
|
report,
|
|
@@ -7645,10 +7641,10 @@ var usePrint = () => {
|
|
|
7645
7641
|
var use_print_default = usePrint;
|
|
7646
7642
|
|
|
7647
7643
|
// src/hooks/view/use-remove-row.ts
|
|
7648
|
-
import { useMutation as
|
|
7644
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
7649
7645
|
var useRemoveRow = () => {
|
|
7650
7646
|
const { removeRows } = useActionService();
|
|
7651
|
-
return
|
|
7647
|
+
return useMutation41({
|
|
7652
7648
|
mutationFn: ({
|
|
7653
7649
|
model,
|
|
7654
7650
|
ids,
|
|
@@ -7667,10 +7663,10 @@ var useRemoveRow = () => {
|
|
|
7667
7663
|
var use_remove_row_default = useRemoveRow;
|
|
7668
7664
|
|
|
7669
7665
|
// src/hooks/view/use-resequence.ts
|
|
7670
|
-
import { useMutation as
|
|
7666
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
7671
7667
|
var useGetResequence = () => {
|
|
7672
7668
|
const { getResequence } = useViewService();
|
|
7673
|
-
return
|
|
7669
|
+
return useMutation42({
|
|
7674
7670
|
mutationFn: ({
|
|
7675
7671
|
model,
|
|
7676
7672
|
resIds,
|
|
@@ -7691,10 +7687,10 @@ var useGetResequence = () => {
|
|
|
7691
7687
|
var use_resequence_default = useGetResequence;
|
|
7692
7688
|
|
|
7693
7689
|
// src/hooks/view/use-run-action.ts
|
|
7694
|
-
import { useMutation as
|
|
7690
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
7695
7691
|
var useRunAction = () => {
|
|
7696
7692
|
const { runAction } = useActionService();
|
|
7697
|
-
return
|
|
7693
|
+
return useMutation43({
|
|
7698
7694
|
mutationFn: ({
|
|
7699
7695
|
idAction,
|
|
7700
7696
|
context,
|
|
@@ -7713,10 +7709,10 @@ var useRunAction = () => {
|
|
|
7713
7709
|
var use_run_action_default = useRunAction;
|
|
7714
7710
|
|
|
7715
7711
|
// src/hooks/view/use-signin-sso.ts
|
|
7716
|
-
import { useMutation as
|
|
7712
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
7717
7713
|
var useSignInSSO = () => {
|
|
7718
7714
|
const { signInSSO } = useViewService();
|
|
7719
|
-
return
|
|
7715
|
+
return useMutation44({
|
|
7720
7716
|
mutationFn: ({
|
|
7721
7717
|
redirect_uri,
|
|
7722
7718
|
state,
|
|
@@ -7739,10 +7735,10 @@ var useSignInSSO = () => {
|
|
|
7739
7735
|
var use_signin_sso_default = useSignInSSO;
|
|
7740
7736
|
|
|
7741
7737
|
// src/hooks/view/use-verify-2FA.ts
|
|
7742
|
-
import { useMutation as
|
|
7738
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
7743
7739
|
var useVerify2FA = () => {
|
|
7744
7740
|
const { verify2FA } = useViewService();
|
|
7745
|
-
return
|
|
7741
|
+
return useMutation45({
|
|
7746
7742
|
mutationFn: ({
|
|
7747
7743
|
method,
|
|
7748
7744
|
with_context,
|
|
@@ -7763,10 +7759,10 @@ var useVerify2FA = () => {
|
|
|
7763
7759
|
var use_verify_2FA_default = useVerify2FA;
|
|
7764
7760
|
|
|
7765
7761
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
7766
|
-
import { useMutation as
|
|
7762
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
7767
7763
|
var useGet2FAMethods = () => {
|
|
7768
7764
|
const { get2FAMethods } = useViewService();
|
|
7769
|
-
return
|
|
7765
|
+
return useMutation46({
|
|
7770
7766
|
mutationFn: ({
|
|
7771
7767
|
method,
|
|
7772
7768
|
with_context
|
|
@@ -7781,10 +7777,10 @@ var useGet2FAMethods = () => {
|
|
|
7781
7777
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
7782
7778
|
|
|
7783
7779
|
// src/hooks/view/use-grant-access.ts
|
|
7784
|
-
import { useMutation as
|
|
7780
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
7785
7781
|
var useGrantAccess = () => {
|
|
7786
7782
|
const { grantAccess } = useViewService();
|
|
7787
|
-
return
|
|
7783
|
+
return useMutation47({
|
|
7788
7784
|
mutationFn: ({
|
|
7789
7785
|
redirect_uri,
|
|
7790
7786
|
state,
|
|
@@ -7803,10 +7799,10 @@ var useGrantAccess = () => {
|
|
|
7803
7799
|
var use_grant_access_default = useGrantAccess;
|
|
7804
7800
|
|
|
7805
7801
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
7806
|
-
import { useMutation as
|
|
7802
|
+
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
7807
7803
|
var useRemoveTotpSetup = () => {
|
|
7808
7804
|
const { removeTotpSetUp } = useViewService();
|
|
7809
|
-
return
|
|
7805
|
+
return useMutation48({
|
|
7810
7806
|
mutationFn: ({ method, token }) => {
|
|
7811
7807
|
return removeTotpSetUp({
|
|
7812
7808
|
method,
|
|
@@ -7818,10 +7814,10 @@ var useRemoveTotpSetup = () => {
|
|
|
7818
7814
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
7819
7815
|
|
|
7820
7816
|
// src/hooks/view/use-request-setup-totp.ts
|
|
7821
|
-
import { useMutation as
|
|
7817
|
+
import { useMutation as useMutation49 } from "@tanstack/react-query";
|
|
7822
7818
|
var useRequestSetupTotp = () => {
|
|
7823
7819
|
const { requestSetupTotp } = useViewService();
|
|
7824
|
-
return
|
|
7820
|
+
return useMutation49({
|
|
7825
7821
|
mutationFn: ({ method, token }) => {
|
|
7826
7822
|
return requestSetupTotp({
|
|
7827
7823
|
method,
|
|
@@ -7833,10 +7829,10 @@ var useRequestSetupTotp = () => {
|
|
|
7833
7829
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
7834
7830
|
|
|
7835
7831
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
7836
|
-
import { useMutation as
|
|
7832
|
+
import { useMutation as useMutation50 } from "@tanstack/react-query";
|
|
7837
7833
|
var useSettingsWebRead2fa = () => {
|
|
7838
7834
|
const { settingsWebRead2fa } = useViewService();
|
|
7839
|
-
return
|
|
7835
|
+
return useMutation50({
|
|
7840
7836
|
mutationFn: ({
|
|
7841
7837
|
method,
|
|
7842
7838
|
token,
|
|
@@ -7855,10 +7851,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
7855
7851
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
7856
7852
|
|
|
7857
7853
|
// src/hooks/view/use-verify-totp.ts
|
|
7858
|
-
import { useMutation as
|
|
7854
|
+
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
7859
7855
|
var useVerifyTotp = () => {
|
|
7860
7856
|
const { verifyTotp } = useViewService();
|
|
7861
|
-
return
|
|
7857
|
+
return useMutation51({
|
|
7862
7858
|
mutationFn: ({
|
|
7863
7859
|
method,
|
|
7864
7860
|
action_token,
|
|
@@ -7875,10 +7871,10 @@ var useVerifyTotp = () => {
|
|
|
7875
7871
|
var use_verify_totp_default = useVerifyTotp;
|
|
7876
7872
|
|
|
7877
7873
|
// src/hooks/view/use-gen-serial-number.ts
|
|
7878
|
-
import { useMutation as
|
|
7874
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
7879
7875
|
var useGenSerialNumber = () => {
|
|
7880
7876
|
const { generateSerialNumber } = useActionService();
|
|
7881
|
-
return
|
|
7877
|
+
return useMutation52({
|
|
7882
7878
|
mutationFn: ({
|
|
7883
7879
|
kwargs,
|
|
7884
7880
|
context,
|
|
@@ -7918,10 +7914,10 @@ var useGetNotifications = ({
|
|
|
7918
7914
|
var use_get_notifications_default = useGetNotifications;
|
|
7919
7915
|
|
|
7920
7916
|
// src/hooks/view/use-get-version.ts
|
|
7921
|
-
import { useMutation as
|
|
7917
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
7922
7918
|
var useGetVersion = () => {
|
|
7923
7919
|
const { getVersion } = useViewService();
|
|
7924
|
-
return
|
|
7920
|
+
return useMutation53({
|
|
7925
7921
|
mutationFn: () => {
|
|
7926
7922
|
return getVersion();
|
|
7927
7923
|
}
|
|
@@ -7930,10 +7926,10 @@ var useGetVersion = () => {
|
|
|
7930
7926
|
var use_get_version_default = useGetVersion;
|
|
7931
7927
|
|
|
7932
7928
|
// src/hooks/view/use-get-ward.ts
|
|
7933
|
-
import { useMutation as
|
|
7929
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
7934
7930
|
var useGetWard = () => {
|
|
7935
7931
|
const { getWard } = useViewService();
|
|
7936
|
-
return
|
|
7932
|
+
return useMutation54({
|
|
7937
7933
|
mutationFn: ({
|
|
7938
7934
|
service,
|
|
7939
7935
|
xNode,
|
|
@@ -7950,10 +7946,10 @@ var useGetWard = () => {
|
|
|
7950
7946
|
var use_get_ward_default = useGetWard;
|
|
7951
7947
|
|
|
7952
7948
|
// src/hooks/view/use-get-city.ts
|
|
7953
|
-
import { useMutation as
|
|
7949
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
7954
7950
|
var useGetCity = () => {
|
|
7955
7951
|
const { getCity } = useViewService();
|
|
7956
|
-
return
|
|
7952
|
+
return useMutation55({
|
|
7957
7953
|
mutationFn: ({
|
|
7958
7954
|
service,
|
|
7959
7955
|
xNode,
|
|
@@ -7972,10 +7968,10 @@ var useGetCity = () => {
|
|
|
7972
7968
|
var use_get_city_default = useGetCity;
|
|
7973
7969
|
|
|
7974
7970
|
// src/hooks/view/use-get-country.ts
|
|
7975
|
-
import { useMutation as
|
|
7971
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
7976
7972
|
var useGetCountry = () => {
|
|
7977
7973
|
const { getCountry } = useViewService();
|
|
7978
|
-
return
|
|
7974
|
+
return useMutation56({
|
|
7979
7975
|
mutationFn: ({
|
|
7980
7976
|
service,
|
|
7981
7977
|
xNode,
|
|
@@ -7994,10 +7990,10 @@ var useGetCountry = () => {
|
|
|
7994
7990
|
var use_get_country_default = useGetCountry;
|
|
7995
7991
|
|
|
7996
7992
|
// src/hooks/view/use-get-partner-title.ts
|
|
7997
|
-
import { useMutation as
|
|
7993
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
7998
7994
|
var useGetPartnerTitle = () => {
|
|
7999
7995
|
const { getPartnerTitle } = useViewService();
|
|
8000
|
-
return
|
|
7996
|
+
return useMutation57({
|
|
8001
7997
|
mutationFn: ({
|
|
8002
7998
|
service,
|
|
8003
7999
|
xNode,
|
|
@@ -8052,301 +8048,301 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8052
8048
|
var use_get_data_chart_default = useGetDataChart;
|
|
8053
8049
|
|
|
8054
8050
|
// src/hooks/pos/use-add-entity.ts
|
|
8055
|
-
import { useMutation as
|
|
8051
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
8056
8052
|
var useAddEntity = () => {
|
|
8057
8053
|
const { addEntity } = usePosService();
|
|
8058
|
-
return
|
|
8054
|
+
return useMutation58({
|
|
8059
8055
|
mutationFn: addEntity
|
|
8060
8056
|
});
|
|
8061
8057
|
};
|
|
8062
8058
|
var use_add_entity_default = useAddEntity;
|
|
8063
8059
|
|
|
8064
8060
|
// src/hooks/pos/use-get-a-session.ts
|
|
8065
|
-
import { useMutation as
|
|
8061
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
8066
8062
|
var useGetASession = () => {
|
|
8067
8063
|
const pos = usePosService();
|
|
8068
|
-
return
|
|
8064
|
+
return useMutation59({
|
|
8069
8065
|
mutationFn: pos.getASession
|
|
8070
8066
|
});
|
|
8071
8067
|
};
|
|
8072
8068
|
var use_get_a_session_default = useGetASession;
|
|
8073
8069
|
|
|
8074
8070
|
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
8075
|
-
import { useMutation as
|
|
8071
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
8076
8072
|
var useChangeOrderPreparationState = () => {
|
|
8077
8073
|
const pos = usePosService();
|
|
8078
|
-
return
|
|
8074
|
+
return useMutation60({
|
|
8079
8075
|
mutationFn: pos.changeOrderPreparationState
|
|
8080
8076
|
});
|
|
8081
8077
|
};
|
|
8082
8078
|
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
8083
8079
|
|
|
8084
8080
|
// src/hooks/pos/use-check-payment.ts
|
|
8085
|
-
import { useMutation as
|
|
8081
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
8086
8082
|
var useCheckPayment = () => {
|
|
8087
8083
|
const pos = usePosService();
|
|
8088
|
-
return
|
|
8084
|
+
return useMutation61({
|
|
8089
8085
|
mutationFn: pos.checkPayment
|
|
8090
8086
|
});
|
|
8091
8087
|
};
|
|
8092
8088
|
var use_check_payment_default = useCheckPayment;
|
|
8093
8089
|
|
|
8094
8090
|
// src/hooks/pos/use-create-e-invoice.ts
|
|
8095
|
-
import { useMutation as
|
|
8091
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
8096
8092
|
var useCreateEInvoice = () => {
|
|
8097
8093
|
const pos = usePosService();
|
|
8098
|
-
return
|
|
8094
|
+
return useMutation62({
|
|
8099
8095
|
mutationFn: pos.createEInvoice
|
|
8100
8096
|
});
|
|
8101
8097
|
};
|
|
8102
8098
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8103
8099
|
|
|
8104
8100
|
// src/hooks/pos/use-create-entity.ts
|
|
8105
|
-
import { useMutation as
|
|
8101
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
8106
8102
|
var useCreateEntity = () => {
|
|
8107
8103
|
const pos = usePosService();
|
|
8108
|
-
return
|
|
8104
|
+
return useMutation63({
|
|
8109
8105
|
mutationFn: pos.createEntity
|
|
8110
8106
|
});
|
|
8111
8107
|
};
|
|
8112
8108
|
var use_create_entity_default = useCreateEntity;
|
|
8113
8109
|
|
|
8114
8110
|
// src/hooks/pos/use-create-pos-config.ts
|
|
8115
|
-
import { useMutation as
|
|
8111
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
8116
8112
|
var useCreatePosConfig = () => {
|
|
8117
8113
|
const pos = usePosService();
|
|
8118
|
-
return
|
|
8114
|
+
return useMutation64({
|
|
8119
8115
|
mutationFn: pos.createPosConfig
|
|
8120
8116
|
});
|
|
8121
8117
|
};
|
|
8122
8118
|
var use_create_pos_config_default = useCreatePosConfig;
|
|
8123
8119
|
|
|
8124
8120
|
// src/hooks/pos/use-create-session.ts
|
|
8125
|
-
import { useMutation as
|
|
8121
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
8126
8122
|
var useCreateSession = () => {
|
|
8127
8123
|
const pos = usePosService();
|
|
8128
|
-
return
|
|
8124
|
+
return useMutation65({
|
|
8129
8125
|
mutationFn: pos.createSession
|
|
8130
8126
|
});
|
|
8131
8127
|
};
|
|
8132
8128
|
var use_create_session_default = useCreateSession;
|
|
8133
8129
|
|
|
8134
8130
|
// src/hooks/pos/use-delete-entity.ts
|
|
8135
|
-
import { useMutation as
|
|
8131
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
8136
8132
|
var useDeleteEntity = () => {
|
|
8137
8133
|
const pos = usePosService();
|
|
8138
|
-
return
|
|
8134
|
+
return useMutation66({
|
|
8139
8135
|
mutationFn: pos.deleteEntity
|
|
8140
8136
|
});
|
|
8141
8137
|
};
|
|
8142
8138
|
var use_delete_entity_default = useDeleteEntity;
|
|
8143
8139
|
|
|
8144
8140
|
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
8145
|
-
import { useMutation as
|
|
8141
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
8146
8142
|
var useGeneratePaymentQrInfo = () => {
|
|
8147
8143
|
const pos = usePosService();
|
|
8148
|
-
return
|
|
8144
|
+
return useMutation67({
|
|
8149
8145
|
mutationFn: pos.generatePaymentQRInfo
|
|
8150
8146
|
});
|
|
8151
8147
|
};
|
|
8152
8148
|
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8153
8149
|
|
|
8154
8150
|
// src/hooks/pos/use-get-current-user.ts
|
|
8155
|
-
import { useMutation as
|
|
8151
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
8156
8152
|
var useGetCurrentUser = () => {
|
|
8157
8153
|
const pos = usePosService();
|
|
8158
|
-
return
|
|
8154
|
+
return useMutation68({
|
|
8159
8155
|
mutationFn: pos.getCurrentUser
|
|
8160
8156
|
});
|
|
8161
8157
|
};
|
|
8162
8158
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8163
8159
|
|
|
8164
8160
|
// src/hooks/pos/use-get-list.ts
|
|
8165
|
-
import { useMutation as
|
|
8161
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
8166
8162
|
var useGetList = () => {
|
|
8167
8163
|
const pos = usePosService();
|
|
8168
|
-
return
|
|
8164
|
+
return useMutation69({
|
|
8169
8165
|
mutationFn: pos.getList
|
|
8170
8166
|
});
|
|
8171
8167
|
};
|
|
8172
8168
|
var use_get_list_default = useGetList;
|
|
8173
8169
|
|
|
8174
8170
|
// src/hooks/pos/use-get-order-line.ts
|
|
8175
|
-
import { useMutation as
|
|
8171
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
8176
8172
|
var useGetOrderLine = () => {
|
|
8177
8173
|
const pos = usePosService();
|
|
8178
|
-
return
|
|
8174
|
+
return useMutation70({
|
|
8179
8175
|
mutationFn: pos.getOrderLine
|
|
8180
8176
|
});
|
|
8181
8177
|
};
|
|
8182
8178
|
var use_get_order_line_default = useGetOrderLine;
|
|
8183
8179
|
|
|
8184
8180
|
// src/hooks/pos/use-get-pin-code.ts
|
|
8185
|
-
import { useMutation as
|
|
8181
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
8186
8182
|
var useGetPinCode = () => {
|
|
8187
8183
|
const pos = usePosService();
|
|
8188
|
-
return
|
|
8184
|
+
return useMutation71({
|
|
8189
8185
|
mutationFn: pos.getPinCode
|
|
8190
8186
|
});
|
|
8191
8187
|
};
|
|
8192
8188
|
var use_get_pin_code_default = useGetPinCode;
|
|
8193
8189
|
|
|
8194
8190
|
// src/hooks/pos/use-get-pos.ts
|
|
8195
|
-
import { useMutation as
|
|
8191
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8196
8192
|
var useGetPos = () => {
|
|
8197
8193
|
const pos = usePosService();
|
|
8198
|
-
return
|
|
8194
|
+
return useMutation72({
|
|
8199
8195
|
mutationFn: pos.getPOS
|
|
8200
8196
|
});
|
|
8201
8197
|
};
|
|
8202
8198
|
var use_get_pos_default = useGetPos;
|
|
8203
8199
|
|
|
8204
8200
|
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
8205
|
-
import { useMutation as
|
|
8201
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8206
8202
|
var useGetPreparationDisplayData = () => {
|
|
8207
8203
|
const pos = usePosService();
|
|
8208
|
-
return
|
|
8204
|
+
return useMutation73({
|
|
8209
8205
|
mutationFn: pos.getPreparationDisplayData
|
|
8210
8206
|
});
|
|
8211
8207
|
};
|
|
8212
8208
|
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
8213
8209
|
|
|
8214
8210
|
// src/hooks/pos/use-get-product-image.ts
|
|
8215
|
-
import { useMutation as
|
|
8211
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8216
8212
|
var useGetProductImage = () => {
|
|
8217
8213
|
const pos = usePosService();
|
|
8218
|
-
return
|
|
8214
|
+
return useMutation74({
|
|
8219
8215
|
mutationFn: pos.getProductImage
|
|
8220
8216
|
});
|
|
8221
8217
|
};
|
|
8222
8218
|
var use_get_product_image_default = useGetProductImage;
|
|
8223
8219
|
|
|
8224
8220
|
// src/hooks/pos/use-handle-close-session.ts
|
|
8225
|
-
import { useMutation as
|
|
8221
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8226
8222
|
var useHandleCloseSession = () => {
|
|
8227
8223
|
const pos = usePosService();
|
|
8228
|
-
return
|
|
8224
|
+
return useMutation75({
|
|
8229
8225
|
mutationFn: pos.handleCloseSession
|
|
8230
8226
|
});
|
|
8231
8227
|
};
|
|
8232
8228
|
var use_handle_close_session_default = useHandleCloseSession;
|
|
8233
8229
|
|
|
8234
8230
|
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
8235
|
-
import { useMutation as
|
|
8231
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8236
8232
|
var useHandleClosingDetailSession = () => {
|
|
8237
8233
|
const pos = usePosService();
|
|
8238
|
-
return
|
|
8234
|
+
return useMutation76({
|
|
8239
8235
|
mutationFn: pos.handleClosingDetailSession
|
|
8240
8236
|
});
|
|
8241
8237
|
};
|
|
8242
8238
|
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
8243
8239
|
|
|
8244
8240
|
// src/hooks/pos/use-handle-closing-session.ts
|
|
8245
|
-
import { useMutation as
|
|
8241
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8246
8242
|
var useHandleClosingSession = () => {
|
|
8247
8243
|
const pos = usePosService();
|
|
8248
|
-
return
|
|
8244
|
+
return useMutation77({
|
|
8249
8245
|
mutationFn: pos.handleClosingSession
|
|
8250
8246
|
});
|
|
8251
8247
|
};
|
|
8252
8248
|
var use_handle_closing_session_default = useHandleClosingSession;
|
|
8253
8249
|
|
|
8254
8250
|
// src/hooks/pos/use-load-data-pos-session.ts
|
|
8255
|
-
import { useMutation as
|
|
8251
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
8256
8252
|
var useLoadDataPosSession = () => {
|
|
8257
8253
|
const pos = usePosService();
|
|
8258
8254
|
const { env } = useEnv();
|
|
8259
|
-
return
|
|
8255
|
+
return useMutation78({
|
|
8260
8256
|
mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
|
|
8261
8257
|
});
|
|
8262
8258
|
};
|
|
8263
8259
|
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
8264
8260
|
|
|
8265
8261
|
// src/hooks/pos/use-manage-onchange.ts
|
|
8266
|
-
import { useMutation as
|
|
8262
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8267
8263
|
var useManageOnChange = () => {
|
|
8268
8264
|
const pos = usePosService();
|
|
8269
|
-
return
|
|
8265
|
+
return useMutation79({
|
|
8270
8266
|
mutationFn: pos.manageOnChange
|
|
8271
8267
|
});
|
|
8272
8268
|
};
|
|
8273
8269
|
var use_manage_onchange_default = useManageOnChange;
|
|
8274
8270
|
|
|
8275
8271
|
// src/hooks/pos/use-manage-session.ts
|
|
8276
|
-
import { useMutation as
|
|
8272
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8277
8273
|
var useManageSession = () => {
|
|
8278
8274
|
const pos = usePosService();
|
|
8279
|
-
return
|
|
8275
|
+
return useMutation80({
|
|
8280
8276
|
mutationFn: pos.manageSession
|
|
8281
8277
|
});
|
|
8282
8278
|
};
|
|
8283
8279
|
var use_manage_session_default = useManageSession;
|
|
8284
8280
|
|
|
8285
8281
|
// src/hooks/pos/use-process-order.ts
|
|
8286
|
-
import { useMutation as
|
|
8282
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8287
8283
|
var useProcessOrder = () => {
|
|
8288
8284
|
const pos = usePosService();
|
|
8289
|
-
return
|
|
8285
|
+
return useMutation81({
|
|
8290
8286
|
mutationFn: pos.processOrder
|
|
8291
8287
|
});
|
|
8292
8288
|
};
|
|
8293
8289
|
var use_process_order_default = useProcessOrder;
|
|
8294
8290
|
|
|
8295
8291
|
// src/hooks/pos/use-save-pin-code.ts
|
|
8296
|
-
import { useMutation as
|
|
8292
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
8297
8293
|
var useSavePinCode = () => {
|
|
8298
8294
|
const pos = usePosService();
|
|
8299
|
-
return
|
|
8295
|
+
return useMutation82({
|
|
8300
8296
|
mutationFn: pos.savePinCode
|
|
8301
8297
|
});
|
|
8302
8298
|
};
|
|
8303
8299
|
var use_save_pin_code_default = useSavePinCode;
|
|
8304
8300
|
|
|
8305
8301
|
// src/hooks/pos/use-search-journal.ts
|
|
8306
|
-
import { useMutation as
|
|
8302
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
8307
8303
|
var useSearchJournal = () => {
|
|
8308
8304
|
const pos = usePosService();
|
|
8309
|
-
return
|
|
8305
|
+
return useMutation83({
|
|
8310
8306
|
mutationFn: pos.searchJournal
|
|
8311
8307
|
});
|
|
8312
8308
|
};
|
|
8313
8309
|
var use_search_journal_default = useSearchJournal;
|
|
8314
8310
|
|
|
8315
8311
|
// src/hooks/pos/use-update-closed-session.ts
|
|
8316
|
-
import { useMutation as
|
|
8312
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
8317
8313
|
var useUpdateClosedSession = () => {
|
|
8318
8314
|
const pos = usePosService();
|
|
8319
|
-
return
|
|
8315
|
+
return useMutation84({
|
|
8320
8316
|
mutationFn: pos.updateClosedSession
|
|
8321
8317
|
});
|
|
8322
8318
|
};
|
|
8323
8319
|
var use_update_closed_session_default = useUpdateClosedSession;
|
|
8324
8320
|
|
|
8325
8321
|
// src/hooks/pos/use-update-entity.ts
|
|
8326
|
-
import { useMutation as
|
|
8322
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
8327
8323
|
var useUpdateEntity = () => {
|
|
8328
8324
|
const pos = usePosService();
|
|
8329
|
-
return
|
|
8325
|
+
return useMutation85({
|
|
8330
8326
|
mutationFn: pos.updateEntity
|
|
8331
8327
|
});
|
|
8332
8328
|
};
|
|
8333
8329
|
var use_update_entity_default = useUpdateEntity;
|
|
8334
8330
|
|
|
8335
8331
|
// src/hooks/pos/use-update-order-status.ts
|
|
8336
|
-
import { useMutation as
|
|
8332
|
+
import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
8337
8333
|
var useUpdateOrderStatus = () => {
|
|
8338
8334
|
const pos = usePosService();
|
|
8339
|
-
return
|
|
8335
|
+
return useMutation86({
|
|
8340
8336
|
mutationFn: pos.updateOrderStatus
|
|
8341
8337
|
});
|
|
8342
8338
|
};
|
|
8343
8339
|
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8344
8340
|
|
|
8345
8341
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
8346
|
-
import { useMutation as
|
|
8342
|
+
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
8347
8343
|
var useCompleteCurrentStage = () => {
|
|
8348
8344
|
const pos = usePosService();
|
|
8349
|
-
return
|
|
8345
|
+
return useMutation87({
|
|
8350
8346
|
mutationFn: pos.completeCurrentStage
|
|
8351
8347
|
});
|
|
8352
8348
|
};
|