@fctc/interface-logic 4.4.2 → 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 +231 -210
- package/dist/hooks.mjs +181 -160
- package/dist/provider.js +384 -363
- package/dist/provider.mjs +212 -191
- package/dist/services.d.mts +21 -0
- package/dist/services.d.ts +21 -0
- package/dist/services.js +126 -105
- package/dist/services.mjs +101 -80
- package/package.json +1 -1
package/dist/hooks.mjs
CHANGED
|
@@ -3148,6 +3148,7 @@ function useActionService() {
|
|
|
3148
3148
|
import { useCallback as useCallback3 } from "react";
|
|
3149
3149
|
function useAuthService() {
|
|
3150
3150
|
const { env } = useEnv();
|
|
3151
|
+
const supabase = useSupabaseOptional();
|
|
3151
3152
|
const login = useCallback3(
|
|
3152
3153
|
async (body) => {
|
|
3153
3154
|
const payload = Object.fromEntries(
|
|
@@ -3173,6 +3174,22 @@ function useAuthService() {
|
|
|
3173
3174
|
},
|
|
3174
3175
|
[env]
|
|
3175
3176
|
);
|
|
3177
|
+
const loginSupabase = useCallback3(
|
|
3178
|
+
async (body) => {
|
|
3179
|
+
if (!supabase) {
|
|
3180
|
+
return {
|
|
3181
|
+
data: null,
|
|
3182
|
+
error: { message: "Supabase client is not initialized" }
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3185
|
+
const { data, error } = await supabase.auth.signInWithPassword({
|
|
3186
|
+
email: body.email,
|
|
3187
|
+
password: body.password
|
|
3188
|
+
});
|
|
3189
|
+
return { data, error };
|
|
3190
|
+
},
|
|
3191
|
+
[supabase]
|
|
3192
|
+
);
|
|
3176
3193
|
const forgotPassword = useCallback3(
|
|
3177
3194
|
async (email) => {
|
|
3178
3195
|
const bodyData = {
|
|
@@ -3395,6 +3412,7 @@ function useAuthService() {
|
|
|
3395
3412
|
);
|
|
3396
3413
|
return {
|
|
3397
3414
|
login,
|
|
3415
|
+
loginSupabase,
|
|
3398
3416
|
forgotPassword,
|
|
3399
3417
|
forgotPasswordSSO,
|
|
3400
3418
|
resetPassword,
|
|
@@ -6417,11 +6435,14 @@ var useLoginSocial = () => {
|
|
|
6417
6435
|
};
|
|
6418
6436
|
var use_login_socical_default = useLoginSocial;
|
|
6419
6437
|
|
|
6420
|
-
// src/hooks/auth/use-
|
|
6438
|
+
// src/hooks/auth/use-login-supa.tsx
|
|
6421
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";
|
|
6422
6443
|
var useResetPassword = () => {
|
|
6423
6444
|
const { resetPassword } = useAuthService();
|
|
6424
|
-
return
|
|
6445
|
+
return useMutation8({
|
|
6425
6446
|
mutationFn: (request) => {
|
|
6426
6447
|
return resetPassword(request.data, request.token);
|
|
6427
6448
|
}
|
|
@@ -6430,10 +6451,10 @@ var useResetPassword = () => {
|
|
|
6430
6451
|
var use_reset_password_default = useResetPassword;
|
|
6431
6452
|
|
|
6432
6453
|
// src/hooks/auth/use-reset-password-sso.ts
|
|
6433
|
-
import { useMutation as
|
|
6454
|
+
import { useMutation as useMutation9 } from "@tanstack/react-query";
|
|
6434
6455
|
var useResetPasswordSSO = () => {
|
|
6435
6456
|
const { resetPasswordSSO } = useAuthService();
|
|
6436
|
-
return
|
|
6457
|
+
return useMutation9({
|
|
6437
6458
|
mutationFn: ({
|
|
6438
6459
|
method,
|
|
6439
6460
|
password,
|
|
@@ -6450,10 +6471,10 @@ var useResetPasswordSSO = () => {
|
|
|
6450
6471
|
var use_reset_password_sso_default = useResetPasswordSSO;
|
|
6451
6472
|
|
|
6452
6473
|
// src/hooks/auth/use-update-password.ts
|
|
6453
|
-
import { useMutation as
|
|
6474
|
+
import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
6454
6475
|
var useUpdatePassword = () => {
|
|
6455
6476
|
const { updatePassword } = useAuthService();
|
|
6456
|
-
return
|
|
6477
|
+
return useMutation10({
|
|
6457
6478
|
mutationFn: (request) => {
|
|
6458
6479
|
return updatePassword(request.data, request.token);
|
|
6459
6480
|
}
|
|
@@ -6462,10 +6483,10 @@ var useUpdatePassword = () => {
|
|
|
6462
6483
|
var use_update_password_default = useUpdatePassword;
|
|
6463
6484
|
|
|
6464
6485
|
// src/hooks/auth/use-logout.ts
|
|
6465
|
-
import { useMutation as
|
|
6486
|
+
import { useMutation as useMutation11 } from "@tanstack/react-query";
|
|
6466
6487
|
var useLogout = () => {
|
|
6467
6488
|
const { logout } = useAuthService();
|
|
6468
|
-
return
|
|
6489
|
+
return useMutation11({
|
|
6469
6490
|
mutationFn: (service) => {
|
|
6470
6491
|
return logout(service);
|
|
6471
6492
|
}
|
|
@@ -6474,10 +6495,10 @@ var useLogout = () => {
|
|
|
6474
6495
|
var use_logout_default = useLogout;
|
|
6475
6496
|
|
|
6476
6497
|
// src/hooks/auth/use-get-access-by-code.ts
|
|
6477
|
-
import { useMutation as
|
|
6498
|
+
import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
6478
6499
|
var useGetAccessByCode = () => {
|
|
6479
6500
|
const { getAccessByCode } = useAuthService();
|
|
6480
|
-
return
|
|
6501
|
+
return useMutation12({
|
|
6481
6502
|
mutationFn: ({ code }) => {
|
|
6482
6503
|
return getAccessByCode(code);
|
|
6483
6504
|
}
|
|
@@ -6486,10 +6507,10 @@ var useGetAccessByCode = () => {
|
|
|
6486
6507
|
var use_get_access_by_code_default = useGetAccessByCode;
|
|
6487
6508
|
|
|
6488
6509
|
// src/hooks/auth/use-validate-action-token.ts
|
|
6489
|
-
import { useMutation as
|
|
6510
|
+
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
6490
6511
|
var useValidateActionToken = () => {
|
|
6491
6512
|
const { isValidActionToken } = useAuthService();
|
|
6492
|
-
return
|
|
6513
|
+
return useMutation13({
|
|
6493
6514
|
mutationFn: ({ actionToken }) => {
|
|
6494
6515
|
return isValidActionToken(actionToken);
|
|
6495
6516
|
}
|
|
@@ -6498,10 +6519,10 @@ var useValidateActionToken = () => {
|
|
|
6498
6519
|
var use_validate_action_token_default = useValidateActionToken;
|
|
6499
6520
|
|
|
6500
6521
|
// src/hooks/auth/use-get-tenant-mapping.ts
|
|
6501
|
-
import { useMutation as
|
|
6522
|
+
import { useMutation as useMutation14 } from "@tanstack/react-query";
|
|
6502
6523
|
var useGetTenantMapping = () => {
|
|
6503
6524
|
const { getTenantMapping } = useAuthService();
|
|
6504
|
-
return
|
|
6525
|
+
return useMutation14({
|
|
6505
6526
|
mutationFn: ({
|
|
6506
6527
|
shortName,
|
|
6507
6528
|
service
|
|
@@ -6513,10 +6534,10 @@ var useGetTenantMapping = () => {
|
|
|
6513
6534
|
var use_get_tenant_mapping_default = useGetTenantMapping;
|
|
6514
6535
|
|
|
6515
6536
|
// src/hooks/auth/use-get-token.ts
|
|
6516
|
-
import { useMutation as
|
|
6537
|
+
import { useMutation as useMutation15 } from "@tanstack/react-query";
|
|
6517
6538
|
var useGetToken = () => {
|
|
6518
6539
|
const { getToken } = useAuthService();
|
|
6519
|
-
return
|
|
6540
|
+
return useMutation15({
|
|
6520
6541
|
mutationFn: ({
|
|
6521
6542
|
phone,
|
|
6522
6543
|
name,
|
|
@@ -6530,20 +6551,20 @@ var useGetToken = () => {
|
|
|
6530
6551
|
var use_get_token_default = useGetToken;
|
|
6531
6552
|
|
|
6532
6553
|
// src/hooks/company/use-get-company-info.ts
|
|
6533
|
-
import { useMutation as
|
|
6554
|
+
import { useMutation as useMutation16 } from "@tanstack/react-query";
|
|
6534
6555
|
var useGetCompanyInfo = () => {
|
|
6535
6556
|
const { getInfoCompany } = useCompanyService();
|
|
6536
|
-
return
|
|
6557
|
+
return useMutation16({
|
|
6537
6558
|
mutationFn: ({ service, id }) => getInfoCompany(id, service)
|
|
6538
6559
|
});
|
|
6539
6560
|
};
|
|
6540
6561
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
6541
6562
|
|
|
6542
6563
|
// src/hooks/company/use-get-current-company.ts
|
|
6543
|
-
import { useMutation as
|
|
6564
|
+
import { useMutation as useMutation17 } from "@tanstack/react-query";
|
|
6544
6565
|
var useGetCurrentCompany = () => {
|
|
6545
6566
|
const { getCurrentCompany } = useCompanyService();
|
|
6546
|
-
return
|
|
6567
|
+
return useMutation17({
|
|
6547
6568
|
mutationFn: ({
|
|
6548
6569
|
service,
|
|
6549
6570
|
extraHeaders
|
|
@@ -6574,10 +6595,10 @@ var useGetListCompany = (companyIDs = []) => {
|
|
|
6574
6595
|
var use_get_list_company_default = useGetListCompany;
|
|
6575
6596
|
|
|
6576
6597
|
// src/hooks/excel/use-export-excel.ts
|
|
6577
|
-
import { useMutation as
|
|
6598
|
+
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
6578
6599
|
var useExportExcel = () => {
|
|
6579
6600
|
const { exportExcel } = useExcelService();
|
|
6580
|
-
return
|
|
6601
|
+
return useMutation18({
|
|
6581
6602
|
mutationFn: ({
|
|
6582
6603
|
model,
|
|
6583
6604
|
domain,
|
|
@@ -6606,10 +6627,10 @@ var useExportExcel = () => {
|
|
|
6606
6627
|
var use_export_excel_default = useExportExcel;
|
|
6607
6628
|
|
|
6608
6629
|
// src/hooks/excel/use-get-field-export.ts
|
|
6609
|
-
import { useMutation as
|
|
6630
|
+
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
6610
6631
|
var useGetFieldExport = () => {
|
|
6611
6632
|
const { getFieldExport } = useExcelService();
|
|
6612
|
-
return
|
|
6633
|
+
return useMutation19({
|
|
6613
6634
|
mutationFn: ({
|
|
6614
6635
|
ids,
|
|
6615
6636
|
model,
|
|
@@ -6669,10 +6690,10 @@ var useGetFileExcel = ({
|
|
|
6669
6690
|
var use_get_file_excel_default = useGetFileExcel;
|
|
6670
6691
|
|
|
6671
6692
|
// src/hooks/excel/use-parse-preview.ts
|
|
6672
|
-
import { useMutation as
|
|
6693
|
+
import { useMutation as useMutation20 } from "@tanstack/react-query";
|
|
6673
6694
|
var useParsePreview = () => {
|
|
6674
6695
|
const { parsePreview } = useExcelService();
|
|
6675
|
-
return
|
|
6696
|
+
return useMutation20({
|
|
6676
6697
|
mutationFn: ({
|
|
6677
6698
|
id,
|
|
6678
6699
|
selectedSheet,
|
|
@@ -6693,10 +6714,10 @@ var useParsePreview = () => {
|
|
|
6693
6714
|
var use_parse_preview_default = useParsePreview;
|
|
6694
6715
|
|
|
6695
6716
|
// src/hooks/excel/use-upload-file-excel.ts
|
|
6696
|
-
import { useMutation as
|
|
6717
|
+
import { useMutation as useMutation21 } from "@tanstack/react-query";
|
|
6697
6718
|
var useUploadFileExcel = () => {
|
|
6698
6719
|
const { uploadFileExcel } = useExcelService();
|
|
6699
|
-
return
|
|
6720
|
+
return useMutation21({
|
|
6700
6721
|
mutationFn: ({
|
|
6701
6722
|
formData,
|
|
6702
6723
|
service,
|
|
@@ -6711,10 +6732,10 @@ var useUploadFileExcel = () => {
|
|
|
6711
6732
|
var use_upload_file_excel_default = useUploadFileExcel;
|
|
6712
6733
|
|
|
6713
6734
|
// src/hooks/excel/use-upload-id-file.ts
|
|
6714
|
-
import { useMutation as
|
|
6735
|
+
import { useMutation as useMutation22 } from "@tanstack/react-query";
|
|
6715
6736
|
var useUploadIdFile = () => {
|
|
6716
6737
|
const { uploadIdFile } = useExcelService();
|
|
6717
|
-
return
|
|
6738
|
+
return useMutation22({
|
|
6718
6739
|
mutationFn: ({
|
|
6719
6740
|
formData,
|
|
6720
6741
|
service,
|
|
@@ -6729,10 +6750,10 @@ var useUploadIdFile = () => {
|
|
|
6729
6750
|
var use_upload_id_file_default = useUploadIdFile;
|
|
6730
6751
|
|
|
6731
6752
|
// src/hooks/excel/uss-execute-import.ts
|
|
6732
|
-
import { useMutation as
|
|
6753
|
+
import { useMutation as useMutation23 } from "@tanstack/react-query";
|
|
6733
6754
|
var useExecuteImport = () => {
|
|
6734
6755
|
const { executeImport } = useExcelService();
|
|
6735
|
-
return
|
|
6756
|
+
return useMutation23({
|
|
6736
6757
|
mutationFn: ({
|
|
6737
6758
|
fields,
|
|
6738
6759
|
columns,
|
|
@@ -6757,10 +6778,10 @@ var useExecuteImport = () => {
|
|
|
6757
6778
|
var uss_execute_import_default = useExecuteImport;
|
|
6758
6779
|
|
|
6759
6780
|
// src/hooks/form/use-change-status.ts
|
|
6760
|
-
import { useMutation as
|
|
6781
|
+
import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
6761
6782
|
var useChangeStatus = () => {
|
|
6762
6783
|
const { changeStatus } = useFormService();
|
|
6763
|
-
return
|
|
6784
|
+
return useMutation24({
|
|
6764
6785
|
mutationFn: ({ data }) => {
|
|
6765
6786
|
return changeStatus({
|
|
6766
6787
|
data
|
|
@@ -6771,10 +6792,10 @@ var useChangeStatus = () => {
|
|
|
6771
6792
|
var use_change_status_default = useChangeStatus;
|
|
6772
6793
|
|
|
6773
6794
|
// src/hooks/form/use-delete-comment.ts
|
|
6774
|
-
import { useMutation as
|
|
6795
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
6775
6796
|
var useDeleteComment = () => {
|
|
6776
6797
|
const { deleteComment } = useFormService();
|
|
6777
|
-
return
|
|
6798
|
+
return useMutation25({
|
|
6778
6799
|
mutationFn: ({ data }) => deleteComment({
|
|
6779
6800
|
data
|
|
6780
6801
|
})
|
|
@@ -6842,10 +6863,10 @@ var useGetImage = ({
|
|
|
6842
6863
|
var use_get_image_default = useGetImage;
|
|
6843
6864
|
|
|
6844
6865
|
// src/hooks/form/use-send-comment.ts
|
|
6845
|
-
import { useMutation as
|
|
6866
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
6846
6867
|
var useSendComment = () => {
|
|
6847
6868
|
const { sentComment } = useFormService();
|
|
6848
|
-
return
|
|
6869
|
+
return useMutation26({
|
|
6849
6870
|
mutationFn: ({ data }) => sentComment({
|
|
6850
6871
|
data
|
|
6851
6872
|
})
|
|
@@ -6854,10 +6875,10 @@ var useSendComment = () => {
|
|
|
6854
6875
|
var use_send_comment_default = useSendComment;
|
|
6855
6876
|
|
|
6856
6877
|
// src/hooks/form/use-upload-image.ts
|
|
6857
|
-
import { useMutation as
|
|
6878
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
6858
6879
|
var useUploadImage = () => {
|
|
6859
6880
|
const { uploadImage } = useFormService();
|
|
6860
|
-
return
|
|
6881
|
+
return useMutation27({
|
|
6861
6882
|
mutationFn: ({
|
|
6862
6883
|
formData,
|
|
6863
6884
|
service,
|
|
@@ -6872,10 +6893,10 @@ var useUploadImage = () => {
|
|
|
6872
6893
|
var use_upload_image_default = useUploadImage;
|
|
6873
6894
|
|
|
6874
6895
|
// src/hooks/form/use-upload-file.ts
|
|
6875
|
-
import { useMutation as
|
|
6896
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
6876
6897
|
var useUploadFile = () => {
|
|
6877
6898
|
const { uploadFile } = useFormService();
|
|
6878
|
-
return
|
|
6899
|
+
return useMutation28({
|
|
6879
6900
|
mutationFn: ({
|
|
6880
6901
|
formData,
|
|
6881
6902
|
service,
|
|
@@ -6966,10 +6987,10 @@ var useGetExternalTabs = ({
|
|
|
6966
6987
|
var use_get_external_tabs_default = useGetExternalTabs;
|
|
6967
6988
|
|
|
6968
6989
|
// src/hooks/model/use-delete.ts
|
|
6969
|
-
import { useMutation as
|
|
6990
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
6970
6991
|
var useDelete = () => {
|
|
6971
6992
|
const { deleteApi } = useModelService();
|
|
6972
|
-
return
|
|
6993
|
+
return useMutation29({
|
|
6973
6994
|
mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
|
|
6974
6995
|
});
|
|
6975
6996
|
};
|
|
@@ -7025,10 +7046,10 @@ var useGetCurrency = () => {
|
|
|
7025
7046
|
var use_get_currency_default = useGetCurrency;
|
|
7026
7047
|
|
|
7027
7048
|
// src/hooks/model/use-get-detail.ts
|
|
7028
|
-
import { useMutation as
|
|
7049
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
7029
7050
|
var useGetDetail = () => {
|
|
7030
7051
|
const { getDetail } = useModelService();
|
|
7031
|
-
return
|
|
7052
|
+
return useMutation30({
|
|
7032
7053
|
mutationFn: ({
|
|
7033
7054
|
model,
|
|
7034
7055
|
ids,
|
|
@@ -7236,10 +7257,10 @@ var useOdooDataTransform = () => {
|
|
|
7236
7257
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
7237
7258
|
|
|
7238
7259
|
// src/hooks/model/use-onchange-form.ts
|
|
7239
|
-
import { useMutation as
|
|
7260
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
7240
7261
|
var useOnChangeForm = () => {
|
|
7241
7262
|
const { onChange } = useModelService();
|
|
7242
|
-
return
|
|
7263
|
+
return useMutation31({
|
|
7243
7264
|
mutationFn: ({
|
|
7244
7265
|
ids,
|
|
7245
7266
|
model,
|
|
@@ -7264,10 +7285,10 @@ var useOnChangeForm = () => {
|
|
|
7264
7285
|
var use_onchange_form_default = useOnChangeForm;
|
|
7265
7286
|
|
|
7266
7287
|
// src/hooks/model/use-save.ts
|
|
7267
|
-
import { useMutation as
|
|
7288
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
7268
7289
|
var useSave = () => {
|
|
7269
7290
|
const { save } = useModelService();
|
|
7270
|
-
return
|
|
7291
|
+
return useMutation32({
|
|
7271
7292
|
mutationFn: ({
|
|
7272
7293
|
ids,
|
|
7273
7294
|
model,
|
|
@@ -7283,20 +7304,20 @@ var useSave = () => {
|
|
|
7283
7304
|
var use_save_default = useSave;
|
|
7284
7305
|
|
|
7285
7306
|
// src/hooks/user/use-get-profile.ts
|
|
7286
|
-
import { useMutation as
|
|
7307
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
7287
7308
|
var useGetProfile = (service, path, extraHeaders) => {
|
|
7288
7309
|
const { getProfile } = useUserService();
|
|
7289
|
-
return
|
|
7310
|
+
return useMutation33({
|
|
7290
7311
|
mutationFn: () => getProfile(service, path, extraHeaders)
|
|
7291
7312
|
});
|
|
7292
7313
|
};
|
|
7293
7314
|
var use_get_profile_default = useGetProfile;
|
|
7294
7315
|
|
|
7295
7316
|
// src/hooks/user/use-get-user.ts
|
|
7296
|
-
import { useMutation as
|
|
7317
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
7297
7318
|
var useGetUser = () => {
|
|
7298
7319
|
const { getUser } = useUserService();
|
|
7299
|
-
return
|
|
7320
|
+
return useMutation34({
|
|
7300
7321
|
mutationFn: ({ id, context }) => getUser({
|
|
7301
7322
|
id,
|
|
7302
7323
|
context
|
|
@@ -7306,10 +7327,10 @@ var useGetUser = () => {
|
|
|
7306
7327
|
var use_get_user_default = useGetUser;
|
|
7307
7328
|
|
|
7308
7329
|
// src/hooks/user/use-switch-locale.ts
|
|
7309
|
-
import { useMutation as
|
|
7330
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
7310
7331
|
var useSwitchLocale = () => {
|
|
7311
7332
|
const { switchUserLocale } = useUserService();
|
|
7312
|
-
return
|
|
7333
|
+
return useMutation35({
|
|
7313
7334
|
mutationFn: ({
|
|
7314
7335
|
data,
|
|
7315
7336
|
service
|
|
@@ -7325,10 +7346,10 @@ var useSwitchLocale = () => {
|
|
|
7325
7346
|
var use_switch_locale_default = useSwitchLocale;
|
|
7326
7347
|
|
|
7327
7348
|
// src/hooks/view/use-button.ts
|
|
7328
|
-
import { useMutation as
|
|
7349
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
7329
7350
|
var useButton = () => {
|
|
7330
7351
|
const { callButton } = useActionService();
|
|
7331
|
-
return
|
|
7352
|
+
return useMutation36({
|
|
7332
7353
|
mutationFn: ({
|
|
7333
7354
|
model,
|
|
7334
7355
|
ids,
|
|
@@ -7352,10 +7373,10 @@ var useButton = () => {
|
|
|
7352
7373
|
var use_button_default = useButton;
|
|
7353
7374
|
|
|
7354
7375
|
// src/hooks/view/use-duplicate-record.ts
|
|
7355
|
-
import { useMutation as
|
|
7376
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
7356
7377
|
var useDuplicateRecord = () => {
|
|
7357
7378
|
const { duplicateRecord } = useActionService();
|
|
7358
|
-
return
|
|
7379
|
+
return useMutation37({
|
|
7359
7380
|
mutationFn: ({
|
|
7360
7381
|
id,
|
|
7361
7382
|
model,
|
|
@@ -7492,10 +7513,10 @@ var useGetMenu = (context, specification, enabled, domain, service) => {
|
|
|
7492
7513
|
var use_get_menu_default = useGetMenu;
|
|
7493
7514
|
|
|
7494
7515
|
// src/hooks/view/use-get-print-report.ts
|
|
7495
|
-
import { useMutation as
|
|
7516
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
7496
7517
|
var useGetPrintReport = () => {
|
|
7497
7518
|
const { getPrintReportName } = useActionService();
|
|
7498
|
-
return
|
|
7519
|
+
return useMutation38({
|
|
7499
7520
|
mutationFn: ({ id }) => getPrintReportName({
|
|
7500
7521
|
id
|
|
7501
7522
|
})
|
|
@@ -7570,10 +7591,10 @@ var useGetView = ({ viewParams, enabled }) => {
|
|
|
7570
7591
|
var use_get_view_default = useGetView;
|
|
7571
7592
|
|
|
7572
7593
|
// src/hooks/view/use-load-action.ts
|
|
7573
|
-
import { useMutation as
|
|
7594
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
7574
7595
|
var useLoadAction = () => {
|
|
7575
7596
|
const { loadAction } = useActionService();
|
|
7576
|
-
return
|
|
7597
|
+
return useMutation39({
|
|
7577
7598
|
mutationFn: ({
|
|
7578
7599
|
idAction,
|
|
7579
7600
|
context,
|
|
@@ -7606,10 +7627,10 @@ var useLoadMessage = () => {
|
|
|
7606
7627
|
var use_load_message_default = useLoadMessage;
|
|
7607
7628
|
|
|
7608
7629
|
// src/hooks/view/use-print.ts
|
|
7609
|
-
import { useMutation as
|
|
7630
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
7610
7631
|
var usePrint = () => {
|
|
7611
7632
|
const { print } = useActionService();
|
|
7612
|
-
return
|
|
7633
|
+
return useMutation40({
|
|
7613
7634
|
mutationFn: ({ id, report, db }) => print({
|
|
7614
7635
|
id,
|
|
7615
7636
|
report,
|
|
@@ -7620,10 +7641,10 @@ var usePrint = () => {
|
|
|
7620
7641
|
var use_print_default = usePrint;
|
|
7621
7642
|
|
|
7622
7643
|
// src/hooks/view/use-remove-row.ts
|
|
7623
|
-
import { useMutation as
|
|
7644
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
7624
7645
|
var useRemoveRow = () => {
|
|
7625
7646
|
const { removeRows } = useActionService();
|
|
7626
|
-
return
|
|
7647
|
+
return useMutation41({
|
|
7627
7648
|
mutationFn: ({
|
|
7628
7649
|
model,
|
|
7629
7650
|
ids,
|
|
@@ -7642,10 +7663,10 @@ var useRemoveRow = () => {
|
|
|
7642
7663
|
var use_remove_row_default = useRemoveRow;
|
|
7643
7664
|
|
|
7644
7665
|
// src/hooks/view/use-resequence.ts
|
|
7645
|
-
import { useMutation as
|
|
7666
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
7646
7667
|
var useGetResequence = () => {
|
|
7647
7668
|
const { getResequence } = useViewService();
|
|
7648
|
-
return
|
|
7669
|
+
return useMutation42({
|
|
7649
7670
|
mutationFn: ({
|
|
7650
7671
|
model,
|
|
7651
7672
|
resIds,
|
|
@@ -7666,10 +7687,10 @@ var useGetResequence = () => {
|
|
|
7666
7687
|
var use_resequence_default = useGetResequence;
|
|
7667
7688
|
|
|
7668
7689
|
// src/hooks/view/use-run-action.ts
|
|
7669
|
-
import { useMutation as
|
|
7690
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
7670
7691
|
var useRunAction = () => {
|
|
7671
7692
|
const { runAction } = useActionService();
|
|
7672
|
-
return
|
|
7693
|
+
return useMutation43({
|
|
7673
7694
|
mutationFn: ({
|
|
7674
7695
|
idAction,
|
|
7675
7696
|
context,
|
|
@@ -7688,10 +7709,10 @@ var useRunAction = () => {
|
|
|
7688
7709
|
var use_run_action_default = useRunAction;
|
|
7689
7710
|
|
|
7690
7711
|
// src/hooks/view/use-signin-sso.ts
|
|
7691
|
-
import { useMutation as
|
|
7712
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
7692
7713
|
var useSignInSSO = () => {
|
|
7693
7714
|
const { signInSSO } = useViewService();
|
|
7694
|
-
return
|
|
7715
|
+
return useMutation44({
|
|
7695
7716
|
mutationFn: ({
|
|
7696
7717
|
redirect_uri,
|
|
7697
7718
|
state,
|
|
@@ -7714,10 +7735,10 @@ var useSignInSSO = () => {
|
|
|
7714
7735
|
var use_signin_sso_default = useSignInSSO;
|
|
7715
7736
|
|
|
7716
7737
|
// src/hooks/view/use-verify-2FA.ts
|
|
7717
|
-
import { useMutation as
|
|
7738
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
7718
7739
|
var useVerify2FA = () => {
|
|
7719
7740
|
const { verify2FA } = useViewService();
|
|
7720
|
-
return
|
|
7741
|
+
return useMutation45({
|
|
7721
7742
|
mutationFn: ({
|
|
7722
7743
|
method,
|
|
7723
7744
|
with_context,
|
|
@@ -7738,10 +7759,10 @@ var useVerify2FA = () => {
|
|
|
7738
7759
|
var use_verify_2FA_default = useVerify2FA;
|
|
7739
7760
|
|
|
7740
7761
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
7741
|
-
import { useMutation as
|
|
7762
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
7742
7763
|
var useGet2FAMethods = () => {
|
|
7743
7764
|
const { get2FAMethods } = useViewService();
|
|
7744
|
-
return
|
|
7765
|
+
return useMutation46({
|
|
7745
7766
|
mutationFn: ({
|
|
7746
7767
|
method,
|
|
7747
7768
|
with_context
|
|
@@ -7756,10 +7777,10 @@ var useGet2FAMethods = () => {
|
|
|
7756
7777
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
7757
7778
|
|
|
7758
7779
|
// src/hooks/view/use-grant-access.ts
|
|
7759
|
-
import { useMutation as
|
|
7780
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
7760
7781
|
var useGrantAccess = () => {
|
|
7761
7782
|
const { grantAccess } = useViewService();
|
|
7762
|
-
return
|
|
7783
|
+
return useMutation47({
|
|
7763
7784
|
mutationFn: ({
|
|
7764
7785
|
redirect_uri,
|
|
7765
7786
|
state,
|
|
@@ -7778,10 +7799,10 @@ var useGrantAccess = () => {
|
|
|
7778
7799
|
var use_grant_access_default = useGrantAccess;
|
|
7779
7800
|
|
|
7780
7801
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
7781
|
-
import { useMutation as
|
|
7802
|
+
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
7782
7803
|
var useRemoveTotpSetup = () => {
|
|
7783
7804
|
const { removeTotpSetUp } = useViewService();
|
|
7784
|
-
return
|
|
7805
|
+
return useMutation48({
|
|
7785
7806
|
mutationFn: ({ method, token }) => {
|
|
7786
7807
|
return removeTotpSetUp({
|
|
7787
7808
|
method,
|
|
@@ -7793,10 +7814,10 @@ var useRemoveTotpSetup = () => {
|
|
|
7793
7814
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
7794
7815
|
|
|
7795
7816
|
// src/hooks/view/use-request-setup-totp.ts
|
|
7796
|
-
import { useMutation as
|
|
7817
|
+
import { useMutation as useMutation49 } from "@tanstack/react-query";
|
|
7797
7818
|
var useRequestSetupTotp = () => {
|
|
7798
7819
|
const { requestSetupTotp } = useViewService();
|
|
7799
|
-
return
|
|
7820
|
+
return useMutation49({
|
|
7800
7821
|
mutationFn: ({ method, token }) => {
|
|
7801
7822
|
return requestSetupTotp({
|
|
7802
7823
|
method,
|
|
@@ -7808,10 +7829,10 @@ var useRequestSetupTotp = () => {
|
|
|
7808
7829
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
7809
7830
|
|
|
7810
7831
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
7811
|
-
import { useMutation as
|
|
7832
|
+
import { useMutation as useMutation50 } from "@tanstack/react-query";
|
|
7812
7833
|
var useSettingsWebRead2fa = () => {
|
|
7813
7834
|
const { settingsWebRead2fa } = useViewService();
|
|
7814
|
-
return
|
|
7835
|
+
return useMutation50({
|
|
7815
7836
|
mutationFn: ({
|
|
7816
7837
|
method,
|
|
7817
7838
|
token,
|
|
@@ -7830,10 +7851,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
7830
7851
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
7831
7852
|
|
|
7832
7853
|
// src/hooks/view/use-verify-totp.ts
|
|
7833
|
-
import { useMutation as
|
|
7854
|
+
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
7834
7855
|
var useVerifyTotp = () => {
|
|
7835
7856
|
const { verifyTotp } = useViewService();
|
|
7836
|
-
return
|
|
7857
|
+
return useMutation51({
|
|
7837
7858
|
mutationFn: ({
|
|
7838
7859
|
method,
|
|
7839
7860
|
action_token,
|
|
@@ -7850,10 +7871,10 @@ var useVerifyTotp = () => {
|
|
|
7850
7871
|
var use_verify_totp_default = useVerifyTotp;
|
|
7851
7872
|
|
|
7852
7873
|
// src/hooks/view/use-gen-serial-number.ts
|
|
7853
|
-
import { useMutation as
|
|
7874
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
7854
7875
|
var useGenSerialNumber = () => {
|
|
7855
7876
|
const { generateSerialNumber } = useActionService();
|
|
7856
|
-
return
|
|
7877
|
+
return useMutation52({
|
|
7857
7878
|
mutationFn: ({
|
|
7858
7879
|
kwargs,
|
|
7859
7880
|
context,
|
|
@@ -7893,10 +7914,10 @@ var useGetNotifications = ({
|
|
|
7893
7914
|
var use_get_notifications_default = useGetNotifications;
|
|
7894
7915
|
|
|
7895
7916
|
// src/hooks/view/use-get-version.ts
|
|
7896
|
-
import { useMutation as
|
|
7917
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
7897
7918
|
var useGetVersion = () => {
|
|
7898
7919
|
const { getVersion } = useViewService();
|
|
7899
|
-
return
|
|
7920
|
+
return useMutation53({
|
|
7900
7921
|
mutationFn: () => {
|
|
7901
7922
|
return getVersion();
|
|
7902
7923
|
}
|
|
@@ -7905,10 +7926,10 @@ var useGetVersion = () => {
|
|
|
7905
7926
|
var use_get_version_default = useGetVersion;
|
|
7906
7927
|
|
|
7907
7928
|
// src/hooks/view/use-get-ward.ts
|
|
7908
|
-
import { useMutation as
|
|
7929
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
7909
7930
|
var useGetWard = () => {
|
|
7910
7931
|
const { getWard } = useViewService();
|
|
7911
|
-
return
|
|
7932
|
+
return useMutation54({
|
|
7912
7933
|
mutationFn: ({
|
|
7913
7934
|
service,
|
|
7914
7935
|
xNode,
|
|
@@ -7925,10 +7946,10 @@ var useGetWard = () => {
|
|
|
7925
7946
|
var use_get_ward_default = useGetWard;
|
|
7926
7947
|
|
|
7927
7948
|
// src/hooks/view/use-get-city.ts
|
|
7928
|
-
import { useMutation as
|
|
7949
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
7929
7950
|
var useGetCity = () => {
|
|
7930
7951
|
const { getCity } = useViewService();
|
|
7931
|
-
return
|
|
7952
|
+
return useMutation55({
|
|
7932
7953
|
mutationFn: ({
|
|
7933
7954
|
service,
|
|
7934
7955
|
xNode,
|
|
@@ -7947,10 +7968,10 @@ var useGetCity = () => {
|
|
|
7947
7968
|
var use_get_city_default = useGetCity;
|
|
7948
7969
|
|
|
7949
7970
|
// src/hooks/view/use-get-country.ts
|
|
7950
|
-
import { useMutation as
|
|
7971
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
7951
7972
|
var useGetCountry = () => {
|
|
7952
7973
|
const { getCountry } = useViewService();
|
|
7953
|
-
return
|
|
7974
|
+
return useMutation56({
|
|
7954
7975
|
mutationFn: ({
|
|
7955
7976
|
service,
|
|
7956
7977
|
xNode,
|
|
@@ -7969,10 +7990,10 @@ var useGetCountry = () => {
|
|
|
7969
7990
|
var use_get_country_default = useGetCountry;
|
|
7970
7991
|
|
|
7971
7992
|
// src/hooks/view/use-get-partner-title.ts
|
|
7972
|
-
import { useMutation as
|
|
7993
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
7973
7994
|
var useGetPartnerTitle = () => {
|
|
7974
7995
|
const { getPartnerTitle } = useViewService();
|
|
7975
|
-
return
|
|
7996
|
+
return useMutation57({
|
|
7976
7997
|
mutationFn: ({
|
|
7977
7998
|
service,
|
|
7978
7999
|
xNode,
|
|
@@ -8027,301 +8048,301 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8027
8048
|
var use_get_data_chart_default = useGetDataChart;
|
|
8028
8049
|
|
|
8029
8050
|
// src/hooks/pos/use-add-entity.ts
|
|
8030
|
-
import { useMutation as
|
|
8051
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
8031
8052
|
var useAddEntity = () => {
|
|
8032
8053
|
const { addEntity } = usePosService();
|
|
8033
|
-
return
|
|
8054
|
+
return useMutation58({
|
|
8034
8055
|
mutationFn: addEntity
|
|
8035
8056
|
});
|
|
8036
8057
|
};
|
|
8037
8058
|
var use_add_entity_default = useAddEntity;
|
|
8038
8059
|
|
|
8039
8060
|
// src/hooks/pos/use-get-a-session.ts
|
|
8040
|
-
import { useMutation as
|
|
8061
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
8041
8062
|
var useGetASession = () => {
|
|
8042
8063
|
const pos = usePosService();
|
|
8043
|
-
return
|
|
8064
|
+
return useMutation59({
|
|
8044
8065
|
mutationFn: pos.getASession
|
|
8045
8066
|
});
|
|
8046
8067
|
};
|
|
8047
8068
|
var use_get_a_session_default = useGetASession;
|
|
8048
8069
|
|
|
8049
8070
|
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
8050
|
-
import { useMutation as
|
|
8071
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
8051
8072
|
var useChangeOrderPreparationState = () => {
|
|
8052
8073
|
const pos = usePosService();
|
|
8053
|
-
return
|
|
8074
|
+
return useMutation60({
|
|
8054
8075
|
mutationFn: pos.changeOrderPreparationState
|
|
8055
8076
|
});
|
|
8056
8077
|
};
|
|
8057
8078
|
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
8058
8079
|
|
|
8059
8080
|
// src/hooks/pos/use-check-payment.ts
|
|
8060
|
-
import { useMutation as
|
|
8081
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
8061
8082
|
var useCheckPayment = () => {
|
|
8062
8083
|
const pos = usePosService();
|
|
8063
|
-
return
|
|
8084
|
+
return useMutation61({
|
|
8064
8085
|
mutationFn: pos.checkPayment
|
|
8065
8086
|
});
|
|
8066
8087
|
};
|
|
8067
8088
|
var use_check_payment_default = useCheckPayment;
|
|
8068
8089
|
|
|
8069
8090
|
// src/hooks/pos/use-create-e-invoice.ts
|
|
8070
|
-
import { useMutation as
|
|
8091
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
8071
8092
|
var useCreateEInvoice = () => {
|
|
8072
8093
|
const pos = usePosService();
|
|
8073
|
-
return
|
|
8094
|
+
return useMutation62({
|
|
8074
8095
|
mutationFn: pos.createEInvoice
|
|
8075
8096
|
});
|
|
8076
8097
|
};
|
|
8077
8098
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8078
8099
|
|
|
8079
8100
|
// src/hooks/pos/use-create-entity.ts
|
|
8080
|
-
import { useMutation as
|
|
8101
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
8081
8102
|
var useCreateEntity = () => {
|
|
8082
8103
|
const pos = usePosService();
|
|
8083
|
-
return
|
|
8104
|
+
return useMutation63({
|
|
8084
8105
|
mutationFn: pos.createEntity
|
|
8085
8106
|
});
|
|
8086
8107
|
};
|
|
8087
8108
|
var use_create_entity_default = useCreateEntity;
|
|
8088
8109
|
|
|
8089
8110
|
// src/hooks/pos/use-create-pos-config.ts
|
|
8090
|
-
import { useMutation as
|
|
8111
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
8091
8112
|
var useCreatePosConfig = () => {
|
|
8092
8113
|
const pos = usePosService();
|
|
8093
|
-
return
|
|
8114
|
+
return useMutation64({
|
|
8094
8115
|
mutationFn: pos.createPosConfig
|
|
8095
8116
|
});
|
|
8096
8117
|
};
|
|
8097
8118
|
var use_create_pos_config_default = useCreatePosConfig;
|
|
8098
8119
|
|
|
8099
8120
|
// src/hooks/pos/use-create-session.ts
|
|
8100
|
-
import { useMutation as
|
|
8121
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
8101
8122
|
var useCreateSession = () => {
|
|
8102
8123
|
const pos = usePosService();
|
|
8103
|
-
return
|
|
8124
|
+
return useMutation65({
|
|
8104
8125
|
mutationFn: pos.createSession
|
|
8105
8126
|
});
|
|
8106
8127
|
};
|
|
8107
8128
|
var use_create_session_default = useCreateSession;
|
|
8108
8129
|
|
|
8109
8130
|
// src/hooks/pos/use-delete-entity.ts
|
|
8110
|
-
import { useMutation as
|
|
8131
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
8111
8132
|
var useDeleteEntity = () => {
|
|
8112
8133
|
const pos = usePosService();
|
|
8113
|
-
return
|
|
8134
|
+
return useMutation66({
|
|
8114
8135
|
mutationFn: pos.deleteEntity
|
|
8115
8136
|
});
|
|
8116
8137
|
};
|
|
8117
8138
|
var use_delete_entity_default = useDeleteEntity;
|
|
8118
8139
|
|
|
8119
8140
|
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
8120
|
-
import { useMutation as
|
|
8141
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
8121
8142
|
var useGeneratePaymentQrInfo = () => {
|
|
8122
8143
|
const pos = usePosService();
|
|
8123
|
-
return
|
|
8144
|
+
return useMutation67({
|
|
8124
8145
|
mutationFn: pos.generatePaymentQRInfo
|
|
8125
8146
|
});
|
|
8126
8147
|
};
|
|
8127
8148
|
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8128
8149
|
|
|
8129
8150
|
// src/hooks/pos/use-get-current-user.ts
|
|
8130
|
-
import { useMutation as
|
|
8151
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
8131
8152
|
var useGetCurrentUser = () => {
|
|
8132
8153
|
const pos = usePosService();
|
|
8133
|
-
return
|
|
8154
|
+
return useMutation68({
|
|
8134
8155
|
mutationFn: pos.getCurrentUser
|
|
8135
8156
|
});
|
|
8136
8157
|
};
|
|
8137
8158
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8138
8159
|
|
|
8139
8160
|
// src/hooks/pos/use-get-list.ts
|
|
8140
|
-
import { useMutation as
|
|
8161
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
8141
8162
|
var useGetList = () => {
|
|
8142
8163
|
const pos = usePosService();
|
|
8143
|
-
return
|
|
8164
|
+
return useMutation69({
|
|
8144
8165
|
mutationFn: pos.getList
|
|
8145
8166
|
});
|
|
8146
8167
|
};
|
|
8147
8168
|
var use_get_list_default = useGetList;
|
|
8148
8169
|
|
|
8149
8170
|
// src/hooks/pos/use-get-order-line.ts
|
|
8150
|
-
import { useMutation as
|
|
8171
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
8151
8172
|
var useGetOrderLine = () => {
|
|
8152
8173
|
const pos = usePosService();
|
|
8153
|
-
return
|
|
8174
|
+
return useMutation70({
|
|
8154
8175
|
mutationFn: pos.getOrderLine
|
|
8155
8176
|
});
|
|
8156
8177
|
};
|
|
8157
8178
|
var use_get_order_line_default = useGetOrderLine;
|
|
8158
8179
|
|
|
8159
8180
|
// src/hooks/pos/use-get-pin-code.ts
|
|
8160
|
-
import { useMutation as
|
|
8181
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
8161
8182
|
var useGetPinCode = () => {
|
|
8162
8183
|
const pos = usePosService();
|
|
8163
|
-
return
|
|
8184
|
+
return useMutation71({
|
|
8164
8185
|
mutationFn: pos.getPinCode
|
|
8165
8186
|
});
|
|
8166
8187
|
};
|
|
8167
8188
|
var use_get_pin_code_default = useGetPinCode;
|
|
8168
8189
|
|
|
8169
8190
|
// src/hooks/pos/use-get-pos.ts
|
|
8170
|
-
import { useMutation as
|
|
8191
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8171
8192
|
var useGetPos = () => {
|
|
8172
8193
|
const pos = usePosService();
|
|
8173
|
-
return
|
|
8194
|
+
return useMutation72({
|
|
8174
8195
|
mutationFn: pos.getPOS
|
|
8175
8196
|
});
|
|
8176
8197
|
};
|
|
8177
8198
|
var use_get_pos_default = useGetPos;
|
|
8178
8199
|
|
|
8179
8200
|
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
8180
|
-
import { useMutation as
|
|
8201
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8181
8202
|
var useGetPreparationDisplayData = () => {
|
|
8182
8203
|
const pos = usePosService();
|
|
8183
|
-
return
|
|
8204
|
+
return useMutation73({
|
|
8184
8205
|
mutationFn: pos.getPreparationDisplayData
|
|
8185
8206
|
});
|
|
8186
8207
|
};
|
|
8187
8208
|
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
8188
8209
|
|
|
8189
8210
|
// src/hooks/pos/use-get-product-image.ts
|
|
8190
|
-
import { useMutation as
|
|
8211
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8191
8212
|
var useGetProductImage = () => {
|
|
8192
8213
|
const pos = usePosService();
|
|
8193
|
-
return
|
|
8214
|
+
return useMutation74({
|
|
8194
8215
|
mutationFn: pos.getProductImage
|
|
8195
8216
|
});
|
|
8196
8217
|
};
|
|
8197
8218
|
var use_get_product_image_default = useGetProductImage;
|
|
8198
8219
|
|
|
8199
8220
|
// src/hooks/pos/use-handle-close-session.ts
|
|
8200
|
-
import { useMutation as
|
|
8221
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8201
8222
|
var useHandleCloseSession = () => {
|
|
8202
8223
|
const pos = usePosService();
|
|
8203
|
-
return
|
|
8224
|
+
return useMutation75({
|
|
8204
8225
|
mutationFn: pos.handleCloseSession
|
|
8205
8226
|
});
|
|
8206
8227
|
};
|
|
8207
8228
|
var use_handle_close_session_default = useHandleCloseSession;
|
|
8208
8229
|
|
|
8209
8230
|
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
8210
|
-
import { useMutation as
|
|
8231
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8211
8232
|
var useHandleClosingDetailSession = () => {
|
|
8212
8233
|
const pos = usePosService();
|
|
8213
|
-
return
|
|
8234
|
+
return useMutation76({
|
|
8214
8235
|
mutationFn: pos.handleClosingDetailSession
|
|
8215
8236
|
});
|
|
8216
8237
|
};
|
|
8217
8238
|
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
8218
8239
|
|
|
8219
8240
|
// src/hooks/pos/use-handle-closing-session.ts
|
|
8220
|
-
import { useMutation as
|
|
8241
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8221
8242
|
var useHandleClosingSession = () => {
|
|
8222
8243
|
const pos = usePosService();
|
|
8223
|
-
return
|
|
8244
|
+
return useMutation77({
|
|
8224
8245
|
mutationFn: pos.handleClosingSession
|
|
8225
8246
|
});
|
|
8226
8247
|
};
|
|
8227
8248
|
var use_handle_closing_session_default = useHandleClosingSession;
|
|
8228
8249
|
|
|
8229
8250
|
// src/hooks/pos/use-load-data-pos-session.ts
|
|
8230
|
-
import { useMutation as
|
|
8251
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
8231
8252
|
var useLoadDataPosSession = () => {
|
|
8232
8253
|
const pos = usePosService();
|
|
8233
8254
|
const { env } = useEnv();
|
|
8234
|
-
return
|
|
8255
|
+
return useMutation78({
|
|
8235
8256
|
mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
|
|
8236
8257
|
});
|
|
8237
8258
|
};
|
|
8238
8259
|
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
8239
8260
|
|
|
8240
8261
|
// src/hooks/pos/use-manage-onchange.ts
|
|
8241
|
-
import { useMutation as
|
|
8262
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8242
8263
|
var useManageOnChange = () => {
|
|
8243
8264
|
const pos = usePosService();
|
|
8244
|
-
return
|
|
8265
|
+
return useMutation79({
|
|
8245
8266
|
mutationFn: pos.manageOnChange
|
|
8246
8267
|
});
|
|
8247
8268
|
};
|
|
8248
8269
|
var use_manage_onchange_default = useManageOnChange;
|
|
8249
8270
|
|
|
8250
8271
|
// src/hooks/pos/use-manage-session.ts
|
|
8251
|
-
import { useMutation as
|
|
8272
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8252
8273
|
var useManageSession = () => {
|
|
8253
8274
|
const pos = usePosService();
|
|
8254
|
-
return
|
|
8275
|
+
return useMutation80({
|
|
8255
8276
|
mutationFn: pos.manageSession
|
|
8256
8277
|
});
|
|
8257
8278
|
};
|
|
8258
8279
|
var use_manage_session_default = useManageSession;
|
|
8259
8280
|
|
|
8260
8281
|
// src/hooks/pos/use-process-order.ts
|
|
8261
|
-
import { useMutation as
|
|
8282
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8262
8283
|
var useProcessOrder = () => {
|
|
8263
8284
|
const pos = usePosService();
|
|
8264
|
-
return
|
|
8285
|
+
return useMutation81({
|
|
8265
8286
|
mutationFn: pos.processOrder
|
|
8266
8287
|
});
|
|
8267
8288
|
};
|
|
8268
8289
|
var use_process_order_default = useProcessOrder;
|
|
8269
8290
|
|
|
8270
8291
|
// src/hooks/pos/use-save-pin-code.ts
|
|
8271
|
-
import { useMutation as
|
|
8292
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
8272
8293
|
var useSavePinCode = () => {
|
|
8273
8294
|
const pos = usePosService();
|
|
8274
|
-
return
|
|
8295
|
+
return useMutation82({
|
|
8275
8296
|
mutationFn: pos.savePinCode
|
|
8276
8297
|
});
|
|
8277
8298
|
};
|
|
8278
8299
|
var use_save_pin_code_default = useSavePinCode;
|
|
8279
8300
|
|
|
8280
8301
|
// src/hooks/pos/use-search-journal.ts
|
|
8281
|
-
import { useMutation as
|
|
8302
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
8282
8303
|
var useSearchJournal = () => {
|
|
8283
8304
|
const pos = usePosService();
|
|
8284
|
-
return
|
|
8305
|
+
return useMutation83({
|
|
8285
8306
|
mutationFn: pos.searchJournal
|
|
8286
8307
|
});
|
|
8287
8308
|
};
|
|
8288
8309
|
var use_search_journal_default = useSearchJournal;
|
|
8289
8310
|
|
|
8290
8311
|
// src/hooks/pos/use-update-closed-session.ts
|
|
8291
|
-
import { useMutation as
|
|
8312
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
8292
8313
|
var useUpdateClosedSession = () => {
|
|
8293
8314
|
const pos = usePosService();
|
|
8294
|
-
return
|
|
8315
|
+
return useMutation84({
|
|
8295
8316
|
mutationFn: pos.updateClosedSession
|
|
8296
8317
|
});
|
|
8297
8318
|
};
|
|
8298
8319
|
var use_update_closed_session_default = useUpdateClosedSession;
|
|
8299
8320
|
|
|
8300
8321
|
// src/hooks/pos/use-update-entity.ts
|
|
8301
|
-
import { useMutation as
|
|
8322
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
8302
8323
|
var useUpdateEntity = () => {
|
|
8303
8324
|
const pos = usePosService();
|
|
8304
|
-
return
|
|
8325
|
+
return useMutation85({
|
|
8305
8326
|
mutationFn: pos.updateEntity
|
|
8306
8327
|
});
|
|
8307
8328
|
};
|
|
8308
8329
|
var use_update_entity_default = useUpdateEntity;
|
|
8309
8330
|
|
|
8310
8331
|
// src/hooks/pos/use-update-order-status.ts
|
|
8311
|
-
import { useMutation as
|
|
8332
|
+
import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
8312
8333
|
var useUpdateOrderStatus = () => {
|
|
8313
8334
|
const pos = usePosService();
|
|
8314
|
-
return
|
|
8335
|
+
return useMutation86({
|
|
8315
8336
|
mutationFn: pos.updateOrderStatus
|
|
8316
8337
|
});
|
|
8317
8338
|
};
|
|
8318
8339
|
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8319
8340
|
|
|
8320
8341
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
8321
|
-
import { useMutation as
|
|
8342
|
+
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
8322
8343
|
var useCompleteCurrentStage = () => {
|
|
8323
8344
|
const pos = usePosService();
|
|
8324
|
-
return
|
|
8345
|
+
return useMutation87({
|
|
8325
8346
|
mutationFn: pos.completeCurrentStage
|
|
8326
8347
|
});
|
|
8327
8348
|
};
|