/** * Route paths shared by the router (app) and navigation (widgets), so a path * is defined once. Cabinet paths are absolute and nest under their root. */ export const paths = { home: "/", login: "/login", register: "/register", verifyEmail: "/verify-email", support: "/support", status: "/status", candidate: { root: "/candidate", onboarding: "/candidate/onboarding", profile: "/candidate/profile", questionnaire: "/candidate/questionnaire", assessment: "/candidate/assessment", assessmentAttempt: (attemptId: string) => `/candidate/assessment/${encodeURIComponent(attemptId)}`, results: "/candidate/results", result: (attemptId: string) => `/candidate/results/${encodeURIComponent(attemptId)}`, invitations: "/candidate/invitations", privacy: "/candidate/privacy", supportCases: "/candidate/support/cases", supportNew: "/candidate/support/cases/new", supportManual: "/candidate/support/cases/manual-assessment", supportCase: (caseId: string) => `/candidate/support/cases/${encodeURIComponent(caseId)}`, }, employer: { root: "/employer", company: "/employer/company", needs: "/employer/needs", needNew: (organizationId?: string) => organizationId ? `/employer/needs/new?organization_id=${encodeURIComponent(organizationId)}` : "/employer/needs/new", need: (needId: string, organizationId: string) => `/employer/needs/${encodeURIComponent(needId)}?organization_id=${encodeURIComponent(organizationId)}`, candidates: "/employer/candidates", invitations: "/employer/invitations", supportCases: "/employer/support/cases", supportNew: "/employer/support/cases/new", supportCase: (caseId: string) => `/employer/support/cases/${encodeURIComponent(caseId)}`, }, } as const;