mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
54 lines
1.1 KiB
TypeScript
54 lines
1.1 KiB
TypeScript
import { autoserialize } from 'cerialize';
|
|
import { PageInfo } from '../../core/shared/page-info.model';
|
|
import { PaginatedList } from '../../core/data/paginated-list.model';
|
|
|
|
/**
|
|
* Class representing the response returned by the server when performing a search request
|
|
*/
|
|
export abstract class SearchQueryResponse<T> extends PaginatedList<T> {
|
|
/**
|
|
* The scope used in the search request represented by the UUID of a DSpaceObject
|
|
*/
|
|
@autoserialize
|
|
scope: string;
|
|
|
|
/**
|
|
* The search query used in the search request
|
|
*/
|
|
@autoserialize
|
|
query: string;
|
|
|
|
/**
|
|
* The currently active filters used in the search request
|
|
*/
|
|
@autoserialize
|
|
appliedFilters: any[]; // TODO
|
|
|
|
/**
|
|
* The sort parameters used in the search request
|
|
*/
|
|
@autoserialize
|
|
sort: any; // TODO
|
|
|
|
/**
|
|
* The sort parameters used in the search request
|
|
*/
|
|
@autoserialize
|
|
configuration: string;
|
|
|
|
/**
|
|
* Pagination configuration for this response
|
|
*/
|
|
@autoserialize
|
|
pageInfo: PageInfo;
|
|
|
|
/**
|
|
* The results for this query
|
|
*/
|
|
@autoserialize
|
|
page: T[];
|
|
|
|
@autoserialize
|
|
facets: any; // TODO
|
|
}
|