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

@@ -0,0 +1,24 @@
/**
* Generated by orval 🍺
* Do not edit manually.
* Lincodex API
* OpenAPI spec version: 0.1.0
*/
import * as zod from 'zod';
export const needReadinessReportMissingFieldsItemQuestionMax = 300;
export const needReadinessReportMissingFieldsMax = 9;
export const NeedReadinessReport = zod.object({
"status": zod.enum(['complete', 'incomplete']).describe('`complete` when every critical field has a confirmed value, otherwise `incomplete`.'),
"missing_fields": zod.array(zod.object({
"field": zod.enum(['specialization', 'grade', 'required_skills', 'desired_skills', 'tasks', 'domain', 'work_formats', 'location', 'salary']).describe('Name of a need field, equal to its property name in NeedRequirementSet and in the request bodies. Adding a value is a contract change.'),
"reason": zod.enum(['unknown', 'unconfirmed']).describe('Why a critical field is missing: `unknown`, the field has no value, or `unconfirmed`, it has only an extracted value or, for required skills, only extracted items that wait for confirmation.'),
"question": zod.string().min(1).max(needReadinessReportMissingFieldsItemQuestionMax).describe('Specific Russian question about the missing value, for example which grade is needed. Plain text; the client shows it as text, never as HTML.')
}).describe('One critical field that has no confirmed value, with a specific question that the client shows next to the field.')).max(needReadinessReportMissingFieldsMax).describe('Critical fields without a confirmed value, each at most once, in the order of NeedFieldName. Empty exactly when `status` is `complete`.')
}).describe('Completeness of the critical fields, computed by the server for the current version. The critical fields are `specialization`, `grade`, `required_skills` (at least one confirmed skill), `work_formats`, `salary`, and `location` when the confirmed work formats include `office` or `hybrid`. An incomplete need is still a valid saved need; each later operation, such as search or an invitation, states which readiness it requires.')
export type NeedReadinessReport = zod.input<typeof NeedReadinessReport>;
export type NeedReadinessReportOutput = zod.output<typeof NeedReadinessReport>;