@fctc/interface-logic 4.1.1 → 4.1.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/hooks.d.mts +2 -3
- package/dist/hooks.d.ts +2 -3
- package/dist/hooks.js +6 -6
- package/dist/hooks.mjs +11 -11
- package/dist/provider.js +6 -6
- package/dist/provider.mjs +11 -11
- package/dist/services.mjs +3 -3
- package/package.json +90 -90
package/dist/hooks.d.mts
CHANGED
|
@@ -693,12 +693,11 @@ declare const useCreateEInvoice: () => _tanstack_react_query.UseMutationResult<a
|
|
|
693
693
|
withContext?: any;
|
|
694
694
|
}, unknown>;
|
|
695
695
|
|
|
696
|
-
|
|
696
|
+
declare const useGetCurrentUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
697
697
|
service?: string;
|
|
698
698
|
xNode?: string;
|
|
699
699
|
oauthUid?: string;
|
|
700
|
-
}
|
|
701
|
-
declare const useGetCurrentUser: ({ service, xNode, oauthUid }: TProps) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
700
|
+
}, unknown>;
|
|
702
701
|
|
|
703
702
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
704
703
|
|
package/dist/hooks.d.ts
CHANGED
|
@@ -693,12 +693,11 @@ declare const useCreateEInvoice: () => _tanstack_react_query.UseMutationResult<a
|
|
|
693
693
|
withContext?: any;
|
|
694
694
|
}, unknown>;
|
|
695
695
|
|
|
696
|
-
|
|
696
|
+
declare const useGetCurrentUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
697
697
|
service?: string;
|
|
698
698
|
xNode?: string;
|
|
699
699
|
oauthUid?: string;
|
|
700
|
-
}
|
|
701
|
-
declare const useGetCurrentUser: ({ service, xNode, oauthUid }: TProps) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
700
|
+
}, unknown>;
|
|
702
701
|
|
|
703
702
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
704
703
|
|
package/dist/hooks.js
CHANGED
|
@@ -8186,16 +8186,16 @@ var use_create_e_invoice_default = useCreateEInvoice;
|
|
|
8186
8186
|
|
|
8187
8187
|
// src/hooks/view/use-get-current-user.ts
|
|
8188
8188
|
var import_react_query106 = require("@tanstack/react-query");
|
|
8189
|
-
var useGetCurrentUser = (
|
|
8189
|
+
var useGetCurrentUser = () => {
|
|
8190
8190
|
const { getCurrentUser } = useViewService();
|
|
8191
|
-
return (0, import_react_query106.
|
|
8192
|
-
|
|
8193
|
-
queryFn: () => getCurrentUser({
|
|
8191
|
+
return (0, import_react_query106.useMutation)({
|
|
8192
|
+
mutationFn: ({
|
|
8194
8193
|
service,
|
|
8195
8194
|
xNode,
|
|
8196
8195
|
oauthUid
|
|
8197
|
-
})
|
|
8198
|
-
|
|
8196
|
+
}) => {
|
|
8197
|
+
return getCurrentUser({ service, xNode, oauthUid });
|
|
8198
|
+
}
|
|
8199
8199
|
});
|
|
8200
8200
|
};
|
|
8201
8201
|
var use_get_current_user_default = useGetCurrentUser;
|
package/dist/hooks.mjs
CHANGED
|
@@ -8042,26 +8042,26 @@ var useCreateEInvoice = () => {
|
|
|
8042
8042
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8043
8043
|
|
|
8044
8044
|
// src/hooks/view/use-get-current-user.ts
|
|
8045
|
-
import {
|
|
8046
|
-
var useGetCurrentUser = (
|
|
8045
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8046
|
+
var useGetCurrentUser = () => {
|
|
8047
8047
|
const { getCurrentUser } = useViewService();
|
|
8048
|
-
return
|
|
8049
|
-
|
|
8050
|
-
queryFn: () => getCurrentUser({
|
|
8048
|
+
return useMutation81({
|
|
8049
|
+
mutationFn: ({
|
|
8051
8050
|
service,
|
|
8052
8051
|
xNode,
|
|
8053
8052
|
oauthUid
|
|
8054
|
-
})
|
|
8055
|
-
|
|
8053
|
+
}) => {
|
|
8054
|
+
return getCurrentUser({ service, xNode, oauthUid });
|
|
8055
|
+
}
|
|
8056
8056
|
});
|
|
8057
8057
|
};
|
|
8058
8058
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8059
8059
|
|
|
8060
8060
|
// src/hooks/chart/use-read-group.ts
|
|
8061
|
-
import { useQuery as
|
|
8061
|
+
import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
8062
8062
|
var useReadGroup = (services, xNode, body, enabled) => {
|
|
8063
8063
|
const { readGroup } = useDashboardService();
|
|
8064
|
-
return
|
|
8064
|
+
return useQuery24({
|
|
8065
8065
|
queryKey: [body],
|
|
8066
8066
|
queryFn: () => readGroup({
|
|
8067
8067
|
service: services,
|
|
@@ -8075,10 +8075,10 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8075
8075
|
var use_read_group_default = useReadGroup;
|
|
8076
8076
|
|
|
8077
8077
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8078
|
-
import { useQuery as
|
|
8078
|
+
import { useQuery as useQuery25 } from "@tanstack/react-query";
|
|
8079
8079
|
var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) => {
|
|
8080
8080
|
const { getDataChart } = useDashboardService();
|
|
8081
|
-
return
|
|
8081
|
+
return useQuery25({
|
|
8082
8082
|
queryKey: [queryKey],
|
|
8083
8083
|
queryFn: () => getDataChart({
|
|
8084
8084
|
service: services,
|
package/dist/provider.js
CHANGED
|
@@ -8662,16 +8662,16 @@ var use_create_e_invoice_default = useCreateEInvoice;
|
|
|
8662
8662
|
|
|
8663
8663
|
// src/hooks/view/use-get-current-user.ts
|
|
8664
8664
|
var import_react_query106 = require("@tanstack/react-query");
|
|
8665
|
-
var useGetCurrentUser = (
|
|
8665
|
+
var useGetCurrentUser = () => {
|
|
8666
8666
|
const { getCurrentUser } = useViewService();
|
|
8667
|
-
return (0, import_react_query106.
|
|
8668
|
-
|
|
8669
|
-
queryFn: () => getCurrentUser({
|
|
8667
|
+
return (0, import_react_query106.useMutation)({
|
|
8668
|
+
mutationFn: ({
|
|
8670
8669
|
service,
|
|
8671
8670
|
xNode,
|
|
8672
8671
|
oauthUid
|
|
8673
|
-
})
|
|
8674
|
-
|
|
8672
|
+
}) => {
|
|
8673
|
+
return getCurrentUser({ service, xNode, oauthUid });
|
|
8674
|
+
}
|
|
8675
8675
|
});
|
|
8676
8676
|
};
|
|
8677
8677
|
var use_get_current_user_default = useGetCurrentUser;
|
package/dist/provider.mjs
CHANGED
|
@@ -8618,26 +8618,26 @@ var useCreateEInvoice = () => {
|
|
|
8618
8618
|
var use_create_e_invoice_default = useCreateEInvoice;
|
|
8619
8619
|
|
|
8620
8620
|
// src/hooks/view/use-get-current-user.ts
|
|
8621
|
-
import {
|
|
8622
|
-
var useGetCurrentUser = (
|
|
8621
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
8622
|
+
var useGetCurrentUser = () => {
|
|
8623
8623
|
const { getCurrentUser } = useViewService();
|
|
8624
|
-
return
|
|
8625
|
-
|
|
8626
|
-
queryFn: () => getCurrentUser({
|
|
8624
|
+
return useMutation81({
|
|
8625
|
+
mutationFn: ({
|
|
8627
8626
|
service,
|
|
8628
8627
|
xNode,
|
|
8629
8628
|
oauthUid
|
|
8630
|
-
})
|
|
8631
|
-
|
|
8629
|
+
}) => {
|
|
8630
|
+
return getCurrentUser({ service, xNode, oauthUid });
|
|
8631
|
+
}
|
|
8632
8632
|
});
|
|
8633
8633
|
};
|
|
8634
8634
|
var use_get_current_user_default = useGetCurrentUser;
|
|
8635
8635
|
|
|
8636
8636
|
// src/hooks/chart/use-read-group.ts
|
|
8637
|
-
import { useQuery as
|
|
8637
|
+
import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
8638
8638
|
var useReadGroup = (services, xNode, body, enabled) => {
|
|
8639
8639
|
const { readGroup } = useDashboardService();
|
|
8640
|
-
return
|
|
8640
|
+
return useQuery24({
|
|
8641
8641
|
queryKey: [body],
|
|
8642
8642
|
queryFn: () => readGroup({
|
|
8643
8643
|
service: services,
|
|
@@ -8651,10 +8651,10 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8651
8651
|
var use_read_group_default = useReadGroup;
|
|
8652
8652
|
|
|
8653
8653
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8654
|
-
import { useQuery as
|
|
8654
|
+
import { useQuery as useQuery25 } from "@tanstack/react-query";
|
|
8655
8655
|
var useGetDataChart = (services, xNode, body, enabled, path, method, queryKey) => {
|
|
8656
8656
|
const { getDataChart } = useDashboardService();
|
|
8657
|
-
return
|
|
8657
|
+
return useQuery25({
|
|
8658
8658
|
queryKey: [queryKey],
|
|
8659
8659
|
queryFn: () => getDataChart({
|
|
8660
8660
|
service: services,
|
package/dist/services.mjs
CHANGED
|
@@ -3151,13 +3151,13 @@ import { useMutation as useMutation79 } from "@tanstack/react-query";
|
|
|
3151
3151
|
import { useMutation as useMutation80 } from "@tanstack/react-query";
|
|
3152
3152
|
|
|
3153
3153
|
// src/hooks/view/use-get-current-user.ts
|
|
3154
|
-
import {
|
|
3154
|
+
import { useMutation as useMutation81 } from "@tanstack/react-query";
|
|
3155
3155
|
|
|
3156
3156
|
// src/hooks/chart/use-read-group.ts
|
|
3157
|
-
import { useQuery as
|
|
3157
|
+
import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
3158
3158
|
|
|
3159
3159
|
// src/hooks/chart/use-get-data-chart.ts
|
|
3160
|
-
import { useQuery as
|
|
3160
|
+
import { useQuery as useQuery25 } from "@tanstack/react-query";
|
|
3161
3161
|
|
|
3162
3162
|
// src/provider/service-provider.tsx
|
|
3163
3163
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "4.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
|
-
"./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": "4.1.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
|
+
}
|