@@ -99,6 +99,7 @@ export function mapUserSummary(raw: unknown): AshbyUserSummary | null {
9999 globalRole : ( u . globalRole as string ) ?? null ,
100100 isEnabled : ( u . isEnabled as boolean ) ?? false ,
101101 updatedAt : ( u . updatedAt as string ) ?? null ,
102+ managerId : ( u . managerId as string ) ?? null ,
102103 }
103104}
104105
@@ -233,6 +234,7 @@ export function mapJob(raw: unknown): AshbyJob {
233234 const location = j . location as Unknown | undefined
234235 const address = location ?. address as Unknown | undefined
235236 const postalAddress = address ?. postalAddress as Unknown | undefined
237+ const compensation = j . compensation as Unknown | undefined
236238 return {
237239 id : ( j . id as string ) ?? '' ,
238240 title : ( j . title as string ) ?? '' ,
@@ -275,6 +277,25 @@ export function mapJob(raw: unknown): AshbyJob {
275277 }
276278 : null ,
277279 openings : mapOpenings ( j . openings ) ,
280+ compensation : compensation
281+ ? {
282+ compensationTiers : Array . isArray ( compensation . compensationTiers )
283+ ? (
284+ compensation . compensationTiers as Array < {
285+ id ?: string
286+ title ?: string
287+ additionalInformation ?: string
288+ tierSummary ?: string
289+ } >
290+ ) . map ( ( t ) => ( {
291+ id : t . id ?? null ,
292+ title : t . title ?? null ,
293+ additionalInformation : t . additionalInformation ?? null ,
294+ tierSummary : t . tierSummary ?? null ,
295+ } ) )
296+ : [ ] ,
297+ }
298+ : null ,
278299 }
279300}
280301
@@ -403,6 +424,7 @@ export const USER_SUMMARY_OUTPUT = {
403424 globalRole : { type : 'string' , description : 'Role' , optional : true } ,
404425 isEnabled : { type : 'boolean' , description : 'Whether enabled' } ,
405426 updatedAt : { type : 'string' , description : 'Last update timestamp' , optional : true } ,
427+ managerId : { type : 'string' , description : "User ID of the user's manager" , optional : true } ,
406428 } ,
407429} as const satisfies OutputProperty
408430
@@ -859,4 +881,33 @@ export const JOB_OUTPUTS = {
859881 } ,
860882 } ,
861883 openings : OPENINGS_OUTPUT ,
884+ compensation : {
885+ type : 'object' ,
886+ description :
887+ 'Compensation tiers for the job. Only present when the request includes the `compensation` expand parameter.' ,
888+ optional : true ,
889+ properties : {
890+ compensationTiers : {
891+ type : 'array' ,
892+ description : 'List of compensation tiers' ,
893+ items : {
894+ type : 'object' ,
895+ properties : {
896+ id : { type : 'string' , description : 'Tier ID' , optional : true } ,
897+ title : { type : 'string' , description : 'Tier title' , optional : true } ,
898+ additionalInformation : {
899+ type : 'string' ,
900+ description : 'Additional information about the tier' ,
901+ optional : true ,
902+ } ,
903+ tierSummary : {
904+ type : 'string' ,
905+ description : 'Human-readable summary of the tier' ,
906+ optional : true ,
907+ } ,
908+ } ,
909+ } ,
910+ } ,
911+ } ,
912+ } ,
862913} as const satisfies Record < string , OutputProperty >
0 commit comments