@omniumretail/shared-resources 0.1.79 → 0.1.80
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/bundle.js +1 -1
- package/package.json +1 -1
- package/src/hooks/Asta/Answer/mutate/useAstaAnswersMutateQuery.hook.ts +1 -1
- package/src/hooks/Asta/Inspection/mutate/useInspectionMutateQuery.hook.ts +2 -2
- package/src/hooks/Asta/Inspection/others/finishInspectionQuery.hook.ts +1 -1
- package/src/hooks/Asta/Template/mutate/useTemplateMutateQuery.hook.ts +1 -1
- package/src/hooks/Asta/Template/others/finishTemplateQuery.hook.ts +1 -1
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export const useAstaAnswersMutateHook = (inspectionId: string) => {
|
|
|
8
8
|
return data.Id ?
|
|
9
9
|
putAuth0(`/ASTA/Answers/${data.Id}`, undefined, data)
|
|
10
10
|
|
|
11
|
-
: postAuth0(`/ASTA/Answers
|
|
11
|
+
: postAuth0(`/ASTA/Answers?`, {
|
|
12
12
|
pInspectionId: inspectionId
|
|
13
13
|
}, data);
|
|
14
14
|
}, {
|
|
@@ -6,11 +6,11 @@ export const useInspectionMutateHook = (templateId: string) => {
|
|
|
6
6
|
const queryClient = useQueryClient();
|
|
7
7
|
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
8
|
return data.Id ?
|
|
9
|
-
putAuth0(`/ASTA/Inspection/FileInspection
|
|
9
|
+
putAuth0(`/ASTA/Inspection/FileInspection?`, {
|
|
10
10
|
pId: data.Id
|
|
11
11
|
}, data) :
|
|
12
12
|
|
|
13
|
-
postAuth0(`/ASTA/Inspection
|
|
13
|
+
postAuth0(`/ASTA/Inspection?`, {
|
|
14
14
|
pId: templateId
|
|
15
15
|
} , data);
|
|
16
16
|
}, {
|
|
@@ -5,7 +5,7 @@ import { putAuth0 } from '../../../../services/ApiService';
|
|
|
5
5
|
export const finishInspectionQueryHook = () => {
|
|
6
6
|
const queryClient = useQueryClient();
|
|
7
7
|
return useMutation<Inspection, unknown, Inspection>((data: Inspection) => {
|
|
8
|
-
return putAuth0(`/ASTA/Inspection/FinishInspection
|
|
8
|
+
return putAuth0(`/ASTA/Inspection/FinishInspection?`, {
|
|
9
9
|
pId: data.Id
|
|
10
10
|
}, data)
|
|
11
11
|
}, {
|
|
@@ -6,7 +6,7 @@ export const useTemplateMutateHook = () => {
|
|
|
6
6
|
const queryClient = useQueryClient();
|
|
7
7
|
return useMutation<Template, unknown, Template>((data: Template) => {
|
|
8
8
|
return data.Id ?
|
|
9
|
-
putAuth0(`/ASTA/Template/FileTemplate
|
|
9
|
+
putAuth0(`/ASTA/Template/FileTemplate?`, {
|
|
10
10
|
pId: data.Id
|
|
11
11
|
}, data)
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@ import { putAuth0 } from '../../../../services/ApiService';
|
|
|
5
5
|
export const finishTemplateQueryHook = () => {
|
|
6
6
|
const queryClient = useQueryClient();
|
|
7
7
|
return useMutation<Template, unknown, Template>((data: Template) => {
|
|
8
|
-
return putAuth0(`/ASTA/Template/FinishTemplate
|
|
8
|
+
return putAuth0(`/ASTA/Template/FinishTemplate?`, {
|
|
9
9
|
pId: data.Id
|
|
10
10
|
}, data);
|
|
11
11
|
}, {
|