* Real-time document addition interface. * @param path The newly added folder directory or an array of file paths.
(path: string | string[])
| 197 | * @param path The newly added folder directory or an array of file paths. |
| 198 | */ |
| 199 | public async add(path: string | string[]): Promise<void> { |
| 200 | const sources = Array.isArray(path) ? path : [path]; |
| 201 | await this.request("/add", "POST", { source: sources }); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Query interface: Returns relevant records based on the user's query. |
no test coverage detected