@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/provider.mjs
CHANGED
|
@@ -7020,16 +7020,9 @@ var use_isvalid_token_default = useIsValidToken;
|
|
|
7020
7020
|
// src/hooks/auth/use-login-credential.tsx
|
|
7021
7021
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
7022
7022
|
var useLoginCredential = () => {
|
|
7023
|
-
const { login
|
|
7024
|
-
const { env } = useEnv();
|
|
7023
|
+
const { login } = useAuthService();
|
|
7025
7024
|
return useMutation5({
|
|
7026
7025
|
mutationFn: (data) => {
|
|
7027
|
-
if (env.isSupaMode) {
|
|
7028
|
-
return loginSupabase({
|
|
7029
|
-
email: data.email,
|
|
7030
|
-
password: data.password
|
|
7031
|
-
});
|
|
7032
|
-
}
|
|
7033
7026
|
return login(data);
|
|
7034
7027
|
}
|
|
7035
7028
|
});
|
|
@@ -7048,11 +7041,14 @@ var useLoginSocial = () => {
|
|
|
7048
7041
|
};
|
|
7049
7042
|
var use_login_socical_default = useLoginSocial;
|
|
7050
7043
|
|
|
7051
|
-
// src/hooks/auth/use-
|
|
7044
|
+
// src/hooks/auth/use-login-supa.tsx
|
|
7052
7045
|
import { useMutation as useMutation7 } from "@tanstack/react-query";
|
|
7046
|
+
|
|
7047
|
+
// src/hooks/auth/use-reset-password.ts
|
|
7048
|
+
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
|
7053
7049
|
var useResetPassword = () => {
|
|
7054
7050
|
const { resetPassword } = useAuthService();
|
|
7055
|
-
return
|
|
7051
|
+
return useMutation8({
|
|
7056
7052
|
mutationFn: (request) => {
|
|
7057
7053
|
return resetPassword(request.data, request.token);
|
|
7058
7054
|
}
|
|
@@ -7061,10 +7057,10 @@ var useResetPassword = () => {
|
|
|
7061
7057
|
var use_reset_password_default = useResetPassword;
|
|
7062
7058
|
|
|
7063
7059
|
// src/hooks/auth/use-reset-password-sso.ts
|
|
7064
|
-
import { useMutation as
|
|
7060
|
+
import { useMutation as useMutation9 } from "@tanstack/react-query";
|
|
7065
7061
|
var useResetPasswordSSO = () => {
|
|
7066
7062
|
const { resetPasswordSSO } = useAuthService();
|
|
7067
|
-
return
|
|
7063
|
+
return useMutation9({
|
|
7068
7064
|
mutationFn: ({
|
|
7069
7065
|
method,
|
|
7070
7066
|
password,
|
|
@@ -7081,10 +7077,10 @@ var useResetPasswordSSO = () => {
|
|
|
7081
7077
|
var use_reset_password_sso_default = useResetPasswordSSO;
|
|
7082
7078
|
|
|
7083
7079
|
// src/hooks/auth/use-update-password.ts
|
|
7084
|
-
import { useMutation as
|
|
7080
|
+
import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
7085
7081
|
var useUpdatePassword = () => {
|
|
7086
7082
|
const { updatePassword } = useAuthService();
|
|
7087
|
-
return
|
|
7083
|
+
return useMutation10({
|
|
7088
7084
|
mutationFn: (request) => {
|
|
7089
7085
|
return updatePassword(request.data, request.token);
|
|
7090
7086
|
}
|
|
@@ -7093,10 +7089,10 @@ var useUpdatePassword = () => {
|
|
|
7093
7089
|
var use_update_password_default = useUpdatePassword;
|
|
7094
7090
|
|
|
7095
7091
|
// src/hooks/auth/use-logout.ts
|
|
7096
|
-
import { useMutation as
|
|
7092
|
+
import { useMutation as useMutation11 } from "@tanstack/react-query";
|
|
7097
7093
|
var useLogout = () => {
|
|
7098
7094
|
const { logout } = useAuthService();
|
|
7099
|
-
return
|
|
7095
|
+
return useMutation11({
|
|
7100
7096
|
mutationFn: (service) => {
|
|
7101
7097
|
return logout(service);
|
|
7102
7098
|
}
|
|
@@ -7105,10 +7101,10 @@ var useLogout = () => {
|
|
|
7105
7101
|
var use_logout_default = useLogout;
|
|
7106
7102
|
|
|
7107
7103
|
// src/hooks/auth/use-get-access-by-code.ts
|
|
7108
|
-
import { useMutation as
|
|
7104
|
+
import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
7109
7105
|
var useGetAccessByCode = () => {
|
|
7110
7106
|
const { getAccessByCode } = useAuthService();
|
|
7111
|
-
return
|
|
7107
|
+
return useMutation12({
|
|
7112
7108
|
mutationFn: ({ code }) => {
|
|
7113
7109
|
return getAccessByCode(code);
|
|
7114
7110
|
}
|
|
@@ -7117,10 +7113,10 @@ var useGetAccessByCode = () => {
|
|
|
7117
7113
|
var use_get_access_by_code_default = useGetAccessByCode;
|
|
7118
7114
|
|
|
7119
7115
|
// src/hooks/auth/use-validate-action-token.ts
|
|
7120
|
-
import { useMutation as
|
|
7116
|
+
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
7121
7117
|
var useValidateActionToken = () => {
|
|
7122
7118
|
const { isValidActionToken } = useAuthService();
|
|
7123
|
-
return
|
|
7119
|
+
return useMutation13({
|
|
7124
7120
|
mutationFn: ({ actionToken }) => {
|
|
7125
7121
|
return isValidActionToken(actionToken);
|
|
7126
7122
|
}
|
|
@@ -7129,10 +7125,10 @@ var useValidateActionToken = () => {
|
|
|
7129
7125
|
var use_validate_action_token_default = useValidateActionToken;
|
|
7130
7126
|
|
|
7131
7127
|
// src/hooks/auth/use-get-tenant-mapping.ts
|
|
7132
|
-
import { useMutation as
|
|
7128
|
+
import { useMutation as useMutation14 } from "@tanstack/react-query";
|
|
7133
7129
|
var useGetTenantMapping = () => {
|
|
7134
7130
|
const { getTenantMapping } = useAuthService();
|
|
7135
|
-
return
|
|
7131
|
+
return useMutation14({
|
|
7136
7132
|
mutationFn: ({
|
|
7137
7133
|
shortName,
|
|
7138
7134
|
service
|
|
@@ -7144,10 +7140,10 @@ var useGetTenantMapping = () => {
|
|
|
7144
7140
|
var use_get_tenant_mapping_default = useGetTenantMapping;
|
|
7145
7141
|
|
|
7146
7142
|
// src/hooks/auth/use-get-token.ts
|
|
7147
|
-
import { useMutation as
|
|
7143
|
+
import { useMutation as useMutation15 } from "@tanstack/react-query";
|
|
7148
7144
|
var useGetToken = () => {
|
|
7149
7145
|
const { getToken } = useAuthService();
|
|
7150
|
-
return
|
|
7146
|
+
return useMutation15({
|
|
7151
7147
|
mutationFn: ({
|
|
7152
7148
|
phone,
|
|
7153
7149
|
name,
|
|
@@ -7161,20 +7157,20 @@ var useGetToken = () => {
|
|
|
7161
7157
|
var use_get_token_default = useGetToken;
|
|
7162
7158
|
|
|
7163
7159
|
// src/hooks/company/use-get-company-info.ts
|
|
7164
|
-
import { useMutation as
|
|
7160
|
+
import { useMutation as useMutation16 } from "@tanstack/react-query";
|
|
7165
7161
|
var useGetCompanyInfo = () => {
|
|
7166
7162
|
const { getInfoCompany } = useCompanyService();
|
|
7167
|
-
return
|
|
7163
|
+
return useMutation16({
|
|
7168
7164
|
mutationFn: ({ service, id }) => getInfoCompany(id, service)
|
|
7169
7165
|
});
|
|
7170
7166
|
};
|
|
7171
7167
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
7172
7168
|
|
|
7173
7169
|
// src/hooks/company/use-get-current-company.ts
|
|
7174
|
-
import { useMutation as
|
|
7170
|
+
import { useMutation as useMutation17 } from "@tanstack/react-query";
|
|
7175
7171
|
var useGetCurrentCompany = () => {
|
|
7176
7172
|
const { getCurrentCompany } = useCompanyService();
|
|
7177
|
-
return
|
|
7173
|
+
return useMutation17({
|
|
7178
7174
|
mutationFn: ({
|
|
7179
7175
|
service,
|
|
7180
7176
|
extraHeaders
|
|
@@ -7205,10 +7201,10 @@ var useGetListCompany = (companyIDs = []) => {
|
|
|
7205
7201
|
var use_get_list_company_default = useGetListCompany;
|
|
7206
7202
|
|
|
7207
7203
|
// src/hooks/excel/use-export-excel.ts
|
|
7208
|
-
import { useMutation as
|
|
7204
|
+
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
7209
7205
|
var useExportExcel = () => {
|
|
7210
7206
|
const { exportExcel } = useExcelService();
|
|
7211
|
-
return
|
|
7207
|
+
return useMutation18({
|
|
7212
7208
|
mutationFn: ({
|
|
7213
7209
|
model,
|
|
7214
7210
|
domain,
|
|
@@ -7237,10 +7233,10 @@ var useExportExcel = () => {
|
|
|
7237
7233
|
var use_export_excel_default = useExportExcel;
|
|
7238
7234
|
|
|
7239
7235
|
// src/hooks/excel/use-get-field-export.ts
|
|
7240
|
-
import { useMutation as
|
|
7236
|
+
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
7241
7237
|
var useGetFieldExport = () => {
|
|
7242
7238
|
const { getFieldExport } = useExcelService();
|
|
7243
|
-
return
|
|
7239
|
+
return useMutation19({
|
|
7244
7240
|
mutationFn: ({
|
|
7245
7241
|
ids,
|
|
7246
7242
|
model,
|
|
@@ -7300,10 +7296,10 @@ var useGetFileExcel = ({
|
|
|
7300
7296
|
var use_get_file_excel_default = useGetFileExcel;
|
|
7301
7297
|
|
|
7302
7298
|
// src/hooks/excel/use-parse-preview.ts
|
|
7303
|
-
import { useMutation as
|
|
7299
|
+
import { useMutation as useMutation20 } from "@tanstack/react-query";
|
|
7304
7300
|
var useParsePreview = () => {
|
|
7305
7301
|
const { parsePreview } = useExcelService();
|
|
7306
|
-
return
|
|
7302
|
+
return useMutation20({
|
|
7307
7303
|
mutationFn: ({
|
|
7308
7304
|
id,
|
|
7309
7305
|
selectedSheet,
|
|
@@ -7324,10 +7320,10 @@ var useParsePreview = () => {
|
|
|
7324
7320
|
var use_parse_preview_default = useParsePreview;
|
|
7325
7321
|
|
|
7326
7322
|
// src/hooks/excel/use-upload-file-excel.ts
|
|
7327
|
-
import { useMutation as
|
|
7323
|
+
import { useMutation as useMutation21 } from "@tanstack/react-query";
|
|
7328
7324
|
var useUploadFileExcel = () => {
|
|
7329
7325
|
const { uploadFileExcel } = useExcelService();
|
|
7330
|
-
return
|
|
7326
|
+
return useMutation21({
|
|
7331
7327
|
mutationFn: ({
|
|
7332
7328
|
formData,
|
|
7333
7329
|
service,
|
|
@@ -7342,10 +7338,10 @@ var useUploadFileExcel = () => {
|
|
|
7342
7338
|
var use_upload_file_excel_default = useUploadFileExcel;
|
|
7343
7339
|
|
|
7344
7340
|
// src/hooks/excel/use-upload-id-file.ts
|
|
7345
|
-
import { useMutation as
|
|
7341
|
+
import { useMutation as useMutation22 } from "@tanstack/react-query";
|
|
7346
7342
|
var useUploadIdFile = () => {
|
|
7347
7343
|
const { uploadIdFile } = useExcelService();
|
|
7348
|
-
return
|
|
7344
|
+
return useMutation22({
|
|
7349
7345
|
mutationFn: ({
|
|
7350
7346
|
formData,
|
|
7351
7347
|
service,
|
|
@@ -7360,10 +7356,10 @@ var useUploadIdFile = () => {
|
|
|
7360
7356
|
var use_upload_id_file_default = useUploadIdFile;
|
|
7361
7357
|
|
|
7362
7358
|
// src/hooks/excel/uss-execute-import.ts
|
|
7363
|
-
import { useMutation as
|
|
7359
|
+
import { useMutation as useMutation23 } from "@tanstack/react-query";
|
|
7364
7360
|
var useExecuteImport = () => {
|
|
7365
7361
|
const { executeImport } = useExcelService();
|
|
7366
|
-
return
|
|
7362
|
+
return useMutation23({
|
|
7367
7363
|
mutationFn: ({
|
|
7368
7364
|
fields,
|
|
7369
7365
|
columns,
|
|
@@ -7388,10 +7384,10 @@ var useExecuteImport = () => {
|
|
|
7388
7384
|
var uss_execute_import_default = useExecuteImport;
|
|
7389
7385
|
|
|
7390
7386
|
// src/hooks/form/use-change-status.ts
|
|
7391
|
-
import { useMutation as
|
|
7387
|
+
import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
7392
7388
|
var useChangeStatus = () => {
|
|
7393
7389
|
const { changeStatus } = useFormService();
|
|
7394
|
-
return
|
|
7390
|
+
return useMutation24({
|
|
7395
7391
|
mutationFn: ({ data }) => {
|
|
7396
7392
|
return changeStatus({
|
|
7397
7393
|
data
|
|
@@ -7402,10 +7398,10 @@ var useChangeStatus = () => {
|
|
|
7402
7398
|
var use_change_status_default = useChangeStatus;
|
|
7403
7399
|
|
|
7404
7400
|
// src/hooks/form/use-delete-comment.ts
|
|
7405
|
-
import { useMutation as
|
|
7401
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
7406
7402
|
var useDeleteComment = () => {
|
|
7407
7403
|
const { deleteComment } = useFormService();
|
|
7408
|
-
return
|
|
7404
|
+
return useMutation25({
|
|
7409
7405
|
mutationFn: ({ data }) => deleteComment({
|
|
7410
7406
|
data
|
|
7411
7407
|
})
|
|
@@ -7473,10 +7469,10 @@ var useGetImage = ({
|
|
|
7473
7469
|
var use_get_image_default = useGetImage;
|
|
7474
7470
|
|
|
7475
7471
|
// src/hooks/form/use-send-comment.ts
|
|
7476
|
-
import { useMutation as
|
|
7472
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
7477
7473
|
var useSendComment = () => {
|
|
7478
7474
|
const { sentComment } = useFormService();
|
|
7479
|
-
return
|
|
7475
|
+
return useMutation26({
|
|
7480
7476
|
mutationFn: ({ data }) => sentComment({
|
|
7481
7477
|
data
|
|
7482
7478
|
})
|
|
@@ -7485,10 +7481,10 @@ var useSendComment = () => {
|
|
|
7485
7481
|
var use_send_comment_default = useSendComment;
|
|
7486
7482
|
|
|
7487
7483
|
// src/hooks/form/use-upload-image.ts
|
|
7488
|
-
import { useMutation as
|
|
7484
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
7489
7485
|
var useUploadImage = () => {
|
|
7490
7486
|
const { uploadImage } = useFormService();
|
|
7491
|
-
return
|
|
7487
|
+
return useMutation27({
|
|
7492
7488
|
mutationFn: ({
|
|
7493
7489
|
formData,
|
|
7494
7490
|
service,
|
|
@@ -7503,10 +7499,10 @@ var useUploadImage = () => {
|
|
|
7503
7499
|
var use_upload_image_default = useUploadImage;
|
|
7504
7500
|
|
|
7505
7501
|
// src/hooks/form/use-upload-file.ts
|
|
7506
|
-
import { useMutation as
|
|
7502
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
7507
7503
|
var useUploadFile = () => {
|
|
7508
7504
|
const { uploadFile } = useFormService();
|
|
7509
|
-
return
|
|
7505
|
+
return useMutation28({
|
|
7510
7506
|
mutationFn: ({
|
|
7511
7507
|
formData,
|
|
7512
7508
|
service,
|
|
@@ -7597,10 +7593,10 @@ var useGetExternalTabs = ({
|
|
|
7597
7593
|
var use_get_external_tabs_default = useGetExternalTabs;
|
|
7598
7594
|
|
|
7599
7595
|
// src/hooks/model/use-delete.ts
|
|
7600
|
-
import { useMutation as
|
|
7596
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
7601
7597
|
var useDelete = () => {
|
|
7602
7598
|
const { deleteApi } = useModelService();
|
|
7603
|
-
return
|
|
7599
|
+
return useMutation29({
|
|
7604
7600
|
mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
|
|
7605
7601
|
});
|
|
7606
7602
|
};
|
|
@@ -7656,10 +7652,10 @@ var useGetCurrency = () => {
|
|
|
7656
7652
|
var use_get_currency_default = useGetCurrency;
|
|
7657
7653
|
|
|
7658
7654
|
// src/hooks/model/use-get-detail.ts
|
|
7659
|
-
import { useMutation as
|
|
7655
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
7660
7656
|
var useGetDetail = () => {
|
|
7661
7657
|
const { getDetail } = useModelService();
|
|
7662
|
-
return
|
|
7658
|
+
return useMutation30({
|
|
7663
7659
|
mutationFn: ({
|
|
7664
7660
|
model,
|
|
7665
7661
|
ids,
|
|
@@ -7867,10 +7863,10 @@ var useOdooDataTransform = () => {
|
|
|
7867
7863
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
7868
7864
|
|
|
7869
7865
|
// src/hooks/model/use-onchange-form.ts
|
|
7870
|
-
import { useMutation as
|
|
7866
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
7871
7867
|
var useOnChangeForm = () => {
|
|
7872
7868
|
const { onChange } = useModelService();
|
|
7873
|
-
return
|
|
7869
|
+
return useMutation31({
|
|
7874
7870
|
mutationFn: ({
|
|
7875
7871
|
ids,
|
|
7876
7872
|
model,
|
|
@@ -7895,10 +7891,10 @@ var useOnChangeForm = () => {
|
|
|
7895
7891
|
var use_onchange_form_default = useOnChangeForm;
|
|
7896
7892
|
|
|
7897
7893
|
// src/hooks/model/use-save.ts
|
|
7898
|
-
import { useMutation as
|
|
7894
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
7899
7895
|
var useSave = () => {
|
|
7900
7896
|
const { save } = useModelService();
|
|
7901
|
-
return
|
|
7897
|
+
return useMutation32({
|
|
7902
7898
|
mutationFn: ({
|
|
7903
7899
|
ids,
|
|
7904
7900
|
model,
|
|
@@ -7914,20 +7910,20 @@ var useSave = () => {
|
|
|
7914
7910
|
var use_save_default = useSave;
|
|
7915
7911
|
|
|
7916
7912
|
// src/hooks/user/use-get-profile.ts
|
|
7917
|
-
import { useMutation as
|
|
7913
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
7918
7914
|
var useGetProfile = (service, path, extraHeaders) => {
|
|
7919
7915
|
const { getProfile } = useUserService();
|
|
7920
|
-
return
|
|
7916
|
+
return useMutation33({
|
|
7921
7917
|
mutationFn: () => getProfile(service, path, extraHeaders)
|
|
7922
7918
|
});
|
|
7923
7919
|
};
|
|
7924
7920
|
var use_get_profile_default = useGetProfile;
|
|
7925
7921
|
|
|
7926
7922
|
// src/hooks/user/use-get-user.ts
|
|
7927
|
-
import { useMutation as
|
|
7923
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
7928
7924
|
var useGetUser = () => {
|
|
7929
7925
|
const { getUser } = useUserService();
|
|
7930
|
-
return
|
|
7926
|
+
return useMutation34({
|
|
7931
7927
|
mutationFn: ({ id, context }) => getUser({
|
|
7932
7928
|
id,
|
|
7933
7929
|
context
|
|
@@ -7937,10 +7933,10 @@ var useGetUser = () => {
|
|
|
7937
7933
|
var use_get_user_default = useGetUser;
|
|
7938
7934
|
|
|
7939
7935
|
// src/hooks/user/use-switch-locale.ts
|
|
7940
|
-
import { useMutation as
|
|
7936
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
7941
7937
|
var useSwitchLocale = () => {
|
|
7942
7938
|
const { switchUserLocale } = useUserService();
|
|
7943
|
-
return
|
|
7939
|
+
return useMutation35({
|
|
7944
7940
|
mutationFn: ({
|
|
7945
7941
|
data,
|
|
7946
7942
|
service
|
|
@@ -7956,10 +7952,10 @@ var useSwitchLocale = () => {
|
|
|
7956
7952
|
var use_switch_locale_default = useSwitchLocale;
|
|
7957
7953
|
|
|
7958
7954
|
// src/hooks/view/use-button.ts
|
|
7959
|
-
import { useMutation as
|
|
7955
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
7960
7956
|
var useButton = () => {
|
|
7961
7957
|
const { callButton } = useActionService();
|
|
7962
|
-
return
|
|
7958
|
+
return useMutation36({
|
|
7963
7959
|
mutationFn: ({
|
|
7964
7960
|
model,
|
|
7965
7961
|
ids,
|
|
@@ -7983,10 +7979,10 @@ var useButton = () => {
|
|
|
7983
7979
|
var use_button_default = useButton;
|
|
7984
7980
|
|
|
7985
7981
|
// src/hooks/view/use-duplicate-record.ts
|
|
7986
|
-
import { useMutation as
|
|
7982
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
7987
7983
|
var useDuplicateRecord = () => {
|
|
7988
7984
|
const { duplicateRecord } = useActionService();
|
|
7989
|
-
return
|
|
7985
|
+
return useMutation37({
|
|
7990
7986
|
mutationFn: ({
|
|
7991
7987
|
id,
|
|
7992
7988
|
model,
|
|
@@ -8123,10 +8119,10 @@ var useGetMenu = (context, specification, enabled, domain, service) => {
|
|
|
8123
8119
|
var use_get_menu_default = useGetMenu;
|
|
8124
8120
|
|
|
8125
8121
|
// src/hooks/view/use-get-print-report.ts
|
|
8126
|
-
import { useMutation as
|
|
8122
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
8127
8123
|
var useGetPrintReport = () => {
|
|
8128
8124
|
const { getPrintReportName } = useActionService();
|
|
8129
|
-
return
|
|
8125
|
+
return useMutation38({
|
|
8130
8126
|
mutationFn: ({ id }) => getPrintReportName({
|
|
8131
8127
|
id
|
|
8132
8128
|
})
|
|
@@ -8201,10 +8197,10 @@ var useGetView = ({ viewParams, enabled }) => {
|
|
|
8201
8197
|
var use_get_view_default = useGetView;
|
|
8202
8198
|
|
|
8203
8199
|
// src/hooks/view/use-load-action.ts
|
|
8204
|
-
import { useMutation as
|
|
8200
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
8205
8201
|
var useLoadAction = () => {
|
|
8206
8202
|
const { loadAction } = useActionService();
|
|
8207
|
-
return
|
|
8203
|
+
return useMutation39({
|
|
8208
8204
|
mutationFn: ({
|
|
8209
8205
|
idAction,
|
|
8210
8206
|
context,
|
|
@@ -8237,10 +8233,10 @@ var useLoadMessage = () => {
|
|
|
8237
8233
|
var use_load_message_default = useLoadMessage;
|
|
8238
8234
|
|
|
8239
8235
|
// src/hooks/view/use-print.ts
|
|
8240
|
-
import { useMutation as
|
|
8236
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
8241
8237
|
var usePrint = () => {
|
|
8242
8238
|
const { print } = useActionService();
|
|
8243
|
-
return
|
|
8239
|
+
return useMutation40({
|
|
8244
8240
|
mutationFn: ({ id, report, db }) => print({
|
|
8245
8241
|
id,
|
|
8246
8242
|
report,
|
|
@@ -8251,10 +8247,10 @@ var usePrint = () => {
|
|
|
8251
8247
|
var use_print_default = usePrint;
|
|
8252
8248
|
|
|
8253
8249
|
// src/hooks/view/use-remove-row.ts
|
|
8254
|
-
import { useMutation as
|
|
8250
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
8255
8251
|
var useRemoveRow = () => {
|
|
8256
8252
|
const { removeRows } = useActionService();
|
|
8257
|
-
return
|
|
8253
|
+
return useMutation41({
|
|
8258
8254
|
mutationFn: ({
|
|
8259
8255
|
model,
|
|
8260
8256
|
ids,
|
|
@@ -8273,10 +8269,10 @@ var useRemoveRow = () => {
|
|
|
8273
8269
|
var use_remove_row_default = useRemoveRow;
|
|
8274
8270
|
|
|
8275
8271
|
// src/hooks/view/use-resequence.ts
|
|
8276
|
-
import { useMutation as
|
|
8272
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
8277
8273
|
var useGetResequence = () => {
|
|
8278
8274
|
const { getResequence } = useViewService();
|
|
8279
|
-
return
|
|
8275
|
+
return useMutation42({
|
|
8280
8276
|
mutationFn: ({
|
|
8281
8277
|
model,
|
|
8282
8278
|
resIds,
|
|
@@ -8297,10 +8293,10 @@ var useGetResequence = () => {
|
|
|
8297
8293
|
var use_resequence_default = useGetResequence;
|
|
8298
8294
|
|
|
8299
8295
|
// src/hooks/view/use-run-action.ts
|
|
8300
|
-
import { useMutation as
|
|
8296
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
8301
8297
|
var useRunAction = () => {
|
|
8302
8298
|
const { runAction } = useActionService();
|
|
8303
|
-
return
|
|
8299
|
+
return useMutation43({
|
|
8304
8300
|
mutationFn: ({
|
|
8305
8301
|
idAction,
|
|
8306
8302
|
context,
|
|
@@ -8319,10 +8315,10 @@ var useRunAction = () => {
|
|
|
8319
8315
|
var use_run_action_default = useRunAction;
|
|
8320
8316
|
|
|
8321
8317
|
// src/hooks/view/use-signin-sso.ts
|
|
8322
|
-
import { useMutation as
|
|
8318
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
8323
8319
|
var useSignInSSO = () => {
|
|
8324
8320
|
const { signInSSO } = useViewService();
|
|
8325
|
-
return
|
|
8321
|
+
return useMutation44({
|
|
8326
8322
|
mutationFn: ({
|
|
8327
8323
|
redirect_uri,
|
|
8328
8324
|
state,
|
|
@@ -8345,10 +8341,10 @@ var useSignInSSO = () => {
|
|
|
8345
8341
|
var use_signin_sso_default = useSignInSSO;
|
|
8346
8342
|
|
|
8347
8343
|
// src/hooks/view/use-verify-2FA.ts
|
|
8348
|
-
import { useMutation as
|
|
8344
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
8349
8345
|
var useVerify2FA = () => {
|
|
8350
8346
|
const { verify2FA } = useViewService();
|
|
8351
|
-
return
|
|
8347
|
+
return useMutation45({
|
|
8352
8348
|
mutationFn: ({
|
|
8353
8349
|
method,
|
|
8354
8350
|
with_context,
|
|
@@ -8369,10 +8365,10 @@ var useVerify2FA = () => {
|
|
|
8369
8365
|
var use_verify_2FA_default = useVerify2FA;
|
|
8370
8366
|
|
|
8371
8367
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
8372
|
-
import { useMutation as
|
|
8368
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
8373
8369
|
var useGet2FAMethods = () => {
|
|
8374
8370
|
const { get2FAMethods } = useViewService();
|
|
8375
|
-
return
|
|
8371
|
+
return useMutation46({
|
|
8376
8372
|
mutationFn: ({
|
|
8377
8373
|
method,
|
|
8378
8374
|
with_context
|
|
@@ -8387,10 +8383,10 @@ var useGet2FAMethods = () => {
|
|
|
8387
8383
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
8388
8384
|
|
|
8389
8385
|
// src/hooks/view/use-grant-access.ts
|
|
8390
|
-
import { useMutation as
|
|
8386
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
8391
8387
|
var useGrantAccess = () => {
|
|
8392
8388
|
const { grantAccess } = useViewService();
|
|
8393
|
-
return
|
|
8389
|
+
return useMutation47({
|
|
8394
8390
|
mutationFn: ({
|
|
8395
8391
|
redirect_uri,
|
|
8396
8392
|
state,
|
|
@@ -8409,10 +8405,10 @@ var useGrantAccess = () => {
|
|
|
8409
8405
|
var use_grant_access_default = useGrantAccess;
|
|
8410
8406
|
|
|
8411
8407
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
8412
|
-
import { useMutation as
|
|
8408
|
+
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
8413
8409
|
var useRemoveTotpSetup = () => {
|
|
8414
8410
|
const { removeTotpSetUp } = useViewService();
|
|
8415
|
-
return
|
|
8411
|
+
return useMutation48({
|
|
8416
8412
|
mutationFn: ({ method, token }) => {
|
|
8417
8413
|
return removeTotpSetUp({
|
|
8418
8414
|
method,
|
|
@@ -8424,10 +8420,10 @@ var useRemoveTotpSetup = () => {
|
|
|
8424
8420
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
8425
8421
|
|
|
8426
8422
|
// src/hooks/view/use-request-setup-totp.ts
|
|
8427
|
-
import { useMutation as
|
|
8423
|
+
import { useMutation as useMutation49 } from "@tanstack/react-query";
|
|
8428
8424
|
var useRequestSetupTotp = () => {
|
|
8429
8425
|
const { requestSetupTotp } = useViewService();
|
|
8430
|
-
return
|
|
8426
|
+
return useMutation49({
|
|
8431
8427
|
mutationFn: ({ method, token }) => {
|
|
8432
8428
|
return requestSetupTotp({
|
|
8433
8429
|
method,
|
|
@@ -8439,10 +8435,10 @@ var useRequestSetupTotp = () => {
|
|
|
8439
8435
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
8440
8436
|
|
|
8441
8437
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
8442
|
-
import { useMutation as
|
|
8438
|
+
import { useMutation as useMutation50 } from "@tanstack/react-query";
|
|
8443
8439
|
var useSettingsWebRead2fa = () => {
|
|
8444
8440
|
const { settingsWebRead2fa } = useViewService();
|
|
8445
|
-
return
|
|
8441
|
+
return useMutation50({
|
|
8446
8442
|
mutationFn: ({
|
|
8447
8443
|
method,
|
|
8448
8444
|
token,
|
|
@@ -8461,10 +8457,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
8461
8457
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
8462
8458
|
|
|
8463
8459
|
// src/hooks/view/use-verify-totp.ts
|
|
8464
|
-
import { useMutation as
|
|
8460
|
+
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
8465
8461
|
var useVerifyTotp = () => {
|
|
8466
8462
|
const { verifyTotp } = useViewService();
|
|
8467
|
-
return
|
|
8463
|
+
return useMutation51({
|
|
8468
8464
|
mutationFn: ({
|
|
8469
8465
|
method,
|
|
8470
8466
|
action_token,
|
|
@@ -8481,10 +8477,10 @@ var useVerifyTotp = () => {
|
|
|
8481
8477
|
var use_verify_totp_default = useVerifyTotp;
|
|
8482
8478
|
|
|
8483
8479
|
// src/hooks/view/use-gen-serial-number.ts
|
|
8484
|
-
import { useMutation as
|
|
8480
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
8485
8481
|
var useGenSerialNumber = () => {
|
|
8486
8482
|
const { generateSerialNumber } = useActionService();
|
|
8487
|
-
return
|
|
8483
|
+
return useMutation52({
|
|
8488
8484
|
mutationFn: ({
|
|
8489
8485
|
kwargs,
|
|
8490
8486
|
context,
|
|
@@ -8524,10 +8520,10 @@ var useGetNotifications = ({
|
|
|
8524
8520
|
var use_get_notifications_default = useGetNotifications;
|
|
8525
8521
|
|
|
8526
8522
|
// src/hooks/view/use-get-version.ts
|
|
8527
|
-
import { useMutation as
|
|
8523
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
8528
8524
|
var useGetVersion = () => {
|
|
8529
8525
|
const { getVersion } = useViewService();
|
|
8530
|
-
return
|
|
8526
|
+
return useMutation53({
|
|
8531
8527
|
mutationFn: () => {
|
|
8532
8528
|
return getVersion();
|
|
8533
8529
|
}
|
|
@@ -8536,10 +8532,10 @@ var useGetVersion = () => {
|
|
|
8536
8532
|
var use_get_version_default = useGetVersion;
|
|
8537
8533
|
|
|
8538
8534
|
// src/hooks/view/use-get-ward.ts
|
|
8539
|
-
import { useMutation as
|
|
8535
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
8540
8536
|
var useGetWard = () => {
|
|
8541
8537
|
const { getWard } = useViewService();
|
|
8542
|
-
return
|
|
8538
|
+
return useMutation54({
|
|
8543
8539
|
mutationFn: ({
|
|
8544
8540
|
service,
|
|
8545
8541
|
xNode,
|
|
@@ -8556,10 +8552,10 @@ var useGetWard = () => {
|
|
|
8556
8552
|
var use_get_ward_default = useGetWard;
|
|
8557
8553
|
|
|
8558
8554
|
// src/hooks/view/use-get-city.ts
|
|
8559
|
-
import { useMutation as
|
|
8555
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
8560
8556
|
var useGetCity = () => {
|
|
8561
8557
|
const { getCity } = useViewService();
|
|
8562
|
-
return
|
|
8558
|
+
return useMutation55({
|
|
8563
8559
|
mutationFn: ({
|
|
8564
8560
|
service,
|
|
8565
8561
|
xNode,
|
|
@@ -8578,10 +8574,10 @@ var useGetCity = () => {
|
|
|
8578
8574
|
var use_get_city_default = useGetCity;
|
|
8579
8575
|
|
|
8580
8576
|
// src/hooks/view/use-get-country.ts
|
|
8581
|
-
import { useMutation as
|
|
8577
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
8582
8578
|
var useGetCountry = () => {
|
|
8583
8579
|
const { getCountry } = useViewService();
|
|
8584
|
-
return
|
|
8580
|
+
return useMutation56({
|
|
8585
8581
|
mutationFn: ({
|
|
8586
8582
|
service,
|
|
8587
8583
|
xNode,
|
|
@@ -8600,10 +8596,10 @@ var useGetCountry = () => {
|
|
|
8600
8596
|
var use_get_country_default = useGetCountry;
|
|
8601
8597
|
|
|
8602
8598
|
// src/hooks/view/use-get-partner-title.ts
|
|
8603
|
-
import { useMutation as
|
|
8599
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
8604
8600
|
var useGetPartnerTitle = () => {
|
|
8605
8601
|
const { getPartnerTitle } = useViewService();
|
|
8606
|
-
return
|
|
8602
|
+
return useMutation57({
|
|
8607
8603
|
mutationFn: ({
|
|
8608
8604
|
service,
|
|
8609
8605
|
xNode,
|
|
@@ -8658,301 +8654,301 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8658
8654
|
var use_get_data_chart_default = useGetDataChart;
|
|
8659
8655
|
|
|
8660
8656
|
// src/hooks/pos/use-add-entity.ts
|
|
8661
|
-
import { useMutation as
|
|
8657
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
8662
8658
|
var useAddEntity = () => {
|
|
8663
8659
|
const { addEntity } = usePosService();
|
|
8664
|
-
return
|
|
8660
|
+
return useMutation58({
|
|
8665
8661
|
mutationFn: addEntity
|
|
8666
8662
|
});
|
|
8667
8663
|
};
|
|
8668
8664
|
var use_add_entity_default = useAddEntity;
|
|
8669
8665
|
|
|
8670
8666
|
// src/hooks/pos/use-get-a-session.ts
|
|
8671
|
-
import { useMutation as
|
|
8667
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
8672
8668
|
var useGetASession = () => {
|
|
8673
8669
|
const pos = usePosService();
|
|
8674
|
-
return
|
|
8670
|
+
return useMutation59({
|
|
8675
8671
|
mutationFn: pos.getASession
|
|
8676
8672
|
});
|
|
8677
8673
|
};
|
|
8678
8674
|
var use_get_a_session_default = useGetASession;
|
|
8679
8675
|
|
|
8680
8676
|
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
8681
|
-
import { useMutation as
|
|
8677
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
8682
8678
|
var useChangeOrderPreparationState = () => {
|
|
8683
8679
|
const pos = usePosService();
|
|
8684
|
-
return
|
|
8680
|
+
return useMutation60({
|
|
8685
8681
|
mutationFn: pos.changeOrderPreparationState
|
|
8686
8682
|
});
|
|
8687
8683
|
};
|
|
8688
8684
|
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
8689
8685
|
|
|
8690
8686
|
// src/hooks/pos/use-check-payment.ts
|
|
8691
|
-
import { useMutation as
|
|
8687
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
8692
8688
|
var useCheckPayment = () => {
|
|
8693
8689
|
const pos = usePosService();
|
|
8694
|
-
return
|
|
8690
|
+
return useMutation61({
|
|
8695
8691
|
mutationFn: pos.checkPayment
|
|
8696
8692
|
});
|
|
8697
8693
|
};
|
|
8698
8694
|
var use_check_payment_default = useCheckPayment;
|
|
8699
8695
|
|
|
8700
8696
|
// src/hooks/pos/use-create-e-invoice.ts
|
|
8701
|
-
import { useMutation as
|
|
8697
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
8702
8698
|
var useCreateEInvoice = () => {
|
|
8703
8699
|
const pos = usePosService();
|
|
8704
|
-
return
|
|
8700
|
+
return useMutation62({
|
|
8705
8701
|
mutationFn: pos.createEInvoice
|
|
8706
8702
|
});
|
|
8707
8703
|
};
|
|
8708
8704
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8709
8705
|
|
|
8710
8706
|
// src/hooks/pos/use-create-entity.ts
|
|
8711
|
-
import { useMutation as
|
|
8707
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
8712
8708
|
var useCreateEntity = () => {
|
|
8713
8709
|
const pos = usePosService();
|
|
8714
|
-
return
|
|
8710
|
+
return useMutation63({
|
|
8715
8711
|
mutationFn: pos.createEntity
|
|
8716
8712
|
});
|
|
8717
8713
|
};
|
|
8718
8714
|
var use_create_entity_default = useCreateEntity;
|
|
8719
8715
|
|
|
8720
8716
|
// src/hooks/pos/use-create-pos-config.ts
|
|
8721
|
-
import { useMutation as
|
|
8717
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
8722
8718
|
var useCreatePosConfig = () => {
|
|
8723
8719
|
const pos = usePosService();
|
|
8724
|
-
return
|
|
8720
|
+
return useMutation64({
|
|
8725
8721
|
mutationFn: pos.createPosConfig
|
|
8726
8722
|
});
|
|
8727
8723
|
};
|
|
8728
8724
|
var use_create_pos_config_default = useCreatePosConfig;
|
|
8729
8725
|
|
|
8730
8726
|
// src/hooks/pos/use-create-session.ts
|
|
8731
|
-
import { useMutation as
|
|
8727
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
8732
8728
|
var useCreateSession = () => {
|
|
8733
8729
|
const pos = usePosService();
|
|
8734
|
-
return
|
|
8730
|
+
return useMutation65({
|
|
8735
8731
|
mutationFn: pos.createSession
|
|
8736
8732
|
});
|
|
8737
8733
|
};
|
|
8738
8734
|
var use_create_session_default = useCreateSession;
|
|
8739
8735
|
|
|
8740
8736
|
// src/hooks/pos/use-delete-entity.ts
|
|
8741
|
-
import { useMutation as
|
|
8737
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
8742
8738
|
var useDeleteEntity = () => {
|
|
8743
8739
|
const pos = usePosService();
|
|
8744
|
-
return
|
|
8740
|
+
return useMutation66({
|
|
8745
8741
|
mutationFn: pos.deleteEntity
|
|
8746
8742
|
});
|
|
8747
8743
|
};
|
|
8748
8744
|
var use_delete_entity_default = useDeleteEntity;
|
|
8749
8745
|
|
|
8750
8746
|
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
8751
|
-
import { useMutation as
|
|
8747
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
8752
8748
|
var useGeneratePaymentQrInfo = () => {
|
|
8753
8749
|
const pos = usePosService();
|
|
8754
|
-
return
|
|
8750
|
+
return useMutation67({
|
|
8755
8751
|
mutationFn: pos.generatePaymentQRInfo
|
|
8756
8752
|
});
|
|
8757
8753
|
};
|
|
8758
8754
|
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8759
8755
|
|
|
8760
8756
|
// src/hooks/pos/use-get-current-user.ts
|
|
8761
|
-
import { useMutation as
|
|
8757
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
8762
8758
|
var useGetCurrentUser = () => {
|
|
8763
8759
|
const pos = usePosService();
|
|
8764
|
-
return
|
|
8760
|
+
return useMutation68({
|
|
8765
8761
|
mutationFn: pos.getCurrentUser
|
|
8766
8762
|
});
|
|
8767
8763
|
};
|
|
8768
8764
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8769
8765
|
|
|
8770
8766
|
// src/hooks/pos/use-get-list.ts
|
|
8771
|
-
import { useMutation as
|
|
8767
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
8772
8768
|
var useGetList = () => {
|
|
8773
8769
|
const pos = usePosService();
|
|
8774
|
-
return
|
|
8770
|
+
return useMutation69({
|
|
8775
8771
|
mutationFn: pos.getList
|
|
8776
8772
|
});
|
|
8777
8773
|
};
|
|
8778
8774
|
var use_get_list_default = useGetList;
|
|
8779
8775
|
|
|
8780
8776
|
// src/hooks/pos/use-get-order-line.ts
|
|
8781
|
-
import { useMutation as
|
|
8777
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
8782
8778
|
var useGetOrderLine = () => {
|
|
8783
8779
|
const pos = usePosService();
|
|
8784
|
-
return
|
|
8780
|
+
return useMutation70({
|
|
8785
8781
|
mutationFn: pos.getOrderLine
|
|
8786
8782
|
});
|
|
8787
8783
|
};
|
|
8788
8784
|
var use_get_order_line_default = useGetOrderLine;
|
|
8789
8785
|
|
|
8790
8786
|
// src/hooks/pos/use-get-pin-code.ts
|
|
8791
|
-
import { useMutation as
|
|
8787
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
8792
8788
|
var useGetPinCode = () => {
|
|
8793
8789
|
const pos = usePosService();
|
|
8794
|
-
return
|
|
8790
|
+
return useMutation71({
|
|
8795
8791
|
mutationFn: pos.getPinCode
|
|
8796
8792
|
});
|
|
8797
8793
|
};
|
|
8798
8794
|
var use_get_pin_code_default = useGetPinCode;
|
|
8799
8795
|
|
|
8800
8796
|
// src/hooks/pos/use-get-pos.ts
|
|
8801
|
-
import { useMutation as
|
|
8797
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8802
8798
|
var useGetPos = () => {
|
|
8803
8799
|
const pos = usePosService();
|
|
8804
|
-
return
|
|
8800
|
+
return useMutation72({
|
|
8805
8801
|
mutationFn: pos.getPOS
|
|
8806
8802
|
});
|
|
8807
8803
|
};
|
|
8808
8804
|
var use_get_pos_default = useGetPos;
|
|
8809
8805
|
|
|
8810
8806
|
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
8811
|
-
import { useMutation as
|
|
8807
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8812
8808
|
var useGetPreparationDisplayData = () => {
|
|
8813
8809
|
const pos = usePosService();
|
|
8814
|
-
return
|
|
8810
|
+
return useMutation73({
|
|
8815
8811
|
mutationFn: pos.getPreparationDisplayData
|
|
8816
8812
|
});
|
|
8817
8813
|
};
|
|
8818
8814
|
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
8819
8815
|
|
|
8820
8816
|
// src/hooks/pos/use-get-product-image.ts
|
|
8821
|
-
import { useMutation as
|
|
8817
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8822
8818
|
var useGetProductImage = () => {
|
|
8823
8819
|
const pos = usePosService();
|
|
8824
|
-
return
|
|
8820
|
+
return useMutation74({
|
|
8825
8821
|
mutationFn: pos.getProductImage
|
|
8826
8822
|
});
|
|
8827
8823
|
};
|
|
8828
8824
|
var use_get_product_image_default = useGetProductImage;
|
|
8829
8825
|
|
|
8830
8826
|
// src/hooks/pos/use-handle-close-session.ts
|
|
8831
|
-
import { useMutation as
|
|
8827
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8832
8828
|
var useHandleCloseSession = () => {
|
|
8833
8829
|
const pos = usePosService();
|
|
8834
|
-
return
|
|
8830
|
+
return useMutation75({
|
|
8835
8831
|
mutationFn: pos.handleCloseSession
|
|
8836
8832
|
});
|
|
8837
8833
|
};
|
|
8838
8834
|
var use_handle_close_session_default = useHandleCloseSession;
|
|
8839
8835
|
|
|
8840
8836
|
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
8841
|
-
import { useMutation as
|
|
8837
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8842
8838
|
var useHandleClosingDetailSession = () => {
|
|
8843
8839
|
const pos = usePosService();
|
|
8844
|
-
return
|
|
8840
|
+
return useMutation76({
|
|
8845
8841
|
mutationFn: pos.handleClosingDetailSession
|
|
8846
8842
|
});
|
|
8847
8843
|
};
|
|
8848
8844
|
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
8849
8845
|
|
|
8850
8846
|
// src/hooks/pos/use-handle-closing-session.ts
|
|
8851
|
-
import { useMutation as
|
|
8847
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8852
8848
|
var useHandleClosingSession = () => {
|
|
8853
8849
|
const pos = usePosService();
|
|
8854
|
-
return
|
|
8850
|
+
return useMutation77({
|
|
8855
8851
|
mutationFn: pos.handleClosingSession
|
|
8856
8852
|
});
|
|
8857
8853
|
};
|
|
8858
8854
|
var use_handle_closing_session_default = useHandleClosingSession;
|
|
8859
8855
|
|
|
8860
8856
|
// src/hooks/pos/use-load-data-pos-session.ts
|
|
8861
|
-
import { useMutation as
|
|
8857
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
8862
8858
|
var useLoadDataPosSession = () => {
|
|
8863
8859
|
const pos = usePosService();
|
|
8864
8860
|
const { env } = useEnv();
|
|
8865
|
-
return
|
|
8861
|
+
return useMutation78({
|
|
8866
8862
|
mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
|
|
8867
8863
|
});
|
|
8868
8864
|
};
|
|
8869
8865
|
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
8870
8866
|
|
|
8871
8867
|
// src/hooks/pos/use-manage-onchange.ts
|
|
8872
|
-
import { useMutation as
|
|
8868
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8873
8869
|
var useManageOnChange = () => {
|
|
8874
8870
|
const pos = usePosService();
|
|
8875
|
-
return
|
|
8871
|
+
return useMutation79({
|
|
8876
8872
|
mutationFn: pos.manageOnChange
|
|
8877
8873
|
});
|
|
8878
8874
|
};
|
|
8879
8875
|
var use_manage_onchange_default = useManageOnChange;
|
|
8880
8876
|
|
|
8881
8877
|
// src/hooks/pos/use-manage-session.ts
|
|
8882
|
-
import { useMutation as
|
|
8878
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8883
8879
|
var useManageSession = () => {
|
|
8884
8880
|
const pos = usePosService();
|
|
8885
|
-
return
|
|
8881
|
+
return useMutation80({
|
|
8886
8882
|
mutationFn: pos.manageSession
|
|
8887
8883
|
});
|
|
8888
8884
|
};
|
|
8889
8885
|
var use_manage_session_default = useManageSession;
|
|
8890
8886
|
|
|
8891
8887
|
// src/hooks/pos/use-process-order.ts
|
|
8892
|
-
import { useMutation as
|
|
8888
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8893
8889
|
var useProcessOrder = () => {
|
|
8894
8890
|
const pos = usePosService();
|
|
8895
|
-
return
|
|
8891
|
+
return useMutation81({
|
|
8896
8892
|
mutationFn: pos.processOrder
|
|
8897
8893
|
});
|
|
8898
8894
|
};
|
|
8899
8895
|
var use_process_order_default = useProcessOrder;
|
|
8900
8896
|
|
|
8901
8897
|
// src/hooks/pos/use-save-pin-code.ts
|
|
8902
|
-
import { useMutation as
|
|
8898
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
8903
8899
|
var useSavePinCode = () => {
|
|
8904
8900
|
const pos = usePosService();
|
|
8905
|
-
return
|
|
8901
|
+
return useMutation82({
|
|
8906
8902
|
mutationFn: pos.savePinCode
|
|
8907
8903
|
});
|
|
8908
8904
|
};
|
|
8909
8905
|
var use_save_pin_code_default = useSavePinCode;
|
|
8910
8906
|
|
|
8911
8907
|
// src/hooks/pos/use-search-journal.ts
|
|
8912
|
-
import { useMutation as
|
|
8908
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
8913
8909
|
var useSearchJournal = () => {
|
|
8914
8910
|
const pos = usePosService();
|
|
8915
|
-
return
|
|
8911
|
+
return useMutation83({
|
|
8916
8912
|
mutationFn: pos.searchJournal
|
|
8917
8913
|
});
|
|
8918
8914
|
};
|
|
8919
8915
|
var use_search_journal_default = useSearchJournal;
|
|
8920
8916
|
|
|
8921
8917
|
// src/hooks/pos/use-update-closed-session.ts
|
|
8922
|
-
import { useMutation as
|
|
8918
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
8923
8919
|
var useUpdateClosedSession = () => {
|
|
8924
8920
|
const pos = usePosService();
|
|
8925
|
-
return
|
|
8921
|
+
return useMutation84({
|
|
8926
8922
|
mutationFn: pos.updateClosedSession
|
|
8927
8923
|
});
|
|
8928
8924
|
};
|
|
8929
8925
|
var use_update_closed_session_default = useUpdateClosedSession;
|
|
8930
8926
|
|
|
8931
8927
|
// src/hooks/pos/use-update-entity.ts
|
|
8932
|
-
import { useMutation as
|
|
8928
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
8933
8929
|
var useUpdateEntity = () => {
|
|
8934
8930
|
const pos = usePosService();
|
|
8935
|
-
return
|
|
8931
|
+
return useMutation85({
|
|
8936
8932
|
mutationFn: pos.updateEntity
|
|
8937
8933
|
});
|
|
8938
8934
|
};
|
|
8939
8935
|
var use_update_entity_default = useUpdateEntity;
|
|
8940
8936
|
|
|
8941
8937
|
// src/hooks/pos/use-update-order-status.ts
|
|
8942
|
-
import { useMutation as
|
|
8938
|
+
import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
8943
8939
|
var useUpdateOrderStatus = () => {
|
|
8944
8940
|
const pos = usePosService();
|
|
8945
|
-
return
|
|
8941
|
+
return useMutation86({
|
|
8946
8942
|
mutationFn: pos.updateOrderStatus
|
|
8947
8943
|
});
|
|
8948
8944
|
};
|
|
8949
8945
|
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8950
8946
|
|
|
8951
8947
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
8952
|
-
import { useMutation as
|
|
8948
|
+
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
8953
8949
|
var useCompleteCurrentStage = () => {
|
|
8954
8950
|
const pos = usePosService();
|
|
8955
|
-
return
|
|
8951
|
+
return useMutation87({
|
|
8956
8952
|
mutationFn: pos.completeCurrentStage
|
|
8957
8953
|
});
|
|
8958
8954
|
};
|