feat(profile): persist candidate edits and enforce company access
This commit is contained in:
1 parent
3ab6bd91a3
commit
73c7caa225
67 files changed
+5286
-229
No files matched your search
@@ -1988,6 +1988,68 @@ ProfileExperienceItem:
|
||||
$ref: '#/ProfileItemStatus'
|
||||
source:
|
||||
$ref: '#/ProfileClaimSource'
|
||||
ProfileExperienceOverlapStatus:
|
||||
type: string
|
||||
description: Whether the candidate confirmed that two overlapping periods are genuine parallel work.
|
||||
enum:
|
||||
- needs_confirmation
|
||||
- confirmed
|
||||
ProfileExperienceOverlap:
|
||||
type: object
|
||||
description: One pair of work history entries whose inclusive month ranges overlap. The indices refer to the experience array in this profile version. `confirmed` records an explicit acknowledgement for this pair of dates; otherwise the pair needs confirmation before a changed profile can be saved.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- first_index
|
||||
- second_index
|
||||
- status
|
||||
properties:
|
||||
first_index:
|
||||
type: integer
|
||||
minimum: 0
|
||||
maximum: 19
|
||||
second_index:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 19
|
||||
status:
|
||||
$ref: '#/ProfileExperienceOverlapStatus'
|
||||
ProfileExperiencePeriod:
|
||||
type: object
|
||||
description: The exact month range of an experience entry, copied into a confirmation.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- started_on
|
||||
- ended_on
|
||||
properties:
|
||||
started_on:
|
||||
$ref: '#/ProfileYearMonth'
|
||||
ended_on:
|
||||
description: Last month of work, or null when the period is open-ended.
|
||||
oneOf:
|
||||
- $ref: '#/ProfileYearMonth'
|
||||
- type: 'null'
|
||||
ProfileParallelPeriodConfirmation:
|
||||
type: object
|
||||
description: Explicit acknowledgement that the two indexed experience periods are genuine parallel work. The indices and exact ranges must match the submitted experience array; expected_version binds the acknowledgement to the profile version the candidate read.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- first_index
|
||||
- second_index
|
||||
- first_period
|
||||
- second_period
|
||||
properties:
|
||||
first_index:
|
||||
type: integer
|
||||
minimum: 0
|
||||
maximum: 19
|
||||
second_index:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 19
|
||||
first_period:
|
||||
$ref: '#/ProfileExperiencePeriod'
|
||||
second_period:
|
||||
$ref: '#/ProfileExperiencePeriod'
|
||||
ProfileConfirmedCategory:
|
||||
type: object
|
||||
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`.'
|
||||
@@ -2023,6 +2085,7 @@ CandidateProfile:
|
||||
- stack
|
||||
- roles
|
||||
- experience
|
||||
- experience_overlaps
|
||||
- soft_skills
|
||||
- terms
|
||||
- confirmed_categories
|
||||
@@ -2052,6 +2115,12 @@ CandidateProfile:
|
||||
description: Work history entries in the order the candidate gave them.
|
||||
items:
|
||||
$ref: '#/ProfileExperienceItem'
|
||||
experience_overlaps:
|
||||
type: array
|
||||
maxItems: 190
|
||||
description: Every pair of overlapping experience periods, with its confirmation status. The indices refer to this version's experience array.
|
||||
items:
|
||||
$ref: '#/ProfileExperienceOverlap'
|
||||
soft_skills:
|
||||
type: array
|
||||
maxItems: 10
|
||||
@@ -2311,6 +2380,12 @@ CandidateProfileUpdate:
|
||||
description: Work history entries.
|
||||
items:
|
||||
$ref: '#/ProfileExperienceItemInput'
|
||||
confirmed_parallel_periods:
|
||||
type: array
|
||||
maxItems: 190
|
||||
description: Explicit acknowledgements for overlapping periods. Each pair must use distinct in-range indices and repeat the exact normalized started_on and ended_on values of those entries in this body. A changed or reordered period needs a new acknowledgement. The server retains a previous acknowledgement only for the same indices and dates. Duplicate pairs and pairs that do not overlap are rejected.
|
||||
items:
|
||||
$ref: '#/ProfileParallelPeriodConfirmation'
|
||||
soft_skills:
|
||||
type: array
|
||||
maxItems: 10
|
||||
|
||||
Reference in new issue
Block a user