|
|
@ -87,6 +87,7 @@ const analysisOfferDtoMapper = (
|
|
|
|
background?.experiences
|
|
|
|
background?.experiences
|
|
|
|
?.filter((exp) => exp.company != null)
|
|
|
|
?.filter((exp) => exp.company != null)
|
|
|
|
.map((exp) => exp.company?.name ?? '') ?? [],
|
|
|
|
.map((exp) => exp.company?.name ?? '') ?? [],
|
|
|
|
|
|
|
|
profileId: offer.profileId,
|
|
|
|
profileName,
|
|
|
|
profileName,
|
|
|
|
title:
|
|
|
|
title:
|
|
|
|
offer.jobType === JobType.FULLTIME
|
|
|
|
offer.jobType === JobType.FULLTIME
|
|
|
@ -708,20 +709,17 @@ export const dashboardOfferDtoMapper = (
|
|
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.baseSalary) {
|
|
|
|
if (offer.offersFullTime.baseSalary) {
|
|
|
|
dashboardOfferDto.baseSalary = valuationDtoMapper(
|
|
|
|
dashboardOfferDto.baseSalary = valuationDtoMapper(
|
|
|
|
offer.offersFullTime.baseSalary
|
|
|
|
offer.offersFullTime.baseSalary,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.bonus) {
|
|
|
|
if (offer.offersFullTime.bonus) {
|
|
|
|
dashboardOfferDto.bonus = valuationDtoMapper(
|
|
|
|
dashboardOfferDto.bonus = valuationDtoMapper(offer.offersFullTime.bonus);
|
|
|
|
offer.offersFullTime.bonus
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.stocks) {
|
|
|
|
if (offer.offersFullTime.stocks) {
|
|
|
|
dashboardOfferDto.stocks = valuationDtoMapper(
|
|
|
|
dashboardOfferDto.stocks = valuationDtoMapper(
|
|
|
|
offer.offersFullTime.stocks
|
|
|
|
offer.offersFullTime.stocks,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (offer.offersIntern) {
|
|
|
|
} else if (offer.offersIntern) {
|
|
|
@ -736,12 +734,12 @@ export const dashboardOfferDtoMapper = (
|
|
|
|
export const getOffersResponseMapper = (
|
|
|
|
export const getOffersResponseMapper = (
|
|
|
|
data: Array<DashboardOffer>,
|
|
|
|
data: Array<DashboardOffer>,
|
|
|
|
paging: Paging,
|
|
|
|
paging: Paging,
|
|
|
|
jobType: JobType
|
|
|
|
jobType: JobType,
|
|
|
|
) => {
|
|
|
|
) => {
|
|
|
|
const getOffersResponse: GetOffersResponse = {
|
|
|
|
const getOffersResponse: GetOffersResponse = {
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
jobType,
|
|
|
|
jobType,
|
|
|
|
paging
|
|
|
|
paging,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return getOffersResponse;
|
|
|
|
return getOffersResponse;
|
|
|
|
};
|
|
|
|
};
|
|
|
|