@fctc/interface-logic 2.1.4 → 2.2.0

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/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-BGJfDe73.js';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-p4JdAOsz.js';
3
3
 
4
4
  declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
5
5
 
@@ -140,6 +140,7 @@ declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any,
140
140
  declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
141
141
  ids: any;
142
142
  model: string;
143
+ service?: string;
143
144
  }, unknown>;
144
145
 
145
146
  declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -153,10 +154,12 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
153
154
  ids: any;
154
155
  specification?: any;
155
156
  context?: any;
157
+ service?: string;
156
158
  }, unknown>;
157
159
 
158
- declare const useGetFieldOnChange: ({ model }: {
160
+ declare const useGetFieldOnChange: ({ model, service, }: {
159
161
  model: string;
162
+ service?: string;
160
163
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
161
164
 
162
165
  declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
@@ -204,6 +207,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
204
207
  context: any;
205
208
  object: any;
206
209
  fieldChange?: any;
210
+ service?: string;
207
211
  }, unknown>;
208
212
 
209
213
  declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -213,6 +217,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
213
217
  specification?: any;
214
218
  context: any;
215
219
  path?: string;
220
+ service?: string;
216
221
  }, unknown>;
217
222
 
218
223
  declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
@@ -235,12 +240,14 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
235
240
  ids: Record<string, any>[] | any;
236
241
  context: ContextApi;
237
242
  method: any;
243
+ service?: string;
238
244
  }, unknown>;
239
245
 
240
246
  declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
241
247
  id: any;
242
248
  model: string;
243
249
  context: ContextApi;
250
+ service?: string;
244
251
  }, unknown>;
245
252
 
246
253
  declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
