@fctc/interface-logic 2.2.1 → 2.2.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/provider.mjs CHANGED
@@ -675,6 +675,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
675
675
  UriConstants2["IMAGE_PATH"] = `/web/image`;
676
676
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
677
677
  UriConstants2["TOKEN"] = `/check_token`;
678
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = `/action-token/validate`;
678
679
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
679
680
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
680
681
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -2848,21 +2849,15 @@ function useActionService() {
2848
2849
  const loadAction = useCallback(
2849
2850
  async ({
2850
2851
  idAction,
2851
- context,
2852
- service
2852
+ context
2853
2853
  }) => {
2854
2854
  const jsonData = {
2855
2855
  action_id: idAction,
2856
2856
  with_context: { ...context }
2857
2857
  };
2858
- return env.requests.post(
2859
- "/load_action" /* LOAD_ACTION */,
2860
- jsonData,
2861
- {
2862
- headers: { "Content-Type": "application/json" }
2863
- },
2864
- service
2865
- );
2858
+ return env.requests.post("/load_action" /* LOAD_ACTION */, jsonData, {
2859
+ headers: { "Content-Type": "application/json" }
2860
+ });
2866
2861
  },
2867
2862
  [env]
2868
2863
  );
@@ -2871,8 +2866,7 @@ function useActionService() {
2871
2866
  model,
2872
2867
  ids = [],
2873
2868
  context,
2874
- method,
2875
- service
2869
+ method
2876
2870
  }) => {
2877
2871
  try {
2878
2872
  const jsonData = {
@@ -2881,14 +2875,9 @@ function useActionService() {
2881
2875
  ids,
2882
2876
  with_context: context
2883
2877
  };
2884
- return env.requests.post(
2885
- "/call" /* CALL_PATH */,
2886
- jsonData,
2887
- {
2888
- headers: { "Content-Type": "application/json" }
2889
- },
2890
- service
2891
- );
2878
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2879
+ headers: { "Content-Type": "application/json" }
2880
+ });
2892
2881
  } catch (error) {
2893
2882
  console.error("Error when calling button action:", error);
2894
2883
  throw error;
@@ -2900,8 +2889,7 @@ function useActionService() {
2900
2889
  async ({
2901
2890
  model,
2902
2891
  ids,
2903
- context,
2904
- service
2892
+ context
2905
2893
  }) => {
2906
2894
  const jsonData = {
2907
2895
  model,
@@ -2909,14 +2897,9 @@ function useActionService() {
2909
2897
  ids,
2910
2898
  with_context: context
2911
2899
  };
2912
- return env.requests.post(
2913
- "/call" /* CALL_PATH */,
2914
- jsonData,
2915
- {
2916
- headers: { "Content-Type": "application/json" }
2917
- },
2918
- service
2919
- );
2900
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2901
+ headers: { "Content-Type": "application/json" }
2902
+ });
2920
2903
  },
2921
2904
  [env]
2922
2905
  );
@@ -2924,8 +2907,7 @@ function useActionService() {
2924
2907
  async ({
2925
2908
  model,
2926
2909
  id,
2927
- context,
2928
- service
2910
+ context
2929
2911
  }) => {
2930
2912
  const jsonData = {
2931
2913
  model,
@@ -2933,14 +2915,9 @@ function useActionService() {
2933
2915
  ids: id,
2934
2916
  with_context: context
2935
2917
  };
2936
- return env.requests.post(
2937
- "/call" /* CALL_PATH */,
2938
- jsonData,
2939
- {
2940
- headers: { "Content-Type": "application/json" }
2941
- },
2942
- service
2943
- );
2918
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2919
+ headers: { "Content-Type": "application/json" }
2920
+ });
2944
2921
  },
2945
2922
  [env]
2946
2923
  );
