@fctc/interface-logic 2.2.0 → 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.js CHANGED
@@ -718,6 +718,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
718
718
  UriConstants2["IMAGE_PATH"] = `/web/image`;
719
719
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
720
720
  UriConstants2["TOKEN"] = `/check_token`;
721
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = `/action-token/validate`;
721
722
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
722
723
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
723
724
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -2891,21 +2892,15 @@ function useActionService() {
2891
2892
  const loadAction = (0, import_react2.useCallback)(
2892
2893
  async ({
2893
2894
  idAction,
2894
- context,
2895
- service
2895
+ context
2896
2896
  }) => {
2897
2897
  const jsonData = {
2898
2898
  action_id: idAction,
2899
2899
  with_context: { ...context }
2900
2900
  };
2901
- return env.requests.post(
2902
- "/load_action" /* LOAD_ACTION */,
2903
- jsonData,
2904
- {
2905
- headers: { "Content-Type": "application/json" }
2906
- },
2907
- service
2908
- );
2901
+ return env.requests.post("/load_action" /* LOAD_ACTION */, jsonData, {
2902
+ headers: { "Content-Type": "application/json" }
2903
+ });
2909
2904
  },
2910
2905
  [env]
2911
2906
  );
@@ -2914,8 +2909,7 @@ function useActionService() {
2914
2909
  model,
2915
2910
  ids = [],
2916
2911
  context,
2917
- method,
2918
- service
2912
+ method
2919
2913
  }) => {
2920
2914
  try {
2921
2915
  const jsonData = {
@@ -2924,14 +2918,9 @@ function useActionService() {
2924
2918
  ids,
2925
2919
  with_context: context
2926
2920
  };
2927
- return env.requests.post(
2928
- "/call" /* CALL_PATH */,
2929
- jsonData,
2930
- {
2931
- headers: { "Content-Type": "application/json" }
2932
- },
2933
- service
2934
- );
2921
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2922
+ headers: { "Content-Type": "application/json" }
2923
+ });
2935
2924
  } catch (error) {
2936
2925
  console.error("Error when calling button action:", error);
2937
2926
  throw error;
@@ -2943,8 +2932,7 @@ function useActionService() {
2943
2932
  async ({
2944
2933
  model,
2945
2934
  ids,
2946
- context,
2947
- service
2935
+ context
2948
2936
  }) => {
2949
2937
  const jsonData = {
2950
2938
  model,
@@ -2952,14 +2940,9 @@ function useActionService() {
2952
2940
  ids,
2953
2941
  with_context: context
2954
2942
  };
2955
- return env.requests.post(
2956
- "/call" /* CALL_PATH */,
2957
- jsonData,
2958
- {
2959
- headers: { "Content-Type": "application/json" }
2960
- },
2961
- service
2962
- );
2943
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2944
+ headers: { "Content-Type": "application/json" }
2945
+ });
2963
2946
  },
2964
2947
  [env]
2965
2948
  );
@@ -2967,8 +2950,7 @@ function useActionService() {
2967
2950
  async ({
2968
2951
  model,
2969
2952
  id,
2970
- context,
2971
- service
2953
+ context
2972
2954
  }) => {
2973
2955
  const jsonData = {
2974
2956
  model,
@@ -2976,14 +2958,9 @@ function useActionService() {
2976
2958
  ids: id,
2977
2959
  with_context: context
2978
2960
  };
2979
- return env.requests.post(
2980
- "/call" /* CALL_PATH */,
2981
- jsonData,
2982
- {
2983
- headers: { "Content-Type": "application/json" }
2984
- },
2985
- service
2986
- );
2961
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2962
+ headers: { "Content-Type": "application/json" }
2963
+ });
2987
2964
  },
2988
2965
  [env]
2989
2966
  );
