@truedat/qx 6.3.1 → 6.3.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/package.json +4 -4
- package/src/api.js +2 -5
- package/src/hooks/useExecutionGroups.js +4 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/qx",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "Truedat Web Quality Experience package",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/react-hooks": "^8.0.1",
|
|
37
37
|
"@testing-library/user-event": "^13.2.1",
|
|
38
|
-
"@truedat/test": "6.2
|
|
38
|
+
"@truedat/test": "6.3.2",
|
|
39
39
|
"babel-jest": "^28.1.0",
|
|
40
40
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
41
41
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@truedat/core": "6.3.
|
|
87
|
+
"@truedat/core": "6.3.2",
|
|
88
88
|
"prop-types": "^15.8.1",
|
|
89
89
|
"react-hook-form": "^7.45.4",
|
|
90
90
|
"react-intl": "^5.20.10",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"react-dom": ">= 16.8.6 < 17",
|
|
98
98
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "b9ccce69ebb729f62d28972e31b2865d74e9a0d6"
|
|
101
101
|
}
|
package/src/api.js
CHANGED
|
@@ -11,9 +11,7 @@ const API_QUALITY_CONTROL_STATUS = "/api/quality_controls/:id/status";
|
|
|
11
11
|
const API_QUALITY_CONTROL_DOMAINS = "/api/quality_controls/:id/domains";
|
|
12
12
|
const API_QUALITY_CONTROL_SEARCH = "/api/quality_controls/search";
|
|
13
13
|
const API_QUALITY_CONTROL_FILTERS = "/api/quality_controls/filters";
|
|
14
|
-
const
|
|
15
|
-
"/api/quality_controls/execution_groups/create";
|
|
16
|
-
const API_QUALITY_CONTROL_EXECUTION_GROUPS_INDEX =
|
|
14
|
+
const API_QUALITY_CONTROL_EXECUTION_GROUPS =
|
|
17
15
|
"/api/quality_controls/execution_groups";
|
|
18
16
|
const API_QUALITY_CONTROL_EXECUTION_GROUP =
|
|
19
17
|
"/api/quality_controls/execution_groups/:id";
|
|
@@ -32,7 +30,6 @@ export {
|
|
|
32
30
|
API_QUALITY_CONTROL_DOMAINS,
|
|
33
31
|
API_QUALITY_CONTROL_SEARCH,
|
|
34
32
|
API_QUALITY_CONTROL_FILTERS,
|
|
35
|
-
|
|
36
|
-
API_QUALITY_CONTROL_EXECUTION_GROUPS_INDEX,
|
|
33
|
+
API_QUALITY_CONTROL_EXECUTION_GROUPS,
|
|
37
34
|
API_QUALITY_CONTROL_EXECUTION_GROUP,
|
|
38
35
|
};
|
|
@@ -3,21 +3,19 @@ import useSWR from "swr";
|
|
|
3
3
|
import useSWRMutations from "swr/mutation";
|
|
4
4
|
import { apiJson, apiJsonPost } from "@truedat/core/services/api";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
API_QUALITY_CONTROL_EXECUTION_GROUPS_INDEX,
|
|
6
|
+
API_QUALITY_CONTROL_EXECUTION_GROUPS,
|
|
8
7
|
API_QUALITY_CONTROL_EXECUTION_GROUP,
|
|
9
8
|
} from "../api";
|
|
10
9
|
|
|
11
10
|
export const useExecutionGroupsCreate = () => {
|
|
12
|
-
return useSWRMutations(
|
|
13
|
-
|
|
14
|
-
(url, { arg }) => apiJsonPost(url, arg)
|
|
11
|
+
return useSWRMutations(API_QUALITY_CONTROL_EXECUTION_GROUPS, (url, { arg }) =>
|
|
12
|
+
apiJsonPost(url, arg)
|
|
15
13
|
);
|
|
16
14
|
};
|
|
17
15
|
|
|
18
16
|
export const useExecutionGroupsIndex = () => {
|
|
19
17
|
const { data, error, mutate } = useSWR(
|
|
20
|
-
|
|
18
|
+
API_QUALITY_CONTROL_EXECUTION_GROUPS,
|
|
21
19
|
apiJson
|
|
22
20
|
);
|
|
23
21
|
return { data: data?.data?.data, error, loading: !error && !data, mutate };
|