@fctc/interface-logic 2.1.5 → 2.2.1

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