Skip to content

Commit

Permalink
fix(fe-piattaforma): updates 20240125 fe
Browse files Browse the repository at this point in the history
  • Loading branch information
a-buono committed Jan 25, 2024
1 parent 642842f commit 7462f01
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const GetFilterValuesEnti =
idProgramma,
idEnte,
};
const entityFilterEndpoint = `${process?.env?.ENTE}/ente/${dropdownType}/dropdown`;
const entityFilterEndpoint = `${process?.env?.ENTE}ente/${dropdownType}/dropdown`;
const res = await API.post(entityFilterEndpoint, body);
if (res?.data) {
dispatch(
Expand Down Expand Up @@ -169,9 +169,9 @@ export const GetAuthorityDetail =

let res;
if (light) {
res = await API.get(`${process?.env?.ENTE}/ente/light/${authorityId}`);
res = await API.get(`${process?.env?.ENTE}ente/light/${authorityId}`);
} else {
res = await API.post(`${process?.env?.ENTE}/ente/${authorityId}`, {
res = await API.post(`${process?.env?.ENTE}ente/${authorityId}`, {
idProgramma,
idProgetto,
idEnte,
Expand Down Expand Up @@ -264,7 +264,7 @@ export const GetAuthoritiesBySearch =
dispatch(showLoader());
dispatch({ ...GetAuthoritiesBySearchAction });

const res = await API.get(`${process?.env?.ENTE}/ente/cerca?criterioRicerca=${search}`);
const res = await API.get(`${process?.env?.ENTE}ente/cerca?criterioRicerca=${search}`);

if (search && res.data) {
dispatch(setAuthoritiesList(res.data));
Expand Down Expand Up @@ -294,7 +294,7 @@ export const CreateManagerAuthority =
);

if (body) {
const res = await API.post(`${process?.env?.ENTE}/ente`, {
const res = await API.post(`${process?.env?.ENTE}ente`, {
...body,
});
if (res) {
Expand Down Expand Up @@ -340,7 +340,7 @@ export const UpdateManagerAuthority =
let res;
if (enteGestoreId) {
res = await API.put(
`${process?.env?.ENTE}/ente/${enteGestoreId}/${
`${process?.env?.ENTE}ente/${enteGestoreId}/${
entity === 'programma' ? 'gestoreProgramma' : 'gestoreProgetto'
}/${entityId}`,
{
Expand All @@ -354,7 +354,7 @@ export const UpdateManagerAuthority =
return res;
} else {
res = await API.put(
`${process?.env?.ENTE}/ente/${authorityDetail.id}/${
`${process?.env?.ENTE}ente/${authorityDetail.id}/${
entity === 'programma' ? 'gestoreProgramma' : 'gestoreProgetto'
}/${entityId}`,
{
Expand Down Expand Up @@ -400,7 +400,7 @@ export const RemoveManagerAuthority =
if (authorityId && entityId) {
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
await API.delete(
`${process?.env?.ENTE}/ente/${authorityId}/cancellagestore${entity}/${entityId}`,
`${process?.env?.ENTE}ente/${authorityId}/cancellagestore${entity}/${entityId}`,
{
data: { idProgramma, idProgetto, idEnte },
}
Expand Down Expand Up @@ -428,7 +428,7 @@ export const GetPartnerAuthorityDetail =
idEnte,
};
const res = await API.post(
`${process?.env?.ENTE}/ente/partner/${projectId}/${authorityId}`,
`${process?.env?.ENTE}ente/partner/${projectId}/${authorityId}`,
body
);

Expand Down Expand Up @@ -470,7 +470,7 @@ export const CreatePartnerAuthority =
if (res) {
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
res = await API.put(
`${process?.env?.ENTE}/ente/partner/associa/${res.data.id}/progetto/${entityId}`,
`${process?.env?.ENTE}ente/partner/associa/${res.data.id}/progetto/${entityId}`,
{ idProgramma, idProgetto, idEnte }
);
}
Expand All @@ -489,14 +489,14 @@ export const UpdatePartnerAuthority =
dispatch({ ...UpdateAuthorityAction });
if (authorityDetail) {
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
await API.put(`${process?.env?.ENTE}/ente/${authorityDetail.id}`, {
await API.put(`${process?.env?.ENTE}ente/${authorityDetail.id}`, {
...authorityDetail,
idProgramma,
idProgetto,
idEnte,
});
await API.put(
`${process?.env?.ENTE}/ente/partner/associa/${authorityDetail.id}/progetto/${entityId}`,
`${process?.env?.ENTE}ente/partner/associa/${authorityDetail.id}/progetto/${entityId}`,
{ idProgramma, idProgetto, idEnte }
);
}
Expand All @@ -516,7 +516,7 @@ export const RemovePartnerAuthority =
if (authorityId && entityId) {
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
await API.delete(
`${process?.env?.ENTE}/ente/${authorityId}/cancellaentepartner/${entityId}`,
`${process?.env?.ENTE}ente/${authorityId}/cancellaentepartner/${entityId}`,
{
data: { idProgramma, idProgetto, idEnte },
}
Expand All @@ -537,7 +537,7 @@ export const TerminatePartnerAuthority =

if (authorityId && entityId) {
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
await API.put(`${process?.env?.ENTE}/ente/${authorityId}/terminaentepartner/${entityId}`, {
await API.put(`${process?.env?.ENTE}ente/${authorityId}/terminaentepartner/${entityId}`, {
idProgramma,
idProgetto,
idEnte,
Expand Down Expand Up @@ -653,7 +653,7 @@ export const AssignPartnerAuthorityReferentDelegate =
dispatch(showLoader());
dispatch({ ...AssignReferentDelegateAction });
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
const endpoint = '${process?.env?.ENTE}/ente/associa/referenteDelegato/partner';
const endpoint = `${process?.env?.ENTE}ente/associa/referenteDelegato/partner`;
if (userDetail?.id) {
userDetail.codiceFiscale &&
needToUpdate &&
Expand Down Expand Up @@ -731,7 +731,7 @@ export const RemoveReferentDelegate =
case 'DEPP':
case 'REPP':
await API.post(
`${process?.env?.ENTE}/ente/cancellaOTerminaAssociazione/referenteDelegato/partner`,
`${process?.env?.ENTE}ente/cancellaOTerminaAssociazione/referenteDelegato/partner`,
{
idProgramma,
idProgetto,
Expand All @@ -747,7 +747,7 @@ export const RemoveReferentDelegate =
case 'DEG':
case 'REG':
await API.post(
`${process?.env?.ENTE}/ente/cancellaOTerminaAssociazione/referenteDelegato/gestoreProgramma`,
`${process?.env?.ENTE}ente/cancellaOTerminaAssociazione/referenteDelegato/gestoreProgramma`,
{
idProgramma,
idProgetto,
Expand All @@ -763,7 +763,7 @@ export const RemoveReferentDelegate =
case 'DEGP':
case 'REGP':
await API.post(
`${process?.env?.ENTE}/ente/cancellaOTerminaAssociazione/referenteDelegato/gestoreProgetto`,
`${process?.env?.ENTE}ente/cancellaOTerminaAssociazione/referenteDelegato/gestoreProgetto`,
{
idProgramma,
idProgetto,
Expand Down Expand Up @@ -797,7 +797,7 @@ export const UpdateAuthorityDetails =
dispatch(showLoader());
dispatch({ ...UpdateAuthorityDetailsAction });
const { idProgramma, idProgetto, idEnte } = getUserHeaders();
await API.put(`${process?.env?.ENTE}/ente/${authorityId}`, {
await API.put(`${process?.env?.ENTE}ente/${authorityId}`, {
...payload,
idProgramma,
idProgetto,
Expand Down

0 comments on commit 7462f01

Please sign in to comment.