@@ -259,7 +266,7 @@ declare const useGetGroups: ({ model, width_context, }: {
259
266
  width_context: any;
260
267
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
261
268
 
262
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
269
+ declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
263
270
 
264
271
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
265
272
 
@@ -274,10 +281,11 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
274
281
  width_context: string;
275
282
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
276
283
 
277
- declare const useGetSelection: ({ data, queryKey, enabled, }: {
284
+ declare const useGetSelection: ({ data, queryKey, enabled, service }: {
278
285
  data: GetSelectionType;
279
286
  queryKey: any[];
280
287
  enabled?: boolean;
288
+ service?: string;
281
289
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
282
290
 
283
291
  declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -285,6 +293,7 @@ declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstac
285
293
  declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
286
294
  idAction: any;
287
295
  context: ContextApi;
296
+ service?: string;
288
297
  }, unknown>;
289
298
 
290
299
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -299,6 +308,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
299
308
  model: string;
300
309
  ids: Record<string, any>[] | any;
301
310
  context: ContextApi;
311
+ service?: string;
302
312
  }, unknown>;
303
313
 
304
314
  declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -306,6 +316,7 @@ declare const useGetResequence: (model: string, resIds: any, context: any, offse
306
316
  declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
307
317
  idAction: any;
308
318
  context: ContextApi;
319
+ service?: string;
309
320
  }, unknown>;
310
321
 
311
322
  declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.js CHANGED
@@ -2942,15 +2942,21 @@ function useActionService() {
2942
2942
  const loadAction = (0, import_react6.useCallback)(
2943
2943
  async ({
2944
2944
  idAction,
2945
- context
2945
+ context,
2946
+ service
2946
2947
  }) => {
2947
2948
  const jsonData = {
2948
2949
  action_id: idAction,
2949
2950
  with_context: { ...context }
2950
2951
  };
2951
- return env.requests.post("/load_action" /* LOAD_ACTION */, jsonData, {
2952
- headers: { "Content-Type": "application/json" }
2953
- });
2952
+ return env.requests.post(
2953
+ "/load_action" /* LOAD_ACTION */,
2954
+ jsonData,
2955
+ {
2956
+ headers: { "Content-Type": "application/json" }
2957
+ },
2958
+ service
2959
+ );
2954
2960
  },
2955
2961
  [env]
2956
2962
  );
@@ -2959,7 +2965,8 @@ function useActionService() {
2959
2965
  model,
2960
2966
  ids = [],
2961
2967
  context,
2962
- method
2968
+ method,
2969
+ service
2963
2970
  }) => {
2964
2971
  try {
2965
2972
  const jsonData = {
@@ -2968,9 +2975,14 @@ function useActionService() {
2968
2975
  ids,
2969
2976
  with_context: context
2970
2977
  };
2971
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2972
- headers: { "Content-Type": "application/json" }
2973
- });
2978
+ return env.requests.post(
2979
+ "/call" /* CALL_PATH */,
2980
+ jsonData,
2981
+ {
2982
+ headers: { "Content-Type": "application/json" }
2983
+ },
2984
+ service
2985
+ );
2974
2986
  } catch (error) {
2975
2987
  console.error("Error when calling button action:", error);
2976
2988
  throw error;
@@ -2982,7 +2994,8 @@ function useActionService() {
2982
2994
  async ({
2983
2995
  model,
2984
2996
  ids,
2985
- context
2997
+ context,
2998
+ service
2986
2999
  }) => {
2987
3000
  const jsonData = {
2988
3001
  model,
@@ -2990,9 +3003,14 @@ function useActionService() {
2990
3003
  ids,
2991
3004
  with_context: context
2992
3005
  };
2993
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
2994
- headers: { "Content-Type": "application/json" }
2995
- });
3006
+ return env.requests.post(
3007
+ "/call" /* CALL_PATH */,
3008
+ jsonData,
3009
+ {
3010
+ headers: { "Content-Type": "application/json" }
3011
+ },
3012
+ service
3013
+ );
2996
3014
  },
2997
3015
  [env]
2998
3016
  );
@@ -3000,7 +3018,8 @@ function useActionService() {
3000
3018
  async ({
3001
3019
  model,
3002
3020
  id,
3003
- context
3021
+ context,
3022
+ service
3004
3023
  }) => {
3005
3024
  const jsonData = {
3006
3025
  model,
@@ -3008,9 +3027,14 @@ function useActionService() {
3008
3027
  ids: id,
3009
3028
  with_context: context
3010
3029
  };
3011
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3012
- headers: { "Content-Type": "application/json" }
3013
- });
3030
+ return env.requests.post(
3031
+ "/call" /* CALL_PATH */,
3032
+ jsonData,
3033
+ {
3034
+ headers: { "Content-Type": "application/json" }
3035
+ },
3036
+ service
3037
+ );
3014
3038
  },
3015
3039
  [env]
3016
3040
  );
@@ -3053,15 +3077,21 @@ function useActionService() {
3053
3077
  const runAction = (0, import_react6.useCallback)(
3054
3078
  async ({
3055
3079
  idAction,
3056
- context
3080
+ context,
3081
+ service
3057
3082
  }) => {
3058
3083
  const jsonData = {
3059
3084
  action_id: idAction,
3060
3085
  with_context: { ...context }
3061
3086
  };
3062
- return env.requests.post("/run_action" /* RUN_ACTION_PATH */, jsonData, {
3063
- headers: { "Content-Type": "application/json" }
3064
- });
3087
+ return env.requests.post(
3088
+ "/run_action" /* RUN_ACTION_PATH */,
3089
+ jsonData,
3090
+ {
3091
+ headers: { "Content-Type": "application/json" }
3092
+ },
3093
+ service
3094
+ );
3065
3095
  },
3066
3096
  [env]
3067
3097
  );
@@ -3776,7 +3806,7 @@ function useModelService() {
3776
3806
  });
3777
3807
  }, [env]);
3778
3808
  const getAll = (0, import_react12.useCallback)(
3779
- async ({ data }) => {
3809
+ async ({ data, service }) => {
3780
3810
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3781
3811
  fields: data.fields,
3782
3812
  groupby: data.groupby
@@ -3797,11 +3827,16 @@ function useModelService() {
3797
3827
  ...jsonReadGroup
3798
3828
  }
3799
3829
  };
3800
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3801
- headers: {
3802
- "Content-Type": "application/json"
3803
- }
3804
- });
3830
+ return env.requests.post(
3831
+ "/call" /* CALL_PATH */,
3832
+ jsonData,
3833
+ {
3834
+ headers: {
3835
+ "Content-Type": "application/json"
3836
+ }
3837
+ },
3838
+ service
3839
+ );
3805
3840
  },
3806
3841
  [env]
3807
3842
  );
@@ -3869,7 +3904,13 @@ function useModelService() {
3869
3904
  [env]
3870
3905
  );
