@fctc/interface-logic 3.9.7 → 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 +1 -0
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +12 -6
- package/dist/hooks.mjs +12 -6
- package/dist/provider.js +12 -6
- package/dist/provider.mjs +12 -6
- package/dist/services.d.mts +2 -1
- package/dist/services.d.ts +2 -1
- package/dist/services.js +8 -4
- package/dist/services.mjs +8 -4
- package/package.json +90 -90
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,18 +3153,22 @@ 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
|
-
|
|
3165
|
+
url,
|
|
3164
3166
|
jsonData,
|
|
3165
3167
|
{
|
|
3166
|
-
headers: {
|
|
3167
|
-
|
|
3168
|
+
headers: {
|
|
3169
|
+
"Content-Type": "application/json",
|
|
3170
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3171
|
+
}
|
|
3168
3172
|
},
|
|
3169
3173
|
service
|
|
3170
3174
|
);
|
|
@@ -7199,12 +7203,14 @@ var useRunAction = () => {
|
|
|
7199
7203
|
idAction,
|
|
7200
7204
|
context,
|
|
7201
7205
|
service,
|
|
7202
|
-
xNode
|
|
7206
|
+
xNode,
|
|
7207
|
+
searchParams
|
|
7203
7208
|
}) => runAction({
|
|
7204
7209
|
idAction,
|
|
7205
7210
|
context,
|
|
7206
7211
|
service,
|
|
7207
|
-
xNode
|
|
7212
|
+
xNode,
|
|
7213
|
+
searchParams
|
|
7208
7214
|
})
|
|
7209
7215
|
});
|
|
7210
7216
|
};
|
package/dist/hooks.mjs
CHANGED
|
@@ -3012,18 +3012,22 @@ 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
|
-
|
|
3024
|
+
url,
|
|
3023
3025
|
jsonData,
|
|
3024
3026
|
{
|
|
3025
|
-
headers: {
|
|
3026
|
-
|
|
3027
|
+
headers: {
|
|
3028
|
+
"Content-Type": "application/json",
|
|
3029
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3030
|
+
}
|
|
3027
3031
|
},
|
|
3028
3032
|
service
|
|
3029
3033
|
);
|
|
@@ -7058,12 +7062,14 @@ var useRunAction = () => {
|
|
|
7058
7062
|
idAction,
|
|
7059
7063
|
context,
|
|
7060
7064
|
service,
|
|
7061
|
-
xNode
|
|
7065
|
+
xNode,
|
|
7066
|
+
searchParams
|
|
7062
7067
|
}) => runAction({
|
|
7063
7068
|
idAction,
|
|
7064
7069
|
context,
|
|
7065
7070
|
service,
|
|
7066
|
-
xNode
|
|
7071
|
+
xNode,
|
|
7072
|
+
searchParams
|
|
7067
7073
|
})
|
|
7068
7074
|
});
|
|
7069
7075
|
};
|
package/dist/provider.js
CHANGED
|
@@ -3141,18 +3141,22 @@ 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
|
-
|
|
3153
|
+
url,
|
|
3152
3154
|
jsonData,
|
|
3153
3155
|
{
|
|
3154
|
-
headers: {
|
|
3155
|
-
|
|
3156
|
+
headers: {
|
|
3157
|
+
"Content-Type": "application/json",
|
|
3158
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3159
|
+
}
|
|
3156
3160
|
},
|
|
3157
3161
|
service
|
|
3158
3162
|
);
|
|
@@ -7676,12 +7680,14 @@ var useRunAction = () => {
|
|
|
7676
7680
|
idAction,
|
|
7677
7681
|
context,
|
|
7678
7682
|
service,
|
|
7679
|
-
xNode
|
|
7683
|
+
xNode,
|
|
7684
|
+
searchParams
|
|
7680
7685
|
}) => runAction({
|
|
7681
7686
|
idAction,
|
|
7682
7687
|
context,
|
|
7683
7688
|
service,
|
|
7684
|
-
xNode
|
|
7689
|
+
xNode,
|
|
7690
|
+
searchParams
|
|
7685
7691
|
})
|
|
7686
7692
|
});
|
|
7687
7693
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -3098,18 +3098,22 @@ 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
|
-
|
|
3110
|
+
url,
|
|
3109
3111
|
jsonData,
|
|
3110
3112
|
{
|
|
3111
|
-
headers: {
|
|
3112
|
-
|
|
3113
|
+
headers: {
|
|
3114
|
+
"Content-Type": "application/json",
|
|
3115
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3116
|
+
}
|
|
3113
3117
|
},
|
|
3114
3118
|
service
|
|
3115
3119
|
);
|
|
@@ -7633,12 +7637,14 @@ var useRunAction = () => {
|
|
|
7633
7637
|
idAction,
|
|
7634
7638
|
context,
|
|
7635
7639
|
service,
|
|
7636
|
-
xNode
|
|
7640
|
+
xNode,
|
|
7641
|
+
searchParams
|
|
7637
7642
|
}) => runAction({
|
|
7638
7643
|
idAction,
|
|
7639
7644
|
context,
|
|
7640
7645
|
service,
|
|
7641
|
-
xNode
|
|
7646
|
+
xNode,
|
|
7647
|
+
searchParams
|
|
7642
7648
|
})
|
|
7643
7649
|
});
|
|
7644
7650
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -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.d.ts
CHANGED
|
@@ -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,18 +3349,22 @@ 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
|
-
|
|
3361
|
+
url,
|
|
3360
3362
|
jsonData,
|
|
3361
3363
|
{
|
|
3362
|
-
headers: {
|
|
3363
|
-
|
|
3364
|
+
headers: {
|
|
3365
|
+
"Content-Type": "application/json",
|
|
3366
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3367
|
+
}
|
|
3364
3368
|
},
|
|
3365
3369
|
service
|
|
3366
3370
|
);
|
package/dist/services.mjs
CHANGED
|
@@ -3304,18 +3304,22 @@ 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
|
-
|
|
3316
|
+
url,
|
|
3315
3317
|
jsonData,
|
|
3316
3318
|
{
|
|
3317
|
-
headers: {
|
|
3318
|
-
|
|
3319
|
+
headers: {
|
|
3320
|
+
"Content-Type": "application/json",
|
|
3321
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3322
|
+
}
|
|
3319
3323
|
},
|
|
3320
3324
|
service
|
|
3321
3325
|
);
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "3.9.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./configs": {
|
|
14
|
-
"types": "./dist/configs.d.ts",
|
|
15
|
-
"import": "./dist/configs.mjs",
|
|
16
|
-
"require": "./dist/configs.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./constants": {
|
|
19
|
-
"types": "./dist/constants.d.ts",
|
|
20
|
-
"import": "./dist/constants.mjs",
|
|
21
|
-
"require": "./dist/constants.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./environment": {
|
|
24
|
-
"types": "./dist/environment.d.ts",
|
|
25
|
-
"import": "./dist/environment.mjs",
|
|
26
|
-
"require": "./dist/environment.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./hooks": {
|
|
29
|
-
"types": "./dist/hooks.d.ts",
|
|
30
|
-
"import": "./dist/hooks.mjs",
|
|
31
|
-
"require": "./dist/hooks.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./provider": {
|
|
34
|
-
"types": "./dist/provider.d.ts",
|
|
35
|
-
"import": "./dist/provider.mjs",
|
|
36
|
-
"require": "./dist/provider.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./dist/services.d.ts",
|
|
40
|
-
"import": "./dist/services.mjs",
|
|
41
|
-
"require": "./dist/services.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./store": {
|
|
44
|
-
"types": "./dist/store.d.ts",
|
|
45
|
-
"import": "./dist/store.mjs",
|
|
46
|
-
"require": "./dist/store.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.ts",
|
|
50
|
-
"import": "./dist/utils.mjs",
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./models": {
|
|
59
|
-
"types": "./dist/models.d.ts",
|
|
60
|
-
"import": "./dist/models.mjs",
|
|
61
|
-
"require": "./dist/models.cjs"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"files": [
|
|
65
|
-
"dist"
|
|
66
|
-
],
|
|
67
|
-
"scripts": {
|
|
68
|
-
"build": "tsup",
|
|
69
|
-
"test": "jest"
|
|
70
|
-
},
|
|
71
|
-
"peerDependencies": {
|
|
72
|
-
"react": "18.0.0",
|
|
73
|
-
"@tanstack/react-query": "^5.83.0"
|
|
74
|
-
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
77
|
-
"@tanstack/react-query": "^5.83.0",
|
|
78
|
-
"axios": "^1.11.0",
|
|
79
|
-
"moment": "^2.30.1",
|
|
80
|
-
"react-redux": "^9.2.0"
|
|
81
|
-
},
|
|
82
|
-
"devDependencies": {
|
|
83
|
-
"@types/react": "^18.3.1",
|
|
84
|
-
"react": "18.0.0",
|
|
85
|
-
"jest": "^29.7.0",
|
|
86
|
-
"tsup": "^8.0.0",
|
|
87
|
-
"typescript": "^5.8.2"
|
|
88
|
-
},
|
|
89
|
-
"packageManager": "yarn@1.22.0"
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "3.9.9",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./configs": {
|
|
14
|
+
"types": "./dist/configs.d.ts",
|
|
15
|
+
"import": "./dist/configs.mjs",
|
|
16
|
+
"require": "./dist/configs.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./constants": {
|
|
19
|
+
"types": "./dist/constants.d.ts",
|
|
20
|
+
"import": "./dist/constants.mjs",
|
|
21
|
+
"require": "./dist/constants.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./environment": {
|
|
24
|
+
"types": "./dist/environment.d.ts",
|
|
25
|
+
"import": "./dist/environment.mjs",
|
|
26
|
+
"require": "./dist/environment.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./hooks": {
|
|
29
|
+
"types": "./dist/hooks.d.ts",
|
|
30
|
+
"import": "./dist/hooks.mjs",
|
|
31
|
+
"require": "./dist/hooks.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./provider": {
|
|
34
|
+
"types": "./dist/provider.d.ts",
|
|
35
|
+
"import": "./dist/provider.mjs",
|
|
36
|
+
"require": "./dist/provider.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./services": {
|
|
39
|
+
"types": "./dist/services.d.ts",
|
|
40
|
+
"import": "./dist/services.mjs",
|
|
41
|
+
"require": "./dist/services.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./store": {
|
|
44
|
+
"types": "./dist/store.d.ts",
|
|
45
|
+
"import": "./dist/store.mjs",
|
|
46
|
+
"require": "./dist/store.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./types": {
|
|
54
|
+
"types": "./dist/types.d.ts",
|
|
55
|
+
"import": "./dist/types.mjs",
|
|
56
|
+
"require": "./dist/types.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./models": {
|
|
59
|
+
"types": "./dist/models.d.ts",
|
|
60
|
+
"import": "./dist/models.mjs",
|
|
61
|
+
"require": "./dist/models.cjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist"
|
|
66
|
+
],
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsup",
|
|
69
|
+
"test": "jest"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "18.0.0",
|
|
73
|
+
"@tanstack/react-query": "^5.83.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
77
|
+
"@tanstack/react-query": "^5.83.0",
|
|
78
|
+
"axios": "^1.11.0",
|
|
79
|
+
"moment": "^2.30.1",
|
|
80
|
+
"react-redux": "^9.2.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@types/react": "^18.3.1",
|
|
84
|
+
"react": "18.0.0",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"tsup": "^8.0.0",
|
|
87
|
+
"typescript": "^5.8.2"
|
|
88
|
+
},
|
|
89
|
+
"packageManager": "yarn@1.22.0"
|
|
90
|
+
}
|