Skip to content

Commit

Permalink
feat: add archivelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gridcat committed Jul 7, 2021
1 parent 8c3da81 commit b948dc2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/RPC/Developer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,23 @@ export class Developer extends RPCBase {
public async listManifests(details: boolean, manifestHash?: string): Promise<Manifests | ManifestsDetailed> {
return this.call('listmanifests', details, manifestHash);
}

/** @todo: implement getmpart */

/** @todo: implement sendscraperfilemanifest */

/** @todo: implement savescraperfilemanifest */

/** @todo: implement deletecscrapermanifest */

/**
* Immediately archives the specified log. Currently valid values are debug and scraper.
*
* @param {('debug' | 'scraper')} log
* @returns {Promise<boolean>}
* @memberof Developer
*/
public async archiveLog(log: 'debug' | 'scraper'): Promise<boolean> {
return this.call('archivelog', log);
}
}

0 comments on commit b948dc2

Please sign in to comment.