mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 21:23:14 +08:00
[offers][chore] Make totalYoe compulsory in create offer profile API
This commit is contained in:
@ -38,7 +38,7 @@ function Test() {
|
|||||||
],
|
],
|
||||||
experiences: [
|
experiences: [
|
||||||
{
|
{
|
||||||
companyId: 'cl93patjt0003txewyiaky7xx',
|
companyId: 'cl93patjt0004txew88wkcqpu',
|
||||||
durationInMonths: 24,
|
durationInMonths: 24,
|
||||||
jobType: 'FULLTIME',
|
jobType: 'FULLTIME',
|
||||||
level: 'Junior',
|
level: 'Junior',
|
||||||
@ -66,7 +66,7 @@ function Test() {
|
|||||||
offers: [
|
offers: [
|
||||||
{
|
{
|
||||||
// Comments: '',
|
// Comments: '',
|
||||||
companyId: 'cl93patjt0003txewyiaky7xx',
|
companyId: 'cl93patjt0004txew88wkcqpu',
|
||||||
job: {
|
job: {
|
||||||
base: {
|
base: {
|
||||||
currency: 'SGD',
|
currency: 'SGD',
|
||||||
@ -95,7 +95,7 @@ function Test() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
comments: undefined,
|
comments: undefined,
|
||||||
companyId: 'cl93patjt0003txewyiaky7xx',
|
companyId: 'cl93patjt0004txew88wkcqpu',
|
||||||
job: {
|
job: {
|
||||||
base: {
|
base: {
|
||||||
currency: 'SGD',
|
currency: 'SGD',
|
||||||
|
@ -6,10 +6,10 @@ function Test() {
|
|||||||
const data = trpc.useQuery([
|
const data = trpc.useQuery([
|
||||||
'offers.list',
|
'offers.list',
|
||||||
{
|
{
|
||||||
companyId: 'cl93patjt0003txewyiaky7xx',
|
companyId: 'cl93patjt0004txew88wkcqpu',
|
||||||
limit: 2,
|
limit: 20,
|
||||||
location: 'Singapore, Singapore',
|
location: 'Singapore, Singapore',
|
||||||
offset: 3,
|
offset: 0,
|
||||||
sortBy: '-monthYearReceived',
|
sortBy: '-monthYearReceived',
|
||||||
yoeCategory: 1,
|
yoeCategory: 1,
|
||||||
},
|
},
|
||||||
|
@ -144,7 +144,7 @@ export const offersProfileRouter = createRouter()
|
|||||||
yoe: z.number(),
|
yoe: z.number(),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
totalYoe: z.number().optional(),
|
totalYoe: z.number(),
|
||||||
}),
|
}),
|
||||||
offers: z.array(offer),
|
offers: z.array(offer),
|
||||||
}),
|
}),
|
||||||
|
Reference in New Issue
Block a user