3871
3906
  const getDetail = (0, import_react12.useCallback)(
3872
- async ({ ids = [], model, specification, context }) => {
3907
+ async ({
3908
+ ids = [],
3909
+ model,
3910
+ specification,
3911
+ context,
3912
+ service
3913
+ }) => {
3873
3914
  const jsonData = {
3874
3915
  model,
3875
3916
  method: "web_read" /* WEB_READ */,
@@ -3879,11 +3920,16 @@ function useModelService() {
3879
3920
  specification
3880
3921
  }
3881
3922
  };
3882
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3883
- headers: {
3884
- "Content-Type": "application/json"
3885
- }
3886
- });
3923
+ return env.requests.post(
3924
+ "/call" /* CALL_PATH */,
3925
+ jsonData,
3926
+ {
3927
+ headers: {
3928
+ "Content-Type": "application/json"
3929
+ }
3930
+ },
3931
+ service
3932
+ );
3887
3933
  },
3888
3934
  [env]
3889
3935
  );
@@ -3894,7 +3940,8 @@ function useModelService() {
3894
3940
  data = {},
3895
3941
  specification = {},
3896
3942
  context = {},
3897
- path
3943
+ path,
3944
+ service
3898
3945
  }) => {
3899
3946
  const jsonData = {
3900
3947
  model,
@@ -3906,26 +3953,36 @@ function useModelService() {
3906
3953
  specification
3907
3954
  }
3908
3955
  };
3909
- return env.requests.post(path ?? "/call" /* CALL_PATH */, jsonData, {
3910
- headers: {
3911
- "Content-Type": "application/json"
3912
- }
3913
- });
3956
+ return env.requests.post(
3957
+ path ?? "/call" /* CALL_PATH */,
3958
+ jsonData,
3959
+ {
3960
+ headers: {
3961
+ "Content-Type": "application/json"
3962
+ }
3963
+ },
3964
+ service
3965
+ );
3914
3966
  },
3915
3967
  [env]
3916
3968
  );
3917
3969
  const deleteApi = (0, import_react12.useCallback)(
3918
- async ({ ids = [], model }) => {
3970
+ async ({ ids = [], model, service }) => {
3919
3971
  const jsonData = {
3920
3972
  model,
3921
3973
  method: "unlink" /* UNLINK */,
3922
3974
  ids
3923
3975
  };
3924
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3925
- headers: {
3926
- "Content-Type": "application/json"
3927
- }
3928
- });
3976
+ return env.requests.post(
3977
+ "/call" /* CALL_PATH */,
3978
+ jsonData,
3979
+ {
3980
+ headers: {
3981
+ "Content-Type": "application/json"
3982
+ }
3983
+ },
3984
+ service
3985
+ );
3929
3986
  },
3930
3987
  [env]
3931
3988
  );
@@ -3936,7 +3993,8 @@ function useModelService() {
3936
3993
  object,
3937
3994
  specification,
3938
3995
  context,
3939
- fieldChange
3996
+ fieldChange,
3997
+ service
3940
3998
  }) => {
3941
3999
  const jsonData = {
3942
4000
  model,
@@ -3949,25 +4007,36 @@ function useModelService() {
3949
4007
  specification
3950
4008
  ]
3951
4009
  };
3952
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3953
- headers: {
3954
- "Content-Type": "application/json"
3955
- }
3956
- });
4010
+ return env.requests.post(
4011
+ "/call" /* CALL_PATH */,
4012
+ jsonData,
4013
+ {
4014
+ headers: {
4015
+ "Content-Type": "application/json"
4016
+ }
4017
+ },
4018
+ service
4019
+ );
3957
4020
  },
3958
4021
  [env]
3959
4022
  );
