@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/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,26 @@ 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
|
+
var useLoginSupa = () => {
|
|
7047
|
+
const { loginSupabase } = useAuthService();
|
|
7048
|
+
return useMutation7({
|
|
7049
|
+
mutationFn: (data) => {
|
|
7050
|
+
return loginSupabase({
|
|
7051
|
+
email: data.email,
|
|
7052
|
+
password: data.password
|
|
7053
|
+
});
|
|
7054
|
+
}
|
|
7055
|
+
});
|
|
7056
|
+
};
|
|
7057
|
+
var use_login_supa_default = useLoginSupa;
|
|
7058
|
+
|
|
7059
|
+
// src/hooks/auth/use-reset-password.ts
|
|
7060
|
+
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
|
7053
7061
|
var useResetPassword = () => {
|
|
7054
7062
|
const { resetPassword } = useAuthService();
|
|
7055
|
-
return
|
|
7063
|
+
return useMutation8({
|
|
7056
7064
|
mutationFn: (request) => {
|
|
7057
7065
|
return resetPassword(request.data, request.token);
|
|
7058
7066
|
}
|
|
@@ -7061,10 +7069,10 @@ var useResetPassword = () => {
|
|
|
7061
7069
|
var use_reset_password_default = useResetPassword;
|
|
7062
7070
|
|
|
7063
7071
|
// src/hooks/auth/use-reset-password-sso.ts
|
|
7064
|
-
import { useMutation as
|
|
7072
|
+
import { useMutation as useMutation9 } from "@tanstack/react-query";
|
|
7065
7073
|
var useResetPasswordSSO = () => {
|
|
7066
7074
|
const { resetPasswordSSO } = useAuthService();
|
|
7067
|
-
return
|
|
7075
|
+
return useMutation9({
|
|
7068
7076
|
mutationFn: ({
|
|
7069
7077
|
method,
|
|
7070
7078
|
password,
|
|
@@ -7081,10 +7089,10 @@ var useResetPasswordSSO = () => {
|
|
|
7081
7089
|
var use_reset_password_sso_default = useResetPasswordSSO;
|
|
7082
7090
|
|
|
7083
7091
|
// src/hooks/auth/use-update-password.ts
|
|
7084
|
-
import { useMutation as
|
|
7092
|
+
import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
7085
7093
|
var useUpdatePassword = () => {
|
|
7086
7094
|
const { updatePassword } = useAuthService();
|
|
7087
|
-
return
|
|
7095
|
+
return useMutation10({
|
|
7088
7096
|
mutationFn: (request) => {
|
|
7089
7097
|
return updatePassword(request.data, request.token);
|
|
7090
7098
|
}
|
|
@@ -7093,10 +7101,10 @@ var useUpdatePassword = () => {
|
|
|
7093
7101
|
var use_update_password_default = useUpdatePassword;
|
|
7094
7102
|
|
|
7095
7103
|
// src/hooks/auth/use-logout.ts
|
|
7096
|
-
import { useMutation as
|
|
7104
|
+
import { useMutation as useMutation11 } from "@tanstack/react-query";
|
|
7097
7105
|
var useLogout = () => {
|
|
7098
7106
|
const { logout } = useAuthService();
|
|
7099
|
-
return
|
|
7107
|
+
return useMutation11({
|
|
7100
7108
|
mutationFn: (service) => {
|
|
7101
7109
|
return logout(service);
|
|
7102
7110
|
}
|
|
@@ -7105,10 +7113,10 @@ var useLogout = () => {
|
|
|
7105
7113
|
var use_logout_default = useLogout;
|
|
7106
7114
|
|
|
7107
7115
|
// src/hooks/auth/use-get-access-by-code.ts
|
|
7108
|
-
import { useMutation as
|
|
7116
|
+
import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
7109
7117
|
var useGetAccessByCode = () => {
|
|
7110
7118
|
const { getAccessByCode } = useAuthService();
|
|
7111
|
-
return
|
|
7119
|
+
return useMutation12({
|
|
7112
7120
|
mutationFn: ({ code }) => {
|
|
7113
7121
|
return getAccessByCode(code);
|
|
7114
7122
|
}
|
|
@@ -7117,10 +7125,10 @@ var useGetAccessByCode = () => {
|
|
|
7117
7125
|
var use_get_access_by_code_default = useGetAccessByCode;
|
|
7118
7126
|
|
|
7119
7127
|
// src/hooks/auth/use-validate-action-token.ts
|
|
7120
|
-
import { useMutation as
|
|
7128
|
+
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
7121
7129
|
var useValidateActionToken = () => {
|
|
7122
7130
|
const { isValidActionToken } = useAuthService();
|
|
7123
|
-
return
|
|
7131
|
+
return useMutation13({
|
|
7124
7132
|
mutationFn: ({ actionToken }) => {
|
|
7125
7133
|
return isValidActionToken(actionToken);
|
|
7126
7134
|
}
|
|
@@ -7129,10 +7137,10 @@ var useValidateActionToken = () => {
|
|
|
7129
7137
|
var use_validate_action_token_default = useValidateActionToken;
|
|
7130
7138
|
|
|
7131
7139
|
// src/hooks/auth/use-get-tenant-mapping.ts
|
|
7132
|
-
import { useMutation as
|
|
7140
|
+
import { useMutation as useMutation14 } from "@tanstack/react-query";
|
|
7133
7141
|
var useGetTenantMapping = () => {
|
|
7134
7142
|
const { getTenantMapping } = useAuthService();
|
|
7135
|
-
return
|
|
7143
|
+
return useMutation14({
|
|
7136
7144
|
mutationFn: ({
|
|
7137
7145
|
shortName,
|
|
7138
7146
|
service
|
|
@@ -7144,10 +7152,10 @@ var useGetTenantMapping = () => {
|
|
|
7144
7152
|
var use_get_tenant_mapping_default = useGetTenantMapping;
|
|
7145
7153
|
|
|
7146
7154
|
// src/hooks/auth/use-get-token.ts
|
|
7147
|
-
import { useMutation as
|
|
7155
|
+
import { useMutation as useMutation15 } from "@tanstack/react-query";
|
|
7148
7156
|
var useGetToken = () => {
|
|
7149
7157
|
const { getToken } = useAuthService();
|
|
7150
|
-
return
|
|
7158
|
+
return useMutation15({
|
|
7151
7159
|
mutationFn: ({
|
|
7152
7160
|
phone,
|
|
7153
7161
|
name,
|
|
@@ -7161,20 +7169,20 @@ var useGetToken = () => {
|
|
|
7161
7169
|
var use_get_token_default = useGetToken;
|
|
7162
7170
|
|
|
7163
7171
|
// src/hooks/company/use-get-company-info.ts
|
|
7164
|
-
import { useMutation as
|
|
7172
|
+
import { useMutation as useMutation16 } from "@tanstack/react-query";
|
|
7165
7173
|
var useGetCompanyInfo = () => {
|
|
7166
7174
|
const { getInfoCompany } = useCompanyService();
|
|
7167
|
-
return
|
|
7175
|
+
return useMutation16({
|
|
7168
7176
|
mutationFn: ({ service, id }) => getInfoCompany(id, service)
|
|
7169
7177
|
});
|
|
7170
7178
|
};
|
|
7171
7179
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
7172
7180
|
|
|
7173
7181
|
// src/hooks/company/use-get-current-company.ts
|
|
7174
|
-
import { useMutation as
|
|
7182
|
+
import { useMutation as useMutation17 } from "@tanstack/react-query";
|
|
7175
7183
|
var useGetCurrentCompany = () => {
|
|
7176
7184
|
const { getCurrentCompany } = useCompanyService();
|
|
7177
|
-
return
|
|
7185
|
+
return useMutation17({
|
|
7178
7186
|
mutationFn: ({
|
|
7179
7187
|
service,
|
|
7180
7188
|
extraHeaders
|
|
@@ -7205,10 +7213,10 @@ var useGetListCompany = (companyIDs = []) => {
|
|
|
7205
7213
|
var use_get_list_company_default = useGetListCompany;
|
|
7206
7214
|
|
|
7207
7215
|
// src/hooks/excel/use-export-excel.ts
|
|
7208
|
-
import { useMutation as
|
|
7216
|
+
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
7209
7217
|
var useExportExcel = () => {
|
|
7210
7218
|
const { exportExcel } = useExcelService();
|
|
7211
|
-
return
|
|
7219
|
+
return useMutation18({
|
|
7212
7220
|
mutationFn: ({
|
|
7213
7221
|
model,
|
|
7214
7222
|
domain,
|
|
@@ -7237,10 +7245,10 @@ var useExportExcel = () => {
|
|
|
7237
7245
|
var use_export_excel_default = useExportExcel;
|
|
7238
7246
|
|
|
7239
7247
|
// src/hooks/excel/use-get-field-export.ts
|
|
7240
|
-
import { useMutation as
|
|
7248
|
+
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
7241
7249
|
var useGetFieldExport = () => {
|
|
7242
7250
|
const { getFieldExport } = useExcelService();
|
|
7243
|
-
return
|
|
7251
|
+
return useMutation19({
|
|
7244
7252
|
mutationFn: ({
|
|
7245
7253
|
ids,
|
|
7246
7254
|
model,
|
|
@@ -7300,10 +7308,10 @@ var useGetFileExcel = ({
|
|
|
7300
7308
|
var use_get_file_excel_default = useGetFileExcel;
|
|
7301
7309
|
|
|
7302
7310
|
// src/hooks/excel/use-parse-preview.ts
|
|
7303
|
-
import { useMutation as
|
|
7311
|
+
import { useMutation as useMutation20 } from "@tanstack/react-query";
|
|
7304
7312
|
var useParsePreview = () => {
|
|
7305
7313
|
const { parsePreview } = useExcelService();
|
|
7306
|
-
return
|
|
7314
|
+
return useMutation20({
|
|
7307
7315
|
mutationFn: ({
|
|
7308
7316
|
id,
|
|
7309
7317
|
selectedSheet,
|
|
@@ -7324,10 +7332,10 @@ var useParsePreview = () => {
|
|
|
7324
7332
|
var use_parse_preview_default = useParsePreview;
|
|
7325
7333
|
|
|
7326
7334
|
// src/hooks/excel/use-upload-file-excel.ts
|
|
7327
|
-
import { useMutation as
|
|
7335
|
+
import { useMutation as useMutation21 } from "@tanstack/react-query";
|
|
7328
7336
|
var useUploadFileExcel = () => {
|
|
7329
7337
|
const { uploadFileExcel } = useExcelService();
|
|
7330
|
-
return
|
|
7338
|
+
return useMutation21({
|
|
7331
7339
|
mutationFn: ({
|
|
7332
7340
|
formData,
|
|
7333
7341
|
service,
|
|
@@ -7342,10 +7350,10 @@ var useUploadFileExcel = () => {
|
|
|
7342
7350
|
var use_upload_file_excel_default = useUploadFileExcel;
|
|
7343
7351
|
|
|
7344
7352
|
// src/hooks/excel/use-upload-id-file.ts
|
|
7345
|
-
import { useMutation as
|
|
7353
|
+
import { useMutation as useMutation22 } from "@tanstack/react-query";
|
|
7346
7354
|
var useUploadIdFile = () => {
|
|
7347
7355
|
const { uploadIdFile } = useExcelService();
|
|
7348
|
-
return
|
|
7356
|
+
return useMutation22({
|
|
7349
7357
|
mutationFn: ({
|
|
7350
7358
|
formData,
|
|
7351
7359
|
service,
|
|
@@ -7360,10 +7368,10 @@ var useUploadIdFile = () => {
|
|
|
7360
7368
|
var use_upload_id_file_default = useUploadIdFile;
|
|
7361
7369
|
|
|
7362
7370
|
// src/hooks/excel/uss-execute-import.ts
|
|
7363
|
-
import { useMutation as
|
|
7371
|
+
import { useMutation as useMutation23 } from "@tanstack/react-query";
|
|
7364
7372
|
var useExecuteImport = () => {
|
|
7365
7373
|
const { executeImport } = useExcelService();
|
|
7366
|
-
return
|
|
7374
|
+
return useMutation23({
|
|
7367
7375
|
mutationFn: ({
|
|
7368
7376
|
fields,
|
|
7369
7377
|
columns,
|
|
@@ -7388,10 +7396,10 @@ var useExecuteImport = () => {
|
|
|
7388
7396
|
var uss_execute_import_default = useExecuteImport;
|
|
7389
7397
|
|
|
7390
7398
|
// src/hooks/form/use-change-status.ts
|
|
7391
|
-
import { useMutation as
|
|
7399
|
+
import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
7392
7400
|
var useChangeStatus = () => {
|
|
7393
7401
|
const { changeStatus } = useFormService();
|
|
7394
|
-
return
|
|
7402
|
+
return useMutation24({
|
|
7395
7403
|
mutationFn: ({ data }) => {
|
|
7396
7404
|
return changeStatus({
|
|
7397
7405
|
data
|
|
@@ -7402,10 +7410,10 @@ var useChangeStatus = () => {
|
|
|
7402
7410
|
var use_change_status_default = useChangeStatus;
|
|
7403
7411
|
|
|
7404
7412
|
// src/hooks/form/use-delete-comment.ts
|
|
7405
|
-
import { useMutation as
|
|
7413
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
7406
7414
|
var useDeleteComment = () => {
|
|
7407
7415
|
const { deleteComment } = useFormService();
|
|
7408
|
-
return
|
|
7416
|
+
return useMutation25({
|
|
7409
7417
|
mutationFn: ({ data }) => deleteComment({
|
|
7410
7418
|
data
|
|
7411
7419
|
})
|
|
@@ -7473,10 +7481,10 @@ var useGetImage = ({
|
|
|
7473
7481
|
var use_get_image_default = useGetImage;
|
|
7474
7482
|
|
|
7475
7483
|
// src/hooks/form/use-send-comment.ts
|
|
7476
|
-
import { useMutation as
|
|
7484
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
7477
7485
|
var useSendComment = () => {
|
|
7478
7486
|
const { sentComment } = useFormService();
|
|
7479
|
-
return
|
|
7487
|
+
return useMutation26({
|
|
7480
7488
|
mutationFn: ({ data }) => sentComment({
|
|
7481
7489
|
data
|
|
7482
7490
|
})
|
|
@@ -7485,10 +7493,10 @@ var useSendComment = () => {
|
|
|
7485
7493
|
var use_send_comment_default = useSendComment;
|
|
7486
7494
|
|
|
7487
7495
|
// src/hooks/form/use-upload-image.ts
|
|
7488
|
-
import { useMutation as
|
|
7496
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
7489
7497
|
var useUploadImage = () => {
|
|
7490
7498
|
const { uploadImage } = useFormService();
|
|
7491
|
-
return
|
|
7499
|
+
return useMutation27({
|
|
7492
7500
|
mutationFn: ({
|
|
7493
7501
|
formData,
|
|
7494
7502
|
service,
|
|
@@ -7503,10 +7511,10 @@ var useUploadImage = () => {
|
|
|
7503
7511
|
var use_upload_image_default = useUploadImage;
|
|
7504
7512
|
|
|
7505
7513
|
// src/hooks/form/use-upload-file.ts
|
|
7506
|
-
import { useMutation as
|
|
7514
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
7507
7515
|
var useUploadFile = () => {
|
|
7508
7516
|
const { uploadFile } = useFormService();
|
|
7509
|
-
return
|
|
7517
|
+
return useMutation28({
|
|
7510
7518
|
mutationFn: ({
|
|
7511
7519
|
formData,
|
|
7512
7520
|
service,
|
|
@@ -7597,10 +7605,10 @@ var useGetExternalTabs = ({
|
|
|
7597
7605
|
var use_get_external_tabs_default = useGetExternalTabs;
|
|
7598
7606
|
|
|
7599
7607
|
// src/hooks/model/use-delete.ts
|
|
7600
|
-
import { useMutation as
|
|
7608
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
7601
7609
|
var useDelete = () => {
|
|
7602
7610
|
const { deleteApi } = useModelService();
|
|
7603
|
-
return
|
|
7611
|
+
return useMutation29({
|
|
7604
7612
|
mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
|
|
7605
7613
|
});
|
|
7606
7614
|
};
|
|
@@ -7656,10 +7664,10 @@ var useGetCurrency = () => {
|
|
|
7656
7664
|
var use_get_currency_default = useGetCurrency;
|
|
7657
7665
|
|
|
7658
7666
|
// src/hooks/model/use-get-detail.ts
|
|
7659
|
-
import { useMutation as
|
|
7667
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
7660
7668
|
var useGetDetail = () => {
|
|
7661
7669
|
const { getDetail } = useModelService();
|
|
7662
|
-
return
|
|
7670
|
+
return useMutation30({
|
|
7663
7671
|
mutationFn: ({
|
|
7664
7672
|
model,
|
|
7665
7673
|
ids,
|
|
@@ -7867,10 +7875,10 @@ var useOdooDataTransform = () => {
|
|
|
7867
7875
|
var use_odoo_data_transform_default = useOdooDataTransform;
|
|
7868
7876
|
|
|
7869
7877
|
// src/hooks/model/use-onchange-form.ts
|
|
7870
|
-
import { useMutation as
|
|
7878
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
7871
7879
|
var useOnChangeForm = () => {
|
|
7872
7880
|
const { onChange } = useModelService();
|
|
7873
|
-
return
|
|
7881
|
+
return useMutation31({
|
|
7874
7882
|
mutationFn: ({
|
|
7875
7883
|
ids,
|
|
7876
7884
|
model,
|
|
@@ -7895,10 +7903,10 @@ var useOnChangeForm = () => {
|
|
|
7895
7903
|
var use_onchange_form_default = useOnChangeForm;
|
|
7896
7904
|
|
|
7897
7905
|
// src/hooks/model/use-save.ts
|
|
7898
|
-
import { useMutation as
|
|
7906
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
7899
7907
|
var useSave = () => {
|
|
7900
7908
|
const { save } = useModelService();
|
|
7901
|
-
return
|
|
7909
|
+
return useMutation32({
|
|
7902
7910
|
mutationFn: ({
|
|
7903
7911
|
ids,
|
|
7904
7912
|
model,
|
|
@@ -7914,20 +7922,20 @@ var useSave = () => {
|
|
|
7914
7922
|
var use_save_default = useSave;
|
|
7915
7923
|
|
|
7916
7924
|
// src/hooks/user/use-get-profile.ts
|
|
7917
|
-
import { useMutation as
|
|
7925
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
7918
7926
|
var useGetProfile = (service, path, extraHeaders) => {
|
|
7919
7927
|
const { getProfile } = useUserService();
|
|
7920
|
-
return
|
|
7928
|
+
return useMutation33({
|
|
7921
7929
|
mutationFn: () => getProfile(service, path, extraHeaders)
|
|
7922
7930
|
});
|
|
7923
7931
|
};
|
|
7924
7932
|
var use_get_profile_default = useGetProfile;
|
|
7925
7933
|
|
|
7926
7934
|
// src/hooks/user/use-get-user.ts
|
|
7927
|
-
import { useMutation as
|
|
7935
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
7928
7936
|
var useGetUser = () => {
|
|
7929
7937
|
const { getUser } = useUserService();
|
|
7930
|
-
return
|
|
7938
|
+
return useMutation34({
|
|
7931
7939
|
mutationFn: ({ id, context }) => getUser({
|
|
7932
7940
|
id,
|
|
7933
7941
|
context
|
|
@@ -7937,10 +7945,10 @@ var useGetUser = () => {
|
|
|
7937
7945
|
var use_get_user_default = useGetUser;
|
|
7938
7946
|
|
|
7939
7947
|
// src/hooks/user/use-switch-locale.ts
|
|
7940
|
-
import { useMutation as
|
|
7948
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
7941
7949
|
var useSwitchLocale = () => {
|
|
7942
7950
|
const { switchUserLocale } = useUserService();
|
|
7943
|
-
return
|
|
7951
|
+
return useMutation35({
|
|
7944
7952
|
mutationFn: ({
|
|
7945
7953
|
data,
|
|
7946
7954
|
service
|
|
@@ -7956,10 +7964,10 @@ var useSwitchLocale = () => {
|
|
|
7956
7964
|
var use_switch_locale_default = useSwitchLocale;
|
|
7957
7965
|
|
|
7958
7966
|
// src/hooks/view/use-button.ts
|
|
7959
|
-
import { useMutation as
|
|
7967
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
7960
7968
|
var useButton = () => {
|
|
7961
7969
|
const { callButton } = useActionService();
|
|
7962
|
-
return
|
|
7970
|
+
return useMutation36({
|
|
7963
7971
|
mutationFn: ({
|
|
7964
7972
|
model,
|
|
7965
7973
|
ids,
|
|
@@ -7983,10 +7991,10 @@ var useButton = () => {
|
|
|
7983
7991
|
var use_button_default = useButton;
|
|
7984
7992
|
|
|
7985
7993
|
// src/hooks/view/use-duplicate-record.ts
|
|
7986
|
-
import { useMutation as
|
|
7994
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
7987
7995
|
var useDuplicateRecord = () => {
|
|
7988
7996
|
const { duplicateRecord } = useActionService();
|
|
7989
|
-
return
|
|
7997
|
+
return useMutation37({
|
|
7990
7998
|
mutationFn: ({
|
|
7991
7999
|
id,
|
|
7992
8000
|
model,
|
|
@@ -8123,10 +8131,10 @@ var useGetMenu = (context, specification, enabled, domain, service) => {
|
|
|
8123
8131
|
var use_get_menu_default = useGetMenu;
|
|
8124
8132
|
|
|
8125
8133
|
// src/hooks/view/use-get-print-report.ts
|
|
8126
|
-
import { useMutation as
|
|
8134
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
8127
8135
|
var useGetPrintReport = () => {
|
|
8128
8136
|
const { getPrintReportName } = useActionService();
|
|
8129
|
-
return
|
|
8137
|
+
return useMutation38({
|
|
8130
8138
|
mutationFn: ({ id }) => getPrintReportName({
|
|
8131
8139
|
id
|
|
8132
8140
|
})
|
|
@@ -8201,10 +8209,10 @@ var useGetView = ({ viewParams, enabled }) => {
|
|
|
8201
8209
|
var use_get_view_default = useGetView;
|
|
8202
8210
|
|
|
8203
8211
|
// src/hooks/view/use-load-action.ts
|
|
8204
|
-
import { useMutation as
|
|
8212
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
8205
8213
|
var useLoadAction = () => {
|
|
8206
8214
|
const { loadAction } = useActionService();
|
|
8207
|
-
return
|
|
8215
|
+
return useMutation39({
|
|
8208
8216
|
mutationFn: ({
|
|
8209
8217
|
idAction,
|
|
8210
8218
|
context,
|
|
@@ -8237,10 +8245,10 @@ var useLoadMessage = () => {
|
|
|
8237
8245
|
var use_load_message_default = useLoadMessage;
|
|
8238
8246
|
|
|
8239
8247
|
// src/hooks/view/use-print.ts
|
|
8240
|
-
import { useMutation as
|
|
8248
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
8241
8249
|
var usePrint = () => {
|
|
8242
8250
|
const { print } = useActionService();
|
|
8243
|
-
return
|
|
8251
|
+
return useMutation40({
|
|
8244
8252
|
mutationFn: ({ id, report, db }) => print({
|
|
8245
8253
|
id,
|
|
8246
8254
|
report,
|
|
@@ -8251,10 +8259,10 @@ var usePrint = () => {
|
|
|
8251
8259
|
var use_print_default = usePrint;
|
|
8252
8260
|
|
|
8253
8261
|
// src/hooks/view/use-remove-row.ts
|
|
8254
|
-
import { useMutation as
|
|
8262
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
8255
8263
|
var useRemoveRow = () => {
|
|
8256
8264
|
const { removeRows } = useActionService();
|
|
8257
|
-
return
|
|
8265
|
+
return useMutation41({
|
|
8258
8266
|
mutationFn: ({
|
|
8259
8267
|
model,
|
|
8260
8268
|
ids,
|
|
@@ -8273,10 +8281,10 @@ var useRemoveRow = () => {
|
|
|
8273
8281
|
var use_remove_row_default = useRemoveRow;
|
|
8274
8282
|
|
|
8275
8283
|
// src/hooks/view/use-resequence.ts
|
|
8276
|
-
import { useMutation as
|
|
8284
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
8277
8285
|
var useGetResequence = () => {
|
|
8278
8286
|
const { getResequence } = useViewService();
|
|
8279
|
-
return
|
|
8287
|
+
return useMutation42({
|
|
8280
8288
|
mutationFn: ({
|
|
8281
8289
|
model,
|
|
8282
8290
|
resIds,
|
|
@@ -8297,10 +8305,10 @@ var useGetResequence = () => {
|
|
|
8297
8305
|
var use_resequence_default = useGetResequence;
|
|
8298
8306
|
|
|
8299
8307
|
// src/hooks/view/use-run-action.ts
|
|
8300
|
-
import { useMutation as
|
|
8308
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
8301
8309
|
var useRunAction = () => {
|
|
8302
8310
|
const { runAction } = useActionService();
|
|
8303
|
-
return
|
|
8311
|
+
return useMutation43({
|
|
8304
8312
|
mutationFn: ({
|
|
8305
8313
|
idAction,
|
|
8306
8314
|
context,
|
|
@@ -8319,10 +8327,10 @@ var useRunAction = () => {
|
|
|
8319
8327
|
var use_run_action_default = useRunAction;
|
|
8320
8328
|
|
|
8321
8329
|
// src/hooks/view/use-signin-sso.ts
|
|
8322
|
-
import { useMutation as
|
|
8330
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
8323
8331
|
var useSignInSSO = () => {
|
|
8324
8332
|
const { signInSSO } = useViewService();
|
|
8325
|
-
return
|
|
8333
|
+
return useMutation44({
|
|
8326
8334
|
mutationFn: ({
|
|
8327
8335
|
redirect_uri,
|
|
8328
8336
|
state,
|
|
@@ -8345,10 +8353,10 @@ var useSignInSSO = () => {
|
|
|
8345
8353
|
var use_signin_sso_default = useSignInSSO;
|
|
8346
8354
|
|
|
8347
8355
|
// src/hooks/view/use-verify-2FA.ts
|
|
8348
|
-
import { useMutation as
|
|
8356
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
8349
8357
|
var useVerify2FA = () => {
|
|
8350
8358
|
const { verify2FA } = useViewService();
|
|
8351
|
-
return
|
|
8359
|
+
return useMutation45({
|
|
8352
8360
|
mutationFn: ({
|
|
8353
8361
|
method,
|
|
8354
8362
|
with_context,
|
|
@@ -8369,10 +8377,10 @@ var useVerify2FA = () => {
|
|
|
8369
8377
|
var use_verify_2FA_default = useVerify2FA;
|
|
8370
8378
|
|
|
8371
8379
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
8372
|
-
import { useMutation as
|
|
8380
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
8373
8381
|
var useGet2FAMethods = () => {
|
|
8374
8382
|
const { get2FAMethods } = useViewService();
|
|
8375
|
-
return
|
|
8383
|
+
return useMutation46({
|
|
8376
8384
|
mutationFn: ({
|
|
8377
8385
|
method,
|
|
8378
8386
|
with_context
|
|
@@ -8387,10 +8395,10 @@ var useGet2FAMethods = () => {
|
|
|
8387
8395
|
var uset_get_2FA_method_default = useGet2FAMethods;
|
|
8388
8396
|
|
|
8389
8397
|
// src/hooks/view/use-grant-access.ts
|
|
8390
|
-
import { useMutation as
|
|
8398
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
8391
8399
|
var useGrantAccess = () => {
|
|
8392
8400
|
const { grantAccess } = useViewService();
|
|
8393
|
-
return
|
|
8401
|
+
return useMutation47({
|
|
8394
8402
|
mutationFn: ({
|
|
8395
8403
|
redirect_uri,
|
|
8396
8404
|
state,
|
|
@@ -8409,10 +8417,10 @@ var useGrantAccess = () => {
|
|
|
8409
8417
|
var use_grant_access_default = useGrantAccess;
|
|
8410
8418
|
|
|
8411
8419
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
8412
|
-
import { useMutation as
|
|
8420
|
+
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
8413
8421
|
var useRemoveTotpSetup = () => {
|
|
8414
8422
|
const { removeTotpSetUp } = useViewService();
|
|
8415
|
-
return
|
|
8423
|
+
return useMutation48({
|
|
8416
8424
|
mutationFn: ({ method, token }) => {
|
|
8417
8425
|
return removeTotpSetUp({
|
|
8418
8426
|
method,
|
|
@@ -8424,10 +8432,10 @@ var useRemoveTotpSetup = () => {
|
|
|
8424
8432
|
var use_remove_totp_setup_default = useRemoveTotpSetup;
|
|
8425
8433
|
|
|
8426
8434
|
// src/hooks/view/use-request-setup-totp.ts
|
|
8427
|
-
import { useMutation as
|
|
8435
|
+
import { useMutation as useMutation49 } from "@tanstack/react-query";
|
|
8428
8436
|
var useRequestSetupTotp = () => {
|
|
8429
8437
|
const { requestSetupTotp } = useViewService();
|
|
8430
|
-
return
|
|
8438
|
+
return useMutation49({
|
|
8431
8439
|
mutationFn: ({ method, token }) => {
|
|
8432
8440
|
return requestSetupTotp({
|
|
8433
8441
|
method,
|
|
@@ -8439,10 +8447,10 @@ var useRequestSetupTotp = () => {
|
|
|
8439
8447
|
var use_request_setup_totp_default = useRequestSetupTotp;
|
|
8440
8448
|
|
|
8441
8449
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
8442
|
-
import { useMutation as
|
|
8450
|
+
import { useMutation as useMutation50 } from "@tanstack/react-query";
|
|
8443
8451
|
var useSettingsWebRead2fa = () => {
|
|
8444
8452
|
const { settingsWebRead2fa } = useViewService();
|
|
8445
|
-
return
|
|
8453
|
+
return useMutation50({
|
|
8446
8454
|
mutationFn: ({
|
|
8447
8455
|
method,
|
|
8448
8456
|
token,
|
|
@@ -8461,10 +8469,10 @@ var useSettingsWebRead2fa = () => {
|
|
|
8461
8469
|
var use_settings_web_read_2fa_default = useSettingsWebRead2fa;
|
|
8462
8470
|
|
|
8463
8471
|
// src/hooks/view/use-verify-totp.ts
|
|
8464
|
-
import { useMutation as
|
|
8472
|
+
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
8465
8473
|
var useVerifyTotp = () => {
|
|
8466
8474
|
const { verifyTotp } = useViewService();
|
|
8467
|
-
return
|
|
8475
|
+
return useMutation51({
|
|
8468
8476
|
mutationFn: ({
|
|
8469
8477
|
method,
|
|
8470
8478
|
action_token,
|
|
@@ -8481,10 +8489,10 @@ var useVerifyTotp = () => {
|
|
|
8481
8489
|
var use_verify_totp_default = useVerifyTotp;
|
|
8482
8490
|
|
|
8483
8491
|
// src/hooks/view/use-gen-serial-number.ts
|
|
8484
|
-
import { useMutation as
|
|
8492
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
8485
8493
|
var useGenSerialNumber = () => {
|
|
8486
8494
|
const { generateSerialNumber } = useActionService();
|
|
8487
|
-
return
|
|
8495
|
+
return useMutation52({
|
|
8488
8496
|
mutationFn: ({
|
|
8489
8497
|
kwargs,
|
|
8490
8498
|
context,
|
|
@@ -8524,10 +8532,10 @@ var useGetNotifications = ({
|
|
|
8524
8532
|
var use_get_notifications_default = useGetNotifications;
|
|
8525
8533
|
|
|
8526
8534
|
// src/hooks/view/use-get-version.ts
|
|
8527
|
-
import { useMutation as
|
|
8535
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
8528
8536
|
var useGetVersion = () => {
|
|
8529
8537
|
const { getVersion } = useViewService();
|
|
8530
|
-
return
|
|
8538
|
+
return useMutation53({
|
|
8531
8539
|
mutationFn: () => {
|
|
8532
8540
|
return getVersion();
|
|
8533
8541
|
}
|
|
@@ -8536,10 +8544,10 @@ var useGetVersion = () => {
|
|
|
8536
8544
|
var use_get_version_default = useGetVersion;
|
|
8537
8545
|
|
|
8538
8546
|
// src/hooks/view/use-get-ward.ts
|
|
8539
|
-
import { useMutation as
|
|
8547
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
8540
8548
|
var useGetWard = () => {
|
|
8541
8549
|
const { getWard } = useViewService();
|
|
8542
|
-
return
|
|
8550
|
+
return useMutation54({
|
|
8543
8551
|
mutationFn: ({
|
|
8544
8552
|
service,
|
|
8545
8553
|
xNode,
|
|
@@ -8556,10 +8564,10 @@ var useGetWard = () => {
|
|
|
8556
8564
|
var use_get_ward_default = useGetWard;
|
|
8557
8565
|
|
|
8558
8566
|
// src/hooks/view/use-get-city.ts
|
|
8559
|
-
import { useMutation as
|
|
8567
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
8560
8568
|
var useGetCity = () => {
|
|
8561
8569
|
const { getCity } = useViewService();
|
|
8562
|
-
return
|
|
8570
|
+
return useMutation55({
|
|
8563
8571
|
mutationFn: ({
|
|
8564
8572
|
service,
|
|
8565
8573
|
xNode,
|
|
@@ -8578,10 +8586,10 @@ var useGetCity = () => {
|
|
|
8578
8586
|
var use_get_city_default = useGetCity;
|
|
8579
8587
|
|
|
8580
8588
|
// src/hooks/view/use-get-country.ts
|
|
8581
|
-
import { useMutation as
|
|
8589
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
8582
8590
|
var useGetCountry = () => {
|
|
8583
8591
|
const { getCountry } = useViewService();
|
|
8584
|
-
return
|
|
8592
|
+
return useMutation56({
|
|
8585
8593
|
mutationFn: ({
|
|
8586
8594
|
service,
|
|
8587
8595
|
xNode,
|
|
@@ -8600,10 +8608,10 @@ var useGetCountry = () => {
|
|
|
8600
8608
|
var use_get_country_default = useGetCountry;
|
|
8601
8609
|
|
|
8602
8610
|
// src/hooks/view/use-get-partner-title.ts
|
|
8603
|
-
import { useMutation as
|
|
8611
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
8604
8612
|
var useGetPartnerTitle = () => {
|
|
8605
8613
|
const { getPartnerTitle } = useViewService();
|
|
8606
|
-
return
|
|
8614
|
+
return useMutation57({
|
|
8607
8615
|
mutationFn: ({
|
|
8608
8616
|
service,
|
|
8609
8617
|
xNode,
|
|
@@ -8658,301 +8666,301 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8658
8666
|
var use_get_data_chart_default = useGetDataChart;
|
|
8659
8667
|
|
|
8660
8668
|
// src/hooks/pos/use-add-entity.ts
|
|
8661
|
-
import { useMutation as
|
|
8669
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
8662
8670
|
var useAddEntity = () => {
|
|
8663
8671
|
const { addEntity } = usePosService();
|
|
8664
|
-
return
|
|
8672
|
+
return useMutation58({
|
|
8665
8673
|
mutationFn: addEntity
|
|
8666
8674
|
});
|
|
8667
8675
|
};
|
|
8668
8676
|
var use_add_entity_default = useAddEntity;
|
|
8669
8677
|
|
|
8670
8678
|
// src/hooks/pos/use-get-a-session.ts
|
|
8671
|
-
import { useMutation as
|
|
8679
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
8672
8680
|
var useGetASession = () => {
|
|
8673
8681
|
const pos = usePosService();
|
|
8674
|
-
return
|
|
8682
|
+
return useMutation59({
|
|
8675
8683
|
mutationFn: pos.getASession
|
|
8676
8684
|
});
|
|
8677
8685
|
};
|
|
8678
8686
|
var use_get_a_session_default = useGetASession;
|
|
8679
8687
|
|
|
8680
8688
|
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
8681
|
-
import { useMutation as
|
|
8689
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
8682
8690
|
var useChangeOrderPreparationState = () => {
|
|
8683
8691
|
const pos = usePosService();
|
|
8684
|
-
return
|
|
8692
|
+
return useMutation60({
|
|
8685
8693
|
mutationFn: pos.changeOrderPreparationState
|
|
8686
8694
|
});
|
|
8687
8695
|
};
|
|
8688
8696
|
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
8689
8697
|
|
|
8690
8698
|
// src/hooks/pos/use-check-payment.ts
|
|
8691
|
-
import { useMutation as
|
|
8699
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
8692
8700
|
var useCheckPayment = () => {
|
|
8693
8701
|
const pos = usePosService();
|
|
8694
|
-
return
|
|
8702
|
+
return useMutation61({
|
|
8695
8703
|
mutationFn: pos.checkPayment
|
|
8696
8704
|
});
|
|
8697
8705
|
};
|
|
8698
8706
|
var use_check_payment_default = useCheckPayment;
|
|
8699
8707
|
|
|
8700
8708
|
// src/hooks/pos/use-create-e-invoice.ts
|
|
8701
|
-
import { useMutation as
|
|
8709
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
8702
8710
|
var useCreateEInvoice = () => {
|
|
8703
8711
|
const pos = usePosService();
|
|
8704
|
-
return
|
|
8712
|
+
return useMutation62({
|
|
8705
8713
|
mutationFn: pos.createEInvoice
|
|
8706
8714
|
});
|
|
8707
8715
|
};
|
|
8708
8716
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8709
8717
|
|
|
8710
8718
|
// src/hooks/pos/use-create-entity.ts
|
|
8711
|
-
import { useMutation as
|
|
8719
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
8712
8720
|
var useCreateEntity = () => {
|
|
8713
8721
|
const pos = usePosService();
|
|
8714
|
-
return
|
|
8722
|
+
return useMutation63({
|
|
8715
8723
|
mutationFn: pos.createEntity
|
|
8716
8724
|
});
|
|
8717
8725
|
};
|
|
8718
8726
|
var use_create_entity_default = useCreateEntity;
|
|
8719
8727
|
|
|
8720
8728
|
// src/hooks/pos/use-create-pos-config.ts
|
|
8721
|
-
import { useMutation as
|
|
8729
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
8722
8730
|
var useCreatePosConfig = () => {
|
|
8723
8731
|
const pos = usePosService();
|
|
8724
|
-
return
|
|
8732
|
+
return useMutation64({
|
|
8725
8733
|
mutationFn: pos.createPosConfig
|
|
8726
8734
|
});
|
|
8727
8735
|
};
|
|
8728
8736
|
var use_create_pos_config_default = useCreatePosConfig;
|
|
8729
8737
|
|
|
8730
8738
|
// src/hooks/pos/use-create-session.ts
|
|
8731
|
-
import { useMutation as
|
|
8739
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
8732
8740
|
var useCreateSession = () => {
|
|
8733
8741
|
const pos = usePosService();
|
|
8734
|
-
return
|
|
8742
|
+
return useMutation65({
|
|
8735
8743
|
mutationFn: pos.createSession
|
|
8736
8744
|
});
|
|
8737
8745
|
};
|
|
8738
8746
|
var use_create_session_default = useCreateSession;
|
|
8739
8747
|
|
|
8740
8748
|
// src/hooks/pos/use-delete-entity.ts
|
|
8741
|
-
import { useMutation as
|
|
8749
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
8742
8750
|
var useDeleteEntity = () => {
|
|
8743
8751
|
const pos = usePosService();
|
|
8744
|
-
return
|
|
8752
|
+
return useMutation66({
|
|
8745
8753
|
mutationFn: pos.deleteEntity
|
|
8746
8754
|
});
|
|
8747
8755
|
};
|
|
8748
8756
|
var use_delete_entity_default = useDeleteEntity;
|
|
8749
8757
|
|
|
8750
8758
|
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
8751
|
-
import { useMutation as
|
|
8759
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
8752
8760
|
var useGeneratePaymentQrInfo = () => {
|
|
8753
8761
|
const pos = usePosService();
|
|
8754
|
-
return
|
|
8762
|
+
return useMutation67({
|
|
8755
8763
|
mutationFn: pos.generatePaymentQRInfo
|
|
8756
8764
|
});
|
|
8757
8765
|
};
|
|
8758
8766
|
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8759
8767
|
|
|
8760
8768
|
// src/hooks/pos/use-get-current-user.ts
|
|
8761
|
-
import { useMutation as
|
|
8769
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
8762
8770
|
var useGetCurrentUser = () => {
|
|
8763
8771
|
const pos = usePosService();
|
|
8764
|
-
return
|
|
8772
|
+
return useMutation68({
|
|
8765
8773
|
mutationFn: pos.getCurrentUser
|
|
8766
8774
|
});
|
|
8767
8775
|
};
|
|
8768
8776
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8769
8777
|
|
|
8770
8778
|
// src/hooks/pos/use-get-list.ts
|
|
8771
|
-
import { useMutation as
|
|
8779
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
8772
8780
|
var useGetList = () => {
|
|
8773
8781
|
const pos = usePosService();
|
|
8774
|
-
return
|
|
8782
|
+
return useMutation69({
|
|
8775
8783
|
mutationFn: pos.getList
|
|
8776
8784
|
});
|
|
8777
8785
|
};
|
|
8778
8786
|
var use_get_list_default = useGetList;
|
|
8779
8787
|
|
|
8780
8788
|
// src/hooks/pos/use-get-order-line.ts
|
|
8781
|
-
import { useMutation as
|
|
8789
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
8782
8790
|
var useGetOrderLine = () => {
|
|
8783
8791
|
const pos = usePosService();
|
|
8784
|
-
return
|
|
8792
|
+
return useMutation70({
|
|
8785
8793
|
mutationFn: pos.getOrderLine
|
|
8786
8794
|
});
|
|
8787
8795
|
};
|
|
8788
8796
|
var use_get_order_line_default = useGetOrderLine;
|
|
8789
8797
|
|
|
8790
8798
|
// src/hooks/pos/use-get-pin-code.ts
|
|
8791
|
-
import { useMutation as
|
|
8799
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
8792
8800
|
var useGetPinCode = () => {
|
|
8793
8801
|
const pos = usePosService();
|
|
8794
|
-
return
|
|
8802
|
+
return useMutation71({
|
|
8795
8803
|
mutationFn: pos.getPinCode
|
|
8796
8804
|
});
|
|
8797
8805
|
};
|
|
8798
8806
|
var use_get_pin_code_default = useGetPinCode;
|
|
8799
8807
|
|
|
8800
8808
|
// src/hooks/pos/use-get-pos.ts
|
|
8801
|
-
import { useMutation as
|
|
8809
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8802
8810
|
var useGetPos = () => {
|
|
8803
8811
|
const pos = usePosService();
|
|
8804
|
-
return
|
|
8812
|
+
return useMutation72({
|
|
8805
8813
|
mutationFn: pos.getPOS
|
|
8806
8814
|
});
|
|
8807
8815
|
};
|
|
8808
8816
|
var use_get_pos_default = useGetPos;
|
|
8809
8817
|
|
|
8810
8818
|
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
8811
|
-
import { useMutation as
|
|
8819
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8812
8820
|
var useGetPreparationDisplayData = () => {
|
|
8813
8821
|
const pos = usePosService();
|
|
8814
|
-
return
|
|
8822
|
+
return useMutation73({
|
|
8815
8823
|
mutationFn: pos.getPreparationDisplayData
|
|
8816
8824
|
});
|
|
8817
8825
|
};
|
|
8818
8826
|
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
8819
8827
|
|
|
8820
8828
|
// src/hooks/pos/use-get-product-image.ts
|
|
8821
|
-
import { useMutation as
|
|
8829
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8822
8830
|
var useGetProductImage = () => {
|
|
8823
8831
|
const pos = usePosService();
|
|
8824
|
-
return
|
|
8832
|
+
return useMutation74({
|
|
8825
8833
|
mutationFn: pos.getProductImage
|
|
8826
8834
|
});
|
|
8827
8835
|
};
|
|
8828
8836
|
var use_get_product_image_default = useGetProductImage;
|
|
8829
8837
|
|
|
8830
8838
|
// src/hooks/pos/use-handle-close-session.ts
|
|
8831
|
-
import { useMutation as
|
|
8839
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8832
8840
|
var useHandleCloseSession = () => {
|
|
8833
8841
|
const pos = usePosService();
|
|
8834
|
-
return
|
|
8842
|
+
return useMutation75({
|
|
8835
8843
|
mutationFn: pos.handleCloseSession
|
|
8836
8844
|
});
|
|
8837
8845
|
};
|
|
8838
8846
|
var use_handle_close_session_default = useHandleCloseSession;
|
|
8839
8847
|
|
|
8840
8848
|
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
8841
|
-
import { useMutation as
|
|
8849
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8842
8850
|
var useHandleClosingDetailSession = () => {
|
|
8843
8851
|
const pos = usePosService();
|
|
8844
|
-
return
|
|
8852
|
+
return useMutation76({
|
|
8845
8853
|
mutationFn: pos.handleClosingDetailSession
|
|
8846
8854
|
});
|
|
8847
8855
|
};
|
|
8848
8856
|
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
8849
8857
|
|
|
8850
8858
|
// src/hooks/pos/use-handle-closing-session.ts
|
|
8851
|
-
import { useMutation as
|
|
8859
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8852
8860
|
var useHandleClosingSession = () => {
|
|
8853
8861
|
const pos = usePosService();
|
|
8854
|
-
return
|
|
8862
|
+
return useMutation77({
|
|
8855
8863
|
mutationFn: pos.handleClosingSession
|
|
8856
8864
|
});
|
|
8857
8865
|
};
|
|
8858
8866
|
var use_handle_closing_session_default = useHandleClosingSession;
|
|
8859
8867
|
|
|
8860
8868
|
// src/hooks/pos/use-load-data-pos-session.ts
|
|
8861
|
-
import { useMutation as
|
|
8869
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
8862
8870
|
var useLoadDataPosSession = () => {
|
|
8863
8871
|
const pos = usePosService();
|
|
8864
8872
|
const { env } = useEnv();
|
|
8865
|
-
return
|
|
8873
|
+
return useMutation78({
|
|
8866
8874
|
mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
|
|
8867
8875
|
});
|
|
8868
8876
|
};
|
|
8869
8877
|
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
8870
8878
|
|
|
8871
8879
|
// src/hooks/pos/use-manage-onchange.ts
|
|
8872
|
-
import { useMutation as
|
|
8880
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8873
8881
|
var useManageOnChange = () => {
|
|
8874
8882
|
const pos = usePosService();
|
|
8875
|
-
return
|
|
8883
|
+
return useMutation79({
|
|
8876
8884
|
mutationFn: pos.manageOnChange
|
|
8877
8885
|
});
|
|
8878
8886
|
};
|
|
8879
8887
|
var use_manage_onchange_default = useManageOnChange;
|
|
8880
8888
|
|
|
8881
8889
|
// src/hooks/pos/use-manage-session.ts
|
|
8882
|
-
import { useMutation as
|
|
8890
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8883
8891
|
var useManageSession = () => {
|
|
8884
8892
|
const pos = usePosService();
|
|
8885
|
-
return
|
|
8893
|
+
return useMutation80({
|
|
8886
8894
|
mutationFn: pos.manageSession
|
|
8887
8895
|
});
|
|
8888
8896
|
};
|
|
8889
8897
|
var use_manage_session_default = useManageSession;
|
|
8890
8898
|
|
|
8891
8899
|
// src/hooks/pos/use-process-order.ts
|
|
8892
|
-
import { useMutation as
|
|
8900
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8893
8901
|
var useProcessOrder = () => {
|
|
8894
8902
|
const pos = usePosService();
|
|
8895
|
-
return
|
|
8903
|
+
return useMutation81({
|
|
8896
8904
|
mutationFn: pos.processOrder
|
|
8897
8905
|
});
|
|
8898
8906
|
};
|
|
8899
8907
|
var use_process_order_default = useProcessOrder;
|
|
8900
8908
|
|
|
8901
8909
|
// src/hooks/pos/use-save-pin-code.ts
|
|
8902
|
-
import { useMutation as
|
|
8910
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
8903
8911
|
var useSavePinCode = () => {
|
|
8904
8912
|
const pos = usePosService();
|
|
8905
|
-
return
|
|
8913
|
+
return useMutation82({
|
|
8906
8914
|
mutationFn: pos.savePinCode
|
|
8907
8915
|
});
|
|
8908
8916
|
};
|
|
8909
8917
|
var use_save_pin_code_default = useSavePinCode;
|
|
8910
8918
|
|
|
8911
8919
|
// src/hooks/pos/use-search-journal.ts
|
|
8912
|
-
import { useMutation as
|
|
8920
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
8913
8921
|
var useSearchJournal = () => {
|
|
8914
8922
|
const pos = usePosService();
|
|
8915
|
-
return
|
|
8923
|
+
return useMutation83({
|
|
8916
8924
|
mutationFn: pos.searchJournal
|
|
8917
8925
|
});
|
|
8918
8926
|
};
|
|
8919
8927
|
var use_search_journal_default = useSearchJournal;
|
|
8920
8928
|
|
|
8921
8929
|
// src/hooks/pos/use-update-closed-session.ts
|
|
8922
|
-
import { useMutation as
|
|
8930
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
8923
8931
|
var useUpdateClosedSession = () => {
|
|
8924
8932
|
const pos = usePosService();
|
|
8925
|
-
return
|
|
8933
|
+
return useMutation84({
|
|
8926
8934
|
mutationFn: pos.updateClosedSession
|
|
8927
8935
|
});
|
|
8928
8936
|
};
|
|
8929
8937
|
var use_update_closed_session_default = useUpdateClosedSession;
|
|
8930
8938
|
|
|
8931
8939
|
// src/hooks/pos/use-update-entity.ts
|
|
8932
|
-
import { useMutation as
|
|
8940
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
8933
8941
|
var useUpdateEntity = () => {
|
|
8934
8942
|
const pos = usePosService();
|
|
8935
|
-
return
|
|
8943
|
+
return useMutation85({
|
|
8936
8944
|
mutationFn: pos.updateEntity
|
|
8937
8945
|
});
|
|
8938
8946
|
};
|
|
8939
8947
|
var use_update_entity_default = useUpdateEntity;
|
|
8940
8948
|
|
|
8941
8949
|
// src/hooks/pos/use-update-order-status.ts
|
|
8942
|
-
import { useMutation as
|
|
8950
|
+
import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
8943
8951
|
var useUpdateOrderStatus = () => {
|
|
8944
8952
|
const pos = usePosService();
|
|
8945
|
-
return
|
|
8953
|
+
return useMutation86({
|
|
8946
8954
|
mutationFn: pos.updateOrderStatus
|
|
8947
8955
|
});
|
|
8948
8956
|
};
|
|
8949
8957
|
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8950
8958
|
|
|
8951
8959
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
8952
|
-
import { useMutation as
|
|
8960
|
+
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
8953
8961
|
var useCompleteCurrentStage = () => {
|
|
8954
8962
|
const pos = usePosService();
|
|
8955
|
-
return
|
|
8963
|
+
return useMutation87({
|
|
8956
8964
|
mutationFn: pos.completeCurrentStage
|
|
8957
8965
|
});
|
|
8958
8966
|
};
|
|
@@ -9077,7 +9085,8 @@ var ServiceProvider = ({
|
|
|
9077
9085
|
useGetWard: use_get_ward_default,
|
|
9078
9086
|
useGetCountry: use_get_country_default,
|
|
9079
9087
|
useGetPartnerTitle: use_get_partner_title_default,
|
|
9080
|
-
useCompleteCurrentStage: use_complete_current_stage_default
|
|
9088
|
+
useCompleteCurrentStage: use_complete_current_stage_default,
|
|
9089
|
+
useLoginSupa: use_login_supa_default
|
|
9081
9090
|
};
|
|
9082
9091
|
return /* @__PURE__ */ jsx7(ServiceContext.Provider, { value: services, children });
|
|
9083
9092
|
};
|