@internetarchive/search-service
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -23,1 +23,2 @@ export { Metadata } from './src/models/metadata'; | ||
export { SearchParams, SortParam, SortDirection, AggregateSearchParams, AggregateSearchParam, } from './src/search-params'; | ||
export { SearchServiceError } from './src/search-service-error'; |
import { MetadataResponse } from './responses/metadata/metadata-response'; | ||
import { Result } from '@internetarchive/result-type'; | ||
import { SearchResponse } from './responses/search/search-response'; | ||
import { AggregateSearchParams, SearchParams } from './search-params'; | ||
import { SearchParams } from './search-params'; | ||
import { SearchServiceError } from './search-service-error'; | ||
import { SortParam } from '..'; | ||
export interface SearchServiceInterface { | ||
@@ -16,10 +15,2 @@ /** | ||
search(params: SearchParams): Promise<Result<SearchResponse, SearchServiceError>>; | ||
search(options: { | ||
query: string; | ||
sort?: SortParam[]; | ||
rows?: number; | ||
page?: number; | ||
fields?: string[]; | ||
aggregations?: AggregateSearchParams; | ||
}): Promise<Result<SearchResponse, SearchServiceError>>; | ||
/** | ||
@@ -26,0 +17,0 @@ * Fetch metadata for a given identifier |
{ | ||
"name": "@internetarchive/search-service", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "A search service for the Internet Archive", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -16,2 +16,3 @@ { | ||
"inlineSources": true, | ||
"declaration": true, | ||
"rootDir": "./", | ||
@@ -18,0 +19,0 @@ }, |
363996
5152