|
|
@ -700,6 +700,25 @@ export const dashboardOfferDtoMapper = (
|
|
|
|
dashboardOfferDto.income = valuationDtoMapper(
|
|
|
|
dashboardOfferDto.income = valuationDtoMapper(
|
|
|
|
offer.offersFullTime.totalCompensation,
|
|
|
|
offer.offersFullTime.totalCompensation,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.baseSalary) {
|
|
|
|
|
|
|
|
dashboardOfferDto.baseSalary = valuationDtoMapper(
|
|
|
|
|
|
|
|
offer.offersFullTime.baseSalary
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.bonus) {
|
|
|
|
|
|
|
|
dashboardOfferDto.bonus = valuationDtoMapper(
|
|
|
|
|
|
|
|
offer.offersFullTime.bonus
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.stocks) {
|
|
|
|
|
|
|
|
dashboardOfferDto.stocks = valuationDtoMapper(
|
|
|
|
|
|
|
|
offer.offersFullTime.stocks
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
} else if (offer.offersIntern) {
|
|
|
|
} else if (offer.offersIntern) {
|
|
|
|
dashboardOfferDto.income = valuationDtoMapper(
|
|
|
|
dashboardOfferDto.income = valuationDtoMapper(
|
|
|
|
offer.offersIntern.monthlySalary,
|
|
|
|
offer.offersIntern.monthlySalary,
|
|
|
@ -712,10 +731,12 @@ export const dashboardOfferDtoMapper = (
|
|
|
|
export const getOffersResponseMapper = (
|
|
|
|
export const getOffersResponseMapper = (
|
|
|
|
data: Array<DashboardOffer>,
|
|
|
|
data: Array<DashboardOffer>,
|
|
|
|
paging: Paging,
|
|
|
|
paging: Paging,
|
|
|
|
|
|
|
|
jobType: JobType
|
|
|
|
) => {
|
|
|
|
) => {
|
|
|
|
const getOffersResponse: GetOffersResponse = {
|
|
|
|
const getOffersResponse: GetOffersResponse = {
|
|
|
|
data,
|
|
|
|
data,
|
|
|
|
paging,
|
|
|
|
jobType,
|
|
|
|
|
|
|
|
paging
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return getOffersResponse;
|
|
|
|
return getOffersResponse;
|
|
|
|
};
|
|
|
|
};
|
|
|
|