feat(api): add employer need contract with requirement versions and recommendations

This commit is contained in:
shira committed 2026-10-06 07:39:05 +03:00
1 parent 3adb0ef9e4
commit a7d5781f2d
95 files changed
+25352 -26

No files matched your search

+124
View File
@@ -26,6 +26,12 @@ tags:
Assessment attempts of the current candidate: availability, start and
resume, answers and the code practice, finalization, and the result.
Answers, keys, and attempt history are visible only to the candidate.
- name: need
description: >-
Hiring needs of an organization: requirements with their confirmation
state and provenance, immutable versions, readiness, and category
recommendations. Access comes only from an active membership in the
organization; a need never requires a vacancy.
# Operations require a session unless they declare `security: []`, so a new
# operation that omits security is protected by default.
security:
@@ -63,6 +69,10 @@ paths:
$ref: ./routes/candidate_assessment_attempt_finalize.yml
/api/v1/me/assessment-attempts/{attempt_id}/result:
$ref: ./routes/candidate_assessment_attempt_result.yml
/api/v1/organizations/{org_id}/needs:
$ref: ./routes/organization_needs.yml
/api/v1/organizations/{org_id}/needs/{need_id}:
$ref: ./routes/organization_need.yml
components:
schemas:
Problem:
@@ -265,6 +275,112 @@ components:
$ref: ./components/schemas.yml#/AssessmentSpecializationAvailability
AssessmentAvailability:
$ref: ./components/schemas.yml#/AssessmentAvailability
NeedVersion:
$ref: ./components/schemas.yml#/NeedVersion
NeedTitle:
$ref: ./components/schemas.yml#/NeedTitle
NeedSourceText:
$ref: ./components/schemas.yml#/NeedSourceText
NeedValueStatus:
$ref: ./components/schemas.yml#/NeedValueStatus
NeedItemStatus:
$ref: ./components/schemas.yml#/NeedItemStatus
NeedValueOrigin:
$ref: ./components/schemas.yml#/NeedValueOrigin
NeedSourceQuote:
$ref: ./components/schemas.yml#/NeedSourceQuote
NeedVersionLabel:
$ref: ./components/schemas.yml#/NeedVersionLabel
NeedValueSource:
$ref: ./components/schemas.yml#/NeedValueSource
SkillName:
$ref: ./components/schemas.yml#/SkillName
SkillTaxonomyCode:
$ref: ./components/schemas.yml#/SkillTaxonomyCode
NeedTaskText:
$ref: ./components/schemas.yml#/NeedTaskText
NeedDomainName:
$ref: ./components/schemas.yml#/NeedDomainName
NeedLocationName:
$ref: ./components/schemas.yml#/NeedLocationName
RubAmount:
$ref: ./components/schemas.yml#/RubAmount
CurrencyCode:
$ref: ./components/schemas.yml#/CurrencyCode
SalaryPeriod:
$ref: ./components/schemas.yml#/SalaryPeriod
SalaryTaxBasis:
$ref: ./components/schemas.yml#/SalaryTaxBasis
SalaryRange:
$ref: ./components/schemas.yml#/SalaryRange
NeedSpecialization:
$ref: ./components/schemas.yml#/NeedSpecialization
NeedGrade:
$ref: ./components/schemas.yml#/NeedGrade
NeedDomain:
$ref: ./components/schemas.yml#/NeedDomain
NeedWorkFormats:
$ref: ./components/schemas.yml#/NeedWorkFormats
NeedLocation:
$ref: ./components/schemas.yml#/NeedLocation
NeedSalary:
$ref: ./components/schemas.yml#/NeedSalary
NeedSkill:
$ref: ./components/schemas.yml#/NeedSkill
NeedTask:
$ref: ./components/schemas.yml#/NeedTask
NeedSpecializationInput:
$ref: ./components/schemas.yml#/NeedSpecializationInput
NeedGradeInput:
$ref: ./components/schemas.yml#/NeedGradeInput
NeedDomainInput:
$ref: ./components/schemas.yml#/NeedDomainInput
NeedWorkFormatsInput:
$ref: ./components/schemas.yml#/NeedWorkFormatsInput
NeedLocationInput:
$ref: ./components/schemas.yml#/NeedLocationInput
NeedSalaryInput:
$ref: ./components/schemas.yml#/NeedSalaryInput
NeedSkillInput:
$ref: ./components/schemas.yml#/NeedSkillInput
NeedTaskInput:
$ref: ./components/schemas.yml#/NeedTaskInput
NeedRequirementSet:
$ref: ./components/schemas.yml#/NeedRequirementSet
NeedFieldName:
$ref: ./components/schemas.yml#/NeedFieldName
NeedMissingReason:
$ref: ./components/schemas.yml#/NeedMissingReason
NeedMissingField:
$ref: ./components/schemas.yml#/NeedMissingField
NeedReadinessStatus:
$ref: ./components/schemas.yml#/NeedReadinessStatus
NeedReadinessReport:
$ref: ./components/schemas.yml#/NeedReadinessReport
NeedRecommendationStatus:
$ref: ./components/schemas.yml#/NeedRecommendationStatus
NeedSkillOverlap:
$ref: ./components/schemas.yml#/NeedSkillOverlap
NeedMoneyStatus:
$ref: ./components/schemas.yml#/NeedMoneyStatus
NeedMoneyFit:
$ref: ./components/schemas.yml#/NeedMoneyFit
NeedSupplyBand:
$ref: ./components/schemas.yml#/NeedSupplyBand
NeedCategoryRecommendation:
$ref: ./components/schemas.yml#/NeedCategoryRecommendation
NeedCategoryRecommendations:
$ref: ./components/schemas.yml#/NeedCategoryRecommendations
Need:
$ref: ./components/schemas.yml#/Need
NeedSummary:
$ref: ./components/schemas.yml#/NeedSummary
NeedList:
$ref: ./components/schemas.yml#/NeedList
NeedCreate:
$ref: ./components/schemas.yml#/NeedCreate
NeedUpdate:
$ref: ./components/schemas.yml#/NeedUpdate
parameters:
IdempotencyKey:
$ref: ./components/parameters.yml#/IdempotencyKey
@@ -276,6 +392,10 @@ components:
$ref: ./components/parameters.yml#/PageCursor
AssessmentAttemptId:
$ref: ./components/parameters.yml#/AssessmentAttemptId
OrganizationId:
$ref: ./components/parameters.yml#/OrganizationId
NeedId:
$ref: ./components/parameters.yml#/NeedId
headers:
ETag:
$ref: ./components/headers.yml#/ETag
@@ -344,6 +464,10 @@ components:
$ref: ./components/responses.yml#/AssessmentResultNotReady
AssessmentVersionConflict:
$ref: ./components/responses.yml#/AssessmentVersionConflict
NeedValidationFailed:
$ref: ./components/responses.yml#/NeedValidationFailed
NeedVersionConflict:
$ref: ./components/responses.yml#/NeedVersionConflict
securitySchemes:
sessionCookie:
type: apiKey