3960
4023
  const getListFieldsOnchange = (0, import_react12.useCallback)(
3961
- async ({ model }) => {
4024
+ async ({ model, service }) => {
4025
+ console.log("service", service);
3962
4026
  const jsonData = {
3963
4027
  model,
3964
4028
  method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
3965
4029
  };
3966
- return env.requests.post("/call" /* CALL_PATH */, jsonData, {
3967
- headers: {
3968
- "Content-Type": "application/json"
3969
- }
3970
- });
4030
+ return env.requests.post(
4031
+ "/call" /* CALL_PATH */,
4032
+ jsonData,
4033
+ {
4034
+ headers: {
4035
+ "Content-Type": "application/json"
4036
+ }
4037
+ },
4038
+ service
4039
+ );
3971
4040
  },
3972
4041
  [env]
3973
4042
  );
@@ -4127,7 +4196,8 @@ function useViewService() {
4127
4196
  views,
4128
4197
  context = {},
4129
4198
  options = {},
4130
- aid
4199
+ aid,
4200
+ service
4131
4201
  }) => {
4132
4202
  const defaultOptions = {
4133
4203
  load_filters: true,
@@ -4143,11 +4213,16 @@ function useViewService() {
4143
4213
  },
4144
4214
  with_context: context
4145
4215
  };
4146
- return env?.requests?.post("/call" /* CALL_PATH */, jsonDataView, {
4147
- headers: {
4148
- "Content-Type": "application/json"
4149
- }
4150
- });
4216
+ return env?.requests?.post(
4217
+ "/call" /* CALL_PATH */,
4218
+ jsonDataView,
4219
+ {
4220
+ headers: {
4221
+ "Content-Type": "application/json"
4222
+ }
4223
+ },
4224
+ service
4225
+ );
4151
4226
  },
4152
4227
  [env]
4153
4228
  );
@@ -4230,7 +4305,7 @@ function useViewService() {
4230
4305
  [env]
4231
4306
  );
4232
4307
  const getSelectionItem = (0, import_react14.useCallback)(
4233
- async ({ data }) => {
4308
+ async ({ data, service }) => {
4234
4309
  const jsonData = {
4235
4310
  model: data.model,
4236
4311
  ids: [],
@@ -4248,11 +4323,16 @@ function useViewService() {
4248
4323
  }
4249
4324
  }
4250
4325
  };
4251
- return env?.requests.post("/call" /* CALL_PATH */, jsonData, {
4252
- headers: {
4253
- "Content-Type": "application/json"
4254
- }
4255
- });
4326
+ return env?.requests.post(
4327
+ "/call" /* CALL_PATH */,
4328
+ jsonData,
4329
+ {
4330
+ headers: {
4331
+ "Content-Type": "application/json"
4332
+ }
4333
+ },
4334
+ service
4335
+ );
4256
4336
  },
4257
4337
  [env]
4258
4338
  );
@@ -4923,7 +5003,7 @@ var import_react_query32 = require("@tanstack/react-query");
4923
5003
  var useDelete = () => {
4924
5004
  const { deleteApi } = useModelService();
4925
5005
  return (0, import_react_query32.useMutation)({
4926
- mutationFn: ({ ids, model }) => deleteApi({ ids, model })
5006
+ mutationFn: ({ ids, model, service }) => deleteApi({ ids, model, service })
4927
5007
  });
4928
5008
  };
4929
5009
  var use_delete_default = useDelete;
@@ -4986,12 +5066,14 @@ var useGetDetail = () => {
4986
5066
  model,
4987
5067
  ids,
4988
5068
  specification,
4989
- context
5069
+ context,
5070
+ service
4990
5071
  }) => getDetail({
4991
5072
  model,
4992
5073
  ids,
4993
5074
  specification,
4994
- context
5075
+ context,
5076
+ service
4995
5077
  })
4996
5078
  });
4997
5079
  };
@@ -4999,12 +5081,16 @@ var use_get_detail_default = useGetDetail;
4999
5081
 
5000
5082
  // src/hooks/model/use-get-field-onchange.ts
5001
5083
  var import_react_query37 = require("@tanstack/react-query");
5002
- var useGetFieldOnChange = ({ model }) => {
5084
+ var useGetFieldOnChange = ({
5085
+ model,
5086
+ service
5087
+ }) => {
5003
5088
  const { getListFieldsOnchange } = useModelService();
5004
5089
  return (0, import_react_query37.useQuery)({
5005
5090
  queryKey: [`field-onchange-${model}`, model],
5006
5091
  queryFn: () => getListFieldsOnchange({
5007
- model
5092
+ model,
5093
+ service
5008
5094
  }).then((res) => {
5009
5095
  if (res) {
5010
5096
  return res;
@@ -5187,14 +5273,16 @@ var useOnChangeForm = () => {
5187
5273
  specification,
5188
5274
  context,
5189
5275
  object,
5190
- fieldChange
5276
+ fieldChange,
5277
+ service
5191
5278
  }) => onChange({
5192
5279
  ids,
5193
5280
  model,
5194
5281
  specification,
5195
5282
  context,
5196
5283
  object,
5197
- fieldChange
5284
+ fieldChange,
5285
+ service
5198
5286
  })
5199
5287
  });
5200
5288
  };
@@ -5211,8 +5299,9 @@ var useSave = () => {
5211
5299
  data,
5212
5300
  specification,
5213
5301
  context,
5214
- path
5215
- }) => save({ ids, model, data, specification, context, path })
5302
+ path,
5303
+ service
5304
+ }) => save({ ids, model, data, specification, context, path, service })
5216
5305
  });