@@ -3026,21 +3003,15 @@ function useActionService() {
3026
3003
  const runAction = (0, import_react2.useCallback)(
3027
3004
  async ({
3028
3005
  idAction,
3029
- context,
3030
- service
3006
+ context
3031
3007
  }) => {
3032
3008
  const jsonData = {
3033
3009
  action_id: idAction,
3034
3010
  with_context: { ...context }
3035
3011
  };
3036
- return env.requests.post(
3037
- "/run_action" /* RUN_ACTION_PATH */,
3038
- jsonData,
3039
- {
3040
- headers: { "Content-Type": "application/json" }
3041
- },
3042
- service
3043
- );
3012
+ return env.requests.post("/run_action" /* RUN_ACTION_PATH */, jsonData, {
3013
+ headers: { "Content-Type": "application/json" }
3014
+ });
3044
3015
  },
3045
3016
  [env]
3046
3017
  );
@@ -3183,18 +3154,15 @@ function useAuthService() {
3183
3154
  [env]
3184
3155
  );
3185
3156
  const isValidActionToken = (0, import_react3.useCallback)(
3186
- async (actionToken, path) => {
3187
- return env?.requests?.post(
3188
- path,
3189
- {},
3190
- {
3191
- headers: {
3192
- "Content-Type": "application/json"
3193
- },
3194
- useActionToken: true,
3195
- actionToken
3196
- }
3197
- );
3157
+ async (actionToken) => {
3158
+ const bodyData = {};
3159
+ return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
3160
+ headers: {
3161
+ "Content-Type": "application/json"
3162
+ },
3163
+ useActionToken: true,
3164
+ actionToken
3165
+ });
3198
3166
  },
3199
3167
  [env]
3200
3168
  );
@@ -3755,7 +3723,7 @@ function useModelService() {
3755
3723
  });
3756
3724
  }, [env]);
3757
3725
  const getAll = (0, import_react8.useCallback)(
3758
- async ({ data, service }) => {
3726
+ async ({ data }) => {
3759
3727
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3760
3728
  fields: data.fields,
3761
3729
  groupby: data.groupby
@@ -3776,16 +3744,11 @@ function useModelService() {
3776
3744
  ...jsonReadGroup
3777
3745
  }
3778
3746
  };
3779
- return env.requests.post(
3780
- "/call" /* CALL_PATH */,
3781
- jsonData,
3782
- {
3783
- headers: {
3784
- "Content-Type": "application/json"
3785
- }
3786
- },
3787
- service
3788
- );
3747
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3748
+ headers: {
3749
+ "Content-Type": "application/json"
3750
+ }
3751
+ });
3789
3752
  },
3790
3753
  [env]
3791
3754
  );
@@ -3853,13 +3816,7 @@ function useModelService() {
3853
3816
  [env]
3854
3817
  );
3855
3818
  const getDetail = (0, import_react8.useCallback)(
3856
- async ({
3857
- ids = [],
3858
- model,
3859
- specification,
3860
- context,
3861
- service
3862
- }) => {
3819
+ async ({ ids = [], model, specification, context }) => {
3863
3820
  const jsonData = {
3864
3821
  model,
3865
3822
  method: "web_read" /* WEB_READ */,
@@ -3869,16 +3826,11 @@ function useModelService() {
3869
3826
  specification
3870
3827
  }
3871
3828
  };
3872
- return env.requests.post(
3873
- "/call" /* CALL_PATH */,
3874
- jsonData,
3875
- {
3876
- headers: {
3877
- "Content-Type": "application/json"
3878
- }
3879
- },
3880
- service
3881
- );
3829
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3830
+ headers: {
3831
+ "Content-Type": "application/json"
3832
+ }
3833
+ });
3882
3834
  },
3883
3835
  [env]
3884
3836
  );
