@fctc/interface-logic 3.9.8 → 3.9.9

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.mts CHANGED
@@ -393,6 +393,7 @@ declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, E
393
393
  context: ContextApi;
394
394
  service?: string;
395
395
  xNode?: string;
396
+ searchParams?: Record<string, string | number | boolean>;
396
397
  }, unknown>;
397
398
 
398
399
  declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.d.ts CHANGED
@@ -393,6 +393,7 @@ declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, E
393
393
  context: ContextApi;
394
394
  service?: string;
395
395
  xNode?: string;
396
+ searchParams?: Record<string, string | number | boolean>;
396
397
  }, unknown>;
397
398
 
398
399
  declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hooks.js CHANGED
@@ -3153,14 +3153,16 @@ function useActionService() {
3153
3153
  idAction,
3154
3154
  context,
3155
3155
  service,
3156
- xNode
3156
+ xNode,
3157
+ searchParams
3157
3158
  }) => {
3158
3159
  const jsonData = {
3159
3160
  action_id: idAction,
3160
3161
  with_context: { ...context }
3161
3162
  };
3163
+ const url = searchParams ? `${"/run_action" /* RUN_ACTION_PATH */}?${toQueryString(searchParams)}` : "/run_action" /* RUN_ACTION_PATH */;
3162
3164
  return env.requests.post(
3163
- "/run_action" /* RUN_ACTION_PATH */,
3165
+ url,
3164
3166
  jsonData,
3165
3167
  {
3166
3168
  headers: {
@@ -7201,12 +7203,14 @@ var useRunAction = () => {
7201
7203
  idAction,
7202
7204
  context,
7203
7205
  service,
7204
- xNode
7206
+ xNode,
7207
+ searchParams
7205
7208
  }) => runAction({
7206
7209
  idAction,
7207
7210
  context,
7208
7211
  service,
7209
- xNode
7212
+ xNode,
7213
+ searchParams
7210
7214
  })
7211
7215
  });
7212
7216
  };
package/dist/hooks.mjs CHANGED
@@ -3012,14 +3012,16 @@ function useActionService() {
3012
3012
  idAction,
3013
3013
  context,
3014
3014
  service,
3015
- xNode
3015
+ xNode,
3016
+ searchParams
3016
3017
  }) => {
3017
3018
  const jsonData = {
3018
3019
  action_id: idAction,
3019
3020
  with_context: { ...context }
3020
3021
  };
3022
+ const url = searchParams ? `${"/run_action" /* RUN_ACTION_PATH */}?${toQueryString(searchParams)}` : "/run_action" /* RUN_ACTION_PATH */;
3021
3023
  return env.requests.post(
3022
- "/run_action" /* RUN_ACTION_PATH */,
3024
+ url,
3023
3025
  jsonData,
3024
3026
  {
3025
3027
  headers: {
@@ -7060,12 +7062,14 @@ var useRunAction = () => {
7060
7062
  idAction,
7061
7063
  context,
7062
7064
  service,
7063
- xNode
7065
+ xNode,
7066
+ searchParams
7064
7067
  }) => runAction({
7065
7068
  idAction,
7066
7069
  context,
7067
7070
  service,
7068
- xNode
7071
+ xNode,
7072
+ searchParams
7069
7073
  })
7070
7074
  });
7071
7075
  };
package/dist/provider.js CHANGED
@@ -3141,14 +3141,16 @@ function useActionService() {
3141
3141
  idAction,
3142
3142
  context,
3143
3143
  service,
3144
- xNode
3144
+ xNode,
3145
+ searchParams
3145
3146
  }) => {
3146
3147
  const jsonData = {
3147
3148
  action_id: idAction,
3148
3149
  with_context: { ...context }
3149
3150
  };
3151
+ const url = searchParams ? `${"/run_action" /* RUN_ACTION_PATH */}?${toQueryString(searchParams)}` : "/run_action" /* RUN_ACTION_PATH */;
3150
3152
  return env.requests.post(
3151
- "/run_action" /* RUN_ACTION_PATH */,
3153
+ url,
3152
3154
  jsonData,
3153
3155
  {
3154
3156
  headers: {
@@ -7678,12 +7680,14 @@ var useRunAction = () => {
7678
7680
  idAction,
7679
7681
  context,
7680
7682
  service,
7681
- xNode
7683
+ xNode,
7684
+ searchParams
7682
7685
  }) => runAction({
7683
7686
  idAction,
7684
7687
  context,
7685
7688
  service,
7686
- xNode
7689
+ xNode,
7690
+ searchParams
7687
7691
  })
7688
7692
  });
7689
7693
  };
