@fctc/interface-logic 3.2.0 → 3.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.js +0 -4
- package/dist/configs.mjs +0 -4
- package/dist/constants.d.mts +3 -1
- package/dist/constants.d.ts +3 -1
- package/dist/constants.js +2 -0
- package/dist/constants.mjs +2 -0
- package/dist/environment.js +0 -4
- package/dist/environment.mjs +0 -4
- package/dist/hooks.d.mts +15 -1
- package/dist/hooks.d.ts +15 -1
- package/dist/hooks.js +245 -157
- package/dist/hooks.mjs +203 -117
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +244 -158
- package/dist/provider.mjs +204 -118
- package/dist/services.d.mts +12 -0
- package/dist/services.d.ts +12 -0
- package/dist/services.js +137 -81
- package/dist/services.mjs +117 -61
- package/dist/utils.js +0 -4
- package/dist/utils.mjs +0 -4
- package/package.json +90 -90
package/dist/services.mjs
CHANGED
|
@@ -33,6 +33,8 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
33
33
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
34
34
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
35
35
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
36
|
+
UriConstants2["TENANT_MAPPING"] = "/tenant-mapping";
|
|
37
|
+
UriConstants2["EMENU_AUTH_TOKEN"] = "/emenu/auth/token";
|
|
36
38
|
return UriConstants2;
|
|
37
39
|
})(UriConstants || {});
|
|
38
40
|
|
|
@@ -1780,10 +1782,6 @@ function evaluate(ast, context = {}) {
|
|
|
1780
1782
|
leftVal = toPyDict(leftVal);
|
|
1781
1783
|
} else if (typeof leftVal === "number") {
|
|
1782
1784
|
result = leftVal;
|
|
1783
|
-
} else if (Array.isArray(leftVal[ast2.key])) {
|
|
1784
|
-
result = leftVal[ast2.key]?.map(
|
|
1785
|
-
(value) => value?.id ?? value
|
|
1786
|
-
);
|
|
1787
1785
|
} else {
|
|
1788
1786
|
result = leftVal[ast2.key]?.id ?? leftVal[ast2.key];
|
|
1789
1787
|
}
|
|
@@ -2849,41 +2847,47 @@ import { useMutation as useMutation11 } from "@tanstack/react-query";
|
|
|
2849
2847
|
// src/hooks/auth/use-validate-action-token.ts
|
|
2850
2848
|
import { useMutation as useMutation12 } from "@tanstack/react-query";
|
|
2851
2849
|
|
|
2852
|
-
// src/hooks/
|
|
2850
|
+
// src/hooks/auth/use-get-tenant-mapping.ts
|
|
2853
2851
|
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
2854
2852
|
|
|
2855
|
-
// src/hooks/
|
|
2853
|
+
// src/hooks/auth/use-get-token.ts
|
|
2856
2854
|
import { useMutation as useMutation14 } from "@tanstack/react-query";
|
|
2857
2855
|
|
|
2856
|
+
// src/hooks/company/use-get-company-info.ts
|
|
2857
|
+
import { useMutation as useMutation15 } from "@tanstack/react-query";
|
|
2858
|
+
|
|
2859
|
+
// src/hooks/company/use-get-current-company.ts
|
|
2860
|
+
import { useMutation as useMutation16 } from "@tanstack/react-query";
|
|
2861
|
+
|
|
2858
2862
|
// src/hooks/company/use-get-list-company.ts
|
|
2859
2863
|
import { useQuery } from "@tanstack/react-query";
|
|
2860
2864
|
|
|
2861
2865
|
// src/hooks/excel/use-export-excel.ts
|
|
2862
|
-
import { useMutation as
|
|
2866
|
+
import { useMutation as useMutation17 } from "@tanstack/react-query";
|
|
2863
2867
|
|
|
2864
2868
|
// src/hooks/excel/use-get-field-export.ts
|
|
2865
|
-
import { useMutation as
|
|
2869
|
+
import { useMutation as useMutation18 } from "@tanstack/react-query";
|
|
2866
2870
|
|
|
2867
2871
|
// src/hooks/excel/use-get-file-excel.ts
|
|
2868
2872
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
2869
2873
|
|
|
2870
2874
|
// src/hooks/excel/use-parse-preview.ts
|
|
2871
|
-
import { useMutation as
|
|
2875
|
+
import { useMutation as useMutation19 } from "@tanstack/react-query";
|
|
2872
2876
|
|
|
2873
2877
|
// src/hooks/excel/use-upload-file-excel.ts
|
|
2874
|
-
import { useMutation as
|
|
2878
|
+
import { useMutation as useMutation20 } from "@tanstack/react-query";
|
|
2875
2879
|
|
|
2876
2880
|
// src/hooks/excel/use-upload-id-file.ts
|
|
2877
|
-
import { useMutation as
|
|
2881
|
+
import { useMutation as useMutation21 } from "@tanstack/react-query";
|
|
2878
2882
|
|
|
2879
2883
|
// src/hooks/excel/uss-execute-import.ts
|
|
2880
|
-
import { useMutation as
|
|
2884
|
+
import { useMutation as useMutation22 } from "@tanstack/react-query";
|
|
2881
2885
|
|
|
2882
2886
|
// src/hooks/form/use-change-status.ts
|
|
2883
|
-
import { useMutation as
|
|
2887
|
+
import { useMutation as useMutation23 } from "@tanstack/react-query";
|
|
2884
2888
|
|
|
2885
2889
|
// src/hooks/form/use-delete-comment.ts
|
|
2886
|
-
import { useMutation as
|
|
2890
|
+
import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
2887
2891
|
|
|
2888
2892
|
// src/hooks/form/use-get-comment.ts
|
|
2889
2893
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
@@ -2895,16 +2899,16 @@ import { useQuery as useQuery4 } from "@tanstack/react-query";
|
|
|
2895
2899
|
import { useQuery as useQuery5 } from "@tanstack/react-query";
|
|
2896
2900
|
|
|
2897
2901
|
// src/hooks/form/use-send-comment.ts
|
|
2898
|
-
import { useMutation as
|
|
2902
|
+
import { useMutation as useMutation25 } from "@tanstack/react-query";
|
|
2899
2903
|
|
|
2900
2904
|
// src/hooks/form/use-upload-image.ts
|
|
2901
|
-
import { useMutation as
|
|
2905
|
+
import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
2902
2906
|
|
|
2903
2907
|
// src/hooks/form/use-upload-file.ts
|
|
2904
|
-
import { useMutation as
|
|
2908
|
+
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
2905
2909
|
|
|
2906
2910
|
// src/hooks/model/use-delete.ts
|
|
2907
|
-
import { useMutation as
|
|
2911
|
+
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
2908
2912
|
|
|
2909
2913
|
// src/hooks/model/use-get-all.ts
|
|
2910
2914
|
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
@@ -2916,7 +2920,7 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
|
2916
2920
|
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
2917
2921
|
|
|
2918
2922
|
// src/hooks/model/use-get-detail.ts
|
|
2919
|
-
import { useMutation as
|
|
2923
|
+
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
2920
2924
|
|
|
2921
2925
|
// src/hooks/model/use-get-field-onchange.ts
|
|
2922
2926
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
@@ -2925,25 +2929,25 @@ import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
|
2925
2929
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
2926
2930
|
|
|
2927
2931
|
// src/hooks/model/use-onchange-form.ts
|
|
2928
|
-
import { useMutation as
|
|
2932
|
+
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
2929
2933
|
|
|
2930
2934
|
// src/hooks/model/use-save.ts
|
|
2931
|
-
import { useMutation as
|
|
2935
|
+
import { useMutation as useMutation31 } from "@tanstack/react-query";
|
|
2932
2936
|
|
|
2933
2937
|
// src/hooks/user/use-get-profile.ts
|
|
2934
|
-
import { useMutation as
|
|
2938
|
+
import { useMutation as useMutation32 } from "@tanstack/react-query";
|
|
2935
2939
|
|
|
2936
2940
|
// src/hooks/user/use-get-user.ts
|
|
2937
|
-
import { useMutation as
|
|
2941
|
+
import { useMutation as useMutation33 } from "@tanstack/react-query";
|
|
2938
2942
|
|
|
2939
2943
|
// src/hooks/user/use-switch-locale.ts
|
|
2940
|
-
import { useMutation as
|
|
2944
|
+
import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
2941
2945
|
|
|
2942
2946
|
// src/hooks/view/use-button.ts
|
|
2943
|
-
import { useMutation as
|
|
2947
|
+
import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
2944
2948
|
|
|
2945
2949
|
// src/hooks/view/use-duplicate-record.ts
|
|
2946
|
-
import { useMutation as
|
|
2950
|
+
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
2947
2951
|
|
|
2948
2952
|
// src/hooks/view/use-get-action-detail.ts
|
|
2949
2953
|
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
@@ -2961,7 +2965,7 @@ import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
|
2961
2965
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
2962
2966
|
|
|
2963
2967
|
// src/hooks/view/use-get-print-report.ts
|
|
2964
|
-
import { useMutation as
|
|
2968
|
+
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
2965
2969
|
|
|
2966
2970
|
// src/hooks/view/use-get-progress-bar.ts
|
|
2967
2971
|
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
@@ -2973,109 +2977,109 @@ import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
|
2973
2977
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
2974
2978
|
|
|
2975
2979
|
// src/hooks/view/use-load-action.ts
|
|
2976
|
-
import { useMutation as
|
|
2980
|
+
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
2977
2981
|
|
|
2978
2982
|
// src/hooks/view/use-load-message.ts
|
|
2979
2983
|
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
|
2980
2984
|
|
|
2981
2985
|
// src/hooks/view/use-print.ts
|
|
2982
|
-
import { useMutation as
|
|
2986
|
+
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
2983
2987
|
|
|
2984
2988
|
// src/hooks/view/use-remove-row.ts
|
|
2985
|
-
import { useMutation as
|
|
2989
|
+
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
2986
2990
|
|
|
2987
2991
|
// src/hooks/view/use-resequence.ts
|
|
2988
2992
|
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
|
2989
2993
|
|
|
2990
2994
|
// src/hooks/view/use-run-action.ts
|
|
2991
|
-
import { useMutation as
|
|
2995
|
+
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
2992
2996
|
|
|
2993
2997
|
// src/hooks/view/use-signin-sso.ts
|
|
2994
|
-
import { useMutation as
|
|
2998
|
+
import { useMutation as useMutation42 } from "@tanstack/react-query";
|
|
2995
2999
|
|
|
2996
3000
|
// src/hooks/view/use-verify-2FA.ts
|
|
2997
|
-
import { useMutation as
|
|
3001
|
+
import { useMutation as useMutation43 } from "@tanstack/react-query";
|
|
2998
3002
|
|
|
2999
3003
|
// src/hooks/view/uset-get-2FA-method.ts
|
|
3000
|
-
import { useMutation as
|
|
3004
|
+
import { useMutation as useMutation44 } from "@tanstack/react-query";
|
|
3001
3005
|
|
|
3002
3006
|
// src/hooks/view/use-grant-access.ts
|
|
3003
|
-
import { useMutation as
|
|
3007
|
+
import { useMutation as useMutation45 } from "@tanstack/react-query";
|
|
3004
3008
|
|
|
3005
3009
|
// src/hooks/view/use-remove-totp-setup.ts
|
|
3006
|
-
import { useMutation as
|
|
3010
|
+
import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
3007
3011
|
|
|
3008
3012
|
// src/hooks/view/use-request-setup-totp.ts
|
|
3009
|
-
import { useMutation as
|
|
3013
|
+
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
3010
3014
|
|
|
3011
3015
|
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
3012
|
-
import { useMutation as
|
|
3016
|
+
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
3013
3017
|
|
|
3014
3018
|
// src/hooks/view/use-verify-totp.ts
|
|
3015
|
-
import { useMutation as
|
|
3019
|
+
import { useMutation as useMutation49 } from "@tanstack/react-query";
|
|
3016
3020
|
|
|
3017
3021
|
// src/hooks/view/use-get-a-session.ts
|
|
3018
|
-
import { useMutation as
|
|
3022
|
+
import { useMutation as useMutation50 } from "@tanstack/react-query";
|
|
3019
3023
|
|
|
3020
3024
|
// src/hooks/view/use-update-closed-session.ts
|
|
3021
|
-
import { useMutation as
|
|
3025
|
+
import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
3022
3026
|
|
|
3023
3027
|
// src/hooks/view/use-manage-session.ts
|
|
3024
|
-
import { useMutation as
|
|
3028
|
+
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
3025
3029
|
|
|
3026
3030
|
// src/hooks/view/use-handle-closing-session.ts
|
|
3027
|
-
import { useMutation as
|
|
3031
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
3028
3032
|
|
|
3029
3033
|
// src/hooks/view/use-create-session.ts
|
|
3030
|
-
import { useMutation as
|
|
3034
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
3031
3035
|
|
|
3032
3036
|
// src/hooks/view/use-get-pos.ts
|
|
3033
|
-
import { useMutation as
|
|
3037
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
3034
3038
|
|
|
3035
3039
|
// src/hooks/view/use-create-entity.ts
|
|
3036
|
-
import { useMutation as
|
|
3040
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
3037
3041
|
|
|
3038
3042
|
// src/hooks/view/use-get-list.ts
|
|
3039
|
-
import { useMutation as
|
|
3043
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
3040
3044
|
|
|
3041
3045
|
// src/hooks/view/use-update-entity.ts
|
|
3042
|
-
import { useMutation as
|
|
3046
|
+
import { useMutation as useMutation58 } from "@tanstack/react-query";
|
|
3043
3047
|
|
|
3044
3048
|
// src/hooks/view/use-delete-entity.ts
|
|
3045
|
-
import { useMutation as
|
|
3049
|
+
import { useMutation as useMutation59 } from "@tanstack/react-query";
|
|
3046
3050
|
|
|
3047
3051
|
// src/hooks/view/use-load-data-pos-session.ts
|
|
3048
|
-
import { useMutation as
|
|
3052
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
3049
3053
|
|
|
3050
3054
|
// src/hooks/view/use-manage-on-change.ts
|
|
3051
|
-
import { useMutation as
|
|
3055
|
+
import { useMutation as useMutation61 } from "@tanstack/react-query";
|
|
3052
3056
|
|
|
3053
3057
|
// src/hooks/view/use-gen-serial-number.ts
|
|
3054
|
-
import { useMutation as
|
|
3058
|
+
import { useMutation as useMutation62 } from "@tanstack/react-query";
|
|
3055
3059
|
|
|
3056
3060
|
// src/hooks/view/use-get-order-line.ts
|
|
3057
|
-
import { useMutation as
|
|
3061
|
+
import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
3058
3062
|
|
|
3059
3063
|
// src/hooks/view/use-get-product-image.ts
|
|
3060
|
-
import { useMutation as
|
|
3064
|
+
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
3061
3065
|
|
|
3062
3066
|
// src/hooks/view/use-add-entity.ts
|
|
3063
|
-
import { useMutation as
|
|
3067
|
+
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
3064
3068
|
|
|
3065
3069
|
// src/hooks/view/use-check-payment.ts
|
|
3066
|
-
import { useMutation as
|
|
3070
|
+
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
3067
3071
|
|
|
3068
3072
|
// src/hooks/view/use-handle-close-session.ts
|
|
3069
|
-
import { useMutation as
|
|
3073
|
+
import { useMutation as useMutation67 } from "@tanstack/react-query";
|
|
3070
3074
|
|
|
3071
3075
|
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3072
|
-
import { useMutation as
|
|
3076
|
+
import { useMutation as useMutation68 } from "@tanstack/react-query";
|
|
3073
3077
|
|
|
3074
3078
|
// src/hooks/view/use-create-pos-config.ts
|
|
3075
|
-
import { useMutation as
|
|
3079
|
+
import { useMutation as useMutation69 } from "@tanstack/react-query";
|
|
3076
3080
|
|
|
3077
3081
|
// src/hooks/view/use-search-journal.ts
|
|
3078
|
-
import { useMutation as
|
|
3082
|
+
import { useMutation as useMutation70 } from "@tanstack/react-query";
|
|
3079
3083
|
|
|
3080
3084
|
// src/provider/service-provider.tsx
|
|
3081
3085
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
@@ -3491,6 +3495,56 @@ function useAuthService() {
|
|
|
3491
3495
|
},
|
|
3492
3496
|
[env]
|
|
3493
3497
|
);
|
|
3498
|
+
const getTenantMapping = useCallback3(
|
|
3499
|
+
async ({
|
|
3500
|
+
cif,
|
|
3501
|
+
shortName,
|
|
3502
|
+
service,
|
|
3503
|
+
xNode
|
|
3504
|
+
}) => {
|
|
3505
|
+
const bodyData = {
|
|
3506
|
+
cif,
|
|
3507
|
+
short_name: shortName
|
|
3508
|
+
};
|
|
3509
|
+
return env?.requests.post(
|
|
3510
|
+
"/tenant-mapping" /* TENANT_MAPPING */,
|
|
3511
|
+
bodyData,
|
|
3512
|
+
{
|
|
3513
|
+
headers: {
|
|
3514
|
+
"Content-Type": "application/json",
|
|
3515
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3518
|
+
service
|
|
3519
|
+
);
|
|
3520
|
+
},
|
|
3521
|
+
[env]
|
|
3522
|
+
);
|
|
3523
|
+
const getToken = useCallback3(
|
|
3524
|
+
async ({
|
|
3525
|
+
phone,
|
|
3526
|
+
name,
|
|
3527
|
+
service,
|
|
3528
|
+
xNode
|
|
3529
|
+
}) => {
|
|
3530
|
+
const bodyData = {
|
|
3531
|
+
phone,
|
|
3532
|
+
name
|
|
3533
|
+
};
|
|
3534
|
+
return env?.requests.post(
|
|
3535
|
+
"/emenu/auth/token" /* EMENU_AUTH_TOKEN */,
|
|
3536
|
+
bodyData,
|
|
3537
|
+
{
|
|
3538
|
+
headers: {
|
|
3539
|
+
"Content-Type": "application/json",
|
|
3540
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3541
|
+
}
|
|
3542
|
+
},
|
|
3543
|
+
service
|
|
3544
|
+
);
|
|
3545
|
+
},
|
|
3546
|
+
[env]
|
|
3547
|
+
);
|
|
3494
3548
|
return {
|
|
3495
3549
|
login,
|
|
3496
3550
|
forgotPassword,
|
|
@@ -3503,7 +3557,9 @@ function useAuthService() {
|
|
|
3503
3557
|
loginSocial,
|
|
3504
3558
|
getProviders,
|
|
3505
3559
|
getAccessByCode,
|
|
3506
|
-
logout
|
|
3560
|
+
logout,
|
|
3561
|
+
getTenantMapping,
|
|
3562
|
+
getToken
|
|
3507
3563
|
};
|
|
3508
3564
|
}
|
|
3509
3565
|
|
package/dist/utils.js
CHANGED
|
@@ -2116,10 +2116,6 @@ function evaluate(ast, context = {}) {
|
|
|
2116
2116
|
leftVal = toPyDict(leftVal);
|
|
2117
2117
|
} else if (typeof leftVal === "number") {
|
|
2118
2118
|
result = leftVal;
|
|
2119
|
-
} else if (Array.isArray(leftVal[ast2.key])) {
|
|
2120
|
-
result = leftVal[ast2.key]?.map(
|
|
2121
|
-
(value) => value?.id ?? value
|
|
2122
|
-
);
|
|
2123
2119
|
} else {
|
|
2124
2120
|
result = leftVal[ast2.key]?.id ?? leftVal[ast2.key];
|
|
2125
2121
|
}
|
package/dist/utils.mjs
CHANGED
|
@@ -2050,10 +2050,6 @@ function evaluate(ast, context = {}) {
|
|
|
2050
2050
|
leftVal = toPyDict(leftVal);
|
|
2051
2051
|
} else if (typeof leftVal === "number") {
|
|
2052
2052
|
result = leftVal;
|
|
2053
|
-
} else if (Array.isArray(leftVal[ast2.key])) {
|
|
2054
|
-
result = leftVal[ast2.key]?.map(
|
|
2055
|
-
(value) => value?.id ?? value
|
|
2056
|
-
);
|
|
2057
2053
|
} else {
|
|
2058
2054
|
result = leftVal[ast2.key]?.id ?? leftVal[ast2.key];
|
|
2059
2055
|
}
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "3.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
|
-
"./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.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
|
+
"./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
|
+
}
|