UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

31 lines 1.05 kB
import { z } from 'zod'; import { globalOptionsZod } from '../../../../Command.js'; import { odata } from '../../../../utils/odata.js'; import GraphCommand from '../../../base/GraphCommand.js'; import commands from '../../commands.js'; export const options = z.strictObject({ ...globalOptionsZod.shape }); class OutlookRoomListListCommand extends GraphCommand { get name() { return commands.ROOMLIST_LIST; } get description() { return 'Gets a collection of available roomlists'; } get schema() { return options; } defaultProperties() { return ['id', 'displayName', 'phone', 'emailAddress']; } async commandAction(logger) { try { const roomLists = await odata.getAllItems(`${this.resource}/v1.0/places/microsoft.graph.roomlist`); await logger.log(roomLists); } catch (err) { this.handleRejectedODataJsonPromise(err); } } } export default new OutlookRoomListListCommand(); //# sourceMappingURL=roomlist-list.js.map