@@ -3889,8 +3841,7 @@ function useModelService() {
3889
3841
  data = {},
3890
3842
  specification = {},
3891
3843
  context = {},
3892
- path,
3893
- service
3844
+ path
3894
3845
  }) => {
3895
3846
  const jsonData = {
3896
3847
  model,
@@ -3902,36 +3853,26 @@ function useModelService() {
3902
3853
  specification
3903
3854
  }
3904
3855
  };
3905
- return env.requests.post(
3906
- path ?? "/call" /* CALL_PATH */,
3907
- jsonData,
3908
- {
3909
- headers: {
3910
- "Content-Type": "application/json"
3911
- }
3912
- },
3913
- service
3914
- );
3856
+ return env.requests.post(path ?? "/call" /* CALL_PATH */, jsonData, {
3857
+ headers: {
3858
+ "Content-Type": "application/json"
3859
+ }
3860
+ });
3915
3861
  },
3916
3862
  [env]
3917
3863
  );
3918
3864
  const deleteApi = (0, import_react8.useCallback)(
3919
- async ({ ids = [], model, service }) => {
3865
+ async ({ ids = [], model }) => {
3920
3866
  const jsonData = {
3921
3867
  model,
3922
3868
  method: "unlink" /* UNLINK */,
3923
3869
  ids
3924
3870
  };
3925
- return env.requests.post(
3926
- "/call" /* CALL_PATH */,
3927
- jsonData,
3928
- {
3929
- headers: {
3930
- "Content-Type": "application/json"
3931
- }
3932
- },
3933
- service
3934
- );
3871
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3872
+ headers: {
3873
+ "Content-Type": "application/json"
3874
+ }
3875
+ });
3935
3876
  },
3936
3877
  [env]
3937
3878
  );
@@ -3942,8 +3883,7 @@ function useModelService() {
3942
3883
  object,
3943
3884
  specification,
3944
3885
  context,
3945
- fieldChange,
3946
- service
3886
+ fieldChange
3947
3887
  }) => {
3948
3888
  const jsonData = {
3949
3889
  model,
@@ -3956,36 +3896,25 @@ function useModelService() {
3956
3896
  specification
3957
3897
  ]
3958
3898
  };
3959
- return env.requests.post(
3960
- "/call" /* CALL_PATH */,
3961
- jsonData,
3962
- {
3963
- headers: {
3964
- "Content-Type": "application/json"
3965
- }
3966
- },
3967
- service
3968
- );
3899
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3900
+ headers: {
3901
+ "Content-Type": "application/json"
3902
+ }
3903
+ });
3969
3904
  },
3970
3905
  [env]
3971
3906
  );
3972
3907
  const getListFieldsOnchange = (0, import_react8.useCallback)(
3973
- async ({ model, service }) => {
3974
- console.log("service", service);
3908
+ async ({ model }) => {
3975
3909
  const jsonData = {
3976
3910
  model,
3977
3911
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
3978
3912
  };
3979
- return env.requests.post(
3980
- "/call" /* CALL_PATH */,
3981
- jsonData,
3982
- {
3983
- headers: {
3984
- "Content-Type": "application/json"
3985
- }
3986
- },
3987
- service
3988
- );
3913
+ return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3914
+ headers: {
3915
+ "Content-Type": "application/json"
3916
+ }
3917
+ });
3989
3918
  },
3990
3919
  [env]
3991
3920
  );
@@ -4145,8 +4074,7 @@ function useViewService() {
4145
4074
  views,
4146
4075
  context = {},
4147
4076
  options = {},
4148
- aid,
4149
- service
4077
+ aid
4150
4078
  }) => {
4151
4079
  const defaultOptions = {
4152
4080
  load_filters: true,
@@ -4162,16 +4090,11 @@ function useViewService() {
4162
4090
  },
4163
4091
  with_context: context
4164
4092
  };
4165
- return env?.requests?.post(
4166
- "/call" /* CALL_PATH */,
4167
- jsonDataView,
4168
- {
4169
- headers: {
4170
- "Content-Type": "application/json"
4171
- }
4172
- },
4173
- service
4174
- );
4093
+ return env?.requests?.post("/call" /* CALL_PATH */, jsonDataView, {
4094
+ headers: {
4095
+ "Content-Type": "application/json"
4096
+ }
4097
+ });
4175
4098
  },
