@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/configs.d.mts +6 -6
- package/dist/configs.d.ts +6 -6
- package/dist/configs.js +44 -22
- package/dist/configs.mjs +44 -22
- package/dist/constants.d.mts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/constants.mjs +0 -1
- package/dist/environment.js +44 -22
- package/dist/environment.mjs +44 -22
- package/dist/hooks.d.mts +16 -4
- package/dist/hooks.d.ts +16 -4
- package/dist/hooks.js +199 -96
- package/dist/hooks.mjs +199 -96
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +243 -118
- package/dist/provider.mjs +243 -118
- package/dist/services.d.mts +23 -15
- package/dist/services.d.ts +23 -15
- package/dist/services.js +150 -71
- package/dist/services.mjs +150 -71
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-BGJfDe73.d.mts → view-type-p4JdAOsz.d.mts} +5 -0
- package/dist/{view-type-BGJfDe73.d.ts → view-type-p4JdAOsz.d.ts} +5 -0
- package/package.json +85 -85
package/dist/services.mjs
CHANGED
|
@@ -22,7 +22,6 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
22
22
|
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
|
23
23
|
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
|
24
24
|
UriConstants2["TOKEN"] = `/check_token`;
|
|
25
|
-
UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
|
|
26
25
|
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
|
27
26
|
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
|
28
27
|
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
|
@@ -3015,15 +3014,21 @@ function useActionService() {
|
|
|
3015
3014
|
const loadAction = useCallback2(
|
|
3016
3015
|
async ({
|
|
3017
3016
|
idAction,
|
|
3018
|
-
context
|
|
3017
|
+
context,
|
|
3018
|
+
service
|
|
3019
3019
|
}) => {
|
|
3020
3020
|
const jsonData = {
|
|
3021
3021
|
action_id: idAction,
|
|
3022
3022
|
with_context: { ...context }
|
|
3023
3023
|
};
|
|
3024
|
-
return env.requests.post(
|
|
3025
|
-
|
|
3026
|
-
|
|
3024
|
+
return env.requests.post(
|
|
3025
|
+
"/load_action" /* LOAD_ACTION */,
|
|
3026
|
+
jsonData,
|
|
3027
|
+
{
|
|
3028
|
+
headers: { "Content-Type": "application/json" }
|
|
3029
|
+
},
|
|
3030
|
+
service
|
|
3031
|
+
);
|
|
3027
3032
|
},
|
|
3028
3033
|
[env]
|
|
3029
3034
|
);
|
|
@@ -3032,7 +3037,8 @@ function useActionService() {
|
|
|
3032
3037
|
model,
|
|
3033
3038
|
ids = [],
|
|
3034
3039
|
context,
|
|
3035
|
-
method
|
|
3040
|
+
method,
|
|
3041
|
+
service
|
|
3036
3042
|
}) => {
|
|
3037
3043
|
try {
|
|
3038
3044
|
const jsonData = {
|
|
@@ -3041,9 +3047,14 @@ function useActionService() {
|
|
|
3041
3047
|
ids,
|
|
3042
3048
|
with_context: context
|
|
3043
3049
|
};
|
|
3044
|
-
return env.requests.post(
|
|
3045
|
-
|
|
3046
|
-
|
|
3050
|
+
return env.requests.post(
|
|
3051
|
+
"/call" /* CALL_PATH */,
|
|
3052
|
+
jsonData,
|
|
3053
|
+
{
|
|
3054
|
+
headers: { "Content-Type": "application/json" }
|
|
3055
|
+
},
|
|
3056
|
+
service
|
|
3057
|
+
);
|
|
3047
3058
|
} catch (error) {
|
|
3048
3059
|
console.error("Error when calling button action:", error);
|
|
3049
3060
|
throw error;
|
|
@@ -3055,7 +3066,8 @@ function useActionService() {
|
|
|
3055
3066
|
async ({
|
|
3056
3067
|
model,
|
|
3057
3068
|
ids,
|
|
3058
|
-
context
|
|
3069
|
+
context,
|
|
3070
|
+
service
|
|
3059
3071
|
}) => {
|
|
3060
3072
|
const jsonData = {
|
|
3061
3073
|
model,
|
|
@@ -3063,9 +3075,14 @@ function useActionService() {
|
|
|
3063
3075
|
ids,
|
|
3064
3076
|
with_context: context
|
|
3065
3077
|
};
|
|
3066
|
-
return env.requests.post(
|
|
3067
|
-
|
|
3068
|
-
|
|
3078
|
+
return env.requests.post(
|
|
3079
|
+
"/call" /* CALL_PATH */,
|
|
3080
|
+
jsonData,
|
|
3081
|
+
{
|
|
3082
|
+
headers: { "Content-Type": "application/json" }
|
|
3083
|
+
},
|
|
3084
|
+
service
|
|
3085
|
+
);
|
|
3069
3086
|
},
|
|
3070
3087
|
[env]
|
|
3071
3088
|
);
|
|
@@ -3073,7 +3090,8 @@ function useActionService() {
|
|
|
3073
3090
|
async ({
|
|
3074
3091
|
model,
|
|
3075
3092
|
id,
|
|
3076
|
-
context
|
|
3093
|
+
context,
|
|
3094
|
+
service
|
|
3077
3095
|
}) => {
|
|
3078
3096
|
const jsonData = {
|
|
3079
3097
|
model,
|
|
@@ -3081,9 +3099,14 @@ function useActionService() {
|
|
|
3081
3099
|
ids: id,
|
|
3082
3100
|
with_context: context
|
|
3083
3101
|
};
|
|
3084
|
-
return env.requests.post(
|
|
3085
|
-
|
|
3086
|
-
|
|
3102
|
+
return env.requests.post(
|
|
3103
|
+
"/call" /* CALL_PATH */,
|
|
3104
|
+
jsonData,
|
|
3105
|
+
{
|
|
3106
|
+
headers: { "Content-Type": "application/json" }
|
|
3107
|
+
},
|
|
3108
|
+
service
|
|
3109
|
+
);
|
|
3087
3110
|
},
|
|
3088
3111
|
[env]
|
|
3089
3112
|
);
|
|
@@ -3126,15 +3149,21 @@ function useActionService() {
|
|
|
3126
3149
|
const runAction = useCallback2(
|
|
3127
3150
|
async ({
|
|
3128
3151
|
idAction,
|
|
3129
|
-
context
|
|
3152
|
+
context,
|
|
3153
|
+
service
|
|
3130
3154
|
}) => {
|
|
3131
3155
|
const jsonData = {
|
|
3132
3156
|
action_id: idAction,
|
|
3133
3157
|
with_context: { ...context }
|
|
3134
3158
|
};
|
|
3135
|
-
return env.requests.post(
|
|
3136
|
-
|
|
3137
|
-
|
|
3159
|
+
return env.requests.post(
|
|
3160
|
+
"/run_action" /* RUN_ACTION_PATH */,
|
|
3161
|
+
jsonData,
|
|
3162
|
+
{
|
|
3163
|
+
headers: { "Content-Type": "application/json" }
|
|
3164
|
+
},
|
|
3165
|
+
service
|
|
3166
|
+
);
|
|
3138
3167
|
},
|
|
3139
3168
|
[env]
|
|
3140
3169
|
);
|
|
@@ -3277,9 +3306,9 @@ function useAuthService() {
|
|
|
3277
3306
|
[env]
|
|
3278
3307
|
);
|
|
3279
3308
|
const isValidActionToken = useCallback3(
|
|
3280
|
-
async (actionToken) => {
|
|
3309
|
+
async (actionToken, path) => {
|
|
3281
3310
|
return env?.requests?.post(
|
|
3282
|
-
|
|
3311
|
+
path,
|
|
3283
3312
|
{},
|
|
3284
3313
|
{
|
|
3285
3314
|
headers: {
|
|
@@ -3849,7 +3878,7 @@ function useModelService() {
|
|
|
3849
3878
|
});
|
|
3850
3879
|
}, [env]);
|
|
3851
3880
|
const getAll = useCallback8(
|
|
3852
|
-
async ({ data }) => {
|
|
3881
|
+
async ({ data, service }) => {
|
|
3853
3882
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3854
3883
|
fields: data.fields,
|
|
3855
3884
|
groupby: data.groupby
|
|
@@ -3870,11 +3899,16 @@ function useModelService() {
|
|
|
3870
3899
|
...jsonReadGroup
|
|
3871
3900
|
}
|
|
3872
3901
|
};
|
|
3873
|
-
return env.requests.post(
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3902
|
+
return env.requests.post(
|
|
3903
|
+
"/call" /* CALL_PATH */,
|
|
3904
|
+
jsonData,
|
|
3905
|
+
{
|
|
3906
|
+
headers: {
|
|
3907
|
+
"Content-Type": "application/json"
|
|
3908
|
+
}
|
|
3909
|
+
},
|
|
3910
|
+
service
|
|
3911
|
+
);
|
|
3878
3912
|
},
|
|
3879
3913
|
[env]
|
|
3880
3914
|
);
|
|
@@ -3942,7 +3976,13 @@ function useModelService() {
|
|
|
3942
3976
|
[env]
|
|
3943
3977
|
);
|
|
3944
3978
|
const getDetail = useCallback8(
|
|
3945
|
-
async ({
|
|
3979
|
+
async ({
|
|
3980
|
+
ids = [],
|
|
3981
|
+
model,
|
|
3982
|
+
specification,
|
|
3983
|
+
context,
|
|
3984
|
+
service
|
|
3985
|
+
}) => {
|
|
3946
3986
|
const jsonData = {
|
|
3947
3987
|
model,
|
|
3948
3988
|
method: "web_read" /* WEB_READ */,
|
|
@@ -3952,11 +3992,16 @@ function useModelService() {
|
|
|
3952
3992
|
specification
|
|
3953
3993
|
}
|
|
3954
3994
|
};
|
|
3955
|
-
return env.requests.post(
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3995
|
+
return env.requests.post(
|
|
3996
|
+
"/call" /* CALL_PATH */,
|
|
3997
|
+
jsonData,
|
|
3998
|
+
{
|
|
3999
|
+
headers: {
|
|
4000
|
+
"Content-Type": "application/json"
|
|
4001
|
+
}
|
|
4002
|
+
},
|
|
4003
|
+
service
|
|
4004
|
+
);
|
|
3960
4005
|
},
|
|
3961
4006
|
[env]
|
|
3962
4007
|
);
|
|
@@ -3967,7 +4012,8 @@ function useModelService() {
|
|
|
3967
4012
|
data = {},
|
|
3968
4013
|
specification = {},
|
|
3969
4014
|
context = {},
|
|
3970
|
-
path
|
|
4015
|
+
path,
|
|
4016
|
+
service
|
|
3971
4017
|
}) => {
|
|
3972
4018
|
const jsonData = {
|
|
3973
4019
|
model,
|
|
@@ -3979,26 +4025,36 @@ function useModelService() {
|
|
|
3979
4025
|
specification
|
|
3980
4026
|
}
|
|
3981
4027
|
};
|
|
3982
|
-
return env.requests.post(
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
4028
|
+
return env.requests.post(
|
|
4029
|
+
path ?? "/call" /* CALL_PATH */,
|
|
4030
|
+
jsonData,
|
|
4031
|
+
{
|
|
4032
|
+
headers: {
|
|
4033
|
+
"Content-Type": "application/json"
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4036
|
+
service
|
|
4037
|
+
);
|
|
3987
4038
|
},
|
|
3988
4039
|
[env]
|
|
3989
4040
|
);
|
|
3990
4041
|
const deleteApi = useCallback8(
|
|
3991
|
-
async ({ ids = [], model }) => {
|
|
4042
|
+
async ({ ids = [], model, service }) => {
|
|
3992
4043
|
const jsonData = {
|
|
3993
4044
|
model,
|
|
3994
4045
|
method: "unlink" /* UNLINK */,
|
|
3995
4046
|
ids
|
|
3996
4047
|
};
|
|
3997
|
-
return env.requests.post(
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4048
|
+
return env.requests.post(
|
|
4049
|
+
"/call" /* CALL_PATH */,
|
|
4050
|
+
jsonData,
|
|
4051
|
+
{
|
|
4052
|
+
headers: {
|
|
4053
|
+
"Content-Type": "application/json"
|
|
4054
|
+
}
|
|
4055
|
+
},
|
|
4056
|
+
service
|
|
4057
|
+
);
|
|
4002
4058
|
},
|
|
4003
4059
|
[env]
|
|
4004
4060
|
);
|
|
@@ -4009,7 +4065,8 @@ function useModelService() {
|
|
|
4009
4065
|
object,
|
|
4010
4066
|
specification,
|
|
4011
4067
|
context,
|
|
4012
|
-
fieldChange
|
|
4068
|
+
fieldChange,
|
|
4069
|
+
service
|
|
4013
4070
|
}) => {
|
|
4014
4071
|
const jsonData = {
|
|
4015
4072
|
model,
|
|
@@ -4022,25 +4079,36 @@ function useModelService() {
|
|
|
4022
4079
|
specification
|
|
4023
4080
|
]
|
|
4024
4081
|
};
|
|
4025
|
-
return env.requests.post(
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4082
|
+
return env.requests.post(
|
|
4083
|
+
"/call" /* CALL_PATH */,
|
|
4084
|
+
jsonData,
|
|
4085
|
+
{
|
|
4086
|
+
headers: {
|
|
4087
|
+
"Content-Type": "application/json"
|
|
4088
|
+
}
|
|
4089
|
+
},
|
|
4090
|
+
service
|
|
4091
|
+
);
|
|
4030
4092
|
},
|
|
4031
4093
|
[env]
|
|
4032
4094
|
);
|
|
4033
4095
|
const getListFieldsOnchange = useCallback8(
|
|
4034
|
-
async ({ model }) => {
|
|
4096
|
+
async ({ model, service }) => {
|
|
4097
|
+
console.log("service", service);
|
|
4035
4098
|
const jsonData = {
|
|
4036
4099
|
model,
|
|
4037
4100
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
4038
4101
|
};
|
|
4039
|
-
return env.requests.post(
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4102
|
+
return env.requests.post(
|
|
4103
|
+
"/call" /* CALL_PATH */,
|
|
4104
|
+
jsonData,
|
|
4105
|
+
{
|
|
4106
|
+
headers: {
|
|
4107
|
+
"Content-Type": "application/json"
|
|
4108
|
+
}
|
|
4109
|
+
},
|
|
4110
|
+
service
|
|
4111
|
+
);
|
|
4044
4112
|
},
|
|
4045
4113
|
[env]
|
|
4046
4114
|
);
|
|
@@ -4200,7 +4268,8 @@ function useViewService() {
|
|
|
4200
4268
|
views,
|
|
4201
4269
|
context = {},
|
|
4202
4270
|
options = {},
|
|
4203
|
-
aid
|
|
4271
|
+
aid,
|
|
4272
|
+
service
|
|
4204
4273
|
}) => {
|
|
4205
4274
|
const defaultOptions = {
|
|
4206
4275
|
load_filters: true,
|
|
@@ -4216,11 +4285,16 @@ function useViewService() {
|
|
|
4216
4285
|
},
|
|
4217
4286
|
with_context: context
|
|
4218
4287
|
};
|
|
4219
|
-
return env?.requests?.post(
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4288
|
+
return env?.requests?.post(
|
|
4289
|
+
"/call" /* CALL_PATH */,
|
|
4290
|
+
jsonDataView,
|
|
4291
|
+
{
|
|
4292
|
+
headers: {
|
|
4293
|
+
"Content-Type": "application/json"
|
|
4294
|
+
}
|
|
4295
|
+
},
|
|
4296
|
+
service
|
|
4297
|
+
);
|
|
4224
4298
|
},
|
|
4225
4299
|
[env]
|
|
4226
4300
|
);
|
|
@@ -4303,7 +4377,7 @@ function useViewService() {
|
|
|
4303
4377
|
[env]
|
|
4304
4378
|
);
|
|
4305
4379
|
const getSelectionItem = useCallback10(
|
|
4306
|
-
async ({ data }) => {
|
|
4380
|
+
async ({ data, service }) => {
|
|
4307
4381
|
const jsonData = {
|
|
4308
4382
|
model: data.model,
|
|
4309
4383
|
ids: [],
|
|
@@ -4321,11 +4395,16 @@ function useViewService() {
|
|
|
4321
4395
|
}
|
|
4322
4396
|
}
|
|
4323
4397
|
};
|
|
4324
|
-
return env?.requests.post(
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4398
|
+
return env?.requests.post(
|
|
4399
|
+
"/call" /* CALL_PATH */,
|
|
4400
|
+
jsonData,
|
|
4401
|
+
{
|
|
4402
|
+
headers: {
|
|
4403
|
+
"Content-Type": "application/json"
|
|
4404
|
+
}
|
|
4405
|
+
},
|
|
4406
|
+
service
|
|
4407
|
+
);
|
|
4329
4408
|
},
|
|
4330
4409
|
[env]
|
|
4331
4410
|
);
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-
|
|
1
|
+
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-p4JdAOsz.mjs';
|
|
2
2
|
|
|
3
3
|
interface Config {
|
|
4
4
|
baseUrl: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-
|
|
1
|
+
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-p4JdAOsz.js';
|
|
2
2
|
|
|
3
3
|
interface Config {
|
|
4
4
|
baseUrl: string;
|
|
@@ -58,6 +58,7 @@ interface GetDetailParams {
|
|
|
58
58
|
model?: string;
|
|
59
59
|
specification?: Specification;
|
|
60
60
|
context?: ContextApi;
|
|
61
|
+
service?: string;
|
|
61
62
|
}
|
|
62
63
|
interface SaveParams {
|
|
63
64
|
model: string;
|
|
@@ -66,10 +67,12 @@ interface SaveParams {
|
|
|
66
67
|
specification?: Specification;
|
|
67
68
|
context?: ContextApi;
|
|
68
69
|
path?: string;
|
|
70
|
+
service?: string;
|
|
69
71
|
}
|
|
70
72
|
interface DeleteParams {
|
|
71
73
|
ids?: number[];
|
|
72
74
|
model: string;
|
|
75
|
+
service?: string;
|
|
73
76
|
}
|
|
74
77
|
interface OnChangeParams {
|
|
75
78
|
ids?: number[];
|
|
@@ -78,6 +81,7 @@ interface OnChangeParams {
|
|
|
78
81
|
specification: Specification;
|
|
79
82
|
context?: ContextApi;
|
|
80
83
|
fieldChange?: string[];
|
|
84
|
+
service?: string;
|
|
81
85
|
}
|
|
82
86
|
interface ViewData {
|
|
83
87
|
models?: {
|
|
@@ -108,6 +112,7 @@ interface GetViewParams {
|
|
|
108
112
|
context?: Record<string, any>;
|
|
109
113
|
options?: Option;
|
|
110
114
|
aid?: number | string | null | boolean;
|
|
115
|
+
service?: string;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
|
|
@@ -58,6 +58,7 @@ interface GetDetailParams {
|
|
|
58
58
|
model?: string;
|
|
59
59
|
specification?: Specification;
|
|
60
60
|
context?: ContextApi;
|
|
61
|
+
service?: string;
|
|
61
62
|
}
|
|
62
63
|
interface SaveParams {
|
|
63
64
|
model: string;
|
|
@@ -66,10 +67,12 @@ interface SaveParams {
|
|
|
66
67
|
specification?: Specification;
|
|
67
68
|
context?: ContextApi;
|
|
68
69
|
path?: string;
|
|
70
|
+
service?: string;
|
|
69
71
|
}
|
|
70
72
|
interface DeleteParams {
|
|
71
73
|
ids?: number[];
|
|
72
74
|
model: string;
|
|
75
|
+
service?: string;
|
|
73
76
|
}
|
|
74
77
|
interface OnChangeParams {
|
|
75
78
|
ids?: number[];
|
|
@@ -78,6 +81,7 @@ interface OnChangeParams {
|
|
|
78
81
|
specification: Specification;
|
|
79
82
|
context?: ContextApi;
|
|
80
83
|
fieldChange?: string[];
|
|
84
|
+
service?: string;
|
|
81
85
|
}
|
|
82
86
|
interface ViewData {
|
|
83
87
|
models?: {
|
|
@@ -108,6 +112,7 @@ interface GetViewParams {
|
|
|
108
112
|
context?: Record<string, any>;
|
|
109
113
|
options?: Option;
|
|
110
114
|
aid?: number | string | null | boolean;
|
|
115
|
+
service?: string;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "2.1
|
|
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
|
-
},
|
|
59
|
-
"files": [
|
|
60
|
-
"dist"
|
|
61
|
-
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "tsup",
|
|
64
|
-
"test": "jest"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"react": "18.0.0",
|
|
68
|
-
"@tanstack/react-query": "^5.83.0"
|
|
69
|
-
},
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
-
"@tanstack/react-query": "^5.83.0",
|
|
73
|
-
"axios": "^1.11.0",
|
|
74
|
-
"moment": "^2.30.1",
|
|
75
|
-
"react-redux": "^9.2.0"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/react": "^18.3.1",
|
|
79
|
-
"react": "18.0.0",
|
|
80
|
-
"jest": "^29.7.0",
|
|
81
|
-
"tsup": "^8.0.0",
|
|
82
|
-
"typescript": "^5.8.2"
|
|
83
|
-
},
|
|
84
|
-
"packageManager": "yarn@1.22.0"
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "2.2.1",
|
|
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
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsup",
|
|
64
|
+
"test": "jest"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "18.0.0",
|
|
68
|
+
"@tanstack/react-query": "^5.83.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
+
"@tanstack/react-query": "^5.83.0",
|
|
73
|
+
"axios": "^1.11.0",
|
|
74
|
+
"moment": "^2.30.1",
|
|
75
|
+
"react-redux": "^9.2.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/react": "^18.3.1",
|
|
79
|
+
"react": "18.0.0",
|
|
80
|
+
"jest": "^29.7.0",
|
|
81
|
+
"tsup": "^8.0.0",
|
|
82
|
+
"typescript": "^5.8.2"
|
|
83
|
+
},
|
|
84
|
+
"packageManager": "yarn@1.22.0"
|
|
85
|
+
}
|