@fctc/interface-logic 4.8.10 → 4.9.1
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 +6 -4
- package/dist/hooks.d.ts +6 -4
- package/dist/hooks.js +131 -119
- package/dist/hooks.mjs +125 -114
- package/dist/provider.d.mts +3 -2
- package/dist/provider.d.ts +3 -2
- package/dist/provider.js +130 -119
- package/dist/provider.mjs +126 -115
- package/dist/services.d.mts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +61 -58
- package/dist/services.mjs +59 -56
- package/package.json +92 -92
package/dist/hooks.mjs
CHANGED
|
@@ -3200,7 +3200,7 @@ function useAuthService() {
|
|
|
3200
3200
|
},
|
|
3201
3201
|
[env]
|
|
3202
3202
|
);
|
|
3203
|
-
const
|
|
3203
|
+
const loginTenantUser = useCallback3(
|
|
3204
3204
|
async (body) => {
|
|
3205
3205
|
if (!supabase) {
|
|
3206
3206
|
return {
|
|
@@ -3438,7 +3438,7 @@ function useAuthService() {
|
|
|
3438
3438
|
);
|
|
3439
3439
|
return {
|
|
3440
3440
|
login,
|
|
3441
|
-
|
|
3441
|
+
loginTenantUser,
|
|
3442
3442
|
forgotPassword,
|
|
3443
3443
|
forgotPasswordSSO,
|
|
3444
3444
|
resetPassword,
|
|
@@ -7229,20 +7229,20 @@ var useLoginSocial = () => {
|
|
|
7229
7229
|
};
|
|
7230
7230
|
var use_login_socical_default = useLoginSocial;
|
|
7231
7231
|
|
|
7232
|
-
// src/hooks/auth/use-login-
|
|
7232
|
+
// src/hooks/auth/use-login-tenant-user.ts
|
|
7233
7233
|
import { useMutation as useMutation7 } from "@tanstack/react-query";
|
|
7234
|
-
var
|
|
7235
|
-
const {
|
|
7234
|
+
var useLoginTenantUser = () => {
|
|
7235
|
+
const { loginTenantUser } = useAuthService();
|
|
7236
7236
|
return useMutation7({
|
|
7237
7237
|
mutationFn: (data) => {
|
|
7238
|
-
return
|
|
7238
|
+
return loginTenantUser({
|
|
7239
7239
|
email: data.email,
|
|
7240
7240
|
password: data.password
|
|
7241
7241
|
});
|
|
7242
7242
|
}
|
|
7243
7243
|
});
|
|
7244
7244
|
};
|
|
7245
|
-
var
|
|
7245
|
+
var use_login_tenant_user_default = useLoginTenantUser;
|
|
7246
7246
|
|
|
7247
7247
|
// src/hooks/auth/use-reset-password.ts
|
|
7248
7248
|
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
|
@@ -8817,6 +8817,16 @@ var useGetPartnerTitle = () => {
|
|
|
8817
8817
|
};
|
|
8818
8818
|
var use_get_partner_title_default = useGetPartnerTitle;
|
|
8819
8819
|
|
|
8820
|
+
// src/hooks/view/use-action-server-home.ts
|
|
8821
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
8822
|
+
var useActionServerHome = () => {
|
|
8823
|
+
const { actionServerHome } = useActionService();
|
|
8824
|
+
return useMutation58({
|
|
8825
|
+
mutationFn: () => actionServerHome()
|
|
8826
|
+
});
|
|
8827
|
+
};
|
|
8828
|
+
var use_action_server_home_default = useActionServerHome;
|
|
8829
|
+
|
|
8820
8830
|
// src/hooks/chart/use-read-group.ts
|
|
8821
8831
|
import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
8822
8832
|
var useReadGroup = (services, xNode, body, enabled) => {
|
|
@@ -8854,536 +8864,537 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8854
8864
|
var use_get_data_chart_default = useGetDataChart;
|
|
8855
8865
|
|
|
8856
8866
|
// src/hooks/pos/use-add-entity.ts
|
|
8857
|
-
import { useMutation as
|
|
8867
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
8858
8868
|
var useAddEntity = () => {
|
|
8859
8869
|
const { addEntity } = usePosService();
|
|
8860
|
-
return
|
|
8870
|
+
return useMutation59({
|
|
8861
8871
|
mutationFn: addEntity
|
|
8862
8872
|
});
|
|
8863
8873
|
};
|
|
8864
8874
|
var use_add_entity_default = useAddEntity;
|
|
8865
8875
|
|
|
8866
8876
|
// src/hooks/pos/use-get-a-session.ts
|
|
8867
|
-
import { useMutation as
|
|
8877
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
8868
8878
|
var useGetASession = () => {
|
|
8869
8879
|
const pos = usePosService();
|
|
8870
|
-
return
|
|
8880
|
+
return useMutation60({
|
|
8871
8881
|
mutationFn: pos.getASession
|
|
8872
8882
|
});
|
|
8873
8883
|
};
|
|
8874
8884
|
var use_get_a_session_default = useGetASession;
|
|
8875
8885
|
|
|
8876
8886
|
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
8877
|
-
import { useMutation as
|
|
8887
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
8878
8888
|
var useChangeOrderPreparationState = () => {
|
|
8879
8889
|
const pos = usePosService();
|
|
8880
|
-
return
|
|
8890
|
+
return useMutation61({
|
|
8881
8891
|
mutationFn: pos.changeOrderPreparationState
|
|
8882
8892
|
});
|
|
8883
8893
|
};
|
|
8884
8894
|
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
8885
8895
|
|
|
8886
8896
|
// src/hooks/pos/use-check-payment.ts
|
|
8887
|
-
import { useMutation as
|
|
8897
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
8888
8898
|
var useCheckPayment = () => {
|
|
8889
8899
|
const pos = usePosService();
|
|
8890
|
-
return
|
|
8900
|
+
return useMutation62({
|
|
8891
8901
|
mutationFn: pos.checkPayment
|
|
8892
8902
|
});
|
|
8893
8903
|
};
|
|
8894
8904
|
var use_check_payment_default = useCheckPayment;
|
|
8895
8905
|
|
|
8896
8906
|
// src/hooks/pos/use-create-e-invoice.ts
|
|
8897
|
-
import { useMutation as
|
|
8907
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
8898
8908
|
var useCreateEInvoice = () => {
|
|
8899
8909
|
const pos = usePosService();
|
|
8900
|
-
return
|
|
8910
|
+
return useMutation63({
|
|
8901
8911
|
mutationFn: pos.createEInvoice
|
|
8902
8912
|
});
|
|
8903
8913
|
};
|
|
8904
8914
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8905
8915
|
|
|
8906
8916
|
// src/hooks/pos/use-create-entity.ts
|
|
8907
|
-
import { useMutation as
|
|
8917
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
8908
8918
|
var useCreateEntity = () => {
|
|
8909
8919
|
const pos = usePosService();
|
|
8910
|
-
return
|
|
8920
|
+
return useMutation64({
|
|
8911
8921
|
mutationFn: pos.createEntity
|
|
8912
8922
|
});
|
|
8913
8923
|
};
|
|
8914
8924
|
var use_create_entity_default = useCreateEntity;
|
|
8915
8925
|
|
|
8916
8926
|
// src/hooks/pos/use-create-pos-config.ts
|
|
8917
|
-
import { useMutation as
|
|
8927
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
8918
8928
|
var useCreatePosConfig = () => {
|
|
8919
8929
|
const pos = usePosService();
|
|
8920
|
-
return
|
|
8930
|
+
return useMutation65({
|
|
8921
8931
|
mutationFn: pos.createPosConfig
|
|
8922
8932
|
});
|
|
8923
8933
|
};
|
|
8924
8934
|
var use_create_pos_config_default = useCreatePosConfig;
|
|
8925
8935
|
|
|
8926
8936
|
// src/hooks/pos/use-create-session.ts
|
|
8927
|
-
import { useMutation as
|
|
8937
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
8928
8938
|
var useCreateSession = () => {
|
|
8929
8939
|
const pos = usePosService();
|
|
8930
|
-
return
|
|
8940
|
+
return useMutation66({
|
|
8931
8941
|
mutationFn: pos.createSession
|
|
8932
8942
|
});
|
|
8933
8943
|
};
|
|
8934
8944
|
var use_create_session_default = useCreateSession;
|
|
8935
8945
|
|
|
8936
8946
|
// src/hooks/pos/use-delete-entity.ts
|
|
8937
|
-
import { useMutation as
|
|
8947
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
8938
8948
|
var useDeleteEntity = () => {
|
|
8939
8949
|
const pos = usePosService();
|
|
8940
|
-
return
|
|
8950
|
+
return useMutation67({
|
|
8941
8951
|
mutationFn: pos.deleteEntity
|
|
8942
8952
|
});
|
|
8943
8953
|
};
|
|
8944
8954
|
var use_delete_entity_default = useDeleteEntity;
|
|
8945
8955
|
|
|
8946
8956
|
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
8947
|
-
import { useMutation as
|
|
8957
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
8948
8958
|
var useGeneratePaymentQrInfo = () => {
|
|
8949
8959
|
const pos = usePosService();
|
|
8950
|
-
return
|
|
8960
|
+
return useMutation68({
|
|
8951
8961
|
mutationFn: pos.generatePaymentQRInfo
|
|
8952
8962
|
});
|
|
8953
8963
|
};
|
|
8954
8964
|
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8955
8965
|
|
|
8956
8966
|
// src/hooks/pos/use-get-current-user.ts
|
|
8957
|
-
import { useMutation as
|
|
8967
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
8958
8968
|
var useGetCurrentUser = () => {
|
|
8959
8969
|
const pos = usePosService();
|
|
8960
|
-
return
|
|
8970
|
+
return useMutation69({
|
|
8961
8971
|
mutationFn: pos.getCurrentUser
|
|
8962
8972
|
});
|
|
8963
8973
|
};
|
|
8964
8974
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8965
8975
|
|
|
8966
8976
|
// src/hooks/pos/use-get-list.ts
|
|
8967
|
-
import { useMutation as
|
|
8977
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
8968
8978
|
var useGetList = () => {
|
|
8969
8979
|
const pos = usePosService();
|
|
8970
|
-
return
|
|
8980
|
+
return useMutation70({
|
|
8971
8981
|
mutationFn: pos.getList
|
|
8972
8982
|
});
|
|
8973
8983
|
};
|
|
8974
8984
|
var use_get_list_default = useGetList;
|
|
8975
8985
|
|
|
8976
8986
|
// src/hooks/pos/use-get-order-line.ts
|
|
8977
|
-
import { useMutation as
|
|
8987
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
8978
8988
|
var useGetOrderLine = () => {
|
|
8979
8989
|
const pos = usePosService();
|
|
8980
|
-
return
|
|
8990
|
+
return useMutation71({
|
|
8981
8991
|
mutationFn: pos.getOrderLine
|
|
8982
8992
|
});
|
|
8983
8993
|
};
|
|
8984
8994
|
var use_get_order_line_default = useGetOrderLine;
|
|
8985
8995
|
|
|
8986
8996
|
// src/hooks/pos/use-get-pin-code.ts
|
|
8987
|
-
import { useMutation as
|
|
8997
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8988
8998
|
var useGetPinCode = () => {
|
|
8989
8999
|
const pos = usePosService();
|
|
8990
|
-
return
|
|
9000
|
+
return useMutation72({
|
|
8991
9001
|
mutationFn: pos.getPinCode
|
|
8992
9002
|
});
|
|
8993
9003
|
};
|
|
8994
9004
|
var use_get_pin_code_default = useGetPinCode;
|
|
8995
9005
|
|
|
8996
9006
|
// src/hooks/pos/use-get-pos.ts
|
|
8997
|
-
import { useMutation as
|
|
9007
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8998
9008
|
var useGetPos = () => {
|
|
8999
9009
|
const pos = usePosService();
|
|
9000
|
-
return
|
|
9010
|
+
return useMutation73({
|
|
9001
9011
|
mutationFn: pos.getPOS
|
|
9002
9012
|
});
|
|
9003
9013
|
};
|
|
9004
9014
|
var use_get_pos_default = useGetPos;
|
|
9005
9015
|
|
|
9006
9016
|
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
9007
|
-
import { useMutation as
|
|
9017
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
9008
9018
|
var useGetPreparationDisplayData = () => {
|
|
9009
9019
|
const pos = usePosService();
|
|
9010
|
-
return
|
|
9020
|
+
return useMutation74({
|
|
9011
9021
|
mutationFn: pos.getPreparationDisplayData
|
|
9012
9022
|
});
|
|
9013
9023
|
};
|
|
9014
9024
|
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
9015
9025
|
|
|
9016
9026
|
// src/hooks/pos/use-get-product-image.ts
|
|
9017
|
-
import { useMutation as
|
|
9027
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
9018
9028
|
var useGetProductImage = () => {
|
|
9019
9029
|
const pos = usePosService();
|
|
9020
|
-
return
|
|
9030
|
+
return useMutation75({
|
|
9021
9031
|
mutationFn: pos.getProductImage
|
|
9022
9032
|
});
|
|
9023
9033
|
};
|
|
9024
9034
|
var use_get_product_image_default = useGetProductImage;
|
|
9025
9035
|
|
|
9026
9036
|
// src/hooks/pos/use-handle-close-session.ts
|
|
9027
|
-
import { useMutation as
|
|
9037
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
9028
9038
|
var useHandleCloseSession = () => {
|
|
9029
9039
|
const pos = usePosService();
|
|
9030
|
-
return
|
|
9040
|
+
return useMutation76({
|
|
9031
9041
|
mutationFn: pos.handleCloseSession
|
|
9032
9042
|
});
|
|
9033
9043
|
};
|
|
9034
9044
|
var use_handle_close_session_default = useHandleCloseSession;
|
|
9035
9045
|
|
|
9036
9046
|
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
9037
|
-
import { useMutation as
|
|
9047
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
9038
9048
|
var useHandleClosingDetailSession = () => {
|
|
9039
9049
|
const pos = usePosService();
|
|
9040
|
-
return
|
|
9050
|
+
return useMutation77({
|
|
9041
9051
|
mutationFn: pos.handleClosingDetailSession
|
|
9042
9052
|
});
|
|
9043
9053
|
};
|
|
9044
9054
|
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
9045
9055
|
|
|
9046
9056
|
// src/hooks/pos/use-handle-closing-session.ts
|
|
9047
|
-
import { useMutation as
|
|
9057
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
9048
9058
|
var useHandleClosingSession = () => {
|
|
9049
9059
|
const pos = usePosService();
|
|
9050
|
-
return
|
|
9060
|
+
return useMutation78({
|
|
9051
9061
|
mutationFn: pos.handleClosingSession
|
|
9052
9062
|
});
|
|
9053
9063
|
};
|
|
9054
9064
|
var use_handle_closing_session_default = useHandleClosingSession;
|
|
9055
9065
|
|
|
9056
9066
|
// src/hooks/pos/use-load-data-pos-session.ts
|
|
9057
|
-
import { useMutation as
|
|
9067
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
9058
9068
|
var useLoadDataPosSession = () => {
|
|
9059
9069
|
const pos = usePosService();
|
|
9060
9070
|
const { env } = useEnv();
|
|
9061
|
-
return
|
|
9071
|
+
return useMutation79({
|
|
9062
9072
|
mutationFn: env.isSupaMode ? pos.loadDataPosSessionSupabase : pos.loadDataPosSession
|
|
9063
9073
|
});
|
|
9064
9074
|
};
|
|
9065
9075
|
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
9066
9076
|
|
|
9067
9077
|
// src/hooks/pos/use-manage-onchange.ts
|
|
9068
|
-
import { useMutation as
|
|
9078
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
9069
9079
|
var useManageOnChange = () => {
|
|
9070
9080
|
const pos = usePosService();
|
|
9071
|
-
return
|
|
9081
|
+
return useMutation80({
|
|
9072
9082
|
mutationFn: pos.manageOnChange
|
|
9073
9083
|
});
|
|
9074
9084
|
};
|
|
9075
9085
|
var use_manage_onchange_default = useManageOnChange;
|
|
9076
9086
|
|
|
9077
9087
|
// src/hooks/pos/use-manage-session.ts
|
|
9078
|
-
import { useMutation as
|
|
9088
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
9079
9089
|
var useManageSession = () => {
|
|
9080
9090
|
const pos = usePosService();
|
|
9081
|
-
return
|
|
9091
|
+
return useMutation81({
|
|
9082
9092
|
mutationFn: pos.manageSession
|
|
9083
9093
|
});
|
|
9084
9094
|
};
|
|
9085
9095
|
var use_manage_session_default = useManageSession;
|
|
9086
9096
|
|
|
9087
9097
|
// src/hooks/pos/use-process-order.ts
|
|
9088
|
-
import { useMutation as
|
|
9098
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
9089
9099
|
var useProcessOrder = () => {
|
|
9090
9100
|
const pos = usePosService();
|
|
9091
|
-
return
|
|
9101
|
+
return useMutation82({
|
|
9092
9102
|
mutationFn: pos.processOrder
|
|
9093
9103
|
});
|
|
9094
9104
|
};
|
|
9095
9105
|
var use_process_order_default = useProcessOrder;
|
|
9096
9106
|
|
|
9097
9107
|
// src/hooks/pos/use-save-pin-code.ts
|
|
9098
|
-
import { useMutation as
|
|
9108
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
9099
9109
|
var useSavePinCode = () => {
|
|
9100
9110
|
const pos = usePosService();
|
|
9101
|
-
return
|
|
9111
|
+
return useMutation83({
|
|
9102
9112
|
mutationFn: pos.savePinCode
|
|
9103
9113
|
});
|
|
9104
9114
|
};
|
|
9105
9115
|
var use_save_pin_code_default = useSavePinCode;
|
|
9106
9116
|
|
|
9107
9117
|
// src/hooks/pos/use-search-journal.ts
|
|
9108
|
-
import { useMutation as
|
|
9118
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
9109
9119
|
var useSearchJournal = () => {
|
|
9110
9120
|
const pos = usePosService();
|
|
9111
|
-
return
|
|
9121
|
+
return useMutation84({
|
|
9112
9122
|
mutationFn: pos.searchJournal
|
|
9113
9123
|
});
|
|
9114
9124
|
};
|
|
9115
9125
|
var use_search_journal_default = useSearchJournal;
|
|
9116
9126
|
|
|
9117
9127
|
// src/hooks/pos/use-update-closed-session.ts
|
|
9118
|
-
import { useMutation as
|
|
9128
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
9119
9129
|
var useUpdateClosedSession = () => {
|
|
9120
9130
|
const pos = usePosService();
|
|
9121
|
-
return
|
|
9131
|
+
return useMutation85({
|
|
9122
9132
|
mutationFn: pos.updateClosedSession
|
|
9123
9133
|
});
|
|
9124
9134
|
};
|
|
9125
9135
|
var use_update_closed_session_default = useUpdateClosedSession;
|
|
9126
9136
|
|
|
9127
9137
|
// src/hooks/pos/use-update-entity.ts
|
|
9128
|
-
import { useMutation as
|
|
9138
|
+
import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
9129
9139
|
var useUpdateEntity = () => {
|
|
9130
9140
|
const pos = usePosService();
|
|
9131
|
-
return
|
|
9141
|
+
return useMutation86({
|
|
9132
9142
|
mutationFn: pos.updateEntity
|
|
9133
9143
|
});
|
|
9134
9144
|
};
|
|
9135
9145
|
var use_update_entity_default = useUpdateEntity;
|
|
9136
9146
|
|
|
9137
9147
|
// src/hooks/pos/use-update-order-status.ts
|
|
9138
|
-
import { useMutation as
|
|
9148
|
+
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
9139
9149
|
var useUpdateOrderStatus = () => {
|
|
9140
9150
|
const pos = usePosService();
|
|
9141
|
-
return
|
|
9151
|
+
return useMutation87({
|
|
9142
9152
|
mutationFn: pos.updateOrderStatus
|
|
9143
9153
|
});
|
|
9144
9154
|
};
|
|
9145
9155
|
var use_update_order_status_default = useUpdateOrderStatus;
|
|
9146
9156
|
|
|
9147
9157
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
9148
|
-
import { useMutation as
|
|
9158
|
+
import { useMutation as useMutation88 } from "@tanstack/react-query";
|
|
9149
9159
|
var useCompleteCurrentStage = () => {
|
|
9150
9160
|
const pos = usePosService();
|
|
9151
|
-
return
|
|
9161
|
+
return useMutation88({
|
|
9152
9162
|
mutationFn: pos.completeCurrentStage
|
|
9153
9163
|
});
|
|
9154
9164
|
};
|
|
9155
9165
|
var use_complete_current_stage_default = useCompleteCurrentStage;
|
|
9156
9166
|
|
|
9157
9167
|
// src/hooks/pos/supabase/use-add-floor.ts
|
|
9158
|
-
import { useMutation as
|
|
9168
|
+
import { useMutation as useMutation89 } from "@tanstack/react-query";
|
|
9159
9169
|
var useAddFloor = () => {
|
|
9160
9170
|
const { addFloorSupabase } = addFloorSupabaseService();
|
|
9161
|
-
return
|
|
9171
|
+
return useMutation89({
|
|
9162
9172
|
mutationFn: addFloorSupabase
|
|
9163
9173
|
});
|
|
9164
9174
|
};
|
|
9165
9175
|
var use_add_floor_default = useAddFloor;
|
|
9166
9176
|
|
|
9167
9177
|
// src/hooks/pos/supabase/use-add-table.ts
|
|
9168
|
-
import { useMutation as
|
|
9178
|
+
import { useMutation as useMutation90 } from "@tanstack/react-query";
|
|
9169
9179
|
var useAddTable = () => {
|
|
9170
9180
|
const { addTableSupabase } = addTableSupabaseService();
|
|
9171
|
-
return
|
|
9181
|
+
return useMutation90({
|
|
9172
9182
|
mutationFn: addTableSupabase
|
|
9173
9183
|
});
|
|
9174
9184
|
};
|
|
9175
9185
|
var use_add_table_default = useAddTable;
|
|
9176
9186
|
|
|
9177
9187
|
// src/hooks/pos/supabase/use-update-floor.ts
|
|
9178
|
-
import { useMutation as
|
|
9188
|
+
import { useMutation as useMutation91 } from "@tanstack/react-query";
|
|
9179
9189
|
var useUpdateFloor = () => {
|
|
9180
9190
|
const { updateFloorSupabase } = updateFloorSupabaseService();
|
|
9181
|
-
return
|
|
9191
|
+
return useMutation91({
|
|
9182
9192
|
mutationFn: updateFloorSupabase
|
|
9183
9193
|
});
|
|
9184
9194
|
};
|
|
9185
9195
|
var use_update_floor_default = useUpdateFloor;
|
|
9186
9196
|
|
|
9187
9197
|
// src/hooks/pos/supabase/use-update-table.ts
|
|
9188
|
-
import { useMutation as
|
|
9198
|
+
import { useMutation as useMutation92 } from "@tanstack/react-query";
|
|
9189
9199
|
var useUpdateTable = () => {
|
|
9190
9200
|
const { updateTableSupabase } = updateTableSupabaseService();
|
|
9191
|
-
return
|
|
9201
|
+
return useMutation92({
|
|
9192
9202
|
mutationFn: updateTableSupabase
|
|
9193
9203
|
});
|
|
9194
9204
|
};
|
|
9195
9205
|
var use_update_table_default = useUpdateTable;
|
|
9196
9206
|
|
|
9197
9207
|
// src/hooks/pos/supabase/use-delete-floor.ts
|
|
9198
|
-
import { useMutation as
|
|
9208
|
+
import { useMutation as useMutation93 } from "@tanstack/react-query";
|
|
9199
9209
|
var useDeleteFloor = () => {
|
|
9200
9210
|
const { deleteFloorSupabase } = deleteFloorSupabaseService();
|
|
9201
|
-
return
|
|
9211
|
+
return useMutation93({
|
|
9202
9212
|
mutationFn: deleteFloorSupabase
|
|
9203
9213
|
});
|
|
9204
9214
|
};
|
|
9205
9215
|
var use_delete_floor_default = useDeleteFloor;
|
|
9206
9216
|
|
|
9207
9217
|
// src/hooks/pos/supabase/use-delete-table.ts
|
|
9208
|
-
import { useMutation as
|
|
9218
|
+
import { useMutation as useMutation94 } from "@tanstack/react-query";
|
|
9209
9219
|
var useDeleteTable = () => {
|
|
9210
9220
|
const { deleteTableSupabase } = deleteTableSupabaseService();
|
|
9211
|
-
return
|
|
9221
|
+
return useMutation94({
|
|
9212
9222
|
mutationFn: deleteTableSupabase
|
|
9213
9223
|
});
|
|
9214
9224
|
};
|
|
9215
9225
|
var use_delete_table_default = useDeleteTable;
|
|
9216
9226
|
|
|
9217
9227
|
// src/hooks/pos/supabase/use-create-order.ts
|
|
9218
|
-
import { useMutation as
|
|
9228
|
+
import { useMutation as useMutation95 } from "@tanstack/react-query";
|
|
9219
9229
|
var useCreateOrder = () => {
|
|
9220
9230
|
const { createOrderSupabase } = createOrderSupabaseService();
|
|
9221
|
-
return
|
|
9231
|
+
return useMutation95({
|
|
9222
9232
|
mutationFn: createOrderSupabase
|
|
9223
9233
|
});
|
|
9224
9234
|
};
|
|
9225
9235
|
var use_create_order_default = useCreateOrder;
|
|
9226
9236
|
|
|
9227
9237
|
// src/hooks/pos/supabase/use-add-category.ts
|
|
9228
|
-
import { useMutation as
|
|
9238
|
+
import { useMutation as useMutation96 } from "@tanstack/react-query";
|
|
9229
9239
|
var useAddCategory = () => {
|
|
9230
9240
|
const { addCategorySupabase } = addCategorySupabaseService();
|
|
9231
|
-
return
|
|
9241
|
+
return useMutation96({
|
|
9232
9242
|
mutationFn: addCategorySupabase
|
|
9233
9243
|
});
|
|
9234
9244
|
};
|
|
9235
9245
|
var use_add_category_default = useAddCategory;
|
|
9236
9246
|
|
|
9237
9247
|
// src/hooks/pos/supabase/use-add-product-to-order.ts
|
|
9238
|
-
import { useMutation as
|
|
9248
|
+
import { useMutation as useMutation97 } from "@tanstack/react-query";
|
|
9239
9249
|
var useAddProductToOrder = () => {
|
|
9240
9250
|
const { addProductToOrderSupabase } = addProductToOrderSupabaseService();
|
|
9241
|
-
return
|
|
9251
|
+
return useMutation97({
|
|
9242
9252
|
mutationFn: addProductToOrderSupabase
|
|
9243
9253
|
});
|
|
9244
9254
|
};
|
|
9245
9255
|
var use_add_product_to_order_default = useAddProductToOrder;
|
|
9246
9256
|
|
|
9247
9257
|
// src/hooks/pos/supabase/use-update-order-total-amount.ts
|
|
9248
|
-
import { useMutation as
|
|
9258
|
+
import { useMutation as useMutation98 } from "@tanstack/react-query";
|
|
9249
9259
|
var useUpdateOrderTotalAmount = () => {
|
|
9250
9260
|
const { updateOrderTotalAmountSupabase } = updateOrderTotalAmountSupabaseService();
|
|
9251
|
-
return
|
|
9261
|
+
return useMutation98({
|
|
9252
9262
|
mutationFn: updateOrderTotalAmountSupabase
|
|
9253
9263
|
});
|
|
9254
9264
|
};
|
|
9255
9265
|
var use_update_order_total_amount_default = useUpdateOrderTotalAmount;
|
|
9256
9266
|
|
|
9257
9267
|
// src/hooks/pos/supabase/use-update-order-line.ts
|
|
9258
|
-
import { useMutation as
|
|
9268
|
+
import { useMutation as useMutation99 } from "@tanstack/react-query";
|
|
9259
9269
|
var useUpdateOrderLine = () => {
|
|
9260
9270
|
const { updateOrderLineSupabase } = updateOrderLineSupabaseService();
|
|
9261
|
-
return
|
|
9271
|
+
return useMutation99({
|
|
9262
9272
|
mutationFn: updateOrderLineSupabase
|
|
9263
9273
|
});
|
|
9264
9274
|
};
|
|
9265
9275
|
var use_update_order_line_default = useUpdateOrderLine;
|
|
9266
9276
|
|
|
9267
9277
|
// src/hooks/pos/supabase/use-update-order.ts
|
|
9268
|
-
import { useMutation as
|
|
9278
|
+
import { useMutation as useMutation100 } from "@tanstack/react-query";
|
|
9269
9279
|
var useUpdateOrder = () => {
|
|
9270
9280
|
const { updateOrderSupabase } = updateOrderSupabaseService();
|
|
9271
|
-
return
|
|
9281
|
+
return useMutation100({
|
|
9272
9282
|
mutationFn: updateOrderSupabase
|
|
9273
9283
|
});
|
|
9274
9284
|
};
|
|
9275
9285
|
var use_update_order_default = useUpdateOrder;
|
|
9276
9286
|
|
|
9277
9287
|
// src/hooks/pos/supabase/use-delete-order.ts
|
|
9278
|
-
import { useMutation as
|
|
9288
|
+
import { useMutation as useMutation101 } from "@tanstack/react-query";
|
|
9279
9289
|
var useDeleteOrder = () => {
|
|
9280
9290
|
const { deleteOrderSupabase } = deleteOrderSupabaseService();
|
|
9281
|
-
return
|
|
9291
|
+
return useMutation101({
|
|
9282
9292
|
mutationFn: deleteOrderSupabase
|
|
9283
9293
|
});
|
|
9284
9294
|
};
|
|
9285
9295
|
var use_delete_order_default = useDeleteOrder;
|
|
9286
9296
|
|
|
9287
9297
|
// src/hooks/pos/supabase/use-delete-order-line.ts
|
|
9288
|
-
import { useMutation as
|
|
9298
|
+
import { useMutation as useMutation102 } from "@tanstack/react-query";
|
|
9289
9299
|
var useDeleteOrderLine = () => {
|
|
9290
9300
|
const { deleteOrderLineSupabase } = deleteOrderLineSupabaseService();
|
|
9291
|
-
return
|
|
9301
|
+
return useMutation102({
|
|
9292
9302
|
mutationFn: deleteOrderLineSupabase
|
|
9293
9303
|
});
|
|
9294
9304
|
};
|
|
9295
9305
|
var use_delete_order_line_default = useDeleteOrderLine;
|
|
9296
9306
|
|
|
9297
9307
|
// src/hooks/pos/supabase/use-add-product.ts
|
|
9298
|
-
import { useMutation as
|
|
9308
|
+
import { useMutation as useMutation103 } from "@tanstack/react-query";
|
|
9299
9309
|
var useAddProduct = () => {
|
|
9300
9310
|
const { addProductSupabase } = addProductSupabaseService();
|
|
9301
|
-
return
|
|
9311
|
+
return useMutation103({
|
|
9302
9312
|
mutationFn: addProductSupabase
|
|
9303
9313
|
});
|
|
9304
9314
|
};
|
|
9305
9315
|
var use_add_product_default = useAddProduct;
|
|
9306
9316
|
|
|
9307
9317
|
// src/hooks/pos/use-get-functional-modules.ts
|
|
9308
|
-
import { useMutation as
|
|
9318
|
+
import { useMutation as useMutation104 } from "@tanstack/react-query";
|
|
9309
9319
|
var useGetFunctionalModules = () => {
|
|
9310
9320
|
const pos = usePosService();
|
|
9311
|
-
return
|
|
9321
|
+
return useMutation104({
|
|
9312
9322
|
mutationFn: pos.getFunctionalModules
|
|
9313
9323
|
});
|
|
9314
9324
|
};
|
|
9315
9325
|
var use_get_functional_modules_default = useGetFunctionalModules;
|
|
9316
9326
|
|
|
9317
9327
|
// src/hooks/pos/supabase/use-add-payment-method.ts
|
|
9318
|
-
import { useMutation as
|
|
9328
|
+
import { useMutation as useMutation105 } from "@tanstack/react-query";
|
|
9319
9329
|
var useAddPaymentMethod = () => {
|
|
9320
9330
|
const { addPaymentMethodSupabase } = addPaymentMethodSupabaseService();
|
|
9321
|
-
return
|
|
9331
|
+
return useMutation105({
|
|
9322
9332
|
mutationFn: addPaymentMethodSupabase
|
|
9323
9333
|
});
|
|
9324
9334
|
};
|
|
9325
9335
|
var use_add_payment_method_default = useAddPaymentMethod;
|
|
9326
9336
|
|
|
9327
9337
|
// src/hooks/pos/supabase/use-update-session-payment-methods.ts
|
|
9328
|
-
import { useMutation as
|
|
9338
|
+
import { useMutation as useMutation106 } from "@tanstack/react-query";
|
|
9329
9339
|
var useUpdateSessionPaymentMethods = () => {
|
|
9330
9340
|
const { updateSessionPaymentMethodsSupabase } = updateSessionPaymentMethodsSupabaseService();
|
|
9331
|
-
return
|
|
9341
|
+
return useMutation106({
|
|
9332
9342
|
mutationFn: updateSessionPaymentMethodsSupabase
|
|
9333
9343
|
});
|
|
9334
9344
|
};
|
|
9335
9345
|
var use_update_session_payment_methods_default = useUpdateSessionPaymentMethods;
|
|
9336
9346
|
|
|
9337
9347
|
// src/hooks/pos/supabase/use-create-payment.ts
|
|
9338
|
-
import { useMutation as
|
|
9348
|
+
import { useMutation as useMutation107 } from "@tanstack/react-query";
|
|
9339
9349
|
var useCreatePayment = () => {
|
|
9340
9350
|
const { createPaymentSupabase } = createPaymentSupabaseService();
|
|
9341
|
-
return
|
|
9351
|
+
return useMutation107({
|
|
9342
9352
|
mutationFn: createPaymentSupabase
|
|
9343
9353
|
});
|
|
9344
9354
|
};
|
|
9345
9355
|
var use_create_payment_default = useCreatePayment;
|
|
9346
9356
|
|
|
9347
9357
|
// src/hooks/pos/supabase/use-create-customer.ts
|
|
9348
|
-
import { useMutation as
|
|
9358
|
+
import { useMutation as useMutation108 } from "@tanstack/react-query";
|
|
9349
9359
|
var useCreateCustomer = () => {
|
|
9350
9360
|
const { createCustomerSupabase } = createCustomerSupabaseService();
|
|
9351
|
-
return
|
|
9361
|
+
return useMutation108({
|
|
9352
9362
|
mutationFn: createCustomerSupabase
|
|
9353
9363
|
});
|
|
9354
9364
|
};
|
|
9355
9365
|
var use_create_customer_default = useCreateCustomer;
|
|
9356
9366
|
|
|
9357
9367
|
// src/hooks/pos/supabase/use-update-customer.ts
|
|
9358
|
-
import { useMutation as
|
|
9368
|
+
import { useMutation as useMutation109 } from "@tanstack/react-query";
|
|
9359
9369
|
var useUpdateCustomer = () => {
|
|
9360
9370
|
const { updateCustomerSupabase } = updateCustomerSupabaseService();
|
|
9361
|
-
return
|
|
9371
|
+
return useMutation109({
|
|
9362
9372
|
mutationFn: updateCustomerSupabase
|
|
9363
9373
|
});
|
|
9364
9374
|
};
|
|
9365
9375
|
var use_update_customer_default = useUpdateCustomer;
|
|
9366
9376
|
|
|
9367
9377
|
// src/hooks/pos/supabase/use-delete-customer.ts
|
|
9368
|
-
import { useMutation as
|
|
9378
|
+
import { useMutation as useMutation110 } from "@tanstack/react-query";
|
|
9369
9379
|
var useDeleteCustomer = () => {
|
|
9370
9380
|
const { deleteCustomerSupabase } = deleteCustomerSupabaseService();
|
|
9371
|
-
return
|
|
9381
|
+
return useMutation110({
|
|
9372
9382
|
mutationFn: deleteCustomerSupabase
|
|
9373
9383
|
});
|
|
9374
9384
|
};
|
|
9375
9385
|
var use_delete_customer_default = useDeleteCustomer;
|
|
9376
9386
|
|
|
9377
9387
|
// src/hooks/pos/supabase/use-supa-upload-image.ts
|
|
9378
|
-
import { useMutation as
|
|
9388
|
+
import { useMutation as useMutation111 } from "@tanstack/react-query";
|
|
9379
9389
|
var useSupaUploadImage = () => {
|
|
9380
9390
|
const { uploadImageSupabase } = uploadImageSupabaseService();
|
|
9381
|
-
return
|
|
9391
|
+
return useMutation111({
|
|
9382
9392
|
mutationFn: ({ file, tenantId }) => uploadImageSupabase(file, tenantId)
|
|
9383
9393
|
});
|
|
9384
9394
|
};
|
|
9385
9395
|
var use_supa_upload_image_default = useSupaUploadImage;
|
|
9386
9396
|
export {
|
|
9397
|
+
use_action_server_home_default as useActionServerHome,
|
|
9387
9398
|
use_add_category_default as useAddCategory,
|
|
9388
9399
|
use_add_entity_default as useAddEntity,
|
|
9389
9400
|
use_add_floor_default as useAddFloor,
|
|
@@ -9478,7 +9489,7 @@ export {
|
|
|
9478
9489
|
use_load_message_default as useLoadMessage,
|
|
9479
9490
|
use_login_credential_default as useLoginCredential,
|
|
9480
9491
|
use_login_socical_default as useLoginSocial,
|
|
9481
|
-
|
|
9492
|
+
use_login_tenant_user_default as useLoginTenantUser,
|
|
9482
9493
|
use_logout_default as useLogout,
|
|
9483
9494
|
use_manage_onchange_default as useManageOnChange,
|
|
9484
9495
|
use_manage_session_default as useManageSession,
|