|
3 | 3 | from pydantic import BaseModel, ConfigDict, Field, PositiveInt |
4 | 4 |
|
5 | 5 | from huntflow_api_client.models.common import EditedFillQuota, FillQuota, JsonRequestModel |
6 | | -from huntflow_api_client.models.request.vacancies import VacancyCreateState, VacancyUpdateState |
| 6 | +from huntflow_api_client.models.consts import ( |
| 7 | + AvailableMultiVacancyUpdateState, |
| 8 | + AvailableVacancyCreateState, |
| 9 | +) |
7 | 10 |
|
8 | 11 | HTML_TAGS = "ul, ol, li, p, br, a, strong, em, u, b, i" |
9 | 12 |
|
@@ -32,7 +35,10 @@ class MultiVacancyCreateRequest(JsonRequestModel): |
32 | 35 | description="Department name (ignored if the divisions are enabled)", |
33 | 36 | ) |
34 | 37 | hidden: bool = Field(False, description="Is the vacancy hidden from coworkers?") |
35 | | - state: VacancyCreateState = Field(VacancyCreateState.OPEN, description="The state of a vacancy") |
| 38 | + state: AvailableVacancyCreateState = Field( |
| 39 | + AvailableVacancyCreateState.OPEN, |
| 40 | + description="The state of a vacancy", |
| 41 | + ) |
36 | 42 | coworkers: Optional[List[PositiveInt]] = Field( |
37 | 43 | None, |
38 | 44 | description="The list of coworker ID working with a vacancy", |
@@ -75,7 +81,10 @@ class MultiVacancyUpdateRequest(JsonRequestModel): |
75 | 81 | description="Department name (ignored if the divisions are enabled)", |
76 | 82 | ) |
77 | 83 | hidden: bool = Field(False, description="Is the vacancy hidden from coworkers?") |
78 | | - state: VacancyUpdateState = Field(VacancyUpdateState.OPEN, description="The state of a vacancy") |
| 84 | + state: AvailableMultiVacancyUpdateState = Field( |
| 85 | + AvailableMultiVacancyUpdateState.OPEN, |
| 86 | + description="The state of a vacancy", |
| 87 | + ) |
79 | 88 | body: Optional[str] = Field( |
80 | 89 | None, |
81 | 90 | description=( |
|
0 commit comments