@@ -2983,21 +2960,15 @@ function useActionService() {
2983
2960
  const runAction = useCallback(
2984
2961
  async ({
2985
2962
  idAction,
2986
- context,
2987
- service
2963
+ context
2988
2964
  }) => {
2989
2965
  const jsonData = {
2990
2966
  action_id: idAction,
2991
2967
  with_context: { ...context }
2992
2968
  };
2993
- return env.requests.post(
2994
- "/run_action" /* RUN_ACTION_PATH */,
2995
- jsonData,
2996
- {
2997
- headers: { "Content-Type": "application/json" }
2998
- },
2999
- service
3000
- );
2969
+ return env.requests.post("/run_action" /* RUN_ACTION_PATH */, jsonData, {
2970
+ headers: { "Content-Type": "application/json" }
2971
+ });
3001
2972
  },
3002
2973
  [env]
3003
2974
  );
@@ -3140,18 +3111,15 @@ function useAuthService() {
3140
3111
  [env]
3141
3112
  );
3142
3113
  const isValidActionToken = useCallback2(
3143
- async (actionToken, path) => {
3144
- return env?.requests?.post(
3145
- path,
3146
- {},
3147
- {
3148
- headers: {
3149
- "Content-Type": "application/json"
3150
- },
3151
- useActionToken: true,
3152
- actionToken
3153
- }
3154
- );
3114
+ async (actionToken) => {
3115
+ const bodyData = {};
3116
+ return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
3117
+ headers: {
3118
+ "Content-Type": "application/json"
3119
+ },
3120
+ useActionToken: true,
3121
+ actionToken
3122
+ });
3155
3123
  },
3156
3124
  [env]
3157
3125
  );
@@ -3712,7 +3680,7 @@ function useModelService() {
3712
3680
  });
3713
3681
  }, [env]);
3714
3682
  const getAll = useCallback7(
3715
- async ({ data, service }) => {
3683
+ async ({ data }) => {
3716
3684
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3717
3685
  fields: data.fields,
3718
3686
  groupby: data.groupby
@@ -3733,16 +3701,11 @@ function useModelService() {
3733
3701
  ...jsonReadGroup
3734
3702
  }
3735
3703
  };
3736
- return env.requests.post(
3737
- "/call" /* CALL_PATH */,
3738
- jsonData,
3739
- {
3740
- headers: {
3741
- "Content-Type": "application/json"
3742
- }
3743
- },
3744
- service
3745
- );
3704
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3705
+ headers: {
3706
+ "Content-Type": "application/json"
3707
+ }
3708
+ });
3746
3709
  },
3747
3710
  [env]
3748
3711
  );
@@ -3810,13 +3773,7 @@ function useModelService() {
3810
3773
  [env]
3811
3774
  );
3812
3775
  const getDetail = useCallback7(
3813
- async ({
3814
- ids = [],
3815
- model,
3816
- specification,
3817
- context,
3818
- service
3819
- }) => {
3776
+ async ({ ids = [], model, specification, context }) => {
3820
3777
  const jsonData = {
3821
3778
  model,
3822
3779
  method: "web_read" /* WEB_READ */,
@@ -3826,16 +3783,11 @@ function useModelService() {
3826
3783
  specification
3827
3784
  }
3828
3785
  };
3829
- return env.requests.post(
3830
- "/call" /* CALL_PATH */,
3831
- jsonData,
3832
- {
3833
- headers: {
3834
- "Content-Type": "application/json"
3835
- }
3836
- },
3837
- service
3838
- );
3786
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3787
+ headers: {
3788
+ "Content-Type": "application/json"
3789
+ }
3790
+ });
3839
3791
  },
3840
3792
  [env]
3841
3793
  );
