import { Nova } from '@nova-sdk/api';
const nova = new Nova({
apiKey: process.env.NOVA_API_KEY!,
tenantId: 'acme-corp',
});
const { batch, scoringJobIds } = await nova.jobs.scoringBatches.submit({
jobId: 'job-123',
body: {
jobDescription: 'We are looking for a Senior Backend Engineer with 5+ years of experience in Node.js and TypeScript...',
roleKnowledge: "Team values candidates who've built systems from scratch. Strong preference for distributed systems experience over frontend-heavy backgrounds.",
applications: [
{
applicationId: 'app-001',
resume: { type: 'url', url: 'https://storage.example.com/resumes/001.pdf' },
},
{
applicationId: 'app-002',
resume: { type: 'text', content: '# Jane Smith\n\nSenior Backend Engineer with 7 years of experience...' },
applicationData: {
applicationAnswers: [
{ question: 'Are you eligible to work in the UK?', answer: 'Yes' },
],
context: 'Internal recruiter note: Strong referral from engineering lead. Candidate expressed interest in platform team specifically.',
},
},
],
},
});