|
|
@ -168,6 +168,7 @@ export const offersProfileRouter = createRouter()
|
|
|
|
include: {
|
|
|
|
include: {
|
|
|
|
companyAnalysis: {
|
|
|
|
companyAnalysis: {
|
|
|
|
include: {
|
|
|
|
include: {
|
|
|
|
|
|
|
|
company: true,
|
|
|
|
topSimilarOffers: {
|
|
|
|
topSimilarOffers: {
|
|
|
|
include: {
|
|
|
|
include: {
|
|
|
|
company: true,
|
|
|
|
company: true,
|
|
|
@ -218,6 +219,7 @@ export const offersProfileRouter = createRouter()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
overallAnalysis: {
|
|
|
|
overallAnalysis: {
|
|
|
|
include: {
|
|
|
|
include: {
|
|
|
|
|
|
|
|
company: true,
|
|
|
|
topSimilarOffers: {
|
|
|
|
topSimilarOffers: {
|
|
|
|
include: {
|
|
|
|
include: {
|
|
|
|
company: true,
|
|
|
|
company: true,
|
|
|
@ -425,8 +427,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
level: x.level,
|
|
|
|
level: x.level,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: x.cityId
|
|
|
|
id: x.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: x.title,
|
|
|
|
title: x.title,
|
|
|
|
totalCompensation:
|
|
|
|
totalCompensation:
|
|
|
@ -481,9 +483,9 @@ export const offersProfileRouter = createRouter()
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
where: {
|
|
|
|
where: {
|
|
|
|
id: x.cityId
|
|
|
|
id: x.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: x.title,
|
|
|
|
title: x.title,
|
|
|
|
totalCompensation:
|
|
|
|
totalCompensation:
|
|
|
@ -539,9 +541,9 @@ export const offersProfileRouter = createRouter()
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
where: {
|
|
|
|
where: {
|
|
|
|
id: x.cityId
|
|
|
|
id: x.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthlySalary:
|
|
|
|
monthlySalary:
|
|
|
|
x.monthlySalary != null
|
|
|
|
x.monthlySalary != null
|
|
|
@ -595,9 +597,9 @@ export const offersProfileRouter = createRouter()
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
where: {
|
|
|
|
where: {
|
|
|
|
id: x.cityId
|
|
|
|
id: x.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthlySalary:
|
|
|
|
monthlySalary:
|
|
|
|
x.monthlySalary != null
|
|
|
|
x.monthlySalary != null
|
|
|
@ -680,8 +682,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: x.jobType,
|
|
|
|
jobType: x.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: x.cityId
|
|
|
|
id: x.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthYearReceived: x.monthYearReceived,
|
|
|
|
monthYearReceived: x.monthYearReceived,
|
|
|
|
negotiationStrategy: x.negotiationStrategy,
|
|
|
|
negotiationStrategy: x.negotiationStrategy,
|
|
|
@ -724,8 +726,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: x.jobType,
|
|
|
|
jobType: x.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: x.cityId
|
|
|
|
id: x.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthYearReceived: x.monthYearReceived,
|
|
|
|
monthYearReceived: x.monthYearReceived,
|
|
|
|
negotiationStrategy: x.negotiationStrategy,
|
|
|
|
negotiationStrategy: x.negotiationStrategy,
|
|
|
@ -1074,8 +1076,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
level: exp.level,
|
|
|
|
level: exp.level,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: exp.title,
|
|
|
|
title: exp.title,
|
|
|
|
totalCompensation: exp.totalCompensation
|
|
|
|
totalCompensation: exp.totalCompensation
|
|
|
@ -1145,8 +1147,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
level: exp.level,
|
|
|
|
level: exp.level,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: exp.title,
|
|
|
|
title: exp.title,
|
|
|
|
totalCompensation: {
|
|
|
|
totalCompensation: {
|
|
|
@ -1213,8 +1215,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
level: exp.level,
|
|
|
|
level: exp.level,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: exp.title,
|
|
|
|
title: exp.title,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1256,8 +1258,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
level: exp.level,
|
|
|
|
level: exp.level,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: exp.title,
|
|
|
|
title: exp.title,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1305,8 +1307,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: exp.jobType,
|
|
|
|
jobType: exp.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthlySalary: {
|
|
|
|
monthlySalary: {
|
|
|
|
create: {
|
|
|
|
create: {
|
|
|
@ -1370,8 +1372,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: exp.jobType,
|
|
|
|
jobType: exp.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthlySalary: {
|
|
|
|
monthlySalary: {
|
|
|
|
create: {
|
|
|
|
create: {
|
|
|
@ -1437,7 +1439,7 @@ export const offersProfileRouter = createRouter()
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId,
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: exp.title,
|
|
|
|
title: exp.title,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1477,8 +1479,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: exp.jobType,
|
|
|
|
jobType: exp.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: exp.cityId
|
|
|
|
id: exp.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: exp.title,
|
|
|
|
title: exp.title,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1584,8 +1586,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
comments: offerToUpdate.comments,
|
|
|
|
comments: offerToUpdate.comments,
|
|
|
|
company: {
|
|
|
|
company: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: offerToUpdate.companyId
|
|
|
|
id: offerToUpdate.companyId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
jobType:
|
|
|
|
jobType:
|
|
|
|
offerToUpdate.jobType === JobType.FULLTIME
|
|
|
|
offerToUpdate.jobType === JobType.FULLTIME
|
|
|
@ -1593,8 +1595,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
: JobType.INTERN,
|
|
|
|
: JobType.INTERN,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: offerToUpdate.cityId
|
|
|
|
id: offerToUpdate.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthYearReceived: offerToUpdate.monthYearReceived,
|
|
|
|
monthYearReceived: offerToUpdate.monthYearReceived,
|
|
|
|
negotiationStrategy: offerToUpdate.negotiationStrategy,
|
|
|
|
negotiationStrategy: offerToUpdate.negotiationStrategy,
|
|
|
@ -1820,8 +1822,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: offerToUpdate.jobType,
|
|
|
|
jobType: offerToUpdate.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: offerToUpdate.cityId
|
|
|
|
id: offerToUpdate.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthYearReceived: offerToUpdate.monthYearReceived,
|
|
|
|
monthYearReceived: offerToUpdate.monthYearReceived,
|
|
|
|
negotiationStrategy: offerToUpdate.negotiationStrategy,
|
|
|
|
negotiationStrategy: offerToUpdate.negotiationStrategy,
|
|
|
@ -1878,8 +1880,8 @@ export const offersProfileRouter = createRouter()
|
|
|
|
jobType: offerToUpdate.jobType,
|
|
|
|
jobType: offerToUpdate.jobType,
|
|
|
|
location: {
|
|
|
|
location: {
|
|
|
|
connect: {
|
|
|
|
connect: {
|
|
|
|
id: offerToUpdate.cityId
|
|
|
|
id: offerToUpdate.cityId,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monthYearReceived: offerToUpdate.monthYearReceived,
|
|
|
|
monthYearReceived: offerToUpdate.monthYearReceived,
|
|
|
|
negotiationStrategy: offerToUpdate.negotiationStrategy,
|
|
|
|
negotiationStrategy: offerToUpdate.negotiationStrategy,
|
|
|
|