|
|
@ -103,22 +103,32 @@ export const offersRouter = createRouter().query('list', {
|
|
|
|
monthYearReceived: order,
|
|
|
|
monthYearReceived: order,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
: sortingKey === sortingKeysMap.totalCompensation
|
|
|
|
: sortingKey === sortingKeysMap.totalCompensation
|
|
|
|
? {
|
|
|
|
? [
|
|
|
|
|
|
|
|
{
|
|
|
|
offersIntern: {
|
|
|
|
offersIntern: {
|
|
|
|
monthlySalary: {
|
|
|
|
monthlySalary: {
|
|
|
|
baseValue: order,
|
|
|
|
baseValue: order,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
monthYearReceived: 'desc',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
: sortingKey === sortingKeysMap.totalYoe
|
|
|
|
: sortingKey === sortingKeysMap.totalYoe
|
|
|
|
? {
|
|
|
|
? [
|
|
|
|
|
|
|
|
{
|
|
|
|
profile: {
|
|
|
|
profile: {
|
|
|
|
background: {
|
|
|
|
background: {
|
|
|
|
totalYoe: order,
|
|
|
|
totalYoe: order,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
: undefined,
|
|
|
|
{
|
|
|
|
|
|
|
|
monthYearReceived: 'desc',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
: { monthYearReceived: 'desc' },
|
|
|
|
where: {
|
|
|
|
where: {
|
|
|
|
AND: [
|
|
|
|
AND: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -207,22 +217,32 @@ export const offersRouter = createRouter().query('list', {
|
|
|
|
monthYearReceived: order,
|
|
|
|
monthYearReceived: order,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
: sortingKey === sortingKeysMap.totalCompensation
|
|
|
|
: sortingKey === sortingKeysMap.totalCompensation
|
|
|
|
? {
|
|
|
|
? [
|
|
|
|
offersFullTime: {
|
|
|
|
{
|
|
|
|
totalCompensation: {
|
|
|
|
offersIntern: {
|
|
|
|
|
|
|
|
monthlySalary: {
|
|
|
|
baseValue: order,
|
|
|
|
baseValue: order,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
monthYearReceived: 'desc',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
: sortingKey === sortingKeysMap.totalYoe
|
|
|
|
: sortingKey === sortingKeysMap.totalYoe
|
|
|
|
? {
|
|
|
|
? [
|
|
|
|
|
|
|
|
{
|
|
|
|
profile: {
|
|
|
|
profile: {
|
|
|
|
background: {
|
|
|
|
background: {
|
|
|
|
totalYoe: order,
|
|
|
|
totalYoe: order,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
: undefined,
|
|
|
|
{
|
|
|
|
|
|
|
|
monthYearReceived: 'desc',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
: { monthYearReceived: 'desc' },
|
|
|
|
where: {
|
|
|
|
where: {
|
|
|
|
AND: [
|
|
|
|
AND: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|