19 lines
1.5 KiB
TypeScript
19 lines
1.5 KiB
TypeScript
/**
|
|
* Generated by orval 🍺
|
|
* Do not edit manually.
|
|
* Lincodex API
|
|
* OpenAPI spec version: 0.1.0
|
|
*/
|
|
import * as zod from 'zod';
|
|
|
|
export const setMySearchStatusBodyExpectedVersionMin = 0;
|
|
|
|
|
|
export const SetMySearchStatusBody = zod.object({
|
|
"expected_version": zod.int().min(setMySearchStatusBodyExpectedVersionMin).describe('Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.'),
|
|
"value": zod.enum(['looking', 'not_looking']).describe('Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.\n\n- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.\n- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.')
|
|
}).describe('The complete new search status. `looking` is also the confirmation of a status that still holds or has lapsed: it sets the confirmation time to now. The body carries no time, interval, or policy version; the server takes them from the effective product policy.')
|
|
|
|
export type SetMySearchStatusBody = zod.input<typeof SetMySearchStatusBody>;
|
|
export type SetMySearchStatusBodyOutput = zod.output<typeof SetMySearchStatusBody>;
|