Skip to content

Commit 0d96ca0

Browse files
author
manuel.flamminio
committed
feat(Jobmatching): add exclude applicants filter in resume to jobAds api
1 parent c3cf1d9 commit 0d96ca0

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

lib/inda_hr/ResumeToJobAdsApi.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,9 @@ public function matchJobadsEvidencePOSTRequest($indexname, $jobad_matching_evide
890890
* @throws \InvalidArgumentException
891891
* @return \OpenAPI\Client\Model\SearchJobAdMatchResponse|\OpenAPI\Client\Model\ErrorModel|\OpenAPI\Client\Model\HTTPValidationError
892892
*/
893-
public function matchJobadsFromIndexedResumePOST($indexname, $resume_id, $base_jobad_matching_query = null, $size = 5, $offset = 0, $min_score = 0, $dst_lang = null, $jobad_langs = null, string $contentType = self::contentTypes['matchJobadsFromIndexedResumePOST'][0])
893+
public function matchJobadsFromIndexedResumePOST($indexname, $resume_id, $base_jobad_matching_query = null, $size = 5, $offset = 0, $min_score = 0, $dst_lang = null, $jobad_langs = null, bool $exclude_applicants = false, string $contentType = self::contentTypes['matchJobadsFromIndexedResumePOST'][0])
894894
{
895-
list($response) = $this->matchJobadsFromIndexedResumePOSTWithHttpInfo($indexname, $resume_id, $base_jobad_matching_query, $size, $offset, $min_score, $dst_lang, $jobad_langs, $contentType);
895+
list($response) = $this->matchJobadsFromIndexedResumePOSTWithHttpInfo($indexname, $resume_id, $base_jobad_matching_query, $size, $offset, $min_score, $dst_lang, $jobad_langs, $exclude_applicants, $contentType);
896896
return $response;
897897
}
898898

@@ -915,9 +915,9 @@ public function matchJobadsFromIndexedResumePOST($indexname, $resume_id, $base_j
915915
* @throws \InvalidArgumentException
916916
* @return array of \OpenAPI\Client\Model\SearchJobAdMatchResponse|\OpenAPI\Client\Model\ErrorModel|\OpenAPI\Client\Model\HTTPValidationError, HTTP status code, HTTP response headers (array of strings)
917917
*/
918-
public function matchJobadsFromIndexedResumePOSTWithHttpInfo($indexname, $resume_id, $base_jobad_matching_query, $size = 5, $offset = 0, $min_score = 0, $dst_lang = null, $jobad_langs = null, string $contentType = self::contentTypes['matchJobadsFromIndexedResumePOST'][0])
918+
public function matchJobadsFromIndexedResumePOSTWithHttpInfo($indexname, $resume_id, $base_jobad_matching_query, $size = 5, $offset = 0, $min_score = 0, $dst_lang = null, $jobad_langs = null, bool $exclude_applicants = false, string $contentType = self::contentTypes['matchJobadsFromIndexedResumePOST'][0])
919919
{
920-
$request = $this->matchJobadsFromIndexedResumePOSTRequest($indexname, $resume_id, $base_jobad_matching_query, $size, $offset, $min_score, $dst_lang, $jobad_langs, $contentType);
920+
$request = $this->matchJobadsFromIndexedResumePOSTRequest($indexname, $resume_id, $base_jobad_matching_query, $size, $offset, $min_score, $dst_lang, $jobad_langs, $exclude_applicants, $contentType);
921921

922922
try {
923923
$options = $this->createHttpClientOption();
@@ -1152,7 +1152,7 @@ function ($exception) {
11521152
* @throws \InvalidArgumentException
11531153
* @return \GuzzleHttp\Psr7\Request
11541154
*/
1155-
public function matchJobadsFromIndexedResumePOSTRequest($indexname, $resume_id, $base_jobad_matching_query, $size = 5, $offset = 0, $min_score = 0, $dst_lang = null, $jobad_langs = null, string $contentType = self::contentTypes['matchJobadsFromIndexedResumePOST'][0])
1155+
public function matchJobadsFromIndexedResumePOSTRequest($indexname, $resume_id, $base_jobad_matching_query, $size = 5, $offset = 0, $min_score = 0, $dst_lang = null, $jobad_langs = null, bool $exclude_applicants = false, string $contentType = self::contentTypes['matchJobadsFromIndexedResumePOST'][0])
11561156
{
11571157

11581158
// verify the required parameter 'indexname' is set
@@ -1242,7 +1242,15 @@ public function matchJobadsFromIndexedResumePOSTRequest($indexname, $resume_id,
12421242
true, // explode
12431243
false // required
12441244
) ?? []);
1245-
1245+
// query params
1246+
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
1247+
$exclude_applicants,
1248+
'exclude_applicants', // param base name
1249+
'boolean', // openApiType
1250+
'form', // style
1251+
true, // explode
1252+
false // required
1253+
) ?? []);
12461254

12471255
// path params
12481256
if ($indexname !== null) {

0 commit comments

Comments
 (0)