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