5217
5306
  };
5218
5307
  var use_save_default = useSave;
@@ -5264,12 +5353,14 @@ var useButton = () => {
5264
5353
  model,
5265
5354
  ids,
5266
5355
  context,
5267
- method
5356
+ method,
5357
+ service
5268
5358
  }) => callButton({
5269
5359
  model,
5270
5360
  ids,
5271
5361
  context,
5272
- method
5362
+ method,
5363
+ service
5273
5364
  }),
5274
5365
  onSuccess: (response) => {
5275
5366
  return response;
@@ -5286,11 +5377,13 @@ var useDuplicateRecord = () => {
5286
5377
  mutationFn: ({
5287
5378
  id,
5288
5379
  model,
5289
- context
5380
+ context,
5381
+ service
5290
5382
  }) => duplicateRecord({
5291
5383
  id,
5292
5384
  model,
5293
- context
5385
+ context,
5386
+ service
5294
5387
  })
5295
5388
  });
5296
5389
  };
@@ -5373,11 +5466,11 @@ var use_get_groups_default = useGetGroups;
5373
5466
 
5374
5467
  // src/hooks/view/use-get-list-data.ts
5375
5468
  var import_react_query49 = require("@tanstack/react-query");
5376
- var useGetListData = (listDataProps, queryKey, enabled) => {
5469
+ var useGetListData = (listDataProps, queryKey, enabled, service) => {
5377
5470
  const { getAll } = useModelService();
5378
5471
  return (0, import_react_query49.useQuery)({
5379
5472
  queryKey,
5380
- queryFn: () => getAll({ data: listDataProps }).then((res) => {
5473
+ queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
5381
5474
  if (res) {
5382
5475
  return res;
5383
5476
  }
@@ -5453,12 +5546,13 @@ var import_react_query53 = require("@tanstack/react-query");
5453
5546
  var useGetSelection = ({
5454
5547
  data,
5455
5548
  queryKey,
5456
- enabled
5549
+ enabled,
5550
+ service
5457
5551
  }) => {
5458
5552
  const { getSelectionItem } = useViewService();
5459
5553
  return (0, import_react_query53.useQuery)({
5460
5554
  queryKey,
5461
- queryFn: () => getSelectionItem({ data }),
5555
+ queryFn: () => getSelectionItem({ data, service }),
5462
5556
  enabled,
5463
5557
  refetchOnWindowFocus: false
5464
5558
  });
@@ -5486,11 +5580,13 @@ var useLoadAction = () => {
5486
5580
  return (0, import_react_query55.useMutation)({
5487
5581
  mutationFn: ({
5488
5582
  idAction,
5489
- context
5583
+ context,
5584
+ service
5490
5585
  }) => {
5491
5586
  return loadAction({
5492
5587
  idAction,
5493
- context
5588
+ context,
5589
+ service
5494
5590
  });
5495
5591
  }
5496
5592
  });
@@ -5531,11 +5627,13 @@ var useRemoveRow = () => {
5531
5627
  mutationFn: ({
5532
5628
  model,
5533
5629
  ids,
5534
- context
5630
+ context,
5631
+ service
5535
5632
  }) => removeRows({
5536
5633
  model,
5537
5634
  ids,
5538
- context
5635
+ context,
5636
+ service
5539
5637
  })
5540
5638
  });
5541
5639
  };
@@ -5566,10 +5664,12 @@ var useRunAction = () => {
5566
5664
  return (0, import_react_query60.useMutation)({
5567
5665
  mutationFn: ({
5568
5666
  idAction,
5569
- context
5667
+ context,
5668
+ service
5570
5669
  }) => runAction({
5571
5670
  idAction,
5572
- context
5671
+ context,
5672
+ service
5573
5673
  })
5574
5674
  });
5575
5675
  };