4176
4099
  [env]
4177
4100
  );
@@ -4254,7 +4177,7 @@ function useViewService() {
4254
4177
  [env]
4255
4178
  );
4256
4179
  const getSelectionItem = (0, import_react10.useCallback)(
4257
- async ({ data, service }) => {
4180
+ async ({ data }) => {
4258
4181
  const jsonData = {
4259
4182
  model: data.model,
4260
4183
  ids: [],
@@ -4272,16 +4195,11 @@ function useViewService() {
4272
4195
  }
4273
4196
  }
4274
4197
  };
4275
- return env?.requests.post(
4276
- "/call" /* CALL_PATH */,
4277
- jsonData,
4278
- {
4279
- headers: {
4280
- "Content-Type": "application/json"
4281
- }
4282
- },
4283
- service
4284
- );
4198
+ return env?.requests.post("/call" /* CALL_PATH */, jsonData, {
4199
+ headers: {
4200
+ "Content-Type": "application/json"
4201
+ }
4202
+ });
4285
4203
  },
4286
4204
  [env]
4287
4205
  );
@@ -4574,6 +4492,7 @@ var sessionStorageUtils = () => {
4574
4492
  // src/configs/axios-client.ts
4575
4493
  var axiosClient = {
4576
4494
  init(config) {
4495
+ console.log("config", config);
4577
4496
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
4578
4497
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
4579
4498
  const db = config?.db;
@@ -4592,21 +4511,25 @@ var axiosClient = {
4592
4511
  };
4593
4512
  const instance = import_axios.default.create({
4594
4513
  adapter: import_axios.default.defaults.adapter,
4595
- baseURL: config?.baseUrl,
4514
+ baseURL: config.baseUrl,
4596
4515
  timeout: 5e4,
4597
4516
  paramsSerializer: (params) => new URLSearchParams(params).toString()
4598
4517
  });
4599
4518
  instance.interceptors.request.use(async (config2) => {
4600
4519
  const { useRefreshToken, useActionToken, actionToken } = config2;
4520
+ let token = null;
4601
4521
  if (useActionToken && actionToken) {
4602
- config2.headers["Action-Token"] = actionToken;
4522
+ token = actionToken;
4523
+ } else {
4524
+ const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
4525
+ token = await getToken?.();
4526
+ }
4527
+ if (token) {
4528
+ config2.headers["Authorization"] = `Bearer ${token}`;
4603
4529
  }
4604
4530
  if (database) {
4605
4531
  config2.headers["DATABASE"] = database;
4606
4532
  }
4607
- const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
4608
- const token = await getToken?.();
4609
- if (token) config2.headers["Authorization"] = `Bearer ${token}`;
4610
4533
  return config2;
4611
4534
  }, Promise.reject);
4612
4535
  instance.interceptors.response.use(
@@ -4661,7 +4584,7 @@ var axiosClient = {
4661
4584
  );
4662
4585
  return new Promise(function(resolve) {
4663
4586
  import_axios.default.post(
4664
- `${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
4587
+ `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
4665
4588
  payload,
4666
4589
  {
4667
4590
  headers: {
@@ -4729,47 +4652,20 @@ var axiosClient = {
4729
4652
  function formatUrl(url, db2) {
4730
4653
  return url + (db2 ? "?db=" + db2 : "");
4731
4654
  }
4732
- const getBaseUrl = (baseUrl, serviceName) => {
4733
- const service = serviceName || config?.default_service;
4734
- return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
4735
- };
4736
4655
  const responseBody = (response) => response;
4737
4656
  const requests = {
4738
- get: (url, headers, serviceName) => instance.get(
4739
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4740
- headers
4741
- ).then(responseBody),
4742
- post: (url, body, headers, serviceName) => instance.post(
4743
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4744
- body,
4745
- headers
4746
- ).then(responseBody),
4747
- post_excel: (url, body, headers, serviceName) => instance.post(
4748
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4749
- body,
4750
- {
4751
- responseType: "arraybuffer",
4752
- headers: {
4753
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
4754
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
4755
- ...headers
4756
- }
4657
+ get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
4658
+ post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
4659
+ post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
4660
+ responseType: "arraybuffer",
4661
+ headers: {
4662
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
4663
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
4757
4664
  }
4758
- ).then(responseBody),
4759
- put: (url, body, headers, serviceName) => instance.put(
4760
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4761
- body,
4762
- headers
4763
- ).then(responseBody),
4764
- patch: (url, body, headers, serviceName) => instance.patch(
4765
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4766
- body,
4767
- headers
4768
- ).then(responseBody),
4769
- delete: (url, headers, serviceName) => instance.delete(
4770
- formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
4771
- headers
4772
- ).then(responseBody)
4665
+ }).then(responseBody),
4666
+ put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
4667
+ patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
4668
+ delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
4773
4669
  };
4774
4670
  return requests;
4775
4671
  }
@@ -5053,11 +4949,8 @@ var import_react_query14 = require("@tanstack/react-query");
5053
4949
  var useValidateActionToken = () => {
5054
4950
  const { isValidActionToken } = useAuthService();
5055
4951
  return (0, import_react_query14.useMutation)({
5056
- mutationFn: ({
5057
- actionToken,
5058
- path
5059
- }) => {
5060
- return isValidActionToken(actionToken, path);
4952
+ mutationFn: ({ actionToken }) => {
4953
+ return isValidActionToken(actionToken);
5061
4954
  }
5062
4955
  });
5063
4956
  };
@@ -5365,7 +5258,7 @@ var import_react_query32 = require("@tanstack/react-query");
5365
5258
  var useDelete = () => {
5366
5259
  const { deleteApi } = useModelService();
5367
5260
  return (0, import_react_query32.useMutation)({
5368
- mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
5261
+ mutationFn: ({ ids, model }) => deleteApi({ ids, model })
5369
5262
  });
5370
5263
  };
5371
5264
  var use_delete_default = useDelete;
@@ -5428,14 +5321,12 @@ var useGetDetail = () => {
5428
5321
  model,
5429
5322
  ids,
5430
5323
  specification,
5431
- context,
5432
- service
5324
+ context
5433
5325
  }) => getDetail({
5434
5326
  model,
5435
5327
  ids,
5436
5328
  specification,
5437
- context,
5438
- service
5329
+ context
5439
5330
  })
5440
5331
  });
5441
5332
  };
@@ -5443,16 +5334,12 @@ var use_get_detail_default = useGetDetail;
5443
5334
 
5444
5335
  // src/hooks/model/use-get-field-onchange.ts
5445
5336
  var import_react_query37 = require("@tanstack/react-query");
5446
- var useGetFieldOnChange = ({
5447
- model,
5448
- service
5449
- }) => {
5337
+ var useGetFieldOnChange = ({ model }) => {
5450
5338
  const { getListFieldsOnchange } = useModelService();
5451
5339
  return (0, import_react_query37.useQuery)({
5452
5340
  queryKey: [`field-onchange-${model}`, model],
5453
5341
  queryFn: () => getListFieldsOnchange({
5454
- model,
5455
- service
5342
+ model
5456
5343
  }).then((res) => {
5457
5344
  if (res) {
5458
5345
  return res;
@@ -5635,16 +5522,14 @@ var useOnChangeForm = () => {
5635
5522
  specification,
5636
5523
  context,
5637
5524
  object,
5638
- fieldChange,
5639
- service
5525
+ fieldChange
5640
5526
  }) => onChange({
5641
5527
  ids,
5642
5528
  model,
5643
5529
  specification,
5644
5530
  context,
5645
5531
  object,
5646
- fieldChange,
5647
- service
5532
+ fieldChange
5648
5533
  })
5649
5534
  });
5650
5535
  };
@@ -5661,9 +5546,8 @@ var useSave = () => {
5661
5546
  data,
5662
5547
  specification,
5663
5548
  context,
5664
- path,
5665
- service
5666
- }) => save({ ids, model, data, specification, context, path, service })
5549
+ path
5550
+ }) => save({ ids, model, data, specification, context, path })
5667
5551
  });
5668
5552
  };
5669
5553
  var use_save_default = useSave;
@@ -5715,14 +5599,12 @@ var useButton = () => {
5715
5599
  model,
5716
5600
  ids,
5717
5601
  context,
5718
- method,
5719
- service
5602
+ method
5720
5603
  }) => callButton({
5721
5604
  model,
5722
5605
  ids,
5723
5606
  context,
5724
- method,
5725
- service
5607
+ method
5726
5608
  }),
5727
5609
  onSuccess: (response) => {
5728
5610
  return response;
@@ -5739,13 +5621,11 @@ var useDuplicateRecord = () => {
5739
5621
  mutationFn: ({
5740
5622
  id,
5741
5623
  model,
5742
- context,
5743
- service
5624
+ context
5744
5625
  }) => duplicateRecord({
5745
5626
  id,
5746
5627
  model,
5747
- context,
5748
- service
5628
+ context
5749
5629
  })
5750
5630
  });
5751
5631
  };
