Skip to content

Commit 6d226e7

Browse files
committed
DEV-22328: fix by comments
1 parent ad85333 commit 6d226e7

5 files changed

Lines changed: 4 additions & 14 deletions

File tree

huntflow_api_client/entities/token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ async def update(self, data: RefreshTokenRequest) -> RefreshTokenResponse:
1010
API method reference
1111
https://api.huntflow.ru/latest/docs#post-/token/refresh
1212
13-
:param data: token request data
14-
:return: refreshed token data
13+
:param data: Token request data
14+
:return: Refreshed token data
1515
"""
1616
response = await self._api.request(
1717
"POST",

huntflow_api_client/models/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class EmailRecipient(BaseModel):
170170
name: Optional[str] = Field(
171171
None,
172172
description="Name of email recipient",
173+
alias="displayName",
173174
)
174175
email: str = Field(..., description="Email address")
175176

huntflow_api_client/models/response/applicant_logs.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from huntflow_api_client.models.common import (
77
ApplicantOffer,
88
CalendarEventAttendeeResponse,
9+
EmailRecipient,
910
File,
1011
PaginatedResponse,
1112
VacancyQuotaItem,
@@ -15,7 +16,6 @@
1516
CalendarEventReminderMethod,
1617
CalendarEventStatus,
1718
CalendarEventType,
18-
EmailContactType,
1919
SurveyType,
2020
Transparency,
2121
)
@@ -63,15 +63,6 @@ class ApplicantLogSurveyAnswerTypeA(BaseModel):
6363
survey: SurveySchemaTypeALogResponse = Field(..., description="Survey schema")
6464

6565

66-
class EmailRecipient(BaseModel):
67-
type: Optional[EmailContactType] = Field(None, description="Type of the email contact")
68-
name: Optional[str] = Field(
69-
None,
70-
description="Name of email recipient",
71-
)
72-
email: str = Field(..., description="Email address")
73-
74-
7566
class ApplicantLogAccountInfo(BaseModel):
7667
id: int = Field(..., description="ID of the user who created the log")
7768
name: str = Field(..., description="Name of the user who created the log")

huntflow_api_client/models/response/applicants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ class ApplicantCreateResponse(Applicant):
112112
)
113113
external: List[ApplicantResume] = Field(..., description="Applicant's resume")
114114
social: List[ApplicantSocial] = Field(..., description="List of applicant's social accounts")
115-
reindex_job_id: str
116115

117116

118117
class ApplicantSearchItem(BaseModel):

tests/test_entities/test_applicants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@
201201
"verification_date": "2020-01-01T00:00:00+03:00",
202202
},
203203
],
204-
"reindex_job_id": "12345",
205204
}
206205
APPLICANT_PATCH_REQUEST: Dict[str, Any] = {"first_name": "Newname", "social": []}
207206
APPLICANT_PATCH_RESPONSE: Dict[str, Any] = {

0 commit comments

Comments
 (0)