UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

25 lines 807 B
import { odata } from '../../../../utils/odata.js'; import DelegatedGraphCommand from '../../../base/DelegatedGraphCommand.js'; import commands from '../../commands.js'; class TodoListListCommand extends DelegatedGraphCommand { get name() { return commands.LIST_LIST; } get description() { return 'Returns a list of Microsoft To Do task lists'; } defaultProperties() { return ['displayName', 'id']; } async commandAction(logger) { try { const items = await odata.getAllItems(`${this.resource}/v1.0/me/todo/lists`); await logger.log(items); } catch (err) { this.handleRejectedODataJsonPromise(err); } } } export default new TodoListListCommand(); //# sourceMappingURL=list-list.js.map