@@ -5828,11 +5708,11 @@ var use_get_groups_default = useGetGroups;
5828
5708
 
5829
5709
  // src/hooks/view/use-get-list-data.ts
5830
5710
  var import_react_query49 = require("@tanstack/react-query");
5831
- var useGetListData = (listDataProps, queryKey, enabled, service) => {
5711
+ var useGetListData = (listDataProps, queryKey, enabled) => {
5832
5712
  const { getAll } = useModelService();
5833
5713
  return (0, import_react_query49.useQuery)({
5834
5714
  queryKey,
5835
- queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
5715
+ queryFn: () => getAll({ data: listDataProps }).then((res) => {
5836
5716
  if (res) {
5837
5717
  return res;
5838
5718
  }
@@ -5908,13 +5788,12 @@ var import_react_query53 = require("@tanstack/react-query");
5908
5788
  var useGetSelection = ({
5909
5789
  data,
5910
5790
  queryKey,
5911
- enabled,
5912
- service
5791
+ enabled
5913
5792
  }) => {
5914
5793
  const { getSelectionItem } = useViewService();
5915
5794
  return (0, import_react_query53.useQuery)({
5916
5795
  queryKey,
5917
- queryFn: () => getSelectionItem({ data, service }),
5796
+ queryFn: () => getSelectionItem({ data }),
5918
5797
  enabled,
5919
5798
  refetchOnWindowFocus: false
5920
5799
  });
@@ -5942,13 +5821,11 @@ var useLoadAction = () => {
5942
5821
  return (0, import_react_query55.useMutation)({
5943
5822
  mutationFn: ({
5944
5823
  idAction,
5945
- context,
5946
- service
5824
+ context
5947
5825
  }) => {
5948
5826
  return loadAction({
5949
5827
  idAction,
5950
- context,
5951
- service
5828
+ context
5952
5829
  });
5953
5830
  }
5954
5831
  });
@@ -5989,13 +5866,11 @@ var useRemoveRow = () => {
5989
5866
  mutationFn: ({
5990
5867
  model,
5991
5868
  ids,
5992
- context,
5993
- service
5869
+ context
5994
5870
  }) => removeRows({
5995
5871
  model,
5996
5872
  ids,
5997
- context,
5998
- service
5873
+ context
5999
5874
  })
6000
5875
  });
6001
5876
  };
@@ -6026,12 +5901,10 @@ var useRunAction = () => {
6026
5901
  return (0, import_react_query60.useMutation)({
6027
5902
  mutationFn: ({
6028
5903
  idAction,
6029
- context,
6030
- service
5904
+ context
6031
5905
  }) => runAction({
6032
5906
  idAction,
6033
- context,
6034
- service
5907
+ context
6035
5908
  })
6036
5909
  });
6037
5910
  };