@fctc/interface-logic 2.2.0 → 2.2.2
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 +22 -44
- package/dist/configs.mjs +22 -44
- package/dist/constants.d.mts +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/constants.mjs +1 -0
- package/dist/environment.js +22 -44
- package/dist/environment.mjs +22 -44
- package/dist/hooks.d.mts +4 -16
- package/dist/hooks.d.ts +4 -16
- package/dist/hooks.js +103 -208
- package/dist/hooks.mjs +103 -208
- package/dist/provider.d.mts +1 -2
- package/dist/provider.d.ts +1 -2
- package/dist/provider.js +125 -252
- package/dist/provider.mjs +125 -252
- package/dist/services.d.mts +15 -23
- package/dist/services.d.ts +15 -23
- package/dist/services.js +78 -160
- package/dist/services.mjs +78 -160
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-BGJfDe73.d.mts} +0 -5
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-BGJfDe73.d.ts} +0 -5
- package/package.json +85 -85
package/dist/services.mjs
CHANGED
|
@@ -22,6 +22,7 @@ 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`;
|
|
25
26
|
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
|
26
27
|
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
|
27
28
|
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
|
@@ -3014,21 +3015,15 @@ function useActionService() {
|
|
|
3014
3015
|
const loadAction = useCallback2(
|
|
3015
3016
|
async ({
|
|
3016
3017
|
idAction,
|
|
3017
|
-
context
|
|
3018
|
-
service
|
|
3018
|
+
context
|
|
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
|
-
|
|
3027
|
-
{
|
|
3028
|
-
headers: { "Content-Type": "application/json" }
|
|
3029
|
-
},
|
|
3030
|
-
service
|
|
3031
|
-
);
|
|
3024
|
+
return env.requests.post("/load_action" /* LOAD_ACTION */, jsonData, {
|
|
3025
|
+
headers: { "Content-Type": "application/json" }
|
|
3026
|
+
});
|
|
3032
3027
|
},
|
|
3033
3028
|
[env]
|
|
3034
3029
|
);
|
|
@@ -3037,8 +3032,7 @@ function useActionService() {
|
|
|
3037
3032
|
model,
|
|
3038
3033
|
ids = [],
|
|
3039
3034
|
context,
|
|
3040
|
-
method
|
|
3041
|
-
service
|
|
3035
|
+
method
|
|
3042
3036
|
}) => {
|
|
3043
3037
|
try {
|
|
3044
3038
|
const jsonData = {
|
|
@@ -3047,14 +3041,9 @@ function useActionService() {
|
|
|
3047
3041
|
ids,
|
|
3048
3042
|
with_context: context
|
|
3049
3043
|
};
|
|
3050
|
-
return env.requests.post(
|
|
3051
|
-
"/
|
|
3052
|
-
|
|
3053
|
-
{
|
|
3054
|
-
headers: { "Content-Type": "application/json" }
|
|
3055
|
-
},
|
|
3056
|
-
service
|
|
3057
|
-
);
|
|
3044
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3045
|
+
headers: { "Content-Type": "application/json" }
|
|
3046
|
+
});
|
|
3058
3047
|
} catch (error) {
|
|
3059
3048
|
console.error("Error when calling button action:", error);
|
|
3060
3049
|
throw error;
|
|
@@ -3066,8 +3055,7 @@ function useActionService() {
|
|
|
3066
3055
|
async ({
|
|
3067
3056
|
model,
|
|
3068
3057
|
ids,
|
|
3069
|
-
context
|
|
3070
|
-
service
|
|
3058
|
+
context
|
|
3071
3059
|
}) => {
|
|
3072
3060
|
const jsonData = {
|
|
3073
3061
|
model,
|
|
@@ -3075,14 +3063,9 @@ function useActionService() {
|
|
|
3075
3063
|
ids,
|
|
3076
3064
|
with_context: context
|
|
3077
3065
|
};
|
|
3078
|
-
return env.requests.post(
|
|
3079
|
-
"/
|
|
3080
|
-
|
|
3081
|
-
{
|
|
3082
|
-
headers: { "Content-Type": "application/json" }
|
|
3083
|
-
},
|
|
3084
|
-
service
|
|
3085
|
-
);
|
|
3066
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3067
|
+
headers: { "Content-Type": "application/json" }
|
|
3068
|
+
});
|
|
3086
3069
|
},
|
|
3087
3070
|
[env]
|
|
3088
3071
|
);
|
|
@@ -3090,8 +3073,7 @@ function useActionService() {
|
|
|
3090
3073
|
async ({
|
|
3091
3074
|
model,
|
|
3092
3075
|
id,
|
|
3093
|
-
context
|
|
3094
|
-
service
|
|
3076
|
+
context
|
|
3095
3077
|
}) => {
|
|
3096
3078
|
const jsonData = {
|
|
3097
3079
|
model,
|
|
@@ -3099,14 +3081,9 @@ function useActionService() {
|
|
|
3099
3081
|
ids: id,
|
|
3100
3082
|
with_context: context
|
|
3101
3083
|
};
|
|
3102
|
-
return env.requests.post(
|
|
3103
|
-
"/
|
|
3104
|
-
|
|
3105
|
-
{
|
|
3106
|
-
headers: { "Content-Type": "application/json" }
|
|
3107
|
-
},
|
|
3108
|
-
service
|
|
3109
|
-
);
|
|
3084
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3085
|
+
headers: { "Content-Type": "application/json" }
|
|
3086
|
+
});
|
|
3110
3087
|
},
|
|
3111
3088
|
[env]
|
|
3112
3089
|
);
|
|
@@ -3149,21 +3126,15 @@ function useActionService() {
|
|
|
3149
3126
|
const runAction = useCallback2(
|
|
3150
3127
|
async ({
|
|
3151
3128
|
idAction,
|
|
3152
|
-
context
|
|
3153
|
-
service
|
|
3129
|
+
context
|
|
3154
3130
|
}) => {
|
|
3155
3131
|
const jsonData = {
|
|
3156
3132
|
action_id: idAction,
|
|
3157
3133
|
with_context: { ...context }
|
|
3158
3134
|
};
|
|
3159
|
-
return env.requests.post(
|
|
3160
|
-
"/
|
|
3161
|
-
|
|
3162
|
-
{
|
|
3163
|
-
headers: { "Content-Type": "application/json" }
|
|
3164
|
-
},
|
|
3165
|
-
service
|
|
3166
|
-
);
|
|
3135
|
+
return env.requests.post("/run_action" /* RUN_ACTION_PATH */, jsonData, {
|
|
3136
|
+
headers: { "Content-Type": "application/json" }
|
|
3137
|
+
});
|
|
3167
3138
|
},
|
|
3168
3139
|
[env]
|
|
3169
3140
|
);
|
|
@@ -3306,18 +3277,15 @@ function useAuthService() {
|
|
|
3306
3277
|
[env]
|
|
3307
3278
|
);
|
|
3308
3279
|
const isValidActionToken = useCallback3(
|
|
3309
|
-
async (actionToken
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
{
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
actionToken
|
|
3319
|
-
}
|
|
3320
|
-
);
|
|
3280
|
+
async (actionToken) => {
|
|
3281
|
+
const bodyData = {};
|
|
3282
|
+
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
3283
|
+
headers: {
|
|
3284
|
+
"Content-Type": "application/json"
|
|
3285
|
+
},
|
|
3286
|
+
useActionToken: true,
|
|
3287
|
+
actionToken
|
|
3288
|
+
});
|
|
3321
3289
|
},
|
|
3322
3290
|
[env]
|
|
3323
3291
|
);
|
|
@@ -3878,7 +3846,7 @@ function useModelService() {
|
|
|
3878
3846
|
});
|
|
3879
3847
|
}, [env]);
|
|
3880
3848
|
const getAll = useCallback8(
|
|
3881
|
-
async ({ data
|
|
3849
|
+
async ({ data }) => {
|
|
3882
3850
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3883
3851
|
fields: data.fields,
|
|
3884
3852
|
groupby: data.groupby
|
|
@@ -3899,16 +3867,11 @@ function useModelService() {
|
|
|
3899
3867
|
...jsonReadGroup
|
|
3900
3868
|
}
|
|
3901
3869
|
};
|
|
3902
|
-
return env.requests.post(
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
"Content-Type": "application/json"
|
|
3908
|
-
}
|
|
3909
|
-
},
|
|
3910
|
-
service
|
|
3911
|
-
);
|
|
3870
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3871
|
+
headers: {
|
|
3872
|
+
"Content-Type": "application/json"
|
|
3873
|
+
}
|
|
3874
|
+
});
|
|
3912
3875
|
},
|
|
3913
3876
|
[env]
|
|
3914
3877
|
);
|
|
@@ -3976,13 +3939,7 @@ function useModelService() {
|
|
|
3976
3939
|
[env]
|
|
3977
3940
|
);
|
|
3978
3941
|
const getDetail = useCallback8(
|
|
3979
|
-
async ({
|
|
3980
|
-
ids = [],
|
|
3981
|
-
model,
|
|
3982
|
-
specification,
|
|
3983
|
-
context,
|
|
3984
|
-
service
|
|
3985
|
-
}) => {
|
|
3942
|
+
async ({ ids = [], model, specification, context }) => {
|
|
3986
3943
|
const jsonData = {
|
|
3987
3944
|
model,
|
|
3988
3945
|
method: "web_read" /* WEB_READ */,
|
|
@@ -3992,16 +3949,11 @@ function useModelService() {
|
|
|
3992
3949
|
specification
|
|
3993
3950
|
}
|
|
3994
3951
|
};
|
|
3995
|
-
return env.requests.post(
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
"Content-Type": "application/json"
|
|
4001
|
-
}
|
|
4002
|
-
},
|
|
4003
|
-
service
|
|
4004
|
-
);
|
|
3952
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3953
|
+
headers: {
|
|
3954
|
+
"Content-Type": "application/json"
|
|
3955
|
+
}
|
|
3956
|
+
});
|
|
4005
3957
|
},
|
|
4006
3958
|
[env]
|
|
4007
3959
|
);
|
|
@@ -4012,8 +3964,7 @@ function useModelService() {
|
|
|
4012
3964
|
data = {},
|
|
4013
3965
|
specification = {},
|
|
4014
3966
|
context = {},
|
|
4015
|
-
path
|
|
4016
|
-
service
|
|
3967
|
+
path
|
|
4017
3968
|
}) => {
|
|
4018
3969
|
const jsonData = {
|
|
4019
3970
|
model,
|
|
@@ -4025,36 +3976,26 @@ function useModelService() {
|
|
|
4025
3976
|
specification
|
|
4026
3977
|
}
|
|
4027
3978
|
};
|
|
4028
|
-
return env.requests.post(
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
"Content-Type": "application/json"
|
|
4034
|
-
}
|
|
4035
|
-
},
|
|
4036
|
-
service
|
|
4037
|
-
);
|
|
3979
|
+
return env.requests.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
3980
|
+
headers: {
|
|
3981
|
+
"Content-Type": "application/json"
|
|
3982
|
+
}
|
|
3983
|
+
});
|
|
4038
3984
|
},
|
|
4039
3985
|
[env]
|
|
4040
3986
|
);
|
|
4041
3987
|
const deleteApi = useCallback8(
|
|
4042
|
-
async ({ ids = [], model
|
|
3988
|
+
async ({ ids = [], model }) => {
|
|
4043
3989
|
const jsonData = {
|
|
4044
3990
|
model,
|
|
4045
3991
|
method: "unlink" /* UNLINK */,
|
|
4046
3992
|
ids
|
|
4047
3993
|
};
|
|
4048
|
-
return env.requests.post(
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
"Content-Type": "application/json"
|
|
4054
|
-
}
|
|
4055
|
-
},
|
|
4056
|
-
service
|
|
4057
|
-
);
|
|
3994
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3995
|
+
headers: {
|
|
3996
|
+
"Content-Type": "application/json"
|
|
3997
|
+
}
|
|
3998
|
+
});
|
|
4058
3999
|
},
|
|
4059
4000
|
[env]
|
|
4060
4001
|
);
|
|
@@ -4065,8 +4006,7 @@ function useModelService() {
|
|
|
4065
4006
|
object,
|
|
4066
4007
|
specification,
|
|
4067
4008
|
context,
|
|
4068
|
-
fieldChange
|
|
4069
|
-
service
|
|
4009
|
+
fieldChange
|
|
4070
4010
|
}) => {
|
|
4071
4011
|
const jsonData = {
|
|
4072
4012
|
model,
|
|
@@ -4079,36 +4019,25 @@ function useModelService() {
|
|
|
4079
4019
|
specification
|
|
4080
4020
|
]
|
|
4081
4021
|
};
|
|
4082
|
-
return env.requests.post(
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
"Content-Type": "application/json"
|
|
4088
|
-
}
|
|
4089
|
-
},
|
|
4090
|
-
service
|
|
4091
|
-
);
|
|
4022
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
4023
|
+
headers: {
|
|
4024
|
+
"Content-Type": "application/json"
|
|
4025
|
+
}
|
|
4026
|
+
});
|
|
4092
4027
|
},
|
|
4093
4028
|
[env]
|
|
4094
4029
|
);
|
|
4095
4030
|
const getListFieldsOnchange = useCallback8(
|
|
4096
|
-
async ({ model
|
|
4097
|
-
console.log("service", service);
|
|
4031
|
+
async ({ model }) => {
|
|
4098
4032
|
const jsonData = {
|
|
4099
4033
|
model,
|
|
4100
4034
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
4101
4035
|
};
|
|
4102
|
-
return env.requests.post(
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
"Content-Type": "application/json"
|
|
4108
|
-
}
|
|
4109
|
-
},
|
|
4110
|
-
service
|
|
4111
|
-
);
|
|
4036
|
+
return env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
4037
|
+
headers: {
|
|
4038
|
+
"Content-Type": "application/json"
|
|
4039
|
+
}
|
|
4040
|
+
});
|
|
4112
4041
|
},
|
|
4113
4042
|
[env]
|
|
4114
4043
|
);
|
|
@@ -4268,8 +4197,7 @@ function useViewService() {
|
|
|
4268
4197
|
views,
|
|
4269
4198
|
context = {},
|
|
4270
4199
|
options = {},
|
|
4271
|
-
aid
|
|
4272
|
-
service
|
|
4200
|
+
aid
|
|
4273
4201
|
}) => {
|
|
4274
4202
|
const defaultOptions = {
|
|
4275
4203
|
load_filters: true,
|
|
@@ -4285,16 +4213,11 @@ function useViewService() {
|
|
|
4285
4213
|
},
|
|
4286
4214
|
with_context: context
|
|
4287
4215
|
};
|
|
4288
|
-
return env?.requests?.post(
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
"Content-Type": "application/json"
|
|
4294
|
-
}
|
|
4295
|
-
},
|
|
4296
|
-
service
|
|
4297
|
-
);
|
|
4216
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonDataView, {
|
|
4217
|
+
headers: {
|
|
4218
|
+
"Content-Type": "application/json"
|
|
4219
|
+
}
|
|
4220
|
+
});
|
|
4298
4221
|
},
|
|
4299
4222
|
[env]
|
|
4300
4223
|
);
|
|
@@ -4377,7 +4300,7 @@ function useViewService() {
|
|
|
4377
4300
|
[env]
|
|
4378
4301
|
);
|
|
4379
4302
|
const getSelectionItem = useCallback10(
|
|
4380
|
-
async ({ data
|
|
4303
|
+
async ({ data }) => {
|
|
4381
4304
|
const jsonData = {
|
|
4382
4305
|
model: data.model,
|
|
4383
4306
|
ids: [],
|
|
@@ -4395,16 +4318,11 @@ function useViewService() {
|
|
|
4395
4318
|
}
|
|
4396
4319
|
}
|
|
4397
4320
|
};
|
|
4398
|
-
return env?.requests.post(
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
"Content-Type": "application/json"
|
|
4404
|
-
}
|
|
4405
|
-
},
|
|
4406
|
-
service
|
|
4407
|
-
);
|
|
4321
|
+
return env?.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
4322
|
+
headers: {
|
|
4323
|
+
"Content-Type": "application/json"
|
|
4324
|
+
}
|
|
4325
|
+
});
|
|
4408
4326
|
},
|
|
4409
4327
|
[env]
|
|
4410
4328
|
);
|
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-BGJfDe73.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-BGJfDe73.js';
|
|
2
2
|
|
|
3
3
|
interface Config {
|
|
4
4
|
baseUrl: string;
|
|
@@ -58,7 +58,6 @@ interface GetDetailParams {
|
|
|
58
58
|
model?: string;
|
|
59
59
|
specification?: Specification;
|
|
60
60
|
context?: ContextApi;
|
|
61
|
-
service?: string;
|
|
62
61
|
}
|
|
63
62
|
interface SaveParams {
|
|
64
63
|
model: string;
|
|
@@ -67,12 +66,10 @@ interface SaveParams {
|
|
|
67
66
|
specification?: Specification;
|
|
68
67
|
context?: ContextApi;
|
|
69
68
|
path?: string;
|
|
70
|
-
service?: string;
|
|
71
69
|
}
|
|
72
70
|
interface DeleteParams {
|
|
73
71
|
ids?: number[];
|
|
74
72
|
model: string;
|
|
75
|
-
service?: string;
|
|
76
73
|
}
|
|
77
74
|
interface OnChangeParams {
|
|
78
75
|
ids?: number[];
|
|
@@ -81,7 +78,6 @@ interface OnChangeParams {
|
|
|
81
78
|
specification: Specification;
|
|
82
79
|
context?: ContextApi;
|
|
83
80
|
fieldChange?: string[];
|
|
84
|
-
service?: string;
|
|
85
81
|
}
|
|
86
82
|
interface ViewData {
|
|
87
83
|
models?: {
|
|
@@ -112,7 +108,6 @@ interface GetViewParams {
|
|
|
112
108
|
context?: Record<string, any>;
|
|
113
109
|
options?: Option;
|
|
114
110
|
aid?: number | string | null | boolean;
|
|
115
|
-
service?: string;
|
|
116
111
|
}
|
|
117
112
|
|
|
118
113
|
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,7 +58,6 @@ interface GetDetailParams {
|
|
|
58
58
|
model?: string;
|
|
59
59
|
specification?: Specification;
|
|
60
60
|
context?: ContextApi;
|
|
61
|
-
service?: string;
|
|
62
61
|
}
|
|
63
62
|
interface SaveParams {
|
|
64
63
|
model: string;
|
|
@@ -67,12 +66,10 @@ interface SaveParams {
|
|
|
67
66
|
specification?: Specification;
|
|
68
67
|
context?: ContextApi;
|
|
69
68
|
path?: string;
|
|
70
|
-
service?: string;
|
|
71
69
|
}
|
|
72
70
|
interface DeleteParams {
|
|
73
71
|
ids?: number[];
|
|
74
72
|
model: string;
|
|
75
|
-
service?: string;
|
|
76
73
|
}
|
|
77
74
|
interface OnChangeParams {
|
|
78
75
|
ids?: number[];
|
|
@@ -81,7 +78,6 @@ interface OnChangeParams {
|
|
|
81
78
|
specification: Specification;
|
|
82
79
|
context?: ContextApi;
|
|
83
80
|
fieldChange?: string[];
|
|
84
|
-
service?: string;
|
|
85
81
|
}
|
|
86
82
|
interface ViewData {
|
|
87
83
|
models?: {
|
|
@@ -112,7 +108,6 @@ interface GetViewParams {
|
|
|
112
108
|
context?: Record<string, any>;
|
|
113
109
|
options?: Option;
|
|
114
110
|
aid?: number | string | null | boolean;
|
|
115
|
-
service?: string;
|
|
116
111
|
}
|
|
117
112
|
|
|
118
113
|
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.2.
|
|
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.2",
|
|
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
|
+
}
|