@fctc/interface-logic 3.0.4 → 3.0.6
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 +21 -3
- package/dist/hooks.d.ts +21 -3
- package/dist/hooks.js +136 -17
- package/dist/hooks.mjs +134 -17
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +135 -18
- package/dist/provider.mjs +135 -18
- package/dist/services.d.mts +16 -2
- package/dist/services.d.ts +16 -2
- package/dist/services.js +86 -13
- package/dist/services.mjs +86 -13
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -3061,6 +3061,12 @@ import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
|
3061
3061
|
// src/hooks/view/use-check-payment.ts
|
|
3062
3062
|
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
3063
3063
|
|
|
3064
|
+
// src/hooks/view/use-get-data-close-session.ts
|
|
3065
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
3066
|
+
|
|
3067
|
+
// src/hooks/view/use-get-detail-entity.ts
|
|
3068
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
3069
|
+
|
|
3064
3070
|
// src/provider/service-provider.tsx
|
|
3065
3071
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3066
3072
|
var ServiceContext = createContext2(null);
|
|
@@ -3510,7 +3516,7 @@ function useCompanyService() {
|
|
|
3510
3516
|
[env]
|
|
3511
3517
|
);
|
|
3512
3518
|
const getInfoCompany = useCallback4(
|
|
3513
|
-
async (id) => {
|
|
3519
|
+
async (id, service) => {
|
|
3514
3520
|
const jsonData = {
|
|
3515
3521
|
ids: [id],
|
|
3516
3522
|
model: "res.company" /* COMPANY */,
|
|
@@ -3525,11 +3531,16 @@ function useCompanyService() {
|
|
|
3525
3531
|
}
|
|
3526
3532
|
}
|
|
3527
3533
|
};
|
|
3528
|
-
return await env.requests.post(
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3534
|
+
return await env.requests.post(
|
|
3535
|
+
"/call" /* CALL_PATH */,
|
|
3536
|
+
jsonData,
|
|
3537
|
+
{
|
|
3538
|
+
headers: {
|
|
3539
|
+
"Content-Type": "application/json"
|
|
3540
|
+
}
|
|
3541
|
+
},
|
|
3542
|
+
service
|
|
3543
|
+
);
|
|
3533
3544
|
},
|
|
3534
3545
|
[env]
|
|
3535
3546
|
);
|
|
@@ -4485,7 +4496,7 @@ function useViewService() {
|
|
|
4485
4496
|
[env]
|
|
4486
4497
|
);
|
|
4487
4498
|
const getMenu = useCallback10(
|
|
4488
|
-
async (context, specification, domain) => {
|
|
4499
|
+
async (context, specification, domain, service) => {
|
|
4489
4500
|
const jsonData = {
|
|
4490
4501
|
model: "ir.ui.menu" /* MENU */,
|
|
4491
4502
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4502,11 +4513,16 @@ function useViewService() {
|
|
|
4502
4513
|
]
|
|
4503
4514
|
}
|
|
4504
4515
|
};
|
|
4505
|
-
return env?.requests?.post(
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4516
|
+
return env?.requests?.post(
|
|
4517
|
+
"/call" /* CALL_PATH */,
|
|
4518
|
+
jsonData,
|
|
4519
|
+
{
|
|
4520
|
+
headers: {
|
|
4521
|
+
"Content-Type": "application/json"
|
|
4522
|
+
}
|
|
4523
|
+
},
|
|
4524
|
+
service
|
|
4525
|
+
);
|
|
4510
4526
|
},
|
|
4511
4527
|
[env]
|
|
4512
4528
|
);
|
|
@@ -5332,6 +5348,61 @@ function useViewService() {
|
|
|
5332
5348
|
},
|
|
5333
5349
|
[env]
|
|
5334
5350
|
);
|
|
5351
|
+
const getDataCloseSession = useCallback10(
|
|
5352
|
+
({
|
|
5353
|
+
model,
|
|
5354
|
+
ids,
|
|
5355
|
+
xNode,
|
|
5356
|
+
service
|
|
5357
|
+
}) => {
|
|
5358
|
+
const jsonData = {
|
|
5359
|
+
model,
|
|
5360
|
+
ids,
|
|
5361
|
+
method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
|
|
5362
|
+
};
|
|
5363
|
+
return env?.requests.post(
|
|
5364
|
+
"/call" /* CALL_PATH */,
|
|
5365
|
+
jsonData,
|
|
5366
|
+
{
|
|
5367
|
+
headers: {
|
|
5368
|
+
"Content-Type": "application/json",
|
|
5369
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5370
|
+
}
|
|
5371
|
+
},
|
|
5372
|
+
service
|
|
5373
|
+
);
|
|
5374
|
+
},
|
|
5375
|
+
[env]
|
|
5376
|
+
);
|
|
5377
|
+
const getDetailEntity = useCallback10(
|
|
5378
|
+
({
|
|
5379
|
+
model,
|
|
5380
|
+
ids,
|
|
5381
|
+
method,
|
|
5382
|
+
xNode,
|
|
5383
|
+
service,
|
|
5384
|
+
kwargs
|
|
5385
|
+
}) => {
|
|
5386
|
+
const jsonData = {
|
|
5387
|
+
model,
|
|
5388
|
+
ids,
|
|
5389
|
+
method,
|
|
5390
|
+
kwargs
|
|
5391
|
+
};
|
|
5392
|
+
return env?.requests.post(
|
|
5393
|
+
"/call" /* CALL_PATH */,
|
|
5394
|
+
jsonData,
|
|
5395
|
+
{
|
|
5396
|
+
headers: {
|
|
5397
|
+
"Content-Type": "application/json",
|
|
5398
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
5399
|
+
}
|
|
5400
|
+
},
|
|
5401
|
+
service
|
|
5402
|
+
);
|
|
5403
|
+
},
|
|
5404
|
+
[env]
|
|
5405
|
+
);
|
|
5335
5406
|
return {
|
|
5336
5407
|
getView,
|
|
5337
5408
|
getMenu,
|
|
@@ -5363,7 +5434,9 @@ function useViewService() {
|
|
|
5363
5434
|
getOrderLine,
|
|
5364
5435
|
getProductImage,
|
|
5365
5436
|
addEntity,
|
|
5366
|
-
checkPayment
|
|
5437
|
+
checkPayment,
|
|
5438
|
+
getDataCloseSession,
|
|
5439
|
+
getDetailEntity
|
|
5367
5440
|
};
|
|
5368
5441
|
}
|
|
5369
5442
|
export {
|