@@ -3846,8 +3798,7 @@ function useModelService() {
3846
3798
  data = {},
3847
3799
  specification = {},
3848
3800
  context = {},
3849
- path,
3850
- service
3801
+ path
3851
3802
  }) => {
3852
3803
  const jsonData = {
3853
3804
  model,
@@ -3859,36 +3810,26 @@ function useModelService() {
3859
3810
  specification
3860
3811
  }
3861
3812
  };
3862
- return env.requests.post(
3863
- path ?? "/call" /* CALL_PATH */,
3864
- jsonData,
3865
- {
3866
- headers: {
3867
- "Content-Type": "application/json"
3868
- }
3869
- },
3870
- service
3871
- );
3813
+ return env.requests.post(path ?? "/call" /* CALL_PATH */, jsonData, {
3814
+ headers: {
3815
+ "Content-Type": "application/json"
3816
+ }
3817
+ });
3872
3818
  },
3873
3819
  [env]
3874
3820
  );
3875
3821
  const deleteApi = useCallback7(
3876
- async ({ ids = [], model, service }) => {
3822
+ async ({ ids = [], model }) => {
3877
3823
  const jsonData = {
3878
3824
  model,
3879
3825
  method: "unlink" /* UNLINK */,
3880
3826
  ids
3881
3827
  };
3882
- return env.requests.post(
3883
- "/call" /* CALL_PATH */,
3884
- jsonData,
3885
- {
3886
- headers: {
3887
- "Content-Type": "application/json"
3888
- }
3889
- },
3890
- service
3891
- );
3828
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3829
+ headers: {
3830
+ "Content-Type": "application/json"
3831
+ }
3832
+ });
3892
3833
  },
3893
3834
  [env]
3894
3835
  );
@@ -3899,8 +3840,7 @@ function useModelService() {
3899
3840
  object,
3900
3841
  specification,
3901
3842
  context,
3902
- fieldChange,
3903
- service
3843
+ fieldChange
3904
3844
  }) => {
3905
3845
  const jsonData = {
3906
3846
  model,
@@ -3913,36 +3853,25 @@ function useModelService() {
3913
3853
  specification
3914
3854
  ]
3915
3855
  };
3916
- return env.requests.post(
3917
- "/call" /* CALL_PATH */,
3918
- jsonData,
3919
- {
3920
- headers: {
3921
- "Content-Type": "application/json"
3922
- }
3923
- },
3924
- service
3925
- );
3856
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3857
+ headers: {
3858
+ "Content-Type": "application/json"
3859
+ }
3860
+ });
3926
3861
  },
3927
3862
  [env]
3928
3863
  );
3929
3864
  const getListFieldsOnchange = useCallback7(
3930
- async ({ model, service }) => {
3931
- console.log("service", service);
3865
+ async ({ model }) => {
3932
3866
  const jsonData = {
3933
3867
  model,
3934
3868
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
3935
3869
  };
3936
- return env.requests.post(
3937
- "/call" /* CALL_PATH */,
3938
- jsonData,
3939
- {
3940
- headers: {
3941
- "Content-Type": "application/json"
3942
- }
3943
- },
3944
- service
3945
- );
3870
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3871
+ headers: {
3872
+ "Content-Type": "application/json"
3873
+ }
3874
+ });
3946
3875
  },
3947
3876
  [env]
3948
3877
  );
@@ -4102,8 +4031,7 @@ function useViewService() {
4102
4031
  views,
4103
4032
  context = {},
4104
4033
  options = {},
4105
- aid,
4106
- service
4034
+ aid
4107
4035
  }) => {
4108
4036
  const defaultOptions = {
4109
4037
  load_filters: true,
@@ -4119,16 +4047,11 @@ function useViewService() {
4119
4047
  },
4120
4048
  with_context: context
4121
4049
  };
4122
- return env?.requests?.post(
4123
- "/call" /* CALL_PATH */,
4124
- jsonDataView,
4125
- {
4126
- headers: {
4127
- "Content-Type": "application/json"
4128
- }
4129
- },
4130
- service
4131
- );
4050
+ return env?.requests?.post("/call" /* CALL_PATH */, jsonDataView, {
4051
+ headers: {
4052
+ "Content-Type": "application/json"
4053
+ }
4054
+ });
4132
4055
  },
