@fctc/interface-logic 3.1.7 → 3.1.9
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 +48 -39
- package/dist/hooks.d.ts +48 -39
- package/dist/hooks.js +61 -2
- package/dist/hooks.mjs +60 -2
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +61 -3
- package/dist/provider.mjs +61 -3
- package/dist/services.d.mts +48 -39
- package/dist/services.d.ts +48 -39
- package/dist/services.js +36 -2
- package/dist/services.mjs +36 -2
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -3070,6 +3070,9 @@ import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
|
3070
3070
|
// src/hooks/view/use-create-pos-config.ts
|
|
3071
3071
|
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
3072
3072
|
|
|
3073
|
+
// src/hooks/view/use-search-journal.ts
|
|
3074
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
3075
|
+
|
|
3073
3076
|
// src/provider/service-provider.tsx
|
|
3074
3077
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3075
3078
|
var ServiceContext = createContext2(null);
|
|
@@ -5115,6 +5118,7 @@ function useViewService() {
|
|
|
5115
5118
|
model,
|
|
5116
5119
|
domain,
|
|
5117
5120
|
values,
|
|
5121
|
+
isCreateEndpoint = true,
|
|
5118
5122
|
xNode,
|
|
5119
5123
|
service
|
|
5120
5124
|
}) => {
|
|
@@ -5124,7 +5128,7 @@ function useViewService() {
|
|
|
5124
5128
|
values
|
|
5125
5129
|
};
|
|
5126
5130
|
return env?.requests.post(
|
|
5127
|
-
"/create_update" /* CREATE_UPDATE */,
|
|
5131
|
+
isCreateEndpoint ? "/create_update" /* CREATE_UPDATE */ : "/call" /* CALL_PATH */,
|
|
5128
5132
|
jsonData,
|
|
5129
5133
|
{
|
|
5130
5134
|
headers: {
|
|
@@ -5436,6 +5440,35 @@ function useViewService() {
|
|
|
5436
5440
|
},
|
|
5437
5441
|
[env]
|
|
5438
5442
|
);
|
|
5443
|
+
const searchJournal = useCallback10(
|
|
5444
|
+
({
|
|
5445
|
+
model,
|
|
5446
|
+
method,
|
|
5447
|
+
args,
|
|
5448
|
+
kwargs,
|
|
5449
|
+
xNode,
|
|
5450
|
+
service
|
|
5451
|
+
}) => {
|
|
5452
|
+
const jsonData = {
|
|
5453
|
+
model,
|
|
5454
|
+
method,
|
|
5455
|
+
args,
|
|
5456
|
+
kwargs
|
|
5457
|
+
};
|
|
5458
|
+
return env?.requests.post(
|
|
5459
|
+
"/call" /* CALL_PATH */,
|
|
5460
|
+
jsonData,
|
|
5461
|
+
{
|
|
5462
|
+
headers: {
|
|
5463
|
+
"Content-Type": "application/json",
|
|
5464
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5465
|
+
}
|
|
5466
|
+
},
|
|
5467
|
+
service
|
|
5468
|
+
);
|
|
5469
|
+
},
|
|
5470
|
+
[env]
|
|
5471
|
+
);
|
|
5439
5472
|
return {
|
|
5440
5473
|
getView,
|
|
5441
5474
|
getMenu,
|
|
@@ -5470,7 +5503,8 @@ function useViewService() {
|
|
|
5470
5503
|
checkPayment,
|
|
5471
5504
|
handleCloseSession,
|
|
5472
5505
|
handleClosingDetailSession,
|
|
5473
|
-
createPosConfig
|
|
5506
|
+
createPosConfig,
|
|
5507
|
+
searchJournal
|
|
5474
5508
|
};
|
|
5475
5509
|
}
|
|
5476
5510
|
export {
|