@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -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
  }, {