[ACS-5839] migrate from QueryBody to SearchResult type (#8861)

* [ci:force] migrate from QueryBody to SearchQuery

* [ci:force] migrate from QueryBody to SearchQuery

* [ci:force] migrate from QueryBody to SearchQuery

* [ci:force] update docs and variables as per code review
This commit is contained in:
Denys Vuika
2023-08-31 14:36:21 +01:00
committed by GitHub
parent c73e95c9bf
commit c83d92c539
18 changed files with 340 additions and 480 deletions

View File

@@ -15,18 +15,16 @@
* limitations under the License.
*/
import { QueryBody } from '@alfresco/js-api';
import { SearchRequest } from '@alfresco/js-api';
export interface SearchConfigurationInterface {
/**
* Generates a QueryBody object with custom search parameters.
* Generates a query object with custom search parameters.
*
* @param searchTerm Term text to search for
* @param maxResults Maximum number of search results to show in a page
* @param skipCount The offset of the start of the page within the results list
* @returns Query body defined by the parameters
*/
generateQueryBody(searchTerm: string, maxResults: number, skipCount: number): QueryBody;
generateQueryBody(searchTerm: string, maxResults: number, skipCount: number): SearchRequest;
}