package/dist/provider.mjs CHANGED
@@ -3098,14 +3098,16 @@ function useActionService() {
3098
3098
  idAction,
3099
3099
  context,
3100
3100
  service,
3101
- xNode
3101
+ xNode,
3102
+ searchParams
3102
3103
  }) => {
3103
3104
  const jsonData = {
3104
3105
  action_id: idAction,
3105
3106
  with_context: { ...context }
3106
3107
  };
3108
+ const url = searchParams ? `${"/run_action" /* RUN_ACTION_PATH */}?${toQueryString(searchParams)}` : "/run_action" /* RUN_ACTION_PATH */;
3107
3109
  return env.requests.post(
3108
- "/run_action" /* RUN_ACTION_PATH */,
3110
+ url,
3109
3111
  jsonData,
3110
3112
  {
3111
3113
  headers: {
@@ -7635,12 +7637,14 @@ var useRunAction = () => {
7635
7637
  idAction,
7636
7638
  context,
7637
7639
  service,
7638
- xNode
7640
+ xNode,
7641
+ searchParams
7639
7642
  }) => runAction({
7640
7643
  idAction,
7641
7644
  context,
7642
7645
  service,
7643
- xNode
7646
+ xNode,
7647
+ searchParams
7644
7648
  })
7645
7649
  });
7646
7650
  };
@@ -38,11 +38,12 @@ declare function useActionService(): {
38
38
  report: any;
39
39
  db: any;
40
40
  }) => Promise<any>;
41
- runAction: ({ idAction, context, service, xNode, }: {
41
+ runAction: ({ idAction, context, service, xNode, searchParams, }: {
42
42
  idAction: number;
43
43
  context: ContextApi;
44
44
  service?: string;
45
45
  xNode?: string;
46
+ searchParams?: Record<string, string | number | boolean>;
46
47
  }) => Promise<any>;
47
48
  generateSerialNumber: ({ kwargs, context, service, xNode, }: {
48
49
  kwargs: any;
@@ -38,11 +38,12 @@ declare function useActionService(): {
38
38
  report: any;
39
39
  db: any;
40
40
  }) => Promise<any>;
41
- runAction: ({ idAction, context, service, xNode, }: {
41
+ runAction: ({ idAction, context, service, xNode, searchParams, }: {
42
42
  idAction: number;
43
43
  context: ContextApi;
44
44
  service?: string;
45
45
  xNode?: string;
46
+ searchParams?: Record<string, string | number | boolean>;
46
47
  }) => Promise<any>;
47
48
  generateSerialNumber: ({ kwargs, context, service, xNode, }: {
48
49
  kwargs: any;
package/dist/services.js CHANGED
@@ -3349,14 +3349,16 @@ function useActionService() {
3349
3349
  idAction,
3350
3350
  context,
3351
3351
  service,
3352
- xNode
3352
+ xNode,
3353
+ searchParams
3353
3354
  }) => {
3354
3355
  const jsonData = {
3355
3356
  action_id: idAction,
3356
3357
  with_context: { ...context }
3357
3358
  };
3359
+ const url = searchParams ? `${"/run_action" /* RUN_ACTION_PATH */}?${toQueryString(searchParams)}` : "/run_action" /* RUN_ACTION_PATH */;
3358
3360
  return env.requests.post(
3359
- "/run_action" /* RUN_ACTION_PATH */,
3361
+ url,
3360
3362
  jsonData,
3361
3363
  {
3362
3364
  headers: {
package/dist/services.mjs CHANGED
@@ -3304,14 +3304,16 @@ function useActionService() {
3304
3304
  idAction,
3305
3305
  context,
3306
3306
  service,
3307
- xNode
3307
+ xNode,
3308
+ searchParams
3308
3309
  }) => {
3309
3310
  const jsonData = {
3310
3311
  action_id: idAction,
3311
3312
  with_context: { ...context }
3312
3313
  };
3314
+ const url = searchParams ? `${"/run_action" /* RUN_ACTION_PATH */}?${toQueryString(searchParams)}` : "/run_action" /* RUN_ACTION_PATH */;
3313
3315
  return env.requests.post(
3314
- "/run_action" /* RUN_ACTION_PATH */,
3316
+ url,
3315
3317
  jsonData,
3316
3318
  {
3317
3319
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.9.8",
3
+ "version": "3.9.9",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",