Skip to content

feat(recruiter): add profile and organization API routes with update support for organization#11

Merged
Nirbhay21 merged 1 commit into
mainfrom
feature/recruiter-profile-organization-api
Feb 25, 2026
Merged

feat(recruiter): add profile and organization API routes with update support for organization#11
Nirbhay21 merged 1 commit into
mainfrom
feature/recruiter-profile-organization-api

Conversation

@Nirbhay21
Copy link
Copy Markdown
Owner

@Nirbhay21 Nirbhay21 commented Feb 25, 2026

Recruiter Profile & Organization APIs

Summary

This PR adds recruiter profile and organization management endpoints and aligns related database and schema fields.

API Endpoints

GET /api/recruiter/profile

  • Returns recruiter profile with:
    • User info
    • Organization details
    • Hiring domains
    • Experience levels
    • LLM configuration
    • Timestamps
  • Requires authenticated recruiter

PATCH /api/recruiter/organization

  • Updates recruiter organization data (partial payload supported)
  • Validated using recruiterOrganizationPartialSchema
  • Updates:
    • Basic organization fields
    • Hiring domains
    • Experience levels
  • Replaces tag associations transactionally
  • Requires authenticated recruiter

Database Changes

Migrations

  • company_websiteorganization_website (recruiter_profile)
  • countrycountry_code (candidate_profile, recruiter_profile)

Schema Updates

  • countrycountryCode
  • companyWebsiteorganizationWebsite

Service Layer

RecruiterProfileService

  • getProfile() – fetches recruiter profile with tags
  • updateOrganization() – handles:
    • Safe partial updates
    • Tag cleanup
    • Tag upsert
    • Association insert

Files Added

  • modules/recruiter/profile/*
  • modules/recruiter/organization/*

Routers registered in app.ts.

@Nirbhay21 Nirbhay21 merged commit 6406e19 into main Feb 25, 2026
1 check passed
@Nirbhay21 Nirbhay21 deleted the feature/recruiter-profile-organization-api branch February 25, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant