feat(api): add specialization catalog and candidate questionnaire contract
This commit is contained in:
1 parent
c338c0c188
commit
faeeb5f157
64 files changed
+8339
-47
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 testAvailabilityGradesMax = 10;
|
||||
|
||||
export const testAvailabilityTaskLanguagesMax = 2;
|
||||
|
||||
export const testAvailabilityNoteMax = 300;
|
||||
|
||||
|
||||
export const TestAvailability = zod.object({
|
||||
"status": zod.enum(['available', 'in_development']).describe('Whether an assessment can start for the specialization. `available` means that a published task bank exists for at least one grade, listed in `TestAvailability.grades`. `in_development` means that no grade of the specialization has a published bank yet; the specialization can still be chosen in the questionnaire, but no assessment starts and no category can be confirmed for it. Presence in the catalog or in demo data never means that a test is ready.'),
|
||||
"grades": zod.array(zod.enum(['intern', 'junior', 'middle', 'senior']).describe('Grade of the MVP scale in ascending order: `intern`, `junior`, `middle`, `senior`. The same codes describe a self-assessed grade, which the candidate states, and a confirmed grade, which only an assessment result establishes. Lead and Architect are planned after the MVP; adding a value is a contract change.')).max(testAvailabilityGradesMax).describe('Grades of the specialization with a published task bank, in ascending order. Only these categories can be assessed and confirmed.'),
|
||||
"task_languages": zod.array(zod.enum(['python', 'go']).describe('Programming language in which assessment tasks of a specialization are offered and solved. It is the language of the task bank, not the candidate\'s platform stack, and it never forms a separate category. Only banks that offer a choice of language define task languages; the first Backend bank offers Python and Go. Adding a value is a contract change.')).max(testAvailabilityTaskLanguagesMax).describe('Task languages that the published bank offers for this specialization. Empty when the bank does not offer a choice of language, as for Network Engineer, or when no bank is published. The questionnaire accepts only these languages for the specialization.'),
|
||||
"note": zod.string().min(1).max(testAvailabilityNoteMax).nullable().describe('Short Russian note for the candidate, for example why the test is not available yet, or null. Plain text; the client shows it as text, never as HTML.')
|
||||
}).describe('Assessment availability of a specialization, derived by the server from the published task banks at the time of the request. The MVP opens an assessment only for a category, a specialization and a grade, that has a published bank. `status` is `available` exactly when `grades` is not empty; for `in_development` both `grades` and `task_languages` are empty.')
|
||||
|
||||
export type TestAvailability = zod.input<typeof TestAvailability>;
|
||||
export type TestAvailabilityOutput = zod.output<typeof TestAvailability>;
|
||||
Reference in new issue
Block a user