4133
4056
  [env]
4134
4057
  );
@@ -4211,7 +4134,7 @@ function useViewService() {
4211
4134
  [env]
4212
4135
  );
4213
4136
  const getSelectionItem = useCallback9(
4214
- async ({ data, service }) => {
4137
+ async ({ data }) => {
4215
4138
  const jsonData = {
4216
4139
  model: data.model,
4217
4140
  ids: [],
@@ -4229,16 +4152,11 @@ function useViewService() {
4229
4152
  }
4230
4153
  }
4231
4154
  };
4232
- return env?.requests.post(
4233
- "/call" /* CALL_PATH */,
4234
- jsonData,
4235
- {
4236
- headers: {
4237
- "Content-Type": "application/json"
4238
- }
4239
- },
4240
- service
4241
- );
4155
+ return env?.requests.post("/call" /* CALL_PATH */, jsonData, {
4156
+ headers: {
4157
+ "Content-Type": "application/json"
4158
+ }
4159
+ });
4242
4160
  },
4243
4161
  [env]
4244
4162
  );
@@ -4531,6 +4449,7 @@ var sessionStorageUtils = () => {
4531
4449
  // src/configs/axios-client.ts
4532
4450
  var axiosClient = {
4533
4451
  init(config) {
4452
+ console.log("config", config);
4534
4453
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
4535
4454
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
4536
4455
  const db = config?.db;
@@ -4549,21 +4468,25 @@ var axiosClient = {
4549
4468
  };
4550
4469
  const instance = axios.create({
4551
4470
  adapter: axios.defaults.adapter,
4552
- baseURL: config?.baseUrl,
4471
+ baseURL: config.baseUrl,
4553
4472
  timeout: 5e4,
4554
4473
  paramsSerializer: (params) => new URLSearchParams(params).toString()
4555
4474
  });
4556
4475
  instance.interceptors.request.use(async (config2) => {
4557
4476
  const { useRefreshToken, useActionToken, actionToken } = config2;
4477
+ let token = null;
4558
4478
  if (useActionToken && actionToken) {
4559
- config2.headers["Action-Token"] = actionToken;
4479
+ token = actionToken;
4480
+ } else {
4481
+ const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
4482
+ token = await getToken?.();
4483
+ }
4484
+ if (token) {
4485
+ config2.headers["Authorization"] = `Bearer ${token}`;
4560
4486
  }
4561
4487
  if (database) {
4562
4488
  config2.headers["DATABASE"] = database;
4563
4489
  }
4564
- const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
4565
- const token = await getToken?.();
4566
- if (token) config2.headers["Authorization"] = `Bearer ${token}`;
4567
4490
  return config2;
4568
4491
  }, Promise.reject);
4569
4492
  instance.interceptors.response.use(
@@ -4618,7 +4541,7 @@ var axiosClient = {
4618
4541
  );
4619
4542
  return new Promise(function(resolve) {
4620
4543
  axios.post(
4621
- `${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
4544
+ `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
4622
4545
  payload,
4623
4546
  {
4624
4547
  headers: {
@@ -4686,47 +4609,20 @@ var axiosClient = {
4686
4609
  function formatUrl(url, db2) {
4687
4610
  return url + (db2 ? "?db=" + db2 : "");
4688
4611
  }
4689
- const getBaseUrl = (baseUrl, serviceName) => {
4690
- const service = serviceName || config?.default_service;
4691
- return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
4692
- };
4693
4612
  const responseBody = (response) => response;
4694
4613
  const requests = {
4695
- get: (url, headers, serviceName) => instance.get(
4696
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4697
- headers
4698
- ).then(responseBody),
4699
- post: (url, body, headers, serviceName) => instance.post(
4700
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4701
- body,
4702
- headers
4703
- ).then(responseBody),
4704
- post_excel: (url, body, headers, serviceName) => instance.post(
4705
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4706
- body,
4707
- {
4708
- responseType: "arraybuffer",
4709
- headers: {
4710
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
4711
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
4712
- ...headers
4713
- }
4614
+ get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
4615
+ post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
4616
+ post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
4617
+ responseType: "arraybuffer",
4618
+ headers: {
4619
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
4620
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
4714
4621
  }
4715
- ).then(responseBody),
4716
- put: (url, body, headers, serviceName) => instance.put(
4717
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4718
- body,
4719
- headers
4720
- ).then(responseBody),
4721
- patch: (url, body, headers, serviceName) => instance.patch(
4722
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4723
- body,
4724
- headers
4725
- ).then(responseBody),
4726
- delete: (url, headers, serviceName) => instance.delete(
4727
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4728
- headers
4729
- ).then(responseBody)
4622
+ }).then(responseBody),
4623
+ put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
4624
+ patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
4625
+ delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
4730
4626
  };
4731
4627
  return requests;
4732
4628
  }
@@ -5010,11 +4906,8 @@ import { useMutation as useMutation12 } from "@tanstack/react-query";
5010
4906
  var useValidateActionToken = () => {
5011
4907
  const { isValidActionToken } = useAuthService();
5012
4908
  return useMutation12({
5013
- mutationFn: ({
5014
- actionToken,
5015
- path
5016
- }) => {
5017
- return isValidActionToken(actionToken, path);
4909
+ mutationFn: ({ actionToken }) => {
4910
+ return isValidActionToken(actionToken);
5018
4911
  }
5019
4912
  });
5020
4913
  };
@@ -5322,7 +5215,7 @@ import { useMutation as useMutation25 } from "@tanstack/react-query";
5322
5215
  var useDelete = () => {
5323
5216
  const { deleteApi } = useModelService();
5324
5217
  return useMutation25({
5325
- mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
5218
+ mutationFn: ({ ids, model }) => deleteApi({ ids, model })
5326
5219
  });
5327
5220
  };
5328
5221
  var use_delete_default = useDelete;
@@ -5385,14 +5278,12 @@ var useGetDetail = () => {
5385
5278
  model,
5386
5279
  ids,
5387
5280
  specification,
5388
- context,
5389
- service
5281
+ context
5390
5282
  }) => getDetail({
5391
5283
  model,
5392
5284
  ids,
5393
5285
  specification,
5394
- context,
5395
- service
5286
+ context
5396
5287
  })
5397
5288
  });
5398
5289
  };
@@ -5400,17 +5291,12 @@ var use_get_detail_default = useGetDetail;
5400
5291
 
5401
5292
  // src/hooks/model/use-get-field-onchange.ts
5402
5293
  import { useQuery as useQuery9 } from "@tanstack/react-query";
5403
- var useGetFieldOnChange = ({
5404
- model,
5405
- service
5406
- }) => {
5294
+ var useGetFieldOnChange = ({ model }) => {
5407
5295
  const { getListFieldsOnchange } = useModelService();
5408
- console.log("service", service);
5409
5296
  return useQuery9({
5410
5297
  queryKey: [`field-onchange-${model}`, model],
5411
5298
  queryFn: () => getListFieldsOnchange({
5412
- model,
5413
- service
5299
+ model
5414
5300
  }).then((res) => {
5415
5301
  if (res) {
5416
5302
  return res;
@@ -5593,16 +5479,14 @@ var useOnChangeForm = () => {
5593
5479
  specification,
5594
5480
  context,
5595
5481
  object,
5596
- fieldChange,
5597
- service
5482
+ fieldChange
5598
5483
  }) => onChange({
5599
5484
  ids,
5600
5485
  model,
5601
5486
  specification,
5602
5487
  context,
5603
5488
  object,
5604
- fieldChange,
5605
- service
5489
+ fieldChange
5606
5490
  })
5607
5491
  });
5608
5492
  };
@@ -5619,9 +5503,8 @@ var useSave = () => {
5619
5503
  data,
5620
5504
  specification,
5621
5505
  context,
5622
- path,
5623
- service
5624
- }) => save({ ids, model, data, specification, context, path, service })
5506
+ path
5507
+ }) => save({ ids, model, data, specification, context, path })
5625
5508
  });
5626
5509
  };
5627
5510
  var use_save_default = useSave;
@@ -5673,14 +5556,12 @@ var useButton = () => {
5673
5556
  model,
5674
5557
  ids,
5675
5558
  context,
5676
- method,
5677
- service
5559
+ method
5678
5560
  }) => callButton({
5679
5561
  model,
5680
5562
  ids,
5681
5563
  context,
5682
- method,
5683
- service
5564
+ method
5684
5565
  }),
5685
5566
  onSuccess: (response) => {
5686
5567
  return response;
@@ -5697,13 +5578,11 @@ var useDuplicateRecord = () => {
5697
5578
  mutationFn: ({
5698
5579
  id,
5699
5580
  model,
5700
- context,
5701
- service
5581
+ context
5702
5582
  }) => duplicateRecord({
5703
5583
  id,
5704
5584
  model,
5705
- context,
5706
- service
5585
+ context
5707
5586
  })
5708
5587
  });
5709
5588
  };
