@fctc/interface-logic 2.3.5 → 2.3.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/configs.js +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/hooks.d.mts +14 -4
- package/dist/hooks.d.ts +14 -4
- package/dist/hooks.js +92 -44
- package/dist/hooks.mjs +92 -44
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +93 -45
- package/dist/provider.mjs +93 -45
- package/dist/services.d.mts +20 -12
- package/dist/services.d.ts +20 -12
- package/dist/services.js +52 -22
- package/dist/services.mjs +52 -22
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.js +4 -2
- package/dist/utils.mjs +4 -2
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-DioSS9fJ.d.mts} +3 -0
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-DioSS9fJ.d.ts} +3 -0
- package/package.json +1 -1
package/dist/provider.mjs
CHANGED
|
@@ -2851,7 +2851,8 @@ function useActionService() {
|
|
|
2851
2851
|
async ({
|
|
2852
2852
|
idAction,
|
|
2853
2853
|
context,
|
|
2854
|
-
service
|
|
2854
|
+
service,
|
|
2855
|
+
xNode
|
|
2855
2856
|
}) => {
|
|
2856
2857
|
const jsonData = {
|
|
2857
2858
|
action_id: idAction,
|
|
@@ -2861,7 +2862,7 @@ function useActionService() {
|
|
|
2861
2862
|
"/load_action" /* LOAD_ACTION */,
|
|
2862
2863
|
jsonData,
|
|
2863
2864
|
{
|
|
2864
|
-
headers: { "Content-Type": "application/json" }
|
|
2865
|
+
headers: { "Content-Type": "application/json", x_node: xNode }
|
|
2865
2866
|
},
|
|
2866
2867
|
service
|
|
2867
2868
|
);
|
|
@@ -2874,7 +2875,8 @@ function useActionService() {
|
|
|
2874
2875
|
ids = [],
|
|
2875
2876
|
context,
|
|
2876
2877
|
method,
|
|
2877
|
-
service
|
|
2878
|
+
service,
|
|
2879
|
+
xNode
|
|
2878
2880
|
}) => {
|
|
2879
2881
|
try {
|
|
2880
2882
|
const jsonData = {
|
|
@@ -2887,7 +2889,8 @@ function useActionService() {
|
|
|
2887
2889
|
"/call" /* CALL_PATH */,
|
|
2888
2890
|
jsonData,
|
|
2889
2891
|
{
|
|
2890
|
-
headers: { "Content-Type": "application/json" }
|
|
2892
|
+
headers: { "Content-Type": "application/json" },
|
|
2893
|
+
...xNode ? { x_node: xNode } : {}
|
|
2891
2894
|
},
|
|
2892
2895
|
service
|
|
2893
2896
|
);
|
|
@@ -2903,7 +2906,8 @@ function useActionService() {
|
|
|
2903
2906
|
model,
|
|
2904
2907
|
ids,
|
|
2905
2908
|
context,
|
|
2906
|
-
service
|
|
2909
|
+
service,
|
|
2910
|
+
xNode
|
|
2907
2911
|
}) => {
|
|
2908
2912
|
const jsonData = {
|
|
2909
2913
|
model,
|
|
@@ -2915,7 +2919,8 @@ function useActionService() {
|
|
|
2915
2919
|
"/call" /* CALL_PATH */,
|
|
2916
2920
|
jsonData,
|
|
2917
2921
|
{
|
|
2918
|
-
headers: { "Content-Type": "application/json" }
|
|
2922
|
+
headers: { "Content-Type": "application/json" },
|
|
2923
|
+
...xNode ? { x_node: xNode } : {}
|
|
2919
2924
|
},
|
|
2920
2925
|
service
|
|
2921
2926
|
);
|
|
@@ -2927,7 +2932,8 @@ function useActionService() {
|
|
|
2927
2932
|
model,
|
|
2928
2933
|
id,
|
|
2929
2934
|
context,
|
|
2930
|
-
service
|
|
2935
|
+
service,
|
|
2936
|
+
xNode
|
|
2931
2937
|
}) => {
|
|
2932
2938
|
const jsonData = {
|
|
2933
2939
|
model,
|
|
@@ -2939,7 +2945,8 @@ function useActionService() {
|
|
|
2939
2945
|
"/call" /* CALL_PATH */,
|
|
2940
2946
|
jsonData,
|
|
2941
2947
|
{
|
|
2942
|
-
headers: { "Content-Type": "application/json" }
|
|
2948
|
+
headers: { "Content-Type": "application/json" },
|
|
2949
|
+
...xNode ? { x_node: xNode } : {}
|
|
2943
2950
|
},
|
|
2944
2951
|
service
|
|
2945
2952
|
);
|
|
@@ -2986,7 +2993,8 @@ function useActionService() {
|
|
|
2986
2993
|
async ({
|
|
2987
2994
|
idAction,
|
|
2988
2995
|
context,
|
|
2989
|
-
service
|
|
2996
|
+
service,
|
|
2997
|
+
xNode
|
|
2990
2998
|
}) => {
|
|
2991
2999
|
const jsonData = {
|
|
2992
3000
|
action_id: idAction,
|
|
@@ -2996,7 +3004,8 @@ function useActionService() {
|
|
|
2996
3004
|
"/run_action" /* RUN_ACTION_PATH */,
|
|
2997
3005
|
jsonData,
|
|
2998
3006
|
{
|
|
2999
|
-
headers: { "Content-Type": "application/json" }
|
|
3007
|
+
headers: { "Content-Type": "application/json" },
|
|
3008
|
+
...xNode ? { x_node: xNode } : {}
|
|
3000
3009
|
},
|
|
3001
3010
|
service
|
|
3002
3011
|
);
|
|
@@ -3719,7 +3728,11 @@ function useModelService() {
|
|
|
3719
3728
|
});
|
|
3720
3729
|
}, [env]);
|
|
3721
3730
|
const getAll = useCallback7(
|
|
3722
|
-
async ({
|
|
3731
|
+
async ({
|
|
3732
|
+
data,
|
|
3733
|
+
service,
|
|
3734
|
+
xNode
|
|
3735
|
+
}) => {
|
|
3723
3736
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3724
3737
|
fields: data.fields,
|
|
3725
3738
|
groupby: data.groupby
|
|
@@ -3745,7 +3758,8 @@ function useModelService() {
|
|
|
3745
3758
|
jsonData,
|
|
3746
3759
|
{
|
|
3747
3760
|
headers: {
|
|
3748
|
-
"Content-Type": "application/json"
|
|
3761
|
+
"Content-Type": "application/json",
|
|
3762
|
+
...xNode ? { x_node: xNode } : {}
|
|
3749
3763
|
}
|
|
3750
3764
|
},
|
|
3751
3765
|
service
|
|
@@ -3822,7 +3836,8 @@ function useModelService() {
|
|
|
3822
3836
|
model,
|
|
3823
3837
|
specification,
|
|
3824
3838
|
context,
|
|
3825
|
-
service
|
|
3839
|
+
service,
|
|
3840
|
+
xNode
|
|
3826
3841
|
}) => {
|
|
3827
3842
|
const jsonData = {
|
|
3828
3843
|
model,
|
|
@@ -3838,7 +3853,8 @@ function useModelService() {
|
|
|
3838
3853
|
jsonData,
|
|
3839
3854
|
{
|
|
3840
3855
|
headers: {
|
|
3841
|
-
"Content-Type": "application/json"
|
|
3856
|
+
"Content-Type": "application/json",
|
|
3857
|
+
...xNode ? { x_node: xNode } : {}
|
|
3842
3858
|
}
|
|
3843
3859
|
},
|
|
3844
3860
|
service
|
|
@@ -3854,7 +3870,8 @@ function useModelService() {
|
|
|
3854
3870
|
specification = {},
|
|
3855
3871
|
context = {},
|
|
3856
3872
|
path,
|
|
3857
|
-
service
|
|
3873
|
+
service,
|
|
3874
|
+
xNode
|
|
3858
3875
|
}) => {
|
|
3859
3876
|
const jsonData = {
|
|
3860
3877
|
model,
|
|
@@ -3871,7 +3888,8 @@ function useModelService() {
|
|
|
3871
3888
|
jsonData,
|
|
3872
3889
|
{
|
|
3873
3890
|
headers: {
|
|
3874
|
-
"Content-Type": "application/json"
|
|
3891
|
+
"Content-Type": "application/json",
|
|
3892
|
+
...xNode ? { x_node: xNode } : {}
|
|
3875
3893
|
}
|
|
3876
3894
|
},
|
|
3877
3895
|
service
|
|
@@ -3907,7 +3925,8 @@ function useModelService() {
|
|
|
3907
3925
|
specification,
|
|
3908
3926
|
context,
|
|
3909
3927
|
fieldChange,
|
|
3910
|
-
service
|
|
3928
|
+
service,
|
|
3929
|
+
xNode
|
|
3911
3930
|
}) => {
|
|
3912
3931
|
const jsonData = {
|
|
3913
3932
|
model,
|
|
@@ -3925,7 +3944,8 @@ function useModelService() {
|
|
|
3925
3944
|
jsonData,
|
|
3926
3945
|
{
|
|
3927
3946
|
headers: {
|
|
3928
|
-
"Content-Type": "application/json"
|
|
3947
|
+
"Content-Type": "application/json",
|
|
3948
|
+
...xNode ? { x_node: xNode } : {}
|
|
3929
3949
|
}
|
|
3930
3950
|
},
|
|
3931
3951
|
service
|
|
@@ -3934,7 +3954,11 @@ function useModelService() {
|
|
|
3934
3954
|
[env]
|
|
3935
3955
|
);
|
|
3936
3956
|
const getListFieldsOnchange = useCallback7(
|
|
3937
|
-
async ({
|
|
3957
|
+
async ({
|
|
3958
|
+
model,
|
|
3959
|
+
service,
|
|
3960
|
+
xNode
|
|
3961
|
+
}) => {
|
|
3938
3962
|
const jsonData = {
|
|
3939
3963
|
model,
|
|
3940
3964
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
@@ -3944,7 +3968,8 @@ function useModelService() {
|
|
|
3944
3968
|
jsonData,
|
|
3945
3969
|
{
|
|
3946
3970
|
headers: {
|
|
3947
|
-
"Content-Type": "application/json"
|
|
3971
|
+
"Content-Type": "application/json",
|
|
3972
|
+
...xNode ? { x_node: xNode } : {}
|
|
3948
3973
|
}
|
|
3949
3974
|
},
|
|
3950
3975
|
service
|
|
@@ -4218,7 +4243,11 @@ function useViewService() {
|
|
|
4218
4243
|
[env]
|
|
4219
4244
|
);
|
|
4220
4245
|
const getSelectionItem = useCallback9(
|
|
4221
|
-
async ({
|
|
4246
|
+
async ({
|
|
4247
|
+
data,
|
|
4248
|
+
service,
|
|
4249
|
+
xNode
|
|
4250
|
+
}) => {
|
|
4222
4251
|
const jsonData = {
|
|
4223
4252
|
model: data.model,
|
|
4224
4253
|
ids: [],
|
|
@@ -4241,7 +4270,8 @@ function useViewService() {
|
|
|
4241
4270
|
jsonData,
|
|
4242
4271
|
{
|
|
4243
4272
|
headers: {
|
|
4244
|
-
"Content-Type": "application/json"
|
|
4273
|
+
"Content-Type": "application/json",
|
|
4274
|
+
...xNode ? { x_node: xNode } : {}
|
|
4245
4275
|
}
|
|
4246
4276
|
},
|
|
4247
4277
|
service
|
|
@@ -4708,7 +4738,7 @@ var axiosClient = {
|
|
|
4708
4738
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
4709
4739
|
headers
|
|
4710
4740
|
).then(responseBody),
|
|
4711
|
-
post: (url, body, headers, serviceName) => instance.post(
|
|
4741
|
+
post: async (url, body, headers, serviceName) => instance.post(
|
|
4712
4742
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
4713
4743
|
body,
|
|
4714
4744
|
headers
|
|
@@ -5407,13 +5437,15 @@ var useGetDetail = () => {
|
|
|
5407
5437
|
ids,
|
|
5408
5438
|
specification,
|
|
5409
5439
|
context,
|
|
5410
|
-
service
|
|
5440
|
+
service,
|
|
5441
|
+
xNode
|
|
5411
5442
|
}) => getDetail({
|
|
5412
5443
|
model,
|
|
5413
5444
|
ids,
|
|
5414
5445
|
specification,
|
|
5415
5446
|
context,
|
|
5416
|
-
service
|
|
5447
|
+
service,
|
|
5448
|
+
xNode
|
|
5417
5449
|
})
|
|
5418
5450
|
});
|
|
5419
5451
|
};
|
|
@@ -5423,14 +5455,16 @@ var use_get_detail_default = useGetDetail;
|
|
|
5423
5455
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
5424
5456
|
var useGetFieldOnChange = ({
|
|
5425
5457
|
model,
|
|
5426
|
-
service
|
|
5458
|
+
service,
|
|
5459
|
+
xNode
|
|
5427
5460
|
}) => {
|
|
5428
5461
|
const { getListFieldsOnchange } = useModelService();
|
|
5429
5462
|
return useQuery9({
|
|
5430
5463
|
queryKey: [`field-onchange-${model}`, model],
|
|
5431
5464
|
queryFn: () => getListFieldsOnchange({
|
|
5432
5465
|
model,
|
|
5433
|
-
service
|
|
5466
|
+
service,
|
|
5467
|
+
xNode
|
|
5434
5468
|
}).then((res) => {
|
|
5435
5469
|
if (res) {
|
|
5436
5470
|
return res;
|
|
@@ -5615,7 +5649,8 @@ var useOnChangeForm = () => {
|
|
|
5615
5649
|
context,
|
|
5616
5650
|
object,
|
|
5617
5651
|
fieldChange,
|
|
5618
|
-
service
|
|
5652
|
+
service,
|
|
5653
|
+
xNode
|
|
5619
5654
|
}) => onChange({
|
|
5620
5655
|
ids,
|
|
5621
5656
|
model,
|
|
@@ -5623,7 +5658,8 @@ var useOnChangeForm = () => {
|
|
|
5623
5658
|
context,
|
|
5624
5659
|
object,
|
|
5625
5660
|
fieldChange,
|
|
5626
|
-
service
|
|
5661
|
+
service,
|
|
5662
|
+
xNode
|
|
5627
5663
|
})
|
|
5628
5664
|
});
|
|
5629
5665
|
};
|
|
@@ -5641,8 +5677,9 @@ var useSave = () => {
|
|
|
5641
5677
|
specification,
|
|
5642
5678
|
context,
|
|
5643
5679
|
path,
|
|
5644
|
-
service
|
|
5645
|
-
|
|
5680
|
+
service,
|
|
5681
|
+
xNode
|
|
5682
|
+
}) => save({ ids, model, data, specification, context, path, service, xNode })
|
|
5646
5683
|
});
|
|
5647
5684
|
};
|
|
5648
5685
|
var use_save_default = useSave;
|
|
@@ -5695,13 +5732,15 @@ var useButton = () => {
|
|
|
5695
5732
|
ids,
|
|
5696
5733
|
context,
|
|
5697
5734
|
method,
|
|
5698
|
-
service
|
|
5735
|
+
service,
|
|
5736
|
+
xNode
|
|
5699
5737
|
}) => callButton({
|
|
5700
5738
|
model,
|
|
5701
5739
|
ids,
|
|
5702
5740
|
context,
|
|
5703
5741
|
method,
|
|
5704
|
-
service
|
|
5742
|
+
service,
|
|
5743
|
+
xNode
|
|
5705
5744
|
}),
|
|
5706
5745
|
onSuccess: (response) => {
|
|
5707
5746
|
return response;
|
|
@@ -5719,12 +5758,14 @@ var useDuplicateRecord = () => {
|
|
|
5719
5758
|
id,
|
|
5720
5759
|
model,
|
|
5721
5760
|
context,
|
|
5722
|
-
service
|
|
5761
|
+
service,
|
|
5762
|
+
xNode
|
|
5723
5763
|
}) => duplicateRecord({
|
|
5724
5764
|
id,
|
|
5725
5765
|
model,
|
|
5726
5766
|
context,
|
|
5727
|
-
service
|
|
5767
|
+
service,
|
|
5768
|
+
xNode
|
|
5728
5769
|
})
|
|
5729
5770
|
});
|
|
5730
5771
|
};
|
|
@@ -5807,11 +5848,11 @@ var use_get_groups_default = useGetGroups;
|
|
|
5807
5848
|
|
|
5808
5849
|
// src/hooks/view/use-get-list-data.ts
|
|
5809
5850
|
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
5810
|
-
var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
5851
|
+
var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
|
|
5811
5852
|
const { getAll } = useModelService();
|
|
5812
5853
|
return useQuery14({
|
|
5813
5854
|
queryKey,
|
|
5814
|
-
queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
|
|
5855
|
+
queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
|
|
5815
5856
|
if (res) {
|
|
5816
5857
|
return res;
|
|
5817
5858
|
}
|
|
@@ -5888,12 +5929,13 @@ var useGetSelection = ({
|
|
|
5888
5929
|
data,
|
|
5889
5930
|
queryKey,
|
|
5890
5931
|
enabled,
|
|
5891
|
-
service
|
|
5932
|
+
service,
|
|
5933
|
+
xNode
|
|
5892
5934
|
}) => {
|
|
5893
5935
|
const { getSelectionItem } = useViewService();
|
|
5894
5936
|
return useQuery17({
|
|
5895
5937
|
queryKey,
|
|
5896
|
-
queryFn: () => getSelectionItem({ data, service }),
|
|
5938
|
+
queryFn: () => getSelectionItem({ data, service, xNode }),
|
|
5897
5939
|
enabled,
|
|
5898
5940
|
refetchOnWindowFocus: false
|
|
5899
5941
|
});
|
|
@@ -5922,12 +5964,14 @@ var useLoadAction = () => {
|
|
|
5922
5964
|
mutationFn: ({
|
|
5923
5965
|
idAction,
|
|
5924
5966
|
context,
|
|
5925
|
-
service
|
|
5967
|
+
service,
|
|
5968
|
+
xNode
|
|
5926
5969
|
}) => {
|
|
5927
5970
|
return loadAction({
|
|
5928
5971
|
idAction,
|
|
5929
5972
|
context,
|
|
5930
|
-
service
|
|
5973
|
+
service,
|
|
5974
|
+
xNode
|
|
5931
5975
|
});
|
|
5932
5976
|
}
|
|
5933
5977
|
});
|
|
@@ -5969,12 +6013,14 @@ var useRemoveRow = () => {
|
|
|
5969
6013
|
model,
|
|
5970
6014
|
ids,
|
|
5971
6015
|
context,
|
|
5972
|
-
service
|
|
6016
|
+
service,
|
|
6017
|
+
xNode
|
|
5973
6018
|
}) => removeRows({
|
|
5974
6019
|
model,
|
|
5975
6020
|
ids,
|
|
5976
6021
|
context,
|
|
5977
|
-
service
|
|
6022
|
+
service,
|
|
6023
|
+
xNode
|
|
5978
6024
|
})
|
|
5979
6025
|
});
|
|
5980
6026
|
};
|
|
@@ -6006,11 +6052,13 @@ var useRunAction = () => {
|
|
|
6006
6052
|
mutationFn: ({
|
|
6007
6053
|
idAction,
|
|
6008
6054
|
context,
|
|
6009
|
-
service
|
|
6055
|
+
service,
|
|
6056
|
+
xNode
|
|
6010
6057
|
}) => runAction({
|
|
6011
6058
|
idAction,
|
|
6012
6059
|
context,
|
|
6013
|
-
service
|
|
6060
|
+
service,
|
|
6061
|
+
xNode
|
|
6014
6062
|
})
|
|
6015
6063
|
});
|
|
6016
6064
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-DioSS9fJ.mjs';
|
|
2
2
|
|
|
3
3
|
declare function useActionService(): {
|
|
4
|
-
loadAction: ({ idAction, context, service, }: {
|
|
4
|
+
loadAction: ({ idAction, context, service, xNode, }: {
|
|
5
5
|
idAction: number;
|
|
6
6
|
context: ContextApi;
|
|
7
7
|
service?: string;
|
|
8
|
+
xNode?: string;
|
|
8
9
|
}) => Promise<any>;
|
|
9
|
-
callButton: ({ model, ids, context, method, service, }: {
|
|
10
|
+
callButton: ({ model, ids, context, method, service, xNode, }: {
|
|
10
11
|
model: string;
|
|
11
12
|
ids: Record<string, any>[] | any;
|
|
12
13
|
context: ContextApi;
|
|
13
14
|
method: any;
|
|
14
15
|
service?: string;
|
|
16
|
+
xNode?: string;
|
|
15
17
|
}) => Promise<any>;
|
|
16
|
-
removeRows: ({ model, ids, context, service, }: {
|
|
18
|
+
removeRows: ({ model, ids, context, service, xNode, }: {
|
|
17
19
|
model: string;
|
|
18
20
|
ids: Record<string, any>[] | any;
|
|
19
21
|
context: ContextApi;
|
|
20
22
|
service?: string;
|
|
23
|
+
xNode?: string;
|
|
21
24
|
}) => Promise<any>;
|
|
22
|
-
duplicateRecord: ({ model, id, context, service, }: {
|
|
25
|
+
duplicateRecord: ({ model, id, context, service, xNode, }: {
|
|
23
26
|
model: string;
|
|
24
27
|
id: any;
|
|
25
28
|
context: ContextApi;
|
|
26
29
|
service?: string;
|
|
30
|
+
xNode?: string;
|
|
27
31
|
}) => Promise<any>;
|
|
28
32
|
getPrintReportName: ({ id }: {
|
|
29
33
|
id: number;
|
|
@@ -33,10 +37,11 @@ declare function useActionService(): {
|
|
|
33
37
|
report: any;
|
|
34
38
|
db: any;
|
|
35
39
|
}) => Promise<any>;
|
|
36
|
-
runAction: ({ idAction, context, service, }: {
|
|
40
|
+
runAction: ({ idAction, context, service, xNode, }: {
|
|
37
41
|
idAction: number;
|
|
38
42
|
context: ContextApi;
|
|
39
43
|
service?: string;
|
|
44
|
+
xNode?: string;
|
|
40
45
|
}) => Promise<any>;
|
|
41
46
|
};
|
|
42
47
|
|
|
@@ -171,21 +176,23 @@ declare function useModelService(): {
|
|
|
171
176
|
}) => Promise<any>;
|
|
172
177
|
getCurrency: () => Promise<any>;
|
|
173
178
|
getConversionRate: () => Promise<any>;
|
|
174
|
-
getAll: ({ data, service }: {
|
|
179
|
+
getAll: ({ data, service, xNode, }: {
|
|
175
180
|
data: any;
|
|
176
181
|
service?: string;
|
|
182
|
+
xNode?: string;
|
|
177
183
|
}) => Promise<any>;
|
|
178
184
|
getListCalendar: ({ data }: {
|
|
179
185
|
data: any;
|
|
180
186
|
}) => Promise<any>;
|
|
181
187
|
getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
|
|
182
|
-
getDetail: ({ ids, model, specification, context, service, }: GetDetailParams) => Promise<any>;
|
|
183
|
-
save: ({ model, ids, data, specification, context, path, service, }: SaveParams) => Promise<any>;
|
|
188
|
+
getDetail: ({ ids, model, specification, context, service, xNode, }: GetDetailParams) => Promise<any>;
|
|
189
|
+
save: ({ model, ids, data, specification, context, path, service, xNode, }: SaveParams) => Promise<any>;
|
|
184
190
|
deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
|
|
185
|
-
onChange: ({ ids, model, object, specification, context, fieldChange, service, }: OnChangeParams) => Promise<any>;
|
|
186
|
-
getListFieldsOnchange: ({ model, service }: {
|
|
191
|
+
onChange: ({ ids, model, object, specification, context, fieldChange, service, xNode, }: OnChangeParams) => Promise<any>;
|
|
192
|
+
getListFieldsOnchange: ({ model, service, xNode, }: {
|
|
187
193
|
model: string;
|
|
188
194
|
service?: string;
|
|
195
|
+
xNode?: string;
|
|
189
196
|
}) => Promise<any>;
|
|
190
197
|
parseORMOdoo: (data: Record<string, any>) => {
|
|
191
198
|
[x: string]: any;
|
|
@@ -214,9 +221,10 @@ declare function useViewService(): {
|
|
|
214
221
|
context: any;
|
|
215
222
|
offset: any;
|
|
216
223
|
}) => Promise<any>;
|
|
217
|
-
getSelectionItem: ({ data, service }: {
|
|
224
|
+
getSelectionItem: ({ data, service, xNode, }: {
|
|
218
225
|
data: GetSelectionType;
|
|
219
226
|
service?: string;
|
|
227
|
+
xNode?: string;
|
|
220
228
|
}) => Promise<any>;
|
|
221
229
|
loadMessages: () => Promise<any>;
|
|
222
230
|
getVersion: () => Promise<any>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-DioSS9fJ.js';
|
|
2
2
|
|
|
3
3
|
declare function useActionService(): {
|
|
4
|
-
loadAction: ({ idAction, context, service, }: {
|
|
4
|
+
loadAction: ({ idAction, context, service, xNode, }: {
|
|
5
5
|
idAction: number;
|
|
6
6
|
context: ContextApi;
|
|
7
7
|
service?: string;
|
|
8
|
+
xNode?: string;
|
|
8
9
|
}) => Promise<any>;
|
|
9
|
-
callButton: ({ model, ids, context, method, service, }: {
|
|
10
|
+
callButton: ({ model, ids, context, method, service, xNode, }: {
|
|
10
11
|
model: string;
|
|
11
12
|
ids: Record<string, any>[] | any;
|
|
12
13
|
context: ContextApi;
|
|
13
14
|
method: any;
|
|
14
15
|
service?: string;
|
|
16
|
+
xNode?: string;
|
|
15
17
|
}) => Promise<any>;
|
|
16
|
-
removeRows: ({ model, ids, context, service, }: {
|
|
18
|
+
removeRows: ({ model, ids, context, service, xNode, }: {
|
|
17
19
|
model: string;
|
|
18
20
|
ids: Record<string, any>[] | any;
|
|
19
21
|
context: ContextApi;
|
|
20
22
|
service?: string;
|
|
23
|
+
xNode?: string;
|
|
21
24
|
}) => Promise<any>;
|
|
22
|
-
duplicateRecord: ({ model, id, context, service, }: {
|
|
25
|
+
duplicateRecord: ({ model, id, context, service, xNode, }: {
|
|
23
26
|
model: string;
|
|
24
27
|
id: any;
|
|
25
28
|
context: ContextApi;
|
|
26
29
|
service?: string;
|
|
30
|
+
xNode?: string;
|
|
27
31
|
}) => Promise<any>;
|
|
28
32
|
getPrintReportName: ({ id }: {
|
|
29
33
|
id: number;
|
|
@@ -33,10 +37,11 @@ declare function useActionService(): {
|
|
|
33
37
|
report: any;
|
|
34
38
|
db: any;
|
|
35
39
|
}) => Promise<any>;
|
|
36
|
-
runAction: ({ idAction, context, service, }: {
|
|
40
|
+
runAction: ({ idAction, context, service, xNode, }: {
|
|
37
41
|
idAction: number;
|
|
38
42
|
context: ContextApi;
|
|
39
43
|
service?: string;
|
|
44
|
+
xNode?: string;
|
|
40
45
|
}) => Promise<any>;
|
|
41
46
|
};
|
|
42
47
|
|
|
@@ -171,21 +176,23 @@ declare function useModelService(): {
|
|
|
171
176
|
}) => Promise<any>;
|
|
172
177
|
getCurrency: () => Promise<any>;
|
|
173
178
|
getConversionRate: () => Promise<any>;
|
|
174
|
-
getAll: ({ data, service }: {
|
|
179
|
+
getAll: ({ data, service, xNode, }: {
|
|
175
180
|
data: any;
|
|
176
181
|
service?: string;
|
|
182
|
+
xNode?: string;
|
|
177
183
|
}) => Promise<any>;
|
|
178
184
|
getListCalendar: ({ data }: {
|
|
179
185
|
data: any;
|
|
180
186
|
}) => Promise<any>;
|
|
181
187
|
getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
|
|
182
|
-
getDetail: ({ ids, model, specification, context, service, }: GetDetailParams) => Promise<any>;
|
|
183
|
-
save: ({ model, ids, data, specification, context, path, service, }: SaveParams) => Promise<any>;
|
|
188
|
+
getDetail: ({ ids, model, specification, context, service, xNode, }: GetDetailParams) => Promise<any>;
|
|
189
|
+
save: ({ model, ids, data, specification, context, path, service, xNode, }: SaveParams) => Promise<any>;
|
|
184
190
|
deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
|
|
185
|
-
onChange: ({ ids, model, object, specification, context, fieldChange, service, }: OnChangeParams) => Promise<any>;
|
|
186
|
-
getListFieldsOnchange: ({ model, service }: {
|
|
191
|
+
onChange: ({ ids, model, object, specification, context, fieldChange, service, xNode, }: OnChangeParams) => Promise<any>;
|
|
192
|
+
getListFieldsOnchange: ({ model, service, xNode, }: {
|
|
187
193
|
model: string;
|
|
188
194
|
service?: string;
|
|
195
|
+
xNode?: string;
|
|
189
196
|
}) => Promise<any>;
|
|
190
197
|
parseORMOdoo: (data: Record<string, any>) => {
|
|
191
198
|
[x: string]: any;
|
|
@@ -214,9 +221,10 @@ declare function useViewService(): {
|
|
|
214
221
|
context: any;
|
|
215
222
|
offset: any;
|
|
216
223
|
}) => Promise<any>;
|
|
217
|
-
getSelectionItem: ({ data, service }: {
|
|
224
|
+
getSelectionItem: ({ data, service, xNode, }: {
|
|
218
225
|
data: GetSelectionType;
|
|
219
226
|
service?: string;
|
|
227
|
+
xNode?: string;
|
|
220
228
|
}) => Promise<any>;
|
|
221
229
|
loadMessages: () => Promise<any>;
|
|
222
230
|
getVersion: () => Promise<any>;
|