@fctc/interface-logic 2.4.2 → 2.4.4
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 -5
- package/dist/hooks.d.ts +14 -5
- package/dist/hooks.js +99 -50
- package/dist/hooks.mjs +100 -51
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +100 -51
- package/dist/provider.mjs +101 -52
- package/dist/services.d.mts +21 -13
- package/dist/services.d.ts +21 -13
- package/dist/services.js +57 -25
- package/dist/services.mjs +58 -26
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.mts +2 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +10 -5
- package/dist/utils.mjs +10 -5
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-xxw9OeSR.d.mts} +4 -0
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-xxw9OeSR.d.ts} +4 -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
|
);
|
|
@@ -3359,7 +3368,7 @@ function useExcelService() {
|
|
|
3359
3368
|
};
|
|
3360
3369
|
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3361
3370
|
headers: {
|
|
3362
|
-
"Content-Type": "
|
|
3371
|
+
"Content-Type": "application/json"
|
|
3363
3372
|
}
|
|
3364
3373
|
});
|
|
3365
3374
|
},
|
|
@@ -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
|
|
@@ -4109,7 +4134,8 @@ function useViewService() {
|
|
|
4109
4134
|
context = {},
|
|
4110
4135
|
options = {},
|
|
4111
4136
|
aid,
|
|
4112
|
-
service
|
|
4137
|
+
service,
|
|
4138
|
+
xNode
|
|
4113
4139
|
}) => {
|
|
4114
4140
|
const defaultOptions = {
|
|
4115
4141
|
load_filters: true,
|
|
@@ -4130,7 +4156,8 @@ function useViewService() {
|
|
|
4130
4156
|
jsonDataView,
|
|
4131
4157
|
{
|
|
4132
4158
|
headers: {
|
|
4133
|
-
"Content-Type": "application/json"
|
|
4159
|
+
"Content-Type": "application/json",
|
|
4160
|
+
...xNode ? { x_node: xNode } : {}
|
|
4134
4161
|
}
|
|
4135
4162
|
},
|
|
4136
4163
|
service
|
|
@@ -4218,7 +4245,11 @@ function useViewService() {
|
|
|
4218
4245
|
[env]
|
|
4219
4246
|
);
|
|
4220
4247
|
const getSelectionItem = useCallback9(
|
|
4221
|
-
async ({
|
|
4248
|
+
async ({
|
|
4249
|
+
data,
|
|
4250
|
+
service,
|
|
4251
|
+
xNode
|
|
4252
|
+
}) => {
|
|
4222
4253
|
const jsonData = {
|
|
4223
4254
|
model: data.model,
|
|
4224
4255
|
ids: [],
|
|
@@ -4241,7 +4272,8 @@ function useViewService() {
|
|
|
4241
4272
|
jsonData,
|
|
4242
4273
|
{
|
|
4243
4274
|
headers: {
|
|
4244
|
-
"Content-Type": "application/json"
|
|
4275
|
+
"Content-Type": "application/json",
|
|
4276
|
+
...xNode ? { x_node: xNode } : {}
|
|
4245
4277
|
}
|
|
4246
4278
|
},
|
|
4247
4279
|
service
|
|
@@ -4708,7 +4740,7 @@ var axiosClient = {
|
|
|
4708
4740
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
4709
4741
|
headers
|
|
4710
4742
|
).then(responseBody),
|
|
4711
|
-
post: (url, body, headers, serviceName) => instance.post(
|
|
4743
|
+
post: async (url, body, headers, serviceName) => instance.post(
|
|
4712
4744
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
4713
4745
|
body,
|
|
4714
4746
|
headers
|
|
@@ -5407,13 +5439,15 @@ var useGetDetail = () => {
|
|
|
5407
5439
|
ids,
|
|
5408
5440
|
specification,
|
|
5409
5441
|
context,
|
|
5410
|
-
service
|
|
5442
|
+
service,
|
|
5443
|
+
xNode
|
|
5411
5444
|
}) => getDetail({
|
|
5412
5445
|
model,
|
|
5413
5446
|
ids,
|
|
5414
5447
|
specification,
|
|
5415
5448
|
context,
|
|
5416
|
-
service
|
|
5449
|
+
service,
|
|
5450
|
+
xNode
|
|
5417
5451
|
})
|
|
5418
5452
|
});
|
|
5419
5453
|
};
|
|
@@ -5423,14 +5457,16 @@ var use_get_detail_default = useGetDetail;
|
|
|
5423
5457
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
5424
5458
|
var useGetFieldOnChange = ({
|
|
5425
5459
|
model,
|
|
5426
|
-
service
|
|
5460
|
+
service,
|
|
5461
|
+
xNode
|
|
5427
5462
|
}) => {
|
|
5428
5463
|
const { getListFieldsOnchange } = useModelService();
|
|
5429
5464
|
return useQuery9({
|
|
5430
5465
|
queryKey: [`field-onchange-${model}`, model],
|
|
5431
5466
|
queryFn: () => getListFieldsOnchange({
|
|
5432
5467
|
model,
|
|
5433
|
-
service
|
|
5468
|
+
service,
|
|
5469
|
+
xNode
|
|
5434
5470
|
}).then((res) => {
|
|
5435
5471
|
if (res) {
|
|
5436
5472
|
return res;
|
|
@@ -5470,12 +5506,10 @@ var use_get_list_my_bank_account_default = useGetListMyBankAccount;
|
|
|
5470
5506
|
var BaseModel = class {
|
|
5471
5507
|
name;
|
|
5472
5508
|
view;
|
|
5473
|
-
actContext;
|
|
5474
5509
|
fields;
|
|
5475
5510
|
constructor(init) {
|
|
5476
5511
|
this.name = init.name;
|
|
5477
5512
|
this.view = init.view;
|
|
5478
|
-
this.actContext = init.actContext;
|
|
5479
5513
|
this.fields = init.fields;
|
|
5480
5514
|
}
|
|
5481
5515
|
getSpecificationByFields({
|
|
@@ -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
|
};
|
|
@@ -5806,12 +5847,12 @@ var useGetGroups = ({
|
|
|
5806
5847
|
var use_get_groups_default = useGetGroups;
|
|
5807
5848
|
|
|
5808
5849
|
// src/hooks/view/use-get-list-data.ts
|
|
5809
|
-
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
5810
|
-
var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
5850
|
+
import { keepPreviousData, useQuery as useQuery14 } from "@tanstack/react-query";
|
|
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
|
}
|
|
@@ -5819,7 +5860,8 @@ var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
|
5819
5860
|
}),
|
|
5820
5861
|
enabled,
|
|
5821
5862
|
refetchOnWindowFocus: false,
|
|
5822
|
-
staleTime: 0
|
|
5863
|
+
staleTime: 0,
|
|
5864
|
+
placeholderData: keepPreviousData
|
|
5823
5865
|
});
|
|
5824
5866
|
};
|
|
5825
5867
|
var use_get_list_data_default = useGetListData;
|
|
@@ -5888,12 +5930,13 @@ var useGetSelection = ({
|
|
|
5888
5930
|
data,
|
|
5889
5931
|
queryKey,
|
|
5890
5932
|
enabled,
|
|
5891
|
-
service
|
|
5933
|
+
service,
|
|
5934
|
+
xNode
|
|
5892
5935
|
}) => {
|
|
5893
5936
|
const { getSelectionItem } = useViewService();
|
|
5894
5937
|
return useQuery17({
|
|
5895
5938
|
queryKey,
|
|
5896
|
-
queryFn: () => getSelectionItem({ data, service }),
|
|
5939
|
+
queryFn: () => getSelectionItem({ data, service, xNode }),
|
|
5897
5940
|
enabled,
|
|
5898
5941
|
refetchOnWindowFocus: false
|
|
5899
5942
|
});
|
|
@@ -5922,12 +5965,14 @@ var useLoadAction = () => {
|
|
|
5922
5965
|
mutationFn: ({
|
|
5923
5966
|
idAction,
|
|
5924
5967
|
context,
|
|
5925
|
-
service
|
|
5968
|
+
service,
|
|
5969
|
+
xNode
|
|
5926
5970
|
}) => {
|
|
5927
5971
|
return loadAction({
|
|
5928
5972
|
idAction,
|
|
5929
5973
|
context,
|
|
5930
|
-
service
|
|
5974
|
+
service,
|
|
5975
|
+
xNode
|
|
5931
5976
|
});
|
|
5932
5977
|
}
|
|
5933
5978
|
});
|
|
@@ -5969,12 +6014,14 @@ var useRemoveRow = () => {
|
|
|
5969
6014
|
model,
|
|
5970
6015
|
ids,
|
|
5971
6016
|
context,
|
|
5972
|
-
service
|
|
6017
|
+
service,
|
|
6018
|
+
xNode
|
|
5973
6019
|
}) => removeRows({
|
|
5974
6020
|
model,
|
|
5975
6021
|
ids,
|
|
5976
6022
|
context,
|
|
5977
|
-
service
|
|
6023
|
+
service,
|
|
6024
|
+
xNode
|
|
5978
6025
|
})
|
|
5979
6026
|
});
|
|
5980
6027
|
};
|
|
@@ -6006,11 +6053,13 @@ var useRunAction = () => {
|
|
|
6006
6053
|
mutationFn: ({
|
|
6007
6054
|
idAction,
|
|
6008
6055
|
context,
|
|
6009
|
-
service
|
|
6056
|
+
service,
|
|
6057
|
+
xNode
|
|
6010
6058
|
}) => runAction({
|
|
6011
6059
|
idAction,
|
|
6012
6060
|
context,
|
|
6013
|
-
service
|
|
6061
|
+
service,
|
|
6062
|
+
xNode
|
|
6014
6063
|
})
|
|
6015
6064
|
});
|
|
6016
6065
|
};
|
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-xxw9OeSR.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;
|
|
@@ -205,7 +212,7 @@ declare function useUserService(): {
|
|
|
205
212
|
};
|
|
206
213
|
|
|
207
214
|
declare function useViewService(): {
|
|
208
|
-
getView: ({ model, views, context, options, aid, service, }: GetViewParams) => Promise<any>;
|
|
215
|
+
getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
|
|
209
216
|
getMenu: (context: any, specification: any, domain: any) => Promise<any>;
|
|
210
217
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
211
218
|
getResequence: ({ model, ids, context, offset, }: {
|
|
@@ -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-xxw9OeSR.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;
|
|
@@ -205,7 +212,7 @@ declare function useUserService(): {
|
|
|
205
212
|
};
|
|
206
213
|
|
|
207
214
|
declare function useViewService(): {
|
|
208
|
-
getView: ({ model, views, context, options, aid, service, }: GetViewParams) => Promise<any>;
|
|
215
|
+
getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
|
|
209
216
|
getMenu: (context: any, specification: any, domain: any) => Promise<any>;
|
|
210
217
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
211
218
|
getResequence: ({ model, ids, context, offset, }: {
|
|
@@ -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>;
|