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