(queryString: string)
| 76 | } |
| 77 | |
| 78 | async queryMeta(queryString: string): Promise<SigMFMetadata[]> { |
| 79 | const response = await this.authUtil.requestWithAuthIfRequired({ |
| 80 | method:'get', |
| 81 | url: `/api/datasources/query?${queryString}` |
| 82 | }); |
| 83 | return response.data.map((item, i) => { |
| 84 | item = Object.assign(new SigMFMetadata(), item); |
| 85 | item.annotations = item.annotations?.map((annotation) => Object.assign(new Annotation(), annotation)); |
| 86 | item.captures = item.captures?.map((capture) => Object.assign(new CaptureSegment(), capture)); |
| 87 | return item; |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | async smartQuery(queryString: string, signal: AbortSignal): Promise<any> { |
| 92 | const response = await this.authUtil.requestWithAuthIfRequired({ |
nothing calls this directly
no test coverage detected