@fctc/interface-logic 4.2.5 → 4.2.7
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 +130 -129
- package/dist/hooks.d.ts +130 -129
- package/dist/hooks.js +1047 -1206
- package/dist/hooks.mjs +1039 -1198
- package/dist/provider.d.mts +2 -2
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +1062 -1221
- package/dist/provider.mjs +1049 -1208
- package/dist/services.d.mts +166 -123
- package/dist/services.d.ts +166 -123
- package/dist/services.js +2244 -1973
- package/dist/services.mjs +2237 -1967
- package/package.json +90 -90
package/dist/hooks.mjs
CHANGED
|
@@ -4818,38 +4818,15 @@ function useViewService() {
|
|
|
4818
4818
|
},
|
|
4819
4819
|
[env]
|
|
4820
4820
|
);
|
|
4821
|
-
const
|
|
4821
|
+
const getNotifications = useCallback10(
|
|
4822
4822
|
async ({
|
|
4823
|
-
model,
|
|
4824
|
-
args,
|
|
4825
|
-
domain,
|
|
4826
4823
|
service,
|
|
4827
|
-
xNode
|
|
4824
|
+
xNode,
|
|
4825
|
+
body
|
|
4828
4826
|
}) => {
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
args,
|
|
4833
|
-
kwargs: {
|
|
4834
|
-
domain: [domain],
|
|
4835
|
-
specification: {
|
|
4836
|
-
name: {},
|
|
4837
|
-
user_id: {},
|
|
4838
|
-
config_id: {},
|
|
4839
|
-
start_at: {},
|
|
4840
|
-
stop_at: {},
|
|
4841
|
-
sequence_number: {},
|
|
4842
|
-
login_number: {},
|
|
4843
|
-
payment_method_ids: {},
|
|
4844
|
-
state: {},
|
|
4845
|
-
update_stock_at_closing: {},
|
|
4846
|
-
cash_register_balance_start: {}
|
|
4847
|
-
}
|
|
4848
|
-
}
|
|
4849
|
-
};
|
|
4850
|
-
return env?.requests.post(
|
|
4851
|
-
"/call" /* CALL_PATH */,
|
|
4852
|
-
jsonData,
|
|
4827
|
+
return env?.requests?.post(
|
|
4828
|
+
`${"/mail/data" /* GET_NOTIFICATION */}`,
|
|
4829
|
+
body,
|
|
4853
4830
|
{
|
|
4854
4831
|
headers: {
|
|
4855
4832
|
"Content-Type": "application/json",
|
|
@@ -4861,22 +4838,22 @@ function useViewService() {
|
|
|
4861
4838
|
},
|
|
4862
4839
|
[env]
|
|
4863
4840
|
);
|
|
4864
|
-
const
|
|
4865
|
-
({
|
|
4866
|
-
model,
|
|
4867
|
-
domain,
|
|
4868
|
-
values,
|
|
4841
|
+
const getCountry = useCallback10(
|
|
4842
|
+
async ({
|
|
4869
4843
|
service,
|
|
4870
|
-
xNode
|
|
4844
|
+
xNode,
|
|
4845
|
+
ids,
|
|
4846
|
+
kwargs
|
|
4871
4847
|
}) => {
|
|
4872
|
-
const
|
|
4873
|
-
model
|
|
4874
|
-
|
|
4875
|
-
|
|
4848
|
+
const body = {
|
|
4849
|
+
model: "res.country" /* COUNTRY */,
|
|
4850
|
+
ids,
|
|
4851
|
+
method: "get_data_select" /* GET_DATA_SELECT */,
|
|
4852
|
+
kwargs
|
|
4876
4853
|
};
|
|
4877
|
-
return env?.requests
|
|
4878
|
-
"/
|
|
4879
|
-
|
|
4854
|
+
return env?.requests?.post(
|
|
4855
|
+
"/call" /* CALL_PATH */,
|
|
4856
|
+
body,
|
|
4880
4857
|
{
|
|
4881
4858
|
headers: {
|
|
4882
4859
|
"Content-Type": "application/json",
|
|
@@ -4888,26 +4865,22 @@ function useViewService() {
|
|
|
4888
4865
|
},
|
|
4889
4866
|
[env]
|
|
4890
4867
|
);
|
|
4891
|
-
const
|
|
4892
|
-
({
|
|
4893
|
-
|
|
4894
|
-
method,
|
|
4895
|
-
ids,
|
|
4896
|
-
args,
|
|
4897
|
-
kwargs,
|
|
4868
|
+
const getCity = useCallback10(
|
|
4869
|
+
async ({
|
|
4870
|
+
service,
|
|
4898
4871
|
xNode,
|
|
4899
|
-
|
|
4872
|
+
ids,
|
|
4873
|
+
kwargs
|
|
4900
4874
|
}) => {
|
|
4901
|
-
const
|
|
4902
|
-
model
|
|
4903
|
-
method,
|
|
4875
|
+
const body = {
|
|
4876
|
+
model: "res.country.state" /* COUNTRY_STATE */,
|
|
4904
4877
|
ids,
|
|
4905
|
-
|
|
4878
|
+
method: "get_data_select" /* GET_DATA_SELECT */,
|
|
4906
4879
|
kwargs
|
|
4907
4880
|
};
|
|
4908
|
-
return env?.requests
|
|
4881
|
+
return env?.requests?.post(
|
|
4909
4882
|
"/call" /* CALL_PATH */,
|
|
4910
|
-
|
|
4883
|
+
body,
|
|
4911
4884
|
{
|
|
4912
4885
|
headers: {
|
|
4913
4886
|
"Content-Type": "application/json",
|
|
@@ -4919,24 +4892,20 @@ function useViewService() {
|
|
|
4919
4892
|
},
|
|
4920
4893
|
[env]
|
|
4921
4894
|
);
|
|
4922
|
-
const
|
|
4923
|
-
({
|
|
4924
|
-
|
|
4925
|
-
method,
|
|
4926
|
-
ids,
|
|
4927
|
-
kwargs,
|
|
4895
|
+
const getWard = useCallback10(
|
|
4896
|
+
async ({
|
|
4897
|
+
service,
|
|
4928
4898
|
xNode,
|
|
4929
|
-
|
|
4899
|
+
kwargs
|
|
4930
4900
|
}) => {
|
|
4931
|
-
const
|
|
4932
|
-
model
|
|
4933
|
-
method
|
|
4934
|
-
ids,
|
|
4901
|
+
const body = {
|
|
4902
|
+
model: "res.country.ward" /* COUNTRY_WARD */,
|
|
4903
|
+
method: "get_data_select" /* GET_DATA_SELECT */,
|
|
4935
4904
|
kwargs
|
|
4936
4905
|
};
|
|
4937
|
-
return env?.requests
|
|
4906
|
+
return env?.requests?.post(
|
|
4938
4907
|
"/call" /* CALL_PATH */,
|
|
4939
|
-
|
|
4908
|
+
body,
|
|
4940
4909
|
{
|
|
4941
4910
|
headers: {
|
|
4942
4911
|
"Content-Type": "application/json",
|
|
@@ -4948,25 +4917,22 @@ function useViewService() {
|
|
|
4948
4917
|
},
|
|
4949
4918
|
[env]
|
|
4950
4919
|
);
|
|
4951
|
-
const
|
|
4952
|
-
({
|
|
4953
|
-
|
|
4954
|
-
configId,
|
|
4920
|
+
const getPartnerTitle = useCallback10(
|
|
4921
|
+
async ({
|
|
4922
|
+
service,
|
|
4955
4923
|
xNode,
|
|
4956
|
-
|
|
4924
|
+
kwargs,
|
|
4925
|
+
withContext
|
|
4957
4926
|
}) => {
|
|
4958
|
-
const
|
|
4959
|
-
model
|
|
4960
|
-
method: "
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
config_id: configId
|
|
4964
|
-
}
|
|
4965
|
-
]
|
|
4927
|
+
const body = {
|
|
4928
|
+
model: "res.partner.title" /* RES_PARTNER_TITLE */,
|
|
4929
|
+
method: "get_data_select" /* GET_DATA_SELECT */,
|
|
4930
|
+
kwargs,
|
|
4931
|
+
with_context: withContext
|
|
4966
4932
|
};
|
|
4967
|
-
return env?.requests
|
|
4933
|
+
return env?.requests?.post(
|
|
4968
4934
|
"/call" /* CALL_PATH */,
|
|
4969
|
-
|
|
4935
|
+
body,
|
|
4970
4936
|
{
|
|
4971
4937
|
headers: {
|
|
4972
4938
|
"Content-Type": "application/json",
|
|
@@ -4978,47 +4944,115 @@ function useViewService() {
|
|
|
4978
4944
|
},
|
|
4979
4945
|
[env]
|
|
4980
4946
|
);
|
|
4981
|
-
|
|
4982
|
-
|
|
4947
|
+
return {
|
|
4948
|
+
getView,
|
|
4949
|
+
getMenu,
|
|
4950
|
+
getActionDetail,
|
|
4951
|
+
getResequence,
|
|
4952
|
+
getSelectionItem,
|
|
4953
|
+
loadMessages,
|
|
4954
|
+
getVersion,
|
|
4955
|
+
grantAccess,
|
|
4956
|
+
removeTotpSetUp,
|
|
4957
|
+
requestSetupTotp,
|
|
4958
|
+
settingsWebRead2fa,
|
|
4959
|
+
signInSSO,
|
|
4960
|
+
verify2FA,
|
|
4961
|
+
get2FAMethods,
|
|
4962
|
+
verifyTotp,
|
|
4963
|
+
getNotifications,
|
|
4964
|
+
getCountry,
|
|
4965
|
+
getCity,
|
|
4966
|
+
getWard,
|
|
4967
|
+
getPartnerTitle
|
|
4968
|
+
};
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
// src/services/dashboard-service/index.ts
|
|
4972
|
+
import { useCallback as useCallback11 } from "react";
|
|
4973
|
+
function useDashboardService() {
|
|
4974
|
+
const { env } = useEnv();
|
|
4975
|
+
const readGroup = useCallback11(
|
|
4976
|
+
async ({
|
|
4977
|
+
service,
|
|
4978
|
+
xNode,
|
|
4979
|
+
body
|
|
4980
|
+
}) => {
|
|
4981
|
+
return env.requests.post(
|
|
4982
|
+
"/read_group" /* READ_GROUP */,
|
|
4983
|
+
body,
|
|
4984
|
+
{
|
|
4985
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
4986
|
+
},
|
|
4987
|
+
service
|
|
4988
|
+
);
|
|
4989
|
+
},
|
|
4990
|
+
[env]
|
|
4991
|
+
);
|
|
4992
|
+
const getDataChart = useCallback11(
|
|
4993
|
+
async ({
|
|
4994
|
+
service,
|
|
4995
|
+
xNode,
|
|
4996
|
+
body,
|
|
4997
|
+
path,
|
|
4998
|
+
method = "POST"
|
|
4999
|
+
}) => {
|
|
5000
|
+
const headers = {
|
|
5001
|
+
"Content-Type": "application/json",
|
|
5002
|
+
"X-Node": xNode
|
|
5003
|
+
};
|
|
5004
|
+
if (method === "GET") {
|
|
5005
|
+
return env.requests.get(
|
|
5006
|
+
path,
|
|
5007
|
+
{
|
|
5008
|
+
headers
|
|
5009
|
+
},
|
|
5010
|
+
service
|
|
5011
|
+
);
|
|
5012
|
+
}
|
|
5013
|
+
return env.requests.post(
|
|
5014
|
+
path,
|
|
5015
|
+
body,
|
|
5016
|
+
{
|
|
5017
|
+
headers
|
|
5018
|
+
},
|
|
5019
|
+
service
|
|
5020
|
+
);
|
|
5021
|
+
},
|
|
5022
|
+
[env]
|
|
5023
|
+
);
|
|
5024
|
+
return { readGroup, getDataChart };
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5027
|
+
// src/services/pos-service/get-a-session.ts
|
|
5028
|
+
import { useCallback as useCallback12 } from "react";
|
|
5029
|
+
var getASessionService = (env) => {
|
|
5030
|
+
const getASession = useCallback12(
|
|
5031
|
+
async ({
|
|
4983
5032
|
model,
|
|
4984
5033
|
args,
|
|
4985
5034
|
domain,
|
|
4986
|
-
|
|
4987
|
-
|
|
5035
|
+
service,
|
|
5036
|
+
xNode
|
|
4988
5037
|
}) => {
|
|
4989
5038
|
const jsonData = {
|
|
4990
5039
|
model,
|
|
4991
5040
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4992
5041
|
args,
|
|
4993
5042
|
kwargs: {
|
|
4994
|
-
domain,
|
|
5043
|
+
domain: [domain],
|
|
4995
5044
|
specification: {
|
|
4996
|
-
cash_control: {},
|
|
4997
|
-
current_session_id: {
|
|
4998
|
-
fields: {
|
|
4999
|
-
display_name: {}
|
|
5000
|
-
}
|
|
5001
|
-
},
|
|
5002
|
-
current_session_state: {},
|
|
5003
|
-
pos_session_state: {},
|
|
5004
|
-
pos_session_duration: {},
|
|
5005
|
-
currency_id: {
|
|
5006
|
-
fields: {
|
|
5007
|
-
display_name: {}
|
|
5008
|
-
}
|
|
5009
|
-
},
|
|
5010
5045
|
name: {},
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
},
|
|
5020
|
-
|
|
5021
|
-
module_pos_restaurant: {}
|
|
5046
|
+
user_id: {},
|
|
5047
|
+
config_id: {},
|
|
5048
|
+
start_at: {},
|
|
5049
|
+
stop_at: {},
|
|
5050
|
+
sequence_number: {},
|
|
5051
|
+
login_number: {},
|
|
5052
|
+
payment_method_ids: {},
|
|
5053
|
+
state: {},
|
|
5054
|
+
update_stock_at_closing: {},
|
|
5055
|
+
cash_register_balance_start: {}
|
|
5022
5056
|
}
|
|
5023
5057
|
}
|
|
5024
5058
|
};
|
|
@@ -5036,20 +5070,28 @@ function useViewService() {
|
|
|
5036
5070
|
},
|
|
5037
5071
|
[env]
|
|
5038
5072
|
);
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5073
|
+
return {
|
|
5074
|
+
getASession
|
|
5075
|
+
};
|
|
5076
|
+
};
|
|
5077
|
+
|
|
5078
|
+
// src/services/pos-service/add-entity.ts
|
|
5079
|
+
import { useCallback as useCallback13 } from "react";
|
|
5080
|
+
var addEntityService = (env) => {
|
|
5081
|
+
const addEntity = useCallback13(
|
|
5082
|
+
({
|
|
5083
|
+
model,
|
|
5084
|
+
values,
|
|
5043
5085
|
xNode,
|
|
5044
|
-
service
|
|
5086
|
+
service,
|
|
5087
|
+
isCreateEndpoint = false
|
|
5045
5088
|
}) => {
|
|
5046
5089
|
const jsonData = {
|
|
5047
5090
|
model,
|
|
5048
|
-
|
|
5049
|
-
args
|
|
5091
|
+
values
|
|
5050
5092
|
};
|
|
5051
5093
|
return env?.requests.post(
|
|
5052
|
-
"/call" /* CALL_PATH */,
|
|
5094
|
+
isCreateEndpoint ? "/create" /* CREATE_PATH */ : "/call" /* CALL_PATH */,
|
|
5053
5095
|
jsonData,
|
|
5054
5096
|
{
|
|
5055
5097
|
headers: {
|
|
@@ -5062,25 +5104,30 @@ function useViewService() {
|
|
|
5062
5104
|
},
|
|
5063
5105
|
[env]
|
|
5064
5106
|
);
|
|
5065
|
-
|
|
5107
|
+
return {
|
|
5108
|
+
addEntity
|
|
5109
|
+
};
|
|
5110
|
+
};
|
|
5111
|
+
|
|
5112
|
+
// src/services/pos-service/change-order-preparation-state.ts
|
|
5113
|
+
import { useCallback as useCallback14 } from "react";
|
|
5114
|
+
var changOrderPreparationStateService = (env) => {
|
|
5115
|
+
const changeOrderPreparationState = useCallback14(
|
|
5066
5116
|
({
|
|
5067
|
-
|
|
5068
|
-
|
|
5117
|
+
orderId,
|
|
5118
|
+
stageId,
|
|
5119
|
+
preparationDisplayId,
|
|
5069
5120
|
xNode,
|
|
5070
|
-
service
|
|
5071
|
-
specification,
|
|
5072
|
-
offset,
|
|
5073
|
-
limit
|
|
5121
|
+
service
|
|
5074
5122
|
}) => {
|
|
5075
5123
|
const jsonData = {
|
|
5076
|
-
model
|
|
5077
|
-
method: "
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
})
|
|
5124
|
+
model: "pos_preparation_display.order" /* POS_PREPARATION_ORDER */,
|
|
5125
|
+
method: "change_order_stage" /* CHANGE_ORDER_STAGE */,
|
|
5126
|
+
ids: orderId,
|
|
5127
|
+
kwargs: {
|
|
5128
|
+
stage_id: stageId,
|
|
5129
|
+
preparation_display_id: preparationDisplayId
|
|
5130
|
+
}
|
|
5084
5131
|
};
|
|
5085
5132
|
return env?.requests.post(
|
|
5086
5133
|
"/call" /* CALL_PATH */,
|
|
@@ -5096,22 +5143,30 @@ function useViewService() {
|
|
|
5096
5143
|
},
|
|
5097
5144
|
[env]
|
|
5098
5145
|
);
|
|
5099
|
-
|
|
5146
|
+
return {
|
|
5147
|
+
changeOrderPreparationState
|
|
5148
|
+
};
|
|
5149
|
+
};
|
|
5150
|
+
|
|
5151
|
+
// src/services/pos-service/check-payment.ts
|
|
5152
|
+
import { useCallback as useCallback15 } from "react";
|
|
5153
|
+
var checkPaymentService = (env) => {
|
|
5154
|
+
const checkPayment = useCallback15(
|
|
5100
5155
|
({
|
|
5101
5156
|
model,
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
isCreateEndpoint = true,
|
|
5157
|
+
ids,
|
|
5158
|
+
withContext,
|
|
5105
5159
|
xNode,
|
|
5106
5160
|
service
|
|
5107
5161
|
}) => {
|
|
5108
5162
|
const jsonData = {
|
|
5109
5163
|
model,
|
|
5110
|
-
|
|
5111
|
-
|
|
5164
|
+
method: "check" /* CHECK */,
|
|
5165
|
+
ids,
|
|
5166
|
+
with_context: withContext
|
|
5112
5167
|
};
|
|
5113
5168
|
return env?.requests.post(
|
|
5114
|
-
|
|
5169
|
+
"/call" /* CALL_PATH */,
|
|
5115
5170
|
jsonData,
|
|
5116
5171
|
{
|
|
5117
5172
|
headers: {
|
|
@@ -5124,22 +5179,32 @@ function useViewService() {
|
|
|
5124
5179
|
},
|
|
5125
5180
|
[env]
|
|
5126
5181
|
);
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5182
|
+
return {
|
|
5183
|
+
checkPayment
|
|
5184
|
+
};
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
// src/services/pos-service/create-e-invoice.ts
|
|
5188
|
+
import { useCallback as useCallback16 } from "react";
|
|
5189
|
+
var createEInvoiceService = (env) => {
|
|
5190
|
+
const createEInvoice = useCallback16(
|
|
5191
|
+
async ({
|
|
5132
5192
|
service,
|
|
5133
|
-
|
|
5193
|
+
xNode,
|
|
5194
|
+
kwargs,
|
|
5195
|
+
ids,
|
|
5196
|
+
withContext
|
|
5134
5197
|
}) => {
|
|
5135
|
-
const
|
|
5136
|
-
model
|
|
5198
|
+
const body = {
|
|
5199
|
+
model: "pos.order" /* POS_ORDER */,
|
|
5200
|
+
method: "create_e_invoice" /* CREATE_E_INVOICE */,
|
|
5201
|
+
kwargs,
|
|
5137
5202
|
ids,
|
|
5138
|
-
|
|
5203
|
+
with_context: withContext
|
|
5139
5204
|
};
|
|
5140
|
-
return env?.requests
|
|
5141
|
-
"/call" /* CALL_PATH
|
|
5142
|
-
|
|
5205
|
+
return env?.requests?.post(
|
|
5206
|
+
`${"/call" /* CALL_PATH */}`,
|
|
5207
|
+
body,
|
|
5143
5208
|
{
|
|
5144
5209
|
headers: {
|
|
5145
5210
|
"Content-Type": "application/json",
|
|
@@ -5151,32 +5216,28 @@ function useViewService() {
|
|
|
5151
5216
|
},
|
|
5152
5217
|
[env]
|
|
5153
5218
|
);
|
|
5154
|
-
|
|
5219
|
+
return {
|
|
5220
|
+
createEInvoice
|
|
5221
|
+
};
|
|
5222
|
+
};
|
|
5223
|
+
|
|
5224
|
+
// src/services/pos-service/create-entity.ts
|
|
5225
|
+
import { useCallback as useCallback17 } from "react";
|
|
5226
|
+
var createEntityService = (env) => {
|
|
5227
|
+
const createEntity = useCallback17(
|
|
5155
5228
|
({
|
|
5156
5229
|
model,
|
|
5157
|
-
|
|
5230
|
+
args,
|
|
5158
5231
|
xNode,
|
|
5159
|
-
service
|
|
5160
|
-
withContext,
|
|
5161
|
-
modelsToLoad = [],
|
|
5162
|
-
searchParams
|
|
5232
|
+
service
|
|
5163
5233
|
}) => {
|
|
5164
5234
|
const jsonData = {
|
|
5165
5235
|
model,
|
|
5166
|
-
method: "
|
|
5167
|
-
|
|
5168
|
-
with_context: withContext ? withContext : {
|
|
5169
|
-
uid: 37,
|
|
5170
|
-
lang: "vi_VN",
|
|
5171
|
-
tz: "Asia/Saigon"
|
|
5172
|
-
},
|
|
5173
|
-
kwargs: {
|
|
5174
|
-
models_to_load: modelsToLoad
|
|
5175
|
-
}
|
|
5236
|
+
method: "create" /* CREATE */,
|
|
5237
|
+
args
|
|
5176
5238
|
};
|
|
5177
|
-
const url = searchParams ? `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}` : "/call" /* CALL_PATH */;
|
|
5178
5239
|
return env?.requests.post(
|
|
5179
|
-
|
|
5240
|
+
"/call" /* CALL_PATH */,
|
|
5180
5241
|
jsonData,
|
|
5181
5242
|
{
|
|
5182
5243
|
headers: {
|
|
@@ -5189,21 +5250,31 @@ function useViewService() {
|
|
|
5189
5250
|
},
|
|
5190
5251
|
[env]
|
|
5191
5252
|
);
|
|
5192
|
-
|
|
5253
|
+
return {
|
|
5254
|
+
createEntity
|
|
5255
|
+
};
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
// src/services/pos-service/create-pos-config.ts
|
|
5259
|
+
import { useCallback as useCallback18 } from "react";
|
|
5260
|
+
var createPosConfigService = (env) => {
|
|
5261
|
+
const createPosConfig = useCallback18(
|
|
5193
5262
|
({
|
|
5194
|
-
|
|
5263
|
+
model,
|
|
5264
|
+
name,
|
|
5265
|
+
modulePosRestaurant,
|
|
5195
5266
|
xNode,
|
|
5196
|
-
service
|
|
5197
|
-
withContext
|
|
5267
|
+
service
|
|
5198
5268
|
}) => {
|
|
5199
5269
|
const jsonData = {
|
|
5200
|
-
model
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5270
|
+
model,
|
|
5271
|
+
values: {
|
|
5272
|
+
name,
|
|
5273
|
+
module_pos_restaurant: modulePosRestaurant
|
|
5274
|
+
}
|
|
5204
5275
|
};
|
|
5205
5276
|
return env?.requests.post(
|
|
5206
|
-
"/
|
|
5277
|
+
"/create" /* CREATE_PATH */,
|
|
5207
5278
|
jsonData,
|
|
5208
5279
|
{
|
|
5209
5280
|
headers: {
|
|
@@ -5216,19 +5287,29 @@ function useViewService() {
|
|
|
5216
5287
|
},
|
|
5217
5288
|
[env]
|
|
5218
5289
|
);
|
|
5219
|
-
|
|
5290
|
+
return {
|
|
5291
|
+
createPosConfig
|
|
5292
|
+
};
|
|
5293
|
+
};
|
|
5294
|
+
|
|
5295
|
+
// src/services/pos-service/create-session.ts
|
|
5296
|
+
import { useCallback as useCallback19 } from "react";
|
|
5297
|
+
var createSessionService = (env) => {
|
|
5298
|
+
const createSession = useCallback19(
|
|
5220
5299
|
({
|
|
5221
5300
|
model,
|
|
5222
|
-
|
|
5223
|
-
args,
|
|
5301
|
+
configId,
|
|
5224
5302
|
xNode,
|
|
5225
5303
|
service
|
|
5226
5304
|
}) => {
|
|
5227
5305
|
const jsonData = {
|
|
5228
5306
|
model,
|
|
5229
|
-
method: "
|
|
5230
|
-
|
|
5231
|
-
|
|
5307
|
+
method: "create" /* CREATE */,
|
|
5308
|
+
args: [
|
|
5309
|
+
{
|
|
5310
|
+
config_id: configId
|
|
5311
|
+
}
|
|
5312
|
+
]
|
|
5232
5313
|
};
|
|
5233
5314
|
return env?.requests.post(
|
|
5234
5315
|
"/call" /* CALL_PATH */,
|
|
@@ -5244,21 +5325,26 @@ function useViewService() {
|
|
|
5244
5325
|
},
|
|
5245
5326
|
[env]
|
|
5246
5327
|
);
|
|
5247
|
-
|
|
5328
|
+
return {
|
|
5329
|
+
createSession
|
|
5330
|
+
};
|
|
5331
|
+
};
|
|
5332
|
+
|
|
5333
|
+
// src/services/pos-service/delete-entity.ts
|
|
5334
|
+
import { useCallback as useCallback20 } from "react";
|
|
5335
|
+
var deleteEntityService = (env) => {
|
|
5336
|
+
const deleteEntity = useCallback20(
|
|
5248
5337
|
({
|
|
5249
5338
|
model,
|
|
5250
5339
|
ids,
|
|
5251
|
-
specification,
|
|
5252
5340
|
xNode,
|
|
5253
|
-
service
|
|
5341
|
+
service,
|
|
5342
|
+
method
|
|
5254
5343
|
}) => {
|
|
5255
5344
|
const jsonData = {
|
|
5256
5345
|
model,
|
|
5257
|
-
method: "web_read" /* WEB_READ */,
|
|
5258
5346
|
ids,
|
|
5259
|
-
|
|
5260
|
-
specification
|
|
5261
|
-
}
|
|
5347
|
+
method
|
|
5262
5348
|
};
|
|
5263
5349
|
return env?.requests.post(
|
|
5264
5350
|
"/call" /* CALL_PATH */,
|
|
@@ -5274,27 +5360,29 @@ function useViewService() {
|
|
|
5274
5360
|
},
|
|
5275
5361
|
[env]
|
|
5276
5362
|
);
|
|
5277
|
-
|
|
5363
|
+
return {
|
|
5364
|
+
deleteEntity
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5368
|
+
// src/services/pos-service/generate-payment-qr-info.ts
|
|
5369
|
+
import { useCallback as useCallback21 } from "react";
|
|
5370
|
+
var generatePaymentQrInfoService = (env) => {
|
|
5371
|
+
const generatePaymentQRInfo = useCallback21(
|
|
5278
5372
|
({
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
offset,
|
|
5283
|
-
domain,
|
|
5373
|
+
orderId,
|
|
5374
|
+
amount,
|
|
5375
|
+
posSessionId,
|
|
5284
5376
|
xNode,
|
|
5285
|
-
service
|
|
5286
|
-
searchParams
|
|
5377
|
+
service
|
|
5287
5378
|
}) => {
|
|
5288
5379
|
const jsonData = {
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
offset,
|
|
5293
|
-
domain
|
|
5380
|
+
order_id: orderId,
|
|
5381
|
+
amount,
|
|
5382
|
+
pos_session_id: posSessionId
|
|
5294
5383
|
};
|
|
5295
|
-
const url = searchParams ? `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}` : "/search_read" /* SEARCH_READ */;
|
|
5296
5384
|
return env?.requests.post(
|
|
5297
|
-
|
|
5385
|
+
"/payment/qr" /* PAYMENT_QR */,
|
|
5298
5386
|
jsonData,
|
|
5299
5387
|
{
|
|
5300
5388
|
headers: {
|
|
@@ -5307,25 +5395,29 @@ function useViewService() {
|
|
|
5307
5395
|
},
|
|
5308
5396
|
[env]
|
|
5309
5397
|
);
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5398
|
+
return {
|
|
5399
|
+
generatePaymentQRInfo
|
|
5400
|
+
};
|
|
5401
|
+
};
|
|
5402
|
+
|
|
5403
|
+
// src/services/pos-service/get-current-user.ts
|
|
5404
|
+
import { useCallback as useCallback22 } from "react";
|
|
5405
|
+
var getCurrentUserService = (env) => {
|
|
5406
|
+
const getCurrentUser = useCallback22(
|
|
5407
|
+
async ({
|
|
5408
|
+
service,
|
|
5315
5409
|
xNode,
|
|
5316
|
-
|
|
5410
|
+
oauthUid,
|
|
5411
|
+
extraHeaders
|
|
5317
5412
|
}) => {
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
method: "check" /* CHECK */,
|
|
5321
|
-
ids,
|
|
5322
|
-
with_context: withContext
|
|
5323
|
-
};
|
|
5324
|
-
return env?.requests.post(
|
|
5325
|
-
"/call" /* CALL_PATH */,
|
|
5326
|
-
jsonData,
|
|
5413
|
+
return env?.requests?.get(
|
|
5414
|
+
`${"/public/user/info" /* PUBLIC_USER_INFO */}/${oauthUid}`,
|
|
5327
5415
|
{
|
|
5328
|
-
headers: {
|
|
5416
|
+
headers: extraHeaders ? {
|
|
5417
|
+
...extraHeaders,
|
|
5418
|
+
"Content-Type": "application/json",
|
|
5419
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5420
|
+
} : {
|
|
5329
5421
|
"Content-Type": "application/json",
|
|
5330
5422
|
...xNode ? { "X-Node": xNode } : {}
|
|
5331
5423
|
}
|
|
@@ -5335,18 +5427,33 @@ function useViewService() {
|
|
|
5335
5427
|
},
|
|
5336
5428
|
[env]
|
|
5337
5429
|
);
|
|
5338
|
-
|
|
5430
|
+
return {
|
|
5431
|
+
getCurrentUser
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
5434
|
+
|
|
5435
|
+
// src/services/pos-service/get-list.ts
|
|
5436
|
+
import { useCallback as useCallback23 } from "react";
|
|
5437
|
+
var getListService = (env) => {
|
|
5438
|
+
const getList = useCallback23(
|
|
5339
5439
|
({
|
|
5340
5440
|
model,
|
|
5341
|
-
|
|
5441
|
+
domain,
|
|
5342
5442
|
xNode,
|
|
5343
5443
|
service,
|
|
5344
|
-
|
|
5444
|
+
specification,
|
|
5445
|
+
offset,
|
|
5446
|
+
limit
|
|
5345
5447
|
}) => {
|
|
5346
5448
|
const jsonData = {
|
|
5347
5449
|
model,
|
|
5348
|
-
|
|
5349
|
-
|
|
5450
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
5451
|
+
kwargs: cleanObject({
|
|
5452
|
+
domain,
|
|
5453
|
+
offset,
|
|
5454
|
+
limit,
|
|
5455
|
+
specification
|
|
5456
|
+
})
|
|
5350
5457
|
};
|
|
5351
5458
|
return env?.requests.post(
|
|
5352
5459
|
"/call" /* CALL_PATH */,
|
|
@@ -5362,20 +5469,29 @@ function useViewService() {
|
|
|
5362
5469
|
},
|
|
5363
5470
|
[env]
|
|
5364
5471
|
);
|
|
5365
|
-
|
|
5472
|
+
return {
|
|
5473
|
+
getList
|
|
5474
|
+
};
|
|
5475
|
+
};
|
|
5476
|
+
|
|
5477
|
+
// src/services/pos-service/get-order-line.ts
|
|
5478
|
+
import { useCallback as useCallback24 } from "react";
|
|
5479
|
+
var getOrderLineService = (env) => {
|
|
5480
|
+
const getOrderLine = useCallback24(
|
|
5366
5481
|
({
|
|
5367
5482
|
model,
|
|
5368
5483
|
ids,
|
|
5369
|
-
|
|
5484
|
+
specification,
|
|
5370
5485
|
xNode,
|
|
5371
|
-
service
|
|
5372
|
-
kwargs
|
|
5486
|
+
service
|
|
5373
5487
|
}) => {
|
|
5374
5488
|
const jsonData = {
|
|
5375
5489
|
model,
|
|
5490
|
+
method: "web_read" /* WEB_READ */,
|
|
5376
5491
|
ids,
|
|
5377
|
-
|
|
5378
|
-
|
|
5492
|
+
kwargs: {
|
|
5493
|
+
specification
|
|
5494
|
+
}
|
|
5379
5495
|
};
|
|
5380
5496
|
return env?.requests.post(
|
|
5381
5497
|
"/call" /* CALL_PATH */,
|
|
@@ -5391,23 +5507,25 @@ function useViewService() {
|
|
|
5391
5507
|
},
|
|
5392
5508
|
[env]
|
|
5393
5509
|
);
|
|
5394
|
-
|
|
5510
|
+
return {
|
|
5511
|
+
getOrderLine
|
|
5512
|
+
};
|
|
5513
|
+
};
|
|
5514
|
+
|
|
5515
|
+
// src/services/pos-service/get-pin-code.ts
|
|
5516
|
+
import { useCallback as useCallback25 } from "react";
|
|
5517
|
+
var getPinCodeService = (env) => {
|
|
5518
|
+
const getPinCode = useCallback25(
|
|
5395
5519
|
({
|
|
5396
|
-
|
|
5397
|
-
name,
|
|
5398
|
-
modulePosRestaurant,
|
|
5520
|
+
serialNumber,
|
|
5399
5521
|
xNode,
|
|
5400
5522
|
service
|
|
5401
5523
|
}) => {
|
|
5402
5524
|
const jsonData = {
|
|
5403
|
-
|
|
5404
|
-
values: {
|
|
5405
|
-
name,
|
|
5406
|
-
module_pos_restaurant: modulePosRestaurant
|
|
5407
|
-
}
|
|
5525
|
+
serial_number: serialNumber
|
|
5408
5526
|
};
|
|
5409
5527
|
return env?.requests.post(
|
|
5410
|
-
"/
|
|
5528
|
+
"/pos_device/get_pin_code" /* GET_PIN_CODE */,
|
|
5411
5529
|
jsonData,
|
|
5412
5530
|
{
|
|
5413
5531
|
headers: {
|
|
@@ -5420,20 +5538,57 @@ function useViewService() {
|
|
|
5420
5538
|
},
|
|
5421
5539
|
[env]
|
|
5422
5540
|
);
|
|
5423
|
-
|
|
5541
|
+
return {
|
|
5542
|
+
getPinCode
|
|
5543
|
+
};
|
|
5544
|
+
};
|
|
5545
|
+
|
|
5546
|
+
// src/services/pos-service/get-pos.ts
|
|
5547
|
+
import { useCallback as useCallback26 } from "react";
|
|
5548
|
+
var getPosService = (env) => {
|
|
5549
|
+
const getPOS = useCallback26(
|
|
5424
5550
|
({
|
|
5425
5551
|
model,
|
|
5426
|
-
method,
|
|
5427
5552
|
args,
|
|
5428
|
-
|
|
5553
|
+
domain,
|
|
5429
5554
|
xNode,
|
|
5430
5555
|
service
|
|
5431
5556
|
}) => {
|
|
5432
5557
|
const jsonData = {
|
|
5433
5558
|
model,
|
|
5434
|
-
method
|
|
5559
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
5435
5560
|
args,
|
|
5436
|
-
kwargs
|
|
5561
|
+
kwargs: {
|
|
5562
|
+
domain,
|
|
5563
|
+
specification: {
|
|
5564
|
+
cash_control: {},
|
|
5565
|
+
current_session_id: {
|
|
5566
|
+
fields: {
|
|
5567
|
+
display_name: {}
|
|
5568
|
+
}
|
|
5569
|
+
},
|
|
5570
|
+
current_session_state: {},
|
|
5571
|
+
pos_session_state: {},
|
|
5572
|
+
pos_session_duration: {},
|
|
5573
|
+
currency_id: {
|
|
5574
|
+
fields: {
|
|
5575
|
+
display_name: {}
|
|
5576
|
+
}
|
|
5577
|
+
},
|
|
5578
|
+
name: {},
|
|
5579
|
+
pos_session_username: {},
|
|
5580
|
+
last_session_closing_date: {},
|
|
5581
|
+
last_session_closing_cash: {},
|
|
5582
|
+
number_of_rescue_session: {},
|
|
5583
|
+
current_user_id: {
|
|
5584
|
+
fields: {
|
|
5585
|
+
display_name: {}
|
|
5586
|
+
}
|
|
5587
|
+
},
|
|
5588
|
+
customer_display_type: {},
|
|
5589
|
+
module_pos_restaurant: {}
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5437
5592
|
};
|
|
5438
5593
|
return env?.requests.post(
|
|
5439
5594
|
"/call" /* CALL_PATH */,
|
|
@@ -5449,22 +5604,26 @@ function useViewService() {
|
|
|
5449
5604
|
},
|
|
5450
5605
|
[env]
|
|
5451
5606
|
);
|
|
5452
|
-
|
|
5607
|
+
return {
|
|
5608
|
+
getPOS
|
|
5609
|
+
};
|
|
5610
|
+
};
|
|
5611
|
+
|
|
5612
|
+
// src/services/pos-service/get-preparation-display-data.ts
|
|
5613
|
+
import { useCallback as useCallback27 } from "react";
|
|
5614
|
+
var getPreparationDisplayDataService = (env) => {
|
|
5615
|
+
const getPreparationDisplayData = useCallback27(
|
|
5453
5616
|
({
|
|
5454
|
-
|
|
5455
|
-
stageId,
|
|
5456
|
-
preparationDisplayId,
|
|
5617
|
+
ids,
|
|
5457
5618
|
xNode,
|
|
5458
|
-
service
|
|
5619
|
+
service,
|
|
5620
|
+
withContext
|
|
5459
5621
|
}) => {
|
|
5460
5622
|
const jsonData = {
|
|
5461
|
-
model: "pos_preparation_display.
|
|
5462
|
-
method: "
|
|
5463
|
-
ids
|
|
5464
|
-
|
|
5465
|
-
stage_id: stageId,
|
|
5466
|
-
preparation_display_id: preparationDisplayId
|
|
5467
|
-
}
|
|
5623
|
+
model: "pos_preparation_display.display" /* POS_PREPARATION_DISPLAY */,
|
|
5624
|
+
method: "get_preparation_display_data" /* GET_PREPARATION_DISPLAY_DATA */,
|
|
5625
|
+
ids,
|
|
5626
|
+
with_context: withContext
|
|
5468
5627
|
};
|
|
5469
5628
|
return env?.requests.post(
|
|
5470
5629
|
"/call" /* CALL_PATH */,
|
|
@@ -5480,19 +5639,35 @@ function useViewService() {
|
|
|
5480
5639
|
},
|
|
5481
5640
|
[env]
|
|
5482
5641
|
);
|
|
5483
|
-
|
|
5642
|
+
return {
|
|
5643
|
+
getPreparationDisplayData
|
|
5644
|
+
};
|
|
5645
|
+
};
|
|
5646
|
+
|
|
5647
|
+
// src/services/pos-service/get-product-image.ts
|
|
5648
|
+
import { useCallback as useCallback28 } from "react";
|
|
5649
|
+
var getProductImageService = (env) => {
|
|
5650
|
+
const getProductImage = useCallback28(
|
|
5484
5651
|
({
|
|
5485
|
-
|
|
5486
|
-
|
|
5652
|
+
model,
|
|
5653
|
+
fields,
|
|
5654
|
+
limit,
|
|
5655
|
+
offset,
|
|
5656
|
+
domain,
|
|
5487
5657
|
xNode,
|
|
5488
|
-
service
|
|
5658
|
+
service,
|
|
5659
|
+
searchParams
|
|
5489
5660
|
}) => {
|
|
5490
5661
|
const jsonData = {
|
|
5491
|
-
|
|
5492
|
-
|
|
5662
|
+
model,
|
|
5663
|
+
fields,
|
|
5664
|
+
limit,
|
|
5665
|
+
offset,
|
|
5666
|
+
domain
|
|
5493
5667
|
};
|
|
5494
|
-
|
|
5495
|
-
|
|
5668
|
+
const url = searchParams ? `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}` : "/search_read" /* SEARCH_READ */;
|
|
5669
|
+
return env?.requests.post(
|
|
5670
|
+
url,
|
|
5496
5671
|
jsonData,
|
|
5497
5672
|
{
|
|
5498
5673
|
headers: {
|
|
@@ -5505,18 +5680,26 @@ function useViewService() {
|
|
|
5505
5680
|
},
|
|
5506
5681
|
[env]
|
|
5507
5682
|
);
|
|
5508
|
-
|
|
5683
|
+
return {
|
|
5684
|
+
getProductImage
|
|
5685
|
+
};
|
|
5686
|
+
};
|
|
5687
|
+
|
|
5688
|
+
// src/services/pos-service/handle-close-session.ts
|
|
5689
|
+
import { useCallback as useCallback29 } from "react";
|
|
5690
|
+
var handleCloseSessionService = (env) => {
|
|
5691
|
+
const handleCloseSession = useCallback29(
|
|
5509
5692
|
({
|
|
5510
|
-
|
|
5693
|
+
model,
|
|
5694
|
+
ids,
|
|
5511
5695
|
xNode,
|
|
5512
|
-
service
|
|
5696
|
+
service,
|
|
5697
|
+
method
|
|
5513
5698
|
}) => {
|
|
5514
5699
|
const jsonData = {
|
|
5515
|
-
model
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
order_id: orderId
|
|
5519
|
-
}
|
|
5700
|
+
model,
|
|
5701
|
+
ids,
|
|
5702
|
+
method
|
|
5520
5703
|
};
|
|
5521
5704
|
return env?.requests.post(
|
|
5522
5705
|
"/call" /* CALL_PATH */,
|
|
@@ -5532,21 +5715,31 @@ function useViewService() {
|
|
|
5532
5715
|
},
|
|
5533
5716
|
[env]
|
|
5534
5717
|
);
|
|
5535
|
-
|
|
5718
|
+
return {
|
|
5719
|
+
handleCloseSession
|
|
5720
|
+
};
|
|
5721
|
+
};
|
|
5722
|
+
|
|
5723
|
+
// src/services/pos-service/handle-closing-detail-session.ts
|
|
5724
|
+
import { useCallback as useCallback30 } from "react";
|
|
5725
|
+
var handleClosingDetailSessionService = (env) => {
|
|
5726
|
+
const handleClosingDetailSession = useCallback30(
|
|
5536
5727
|
({
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5728
|
+
model,
|
|
5729
|
+
ids,
|
|
5730
|
+
method,
|
|
5540
5731
|
xNode,
|
|
5541
|
-
service
|
|
5732
|
+
service,
|
|
5733
|
+
kwargs
|
|
5542
5734
|
}) => {
|
|
5543
5735
|
const jsonData = {
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5736
|
+
model,
|
|
5737
|
+
ids,
|
|
5738
|
+
method,
|
|
5739
|
+
kwargs
|
|
5547
5740
|
};
|
|
5548
5741
|
return env?.requests.post(
|
|
5549
|
-
"/
|
|
5742
|
+
"/call" /* CALL_PATH */,
|
|
5550
5743
|
jsonData,
|
|
5551
5744
|
{
|
|
5552
5745
|
headers: {
|
|
@@ -5559,19 +5752,31 @@ function useViewService() {
|
|
|
5559
5752
|
},
|
|
5560
5753
|
[env]
|
|
5561
5754
|
);
|
|
5562
|
-
|
|
5755
|
+
return {
|
|
5756
|
+
handleClosingDetailSession
|
|
5757
|
+
};
|
|
5758
|
+
};
|
|
5759
|
+
|
|
5760
|
+
// src/services/pos-service/handle-closing-session.ts
|
|
5761
|
+
import { useCallback as useCallback31 } from "react";
|
|
5762
|
+
var handleClosingSessionService = (env) => {
|
|
5763
|
+
const handleClosingSession = useCallback31(
|
|
5563
5764
|
({
|
|
5564
|
-
|
|
5565
|
-
|
|
5765
|
+
model,
|
|
5766
|
+
method,
|
|
5767
|
+
ids,
|
|
5768
|
+
kwargs,
|
|
5566
5769
|
xNode,
|
|
5567
5770
|
service
|
|
5568
5771
|
}) => {
|
|
5569
5772
|
const jsonData = {
|
|
5570
|
-
|
|
5571
|
-
|
|
5773
|
+
model,
|
|
5774
|
+
method,
|
|
5775
|
+
ids,
|
|
5776
|
+
kwargs
|
|
5572
5777
|
};
|
|
5573
|
-
return env?.requests.
|
|
5574
|
-
"/
|
|
5778
|
+
return env?.requests.post(
|
|
5779
|
+
"/call" /* CALL_PATH */,
|
|
5575
5780
|
jsonData,
|
|
5576
5781
|
{
|
|
5577
5782
|
headers: {
|
|
@@ -5584,17 +5789,40 @@ function useViewService() {
|
|
|
5584
5789
|
},
|
|
5585
5790
|
[env]
|
|
5586
5791
|
);
|
|
5587
|
-
|
|
5792
|
+
return {
|
|
5793
|
+
handleClosingSession
|
|
5794
|
+
};
|
|
5795
|
+
};
|
|
5796
|
+
|
|
5797
|
+
// src/services/pos-service/load-data-pos-session.ts
|
|
5798
|
+
import { useCallback as useCallback32 } from "react";
|
|
5799
|
+
var loadDataPosSessionService = (env) => {
|
|
5800
|
+
const loadDataPosSession = useCallback32(
|
|
5588
5801
|
({
|
|
5589
|
-
|
|
5802
|
+
model,
|
|
5803
|
+
ids,
|
|
5590
5804
|
xNode,
|
|
5591
|
-
service
|
|
5805
|
+
service,
|
|
5806
|
+
withContext,
|
|
5807
|
+
modelsToLoad = [],
|
|
5808
|
+
searchParams
|
|
5592
5809
|
}) => {
|
|
5593
5810
|
const jsonData = {
|
|
5594
|
-
|
|
5811
|
+
model,
|
|
5812
|
+
method: "load_data" /* LOAD_DATA */,
|
|
5813
|
+
ids,
|
|
5814
|
+
with_context: withContext ? withContext : {
|
|
5815
|
+
uid: 37,
|
|
5816
|
+
lang: "vi_VN",
|
|
5817
|
+
tz: "Asia/Saigon"
|
|
5818
|
+
},
|
|
5819
|
+
kwargs: {
|
|
5820
|
+
models_to_load: modelsToLoad
|
|
5821
|
+
}
|
|
5595
5822
|
};
|
|
5823
|
+
const url = searchParams ? `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}` : "/call" /* CALL_PATH */;
|
|
5596
5824
|
return env?.requests.post(
|
|
5597
|
-
|
|
5825
|
+
url,
|
|
5598
5826
|
jsonData,
|
|
5599
5827
|
{
|
|
5600
5828
|
headers: {
|
|
@@ -5607,15 +5835,31 @@ function useViewService() {
|
|
|
5607
5835
|
},
|
|
5608
5836
|
[env]
|
|
5609
5837
|
);
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5838
|
+
return {
|
|
5839
|
+
loadDataPosSession
|
|
5840
|
+
};
|
|
5841
|
+
};
|
|
5842
|
+
|
|
5843
|
+
// src/services/pos-service/manage-onchange.ts
|
|
5844
|
+
import { useCallback as useCallback33 } from "react";
|
|
5845
|
+
var manageOnchangeService = (env) => {
|
|
5846
|
+
const manageOnChange = useCallback33(
|
|
5847
|
+
({
|
|
5848
|
+
model,
|
|
5849
|
+
ids,
|
|
5850
|
+
args,
|
|
5613
5851
|
xNode,
|
|
5614
|
-
|
|
5852
|
+
service
|
|
5615
5853
|
}) => {
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5854
|
+
const jsonData = {
|
|
5855
|
+
model,
|
|
5856
|
+
method: "onchange" /* ONCHANGE */,
|
|
5857
|
+
ids,
|
|
5858
|
+
args
|
|
5859
|
+
};
|
|
5860
|
+
return env?.requests.post(
|
|
5861
|
+
"/call" /* CALL_PATH */,
|
|
5862
|
+
jsonData,
|
|
5619
5863
|
{
|
|
5620
5864
|
headers: {
|
|
5621
5865
|
"Content-Type": "application/json",
|
|
@@ -5627,24 +5871,34 @@ function useViewService() {
|
|
|
5627
5871
|
},
|
|
5628
5872
|
[env]
|
|
5629
5873
|
);
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5874
|
+
return {
|
|
5875
|
+
manageOnChange
|
|
5876
|
+
};
|
|
5877
|
+
};
|
|
5878
|
+
|
|
5879
|
+
// src/services/pos-service/manage-session.ts
|
|
5880
|
+
import { useCallback as useCallback34 } from "react";
|
|
5881
|
+
var manageSessionService = (env) => {
|
|
5882
|
+
const manageSession = useCallback34(
|
|
5883
|
+
({
|
|
5884
|
+
model,
|
|
5885
|
+
method,
|
|
5635
5886
|
ids,
|
|
5636
|
-
|
|
5887
|
+
args,
|
|
5888
|
+
kwargs,
|
|
5889
|
+
xNode,
|
|
5890
|
+
service
|
|
5637
5891
|
}) => {
|
|
5638
|
-
const
|
|
5639
|
-
model
|
|
5640
|
-
method
|
|
5641
|
-
kwargs,
|
|
5892
|
+
const jsonData = {
|
|
5893
|
+
model,
|
|
5894
|
+
method,
|
|
5642
5895
|
ids,
|
|
5643
|
-
|
|
5896
|
+
args,
|
|
5897
|
+
kwargs
|
|
5644
5898
|
};
|
|
5645
|
-
return env?.requests
|
|
5646
|
-
|
|
5647
|
-
|
|
5899
|
+
return env?.requests.post(
|
|
5900
|
+
"/call" /* CALL_PATH */,
|
|
5901
|
+
jsonData,
|
|
5648
5902
|
{
|
|
5649
5903
|
headers: {
|
|
5650
5904
|
"Content-Type": "application/json",
|
|
@@ -5656,46 +5910,30 @@ function useViewService() {
|
|
|
5656
5910
|
},
|
|
5657
5911
|
[env]
|
|
5658
5912
|
);
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
...extraHeaders,
|
|
5671
|
-
"Content-Type": "application/json",
|
|
5672
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
5673
|
-
} : {
|
|
5674
|
-
"Content-Type": "application/json",
|
|
5675
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
5676
|
-
}
|
|
5677
|
-
},
|
|
5678
|
-
service
|
|
5679
|
-
);
|
|
5680
|
-
},
|
|
5681
|
-
[env]
|
|
5682
|
-
);
|
|
5683
|
-
const getCountry = useCallback10(
|
|
5684
|
-
async ({
|
|
5685
|
-
service,
|
|
5913
|
+
return {
|
|
5914
|
+
manageSession
|
|
5915
|
+
};
|
|
5916
|
+
};
|
|
5917
|
+
|
|
5918
|
+
// src/services/pos-service/process-order.ts
|
|
5919
|
+
import { useCallback as useCallback35 } from "react";
|
|
5920
|
+
var processOrderService = (env) => {
|
|
5921
|
+
const processOrder = useCallback35(
|
|
5922
|
+
({
|
|
5923
|
+
orderId,
|
|
5686
5924
|
xNode,
|
|
5687
|
-
|
|
5688
|
-
kwargs
|
|
5925
|
+
service
|
|
5689
5926
|
}) => {
|
|
5690
|
-
const
|
|
5691
|
-
model: "
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5927
|
+
const jsonData = {
|
|
5928
|
+
model: "pos_preparation_display.order" /* POS_PREPARATION_ORDER */,
|
|
5929
|
+
method: "process_order" /* PROCESS_ORDER */,
|
|
5930
|
+
kwargs: {
|
|
5931
|
+
order_id: orderId
|
|
5932
|
+
}
|
|
5695
5933
|
};
|
|
5696
|
-
return env?.requests
|
|
5934
|
+
return env?.requests.post(
|
|
5697
5935
|
"/call" /* CALL_PATH */,
|
|
5698
|
-
|
|
5936
|
+
jsonData,
|
|
5699
5937
|
{
|
|
5700
5938
|
headers: {
|
|
5701
5939
|
"Content-Type": "application/json",
|
|
@@ -5707,22 +5945,28 @@ function useViewService() {
|
|
|
5707
5945
|
},
|
|
5708
5946
|
[env]
|
|
5709
5947
|
);
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5948
|
+
return {
|
|
5949
|
+
processOrder
|
|
5950
|
+
};
|
|
5951
|
+
};
|
|
5952
|
+
|
|
5953
|
+
// src/services/pos-service/save-pin-code.ts
|
|
5954
|
+
import { useCallback as useCallback36 } from "react";
|
|
5955
|
+
var savePinCodeService = (env) => {
|
|
5956
|
+
const savePinCode = useCallback36(
|
|
5957
|
+
({
|
|
5958
|
+
serialNumber,
|
|
5959
|
+
pinCode,
|
|
5713
5960
|
xNode,
|
|
5714
|
-
|
|
5715
|
-
kwargs
|
|
5961
|
+
service
|
|
5716
5962
|
}) => {
|
|
5717
|
-
const
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
method: "get_data_select" /* GET_DATA_SELECT */,
|
|
5721
|
-
kwargs
|
|
5963
|
+
const jsonData = {
|
|
5964
|
+
serial_number: serialNumber,
|
|
5965
|
+
pin_code: pinCode
|
|
5722
5966
|
};
|
|
5723
|
-
return env?.requests
|
|
5724
|
-
"/
|
|
5725
|
-
|
|
5967
|
+
return env?.requests.put(
|
|
5968
|
+
"/pos_device/pin" /* POS_DEVICE_PIN */,
|
|
5969
|
+
jsonData,
|
|
5726
5970
|
{
|
|
5727
5971
|
headers: {
|
|
5728
5972
|
"Content-Type": "application/json",
|
|
@@ -5734,20 +5978,32 @@ function useViewService() {
|
|
|
5734
5978
|
},
|
|
5735
5979
|
[env]
|
|
5736
5980
|
);
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5981
|
+
return {
|
|
5982
|
+
savePinCode
|
|
5983
|
+
};
|
|
5984
|
+
};
|
|
5985
|
+
|
|
5986
|
+
// src/services/pos-service/search-journal.ts
|
|
5987
|
+
import { useCallback as useCallback37 } from "react";
|
|
5988
|
+
var searchJournalService = (env) => {
|
|
5989
|
+
const searchJournal = useCallback37(
|
|
5990
|
+
({
|
|
5991
|
+
model,
|
|
5992
|
+
method,
|
|
5993
|
+
args,
|
|
5994
|
+
kwargs,
|
|
5740
5995
|
xNode,
|
|
5741
|
-
|
|
5996
|
+
service
|
|
5742
5997
|
}) => {
|
|
5743
|
-
const
|
|
5744
|
-
model
|
|
5745
|
-
method
|
|
5998
|
+
const jsonData = {
|
|
5999
|
+
model,
|
|
6000
|
+
method,
|
|
6001
|
+
args,
|
|
5746
6002
|
kwargs
|
|
5747
6003
|
};
|
|
5748
|
-
return env?.requests
|
|
6004
|
+
return env?.requests.post(
|
|
5749
6005
|
"/call" /* CALL_PATH */,
|
|
5750
|
-
|
|
6006
|
+
jsonData,
|
|
5751
6007
|
{
|
|
5752
6008
|
headers: {
|
|
5753
6009
|
"Content-Type": "application/json",
|
|
@@ -5759,22 +6015,30 @@ function useViewService() {
|
|
|
5759
6015
|
},
|
|
5760
6016
|
[env]
|
|
5761
6017
|
);
|
|
5762
|
-
|
|
5763
|
-
|
|
6018
|
+
return {
|
|
6019
|
+
searchJournal
|
|
6020
|
+
};
|
|
6021
|
+
};
|
|
6022
|
+
|
|
6023
|
+
// src/services/pos-service/update-closed-session.ts
|
|
6024
|
+
import { useCallback as useCallback38 } from "react";
|
|
6025
|
+
var updateClosedSessionService = (env) => {
|
|
6026
|
+
const updateClosedSession = useCallback38(
|
|
6027
|
+
({
|
|
6028
|
+
model,
|
|
6029
|
+
domain,
|
|
6030
|
+
values,
|
|
5764
6031
|
service,
|
|
5765
|
-
xNode
|
|
5766
|
-
kwargs,
|
|
5767
|
-
withContext
|
|
6032
|
+
xNode
|
|
5768
6033
|
}) => {
|
|
5769
|
-
const
|
|
5770
|
-
model
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
with_context: withContext
|
|
6034
|
+
const jsonData = {
|
|
6035
|
+
model,
|
|
6036
|
+
domain,
|
|
6037
|
+
values
|
|
5774
6038
|
};
|
|
5775
|
-
return env?.requests
|
|
5776
|
-
"/
|
|
5777
|
-
|
|
6039
|
+
return env?.requests.post(
|
|
6040
|
+
"/create_update" /* CREATE_UPDATE */,
|
|
6041
|
+
jsonData,
|
|
5778
6042
|
{
|
|
5779
6043
|
headers: {
|
|
5780
6044
|
"Content-Type": "application/json",
|
|
@@ -5787,130 +6051,62 @@ function useViewService() {
|
|
|
5787
6051
|
[env]
|
|
5788
6052
|
);
|
|
5789
6053
|
return {
|
|
5790
|
-
|
|
5791
|
-
getMenu,
|
|
5792
|
-
getActionDetail,
|
|
5793
|
-
getResequence,
|
|
5794
|
-
getSelectionItem,
|
|
5795
|
-
loadMessages,
|
|
5796
|
-
getVersion,
|
|
5797
|
-
grantAccess,
|
|
5798
|
-
removeTotpSetUp,
|
|
5799
|
-
requestSetupTotp,
|
|
5800
|
-
settingsWebRead2fa,
|
|
5801
|
-
signInSSO,
|
|
5802
|
-
verify2FA,
|
|
5803
|
-
get2FAMethods,
|
|
5804
|
-
verifyTotp,
|
|
5805
|
-
getASession,
|
|
5806
|
-
updateClosedSession,
|
|
5807
|
-
manageSession,
|
|
5808
|
-
handleClosingSession,
|
|
5809
|
-
createSession,
|
|
5810
|
-
getPOS,
|
|
5811
|
-
createEntity,
|
|
5812
|
-
getList,
|
|
5813
|
-
updateEntity,
|
|
5814
|
-
deleteEntity,
|
|
5815
|
-
loadDataPosSession,
|
|
5816
|
-
manageOnChange,
|
|
5817
|
-
getOrderLine,
|
|
5818
|
-
getProductImage,
|
|
5819
|
-
checkPayment,
|
|
5820
|
-
handleCloseSession,
|
|
5821
|
-
handleClosingDetailSession,
|
|
5822
|
-
createPosConfig,
|
|
5823
|
-
searchJournal,
|
|
5824
|
-
getPreparationDisplayData,
|
|
5825
|
-
changeOrderPreparaionState,
|
|
5826
|
-
updateOrderStatus,
|
|
5827
|
-
processOrder,
|
|
5828
|
-
generatePaymentQRInfo,
|
|
5829
|
-
savePinCode,
|
|
5830
|
-
getPinCode,
|
|
5831
|
-
getNotifications,
|
|
5832
|
-
createEInvoice,
|
|
5833
|
-
getCurrentUser,
|
|
5834
|
-
getCountry,
|
|
5835
|
-
getCity,
|
|
5836
|
-
getWard,
|
|
5837
|
-
getPartnerTitle
|
|
6054
|
+
updateClosedSession
|
|
5838
6055
|
};
|
|
5839
|
-
}
|
|
6056
|
+
};
|
|
5840
6057
|
|
|
5841
|
-
// src/services/
|
|
5842
|
-
import { useCallback as
|
|
5843
|
-
|
|
5844
|
-
const
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
}) => {
|
|
5851
|
-
return env.requests.post(
|
|
5852
|
-
"/read_group" /* READ_GROUP */,
|
|
5853
|
-
body,
|
|
5854
|
-
{
|
|
5855
|
-
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
5856
|
-
},
|
|
5857
|
-
service
|
|
5858
|
-
);
|
|
5859
|
-
},
|
|
5860
|
-
[env]
|
|
5861
|
-
);
|
|
5862
|
-
const getDataChart = useCallback11(
|
|
5863
|
-
async ({
|
|
5864
|
-
service,
|
|
6058
|
+
// src/services/pos-service/update-entity.ts
|
|
6059
|
+
import { useCallback as useCallback39 } from "react";
|
|
6060
|
+
var updateEntityService = (env) => {
|
|
6061
|
+
const updateEntity = useCallback39(
|
|
6062
|
+
({
|
|
6063
|
+
model,
|
|
6064
|
+
domain,
|
|
6065
|
+
values,
|
|
6066
|
+
isCreateEndpoint = true,
|
|
5865
6067
|
xNode,
|
|
5866
|
-
|
|
5867
|
-
path,
|
|
5868
|
-
method = "POST"
|
|
6068
|
+
service
|
|
5869
6069
|
}) => {
|
|
5870
|
-
const
|
|
5871
|
-
|
|
5872
|
-
|
|
6070
|
+
const jsonData = {
|
|
6071
|
+
model,
|
|
6072
|
+
domain,
|
|
6073
|
+
values
|
|
5873
6074
|
};
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
{
|
|
5878
|
-
headers
|
|
5879
|
-
},
|
|
5880
|
-
service
|
|
5881
|
-
);
|
|
5882
|
-
}
|
|
5883
|
-
return env.requests.post(
|
|
5884
|
-
path,
|
|
5885
|
-
body,
|
|
6075
|
+
return env?.requests.post(
|
|
6076
|
+
isCreateEndpoint ? "/create_update" /* CREATE_UPDATE */ : "/call" /* CALL_PATH */,
|
|
6077
|
+
jsonData,
|
|
5886
6078
|
{
|
|
5887
|
-
headers
|
|
6079
|
+
headers: {
|
|
6080
|
+
"Content-Type": "application/json",
|
|
6081
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
6082
|
+
}
|
|
5888
6083
|
},
|
|
5889
6084
|
service
|
|
5890
6085
|
);
|
|
5891
6086
|
},
|
|
5892
6087
|
[env]
|
|
5893
6088
|
);
|
|
5894
|
-
return {
|
|
5895
|
-
|
|
6089
|
+
return {
|
|
6090
|
+
updateEntity
|
|
6091
|
+
};
|
|
6092
|
+
};
|
|
5896
6093
|
|
|
5897
|
-
// src/services/pos-service/
|
|
5898
|
-
import { useCallback as
|
|
5899
|
-
var
|
|
5900
|
-
const
|
|
6094
|
+
// src/services/pos-service/update-order-status.ts
|
|
6095
|
+
import { useCallback as useCallback40 } from "react";
|
|
6096
|
+
var updateOrderStatusService = (env) => {
|
|
6097
|
+
const updateOrderStatus = useCallback40(
|
|
5901
6098
|
({
|
|
5902
|
-
|
|
5903
|
-
|
|
6099
|
+
orderId,
|
|
6100
|
+
state,
|
|
5904
6101
|
xNode,
|
|
5905
|
-
service
|
|
5906
|
-
isCreateEndpoint = false
|
|
6102
|
+
service
|
|
5907
6103
|
}) => {
|
|
5908
6104
|
const jsonData = {
|
|
5909
|
-
|
|
5910
|
-
|
|
6105
|
+
order_id: orderId,
|
|
6106
|
+
state
|
|
5911
6107
|
};
|
|
5912
|
-
return env?.requests.
|
|
5913
|
-
|
|
6108
|
+
return env?.requests.put(
|
|
6109
|
+
"/pos-order/status" /* POS_ORDER_STATUS */,
|
|
5914
6110
|
jsonData,
|
|
5915
6111
|
{
|
|
5916
6112
|
headers: {
|
|
@@ -5924,16 +6120,50 @@ var addEntityService = (env) => {
|
|
|
5924
6120
|
[env]
|
|
5925
6121
|
);
|
|
5926
6122
|
return {
|
|
5927
|
-
|
|
6123
|
+
updateOrderStatus
|
|
5928
6124
|
};
|
|
5929
6125
|
};
|
|
5930
6126
|
|
|
5931
6127
|
// src/services/pos-service/index.ts
|
|
6128
|
+
var serviceFactories = [
|
|
6129
|
+
addEntityService,
|
|
6130
|
+
getASessionService,
|
|
6131
|
+
changOrderPreparationStateService,
|
|
6132
|
+
checkPaymentService,
|
|
6133
|
+
createEInvoiceService,
|
|
6134
|
+
createEntityService,
|
|
6135
|
+
createPosConfigService,
|
|
6136
|
+
createSessionService,
|
|
6137
|
+
deleteEntityService,
|
|
6138
|
+
generatePaymentQrInfoService,
|
|
6139
|
+
getCurrentUserService,
|
|
6140
|
+
getListService,
|
|
6141
|
+
getOrderLineService,
|
|
6142
|
+
getPinCodeService,
|
|
6143
|
+
getPosService,
|
|
6144
|
+
getPreparationDisplayDataService,
|
|
6145
|
+
getProductImageService,
|
|
6146
|
+
handleCloseSessionService,
|
|
6147
|
+
handleClosingDetailSessionService,
|
|
6148
|
+
handleClosingSessionService,
|
|
6149
|
+
loadDataPosSessionService,
|
|
6150
|
+
manageOnchangeService,
|
|
6151
|
+
manageSessionService,
|
|
6152
|
+
processOrderService,
|
|
6153
|
+
savePinCodeService,
|
|
6154
|
+
searchJournalService,
|
|
6155
|
+
updateClosedSessionService,
|
|
6156
|
+
updateEntityService,
|
|
6157
|
+
updateOrderStatusService
|
|
6158
|
+
];
|
|
5932
6159
|
var usePosService = () => {
|
|
5933
6160
|
const { env } = useEnv();
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
6161
|
+
const service = {};
|
|
6162
|
+
for (const factory of serviceFactories) {
|
|
6163
|
+
const instance = factory(env);
|
|
6164
|
+
Object.assign(service, instance);
|
|
6165
|
+
}
|
|
6166
|
+
return service;
|
|
5937
6167
|
};
|
|
5938
6168
|
|
|
5939
6169
|
// src/hooks/auth/use-forgot-password.ts
|
|
@@ -6805,9 +7035,9 @@ var BaseModel = class {
|
|
|
6805
7035
|
};
|
|
6806
7036
|
|
|
6807
7037
|
// src/hooks/model/use-model.ts
|
|
6808
|
-
import { useCallback as
|
|
7038
|
+
import { useCallback as useCallback41 } from "react";
|
|
6809
7039
|
var useModel = () => {
|
|
6810
|
-
const initModel =
|
|
7040
|
+
const initModel = useCallback41((modelData) => {
|
|
6811
7041
|
switch (modelData?.name) {
|
|
6812
7042
|
default:
|
|
6813
7043
|
return new BaseModel(modelData);
|
|
@@ -7443,655 +7673,27 @@ var useVerifyTotp = () => {
|
|
|
7443
7673
|
};
|
|
7444
7674
|
var use_verify_totp_default = useVerifyTotp;
|
|
7445
7675
|
|
|
7446
|
-
// src/hooks/view/use-
|
|
7676
|
+
// src/hooks/view/use-gen-serial-number.ts
|
|
7447
7677
|
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
7448
|
-
var
|
|
7449
|
-
const {
|
|
7678
|
+
var useGenSerialNumber = () => {
|
|
7679
|
+
const { generateSerialNumber } = useActionService();
|
|
7450
7680
|
return useMutation51({
|
|
7451
7681
|
mutationFn: ({
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
domain,
|
|
7455
|
-
service,
|
|
7456
|
-
xNode
|
|
7457
|
-
}) => {
|
|
7458
|
-
return getASession({
|
|
7459
|
-
model,
|
|
7460
|
-
args,
|
|
7461
|
-
domain,
|
|
7462
|
-
service,
|
|
7463
|
-
xNode
|
|
7464
|
-
});
|
|
7465
|
-
}
|
|
7466
|
-
});
|
|
7467
|
-
};
|
|
7468
|
-
var use_get_a_session_default = useGetASession;
|
|
7469
|
-
|
|
7470
|
-
// src/hooks/view/use-update-closed-session.ts
|
|
7471
|
-
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
7472
|
-
var useUpdateClosedSession = () => {
|
|
7473
|
-
const { updateClosedSession } = useViewService();
|
|
7474
|
-
return useMutation52({
|
|
7475
|
-
mutationFn: ({
|
|
7476
|
-
model,
|
|
7477
|
-
domain,
|
|
7478
|
-
values,
|
|
7479
|
-
service,
|
|
7480
|
-
xNode
|
|
7481
|
-
}) => {
|
|
7482
|
-
return updateClosedSession({
|
|
7483
|
-
model,
|
|
7484
|
-
domain,
|
|
7485
|
-
values,
|
|
7486
|
-
service,
|
|
7487
|
-
xNode
|
|
7488
|
-
});
|
|
7489
|
-
}
|
|
7490
|
-
});
|
|
7491
|
-
};
|
|
7492
|
-
var use_update_closed_session_default = useUpdateClosedSession;
|
|
7493
|
-
|
|
7494
|
-
// src/hooks/view/use-manage-session.ts
|
|
7495
|
-
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
7496
|
-
var useManageSession = () => {
|
|
7497
|
-
const { manageSession } = useViewService();
|
|
7498
|
-
return useMutation53({
|
|
7499
|
-
mutationFn: ({
|
|
7500
|
-
model,
|
|
7501
|
-
ids,
|
|
7502
|
-
args,
|
|
7503
|
-
kwargs,
|
|
7504
|
-
service,
|
|
7505
|
-
xNode,
|
|
7506
|
-
method
|
|
7507
|
-
}) => {
|
|
7508
|
-
return manageSession({
|
|
7509
|
-
model,
|
|
7510
|
-
method,
|
|
7511
|
-
ids,
|
|
7512
|
-
args,
|
|
7513
|
-
kwargs,
|
|
7514
|
-
service,
|
|
7515
|
-
xNode
|
|
7516
|
-
});
|
|
7517
|
-
}
|
|
7518
|
-
});
|
|
7519
|
-
};
|
|
7520
|
-
var use_manage_session_default = useManageSession;
|
|
7521
|
-
|
|
7522
|
-
// src/hooks/view/use-handle-closing-session.ts
|
|
7523
|
-
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
7524
|
-
var useHandleClosingSession = () => {
|
|
7525
|
-
const { handleClosingSession } = useViewService();
|
|
7526
|
-
return useMutation54({
|
|
7527
|
-
mutationFn: ({
|
|
7528
|
-
model,
|
|
7529
|
-
method,
|
|
7530
|
-
ids,
|
|
7531
|
-
kwargs,
|
|
7532
|
-
xNode,
|
|
7533
|
-
service
|
|
7534
|
-
}) => {
|
|
7535
|
-
return handleClosingSession({
|
|
7536
|
-
model,
|
|
7537
|
-
method,
|
|
7538
|
-
ids,
|
|
7539
|
-
kwargs,
|
|
7540
|
-
service,
|
|
7541
|
-
xNode
|
|
7542
|
-
});
|
|
7543
|
-
}
|
|
7544
|
-
});
|
|
7545
|
-
};
|
|
7546
|
-
var use_handle_closing_session_default = useHandleClosingSession;
|
|
7547
|
-
|
|
7548
|
-
// src/hooks/view/use-create-session.ts
|
|
7549
|
-
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
7550
|
-
var useCreateSession = () => {
|
|
7551
|
-
const { createSession } = useViewService();
|
|
7552
|
-
return useMutation55({
|
|
7553
|
-
mutationFn: ({
|
|
7554
|
-
model,
|
|
7555
|
-
configId,
|
|
7556
|
-
service,
|
|
7557
|
-
xNode
|
|
7558
|
-
}) => {
|
|
7559
|
-
return createSession({
|
|
7560
|
-
model,
|
|
7561
|
-
configId,
|
|
7562
|
-
service,
|
|
7563
|
-
xNode
|
|
7564
|
-
});
|
|
7565
|
-
}
|
|
7566
|
-
});
|
|
7567
|
-
};
|
|
7568
|
-
var use_create_session_default = useCreateSession;
|
|
7569
|
-
|
|
7570
|
-
// src/hooks/view/use-get-pos.ts
|
|
7571
|
-
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
7572
|
-
var useGetPos = () => {
|
|
7573
|
-
const { getPOS } = useViewService();
|
|
7574
|
-
return useMutation56({
|
|
7575
|
-
mutationFn: ({
|
|
7576
|
-
model,
|
|
7577
|
-
args,
|
|
7578
|
-
domain,
|
|
7579
|
-
service,
|
|
7580
|
-
xNode
|
|
7581
|
-
}) => {
|
|
7582
|
-
return getPOS({
|
|
7583
|
-
model,
|
|
7584
|
-
args,
|
|
7585
|
-
domain,
|
|
7586
|
-
service,
|
|
7587
|
-
xNode
|
|
7588
|
-
});
|
|
7589
|
-
}
|
|
7590
|
-
});
|
|
7591
|
-
};
|
|
7592
|
-
var use_get_pos_default = useGetPos;
|
|
7593
|
-
|
|
7594
|
-
// src/hooks/view/use-create-entity.ts
|
|
7595
|
-
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
7596
|
-
var useCreateEntity = () => {
|
|
7597
|
-
const { createEntity } = useViewService();
|
|
7598
|
-
return useMutation57({
|
|
7599
|
-
mutationFn: ({
|
|
7600
|
-
model,
|
|
7601
|
-
args,
|
|
7602
|
-
xNode,
|
|
7603
|
-
service
|
|
7604
|
-
}) => {
|
|
7605
|
-
return createEntity({
|
|
7606
|
-
model,
|
|
7607
|
-
args,
|
|
7608
|
-
xNode,
|
|
7609
|
-
service
|
|
7610
|
-
});
|
|
7611
|
-
}
|
|
7612
|
-
});
|
|
7613
|
-
};
|
|
7614
|
-
var use_create_entity_default = useCreateEntity;
|
|
7615
|
-
|
|
7616
|
-
// src/hooks/view/use-get-list.ts
|
|
7617
|
-
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
7618
|
-
var useGetList = () => {
|
|
7619
|
-
const { getList } = useViewService();
|
|
7620
|
-
return useMutation58({
|
|
7621
|
-
mutationFn: ({
|
|
7622
|
-
model,
|
|
7623
|
-
domain,
|
|
7624
|
-
xNode,
|
|
7625
|
-
service,
|
|
7626
|
-
specification,
|
|
7627
|
-
offset,
|
|
7628
|
-
limit
|
|
7629
|
-
}) => {
|
|
7630
|
-
return getList({
|
|
7631
|
-
model,
|
|
7632
|
-
domain,
|
|
7633
|
-
service,
|
|
7634
|
-
xNode,
|
|
7635
|
-
specification,
|
|
7636
|
-
offset,
|
|
7637
|
-
limit
|
|
7638
|
-
});
|
|
7639
|
-
}
|
|
7640
|
-
});
|
|
7641
|
-
};
|
|
7642
|
-
var use_get_list_default = useGetList;
|
|
7643
|
-
|
|
7644
|
-
// src/hooks/view/use-update-entity.ts
|
|
7645
|
-
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
7646
|
-
var useUpdateEntity = () => {
|
|
7647
|
-
const { updateEntity } = useViewService();
|
|
7648
|
-
return useMutation59({
|
|
7649
|
-
mutationFn: ({
|
|
7650
|
-
model,
|
|
7651
|
-
domain,
|
|
7652
|
-
values,
|
|
7653
|
-
xNode,
|
|
7654
|
-
service
|
|
7655
|
-
}) => {
|
|
7656
|
-
return updateEntity({
|
|
7657
|
-
model,
|
|
7658
|
-
domain,
|
|
7659
|
-
values,
|
|
7660
|
-
xNode,
|
|
7661
|
-
service
|
|
7662
|
-
});
|
|
7663
|
-
}
|
|
7664
|
-
});
|
|
7665
|
-
};
|
|
7666
|
-
var use_update_entity_default = useUpdateEntity;
|
|
7667
|
-
|
|
7668
|
-
// src/hooks/view/use-delete-entity.ts
|
|
7669
|
-
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
7670
|
-
var useDeleteEntity = () => {
|
|
7671
|
-
const { deleteEntity } = useViewService();
|
|
7672
|
-
return useMutation60({
|
|
7673
|
-
mutationFn: ({
|
|
7674
|
-
model,
|
|
7675
|
-
ids,
|
|
7676
|
-
xNode,
|
|
7677
|
-
service,
|
|
7678
|
-
method
|
|
7679
|
-
}) => {
|
|
7680
|
-
return deleteEntity({
|
|
7681
|
-
model,
|
|
7682
|
-
ids,
|
|
7683
|
-
xNode,
|
|
7684
|
-
service,
|
|
7685
|
-
method
|
|
7686
|
-
});
|
|
7687
|
-
}
|
|
7688
|
-
});
|
|
7689
|
-
};
|
|
7690
|
-
var use_delete_entity_default = useDeleteEntity;
|
|
7691
|
-
|
|
7692
|
-
// src/hooks/view/use-load-data-pos-session.ts
|
|
7693
|
-
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
7694
|
-
var useLoadDataPosSession = () => {
|
|
7695
|
-
const { loadDataPosSession } = useViewService();
|
|
7696
|
-
return useMutation61({
|
|
7697
|
-
mutationFn: ({
|
|
7698
|
-
model,
|
|
7699
|
-
ids,
|
|
7700
|
-
xNode,
|
|
7701
|
-
service,
|
|
7702
|
-
withContext,
|
|
7703
|
-
modelsToLoad,
|
|
7704
|
-
searchParams
|
|
7705
|
-
}) => {
|
|
7706
|
-
return loadDataPosSession({
|
|
7707
|
-
model,
|
|
7708
|
-
ids,
|
|
7709
|
-
xNode,
|
|
7710
|
-
service,
|
|
7711
|
-
withContext,
|
|
7712
|
-
modelsToLoad,
|
|
7713
|
-
searchParams
|
|
7714
|
-
});
|
|
7715
|
-
}
|
|
7716
|
-
});
|
|
7717
|
-
};
|
|
7718
|
-
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
7719
|
-
|
|
7720
|
-
// src/hooks/view/use-manage-on-change.ts
|
|
7721
|
-
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
7722
|
-
var useManageOnChange = () => {
|
|
7723
|
-
const { manageOnChange } = useViewService();
|
|
7724
|
-
return useMutation62({
|
|
7725
|
-
mutationFn: ({
|
|
7726
|
-
model,
|
|
7727
|
-
ids,
|
|
7728
|
-
args,
|
|
7729
|
-
service,
|
|
7730
|
-
xNode
|
|
7731
|
-
}) => {
|
|
7732
|
-
return manageOnChange({
|
|
7733
|
-
model,
|
|
7734
|
-
ids,
|
|
7735
|
-
args,
|
|
7736
|
-
service,
|
|
7737
|
-
xNode
|
|
7738
|
-
});
|
|
7739
|
-
}
|
|
7740
|
-
});
|
|
7741
|
-
};
|
|
7742
|
-
var use_manage_on_change_default = useManageOnChange;
|
|
7743
|
-
|
|
7744
|
-
// src/hooks/view/use-gen-serial-number.ts
|
|
7745
|
-
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
7746
|
-
var useGenSerialNumber = () => {
|
|
7747
|
-
const { generateSerialNumber } = useActionService();
|
|
7748
|
-
return useMutation63({
|
|
7749
|
-
mutationFn: ({
|
|
7750
|
-
kwargs,
|
|
7751
|
-
context,
|
|
7682
|
+
kwargs,
|
|
7683
|
+
context,
|
|
7752
7684
|
service,
|
|
7753
7685
|
xNode
|
|
7754
7686
|
}) => {
|
|
7755
7687
|
return generateSerialNumber({
|
|
7756
7688
|
kwargs,
|
|
7757
7689
|
context,
|
|
7758
|
-
service,
|
|
7759
|
-
xNode
|
|
7760
|
-
});
|
|
7761
|
-
}
|
|
7762
|
-
});
|
|
7763
|
-
};
|
|
7764
|
-
var use_gen_serial_number_default = useGenSerialNumber;
|
|
7765
|
-
|
|
7766
|
-
// src/hooks/view/use-get-order-line.ts
|
|
7767
|
-
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
7768
|
-
var useGetOrderLine = () => {
|
|
7769
|
-
const { getOrderLine } = useViewService();
|
|
7770
|
-
return useMutation64({
|
|
7771
|
-
mutationFn: ({
|
|
7772
|
-
model,
|
|
7773
|
-
ids,
|
|
7774
|
-
specification,
|
|
7775
|
-
xNode,
|
|
7776
|
-
service
|
|
7777
|
-
}) => {
|
|
7778
|
-
return getOrderLine({
|
|
7779
|
-
model,
|
|
7780
|
-
ids,
|
|
7781
|
-
specification,
|
|
7782
|
-
xNode,
|
|
7783
|
-
service
|
|
7784
|
-
});
|
|
7785
|
-
}
|
|
7786
|
-
});
|
|
7787
|
-
};
|
|
7788
|
-
var use_get_order_line_default = useGetOrderLine;
|
|
7789
|
-
|
|
7790
|
-
// src/hooks/view/use-get-product-image.ts
|
|
7791
|
-
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
7792
|
-
var useGetProductImage = () => {
|
|
7793
|
-
const { getProductImage } = useViewService();
|
|
7794
|
-
return useMutation65({
|
|
7795
|
-
mutationFn: ({
|
|
7796
|
-
model,
|
|
7797
|
-
fields,
|
|
7798
|
-
limit,
|
|
7799
|
-
offset,
|
|
7800
|
-
domain,
|
|
7801
|
-
xNode,
|
|
7802
|
-
service,
|
|
7803
|
-
searchParams
|
|
7804
|
-
}) => {
|
|
7805
|
-
return getProductImage({
|
|
7806
|
-
model,
|
|
7807
|
-
fields,
|
|
7808
|
-
limit,
|
|
7809
|
-
offset,
|
|
7810
|
-
domain,
|
|
7811
|
-
xNode,
|
|
7812
|
-
service,
|
|
7813
|
-
searchParams
|
|
7814
|
-
});
|
|
7815
|
-
}
|
|
7816
|
-
});
|
|
7817
|
-
};
|
|
7818
|
-
var use_get_product_image_default = useGetProductImage;
|
|
7819
|
-
|
|
7820
|
-
// src/hooks/view/use-check-payment.ts
|
|
7821
|
-
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
7822
|
-
var useCheckPayment = () => {
|
|
7823
|
-
const { checkPayment } = useViewService();
|
|
7824
|
-
return useMutation66({
|
|
7825
|
-
mutationFn: ({
|
|
7826
|
-
model,
|
|
7827
|
-
ids,
|
|
7828
|
-
withContext,
|
|
7829
|
-
xNode,
|
|
7830
|
-
service
|
|
7831
|
-
}) => {
|
|
7832
|
-
return checkPayment({
|
|
7833
|
-
model,
|
|
7834
|
-
ids,
|
|
7835
|
-
withContext,
|
|
7836
|
-
xNode,
|
|
7837
|
-
service
|
|
7838
|
-
});
|
|
7839
|
-
}
|
|
7840
|
-
});
|
|
7841
|
-
};
|
|
7842
|
-
var use_check_payment_default = useCheckPayment;
|
|
7843
|
-
|
|
7844
|
-
// src/hooks/view/use-handle-close-session.ts
|
|
7845
|
-
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
7846
|
-
var useHandleCloseSession = () => {
|
|
7847
|
-
const { handleCloseSession } = useViewService();
|
|
7848
|
-
return useMutation67({
|
|
7849
|
-
mutationFn: ({
|
|
7850
|
-
model,
|
|
7851
|
-
ids,
|
|
7852
|
-
xNode,
|
|
7853
|
-
service,
|
|
7854
|
-
method
|
|
7855
|
-
}) => {
|
|
7856
|
-
return handleCloseSession({
|
|
7857
|
-
model,
|
|
7858
|
-
ids,
|
|
7859
|
-
xNode,
|
|
7860
|
-
service,
|
|
7861
|
-
method
|
|
7862
|
-
});
|
|
7863
|
-
}
|
|
7864
|
-
});
|
|
7865
|
-
};
|
|
7866
|
-
var use_handle_close_session_default = useHandleCloseSession;
|
|
7867
|
-
|
|
7868
|
-
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
7869
|
-
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
7870
|
-
var useHandleClosingDetailSession = () => {
|
|
7871
|
-
const { handleClosingDetailSession } = useViewService();
|
|
7872
|
-
return useMutation68({
|
|
7873
|
-
mutationFn: ({
|
|
7874
|
-
model,
|
|
7875
|
-
ids,
|
|
7876
|
-
method,
|
|
7877
|
-
xNode,
|
|
7878
|
-
service,
|
|
7879
|
-
kwargs
|
|
7880
|
-
}) => {
|
|
7881
|
-
return handleClosingDetailSession({
|
|
7882
|
-
model,
|
|
7883
|
-
ids,
|
|
7884
|
-
method,
|
|
7885
|
-
xNode,
|
|
7886
|
-
service,
|
|
7887
|
-
kwargs
|
|
7888
|
-
});
|
|
7889
|
-
}
|
|
7890
|
-
});
|
|
7891
|
-
};
|
|
7892
|
-
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
7893
|
-
|
|
7894
|
-
// src/hooks/view/use-create-pos-config.ts
|
|
7895
|
-
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
7896
|
-
var useCreatePosConfig = () => {
|
|
7897
|
-
const { createPosConfig } = useViewService();
|
|
7898
|
-
return useMutation69({
|
|
7899
|
-
mutationFn: ({
|
|
7900
|
-
model,
|
|
7901
|
-
name,
|
|
7902
|
-
modulePosRestaurant,
|
|
7903
|
-
xNode,
|
|
7904
|
-
service
|
|
7905
|
-
}) => {
|
|
7906
|
-
return createPosConfig({
|
|
7907
|
-
model,
|
|
7908
|
-
name,
|
|
7909
|
-
modulePosRestaurant,
|
|
7910
|
-
xNode,
|
|
7911
|
-
service
|
|
7912
|
-
});
|
|
7913
|
-
}
|
|
7914
|
-
});
|
|
7915
|
-
};
|
|
7916
|
-
var use_create_pos_config_default = useCreatePosConfig;
|
|
7917
|
-
|
|
7918
|
-
// src/hooks/view/use-search-journal.ts
|
|
7919
|
-
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
7920
|
-
var useSearchJournal = () => {
|
|
7921
|
-
const { searchJournal } = useViewService();
|
|
7922
|
-
return useMutation70({
|
|
7923
|
-
mutationFn: ({
|
|
7924
|
-
model,
|
|
7925
|
-
method,
|
|
7926
|
-
args,
|
|
7927
|
-
kwargs,
|
|
7928
|
-
xNode,
|
|
7929
|
-
service
|
|
7930
|
-
}) => {
|
|
7931
|
-
return searchJournal({
|
|
7932
|
-
model,
|
|
7933
|
-
method,
|
|
7934
|
-
args,
|
|
7935
|
-
kwargs,
|
|
7936
|
-
xNode,
|
|
7937
|
-
service
|
|
7938
|
-
});
|
|
7939
|
-
}
|
|
7940
|
-
});
|
|
7941
|
-
};
|
|
7942
|
-
var use_search_journal_default = useSearchJournal;
|
|
7943
|
-
|
|
7944
|
-
// src/hooks/view/useGetPreparaionDisplayData.ts
|
|
7945
|
-
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
7946
|
-
var useGetPreparationDisplayData = () => {
|
|
7947
|
-
const { getPreparationDisplayData } = useViewService();
|
|
7948
|
-
return useMutation71({
|
|
7949
|
-
mutationFn: ({
|
|
7950
|
-
ids,
|
|
7951
|
-
service,
|
|
7952
|
-
xNode,
|
|
7953
|
-
withContext
|
|
7954
|
-
}) => {
|
|
7955
|
-
return getPreparationDisplayData({
|
|
7956
|
-
ids,
|
|
7957
|
-
service,
|
|
7958
|
-
xNode,
|
|
7959
|
-
withContext
|
|
7960
|
-
});
|
|
7961
|
-
}
|
|
7962
|
-
});
|
|
7963
|
-
};
|
|
7964
|
-
var useGetPreparaionDisplayData_default = useGetPreparationDisplayData;
|
|
7965
|
-
|
|
7966
|
-
// src/hooks/view/useChangeOrderPreparaionState.ts
|
|
7967
|
-
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
7968
|
-
var useChangeOrderPreparationState = () => {
|
|
7969
|
-
const { changeOrderPreparaionState } = useViewService();
|
|
7970
|
-
return useMutation72({
|
|
7971
|
-
mutationFn: ({
|
|
7972
|
-
orderId,
|
|
7973
|
-
stageId,
|
|
7974
|
-
preparationDisplayId,
|
|
7975
|
-
service,
|
|
7976
|
-
xNode
|
|
7977
|
-
}) => {
|
|
7978
|
-
return changeOrderPreparaionState({
|
|
7979
|
-
orderId,
|
|
7980
|
-
stageId,
|
|
7981
|
-
preparationDisplayId,
|
|
7982
|
-
service,
|
|
7983
|
-
xNode
|
|
7984
|
-
});
|
|
7985
|
-
}
|
|
7986
|
-
});
|
|
7987
|
-
};
|
|
7988
|
-
var useChangeOrderPreparaionState_default = useChangeOrderPreparationState;
|
|
7989
|
-
|
|
7990
|
-
// src/hooks/view/use-update-order-status.ts
|
|
7991
|
-
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
7992
|
-
var useUpdateOrderStatus = () => {
|
|
7993
|
-
const { updateOrderStatus } = useViewService();
|
|
7994
|
-
return useMutation73({
|
|
7995
|
-
mutationFn: ({
|
|
7996
|
-
orderId,
|
|
7997
|
-
state,
|
|
7998
|
-
service,
|
|
7999
|
-
xNode
|
|
8000
|
-
}) => {
|
|
8001
|
-
return updateOrderStatus({
|
|
8002
|
-
orderId,
|
|
8003
|
-
state,
|
|
8004
|
-
service,
|
|
8005
|
-
xNode
|
|
8006
|
-
});
|
|
8007
|
-
}
|
|
8008
|
-
});
|
|
8009
|
-
};
|
|
8010
|
-
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8011
|
-
|
|
8012
|
-
// src/hooks/view/use-process-order.ts
|
|
8013
|
-
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8014
|
-
var useProcessOrder = () => {
|
|
8015
|
-
const { processOrder } = useViewService();
|
|
8016
|
-
return useMutation74({
|
|
8017
|
-
mutationFn: ({
|
|
8018
|
-
orderId,
|
|
8019
|
-
xNode,
|
|
8020
|
-
service
|
|
8021
|
-
}) => processOrder({
|
|
8022
|
-
orderId,
|
|
8023
|
-
xNode,
|
|
8024
|
-
service
|
|
8025
|
-
})
|
|
8026
|
-
});
|
|
8027
|
-
};
|
|
8028
|
-
var use_process_order_default = useProcessOrder;
|
|
8029
|
-
|
|
8030
|
-
// src/hooks/view/use-generate-payment-qr-info.ts
|
|
8031
|
-
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8032
|
-
var useGeneratePaymentQrInfo = () => {
|
|
8033
|
-
const { generatePaymentQRInfo } = useViewService();
|
|
8034
|
-
return useMutation75({
|
|
8035
|
-
mutationFn: ({
|
|
8036
|
-
orderId,
|
|
8037
|
-
amount,
|
|
8038
|
-
posSessionId,
|
|
8039
|
-
xNode,
|
|
8040
|
-
service
|
|
8041
|
-
}) => {
|
|
8042
|
-
return generatePaymentQRInfo({
|
|
8043
|
-
orderId,
|
|
8044
|
-
amount,
|
|
8045
|
-
posSessionId,
|
|
8046
|
-
xNode,
|
|
8047
|
-
service
|
|
8048
|
-
});
|
|
8049
|
-
}
|
|
8050
|
-
});
|
|
8051
|
-
};
|
|
8052
|
-
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
8053
|
-
|
|
8054
|
-
// src/hooks/view/use-save-pin-code.ts
|
|
8055
|
-
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8056
|
-
var useSavePinCode = () => {
|
|
8057
|
-
const { savePinCode } = useViewService();
|
|
8058
|
-
return useMutation76({
|
|
8059
|
-
mutationFn: ({
|
|
8060
|
-
serialNumber,
|
|
8061
|
-
pinCode,
|
|
8062
|
-
xNode,
|
|
8063
|
-
service
|
|
8064
|
-
}) => {
|
|
8065
|
-
return savePinCode({
|
|
8066
|
-
serialNumber,
|
|
8067
|
-
pinCode,
|
|
8068
|
-
xNode,
|
|
8069
|
-
service
|
|
8070
|
-
});
|
|
8071
|
-
}
|
|
8072
|
-
});
|
|
8073
|
-
};
|
|
8074
|
-
var use_save_pin_code_default = useSavePinCode;
|
|
8075
|
-
|
|
8076
|
-
// src/hooks/view/use-get-pin-code.ts
|
|
8077
|
-
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8078
|
-
var useGetPinCode = () => {
|
|
8079
|
-
const { getPinCode } = useViewService();
|
|
8080
|
-
return useMutation77({
|
|
8081
|
-
mutationFn: ({
|
|
8082
|
-
serialNumber,
|
|
8083
|
-
xNode,
|
|
8084
|
-
service
|
|
8085
|
-
}) => {
|
|
8086
|
-
return getPinCode({
|
|
8087
|
-
serialNumber,
|
|
8088
|
-
xNode,
|
|
8089
|
-
service
|
|
7690
|
+
service,
|
|
7691
|
+
xNode
|
|
8090
7692
|
});
|
|
8091
7693
|
}
|
|
8092
7694
|
});
|
|
8093
7695
|
};
|
|
8094
|
-
var
|
|
7696
|
+
var use_gen_serial_number_default = useGenSerialNumber;
|
|
8095
7697
|
|
|
8096
7698
|
// src/hooks/view/use-get-notifications.ts
|
|
8097
7699
|
import { useQuery as useQuery23 } from "@tanstack/react-query";
|
|
@@ -8115,10 +7717,10 @@ var useGetNotifications = ({
|
|
|
8115
7717
|
var use_get_notifications_default = useGetNotifications;
|
|
8116
7718
|
|
|
8117
7719
|
// src/hooks/view/use-get-version.ts
|
|
8118
|
-
import { useMutation as
|
|
7720
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
8119
7721
|
var useGetVersion = () => {
|
|
8120
7722
|
const { getVersion } = useViewService();
|
|
8121
|
-
return
|
|
7723
|
+
return useMutation52({
|
|
8122
7724
|
mutationFn: () => {
|
|
8123
7725
|
return getVersion();
|
|
8124
7726
|
}
|
|
@@ -8126,52 +7728,11 @@ var useGetVersion = () => {
|
|
|
8126
7728
|
};
|
|
8127
7729
|
var use_get_version_default = useGetVersion;
|
|
8128
7730
|
|
|
8129
|
-
// src/hooks/view/use-create-e-invoice.ts
|
|
8130
|
-
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8131
|
-
var useCreateEInvoice = () => {
|
|
8132
|
-
const { createEInvoice } = useViewService();
|
|
8133
|
-
return useMutation79({
|
|
8134
|
-
mutationFn: ({
|
|
8135
|
-
service,
|
|
8136
|
-
xNode,
|
|
8137
|
-
kwargs,
|
|
8138
|
-
ids,
|
|
8139
|
-
withContext
|
|
8140
|
-
}) => {
|
|
8141
|
-
return createEInvoice({
|
|
8142
|
-
kwargs,
|
|
8143
|
-
ids,
|
|
8144
|
-
xNode,
|
|
8145
|
-
service,
|
|
8146
|
-
withContext
|
|
8147
|
-
});
|
|
8148
|
-
}
|
|
8149
|
-
});
|
|
8150
|
-
};
|
|
8151
|
-
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8152
|
-
|
|
8153
|
-
// src/hooks/view/use-get-current-user.ts
|
|
8154
|
-
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8155
|
-
var useGetCurrentUser = () => {
|
|
8156
|
-
const { getCurrentUser } = useViewService();
|
|
8157
|
-
return useMutation80({
|
|
8158
|
-
mutationFn: ({
|
|
8159
|
-
service,
|
|
8160
|
-
xNode,
|
|
8161
|
-
oauthUid,
|
|
8162
|
-
extraHeaders
|
|
8163
|
-
}) => {
|
|
8164
|
-
return getCurrentUser({ service, xNode, oauthUid, extraHeaders });
|
|
8165
|
-
}
|
|
8166
|
-
});
|
|
8167
|
-
};
|
|
8168
|
-
var use_get_current_user_default = useGetCurrentUser;
|
|
8169
|
-
|
|
8170
7731
|
// src/hooks/view/use-get-ward.ts
|
|
8171
|
-
import { useMutation as
|
|
7732
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
8172
7733
|
var useGetWard = () => {
|
|
8173
7734
|
const { getWard } = useViewService();
|
|
8174
|
-
return
|
|
7735
|
+
return useMutation53({
|
|
8175
7736
|
mutationFn: ({
|
|
8176
7737
|
service,
|
|
8177
7738
|
xNode,
|
|
@@ -8188,10 +7749,10 @@ var useGetWard = () => {
|
|
|
8188
7749
|
var use_get_ward_default = useGetWard;
|
|
8189
7750
|
|
|
8190
7751
|
// src/hooks/view/use-get-city.ts
|
|
8191
|
-
import { useMutation as
|
|
7752
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
8192
7753
|
var useGetCity = () => {
|
|
8193
7754
|
const { getCity } = useViewService();
|
|
8194
|
-
return
|
|
7755
|
+
return useMutation54({
|
|
8195
7756
|
mutationFn: ({
|
|
8196
7757
|
service,
|
|
8197
7758
|
xNode,
|
|
@@ -8210,10 +7771,10 @@ var useGetCity = () => {
|
|
|
8210
7771
|
var use_get_city_default = useGetCity;
|
|
8211
7772
|
|
|
8212
7773
|
// src/hooks/view/use-get-country.ts
|
|
8213
|
-
import { useMutation as
|
|
7774
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
8214
7775
|
var useGetCountry = () => {
|
|
8215
7776
|
const { getCountry } = useViewService();
|
|
8216
|
-
return
|
|
7777
|
+
return useMutation55({
|
|
8217
7778
|
mutationFn: ({
|
|
8218
7779
|
service,
|
|
8219
7780
|
xNode,
|
|
@@ -8232,10 +7793,10 @@ var useGetCountry = () => {
|
|
|
8232
7793
|
var use_get_country_default = useGetCountry;
|
|
8233
7794
|
|
|
8234
7795
|
// src/hooks/view/use-get-partner-title.ts
|
|
8235
|
-
import { useMutation as
|
|
7796
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
8236
7797
|
var useGetPartnerTitle = () => {
|
|
8237
7798
|
const { getPartnerTitle } = useViewService();
|
|
8238
|
-
return
|
|
7799
|
+
return useMutation56({
|
|
8239
7800
|
mutationFn: ({
|
|
8240
7801
|
service,
|
|
8241
7802
|
xNode,
|
|
@@ -8290,18 +7851,298 @@ var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) =
|
|
|
8290
7851
|
var use_get_data_chart_default = useGetDataChart;
|
|
8291
7852
|
|
|
8292
7853
|
// src/hooks/pos/use-add-entity.ts
|
|
8293
|
-
import { useMutation as
|
|
7854
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
8294
7855
|
var useAddEntity = () => {
|
|
8295
7856
|
const { addEntity } = usePosService();
|
|
8296
|
-
return
|
|
7857
|
+
return useMutation57({
|
|
8297
7858
|
mutationFn: addEntity
|
|
8298
7859
|
});
|
|
8299
7860
|
};
|
|
8300
7861
|
var use_add_entity_default = useAddEntity;
|
|
7862
|
+
|
|
7863
|
+
// src/hooks/pos/use-get-a-session.ts
|
|
7864
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
7865
|
+
var useGetASession = () => {
|
|
7866
|
+
const pos = usePosService();
|
|
7867
|
+
return useMutation58({
|
|
7868
|
+
mutationFn: pos.getASession
|
|
7869
|
+
});
|
|
7870
|
+
};
|
|
7871
|
+
var use_get_a_session_default = useGetASession;
|
|
7872
|
+
|
|
7873
|
+
// src/hooks/pos/use-change-order-preparation-state.ts
|
|
7874
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
7875
|
+
var useChangeOrderPreparationState = () => {
|
|
7876
|
+
const pos = usePosService();
|
|
7877
|
+
return useMutation59({
|
|
7878
|
+
mutationFn: pos.changeOrderPreparationState
|
|
7879
|
+
});
|
|
7880
|
+
};
|
|
7881
|
+
var use_change_order_preparation_state_default = useChangeOrderPreparationState;
|
|
7882
|
+
|
|
7883
|
+
// src/hooks/pos/use-check-payment.ts
|
|
7884
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
7885
|
+
var useCheckPayment = () => {
|
|
7886
|
+
const pos = usePosService();
|
|
7887
|
+
return useMutation60({
|
|
7888
|
+
mutationFn: pos.checkPayment
|
|
7889
|
+
});
|
|
7890
|
+
};
|
|
7891
|
+
var use_check_payment_default = useCheckPayment;
|
|
7892
|
+
|
|
7893
|
+
// src/hooks/pos/use-create-e-invoice.ts
|
|
7894
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
7895
|
+
var useCreateEInvoice = () => {
|
|
7896
|
+
const pos = usePosService();
|
|
7897
|
+
return useMutation61({
|
|
7898
|
+
mutationFn: pos.createEInvoice
|
|
7899
|
+
});
|
|
7900
|
+
};
|
|
7901
|
+
var use_create_e_invoice_default = useCreateEInvoice;
|
|
7902
|
+
|
|
7903
|
+
// src/hooks/pos/use-create-entity.ts
|
|
7904
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
7905
|
+
var useCreateEntity = () => {
|
|
7906
|
+
const pos = usePosService();
|
|
7907
|
+
return useMutation62({
|
|
7908
|
+
mutationFn: pos.createEntity
|
|
7909
|
+
});
|
|
7910
|
+
};
|
|
7911
|
+
var use_create_entity_default = useCreateEntity;
|
|
7912
|
+
|
|
7913
|
+
// src/hooks/pos/use-create-pos-config.ts
|
|
7914
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
7915
|
+
var useCreatePosConfig = () => {
|
|
7916
|
+
const pos = usePosService();
|
|
7917
|
+
return useMutation63({
|
|
7918
|
+
mutationFn: pos.createPosConfig
|
|
7919
|
+
});
|
|
7920
|
+
};
|
|
7921
|
+
var use_create_pos_config_default = useCreatePosConfig;
|
|
7922
|
+
|
|
7923
|
+
// src/hooks/pos/use-create-session.ts
|
|
7924
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
7925
|
+
var useCreateSession = () => {
|
|
7926
|
+
const pos = usePosService();
|
|
7927
|
+
return useMutation64({
|
|
7928
|
+
mutationFn: pos.createSession
|
|
7929
|
+
});
|
|
7930
|
+
};
|
|
7931
|
+
var use_create_session_default = useCreateSession;
|
|
7932
|
+
|
|
7933
|
+
// src/hooks/pos/use-delete-entity.ts
|
|
7934
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
7935
|
+
var useDeleteEntity = () => {
|
|
7936
|
+
const pos = usePosService();
|
|
7937
|
+
return useMutation65({
|
|
7938
|
+
mutationFn: pos.deleteEntity
|
|
7939
|
+
});
|
|
7940
|
+
};
|
|
7941
|
+
var use_delete_entity_default = useDeleteEntity;
|
|
7942
|
+
|
|
7943
|
+
// src/hooks/pos/use-generate-payment-qr-info.ts
|
|
7944
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
7945
|
+
var useGeneratePaymentQrInfo = () => {
|
|
7946
|
+
const pos = usePosService();
|
|
7947
|
+
return useMutation66({
|
|
7948
|
+
mutationFn: pos.generatePaymentQRInfo
|
|
7949
|
+
});
|
|
7950
|
+
};
|
|
7951
|
+
var use_generate_payment_qr_info_default = useGeneratePaymentQrInfo;
|
|
7952
|
+
|
|
7953
|
+
// src/hooks/pos/use-get-current-user.ts
|
|
7954
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
7955
|
+
var useGetCurrentUser = () => {
|
|
7956
|
+
const pos = usePosService();
|
|
7957
|
+
return useMutation67({
|
|
7958
|
+
mutationFn: pos.getCurrentUser
|
|
7959
|
+
});
|
|
7960
|
+
};
|
|
7961
|
+
var use_get_current_user_default = useGetCurrentUser;
|
|
7962
|
+
|
|
7963
|
+
// src/hooks/pos/use-get-list.ts
|
|
7964
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
7965
|
+
var useGetList = () => {
|
|
7966
|
+
const pos = usePosService();
|
|
7967
|
+
return useMutation68({
|
|
7968
|
+
mutationFn: pos.getList
|
|
7969
|
+
});
|
|
7970
|
+
};
|
|
7971
|
+
var use_get_list_default = useGetList;
|
|
7972
|
+
|
|
7973
|
+
// src/hooks/pos/use-get-order-line.ts
|
|
7974
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
7975
|
+
var useGetOrderLine = () => {
|
|
7976
|
+
const pos = usePosService();
|
|
7977
|
+
return useMutation69({
|
|
7978
|
+
mutationFn: pos.getOrderLine
|
|
7979
|
+
});
|
|
7980
|
+
};
|
|
7981
|
+
var use_get_order_line_default = useGetOrderLine;
|
|
7982
|
+
|
|
7983
|
+
// src/hooks/pos/use-get-pin-code.ts
|
|
7984
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
7985
|
+
var useGetPinCode = () => {
|
|
7986
|
+
const pos = usePosService();
|
|
7987
|
+
return useMutation70({
|
|
7988
|
+
mutationFn: pos.getPinCode
|
|
7989
|
+
});
|
|
7990
|
+
};
|
|
7991
|
+
var use_get_pin_code_default = useGetPinCode;
|
|
7992
|
+
|
|
7993
|
+
// src/hooks/pos/use-get-pos.ts
|
|
7994
|
+
import { useMutation as useMutation71 } from "@tanstack/react-query";
|
|
7995
|
+
var useGetPos = () => {
|
|
7996
|
+
const pos = usePosService();
|
|
7997
|
+
return useMutation71({
|
|
7998
|
+
mutationFn: pos.getPOS
|
|
7999
|
+
});
|
|
8000
|
+
};
|
|
8001
|
+
var use_get_pos_default = useGetPos;
|
|
8002
|
+
|
|
8003
|
+
// src/hooks/pos/use-get-preparation-display-data.ts
|
|
8004
|
+
import { useMutation as useMutation72 } from "@tanstack/react-query";
|
|
8005
|
+
var useGetPreparationDisplayData = () => {
|
|
8006
|
+
const pos = usePosService();
|
|
8007
|
+
return useMutation72({
|
|
8008
|
+
mutationFn: pos.getPreparationDisplayData
|
|
8009
|
+
});
|
|
8010
|
+
};
|
|
8011
|
+
var use_get_preparation_display_data_default = useGetPreparationDisplayData;
|
|
8012
|
+
|
|
8013
|
+
// src/hooks/pos/use-get-product-image.ts
|
|
8014
|
+
import { useMutation as useMutation73 } from "@tanstack/react-query";
|
|
8015
|
+
var useGetProductImage = () => {
|
|
8016
|
+
const pos = usePosService();
|
|
8017
|
+
return useMutation73({
|
|
8018
|
+
mutationFn: pos.getProductImage
|
|
8019
|
+
});
|
|
8020
|
+
};
|
|
8021
|
+
var use_get_product_image_default = useGetProductImage;
|
|
8022
|
+
|
|
8023
|
+
// src/hooks/pos/use-handle-close-session.ts
|
|
8024
|
+
import { useMutation as useMutation74 } from "@tanstack/react-query";
|
|
8025
|
+
var useHandleCloseSession = () => {
|
|
8026
|
+
const pos = usePosService();
|
|
8027
|
+
return useMutation74({
|
|
8028
|
+
mutationFn: pos.handleCloseSession
|
|
8029
|
+
});
|
|
8030
|
+
};
|
|
8031
|
+
var use_handle_close_session_default = useHandleCloseSession;
|
|
8032
|
+
|
|
8033
|
+
// src/hooks/pos/use-handle-closing-detail-session.ts
|
|
8034
|
+
import { useMutation as useMutation75 } from "@tanstack/react-query";
|
|
8035
|
+
var useHandleClosingDetailSession = () => {
|
|
8036
|
+
const pos = usePosService();
|
|
8037
|
+
return useMutation75({
|
|
8038
|
+
mutationFn: pos.handleClosingDetailSession
|
|
8039
|
+
});
|
|
8040
|
+
};
|
|
8041
|
+
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
8042
|
+
|
|
8043
|
+
// src/hooks/pos/use-handle-closing-session.ts
|
|
8044
|
+
import { useMutation as useMutation76 } from "@tanstack/react-query";
|
|
8045
|
+
var useHandleClosingSession = () => {
|
|
8046
|
+
const pos = usePosService();
|
|
8047
|
+
return useMutation76({
|
|
8048
|
+
mutationFn: pos.handleClosingSession
|
|
8049
|
+
});
|
|
8050
|
+
};
|
|
8051
|
+
var use_handle_closing_session_default = useHandleClosingSession;
|
|
8052
|
+
|
|
8053
|
+
// src/hooks/pos/use-load-data-pos-session.ts
|
|
8054
|
+
import { useMutation as useMutation77 } from "@tanstack/react-query";
|
|
8055
|
+
var useLoadDataPosSession = () => {
|
|
8056
|
+
const pos = usePosService();
|
|
8057
|
+
return useMutation77({
|
|
8058
|
+
mutationFn: pos.loadDataPosSession
|
|
8059
|
+
});
|
|
8060
|
+
};
|
|
8061
|
+
var use_load_data_pos_session_default = useLoadDataPosSession;
|
|
8062
|
+
|
|
8063
|
+
// src/hooks/pos/use-manage-onchange.ts
|
|
8064
|
+
import { useMutation as useMutation78 } from "@tanstack/react-query";
|
|
8065
|
+
var useManageOnChange = () => {
|
|
8066
|
+
const pos = usePosService();
|
|
8067
|
+
return useMutation78({
|
|
8068
|
+
mutationFn: pos.manageOnChange
|
|
8069
|
+
});
|
|
8070
|
+
};
|
|
8071
|
+
var use_manage_onchange_default = useManageOnChange;
|
|
8072
|
+
|
|
8073
|
+
// src/hooks/pos/use-manage-session.ts
|
|
8074
|
+
import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
8075
|
+
var useManageSession = () => {
|
|
8076
|
+
const pos = usePosService();
|
|
8077
|
+
return useMutation79({
|
|
8078
|
+
mutationFn: pos.manageSession
|
|
8079
|
+
});
|
|
8080
|
+
};
|
|
8081
|
+
var use_manage_session_default = useManageSession;
|
|
8082
|
+
|
|
8083
|
+
// src/hooks/pos/use-process-order.ts
|
|
8084
|
+
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
8085
|
+
var useProcessOrder = () => {
|
|
8086
|
+
const pos = usePosService();
|
|
8087
|
+
return useMutation80({
|
|
8088
|
+
mutationFn: pos.processOrder
|
|
8089
|
+
});
|
|
8090
|
+
};
|
|
8091
|
+
var use_process_order_default = useProcessOrder;
|
|
8092
|
+
|
|
8093
|
+
// src/hooks/pos/use-save-pin-code.ts
|
|
8094
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8095
|
+
var useSavePinCode = () => {
|
|
8096
|
+
const pos = usePosService();
|
|
8097
|
+
return useMutation81({
|
|
8098
|
+
mutationFn: pos.savePinCode
|
|
8099
|
+
});
|
|
8100
|
+
};
|
|
8101
|
+
var use_save_pin_code_default = useSavePinCode;
|
|
8102
|
+
|
|
8103
|
+
// src/hooks/pos/use-search-journal.ts
|
|
8104
|
+
import { useMutation as useMutation82 } from "@tanstack/react-query";
|
|
8105
|
+
var useSearchJournal = () => {
|
|
8106
|
+
const pos = usePosService();
|
|
8107
|
+
return useMutation82({
|
|
8108
|
+
mutationFn: pos.searchJournal
|
|
8109
|
+
});
|
|
8110
|
+
};
|
|
8111
|
+
var use_search_journal_default = useSearchJournal;
|
|
8112
|
+
|
|
8113
|
+
// src/hooks/pos/use-update-closed-session.ts
|
|
8114
|
+
import { useMutation as useMutation83 } from "@tanstack/react-query";
|
|
8115
|
+
var useUpdateClosedSession = () => {
|
|
8116
|
+
const pos = usePosService();
|
|
8117
|
+
return useMutation83({
|
|
8118
|
+
mutationFn: pos.updateClosedSession
|
|
8119
|
+
});
|
|
8120
|
+
};
|
|
8121
|
+
var use_update_closed_session_default = useUpdateClosedSession;
|
|
8122
|
+
|
|
8123
|
+
// src/hooks/pos/use-update-entity.ts
|
|
8124
|
+
import { useMutation as useMutation84 } from "@tanstack/react-query";
|
|
8125
|
+
var useUpdateEntity = () => {
|
|
8126
|
+
const pos = usePosService();
|
|
8127
|
+
return useMutation84({
|
|
8128
|
+
mutationFn: pos.updateEntity
|
|
8129
|
+
});
|
|
8130
|
+
};
|
|
8131
|
+
var use_update_entity_default = useUpdateEntity;
|
|
8132
|
+
|
|
8133
|
+
// src/hooks/pos/use-update-order-status.ts
|
|
8134
|
+
import { useMutation as useMutation85 } from "@tanstack/react-query";
|
|
8135
|
+
var useUpdateOrderStatus = () => {
|
|
8136
|
+
const pos = usePosService();
|
|
8137
|
+
return useMutation85({
|
|
8138
|
+
mutationFn: pos.updateOrderStatus
|
|
8139
|
+
});
|
|
8140
|
+
};
|
|
8141
|
+
var use_update_order_status_default = useUpdateOrderStatus;
|
|
8301
8142
|
export {
|
|
8302
8143
|
use_add_entity_default as useAddEntity,
|
|
8303
8144
|
use_button_default as useButton,
|
|
8304
|
-
|
|
8145
|
+
use_change_order_preparation_state_default as useChangeOrderPreparationState,
|
|
8305
8146
|
use_change_status_default as useChangeStatus,
|
|
8306
8147
|
use_check_payment_default as useCheckPayment,
|
|
8307
8148
|
use_create_e_invoice_default as useCreateEInvoice,
|
|
@@ -8351,7 +8192,7 @@ export {
|
|
|
8351
8192
|
use_get_partner_title_default as useGetPartnerTitle,
|
|
8352
8193
|
use_get_pin_code_default as useGetPinCode,
|
|
8353
8194
|
use_get_pos_default as useGetPos,
|
|
8354
|
-
|
|
8195
|
+
use_get_preparation_display_data_default as useGetPreparationDisplayData,
|
|
8355
8196
|
use_get_print_report_default as useGetPrintReport,
|
|
8356
8197
|
use_get_progress_bar_default as useGetProGressBar,
|
|
8357
8198
|
use_get_product_image_default as useGetProductImage,
|
|
@@ -8378,7 +8219,7 @@ export {
|
|
|
8378
8219
|
use_login_credential_default as useLoginCredential,
|
|
8379
8220
|
use_login_socical_default as useLoginSocial,
|
|
8380
8221
|
use_logout_default as useLogout,
|
|
8381
|
-
|
|
8222
|
+
use_manage_onchange_default as useManageOnChange,
|
|
8382
8223
|
use_manage_session_default as useManageSession,
|
|
8383
8224
|
use_model_default as useModel,
|
|
8384
8225
|
use_odoo_data_transform_default as useOdooDataTransform,
|