mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
let do any query in Aquarius
This commit is contained in:
parent
f7ad59bf5f
commit
02b805a45d
@ -5,24 +5,10 @@ import fetch from 'cross-fetch'
|
||||
export interface SearchQuery {
|
||||
from?: number
|
||||
size?: number
|
||||
query: {
|
||||
match?: {
|
||||
[property: string]:
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| Record<string, string | number | boolean>
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
query_string?: {
|
||||
[property: string]: string | number | string[] | number[] | boolean
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
simple_query_string?: {
|
||||
[property: string]: string | number | string[] | number[] | boolean
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
query: any
|
||||
sort?: { [jsonPath: string]: string }
|
||||
aggs?: any
|
||||
}
|
||||
|
||||
export class Aquarius {
|
||||
|
Loading…
x
Reference in New Issue
Block a user