(account: string, container: string, filePath: string)
| 11 | } |
| 12 | |
| 13 | async getMeta(account: string, container: string, filePath: string): Promise<SigMFMetadata> { |
| 14 | const response = await this.authUtil.requestWithAuthIfRequired({ |
| 15 | method: 'get', |
| 16 | url: `/api/datasources/${account}/${container}/${filePath}/meta` |
| 17 | }); |
| 18 | let responseMetaData: SigMFMetadata | null = null; |
| 19 | responseMetaData = Object.assign(new SigMFMetadata(), response.data); |
| 20 | responseMetaData.annotations = responseMetaData.annotations?.map((annotation) => |
| 21 | Object.assign(new Annotation(), annotation) |
| 22 | ); |
| 23 | responseMetaData.captures = responseMetaData.captures?.map((capture) => |
| 24 | Object.assign(new CaptureSegment(), capture) |
| 25 | ); |
| 26 | return responseMetaData; |
| 27 | } |
| 28 | |
| 29 | async getDataSourceMetaPaths(account: string, container: string): Promise<string[]> { |
| 30 | const response = await this.authUtil.requestWithAuthIfRequired({ |
nothing calls this directly
no test coverage detected