@fctc/interface-logic 4.4.3 → 4.4.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 +24 -1
- package/dist/hooks.d.ts +24 -1
- package/dist/hooks.js +228 -218
- package/dist/hooks.mjs +177 -168
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +228 -219
- package/dist/provider.mjs +178 -169
- 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,26 @@ 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
|
+
var useLoginSupa = () => {
|
|
6441
|
+
const { loginSupabase } = useAuthService();
|
|
6442
|
+
return useMutation7({
|
|
6443
|
+
mutationFn: (data) => {
|
|
6444
|
+
return loginSupabase({
|
|
6445
|
+
email: data.email,
|
|
6446
|
+
password: data.password
|
|
6447
|
+
});
|
|
6448
|
+
}
|
|
6449
|
+
});
|
|
6450
|
+
};
|
|
6451
|
+
var use_login_supa_default = useLoginSupa;
|
|
6452
|
+
|
|
6453
|
+
// src/hooks/auth/use-reset-password.ts
|
|
6454
|
+
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
|
6447
6455
|
var useResetPassword = () => {
|
|
6448
6456
|
const { resetPassword } = useAuthService();
|
|
6449
|
-
return
|
|
6457
|
+
return useMutation8({
|
|
6450
6458
|
mutationFn: (request) => {
|
|
6451
6459
|
return resetPassword(request.data, request.token);
|
|
6452
6460
|
}
|
|
@@ -6455,10 +6463,10 @@ var useResetPassword = () => {
|
|
|
6455
6463
|
var use_reset_password_default = useResetPassword;
|
|
6456
6464
|
|
|
6457
6465
|
// src/hooks/auth/use-reset-password-sso.ts
|
|
6458
|
-
import { useMutation as
|
|
6466
|
+
import { useMutation as useMutation9 } from "@tanstack/react-query";
|
|
6459
6467
|
var useResetPasswordSSO = () => {
|
|
6460
6468
|
const { resetPasswordSSO } = useAuthService();
|
|
6461
|
-
return
|
|
6469
|
+
return useMutation9({
|
|
6462
6470
|
mutationFn: ({
|
|
6463
6471
|
method,
|
|
6464
6472
|
password,
|
|
@@ -6475,10 +6483,10 @@ var useResetPasswordSSO = () => {
|
|
|
6475
6483
|
var use_reset_password_sso_default = useResetPasswordSSO;
|
|
6476
6484
|
|
|
6477
6485
|
// src/hooks/auth/use-update-password.ts
|
|
6478
|
-
import { useMutation as
|
|
6486
|
+
import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
6479
6487
|
var useUpdatePassword = () => {
|
|
6480
6488
|
const { updatePassword } = useAuthService();
|
|
6481
|
-
return
|
|
6489
|
+
return useMutation10({
|
|
6482
6490
|
mutationFn: (request) => {
|
|
6483
6491
|
return updatePassword(request.data, request.token);
|
|
6484
6492
|
}
|
|
@@ -6487,10 +6495,10 @@ var useUpdatePassword = () => {
|
|
|
6487
6495
|
var use_update_password_default = useUpdatePassword;
|
|
6488
6496
|
|
|
6489
6497
|
// src/hooks/auth/use-logout.ts
|
|
6490
|
-
import { useMutation as
|
|
6498
|
+
import { useMutation as useMutation11 } from "@tanstack/react-query";
|
|
6491
6499
|
var useLogout = () => {
|
|
6492
6500
|
const { logout } = useAuthService();
|
|
6493
|
-
return
|
|
6501
|
+
return useMutation11({
|
|
6494
6502
|
mutationFn: (service) => {
|
|
6495
6503
|
return logout(service);
|
|
6496
6504
|
}
|
|
@@ -6499,10 +6507,10 @@ var useLogout = () => {
|
|
|
6499
6507
|
var use_logout_default = useLogout;
|
|
6500
6508
|
|
|
6501
6509
|
// src/hooks/auth/use-get-access-by-code.ts
|
|
6502
|
-
import { useMutation as
|
|
6510
|
+
import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
6503
6511
|
var useGetAccessByCode = () => {
|
|
6504
6512
|
const { getAccessByCode } = useAuthService();
|
|
6505
|
-
return
|
|
6513
|
+
return useMutation12({
|
|
6506
6514
|
mutationFn: ({ code }) => {
|
|
6507
6515
|
return getAccessByCode(code);
|
|
6508
6516
|
}
|
|
@@ -6511,10 +6519,10 @@ var useGetAccessByCode = () => {
|
|
|
6511
6519
|
var use_get_access_by_code_default = useGetAccessByCode;
|
|
6512
6520
|
|
|
6513
6521
|
// src/hooks/auth/use-validate-action-token.ts
|
|
6514
|
-
import { useMutation as
|
|
6522
|
+
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
6515
6523
|
var useValidateActionToken = () => {
|
|
6516
6524
|
const { isValidActionToken } = useAuthService();
|
|
6517
|
-
return
|
|
6525
|
+
return useMutation13({
|
|
6518
6526
|
mutationFn: ({ actionToken }) => {
|
|
6519
6527
|
return isValidActionToken(actionToken);
|
|
6520
6528
|
}
|
|
@@ -6523,10 +6531,10 @@ var useValidateActionToken = () => {
|
|
|
6523
6531
|
var use_validate_action_token_default = useValidateActionToken;
|
|
6524
6532
|
|
|
6525
6533
|
// src/hooks/auth/use-get-tenant-mapping.ts
|
|
6526
|
-
import { useMutation as
|
|
6534
|
+
import { useMutation as useMutation14 } from "@tanstack/react-query";
|
|
6527
6535
|
var useGetTenantMapping = () => {
|
|
6528
6536
|
const { getTenantMapping } = useAuthService();
|
|
6529
|
-
return
|
|
6537
|
+
return useMutation14({
|
|
6530
6538
|
mutationFn: ({
|
|
6531
6539
|
shortName,
|
|
6532
6540
|
service
|
|
@@ -6538,10 +6546,10 @@ var useGetTenantMapping = () => {
|
|
|
6538
6546
|
var use_get_tenant_mapping_default = useGetTenantMapping;
|
|
6539
6547
|
|
|
6540
6548
|
// src/hooks/auth/use-get-token.ts
|
|
6541
|
-
import { useMutation as
|
|
6549
|
+
import { useMutation as useMutation15 } from "@tanstack/react-query";
|
|
6542
6550
|
var useGetToken = () => {
|
|
6543
6551
|
const { getToken } = useAuthService();
|
|
6544
|
-
return
|
|
6552
|
+
return useMutation15({
|
|
6545
6553
|
mutationFn: ({
|
|
6546
6554
|
phone,
|
|
6547
6555
|
name,
|
|
@@ -6555,20 +6563,20 @@ var useGetToken = () => {
|
|
|
6555
6563
|
var use_get_token_default = useGetToken;
|
|
6556
6564
|
|
|
6557
6565
|
// src/hooks/company/use-get-company-info.ts
|
|
6558
|
-
import { useMutation as
|
|
6566
|
+
import { useMutation as useMutation16 } from "@tanstack/react-query";
|
|
6559
6567
|
var useGetCompanyInfo = () => {
|
|
6560
6568
|
const { getInfoCompany } = useCompanyService();
|
|
6561
|
-
return
|
|
6569
|
+
return useMutation16({
|
|
6562
6570
|
mutationFn: ({ service, id }) => getInfoCompany(id, service)
|
|
6563
6571
|
});
|
|
6564
6572
|
};
|
|
6565
6573
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
6566
6574
|
|
|
6567
6575
|
// src/hooks/company/use-get-current-company.ts
|
|
6568
|
-
import { useMutation as
|
|
6576
|
+
import { useMutation as useMutation17 } from "@tanstack/react-query";
|
|
6569
6577
|
var useGetCurrentCompany = () => {
|
|
6570
6578
|
const { getCurrentCompany } = useCompanyService();
|
|
6571
|
-
return
|
|
6579
|
+
return useMutation17({
|
|
6572
6580
|
mutationFn: ({
|
|
6573
6581
|
service,
|
|
6574
6582
|
extraHeaders
|
|
@@ -6599,10 +6607,10 @@ var useGetListCompany = (companyIDs = []) => {
|
|
|
6599
6607
|
var use_get_list_company_default = useGetListCompany;
|
|
6600
6608
|
|
|
6601
6609
|
// src/hooks/excel/use-export-excel.ts
|
|
6602
|
-
import { useMutation as
|
|
6610
|
+
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
6603
6611
|
var useExportExcel = () => {
|
|
6604
6612
|
const { exportExcel } = useExcelService();
|
|
6605
|
-
return
|
|
6613
|
+
return useMutation18({
|
|
6606
6614
|
mutationFn: ({
|
|
6607
6615
|
model,
|
|
6608
6616
|
domain,
|
|
@@ -6631,10 +6639,10 @@ var useExportExcel = () => {
|
|
|
6631
6639
|
var use_export_excel_default = useExportExcel;
|
|
6632
6640
|
|
|
6633
6641
|
// src/hooks/excel/use-get-field-export.ts
|
|
6634
|
-
import { useMutation as
|
|
6642
|
+
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
6635
6643
|
var useGetFieldExport = () => {
|
|
6636
6644
|
const { getFieldExport } = useExcelService();
|
|
6637
|
-
return
|
|
6645
|
+
return useMutation19({
|
|
6638
6646
|
mutationFn: ({
|
|
6639
6647
|
ids,
|
|
6640
6648
|
model,
|
|
@@ -6694,10 +6702,10 @@ var useGetFileExcel = ({
|
|
|
6694
6702
|
var use_get_file_excel_default = useGetFileExcel;
|
|
6695
6703
|
|
|
6696
6704
|
// src/hooks/excel/use-parse-preview.ts
|
|
6697
|
-
import { useMutation as
|
|
6705
|
+
import { useMutation as useMutation20 } from "@tanstack/react-query";
|
|
6698
6706
|
var useParsePreview = () => {
|
|
6699
6707
|
const { parsePreview } = useExcelService();
|
|
6700
|
-
return
|
|
6708
|
+
return useMutation20({
|
|
6701
6709
|
mutationFn: ({
|
|
6702
6710
|
id,
|
|
6703
6711
|
selectedSheet,
|
|
@@ -6718,10 +6726,10 @@ var useParsePreview = () => {
|
|
|
6718
6726
|
var use_parse_preview_default = useParsePreview;
|
|
6719
6727
|
|
|
6720
6728
|
// src/hooks/excel/use-upload-file-excel.ts
|
|
6721
|
-
import { useMutation as
|
|
6729
|
+
import { useMutation as useMutation21 } from "@tanstack/react-query";
|
|
6722
6730
|
var useUploadFileExcel = () => {
|
|
6723
6731
|
const { uploadFileExcel } = useExcelService();
|
|
6724
|
-
return
|
|
6732
|
+
return useMutation21({
|
|
6725
6733
|
mutationFn: ({
|
|
6726
6734
|
formData,
|
|
6727
6735
|
service,
|
|
@@ -6736,10 +6744,10 @@ var useUploadFileExcel = () => {
|
|
|
6736
6744
|
var use_upload_file_excel_default = useUploadFileExcel;
|
|
6737
6745
|
|
|
6738
6746
|
// src/hooks/excel/use-upload-id-file.ts
|
|
6739
|
-
import { useMutation as
|
|
6747
|
+
import { useMutation as useMutation22 } from "@tanstack/react-query";
|
|
6740
6748
|
var useUploadIdFile = () => {
|
|
6741
6749
|
const { uploadIdFile } = useExcelService();
|
|
6742
|
-
return
|
|
6750
|
+
return useMutation22({
|
|
6743
6751
|
mutationFn: ({
|
|
6744
6752
|
formData,
|
|
6745
6753
|
service,
|
|
@@ -6754,10 +6762,10 @@ var useUploadIdFile = () => {
|
|
|
6754
6762
|
var use_upload_id_file_default = useUploadIdFile;
|
|
6755
6763
|
|
|
6756
6764
|
// src/hooks/excel/uss-execute-import.ts
|
|
6757
|
-
import { useMutation as
|
|
6765
|
+
import { useMutation as useMutation23 } from "@tanstack/react-query";
|
|
6758
6766
|
var useExecuteImport = () => {
|
|
6759
6767
|
const { executeImport } = useExcelService();
|
|
6760
|
-
return
|
|
6768
|
+
return useMutation23({
|
|
6761
6769
|
mutationFn: ({
|
|
6762
6770
|
fields,
|
|
6763
6771
|
columns,
|
|
@@ -6782,10 +6790,10 @@ var useExecuteImport = () => {
|
|
|
6782
6790
|
var uss_execute_import_default = useExecuteImport;
|
|
6783
6791
|
|
|
6784
6792
|
// src/hooks/form/use-change-status.ts
|
|
6785
|
-
import { useMutation as
|
|
6793
|
+
import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
6786
6794
|
var useChangeStatus = () => {
|
|
6787
6795
|
const { changeStatus } = useFormService();
|
|
6788
|
-
return
|
|
6796
|
+
return useMutation24({
|
|
6789
6797
|
mutationFn: ({ data }) => {
|
|
6790
6798
|
return changeStatus({
|
|
6791
6799
|
data
|
|
@@ -6796,10 +6804,10 @@ var useChangeStatus = () => {
|
|
|
6796
6804
|
var use_change_status_default = useChangeStatus;
|
|
6797
6805
|
|
|
6798
6806
|
// src/hooks/form/use-delete-comment.ts
|
|
6799
|
-
import { useMutation as
|
|
6807
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
6800
6808
|
var useDeleteComment = () => {
|
|
6801
6809
|
const { deleteComment } = useFormService();
|
|
6802
|
-
return
|
|
6810
|
+
return useMutation25({
|
|
6803
6811
|
mutationFn: ({ data }) => deleteComment({
|
|
6804
6812
|
data
|
|
6805
6813
|
})
|
|
@@ -6867,10 +6875,10 @@ var useGetImage = ({
|
|
|
6867
6875
|
var use_get_image_default = useGetImage;
|
|
6868
6876
|
|
|
6869
6877
|
// src/hooks/form/use-send-comment.ts
|
|
6870
|
-
import { useMutation as
|
|
6878
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
6871
6879
|
var useSendComment = () => {
|
|
6872
6880
|
const { sentComment } = useFormService();
|
|
6873
|
-
return
|
|
6881
|
+
return useMutation26({
|
|
6874
6882
|
mutationFn: ({ data }) => sentComment({
|
|
6875
6883
|
data
|
|
6876
6884
|
})
|
|
@@ -6879,10 +6887,10 @@ var useSendComment = () => {
|
|
|
6879
6887
|
var use_send_comment_default = useSendComment;
|
|
6880
6888
|
|
|
6881
6889
|
// src/hooks/form/use-upload-image.ts
|
|
6882
|
-
import { useMutation as
|
|
6890
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
6883
6891
|
var useUploadImage = () => {
|
|
6884
6892
|
const { uploadImage } = useFormService();
|
|
6885
|
-
return
|
|
6893
|
+
return useMutation27({
|
|
6886
6894
|
mutationFn: ({
|
|
6887
6895
|
formData,
|
|
6888
6896
|
service,
|
|
@@ -6897,10 +6905,10 @@ var useUploadImage = () => {
|
|
|
6897
6905
|
var use_upload_image_default = useUploadImage;
|
|
6898
6906
|
|
|
6899
6907
|
// src/hooks/form/use-upload-file.ts
|
|
6900
|
-
import { useMutation as
|
|
6908
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
6901
6909
|
var useUploadFile = () => {
|
|
6902
6910
|
const { uploadFile } = useFormService();
|
|
6903
|
-
return
|
|
6911
|
+
return useMutation28({
|
|
6904
6912
|
mutationFn: ({
|
|
6905
6913
|
formData,
|
|
6906
6914
|
service,
|
|
@@ -6991,10 +6999,10 @@ var useGetExternalTabs = ({
|
|
|
6991
6999
|
var use_get_external_tabs_default = useGetExternalTabs;
|
|
6992
7000
|
|
|
6993
7001
|
// src/hooks/model/use-delete.ts
|
|
6994
|
-
import { useMutation as
|
|
7002
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
6995
7003
|
var useDelete = () => {
|
|
6996
7004
|
const { deleteApi } = useModelService();
|
|
6997
|
-
return
|
|
7005
|
+
return useMutation29({
|
|
6998
7006
|
mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
|
|
6999
7007
|
});
|
|
7000
7008
|
};
|
|
@@ -7050,10 +7058,10 @@ var useGetCurrency = () => {
|
|
|
7050
7058
|
var use_get_currency_default = useGetCurrency;
|
|
7051
7059
|
|
|
7052
7060
|
// src/hooks/model/use-get-detail.ts
|
|
7053
|
-
import { useMutation as
|
|
7061
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
7054
7062
|
var useGetDetail = () => {
|
|
7055
7063
|
const { getDetail } = useModelService();
|
|
7056
|
-
return
|
|
7064
|
+
return useMutation30({
|
|
7057
7065
|
mutationFn: ({
|
|
7058
7066
|
model,
|
|
7059
7067
|
ids,
|
|
@@ -7261,10 +7269,10 @@ var useOdooDataTransform = () => {
|
|
|
7261
7269
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
7262
7270
|
|
|
7263
7271
|
// src/hooks/model/use-onchange-form.ts
|
|
7264
|
-
import { useMutation as
|
|
7272
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
7265
7273
|
var useOnChangeForm = () => {
|
|
7266
7274
|
const { onChange } = useModelService();
|
|
7267
|
-
return
|
|
7275
|
+
return useMutation31({
|
|
7268
7276
|
mutationFn: ({
|
|
7269
7277
|
ids,
|
|
7270
7278
|
model,
|
|
@@ -7289,10 +7297,10 @@ var useOnChangeForm = () => {
|
|
|
7289
7297
|
var use_onchange_form_default = useOnChangeForm;
|
|
7290
7298
|
|
|
7291
7299
|
// src/hooks/model/use-save.ts
|
|
7292
|
-
import { useMutation as
|
|
7300
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
7293
7301
|
var useSave = () => {
|
|
7294
7302
|
const { save } = useModelService();
|
|
7295
|
-
return
|
|
7303
|
+
return useMutation32({
|
|
7296
7304
|
mutationFn: ({
|
|
7297
7305
|
ids,
|
|
7298
7306
|
model,
|
|
@@ -7308,20 +7316,20 @@ var useSave = () => {
|
|
|
7308
7316
|
var use_save_default = useSave;
|
|
7309
7317
|
|
|
7310
7318
|
// src/hooks/user/use-get-profile.ts
|
|
7311
|
-
import { useMutation as
|
|
7319
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
7312
7320
|
var useGetProfile = (service, path, extraHeaders) => {
|
|
7313
7321
|
const { getProfile } = useUserService();
|
|
7314
|
-
return
|
|
7322
|
+
return useMutation33({
|
|
7315
7323
|
mutationFn: () => getProfile(service, path, extraHeaders)
|
|
7316
7324
|
});
|
|
7317
7325
|
};
|
|
7318
7326
|
var use_get_profile_default = useGetProfile;
|
|
7319
7327
|
|
|
7320
7328
|
// src/hooks/user/use-get-user.ts
|
|
7321
|
-
import { useMutation as
|
|
7329
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
7322
7330
|
var useGetUser = () => {
|
|
7323
7331
|
const { getUser } = useUserService();
|
|
7324
|
-
return
|
|
7332
|
+
return useMutation34({
|
|
7325
7333
|
mutationFn: ({ id, context }) => getUser({
|
|
7326
7334
|
id,
|
|
7327
7335
|
context
|
|
@@ -7331,10 +7339,10 @@ var useGetUser = () => {
|
|
|
7331
7339
|
var use_get_user_default = useGetUser;
|
|
7332
7340
|
|
|
7333
7341
|
// src/hooks/user/use-switch-locale.ts
|
|
7334
|
-
import { useMutation as
|
|
7342
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
7335
7343
|
var useSwitchLocale = () => {
|
|
7336
7344
|
const { switchUserLocale } = useUserService();
|
|
7337
|
-
return
|
|
7345
|
+
return useMutation35({
|
|
7338
7346
|
mutationFn: ({
|
|
7339
7347
|
data,
|
|
7340
7348
|
service
|
|
@@ -7350,10 +7358,10 @@ var useSwitchLocale = () => {
|
|
|
7350
7358
|
var use_switch_locale_default = useSwitchLocale;
|
|
7351
7359
|
|
|
7352
7360
|
// src/hooks/view/use-button.ts
|
|
7353
|
-
import { useMutation as
|
|
7361
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
7354
7362
|
var useButton = () => {
|
|
7355
7363
|
const { callButton } = useActionService();
|
|
7356
|
-
return
|
|
7364
|
+
return useMutation36({
|
|
7357
7365
|
mutationFn: ({
|
|
7358
7366
|
model,
|
|
7359
7367
|
ids,
|
|
@@ -7377,10 +7385,10 @@ var useButton = () => {
|
|
|
7377
7385
|
var use_button_default = useButton;
|
|
7378
7386
|
|
|
7379
7387
|
// src/hooks/view/use-duplicate-record.ts
|
|
7380
|
-
import { useMutation as
|
|
7388
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
7381
7389
|
var useDuplicateRecord = () => {
|
|
7382
7390
|
const { duplicateRecord } = useActionService();
|
|
7383
|
-
return
|
|
7391
|
+
return useMutation37({
|
|
7384
7392
|
mutationFn: ({
|
|
7385
7393
|
id,
|
|
7386
7394
|
model,
|
|
@@ -7517,10 +7525,10 @@ var useGetMenu = (context, specification, enabled, domain, service) => {
|
|
|
7517
7525
|
var use_get_menu_default = useGetMenu;
|
|
7518
7526
|
|
|
7519
7527
|
// src/hooks/view/use-get-print-report.ts
|
|
7520
|
-
import { useMutation as
|
|
7528
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
7521
7529
|
var useGetPrintReport = () => {
|
|
7522
7530
|
const { getPrintReportName } = useActionService();
|
|
7523
|
-
return
|
|
7531
|
+
return useMutation38({
|
|
7524
7532
|
mutationFn: ({ id }) => getPrintReportName({
|
|
7525
7533
|
id
|
|
7526
7534
|
})
|
|
@@ -7595,10 +7603,10 @@ var useGetView = ({ viewParams, enabled }) => {
|
|
|
7595
7603
|
var use_get_view_default = useGetView;
|
|
7596
7604
|
|
|
7597
7605
|
// src/hooks/view/use-load-action.ts
|
|
7598
|
-
import { useMutation as
|
|
7606
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
7599
7607
|
var useLoadAction = () => {
|
|
7600
7608
|
const { loadAction } = useActionService();
|
|
7601
|
-
return
|
|
7609
|
+
return useMutation39({
|
|
7602
7610
|
mutationFn: ({
|
|
7603
7611
|
idAction,
|
|
7604
7612
|
context,
|
|
@@ -7631,10 +7639,10 @@ var useLoadMessage = () => {
|
|
|
7631
7639
|
var use_load_message_default = useLoadMessage;
|
|
7632
7640
|
|
|
7633
7641
|
// src/hooks/view/use-print.ts
|
|
7634
|
-
import { useMutation as
|
|
7642
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
7635
7643
|
var usePrint = () => {
|
|
7636
7644
|
const { print } = useActionService();
|
|
7637
|
-
return
|
|
7645
|
+
return useMutation40({
|
|
7638
7646
|
mutationFn: ({ id, report, db }) => print({
|
|
7639
7647
|
id,
|
|
7640
7648
|
report,
|
|
@@ -7645,10 +7653,10 @@ var usePrint = () => {
|
|
|
7645
7653
|
var use_print_default = usePrint;
|
|
7646
7654
|
|
|
7647
7655
|
// src/hooks/view/use-remove-row.ts
|
|
7648
|
-
import { useMutation as
|
|
7656
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
7649
7657
|
var useRemoveRow = () => {
|
|
7650
7658
|
const { removeRows } = useActionService();
|
|
7651
|
-
return
|
|
7659
|
+
return useMutation41({
|
|
7652
7660
|
mutationFn: ({
|
|
7653
7661
|
model,
|
|
7654
7662
|
ids,
|
|
@@ -7667,10 +7675,10 @@ var useRemoveRow = () => {
|
|
|
7667
7675
|
var use_remove_row_default = useRemoveRow;
|
|
7668
7676
|
|
|
7669
7677
|
// src/hooks/view/use-resequence.ts
|
|
7670
|
-
import { useMutation as
|
|
7678
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
7671
7679
|
var useGetResequence = () => {
|
|
7672
7680
|
const { getResequence } = useViewService();
|
|
7673
|
-
return
|
|
7681
|
+
return useMutation42({
|
|
7674
7682
|
mutationFn: ({
|
|
7675
7683
|
model,
|
|
7676
7684
|
resIds,
|
|
@@ -7691,10 +7699,10 @@ var useGetResequence = () => {
|
|
|
7691
7699
|
var use_resequence_default = useGetResequence;
|
|
7692
7700
|
|
|
7693
7701
|
// src/hooks/view/use-run-action.ts
|
|
7694
|
-
import { useMutation as
|
|
7702
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
7695
7703
|
var useRunAction = () => {
|
|
7696
7704
|
const { runAction } = useActionService();
|
|
7697
|
-
return
|
|
7705
|
+
return useMutation43({
|
|
7698
7706
|
mutationFn: ({
|
|
7699
7707
|
idAction,
|
|
7700
7708
|
context,
|
|
@@ -7713,10 +7721,10 @@ var useRunAction = () => {
|
|
|
7713
7721
|
var use_run_action_default = useRunAction;
|
|
7714
7722
|
|
|
7715
7723
|
// src/hooks/view/use-signin-sso.ts
|
|
7716
|
-
import { useMutation as
|
|
7724
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
7717
7725
|
var useSignInSSO = () => {
|
|
7718
7726
|
const { signInSSO } = useViewService();
|
|
7719
|
-
return
|
|
7727
|
+
return useMutation44({
|
|
7720
7728
|
mutationFn: ({
|
|
7721
7729
|
redirect_uri,
|
|
7722
7730
|
state,
|
|
@@ -7739,10 +7747,10 @@ var useSignInSSO = () => {
|
|
|
7739
7747
|
var use_signin_sso_default = useSignInSSO;
|
|
7740
7748
|
|
|
7741
7749
|
// src/hooks/view/use-verify-2FA.ts
|
|
7742
|
-
import { useMutation as
|
|
7750
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
7743
7751
|
var useVerify2FA = () => {
|
|
7744
7752
|
const { verify2FA } = useViewService();
|
|
7745
|
-
return
|
|
7753
|
+
return useMutation45({
|
|
7746
7754
|
mutationFn: ({
|
|
7747
7755
|
method,
|
|
7748
7756
|
with_context,
|
|
@@ -7763,10 +7771,10 @@ var useVerify2FA = () => {
|
|
|
7763
7771
|
var use_verify_2FA_default = useVerify2FA;
|
|
7764
7772
|
|
|
7765
7773
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
7766
|
-
import { useMutation as
|
|
7774
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
7767
7775
|
var useGet2FAMethods = () => {
|
|
7768
7776
|
const { get2FAMethods } = useViewService();
|
|
7769
|
-
return
|
|
7777
|
+
return useMutation46({
|
|
7770
7778
|
mutationFn: ({
|
|
7771
7779
|
method,
|
|
7772
7780
|
with_context
|
|
@@ -7781,10 +7789,10 @@ var useGet2FAMethods = () => {
|
|
|
7781
7789
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
7782
7790
|
|
|
7783
7791
|
// src/hooks/view/use-grant-access.ts
|
|
7784
|
-
import { useMutation as
|
|
7792
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
7785
7793
|
var useGrantAccess = () => {
|
|
7786
7794
|
const { grantAccess } = useViewService();
|
|
7787
|
-
return
|
|
7795
|
+
return useMutation47({
|
|
7788
7796
|
mutationFn: ({
|
|
7789
7797
|
redirect_uri,
|
|
7790
7798
|
state,
|
|
@@ -7803,10 +7811,10 @@ var useGrantAccess = () => {
|
|
|
7803
7811
|
var use_grant_access_default = useGrantAccess;
|
|
7804
7812
|
|
|
7805
7813
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
7806
|
-
import { useMutation as
|
|
7814
|
+
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
7807
7815
|
var useRemoveTotpSetup = () => {
|
|
7808
7816
|
const { removeTotpSetUp } = useViewService();
|
|
7809
|
-
return
|
|
7817
|
+
return useMutation48({
|
|
7810
7818
|
mutationFn: ({ method, token }) => {
|
|
7811
7819
|
return removeTotpSetUp({
|
|
7812
7820
|
method,
|
|
@@ -7818,10 +7826,10 @@ var useRemoveTotpSetup = () => {
|
|
|
7818
7826
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
7819
7827
|
|
|
7820
7828
|
// src/hooks/view/use-request-setup-totp.ts
|
|
7821
|
-
import { useMutation as
|
|
7829
|
+
import { useMutation as useMutation49 } from "@tanstack/react-query";
|
|
7822
7830
|
var useRequestSetupTotp = () => {
|
|
7823
7831
|
const { requestSetupTotp } = useViewService();
|
|
7824
|
-
return
|
|
7832
|
+
return useMutation49({
|
|
7825
7833
|
mutationFn: ({ method, token }) => {
|
|
7826
7834
|
return requestSetupTotp({
|
|
7827
7835
|
method,
|
|
@@ -7833,10 +7841,10 @@ var useRequestSetupTotp = () => {
|
|
|
7833
7841
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
7834
7842
|
|
|
7835
7843
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
7836
|
-
import { useMutation as
|
|
7844
|
+
import { useMutation as useMutation50 } from "@tanstack/react-query";
|
|
7837
7845
|
var useSettingsWebRead2fa = () => {
|
|
7838
7846
|
const { settingsWebRead2fa } = useViewService();
|
|
7839
|
-
return
|
|
7847
|
+
return useMutation50({
|
|
7840
7848
|
mutationFn: ({
|
|
7841
7849
|
method,
|
|
7842
7850
|
token,
|
|
@@ -7855,10 +7863,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
7855
7863
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
7856
7864
|
|
|
7857
7865
|
// src/hooks/view/use-verify-totp.ts
|
|
7858
|
-
import { useMutation as
|
|
7866
|
+
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
7859
7867
|
var useVerifyTotp = () => {
|
|
7860
7868
|
const { verifyTotp } = useViewService();
|
|
7861
|
-
return
|
|
7869
|
+
return useMutation51({
|
|
7862
7870
|
mutationFn: ({
|
|
7863
7871
|
method,
|
|
7864
7872
|
action_token,
|
|
@@ -7875,10 +7883,10 @@ var useVerifyTotp = () => {
|
|
|
7875
7883
|
var use_verify_totp_default = useVerifyTotp;
|
|
7876
7884
|
|
|
7877
7885
|
// src/hooks/view/use-gen-serial-number.ts
|
|
7878
|
-
import { useMutation as
|
|
7886
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
7879
7887
|
var useGenSerialNumber = () => {
|
|
7880
7888
|
const { generateSerialNumber } = useActionService();
|
|
7881
|
-
return
|
|
7889
|
+
return useMutation52({
|
|
7882
7890
|
mutationFn: ({
|
|
7883
7891
|
kwargs,
|
|
7884
7892
|
context,
|
|
@@ -7918,10 +7926,10 @@ var useGetNotifications = ({
|
|
|
7918
7926
|
var use_get_notifications_default = useGetNotifications;
|
|
7919
7927
|
|
|
7920
7928
|
// src/hooks/view/use-get-version.ts
|
|
7921
|
-
import { useMutation as
|
|
7929
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
7922
7930
|
var useGetVersion = () => {
|
|
7923
7931
|
const { getVersion } = useViewService();
|
|
7924
|
-
return
|
|
7932
|
+
return useMutation53({
|
|
7925
7933
|
mutationFn: () => {
|
|
7926
7934
|
return getVersion();
|
|
7927
7935
|
}
|
|
@@ -7930,10 +7938,10 @@ var useGetVersion = () => {
|
|
|
7930
7938
|
var use_get_version_default = useGetVersion;
|
|
7931
7939
|
|
|
7932
7940
|
// src/hooks/view/use-get-ward.ts
|
|
7933
|
-
import { useMutation as
|
|
7941
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
7934
7942
|
var useGetWard = () => {
|
|
7935
7943
|
const { getWard } = useViewService();
|
|
7936
|
-
return
|
|
7944
|
+
return useMutation54({
|
|
7937
7945
|
mutationFn: ({
|
|
7938
7946
|
service,
|
|
7939
7947
|
xNode,
|
|
@@ -7950,10 +7958,10 @@ var useGetWard = () => {
|
|
|
7950
7958
|
var use_get_ward_default = useGetWard;
|
|
7951
7959
|
|
|
7952
7960
|
// src/hooks/view/use-get-city.ts
|
|
7953
|
-
import { useMutation as
|
|
7961
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
7954
7962
|
var useGetCity = () => {
|
|
7955
7963
|
const { getCity } = useViewService();
|
|
7956
|
-
return
|
|
7964
|
+
return useMutation55({
|
|
7957
7965
|
mutationFn: ({
|
|
7958
7966
|
service,
|
|
7959
7967
|
xNode,
|
|
@@ -7972,10 +7980,10 @@ var useGetCity = () => {
|
|
|
7972
7980
|
var use_get_city_default = useGetCity;
|
|
7973
7981
|
|
|
7974
7982
|
// src/hooks/view/use-get-country.ts
|
|
7975
|
-
import { useMutation as
|
|
7983
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
7976
7984
|
var useGetCountry = () => {
|
|
7977
7985
|
const { getCountry } = useViewService();
|
|
7978
|
-
return
|
|
7986
|
+
return useMutation56({
|
|
7979
7987
|
mutationFn: ({
|
|
7980
7988
|
service,
|
|
7981
7989
|
xNode,
|
|
@@ -7994,10 +8002,10 @@ var useGetCountry = () => {
|
|
|
7994
8002
|
var use_get_country_default = useGetCountry;
|
|
7995
8003
|
|
|
7996
8004
|
// src/hooks/view/use-get-partner-title.ts
|
|
7997
|
-
import { useMutation as
|
|
8005
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
7998
8006
|
var useGetPartnerTitle = () => {
|
|
7999
8007
|
const { getPartnerTitle } = useViewService();
|
|
8000
|
-
return
|
|
8008
|
+
return useMutation57({
|
|
8001
8009
|
mutationFn: ({
|
|
8002
8010
|
service,
|
|
8003
8011
|
xNode,
|
|
@@ -8052,301 +8060,301 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8052
8060
|
var use_get_data_chart_default = useGetDataChart;
|
|
8053
8061
|
|
|
8054
8062
|
// src/hooks/pos/use-add-entity.ts
|
|
8055
|
-
import { useMutation as
|
|
8063
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
8056
8064
|
var useAddEntity = () => {
|
|
8057
8065
|
const { addEntity } = usePosService();
|
|
8058
|
-
return
|
|
8066
|
+
return useMutation58({
|
|
8059
8067
|
mutationFn: addEntity
|
|
8060
8068
|
});
|
|
8061
8069
|
};
|
|
8062
8070
|
var use_add_entity_default = useAddEntity;
|
|
8063
8071
|
|
|
8064
8072
|
// src/hooks/pos/use-get-a-session.ts
|
|
8065
|
-
import { useMutation as
|
|
8073
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
8066
8074
|
var useGetASession = () => {
|
|
8067
8075
|
const pos = usePosService();
|
|
8068
|
-
return
|
|
8076
|
+
return useMutation59({
|
|
8069
8077
|
mutationFn: pos.getASession
|
|
8070
8078
|
});
|
|
8071
8079
|
};
|
|
8072
8080
|
var use_get_a_session_default = useGetASession;
|
|
8073
8081
|
|
|
8074
8082
|
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
8075
|
-
import { useMutation as
|
|
8083
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
8076
8084
|
var useChangeOrderPreparationState = () => {
|
|
8077
8085
|
const pos = usePosService();
|
|
8078
|
-
return
|
|
8086
|
+
return useMutation60({
|
|
8079
8087
|
mutationFn: pos.changeOrderPreparationState
|
|
8080
8088
|
});
|
|
8081
8089
|
};
|
|
8082
8090
|
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
8083
8091
|
|
|
8084
8092
|
// src/hooks/pos/use-check-payment.ts
|
|
8085
|
-
import { useMutation as
|
|
8093
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
8086
8094
|
var useCheckPayment = () => {
|
|
8087
8095
|
const pos = usePosService();
|
|
8088
|
-
return
|
|
8096
|
+
return useMutation61({
|
|
8089
8097
|
mutationFn: pos.checkPayment
|
|
8090
8098
|
});
|
|
8091
8099
|
};
|
|
8092
8100
|
var use_check_payment_default = useCheckPayment;
|
|
8093
8101
|
|
|
8094
8102
|
// src/hooks/pos/use-create-e-invoice.ts
|
|
8095
|
-
import { useMutation as
|
|
8103
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
8096
8104
|
var useCreateEInvoice = () => {
|
|
8097
8105
|
const pos = usePosService();
|
|
8098
|
-
return
|
|
8106
|
+
return useMutation62({
|
|
8099
8107
|
mutationFn: pos.createEInvoice
|
|
8100
8108
|
});
|
|
8101
8109
|
};
|
|
8102
8110
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8103
8111
|
|
|
8104
8112
|
// src/hooks/pos/use-create-entity.ts
|
|
8105
|
-
import { useMutation as
|
|
8113
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
8106
8114
|
var useCreateEntity = () => {
|
|
8107
8115
|
const pos = usePosService();
|
|
8108
|
-
return
|
|
8116
|
+
return useMutation63({
|
|
8109
8117
|
mutationFn: pos.createEntity
|
|
8110
8118
|
});
|
|
8111
8119
|
};
|
|
8112
8120
|
var use_create_entity_default = useCreateEntity;
|
|
8113
8121
|
|
|
8114
8122
|
// src/hooks/pos/use-create-pos-config.ts
|
|
8115
|
-
import { useMutation as
|
|
8123
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
8116
8124
|
var useCreatePosConfig = () => {
|
|
8117
8125
|
const pos = usePosService();
|
|
8118
|
-
return
|
|
8126
|
+
return useMutation64({
|
|
8119
8127
|
mutationFn: pos.createPosConfig
|
|
8120
8128
|
});
|
|
8121
8129
|
};
|
|
8122
8130
|
var use_create_pos_config_default = useCreatePosConfig;
|
|
8123
8131
|
|
|
8124
8132
|
// src/hooks/pos/use-create-session.ts
|
|
8125
|
-
import { useMutation as
|
|
8133
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
8126
8134
|
var useCreateSession = () => {
|
|
8127
8135
|
const pos = usePosService();
|
|
8128
|
-
return
|
|
8136
|
+
return useMutation65({
|
|
8129
8137
|
mutationFn: pos.createSession
|
|
8130
8138
|
});
|
|
8131
8139
|
};
|
|
8132
8140
|
var use_create_session_default = useCreateSession;
|
|
8133
8141
|
|
|
8134
8142
|
// src/hooks/pos/use-delete-entity.ts
|
|
8135
|
-
import { useMutation as
|
|
8143
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
8136
8144
|
var useDeleteEntity = () => {
|
|
8137
8145
|
const pos = usePosService();
|
|
8138
|
-
return
|
|
8146
|
+
return useMutation66({
|
|
8139
8147
|
mutationFn: pos.deleteEntity
|
|
8140
8148
|
});
|
|
8141
8149
|
};
|
|
8142
8150
|
var use_delete_entity_default = useDeleteEntity;
|
|
8143
8151
|
|
|
8144
8152
|
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
8145
|
-
import { useMutation as
|
|
8153
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
8146
8154
|
var useGeneratePaymentQrInfo = () => {
|
|
8147
8155
|
const pos = usePosService();
|
|
8148
|
-
return
|
|
8156
|
+
return useMutation67({
|
|
8149
8157
|
mutationFn: pos.generatePaymentQRInfo
|
|
8150
8158
|
});
|
|
8151
8159
|
};
|
|
8152
8160
|
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8153
8161
|
|
|
8154
8162
|
// src/hooks/pos/use-get-current-user.ts
|
|
8155
|
-
import { useMutation as
|
|
8163
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
8156
8164
|
var useGetCurrentUser = () => {
|
|
8157
8165
|
const pos = usePosService();
|
|
8158
|
-
return
|
|
8166
|
+
return useMutation68({
|
|
8159
8167
|
mutationFn: pos.getCurrentUser
|
|
8160
8168
|
});
|
|
8161
8169
|
};
|
|
8162
8170
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8163
8171
|
|
|
8164
8172
|
// src/hooks/pos/use-get-list.ts
|
|
8165
|
-
import { useMutation as
|
|
8173
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
8166
8174
|
var useGetList = () => {
|
|
8167
8175
|
const pos = usePosService();
|
|
8168
|
-
return
|
|
8176
|
+
return useMutation69({
|
|
8169
8177
|
mutationFn: pos.getList
|
|
8170
8178
|
});
|
|
8171
8179
|
};
|
|
8172
8180
|
var use_get_list_default = useGetList;
|
|
8173
8181
|
|
|
8174
8182
|
// src/hooks/pos/use-get-order-line.ts
|
|
8175
|
-
import { useMutation as
|
|
8183
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
8176
8184
|
var useGetOrderLine = () => {
|
|
8177
8185
|
const pos = usePosService();
|
|
8178
|
-
return
|
|
8186
|
+
return useMutation70({
|
|
8179
8187
|
mutationFn: pos.getOrderLine
|
|
8180
8188
|
});
|
|
8181
8189
|
};
|
|
8182
8190
|
var use_get_order_line_default = useGetOrderLine;
|
|
8183
8191
|
|
|
8184
8192
|
// src/hooks/pos/use-get-pin-code.ts
|
|
8185
|
-
import { useMutation as
|
|
8193
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
8186
8194
|
var useGetPinCode = () => {
|
|
8187
8195
|
const pos = usePosService();
|
|
8188
|
-
return
|
|
8196
|
+
return useMutation71({
|
|
8189
8197
|
mutationFn: pos.getPinCode
|
|
8190
8198
|
});
|
|
8191
8199
|
};
|
|
8192
8200
|
var use_get_pin_code_default = useGetPinCode;
|
|
8193
8201
|
|
|
8194
8202
|
// src/hooks/pos/use-get-pos.ts
|
|
8195
|
-
import { useMutation as
|
|
8203
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8196
8204
|
var useGetPos = () => {
|
|
8197
8205
|
const pos = usePosService();
|
|
8198
|
-
return
|
|
8206
|
+
return useMutation72({
|
|
8199
8207
|
mutationFn: pos.getPOS
|
|
8200
8208
|
});
|
|
8201
8209
|
};
|
|
8202
8210
|
var use_get_pos_default = useGetPos;
|
|
8203
8211
|
|
|
8204
8212
|
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
8205
|
-
import { useMutation as
|
|
8213
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8206
8214
|
var useGetPreparationDisplayData = () => {
|
|
8207
8215
|
const pos = usePosService();
|
|
8208
|
-
return
|
|
8216
|
+
return useMutation73({
|
|
8209
8217
|
mutationFn: pos.getPreparationDisplayData
|
|
8210
8218
|
});
|
|
8211
8219
|
};
|
|
8212
8220
|
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
8213
8221
|
|
|
8214
8222
|
// src/hooks/pos/use-get-product-image.ts
|
|
8215
|
-
import { useMutation as
|
|
8223
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8216
8224
|
var useGetProductImage = () => {
|
|
8217
8225
|
const pos = usePosService();
|
|
8218
|
-
return
|
|
8226
|
+
return useMutation74({
|
|
8219
8227
|
mutationFn: pos.getProductImage
|
|
8220
8228
|
});
|
|
8221
8229
|
};
|
|
8222
8230
|
var use_get_product_image_default = useGetProductImage;
|
|
8223
8231
|
|
|
8224
8232
|
// src/hooks/pos/use-handle-close-session.ts
|
|
8225
|
-
import { useMutation as
|
|
8233
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8226
8234
|
var useHandleCloseSession = () => {
|
|
8227
8235
|
const pos = usePosService();
|
|
8228
|
-
return
|
|
8236
|
+
return useMutation75({
|
|
8229
8237
|
mutationFn: pos.handleCloseSession
|
|
8230
8238
|
});
|
|
8231
8239
|
};
|
|
8232
8240
|
var use_handle_close_session_default = useHandleCloseSession;
|
|
8233
8241
|
|
|
8234
8242
|
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
8235
|
-
import { useMutation as
|
|
8243
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8236
8244
|
var useHandleClosingDetailSession = () => {
|
|
8237
8245
|
const pos = usePosService();
|
|
8238
|
-
return
|
|
8246
|
+
return useMutation76({
|
|
8239
8247
|
mutationFn: pos.handleClosingDetailSession
|
|
8240
8248
|
});
|
|
8241
8249
|
};
|
|
8242
8250
|
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
8243
8251
|
|
|
8244
8252
|
// src/hooks/pos/use-handle-closing-session.ts
|
|
8245
|
-
import { useMutation as
|
|
8253
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8246
8254
|
var useHandleClosingSession = () => {
|
|
8247
8255
|
const pos = usePosService();
|
|
8248
|
-
return
|
|
8256
|
+
return useMutation77({
|
|
8249
8257
|
mutationFn: pos.handleClosingSession
|
|
8250
8258
|
});
|
|
8251
8259
|
};
|
|
8252
8260
|
var use_handle_closing_session_default = useHandleClosingSession;
|
|
8253
8261
|
|
|
8254
8262
|
// src/hooks/pos/use-load-data-pos-session.ts
|
|
8255
|
-
import { useMutation as
|
|
8263
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
8256
8264
|
var useLoadDataPosSession = () => {
|
|
8257
8265
|
const pos = usePosService();
|
|
8258
8266
|
const { env } = useEnv();
|
|
8259
|
-
return
|
|
8267
|
+
return useMutation78({
|
|
8260
8268
|
mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
|
|
8261
8269
|
});
|
|
8262
8270
|
};
|
|
8263
8271
|
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
8264
8272
|
|
|
8265
8273
|
// src/hooks/pos/use-manage-onchange.ts
|
|
8266
|
-
import { useMutation as
|
|
8274
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8267
8275
|
var useManageOnChange = () => {
|
|
8268
8276
|
const pos = usePosService();
|
|
8269
|
-
return
|
|
8277
|
+
return useMutation79({
|
|
8270
8278
|
mutationFn: pos.manageOnChange
|
|
8271
8279
|
});
|
|
8272
8280
|
};
|
|
8273
8281
|
var use_manage_onchange_default = useManageOnChange;
|
|
8274
8282
|
|
|
8275
8283
|
// src/hooks/pos/use-manage-session.ts
|
|
8276
|
-
import { useMutation as
|
|
8284
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8277
8285
|
var useManageSession = () => {
|
|
8278
8286
|
const pos = usePosService();
|
|
8279
|
-
return
|
|
8287
|
+
return useMutation80({
|
|
8280
8288
|
mutationFn: pos.manageSession
|
|
8281
8289
|
});
|
|
8282
8290
|
};
|
|
8283
8291
|
var use_manage_session_default = useManageSession;
|
|
8284
8292
|
|
|
8285
8293
|
// src/hooks/pos/use-process-order.ts
|
|
8286
|
-
import { useMutation as
|
|
8294
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8287
8295
|
var useProcessOrder = () => {
|
|
8288
8296
|
const pos = usePosService();
|
|
8289
|
-
return
|
|
8297
|
+
return useMutation81({
|
|
8290
8298
|
mutationFn: pos.processOrder
|
|
8291
8299
|
});
|
|
8292
8300
|
};
|
|
8293
8301
|
var use_process_order_default = useProcessOrder;
|
|
8294
8302
|
|
|
8295
8303
|
// src/hooks/pos/use-save-pin-code.ts
|
|
8296
|
-
import { useMutation as
|
|
8304
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
8297
8305
|
var useSavePinCode = () => {
|
|
8298
8306
|
const pos = usePosService();
|
|
8299
|
-
return
|
|
8307
|
+
return useMutation82({
|
|
8300
8308
|
mutationFn: pos.savePinCode
|
|
8301
8309
|
});
|
|
8302
8310
|
};
|
|
8303
8311
|
var use_save_pin_code_default = useSavePinCode;
|
|
8304
8312
|
|
|
8305
8313
|
// src/hooks/pos/use-search-journal.ts
|
|
8306
|
-
import { useMutation as
|
|
8314
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
8307
8315
|
var useSearchJournal = () => {
|
|
8308
8316
|
const pos = usePosService();
|
|
8309
|
-
return
|
|
8317
|
+
return useMutation83({
|
|
8310
8318
|
mutationFn: pos.searchJournal
|
|
8311
8319
|
});
|
|
8312
8320
|
};
|
|
8313
8321
|
var use_search_journal_default = useSearchJournal;
|
|
8314
8322
|
|
|
8315
8323
|
// src/hooks/pos/use-update-closed-session.ts
|
|
8316
|
-
import { useMutation as
|
|
8324
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
8317
8325
|
var useUpdateClosedSession = () => {
|
|
8318
8326
|
const pos = usePosService();
|
|
8319
|
-
return
|
|
8327
|
+
return useMutation84({
|
|
8320
8328
|
mutationFn: pos.updateClosedSession
|
|
8321
8329
|
});
|
|
8322
8330
|
};
|
|
8323
8331
|
var use_update_closed_session_default = useUpdateClosedSession;
|
|
8324
8332
|
|
|
8325
8333
|
// src/hooks/pos/use-update-entity.ts
|
|
8326
|
-
import { useMutation as
|
|
8334
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
8327
8335
|
var useUpdateEntity = () => {
|
|
8328
8336
|
const pos = usePosService();
|
|
8329
|
-
return
|
|
8337
|
+
return useMutation85({
|
|
8330
8338
|
mutationFn: pos.updateEntity
|
|
8331
8339
|
});
|
|
8332
8340
|
};
|
|
8333
8341
|
var use_update_entity_default = useUpdateEntity;
|
|
8334
8342
|
|
|
8335
8343
|
// src/hooks/pos/use-update-order-status.ts
|
|
8336
|
-
import { useMutation as
|
|
8344
|
+
import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
8337
8345
|
var useUpdateOrderStatus = () => {
|
|
8338
8346
|
const pos = usePosService();
|
|
8339
|
-
return
|
|
8347
|
+
return useMutation86({
|
|
8340
8348
|
mutationFn: pos.updateOrderStatus
|
|
8341
8349
|
});
|
|
8342
8350
|
};
|
|
8343
8351
|
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8344
8352
|
|
|
8345
8353
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
8346
|
-
import { useMutation as
|
|
8354
|
+
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
8347
8355
|
var useCompleteCurrentStage = () => {
|
|
8348
8356
|
const pos = usePosService();
|
|
8349
|
-
return
|
|
8357
|
+
return useMutation87({
|
|
8350
8358
|
mutationFn: pos.completeCurrentStage
|
|
8351
8359
|
});
|
|
8352
8360
|
};
|
|
@@ -8431,6 +8439,7 @@ export {
|
|
|
8431
8439
|
use_load_message_default as useLoadMessage,
|
|
8432
8440
|
use_login_credential_default as useLoginCredential,
|
|
8433
8441
|
use_login_socical_default as useLoginSocial,
|
|
8442
|
+
use_login_supa_default as useLoginSupa,
|
|
8434
8443
|
use_logout_default as useLogout,
|
|
8435
8444
|
use_manage_onchange_default as useManageOnChange,
|
|
8436
8445
|
use_manage_session_default as useManageSession,
|