@@ -5786,11 +5665,11 @@ var use_get_groups_default = useGetGroups;
5786
5665
 
5787
5666
  // src/hooks/view/use-get-list-data.ts
5788
5667
  import { useQuery as useQuery14 } from "@tanstack/react-query";
5789
- var useGetListData = (listDataProps, queryKey, enabled, service) => {
5668
+ var useGetListData = (listDataProps, queryKey, enabled) => {
5790
5669
  const { getAll } = useModelService();
5791
5670
  return useQuery14({
5792
5671
  queryKey,
5793
- queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
5672
+ queryFn: () => getAll({ data: listDataProps }).then((res) => {
5794
5673
  if (res) {
5795
5674
  return res;
5796
5675
  }
@@ -5866,13 +5745,12 @@ import { useQuery as useQuery17 } from "@tanstack/react-query";
5866
5745
  var useGetSelection = ({
5867
5746
  data,
5868
5747
  queryKey,
5869
- enabled,
5870
- service
5748
+ enabled
5871
5749
  }) => {
5872
5750
  const { getSelectionItem } = useViewService();
5873
5751
  return useQuery17({
5874
5752
  queryKey,
5875
- queryFn: () => getSelectionItem({ data, service }),
5753
+ queryFn: () => getSelectionItem({ data }),
5876
5754
  enabled,
5877
5755
  refetchOnWindowFocus: false
5878
5756
  });
@@ -5900,13 +5778,11 @@ var useLoadAction = () => {
5900
5778
  return useMutation35({
5901
5779
  mutationFn: ({
5902
5780
  idAction,
5903
- context,
5904
- service
5781
+ context
5905
5782
  }) => {
5906
5783
  return loadAction({
5907
5784
  idAction,
5908
- context,
5909
- service
5785
+ context
5910
5786
  });
5911
5787
  }
5912
5788
  });
@@ -5947,13 +5823,11 @@ var useRemoveRow = () => {
5947
5823
  mutationFn: ({
5948
5824
  model,
5949
5825
  ids,
5950
- context,
5951
- service
5826
+ context
5952
5827
  }) => removeRows({
5953
5828
  model,
5954
5829
  ids,
5955
- context,
5956
- service
5830
+ context
5957
5831
  })
5958
5832
  });
5959
5833
  };
@@ -5984,12 +5858,10 @@ var useRunAction = () => {
5984
5858
  return useMutation38({
5985
5859
  mutationFn: ({
5986
5860
  idAction,
5987
- context,
5988
- service
5861
+ context
5989
5862
  }) => runAction({
5990
5863
  idAction,
5991
- context,
5992
- service
5864
+ context
5993
5865
  })
5994
5866
  });
5995
5867
  };