page.ts 390 Bytes
Newer Older
Exbrayat Cédric's avatar
Exbrayat Cédric committed
1
2
3
4
5
6
export interface Page<T> {
  content: Array<T>;
  number: number;
  size: number;
  totalElements: number;
  totalPages: number;
7
  maxResults: number;
Exbrayat Cédric's avatar
Exbrayat Cédric committed
8
}
Exbrayat Cédric's avatar
Exbrayat Cédric committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22

export interface Bucket {
  key: string;
  documentCount: number;
}

export interface Aggregation {
  name: string;
  buckets: Array<Bucket>;
}

export interface AggregatedPage<T> extends Page<T> {
  aggregations: Array<Aggregation>;
}