feat(visibility): add the candidate publication, hiding and search status contract
This commit is contained in:
1 parent
4436f626a3
commit
0529601021
87 files changed
+21456
-83
No files matched your search
@@ -4056,3 +4056,230 @@ ProfileStaleVersion:
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 9a0b1c2d-3e4f-4a5b-9c7d-8e9f0a1b2c34
|
||||
PrivacyPublishedWithoutFields:
|
||||
summary: A publication without any field
|
||||
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: 3b4c5d6e-7f80-4a91-8b2c-3d4e5f6a7b8c
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /fields
|
||||
code: invalid
|
||||
message: A published profile needs at least one field, and a closed one none.
|
||||
NewCandidatePrivacySettings:
|
||||
summary: A new candidate with the profile closed
|
||||
description: Nothing was ever published, announced, or hidden. Every version is 0.
|
||||
value:
|
||||
publication:
|
||||
state: closed
|
||||
closed_reason: never_published
|
||||
fields: []
|
||||
consent_id: null
|
||||
published_at: null
|
||||
version: 0
|
||||
search_status:
|
||||
value: not_looking
|
||||
lapsed: false
|
||||
confirmed_at: null
|
||||
lapses_at: null
|
||||
version: 0
|
||||
hidden_organizations_total: 0
|
||||
PublishedCandidatePrivacySettings:
|
||||
summary: A published profile with a confirmed search status
|
||||
value:
|
||||
publication:
|
||||
state: published
|
||||
closed_reason: null
|
||||
fields:
|
||||
- categories
|
||||
- stack
|
||||
consent_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
||||
published_at: "2026-10-06T09:10:00Z"
|
||||
version: 1
|
||||
search_status:
|
||||
value: looking
|
||||
lapsed: false
|
||||
confirmed_at: "2026-10-06T09:12:00Z"
|
||||
lapses_at: "2026-11-05T09:12:00Z"
|
||||
version: 1
|
||||
hidden_organizations_total: 1
|
||||
PublicationUpdatePublish:
|
||||
summary: Publish the confirmed categories and the stack
|
||||
value:
|
||||
expected_version: 0
|
||||
state: published
|
||||
fields:
|
||||
- categories
|
||||
- stack
|
||||
PublicationUpdateClose:
|
||||
summary: Close the publication
|
||||
value:
|
||||
expected_version: 1
|
||||
state: closed
|
||||
fields: []
|
||||
PublishedPublication:
|
||||
summary: The publication after the first publish
|
||||
value:
|
||||
state: published
|
||||
closed_reason: null
|
||||
fields:
|
||||
- categories
|
||||
- stack
|
||||
consent_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
||||
published_at: "2026-10-06T09:10:00Z"
|
||||
version: 1
|
||||
SearchStatusUpdateLooking:
|
||||
summary: Set or confirm the status looking
|
||||
value:
|
||||
expected_version: 0
|
||||
value: looking
|
||||
LookingSearchStatus:
|
||||
summary: A confirmed status that lapses after the policy interval
|
||||
value:
|
||||
value: looking
|
||||
lapsed: false
|
||||
confirmed_at: "2026-10-06T09:12:00Z"
|
||||
lapses_at: "2026-11-05T09:12:00Z"
|
||||
version: 1
|
||||
LapsedSearchStatus:
|
||||
summary: A status that was not confirmed in time
|
||||
description: The candidate set looking and did not confirm it again, so it holds as not_looking. Nothing else changed; the publication and the hidden organizations are as they were.
|
||||
value:
|
||||
value: not_looking
|
||||
lapsed: true
|
||||
confirmed_at: "2026-10-06T09:12:00Z"
|
||||
lapses_at: "2026-11-05T09:12:00Z"
|
||||
version: 1
|
||||
HiddenOrganizationRecord:
|
||||
summary: An organization that the candidate hides the profile from
|
||||
value:
|
||||
organization:
|
||||
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
name: ООО Пример Платежи
|
||||
hidden_at: "2026-10-06T09:20:00Z"
|
||||
HiddenOrganizationListPage:
|
||||
summary: One hidden organization
|
||||
value:
|
||||
items:
|
||||
- organization:
|
||||
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
name: ООО Пример Платежи
|
||||
hidden_at: "2026-10-06T09:20:00Z"
|
||||
page:
|
||||
has_more: false
|
||||
next_cursor: null
|
||||
PublishedCardPreview:
|
||||
summary: The card of a published profile with two fields
|
||||
description: The fields that are not published are null. The card carries no name and no contact.
|
||||
value:
|
||||
state: published
|
||||
fields:
|
||||
- categories
|
||||
- stack
|
||||
card:
|
||||
categories:
|
||||
- specialization: backend
|
||||
grade: middle
|
||||
stack:
|
||||
- PostgreSQL
|
||||
- Kafka
|
||||
experience_months: null
|
||||
soft_skills: null
|
||||
location: null
|
||||
relocation: null
|
||||
generated_at: "2026-10-06T09:30:00Z"
|
||||
ClosedCardPreview:
|
||||
summary: The preview of a closed profile
|
||||
value:
|
||||
state: closed
|
||||
fields: []
|
||||
card: null
|
||||
generated_at: "2026-10-06T09:30:00Z"
|
||||
PrivacyEventListPage:
|
||||
summary: A publication, a hiding, and a confirmed status
|
||||
value:
|
||||
items:
|
||||
- id: 01928f7a-b1c2-7d3e-8f4a-5b6c7d8e9f01
|
||||
kind: organization_hidden
|
||||
occurred_at: "2026-10-06T09:20:00Z"
|
||||
fields: null
|
||||
consent_id: null
|
||||
organization:
|
||||
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
name: ООО Пример Платежи
|
||||
- id: 01928f7a-b1c2-7d3e-8f4a-5b6c7d8e9e02
|
||||
kind: search_status_confirmed
|
||||
occurred_at: "2026-10-06T09:12:00Z"
|
||||
fields: null
|
||||
consent_id: null
|
||||
organization: null
|
||||
- id: 01928f7a-b1c2-7d3e-8f4a-5b6c7d8e9e01
|
||||
kind: publication_opened
|
||||
occurred_at: "2026-10-06T09:10:00Z"
|
||||
fields:
|
||||
- categories
|
||||
- stack
|
||||
consent_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
||||
organization: null
|
||||
page:
|
||||
has_more: false
|
||||
next_cursor: null
|
||||
CardAccessListPage:
|
||||
summary: An anonymous view and a contact read
|
||||
value:
|
||||
items:
|
||||
- id: 01928f7a-c1d2-7e3f-8a4b-5c6d7e8f9a02
|
||||
kind: contact_read
|
||||
occurred_at: "2026-10-07T08:00:00Z"
|
||||
organization:
|
||||
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
name: ООО Пример Платежи
|
||||
- id: 01928f7a-c1d2-7e3f-8a4b-5c6d7e8f9a01
|
||||
kind: card_viewed
|
||||
occurred_at: "2026-10-06T12:00:00Z"
|
||||
organization: null
|
||||
page:
|
||||
has_more: false
|
||||
next_cursor: null
|
||||
PrivacyStaleVersion:
|
||||
summary: The change carried a stale expected_version
|
||||
description: The setting changed, for example in another tab, after the client read it. Nothing was changed; the client reads the settings again and reapplies its edit.
|
||||
value:
|
||||
type: urn:lincodex:problem:version_conflict
|
||||
title: Resource version conflict
|
||||
status: 412
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 4c5d6e7f-8091-4ba2-9c3d-4e5f6a7b8c9d
|
||||
PublicationConsentRequiredConflict:
|
||||
summary: Publishing without an active C2 consent
|
||||
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: 5d6e7f80-91a2-4cb3-8d4e-5f6a7b8c9d0e
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /state
|
||||
code: consent_required
|
||||
message: Publishing needs an active C2 consent of the account.
|
||||
HiddenOrganizationLimitReached:
|
||||
summary: The candidate hides the maximum number of organizations
|
||||
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: 6e7f8091-a2b3-4dc4-9e5f-6a7b8c9d0e1f
|
||||
errors:
|
||||
- in: path
|
||||
pointer: /org_id
|
||||
code: limit_reached
|
||||
message: The candidate already hides the maximum number of organizations.
|
||||
Reference in new issue
Block a user