Skip to content

Commit 7f1ea6a

Browse files
author
yui
committed
feat(SortBy): add sort_by params for searchResumesPOSTRequest
1 parent 66b1f2e commit 7f1ea6a

File tree

1 file changed

+10
-36
lines changed

1 file changed

+10
-36
lines changed

lib/inda_hr/ResumeSearchApi.php

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,21 +1789,19 @@ function ($exception) {
17891789
* Create request for operation 'searchResumesPOST'
17901790
*
17911791
* @param string $indexname (required)
1792-
* @param bool $cache Optional. Whether the search results should be cached or not. (optional, default to true)
1793-
* @param int $cache_time Optional. Seconds. Ignored if *cache* is <code style='color: #333333; opacity: 0.9'>false</code>. (optional, default to 300)
17941792
* @param int $size Optional. Number of documents to return. (optional, default to 50)
17951793
* @param int $offset Optional. Number of documents to skip. Ignored if *cache* is <code style='color: #333333; opacity: 0.9'>true</code>. (optional, default to 0)
17961794
* @param float $min_score Optional. Minimum pertinence score. (optional, default to 0)
1797-
* @param string $search_id Both the initial search request and each subsequent scroll request returns a *SearchID*. The *SearchID* may or may not change between requests; however, only the most recently received *SearchID* should be used. (optional)
17981795
* @param string $src_lang Queries language. If left empty each query's language will detected automatically, if not it is not explicitly set into the request body. (optional)
17991796
* @param string[] $dst_lang Results languages. If left empty then the results will not be filtered by language and the they will contain multi-language results. (optional)
1797+
* @param string $sort_by Results are sorted by selected field values. (optional)
18001798
* @param \OpenAPI\Client\Model\DocsSearchQuery $docs_search_query (optional)
18011799
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['searchResumesPOST'] to see the possible values for this operation
18021800
*
18031801
* @throws \InvalidArgumentException
18041802
* @return \GuzzleHttp\Psr7\Request
18051803
*/
1806-
public function searchResumesPOSTRequest($indexname, $cache = true, $cache_time = 300, $size = 50, $offset = 0, $min_score = 0, $search_id = null, $src_lang = null, $dst_lang = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
1804+
public function searchResumesPOSTRequest($indexname, $size = 50, $offset = 0, $min_score = 0, $src_lang = null, $dst_lang = null, $sort_by = null, $docs_search_query = null, string $contentType = self::contentTypes['searchResumesPOST'][0])
18071805
{
18081806

18091807
// verify the required parameter 'indexname' is set
@@ -1813,10 +1811,6 @@ public function searchResumesPOSTRequest($indexname, $cache = true, $cache_time
18131811
);
18141812
}
18151813

1816-
1817-
if ($cache_time !== null && $cache_time > 600) {
1818-
throw new \InvalidArgumentException('invalid value for "$cache_time" when calling ResumeSearchApi.searchResumesPOST, must be smaller than or equal to 600.');
1819-
}
18201814

18211815
if ($size !== null && $size > 1000) {
18221816
throw new \InvalidArgumentException('invalid value for "$size" when calling ResumeSearchApi.searchResumesPOST, must be smaller than or equal to 1000.');
@@ -1829,8 +1823,6 @@ public function searchResumesPOSTRequest($indexname, $cache = true, $cache_time
18291823
if ($min_score !== null && $min_score < 0.0) {
18301824
throw new \InvalidArgumentException('invalid value for "$min_score" when calling ResumeSearchApi.searchResumesPOST, must be bigger than or equal to 0.0.');
18311825
}
1832-
1833-
18341826

18351827
if ($dst_lang !== null && count($dst_lang) > 6) {
18361828
throw new \InvalidArgumentException('invalid value for "$dst_lang" when calling ResumeSearchApi.searchResumesPOST, number of items must be less than or equal to 6.');
@@ -1848,24 +1840,6 @@ public function searchResumesPOSTRequest($indexname, $cache = true, $cache_time
18481840
$httpBody = '';
18491841
$multipart = false;
18501842

1851-
// query params
1852-
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
1853-
$cache,
1854-
'cache', // param base name
1855-
'boolean', // openApiType
1856-
'form', // style
1857-
true, // explode
1858-
false // required
1859-
) ?? []);
1860-
// query params
1861-
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
1862-
$cache_time,
1863-
'cache_time', // param base name
1864-
'integer', // openApiType
1865-
'form', // style
1866-
true, // explode
1867-
false // required
1868-
) ?? []);
18691843
// query params
18701844
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
18711845
$size,
@@ -1895,27 +1869,27 @@ public function searchResumesPOSTRequest($indexname, $cache = true, $cache_time
18951869
) ?? []);
18961870
// query params
18971871
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
1898-
$search_id,
1899-
'search_id', // param base name
1872+
$src_lang,
1873+
'src_lang', // param base name
19001874
'string', // openApiType
19011875
'form', // style
19021876
true, // explode
19031877
false // required
19041878
) ?? []);
19051879
// query params
19061880
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
1907-
$src_lang,
1908-
'src_lang', // param base name
1909-
'string', // openApiType
1881+
$dst_lang,
1882+
'dst_lang', // param base name
1883+
'array', // openApiType
19101884
'form', // style
19111885
true, // explode
19121886
false // required
19131887
) ?? []);
19141888
// query params
19151889
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
1916-
$dst_lang,
1917-
'dst_lang', // param base name
1918-
'array', // openApiType
1890+
$sort_by,
1891+
'sort_by', // param base name
1892+
'string', // openApiType
19191893
'form', // style
19201894
true, // explode
19211895
false // required

0 commit comments

Comments
 (0)