test(actions): phase 6 add parity and behavioural service hardening checks

This commit is contained in:
2026-03-13 10:11:33 +00:00
parent a35f2990c6
commit b5ae6c271f
9 changed files with 461 additions and 178 deletions
+5 -40
View File
@@ -1,53 +1,27 @@
import axios from "axios";
import { BASE_URL } from "../core/env";
import { consoleLogger } from "../core/logger";
import { logAndReturnEmptyValueErrorResponse } from "./httpServiceUtils";
export const getAppealsTypes = () => {
return axios
.get(BASE_URL + "/api/endpoint/getappealtypes_api")
.then((res) => res.data)
.catch((error) => {
consoleLogger(error);
let ErrResponse = {
value: [],
errorCode: error.response.status,
errorMsg: error.response.statusText
};
return ErrResponse;
});
.catch(logAndReturnEmptyValueErrorResponse);
};
export const getProjectTypes = () => {
return axios
.get(BASE_URL + "/api/endpoint/getprojecttypes_api")
.then((res) => res.data)
.catch((error) => {
consoleLogger(error);
let ErrResponse = {
value: [],
errorCode: error.response.status,
errorMsg: error.response.statusText
};
return ErrResponse;
});
.catch(logAndReturnEmptyValueErrorResponse);
};
export const getAppealsTypesForNewAppeal = () => {
return axios
.get(BASE_URL + "/api/endpoint/getappealtypesfornewappeal_api")
.then((res) => res.data)
.catch((error) => {
consoleLogger(error);
let ErrResponse = {
value: [],
errorCode: error.response.status,
errorMsg: error.response.statusText
};
return ErrResponse;
});
.catch(logAndReturnEmptyValueErrorResponse);
};
export const getLPA = () => {
@@ -56,16 +30,7 @@ export const getLPA = () => {
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
let ErrResponse = {
value: [],
errorCode: error.response.status,
errorMsg: error.response.statusText
};
return ErrResponse;
});
.catch(logAndReturnEmptyValueErrorResponse);
};
export const getFormData = (whichForm) => {