26 lines
664 B
TypeScript
26 lines
664 B
TypeScript
export const JOB_DETAILS_TABS = {
|
|
overview: 0,
|
|
correspondence: 1,
|
|
attachments: 2,
|
|
tailoredCv: 3,
|
|
followUp: 4,
|
|
candidateFit: 5,
|
|
focusPlan: 6,
|
|
interviewPrep: 7,
|
|
readiness: 8,
|
|
history: 9,
|
|
} as const;
|
|
|
|
export type JobWorkspaceOpenOptions = {
|
|
tab?: number;
|
|
followMode?: string;
|
|
};
|
|
|
|
export function buildJobWorkspacePath(jobId: number, options: JobWorkspaceOpenOptions = {}) {
|
|
const params = new URLSearchParams();
|
|
params.set('open', String(jobId));
|
|
if (typeof options.tab === 'number') params.set('tab', String(options.tab));
|
|
if (options.followMode) params.set('followMode', options.followMode);
|
|
return `/jobs?${params.toString()}`;
|
|
}
|