feat(api): add support case and manual assessment request contract
This commit is contained in:
1 parent
2db585fbff
commit
ad4bb94426
65 files changed
+14629
-23
No files matched your search
@@ -2015,3 +2015,278 @@ NeedStaleVersion:
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 0f1a2b3c-4d5e-4f6a-8b7c-8d9e0f1a2b3d
|
||||
SupportCaseCreateManualAssessment:
|
||||
summary: A manual assessment of a category instead of the automated one
|
||||
value:
|
||||
type: manual_assessment
|
||||
description: Прошу провести ручную оценку по рубрике Backend Middle вместо автоматической категоризации.
|
||||
assessment_target:
|
||||
specialization: backend
|
||||
grade: middle
|
||||
SupportCaseCreateGradeAppeal:
|
||||
summary: An appeal of the result of an own attempt
|
||||
value:
|
||||
type: grade_appeal
|
||||
description: Практика не засчитана, хотя решение проходит публичные примеры. Прошу пересмотреть результат.
|
||||
object:
|
||||
type: assessment_attempt
|
||||
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
SupportCaseCreateCategoryAppeal:
|
||||
summary: An appeal of a category that a manual assessment assigned
|
||||
description: The category came from an expert without an attempt, so the appeal references the resolved manual assessment case.
|
||||
value:
|
||||
type: grade_appeal
|
||||
description: Эксперт подтвердил Junior, но в рубрике Middle я выполнил все обязательные пункты. Прошу пересмотреть.
|
||||
object:
|
||||
type: support_case
|
||||
id: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
||||
SupportCaseCreateTestUnavailable:
|
||||
summary: A support case about a test that is not available
|
||||
value:
|
||||
type: support
|
||||
description: Тест на Senior пока недоступен, хотя я сдал Middle полгода назад.
|
||||
assessment_target:
|
||||
specialization: backend
|
||||
grade: senior
|
||||
SupportCaseCreateComplaint:
|
||||
summary: A complaint about the salary terms of an offer
|
||||
value:
|
||||
type: complaint
|
||||
description: После принятия приглашения компания предложила сумму ниже указанной вилки.
|
||||
complaint_reason: salary_terms_violation
|
||||
object:
|
||||
type: invitation
|
||||
id: 01928f7a-7f8a-7b9c-8d0e-1f2a3b4c5d6e
|
||||
SupportCaseManualAssessmentCreated:
|
||||
summary: A new manual assessment request with its rubric and response target
|
||||
description: The server moves the case to waiting_expert in the same transaction as the creation, so the 201 already shows both events.
|
||||
value:
|
||||
id: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
||||
number: SC-2026-000123
|
||||
type: manual_assessment
|
||||
status: waiting_expert
|
||||
description: Прошу провести ручную оценку по рубрике Backend Middle вместо автоматической категоризации.
|
||||
object: null
|
||||
assessment_target:
|
||||
specialization: backend
|
||||
grade: middle
|
||||
complaint_reason: null
|
||||
rubric_version: 3
|
||||
response_target:
|
||||
kind: operational_goal
|
||||
business_days: 5
|
||||
due_at: "2026-10-13T09:00:00Z"
|
||||
answered_at: null
|
||||
late: false
|
||||
policy_version: 1
|
||||
decision: null
|
||||
history:
|
||||
- sequence: 1
|
||||
kind: created
|
||||
actor: user
|
||||
occurred_at: "2026-10-06T09:00:00Z"
|
||||
status: submitted
|
||||
message: null
|
||||
- sequence: 2
|
||||
kind: status_changed
|
||||
actor: system
|
||||
occurred_at: "2026-10-06T09:00:00Z"
|
||||
status: waiting_expert
|
||||
message: null
|
||||
created_at: "2026-10-06T09:00:00Z"
|
||||
updated_at: "2026-10-06T09:00:00Z"
|
||||
SupportCaseGradeAppealResolved:
|
||||
summary: An own grade appeal with a public decision
|
||||
value:
|
||||
id: 01928f7a-5d6e-7f8a-9b0c-1d2e3f4a5b6c
|
||||
number: SC-2026-000097
|
||||
type: grade_appeal
|
||||
status: resolved
|
||||
description: Практика не засчитана, хотя решение проходит публичные примеры. Прошу пересмотреть результат.
|
||||
object:
|
||||
type: assessment_attempt
|
||||
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
assessment_target: null
|
||||
complaint_reason: null
|
||||
rubric_version: null
|
||||
response_target:
|
||||
kind: operational_goal
|
||||
business_days: 10
|
||||
due_at: "2026-10-15T10:00:00Z"
|
||||
answered_at: "2026-10-09T14:30:00Z"
|
||||
late: false
|
||||
policy_version: 1
|
||||
decision:
|
||||
outcome: not_upheld
|
||||
reason: Решение не проходит вторую группу скрытых проверок на пустом входе. Исходный результат остается в силе; повторная попытка на тот же грейд откроется по обычным правилам.
|
||||
decided_at: "2026-10-09T14:30:00Z"
|
||||
history:
|
||||
- sequence: 1
|
||||
kind: created
|
||||
actor: user
|
||||
occurred_at: "2026-10-01T10:00:00Z"
|
||||
status: submitted
|
||||
message: null
|
||||
- sequence: 2
|
||||
kind: status_changed
|
||||
actor: system
|
||||
occurred_at: "2026-10-01T10:00:00Z"
|
||||
status: waiting_expert
|
||||
message: null
|
||||
- sequence: 3
|
||||
kind: status_changed
|
||||
actor: support
|
||||
occurred_at: "2026-10-07T08:15:00Z"
|
||||
status: in_review
|
||||
message: null
|
||||
- sequence: 4
|
||||
kind: decision
|
||||
actor: support
|
||||
occurred_at: "2026-10-09T14:30:00Z"
|
||||
status: resolved
|
||||
message: Решение не проходит вторую группу скрытых проверок на пустом входе. Исходный результат остается в силе; повторная попытка на тот же грейд откроется по обычным правилам.
|
||||
created_at: "2026-10-01T10:00:00Z"
|
||||
updated_at: "2026-10-09T14:30:00Z"
|
||||
SupportCaseListPage:
|
||||
summary: The last page of the case summaries of the current account
|
||||
value:
|
||||
items:
|
||||
- id: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
||||
number: SC-2026-000123
|
||||
type: manual_assessment
|
||||
status: waiting_expert
|
||||
object: null
|
||||
assessment_target:
|
||||
specialization: backend
|
||||
grade: middle
|
||||
response_target:
|
||||
kind: operational_goal
|
||||
business_days: 5
|
||||
due_at: "2026-10-13T09:00:00Z"
|
||||
answered_at: null
|
||||
late: false
|
||||
policy_version: 1
|
||||
decision_outcome: null
|
||||
created_at: "2026-10-06T09:00:00Z"
|
||||
updated_at: "2026-10-06T09:00:00Z"
|
||||
- id: 01928f7a-5d6e-7f8a-9b0c-1d2e3f4a5b6c
|
||||
number: SC-2026-000097
|
||||
type: grade_appeal
|
||||
status: resolved
|
||||
object:
|
||||
type: assessment_attempt
|
||||
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
assessment_target: null
|
||||
response_target:
|
||||
kind: operational_goal
|
||||
business_days: 10
|
||||
due_at: "2026-10-15T10:00:00Z"
|
||||
answered_at: "2026-10-09T14:30:00Z"
|
||||
late: false
|
||||
policy_version: 1
|
||||
decision_outcome: not_upheld
|
||||
created_at: "2026-10-01T10:00:00Z"
|
||||
updated_at: "2026-10-09T14:30:00Z"
|
||||
- id: 01928f7a-4c5d-7e6f-8a9b-0c1d2e3f4a5b
|
||||
number: SC-2026-000088
|
||||
type: support
|
||||
status: in_review
|
||||
object: null
|
||||
assessment_target:
|
||||
specialization: backend
|
||||
grade: senior
|
||||
response_target:
|
||||
kind: operational_goal
|
||||
business_days: 3
|
||||
due_at: "2026-10-02T12:00:00Z"
|
||||
answered_at: "2026-10-01T09:20:00Z"
|
||||
late: false
|
||||
policy_version: 1
|
||||
decision_outcome: null
|
||||
created_at: "2026-09-29T12:00:00Z"
|
||||
updated_at: "2026-10-01T09:20:00Z"
|
||||
page:
|
||||
has_more: false
|
||||
next_cursor: null
|
||||
SupportCaseBlankDescription:
|
||||
summary: The description is empty or contains only whitespace
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /description
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
SupportCaseUnknownType:
|
||||
summary: The case type is not one of the five types
|
||||
description: The variant is selected by `type` before a field path is recorded, so the pointer is the whole body.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 6b7c8d9e-0f1a-4b2c-9d3e-4f5a6b7c8d9e
|
||||
errors:
|
||||
- in: body
|
||||
pointer: ""
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
SupportCaseUnknownField:
|
||||
summary: The client sent its own status or decision
|
||||
description: Status, decision, moderator, priority, and response target are never request fields; any unknown field fails validation.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f
|
||||
errors:
|
||||
- in: body
|
||||
pointer: ""
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
SupportCaseMalformedReference:
|
||||
summary: The object identifier is not a UUID
|
||||
description: The decoder rejects the identifier inside the selected variant without recording its path, so the pointer is the whole body.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 0f1a2b3c-4d5e-4f6a-9b7c-8d9e0f1a2b3c
|
||||
errors:
|
||||
- in: body
|
||||
pointer: ""
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
SupportCaseComplaintNeedsInvitation:
|
||||
summary: The complaint reason requires an invitation reference
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 8d9e0f1a-2b3c-4d4e-9f5a-6b7c8d9e0f1a
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /object/type
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
SupportCaseAppealExists:
|
||||
summary: The attempt or the manual assessment already has an appeal of this type
|
||||
value:
|
||||
type: urn:lincodex:problem:state_conflict
|
||||
title: Resource state conflict
|
||||
status: 409
|
||||
code: state_conflict
|
||||
detail: The resource is in a state that does not allow this operation.
|
||||
trace_id: 9e0f1a2b-3c4d-4e5f-8a6b-7c8d9e0f1a2b
|
||||
Reference in new issue
Block a user